Esempio n. 1
0
 public bool AuditPlanningMemorandum(AuditPlanningMemorandum org)
 {
     try
     {
         entities.AuditPlanningMemorandums.Add(org);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 2
0
 public bool DeleteAuditPlanningMemorandum(int mCustID)
 {
     try
     {
         AuditPlanningMemorandum data = entities.AuditPlanningMemorandums.Where(m => m.AuditPlanningMemorandumID == mCustID).FirstOrDefault();
         entities.AuditPlanningMemorandums.Remove(data);
         entities.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 3
0
        public bool UpdateAuditPlanningMemorandum(AuditPlanningMemorandum org)
        {
            try
            {
                AuditPlanningMemorandum data = entities.AuditPlanningMemorandums.Where(m => m.AuditPlanningMemorandumID == org.AuditPlanningMemorandumID).FirstOrDefault();

                data.NomerAPM              = org.NomerAPM;
                data.PreliminaryID         = org.PreliminaryID;
                data.Date_Start            = org.Date_Start;
                data.Date_End              = org.Date_End;
                data.Status                = org.Status;
                data.ActivityID            = org.ActivityID;
                data.TujuanAudit           = org.TujuanAudit;
                data.RuangLingkupAudit     = org.RuangLingkupAudit;
                data.MetodologiAudit       = org.MetodologiAudit;
                data.DataDanDokumen        = org.DataDanDokumen;
                data.EntryMeetingDateStart = org.EntryMeetingDateStart;
                //data.EntryMeetingDateEnd = org.EntryMeetingDateEnd;
                data.WalktroughDateStart  = org.WalktroughDateStart;
                data.WalktroughDateEnd    = org.WalktroughDateEnd;
                data.FieldWorkDateStart   = org.FieldWorkDateStart;
                data.FieldWorkDateEnd     = org.FieldWorkDateEnd;
                data.ExitMeetingDateStart = org.ExitMeetingDateStart;
                //data.ExitMeetingDateEnd = org.ExitMeetingDateEnd;
                data.LHADateStart = org.LHADateStart;
                //data.LHADateEnd = org.LHADateEnd;
                data.PICID        = org.PICID;
                data.SupervisorID = org.SupervisorID;
                data.TeamLeaderID = org.TeamLeaderID;
                data.MemberID     = org.MemberID;

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