public void onInitialUI() { this.checkList_Catalog.Items.Clear(); foreach (var item in controller.TravleAllEntities()) { this.checkList_Catalog.Items.Add(item); } DateUtils utils = new DateUtils(); dateE_Start.DateTime = utils.GetWeekFirstDayMon(DateTime.Now).Date; dateE_End.DateTime = utils.GetWeekLastDaySun(DateTime.Now).Date; }
public void onInitialUI() { if (adapter != null) { adapter.NotifyClearTable(); adapter.NotifyDestoryTable(); } adapter.Initial(controller.TravleAllEntities(), builder); adapter.NotifyfreshDataTable(); this.gridControl_dailyscan.DataSource = adapter.ResultTable; helper.SetAllColumnEditable(false); helper.SetColunmOption(builder.ID, false, false); helper.SetColunmOption(builder.Op_Delete, true, true); helper.SetColunmOption(builder.Op_Edit, true, true); helper.SetCellResposity(builder.Op_Delete, this.Repo_HLE_Delete); helper.SetCellResposity(builder.Op_Edit, this.Repo_HLE_Edit); this.tv_Name.Text = null; this.tv_Other.Text = null; this.comboBoxEdit1.SelectedIndex = 1; }