public EcnCftMeetingRptviewModel(UserInformation userInformation) { CultureInfo ci = CultureInfo.CreateSpecificCulture(CultureInfo.CurrentCulture.Name); ci.DateTimeFormat.ShortDatePattern = "{0:dd/MM/yyyy}"; ci.DateTimeFormat.DateSeparator = "/"; System.Threading.Thread.CurrentThread.CurrentCulture = ci; _bll = new EcnCftMeetingRptBll(userInformation); EcnCftMeetingRptModel = new EcnCftMeetingRptModel(); this.selectChangeComboCommandPartNo = new DelegateCommand(this.SelectDataRowPart); this.selectChangeComboCommandCtm1 = new DelegateCommand(this.SelectDataRowCtm1); this.selectChangeComboCommandCtm2 = new DelegateCommand(this.SelectDataRowCtm2); this.selectChangeComboCommandCtm3 = new DelegateCommand(this.SelectDataRowCtm3); this.selectChangeComboCommandCtm4 = new DelegateCommand(this.SelectDataRowCtm4); this.selectChangeComboCommandCtm5 = new DelegateCommand(this.SelectDataRowCtm5); this.selectChangeComboCommandCtm6 = new DelegateCommand(this.SelectDataRowCtm6); this.selectChangeComboCommandCtm7 = new DelegateCommand(this.SelectDataRowCtm7); this.safetyIsCheckedCommand = new DelegateCommand <string>(this.SafetyIsChecked); this._enterPartNumber = new DelegateCommand <string>(this.EnterPartNumber); this.protoIsCheckedCommand = new DelegateCommand <string>(this.ProtoIsChecked); this.costIsCheckedCommand = new DelegateCommand <string>(this.CostIsChecked); this._onPrintCommand = new DelegateCommand(this.Print); this._onSaveCommand = new DelegateCommand(this.Save); this._onCloseCommand = new DelegateCommand(this.Close); InitLoad(); SetdropDownItems(); FocusButton = true; }
private void InitLoad() { try { EcnCftMeetingRptModel = new EcnCftMeetingRptModel(); _bll.GetCPRptCPM(EcnCftMeetingRptModel); LoadTimeChart(); _bll.GetPartNoDetails(EcnCftMeetingRptModel); EcnCftMeetingRptModel.CFTMeetingIssueNo = ""; EcnCftMeetingRptModel.CFTMeetingDate = null; EcnCftMeetingRptModel.PPAPSampleQty = "300"; } catch (Exception ex) { ex.LogException(); } }