private void InitializeControl() { _isEndLoadDocument = false; //DateEdit Controls this.fromDateEdit.DateTime = ShopCalendar.SplitDate(_planStartTime); ComboHelper.ShiftName(this.shiftComboBoxEdit, _planStartTime); this.daySpinEdit.Value = _result.GetPlanPeriod(); // ShopID ComboBox ComboHelper.AddDataToComboBox(this.shopIdComboBoxEdit, _result, SimInputData.InputName.StdStep, SimInputData.StdStepSchema.SHOP_ID, false); // ProductIDs SetProdIdCheckBox(); // Step TAT Unit this.stepTatUnitComboBox.Properties.Items.Add("Sec"); this.stepTatUnitComboBox.Properties.Items.Add("Min"); this.stepTatUnitComboBox.Properties.Items.Add("Hour"); this.stepTatUnitComboBox.Properties.Items.Add("Day"); this.stepTatUnitComboBox.SelectedIndex = 1; // Total TAT Unit this.totalTatUnitComboBox.Properties.Items.Add("Sec"); this.totalTatUnitComboBox.Properties.Items.Add("Min"); this.totalTatUnitComboBox.Properties.Items.Add("Hour"); this.totalTatUnitComboBox.Properties.Items.Add("Day"); this.totalTatUnitComboBox.SelectedIndex = 3; }
private void SetControl() { this.PlanStartTime = _result.StartTime; this.PlanEndTime = this.PlanStartTime.AddDays(_result.GetPlanPeriod(1)); this.dateEdit1.DateTime = this.PlanStartTime; this.dateEdit1.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True; this.dateEdit1.Properties.VistaEditTime = DevExpress.Utils.DefaultBoolean.True; SetControl_AreaID(); SetControl_ProductID(); SetControl_StepID(); }
private void SetControl() { this.fromDateEdit.DateTime = _planStartTime; this.fromDateEdit.Properties.EditMask = "yyyy-MM-dd HH:mm:ss"; this.fromDateEdit.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True; this.fromDateEdit.Properties.VistaEditTime = DevExpress.Utils.DefaultBoolean.True; dayShiftSpinEdit.Value = _result.GetPlanPeriod(1); // ShopID ComboBox ComboHelper.AddDataToComboBox(this.shopIdComboBoxEdit, _result, SimInputData.InputName.StdStep, SimInputData.StdStepSchema.SHOP_ID, false); if (this.shopIdComboBoxEdit.Properties.Items.Count > 0) { this.shopIdComboBoxEdit.SelectedIndex = 0; } // EqpGroup CheckComboBox SetControl_EqpGroup(this.TargetShopID); }
public static int GetResultPlanPeriod(IExperimentResultItem _result) { return(_result.GetPlanPeriod(1)); }