private void cboSupp_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Down) { CBOUtil.loadDropDown(sender as DevExpress.XtraEditors.ComboBoxEdit, Connection, false, "select distinct supplier from supplier_master where isnull(SUBCONTRACTOR,'F') = 'T' order by supplier"); } }
private void cboMasterAgreement_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Down) { CBOUtil.loadDropDown(sender as DevExpress.XtraEditors.ComboBoxEdit, Connection, true, @"select distinct MASTER_AGREEMENT_NUM from PROJ_LOT_MASTER_AGREEMENT where MASTER_AGREEMENT_NUM like % order by MASTER_AGREEMENT_NUM", "TR"); } }