예제 #1
0
        public void Insert(int ProjectID, string Name, string Description, DateTime?StartDate, DateTime?ExpEndDate, DateTime?ActEndDate)
        {
            ModuleX item = new ModuleX();

            item.ProjectID = ProjectID;

            item.Name = Name;

            item.Description = Description;

            item.StartDate = StartDate;

            item.ExpEndDate = ExpEndDate;

            item.ActEndDate = ActEndDate;


            item.Save(UserName);
        }
예제 #2
0
        public void Update(int Id, int ProjectID, string Name, string Description, DateTime?StartDate, DateTime?ExpEndDate, DateTime?ActEndDate)
        {
            ModuleX item = new ModuleX();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.ProjectID = ProjectID;

            item.Name = Name;

            item.Description = Description;

            item.StartDate = StartDate;

            item.ExpEndDate = ExpEndDate;

            item.ActEndDate = ActEndDate;

            item.Save(UserName);
        }
예제 #3
0
 public bool Destroy(object Id)
 {
     return(ModuleX.Destroy(Id) == 1);
 }
예제 #4
0
 public bool Delete(object Id)
 {
     return(ModuleX.Delete(Id) == 1);
 }