예제 #1
0
        public void InitParam()
        {
            //datasource 改变会出发 selectindex 改变事件  这样就会打条码导致 模式被自动修改
            //所以早点设置好 然后在 那个selectindexchanged事件里增加 通讯正常判断
            // printcb.DataSource = Constant.printBarcodeModeStr;
            printcb.Items.AddRange(Constant.printBarcodeModeStr);
            LogManager.WriteProgramLog(Constant.ConnectMachineSuccess);
            evokWork          = ConstantMethod.GetWork();
            evokWork.MainForm = this;
            evokWork.SetUserDataGridView(UserData);
            evokWork.SetRtbWork(rtbWork);
            if (evokWork.IsArrangeOpt)
            {
                optchk.Checked = true;
            }
            evokWork.SetRtbResult(rtbResult);
            evokWork.SetPrintReport();
            evokWork.InitDgvParam(dgvParam);
            evokWork.InitDgvIO(dgvIO);
            evokWork.SetShowCnt(comboBox2);

            errorList = evokWork.ErrorList;

            warnList = evokWork.WarningList;

            UpdateTimer.Enabled = true;
        }
예제 #2
0
파일: MainForm.cs 프로젝트: w7789475/EVOK
        public void InitWork()
        {
            SetControlInEvokWork();
            if (propertyA)
            {
                evokWork0.InitDgvParam(dgvParam);
                evokWork0.InitDgvIO(dgvIO);
                evokWork0.DeviceProperty = Constant.devicePropertyA;
                evokWork0.SetRtbResult(richTextBox2);
                evokWork0.SetRtbWork(richTextBox1);
                evokWork0.SetLblStatus(label8);
                evokWork0.SetOptSize(op0);
                evokWork0.SetPrintReport();
            }
            if (propertyB)
            {
                evokWork1.InitDgvParam(dgvParam1);
                evokWork1.InitDgvIO(dgvIO1);
                evokWork1.DeviceProperty = Constant.devicePropertyB;
                evokWork1.SetRtbResult(richTextBox3);
                evokWork1.SetRtbWork(richTextBox4);
                evokWork1.SetLblStatus(label9);
                evokWork1.SetOptSize(op1);
            }
            if (propertyC)
            {
                evokWork2.InitDgvParam(dgvParam2);
                evokWork2.InitDgvIO(dgvIO2);
                evokWork2.DeviceProperty = Constant.devicePropertyC;
                evokWork2.SetRtbResult(richTextBox5);
                evokWork2.SetRtbWork(richTextBox6);
                evokWork2.SetLblStatus(label11);
                evokWork2.SetOptSize(op2);
            }
            //读取设备名
            paraFile = new ConfigFileManager();
            paraFile.LoadFile(Constant.ConfigParamFilePath);
            if (propertyA)
            {
                evokWork0.DeviceName = paraFile.ReadConfig("work0");
                evokWorkLst.Add(evokWork0);
            }

            if (propertyB)
            {
                evokWork1.DeviceName = paraFile.ReadConfig("work1");
                evokWorkLst.Add(evokWork1);
            }
            if (propertyC)
            {
                evokWork2.DeviceName = paraFile.ReadConfig("work2");
                evokWorkLst.Add(evokWork2);
            }
        }
예제 #3
0
파일: WorkForm.cs 프로젝트: w7789475/EVOK
 public void InitParam()
 {
     //datasource 改变会出发 selectindex 改变事件  这样就会打条码导致 模式被自动修改
     //所以早点设置好 然后在 那个selectindexchanged事件里增加 通讯正常判断
     // printcb.DataSource = Constant.printBarcodeModeStr;
     printcb.Items.AddRange(Constant.printBarcodeModeStr);
     LogManager.WriteProgramLog(Constant.ConnectMachineSuccess);
     evokWork = new EvokXJWork();
     evokWork.SetUserDataGridView(UserData);
     evokWork.SetRtbWork(rtbWork);
     evokWork.SetRtbResult(rtbResult);
     evokWork.SetPrintReport();
     evokWork.InitDgvParam(dgvParam);
     evokWork.InitDgvIO(dgvIO);
     UpdateTimer.Enabled = true;
 }
