/// <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; } }
/// <summary> /// 绑定数据到lup下拉框(按菜品查询的) /// </summary> private void BindInglupDish() { DataTable tempDataTable = new DataTable(); BUCMS_DishServer myBUCMS_DishServer = new BUCMS_DishServer(); BUCMS_ItemDetail myBUCMS_ItemDetail = new BUCMS_ItemDetail(); try { tempDataTable = myBUCMS_DishServer.GetOrder(false, string.Empty, string.Empty, false); this.lupDishName.Properties.DataSource = tempDataTable; this.lupDishName.ItemIndex = 0; tempDataTable = myBUCMS_ItemDetail.GetItemByType(VariedItemType.DishType); this.lupDishType.Properties.DataSource = tempDataTable; this.lupDishType.ItemIndex = 0; tempDataTable = myBUCMS_ItemDetail.GetItemByType(VariedItemType.TasteType); this.lupTaste.Properties.DataSource = tempDataTable; this.lupTaste.ItemIndex = 0; } catch (Exception ex) { throw ex; } }
/// <summary> /// Datas the binding controls. /// </summary> /// 创建人:桂书丛 /// 创建日期:2013-02-23 private void DataBindingControls() { try { DataTable myDataTable = new BUCMS_ItemDetail().GetItemByType(VariedItemType.PayType); ClassAssist.CommonOperator.DataBindingLookUpEdit(this.lupPayType, myDataTable, "Name", "ID", true); } catch (Exception ex) { throw ex; } }
private void InitializeControls(DataRow paramDataRow) { try { FillAllInfo(paramDataRow); DataTable tempDataTable = new BUCMS_ItemDetail().GetItemByType(VariedItemType.BackResult); ClassAssist.CommonOperator.DataBindingLookUpEdit(lupResult, tempDataTable, "Name", "ID", true); } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }
/// <summary> /// 数据绑定控件 /// </summary> private void BindingControls() { BUCMS_ItemDetail tempBUCMSItemDetail = new BUCMS_ItemDetail(); try { DataTable tempDataTable = tempBUCMSItemDetail.GetItemByType(VariedItemType.DishType); ClassAssist.CommonOperator.DataBindingLookUpEdit(lupType, tempDataTable, "Name", "ID", true); tempDataTable = tempBUCMSItemDetail.GetItemByType(VariedItemType.TasteType); rilupTaste.DataSource = tempDataTable; } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }