Exemplo n.º 1
0
        }                                                 //End public void Close(CPAR_VerifyVM poViewModel)

        public void Cancel(CPAR_VerifyVM poViewModel)
        {
            string vsMsgErr = "";

            try
            {
                using (var db = new DBMAINContext())
                {
                    CPAR oModel = db.CPARs.AsNoTracking().SingleOrDefault(fld => fld.RUID == poViewModel.RUID);
                    //Map Form Data
                    //Mapper.CreateMap<CPAR_DetailVM, CPAR>();
                    //oModel = Mapper.Map<CPAR_DetailVM, CPAR>(poViewModel);
                    //Set Field Header
                    oModel.setFIELD_HEADER(hlpFlags_CRUDOption.UPDATE);
                    //Set DTA_STS
                    oModel.DTA_STS = valFLAG.FLAG_CRUDOPT_UPDATE;
                    //Set FIELD
                    oModel.setFIELD_cancel();
                    //Process CRUD
                    db.Entry(oModel).State = EntityState.Modified;
                    db.SaveChanges();
                    this.RUID = oModel.RUID;
                }                                         //End using
            }                                             //End try
            catch (Exception e) { vsMsgErr = e.Message; } //End catch
        }                                                 //End public void Cancel(CPAR_VerifyVM poViewModel)
Exemplo n.º 2
0
 } //End public void setFIELD_response()
 public void setFIELD_response(CPAR_VerifyVM poViewModel)
 {
     //this.CPAR_TRGT_DT = poViewModel.CPAR_TRGT_DT;
     //this.CPAR_FINISH_DT = poViewModel.CPAR_FINISH_DT;
     this.CPAR_STEP = valFLAG.FLAG_CPAR_STEP_RESPONDED;
     this.CPAR_RESOLUTION1 = poViewModel.CPAR_RESOLUTION1;
     this.CPAR_RESOLUTION2 = poViewModel.CPAR_RESOLUTION2;
     this.CPAR_RESOLUTION3 = poViewModel.CPAR_RESOLUTION3;
 } //End public void setFIELD_response()
Exemplo n.º 3
0
        } //End public CPAR_Validation()

        //Constructor 2
        public CPAR_Validation(CPAR_VerifyVM poViewModel)
        {
            this.oViewModel_verify = poViewModel;
            this.oViewModel        = new CPAR_DetailVM();
            //Map Form Data
            Mapper.CreateMap <CPAR_VerifyVM, CPAR_DetailVM>();
            this.oViewModel = Mapper.Map <CPAR_VerifyVM, CPAR_DetailVM>(oViewModel_verify);

            this.sROLE_RUID = hlpConfig.SessionInfo.getAppRoleRUID();
            this.sRES_RUID  = hlpConfig.SessionInfo.getAppUsrRES_RUID();
            this.sDEPT_RUID = hlpConfig.SessionInfo.getAppUsrDEPT_RUID();
            this.CPAR_TYPE  = poViewModel.CPAR_TYPE;
        } //End public CPAR_Validation()
Exemplo n.º 4
0
        } //End public void setFIELD_response()
        public void setFIELD_verify(CPAR_VerifyVM poViewModel)
        {
            this.CPAR_STEP = valFLAG.FLAG_CPAR_STEP_VERIFIED;
            this.VFKS1_DT = poViewModel.VFKS1_DT;
            this.VFKS1_DESC = poViewModel.VFKS1_DESC;
            this.VFKS1_PIC = poViewModel.VFKS1_PIC;

            this.VFKS2_DT = poViewModel.VFKS2_DT;
            this.VFKS2_DESC = poViewModel.VFKS2_DESC;
            this.VFKS2_PIC = poViewModel.VFKS2_PIC;
            
            this.VFKS3_DT = poViewModel.VFKS3_DT;
            this.VFKS3_DESC = poViewModel.VFKS3_DESC;
            this.VFKS3_PIC = poViewModel.VFKS3_PIC;
            
            this.VFKS4_DT = poViewModel.VFKS4_DT;
            this.VFKS4_DESC = poViewModel.VFKS4_DESC;
            this.VFKS4_PIC = poViewModel.VFKS4_PIC;
            
            this.VFKS5_DT = poViewModel.VFKS5_DT;
            this.VFKS5_DESC = poViewModel.VFKS5_DESC;
            this.VFKS5_PIC = poViewModel.VFKS5_PIC;
        } //End public void setFIELD_verify()