当前位置: 首页>>代码示例>>C#>>正文


C# Products.UpdateOrderSlipPrinter方法代码示例

本文整理汇总了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();
        }
开发者ID:marioricci,项目名称:erp-luma,代码行数:22,代码来源:_changeosprinter.ascx.cs

示例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();
        }
开发者ID:marioricci,项目名称:erp-luma,代码行数:28,代码来源:_changeosprinter.ascx.cs


注:本文中的AceSoft.RetailPlus.Data.Products.UpdateOrderSlipPrinter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。