예제 #4
0
        public void InitParam()
        {
            //datasource 改变会出发 selectindex 改变事件  这样就会打条码导致 模式被自动修改
            //所以早点设置好 然后在 那个selectindexchanged事件里增加 通讯正常判断
            printcb.DataSource = Constant.printBarcodeModeStr;

            LogManager.WriteProgramLog(Constant.ConnectMachineSuccess);

            optSize  = new OptSize(UserData);
            evokWork = new EvokXJWork();
            evokWork.DeviceProperty = Constant.scjDeivceId;
            evokWork.SetOptSize(optSize);
            evokWork.SetRtbWork(rtbWork);
            evokWork.SetRtbResult(rtbResult);
            evokWork.SetPrintReport();
            evokWork.InitDgvParam(dgvParam);
            evokWork.InitDgvIO(dgvIO);
            UpdateTimer.Enabled = true;
        }
예제 #5
0
        public void InitParam()
        {
            //datasource 改变会出发 selectindex 改变事件  这样就会打条码导致 模式被自动修改
            //所以早点设置好 然后在 那个selectindexchanged事件里增加 通讯正常判断
            printcb.DataSource = Constant.printBarcodeModeStr;

            LogManager.WriteProgramLog(Constant.ConnectMachineSuccess);
            evokWork = new EvokXJWork();
            evokWork.SetUserDataGridView(UserData);
            evokWork.SetRtbWork(rtbWork);
            evokWork.SetRtbResult(rtbResult);
            evokWork.SetPrintReport();
            evokWork.InitDgvParam(dgvParam);
            evokWork.InitDgvIO(dgvIO);
            evokWork.SetOptParamShowCombox(comboBox2);
            evokWork.DeviceProperty = Constant.devicePropertyB;
            workMan             = new workManager();
            UpdateTimer.Enabled = true;
        }
예제 #6
0
파일: WorkForm.cs 프로젝트: w7789475/EVOK
 public void InitParam()
 {
     //datasource 改变会出发 selectindex 改变事件  这样就会打条码导致 模式被自动修改
     //所以早点设置好 然后在 那个selectindexchanged事件里增加 通讯正常判断
     // printcb.DataSource = Constant.printBarcodeModeStr;
     printcb.Items.AddRange(Constant.printBarcodeModeStr);
     LogManager.WriteProgramLog(Constant.ConnectMachineSuccess);
     // evokWork = new EvokXJWork(Constant.evokGetTcp);
     evokWork            = ConstantMethod.GetWork();
     evokWork.DeviceName = Constant.simiDeivceName;
     evokWork.MainForm   = this;
     evokWork.SetUserDataGridView(UserData);
     evokWork.SetRtbWork(rtbWork);
     evokWork.SetRtbResult(rtbResult);
     evokWork.SetPrintReport(Constant.BarCode1);
     evokWork.InitDgvParam(dgvParam);
     evokWork.InitDgvIO(dgvIO);
     evokWork.SetOptParamShowCombox(comboBox2);
     // evokWork.getOptSize().Simi_Split_Combox = comboBox1;
     errorList           = evokWork.ErrorList;
     UpdateTimer.Enabled = true;
 }
예제 #7
0
파일: WorkForm.cs 프로젝트: w7789475/EVOK
        public void InitParam()
        {
            //datasource 改变会出发 selectindex 改变事件  这样就会打条码导致 模式被自动修改
            //所以早点设置好 然后在 那个selectindexchanged事件里增加 通讯正常判断
            // printcb.DataSource = Constant.printBarcodeModeStr;
            printcb.Items.AddRange(Constant.printBarcodeModeStr);
            LogManager.WriteProgramLog(Constant.ConnectMachineSuccess);
            evokWork            = ConstantMethod.GetWork();
            evokWork.MainForm   = this;
            evokWork.DeviceName = Constant.SimensiId;
            evokWork.SetUserDataGridView(UserData);
            evokWork.SetRtbWork(rtbWork);
            evokWork.SetRtbResult(rtbResult);
            evokWork.SetPrintReport();
            evokWork.InitDgvParam(dgvParam);
            evokWork.InitDgvIO(dgvIO);
            evokWork.SetShowCnt(comboBox1);
            evokWork.AutoPosTipLabel = label5;
            // evokWork.SetDataShowCb(listBox1);
            errorList           = evokWork.ErrorList;
            UpdateTimer.Enabled = true;

            InitOppeinFormula();
        }