示例#1
0
        public CopyStatusViewModel(string _varProcess, string _oldPartNo, string _oldRouteNo, string _oldSeqNo = "", string _oldCC = "", string _oldSH = "")
        {
            UserInformation user = (UserInformation)App.Current.Properties["userinfo"];

            userinformation = user;

            OldPartNo  = _oldPartNo;
            OldRouteNo = _oldRouteNo;
            oldSeqNo   = _oldSeqNo;
            oldShNo    = _oldSH;
            OldCCSno   = _oldCC;

            // NewPartNo = _newPartNo;
            VarProcess            = _varProcess;
            this.copyClickCommand = new DelegateCommand(this.CopyPartNo);
            this._onCloseCommand  = new DelegateCommand(this.Close);
            cpyBll     = new CopyStatusBLL(userinformation);
            cpyProcess = new CopyProcess(userinformation);
            LoadData();
            this.onCheckBoxClicked = new DelegateCommand(this.EnableDisableTextBoxs);
            this.selectChangeComboCommandNewPartNo   = new DelegateCommand(this.SelectDataRowNewPart);
            this.selectChangeComboCommandNewRoute    = new DelegateCommand(this.SelectDataRowNewRoute);
            this.selectChangeComboCommandNewSequence = new DelegateCommand(this.SelectDataRowNewSequence);
            //if (IschkControlPlan == true && IschkDrawings == false && ischkPrdMast == false && IschkProcessSheet == false && IschkToolSchedule == false)
            //{
            //    IsNewPartNoReadonly = true;
            //    ButtonVisibleNewPartNumber = Visibility.Visible;
            //    IsNewRouteNoReadonly = true;
            //    ButtonVisibleNewRouteNumber = Visibility.Visible;
            //    IsNewSeqNoReadonly = true;
            //    ButtonVisibleNewSeqNumber = Visibility.Visible;
            //    SetdropDownItems();
            //    NewPartNoDetails = cpyBll.GetPartNoDetails(NewPartNoDetails);
            //}
        }
示例#2
0
        private void CopyPartNo()
        {
            Progress.ProcessingText = PDMsg.Copy;
            Progress.Start();

            cpyBll     = new CopyStatusBLL(userinformation);
            cpyProcess = new CopyProcess(userinformation);
            DataValidation();

            Progress.End();
        }