示例#1
0
 private void BindinaData(DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEdit, DataTable dataTable)
 {
     repositoryItemLookUpEdit.DataSource    = EnumRatting_BigStore.Instance().BigStore;
     repositoryItemLookUpEdit.ValueMember   = "Value";
     repositoryItemLookUpEdit.DisplayMember = "Text";
     repositoryItemLookUpEdit.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Value", 20, "Value"));
     repositoryItemLookUpEdit.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Text", 20, "Chọn"));
     repositoryItemLookUpEdit.Columns["Value"].Visible = false;
 }
示例#2
0
 private void RefreshData()
 {
     this.gridControl1.DataSource = productAdapter.GetCompanyForSetRatting();
     this.BindinaData(this.repositoryItemLookUpEdit_Reputation, EnumRatting_BigStore.Instance().Reputation);
     this.BindinaData(this.repositoryItemLookUpEdit_Attitude, EnumRatting_BigStore.Instance().Attitude);
     this.BindinaData(this.repositoryItemLookUpEdit_BigStore, EnumRatting_BigStore.Instance().BigStore);
     this.BindinaData(this.repositoryItemLookUpEdit_Delivery, EnumRatting_BigStore.Instance().Delivery);
     this.BindinaData(this.repositoryItemLookUpEdit_Geneuine, EnumRatting_BigStore.Instance().Genuine);
     this.BindinaData(this.repositoryItemLookUpEdit_OldCustomer, EnumRatting_BigStore.Instance().OldCustomer);
     this.BindinaData(this.repositoryItemLookUpEdit_Guarantee, EnumRatting_BigStore.Instance().Guarantee);
     this.BindinaData(this.repositoryItemLookUpEdit_Price, EnumRatting_BigStore.Instance().Price);
     this.BindinaData(this.repositoryItemLookUpEdit_Quantity, EnumRatting_BigStore.Instance().Quantity);
     this.BindinaData(this.repositoryItemLookUpEdit_Scandal, EnumRatting_BigStore.Instance().Scandal);
     this.BindinaData(this.repositoryItemLookUpEdit_Swap, EnumRatting_BigStore.Instance().Swap);
 }
示例#3
0
 public static EnumRatting_BigStore Instance()
 {
     return((_instance == null) ? _instance = new EnumRatting_BigStore() : _instance);
 }