Пример #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void InitFrom()
        {
            this.IsUseWeight = Convert.ToBoolean(commonDAO.GetAppletConfigInt32("启用称重"));

            this._CodePrinter = new CodePrinterSample(printDocument1);

            // 打印编码按钮
            GridButtonXEditControl btnPrintCode = superGridControl1.PrimaryGrid.Columns["gclmPrint"].EditControl as GridButtonXEditControl;

            btnPrintCode.ColorTable = eButtonColor.BlueWithBackground;
            btnPrintCode.Click     += new EventHandler(btnPrintCode_Click);
            // 删除按钮
            GridButtonXEditControl btnWriteCode = superGridControl1.PrimaryGrid.Columns["gclmDel"].EditControl as GridButtonXEditControl;

            btnWriteCode.ColorTable = eButtonColor.BlueWithBackground;
            btnWriteCode.Click     += new EventHandler(btnDel_Click);
        }
Пример #2
0
        public void InitFrom()
        {
            this.IsUseWeight = Convert.ToBoolean(commonDAO.GetAppletConfigInt32("启用称重"));

            this._CodePrinter = new CodePrinterSample(printDocument1);
        }
Пример #3
0
 public void InitFrom()
 {
     this.IsUseWeight  = System.Convert.ToBoolean(this.commonDAO.GetAppletConfigInt32("启用称重"));
     this._CodePrinter = new CodePrinterSample(this.printDocument1);
     this.AutoMaker    = this.commonDAO.GetCMEquipmentByMachineCode(this.commonDAO.GetCommonAppletConfigString(CommonAppConfig.GetInstance().AppIdentifier + "对应制样机"));
 }