Ejemplo n.º 1
0
 public LogViewModel(UserInformation userInformation)
 {
     _pccsBll  = new PCCSBll(userInformation);
     _logBll   = new LogViewBll(userInformation);
     PccsModel = new PCCSModel();
     logmodel  = new LogModel();
     this.selectChangeComboCommandPartNo = new DelegateCommand(this.SelectDataRowPart);
     LoadCmbDatas();
     SetdropDownItems();
 }
Ejemplo n.º 2
0
 /// <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();
     }
 }
Ejemplo n.º 3
0
        public TfcViewModel(UserInformation _userinformation)
        {
            tfcbll           = new TfcBll(_userinformation);
            this._logviewBll = new LogViewBll(_userinformation);

            TFCMODEL = new TfcModel();

            this.selectChangeComboCommandPartNo = new DelegateCommand(this.SelectDataRowPart);
            this.mousecombocommand     = new DelegateCommand(this.MouseClick);
            this.printClickCommand     = new DelegateCommand(this.PrintCommand);
            this.saveClickCommand      = new DelegateCommand(this.SaveCommand);
            this._onAvailChkYesCommand = new DelegateCommand(this.AvailChkYesCommand);
            this._onAvailChkNoCommand  = new DelegateCommand(this.AvailChkNoCommand);
            this._onAvailChkPtCommand  = new DelegateCommand(this.AvailChkPtCommand);
            this._onAvailChkPlCommand  = new DelegateCommand(this.AvailChkPlCommand);
            this._onAvailChkPrCommand  = new DelegateCommand(this.AvailChkPrCommand);
            this._onAvailChkF1Command  = new DelegateCommand(this.AvailChkF1Command);
            this._onAvailChkF2Command  = new DelegateCommand(this.AvailChkF2Command);
            this._onAvailChkNfCommand  = new DelegateCommand(this.AvailChkNfCommand);
            LoadCmbDatas();
            SetdropDownItems();
            Clear();
        }
Ejemplo n.º 4
0
        public ControlPlanRptViewModel(UserInformation userInfo, string partNo, string processNo, string seqNo)
        {
            _onSaveCommand  = new DelegateCommand(this.SaveCommand);
            _onPrintCommand = new DelegateCommand(this.PrintCommand);
            //new
            //_onExportCommand = new DelegateCommand(this.ExportCommand);
            //end

            _onSelectedOperCommand = new DelegateCommand(this.SelectedOperCommand);
            _controlPlanRptModel   = new ControlPlanRptModel();
            _cpgbll          = new ControlPlanRptBll(userInfo);
            this._logviewBll = new LogViewBll(userInfo);
            this.selectChangeComboCommandContactPerson = new DelegateCommand(this.SelectDataRowContactPerson);
            this.selectChangeComboCommandFax           = new DelegateCommand(this.SelectDataRowFax);
            this.selectChangeComboCommandPhone         = new DelegateCommand(this.SelectDataRowPhone);
            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.rbtnProtoTypeCommand  = new DelegateCommand <string>(this.RbtnProtoTypeCommand);
            this.rbtnPreLaunchCommand  = new DelegateCommand <string>(this.RbtnPreLaunchCommand);
            this.rbtnProductionCommand = new DelegateCommand <string>(this.RbtnProductionCommand);
            this.rbtnAllOperCommand    = new DelegateCommand <string>(this.RbtnAllOperCommand);
            this.rbtnSelectOperCommand = new DelegateCommand <string>(this.RbtnSelectOperCommand);

            SetdropDownItems();
            ControlPlanRptModel.PartNo  = partNo;
            ControlPlanRptModel.RouteNo = processNo;
            ControlPlanRptModel.SeqNo   = seqNo;
            if (ControlPlanRptModel.PartNo.IsNotNullOrEmpty() && ControlPlanRptModel.RouteNo.IsNotNullOrEmpty())
            {
                _cpgbll.GetCPRptCPM(ControlPlanRptModel);
                _cpgbll.GetCPRptLoadCurrentPartNo(ControlPlanRptModel);
                _cpgbll.GetCPRptLoadSeqNo(ControlPlanRptModel);
                if (ControlPlanRptModel.ControlPlanType == "")
                {
                    ControlPlanRptModel.ControlPlanType = "PRE LAUNCH";
                }
                if (ControlPlanRptModel.ControlPlanType == "PRE LAUNCH")
                {
                    RbtnProtoType  = false;
                    RbtnPreLaunch  = true;
                    RbtnProduction = false;
                }
                else if (ControlPlanRptModel.ControlPlanType == "PRODUCTION")
                {
                    RbtnProtoType  = false;
                    RbtnPreLaunch  = false;
                    RbtnProduction = true;
                }
                else if (ControlPlanRptModel.ControlPlanType == "PROTOTYPE")
                {
                    RbtnProtoType  = true;
                    RbtnPreLaunch  = false;
                    RbtnProduction = false;
                }
                else if (ControlPlanRptModel.ControlPlanType == "")
                {
                    RbtnProtoType  = false;
                    RbtnPreLaunch  = true;
                    RbtnProduction = false;
                }
                _cpgbll.GetCPRptIssueNoCurrentPartNo(ControlPlanRptModel);
            }
            else
            {
                PDMsg.NotEmpty("Part No");
            }
        }