public EDCData04R(EdcGatherData edcData) { InitializeComponent(); btWData.Enabled = false; allowInput = computerEntity.GetComputerInfoOfInput("R"); _edcData = edcData; DataSet dsLotInfo = new DataSet(); dsLotInfo = _edcData.GetLotInfo(); #region BindBaseLotInfo LotBaseInfoCtrl lotInfoCtrl = new LotBaseInfoCtrl(); lotInfoCtrl.SetValueToControl(dsLotInfo); lotInfoCtrl.Dock = DockStyle.Fill; lotInfoCtrl.BackColor = Color.FromArgb(203, 219, 234); this.gcLotInfo.Controls.Add(lotInfoCtrl); #endregion #region BindParamInfo if (dsLotInfo.Tables.Count > 0 && dsLotInfo.Tables[0].Rows.Count > 0) { edcInsKey = dsLotInfo.Tables[0].Rows[0][POR_LOT_FIELDS.FIELD_EDC_INS_KEY].ToString(); lotKey = dsLotInfo.Tables[0].Rows[0][POR_LOT_FIELDS.FIELD_LOT_KEY].ToString(); } #endregion dsParam = _edcData.GetPointParams(edcInsKey); if (_edcData.ErrorMsg == string.Empty) { this.gcParam.MainView = gvParam; if (dsParam != null && dsParam.Tables.Count > 0) { gcParam.DataSource = dsParam.Tables[0]; DataRow[] dataRow = dsParam.Tables[0].Select("DEVICE_TYPE='W'"); if (dataRow.Length > 0) { btWData.Enabled = true; } } } else { MessageService.ShowError("查询参数出错" + _edcData.ErrorMsg); } if (InitializeUI()) { #region BindInitialData BindInitialData(); #endregion } else { this.btSubmit.Enabled = false; btDeleteData.Enabled = false; } //Thread thr = new Thread(new ThreadStart(this.GetData)); //thr.Start(); }
public EDCDetailsCtrl(EdcGatherData edcData) { this._edcData = edcData; InitializeComponent(); InitializeTablePanel(); MapSHRDataToControls(); LotBaseInfoCtrl lotInfoCtrl = new LotBaseInfoCtrl(); lotInfoCtrl.SetValueToControl(_edcData.GetLotInfo()); lotInfoCtrl.Dock = DockStyle.Fill; lotInfoCtrl.BackColor = Color.FromArgb(203, 219, 234); Panel011.Controls.Add(lotInfoCtrl); }