public void onInitialUI() { if (adapter != null) { adapter.NotifyClearTable(); adapter.NotifyDestoryTable(); } adapter.Initial(controller.TravleAllEntities(), builder); adapter.NotifyfreshDataTable(); gridHelper.GridControl.DataSource = adapter.ResultTable; gridHelper.SetAllColumnEditable(false); gridHelper.SetAllColumnVisible(false); gridHelper.setColunmsVisual(true, builder.Op_Delete, builder.Op_Edit, builder.State, builder.Actuality, builder.WeedDate, builder.Estimate, builder.SignDate, builder.Name); gridHelper.SetCellResposity(builder.Op_Edit, Repo_HLE_Edit); gridHelper.SetCellResposity(builder.Op_Delete, Repo_HLE_Delete); this.dateE_Weed.DateTime = DateTime.Now.Date; tv_Catalog.Text = ""; tv_Description.Text = ""; tv_Estimate.Text = ""; tv_Name.Text = ""; tv_SignDate.Text = ""; simpleButton1.Enabled = false; btn_RevokeWeed.Enabled = false; }
public void onInitialUI() { if (adapter != null) { adapter.NotifyClearTable(); adapter.NotifyDestoryTable(); } adapter.Initial(controller.TravleAllEntities(), builder); adapter.NotifyfreshDataTable(); gridHelper.GridControl.DataSource = adapter.ResultTable; gridHelper.SetAllColumnEditable(false); gridHelper.setColunmsVisual(false, builder.ID, builder.Actuality, builder.WeedDate, builder.Op_Detail, builder.CatalogID, builder.DifferentReason); gridHelper.SetCellResposity(builder.Op_Edit, Repo_HLE_Edit); gridHelper.SetCellResposity(builder.Op_Delete, Repo_HLE_Delete); this.dateE_Sign.DateTime = DateTime.Now.Date; this.cmb_Catalog.Properties.Items.Clear(); foreach (var item in new BudgetCatalogManageController().TravleAllEntities()) { this.cmb_Catalog.Properties.Items.Add(item); } tv_Statistic.Text = new BudgetStatistician().Statistic(GParam.Create()).toDisplayString(); }