コード例 #1
0
 public bool RCMDetailControlAuditStep(RCMDetailControlAuditStep org)
 {
     try
     {
         entities.RCMDetailControlAuditSteps.Add(org);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
コード例 #2
0
 public bool DeleteRCMDetailControlAuditStep(int mCustID)
 {
     try
     {
         RCMDetailControlAuditStep data = entities.RCMDetailControlAuditSteps.Where(m => m.RCMDetailControlAuditStepID == mCustID).FirstOrDefault();
         entities.RCMDetailControlAuditSteps.Remove(data);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
コード例 #3
0
        public bool UpdateRCMDetailControlAuditStep(RCMDetailControlAuditStep org)
        {
            try
            {
                RCMDetailControlAuditStep data = entities.RCMDetailControlAuditSteps.Where(m => m.RCMDetailControlAuditStepID == org.RCMDetailControlAuditStepID).FirstOrDefault();

                data.RCMDetailRiskControlID = org.RCMDetailRiskControlID;
                data.AuditStepName          = org.AuditStepName;
                data.Status = org.Status;
                data.WorkDoneDescription = org.WorkDoneDescription;
                data.WorkDoneResult      = org.WorkDoneResult;


                entities.SaveChanges();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }