private void LoadData() { result = vmRpt.GetWorkPlaceLight(this.WPL_ID); this.dataList = vmRpt.GetWorkPlaceLightReport(this.WPL_ID); this.HasProject = result.CUSTOMER_PROJECT_ID.HasValue; this.HasResultDayAndNight = result.MEASURED_DATE.HasValue && result.MEASURED_DATE_NIGHT.HasValue; }
private void LoadData() { try { this.Cursor = Cursors.WaitCursor; criteria = new RPT001_WorkPlaceLight_Criteria() { REPORTNUMBER = txtReportNumber.TextValue, DATE_FROM = dtMeasuredDate.DateValue, DATE_TO = dtMeasuredDateTo.DateValue, CUSTOMER_ID = txtCustomer.IntValue, MEASURED_BY = txtMeasuredBy.StringValue, INSTRUMENT_ID = txtInstrument.IntValue, SHOW_DELETE_RECORD = chkShowDeleteRecord.Checked, }; wlpList = vmRpt.GetWorkPlaceLight(criteria); gvResult.DataSource = wlpList; gvResult.SetRowDeletedStyle((int)eCol.DEL_ID); if (gvResult.RowCount > 0) { this.ToolBarSwitch = "1212121221"; } else { this.ToolBarSwitch = "1212021221"; } } catch (Exception ex) { rMessageBox.ShowException(this, ex); } finally { this.Cursor = Cursors.Default; } }
public RPT001_WorkPlaceLightIntensityEntry() { InitializeComponent(); wplResult = vmRpt.GetWorkPlaceLight(0); mode = ScreenMode.Add; }