Example #1
0
        private void Progress_Load(object sender, EventArgs e)
        {
            cmbVendor.Properties.BeginUpdate();
            ComboxData data = new ComboxData();

            data.Text  = "";
            data.Value = "";
            cmbVendor.Properties.Items.Add(data);
            TonerGlobal.LoadCmbVendor(cmbVendor);
            cmbVendor.Properties.EndUpdate();
        }
        private void Init()
        {
            PaCSGlobal.InitComPort("Toner", "GREJH", ports);

            if (ports[0].IsOpen)
            {
                ports[0].DataReceived += new SerialDataReceivedEventHandler(serialPortGREJH_DataReceived);//重新绑定
            }
            cmbVendor.Properties.BeginUpdate();
            TonerGlobal.LoadCmbVendor(cmbVendor);
            cmbVendor.Properties.EndUpdate();
        }
        private void TonerDetail_Load(object sender, EventArgs e)
        {
            cmbMakeVendor.Properties.BeginUpdate();

            ComboxData data = new ComboxData();

            data.Text  = "";
            data.Value = "";
            cmbMakeVendor.Properties.Items.Add(data);
            TonerGlobal.LoadCmbVendor(cmbMakeVendor);

            cmbMakeVendor.Properties.EndUpdate();



            cmbVendor.Properties.BeginUpdate();

            ComboxData data2 = new ComboxData();

            data2.Text  = "";
            data2.Value = "";
            cmbVendor.Properties.Items.Add(data2);
            TonerGlobal.LoadCmbUseVendor(cmbVendor, false);

            cmbVendor.Properties.EndUpdate();

            //if (!PaCSGlobal.LoginUserInfo.Venderid.Equals("C660"))
            //{
            //    cmbVendor.Properties.ReadOnly = true;
            //    cmbVendor.Text = PaCSGlobal.LoginUserInfo.Vendername;
            //}
            //else
            //{
            //    cmbVendor.SelectedIndex = 0;
            //}

            cmbStatus.Properties.BeginUpdate();

            ComboxData data3 = new ComboxData();

            data3.Text  = "";
            data3.Value = "";
            cmbStatus.Properties.Items.Add(data3);
            TonerGlobal.LoadBoxCaseStatus(cmbStatus);

            cmbStatus.Properties.EndUpdate();

            dateEditFrom.Text = PaCSGlobal.GetServerDateTimeRange("-", -7);
            dateEditTo.Text   = PaCSGlobal.GetServerDateTime(3);
        }
Example #4
0
        private void Init()
        {
            cmbVendor.Properties.BeginUpdate();
            TonerGlobal.LoadCmbVendor(cmbVendor);
            cmbVendor.Properties.EndUpdate();

            if (PaCSGlobal.LoginUserInfo.Fct_code.Equals("C660A"))
            {
                cmbDPI.SelectedIndex = 0;
            }
            else if (PaCSGlobal.LoginUserInfo.Fct_code.Equals("C6H0A"))
            {
                cmbDPI.SelectedIndex = 1;
            }
        }