牌位排版
This commit is contained in:
@@ -44,6 +44,21 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
print_init.Text = prod.print_init;
|
||||
PARTNO.Text = prod.partno;
|
||||
//kind.SelectedValue = prod.kind.ToString();
|
||||
if (!isStrNull(prod.pageSize))
|
||||
{
|
||||
ddlPageSize.Value = prod.pageSize.ToString();
|
||||
hidPageSize.Value = prod.pageSize.ToString();
|
||||
}
|
||||
if (!isStrNull(prod.printSize))
|
||||
{
|
||||
ddlPrintSize.Value = prod.printSize.ToString();
|
||||
hidPrintSize.Value = prod.printSize.ToString();
|
||||
}
|
||||
if (!isStrNull(prod.defaultStyle))
|
||||
{
|
||||
ddlDefaultStyle.Value = prod.defaultStyle.ToString();
|
||||
hidDefaultStyle.Value = prod.defaultStyle.ToString();
|
||||
}
|
||||
if (prod.kind.HasValue)
|
||||
{
|
||||
kind_txt.Value = prod.actItem_kind.kind;
|
||||
@@ -121,17 +136,17 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
actItem.subject = subject.Text;
|
||||
actItem.print_init = print_init.Text;
|
||||
actItem.partno = PARTNO.Text;
|
||||
if (!isStrNull(pageSizeSel.Value))
|
||||
if (!isStrNull(ddlPageSize.Value))
|
||||
{
|
||||
actItem.pageSize =(pageSizeSel.Value);
|
||||
actItem.pageSize = ddlPageSize.Value;
|
||||
}
|
||||
if (!isStrNull(printSizeSel.Value))
|
||||
if (!isStrNull(ddlPrintSize.Value))
|
||||
{
|
||||
actItem.printSize = (printSizeSel.Value);
|
||||
actItem.printSize = ddlPrintSize.Value;
|
||||
}
|
||||
if (!isStrNull(defaultStyleSel.Value))
|
||||
if (!isStrNull(ddlDefaultStyle.Value))
|
||||
{
|
||||
actItem.defaultStyle = (defaultStyleSel.Value);
|
||||
actItem.defaultStyle = (ddlDefaultStyle.Value);
|
||||
}
|
||||
//if (!isStrNull(kind.SelectedValue)) { actItem.kind = Val(kind.SelectedValue); } else { actItem.kind = null; }
|
||||
if (!isStrNull(category.SelectedValue)) { actItem.category = Val(category.SelectedValue); } else { actItem.category = null; }
|
||||
@@ -180,17 +195,17 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
actItem.subject = subject.Text;
|
||||
actItem.print_init = print_init.Text;
|
||||
actItem.partno = PARTNO.Text;
|
||||
if (!isStrNull(pageSizeSel.Value))
|
||||
if (!isStrNull(hidPageSize.Value))
|
||||
{
|
||||
actItem.pageSize = (pageSizeSel.Value);
|
||||
actItem.pageSize = hidPageSize.Value;
|
||||
}
|
||||
if (!isStrNull(printSizeSel.Value))
|
||||
if (!isStrNull(hidPrintSize.Value))
|
||||
{
|
||||
actItem.printSize = (printSizeSel.Value);
|
||||
actItem.printSize = hidPrintSize.Value;
|
||||
}
|
||||
if (!isStrNull(defaultStyleSel.Value))
|
||||
if (!isStrNull(hidDefaultStyle.Value))
|
||||
{
|
||||
actItem.defaultStyle = (defaultStyleSel.Value);
|
||||
actItem.defaultStyle = (hidDefaultStyle.Value);
|
||||
}
|
||||
//if (!isStrNull(kind.SelectedValue)) { actItem.kind = Val(kind.SelectedValue); } else { actItem.kind = null; }
|
||||
if (!isStrNull(category.SelectedValue)) { actItem.category = Val(category.SelectedValue); } else { actItem.category = null; }
|
||||
@@ -270,4 +285,16 @@ public partial class admin_activity_item_reg : MyWeb.config
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//protected override void Render(HtmlTextWriter writer)
|
||||
//{
|
||||
// ClientScript.RegisterForEventValidation(
|
||||
// ddlDefaultStyle.UniqueID, "ddlDefaultStyle");
|
||||
// ClientScript.RegisterForEventValidation(
|
||||
// ddlPageSize.UniqueID, "ddlPageSize");
|
||||
// ClientScript.RegisterForEventValidation(
|
||||
// ddlPrintSize.UniqueID, "ddlPrintSize");
|
||||
|
||||
// base.Render(writer);
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user