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); }