本文整理汇总了C#中AceSoft.RetailPlus.Data.Products.UpdateOrderSlipPrinter方法的典型用法代码示例。如果您正苦于以下问题:C# Products.UpdateOrderSlipPrinter方法的具体用法?C# Products.UpdateOrderSlipPrinter怎么用?C# Products.UpdateOrderSlipPrinter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AceSoft.RetailPlus.Data.Products
的用法示例。
在下文中一共展示了Products.UpdateOrderSlipPrinter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: chkOrderSlipPrinter_CheckedChanged
protected void chkOrderSlipPrinter_CheckedChanged(Object sender, EventArgs e)
{
CheckBox chkOrderSlipPrinter = (CheckBox)sender;
DataListItem item = (DataListItem) chkOrderSlipPrinter.NamingContainer;
HtmlInputCheckBox chkList = (HtmlInputCheckBox) item.FindControl("chkList");
Int64 iProductID = Int64.Parse(chkList.Value);
OrderSlipPrinter orderSlipPrinter = OrderSlipPrinter.NotApplicable;
switch (chkOrderSlipPrinter.ID)
{
case "chkOrderSlipPrinter1": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter1; break;
case "chkOrderSlipPrinter2": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter2; break;
case "chkOrderSlipPrinter3": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter3; break;
case "chkOrderSlipPrinter4": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter4; break;
case "chkOrderSlipPrinter5": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter5; break;
}
Products clsProducts = new Products();
clsProducts.UpdateOrderSlipPrinter(iProductID, orderSlipPrinter, chkOrderSlipPrinter.Checked);
clsProducts.CommitAndDispose();
}
示例2: chkOrderSlipPrinterAll_CheckedChanged
protected void chkOrderSlipPrinterAll_CheckedChanged(Object sender, EventArgs e)
{
HtmlInputCheckBox chkList = null;
CheckBox chkOrderSlipPrinterAll = (CheckBox)sender;
CheckBox chkOrderSlipPrinter = null;
Int64 iProductID = 0;
Products clsProducts = new Products();
OrderSlipPrinter orderSlipPrinter = OrderSlipPrinter.NotApplicable;
foreach (DataListItem item in lstItem.Items)
{
chkList = (HtmlInputCheckBox)item.FindControl("chkList");
iProductID = Int64.Parse(chkList.Value);
switch (chkOrderSlipPrinterAll.ID)
{
case "chkOrderSlipPrinter1All": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter1; chkOrderSlipPrinter = (CheckBox)item.FindControl("chkOrderSlipPrinter1"); break;
case "chkOrderSlipPrinter2All": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter2; chkOrderSlipPrinter = (CheckBox)item.FindControl("chkOrderSlipPrinter2"); break;
case "chkOrderSlipPrinter3All": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter3; chkOrderSlipPrinter = (CheckBox)item.FindControl("chkOrderSlipPrinter3"); break;
case "chkOrderSlipPrinter4All": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter4; chkOrderSlipPrinter = (CheckBox)item.FindControl("chkOrderSlipPrinter4"); break;
case "chkOrderSlipPrinter5All": orderSlipPrinter = OrderSlipPrinter.RetailPlusOSPrinter5; chkOrderSlipPrinter = (CheckBox)item.FindControl("chkOrderSlipPrinter5"); break;
}
clsProducts.UpdateOrderSlipPrinter(iProductID, orderSlipPrinter, chkOrderSlipPrinterAll.Checked);
chkOrderSlipPrinter.Checked = chkOrderSlipPrinterAll.Checked;
}
clsProducts.CommitAndDispose();
}