/// <summary> /// 绑定数据到lup下拉框(按账单查询的) /// </summary> private void Bindinglup() { DataTable LupDatatable = new DataTable(); BUCMS_Buffets myBUCMS_Buffets = new BUCMS_Buffets(); BUCMS_VIPType myBUCMS_VIPType = new BUCMS_VIPType(); BUCMS_VIPClient myBUCMS_VIPClient = new BUCMS_VIPClient(); BUCMS_Employee myBUCMS_Employee = new BUCMS_Employee(); BUCMS_ItemDetail myBUCMS_ItemDetail = new BUCMS_ItemDetail(); try { LupDatatable = myBUCMS_Buffets.GetOrder(false, string.Empty, string.Empty, false); ClassAssist.CommonOperator.DataBindingLookUpEdit(this.lupTableName, LupDatatable, "Name", "ID", true); LupDatatable = myBUCMS_VIPType.GetOrder(false, string.Empty, string.Empty, false); ClassAssist.CommonOperator.DataBindingLookUpEdit(lupVIPType, LupDatatable, "Name", "ID", true); LupDatatable = myBUCMS_VIPClient.GetOrder(false, string.Empty, string.Empty, false); ClassAssist.CommonOperator.DataBindingLookUpEdit(lupVIPClient, LupDatatable, "Name", "ID", true); LupDatatable = myBUCMS_Employee.GetOrder(false, string.Empty, string.Empty, false); ClassAssist.CommonOperator.DataBindingLookUpEdit(lupWaiter, LupDatatable, "Name", "ID", true); LupDatatable = myBUCMS_ItemDetail.GetItemByType(VariedItemType.PayType); ClassAssist.CommonOperator.DataBindingLookUpEdit(lupPayment, LupDatatable, "Name", "ID", true); } catch (Exception ex) { XtraMessageBox.Show(ex.ToString()); } }
/// <summary> /// 绑定数据到lup下拉框(按账单查询的) /// </summary> private void Bindinglup() { DataTable LupDatatable = new DataTable(); BUCMS_Buffets myBUCMS_Buffets = new BUCMS_Buffets(); BUCMS_VIPType myBUCMS_VIPType = new BUCMS_VIPType(); BUCMS_VIPClient myBUCMS_VIPClient = new BUCMS_VIPClient(); BUCMS_Employee myBUCMS_Employee = new BUCMS_Employee(); BUCMS_ItemDetail myBUCMS_ItemDetail = new BUCMS_ItemDetail(); try { LupDatatable = myBUCMS_Buffets.GetOrder(false, string.Empty, string.Empty, false); this.lupTableName.Properties.DataSource = LupDatatable; this.lupTableName.ItemIndex = 0; LupDatatable = myBUCMS_VIPType.GetOrder(false, string.Empty, string.Empty, false); this.lupVIPType.Properties.DataSource = LupDatatable; this.lupVIPType.ItemIndex = 0; LupDatatable = myBUCMS_VIPClient.GetOrder(false, string.Empty, string.Empty, false); this.lupVIPClient.Properties.DataSource = LupDatatable; this.lupVIPClient.ItemIndex = 0; LupDatatable = myBUCMS_Employee.GetOrder(false, string.Empty, string.Empty, false); this.lupWaiter.Properties.DataSource = LupDatatable; this.lupWaiter.ItemIndex = 0; LupDatatable = myBUCMS_ItemDetail.GetItemByType(VariedItemType.PayType); this.lupPayment.Properties.DataSource = LupDatatable; this.lupPayment.ItemIndex = 0; } catch (Exception ex) { throw ex; } }