private void InitPanel() { this.txtDateFromEdit.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Now)); this.txtDateToEdit.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Now)); this.drpObjectCodeQuery.Items.Clear(); this.drpObjectCodeEdit.Items.Clear(); if (_spcFacade == null) { _spcFacade = new FacadeFactory(base.DataProvider).CreateSPCFacade(); } object[] objs = _spcFacade.GetAllSPCObject(); if (objs != null && objs.Length > 0) { this.drpObjectCodeQuery.Items.Add(new ListItem("", "")); this.drpObjectCodeEdit.Items.Add(new ListItem("", "")); for (int i = 0; i < objs.Length; i++) { this.drpObjectCodeQuery.Items.Add(new ListItem((objs[i] as SPCObject).ObjectCode, (objs[i] as SPCObject).ObjectCode)); this.drpObjectCodeEdit.Items.Add(new ListItem((objs[i] as SPCObject).ObjectCode, (objs[i] as SPCObject).ObjectCode)); } } }
private void InitPanel() { this.drpObjectCodeQuery.Items.Clear(); this.drpObjectCodeEdit.Items.Clear(); if (_spcFacade == null) { _spcFacade = new FacadeFactory(base.DataProvider).CreateSPCFacade(); } object[] objs = _spcFacade.GetAllSPCObject(); if (objs != null && objs.Length > 0) { this.drpObjectCodeQuery.Items.Add(new ListItem("", "")); this.drpObjectCodeEdit.Items.Add(new ListItem("", "")); for (int i = 0; i < objs.Length; i++) { this.drpObjectCodeQuery.Items.Add(new ListItem((objs[i] as SPCObject).ObjectName, (objs[i] as SPCObject).ObjectCode)); this.drpObjectCodeEdit.Items.Add(new ListItem((objs[i] as SPCObject).ObjectName, (objs[i] as SPCObject).ObjectCode)); } } }