/// <summary> /// 班次工程實時數據顯示 /// </summary> /// <param name="shiftProjectInfo"></param> void ShowShiftProjectProductionData(ShiftProjectProductionDataInformation shiftProjectInfo) { if (shiftProjectInfo != null) { this._projectStatusBase.TextboxBeginTime.Text = shiftProjectInfo.ProjectBeginTime; this._projectStatusBase.TextboxPrepareTime.Text = shiftProjectInfo.ActualPrepairTime; this._projectStatusBase.TextboxProductBeginTime.Text = shiftProjectInfo.ProdBeginTime; this._projectStatusBase.TextboxProjectStopTime.Text = shiftProjectInfo.StopTime; this._projectStatusBase.TextboxProjectRunTime.Text = shiftProjectInfo.RunTime; this._projectStatusBase.TextboxProjectStatus.Text = shiftProjectInfo.ProjStatus; this._projectStatusBase.TextboxSwlQty.Text = shiftProjectInfo.GrandTotalProdQty.ToString().Trim(); this._projectStatusBase.TextboxRemainQty.Text = shiftProjectInfo.RemainQty.ToString().Trim(); this._projectStatusBase.TextboxPpjQty.Text = shiftProjectInfo.CountProdQty.ToString().Trim(); this._projectStatusBase.TextboxSplQty.Text = shiftProjectInfo.ActualProdQty.ToString().Trim();//當班生産數量 this._projectStatusBase.TextboxProductSpeed.Text = shiftProjectInfo.ProdSpeed.ToString().Trim(); this._projectStatusBase.TextboxCalNeedTime.Text = shiftProjectInfo.ToEstimateNeedTime; this._projectStatusBase.TextboxFinishTime.Text = shiftProjectInfo.ToEstimateFinishTime; } }
/// <summary> /// 班次工程實時數據顯示 /// </summary> /// <param name="shiftProjectInfo"></param> void ShowShiftProjectProductionDataInformation(ShiftProjectProductionDataInformation shiftProjectInfo) { if (this.InvokeRequired) { ShowShiftProjectInfo showShiftProjectInfo = new ShowShiftProjectInfo(ShowShiftProjectProductionData); this.Invoke(showShiftProjectInfo, new object[] { shiftProjectInfo }); } else { this.ShowShiftProjectProductionData(shiftProjectInfo); } }
/// <summary> /// 顯示班次內工程數據信息 /// </summary> /// <param name="shiftProjectInfo"></param> void ShowShiftProjectProductionData(ShiftProjectProductionDataInformation shiftProjectInfo) { if (shiftProjectInfo != null) { this.m_frmProjectStopBase.TextBoxShiftProjBeginTime.Text = shiftProjectInfo.ProjectBeginTime; this.m_frmProjectStopBase.TextBoxShiftProjProdBeginTime.Text = shiftProjectInfo.ProdBeginTime; this.m_frmProjectStopBase.TextBoxShiftProjEndTime.Text = shiftProjectInfo.ProdEndTime; this.m_frmProjectStopBase.TextBoxShiftProjPrepareTime.Text = shiftProjectInfo.ActualPrepairTime; this.m_frmProjectStopBase.TextBoxShiftProjProdTimeSpan.Text = shiftProjectInfo.ProdSumTime; this.m_frmProjectStopBase.TextBoxShiftProjStopTime.Text = shiftProjectInfo.StopTime; this.m_frmProjectStopBase.TextBoxShiftProjQCTime.Text = shiftProjectInfo.QCTime; this.m_frmProjectStopBase.TextBoxShiftProjRunTime.Text = shiftProjectInfo.RunTime; this.m_frmProjectStopBase.TextBoxShiftProjActulQty.Text = shiftProjectInfo.ActualProdQty.ToString().Trim(); this.m_frmProjectStopBase.TextBoxShiftProjSpeed.Text = shiftProjectInfo.ProdSpeed.ToString().Trim(); this.m_frmProjectStopBase.TextBoxShiftProjWasteQty.Text = shiftProjectInfo.CountWastNum.ToString(); this.m_frmProjectStopBase.TextBoxShiftProjDefectiveQty.Text = shiftProjectInfo.CountDefectiveQty.ToString(); this.m_frmProjectStopBase.TextBoxShiftProjQualifiedQty.Text = shiftProjectInfo.QualifiedQty.ToString(); this.m_frmProjectStopBase.TextBoxShiftProjStopTimes.Text = shiftProjectInfo.StopTimes.ToString(); } }