public SeqDwgIssueViewmodel(UserInformation userInfo, string partno) { _userinformation = userInfo; drwBll = new DrawingBll(_userinformation); locBll = new RawMaterial(_userinformation); DV_PROD_DWG_ISSUE = drwBll.GetRevisionDetailsWithOutNewRow(partno, "1"); // LocationMaster = locBll.GetLocations().ToDataTable<DDLOC_MAST>().DefaultView; }
/// <summary> /// constructor for the class CustomerReferenceViewModel /// </summary> /// <param name="userInformation"></param> /// <param name="partNo"></param> /// <param name="screenType"></param> public CustomerReferenceViewModel(UserInformation userInformation, string partNo, string screenType, string partDesc) { try { _userInformation = userInformation; this.saveECNOrPCNCommand = new DelegateCommand(this.SaveECNOrPCN); this.addECNOrPCNCommand = new DelegateCommand(this.AddECNOrPCN); this.editECNOrPCNCommand = new DelegateCommand(this.EditECNOrPCN); this.selectChangeComboPartCommand = new DelegateCommand(this.SelectChangeComboPart); this.lostFocusPartNoCommand = new DelegateCommand(this.LostFocusPartNo); this.printECNOrPCNCommand = new DelegateCommand(this.PrintECNOrPCN); this.closeCommand = new DelegateCommand(this.Close); drwBll = new DrawingBll(_userInformation); this._logviewBll = new LogViewBll(_userInformation); _prod_mast_data_view = drwBll.GetPartNumberDetails(); LoadComboECN(); AddECNOrPCN(); _partNo = partNo; this._enterPartNumber = new DelegateCommand <string>(this.EnterPartNumber); _screenType = screenType; //DDPCNECNModel = new DD_PCN(); DDPCNECNModel.PART_NO = _partNo; DDPCNECNModel.PART_DESC = partDesc; GetCustomerDetails(); //GetDDPCNList(); ECNOrPCNLabel = (_screenType == "ECN" ? "ECN Sheet No : " : "PCN Sheet No"); LostFocusPartNo(); //PCNSheetNo = ""; SFLDrawIssueNo = ""; SFLDrawIssueNo1 = ""; NotifyPropertyChanged("PCNSheetNo"); NotifyPropertyChanged("SFLDrawIssueNo"); NotifyPropertyChanged("SFLDrawIssueNo1"); NotifyPropertyChanged("PartNo"); EditECNOrPCN(); SetComboHeader(); } catch (Exception ex) { throw ex.LogException(); } }