public void Update(modelOrganization organization, bool reload = true)
 {
     if (organization.CreatedDate.Year < 2000)
     {
         organization.CreatedDate = new DateTime(2000, 1, 1);
     }
     organization.UpdatedDate = DateTime.Now;
     db.Update("tblOrganization", "ID", organization);
     if (reload)
     {
         LoadOrganizations();
     }
 }
示例#2
0
 public void Update(modelProjectActivityVariation activityvariation, bool reload = true)
 {
     if (activityvariation.CreatedDate.Year < 2000)
     {
         activityvariation.CreatedDate = new DateTime(2000, 1, 1);
     }
     activityvariation.UpdatedDate = DateTime.Now;
     db2.Update("tblProjectActivityVariation", "ID", activityvariation);
     if (reload)
     {
         LoadProjectActivityVariations();
     }
 }
示例#3
0
 public void Update(modelProjectActivity projactivity, bool reload = true)
 {
     if (projactivity.CreatedDate.Year < 2000)
     {
         projactivity.CreatedDate = new DateTime(2000, 1, 1);
     }
     projactivity.UpdatedDate = DateTime.Now;
     db4.Update("tblProjectActivity", "ID", projactivity);
     if (reload)
     {
         LoadProjectActivities();
     }
 }
示例#4
0
 public void Update(modelProjectVariationOrganization projectVariationOrg, bool reload = true)
 {
     if (projectVariationOrg.CreatedDate.Year < 2000)
     {
         projectVariationOrg.CreatedDate = new DateTime(2000, 1, 1);
     }
     projectVariationOrg.UpdatedDate = DateTime.Now;
     db3.Update("tblProjectVariationOrganization", "ID", projectVariationOrg);
     if (reload)
     {
         LoadProjectVariationOrganizations();
     }
 }
示例#5
0
 public void Update(modelPerson person, bool reload = true)
 {
     if (person.CreatedDate.Year < 2000)
     {
         person.CreatedDate = new DateTime(2000, 1, 1);
     }
     person.UpdatedDate = DateTime.Now;
     db.Update("tblPerson", "ID", person);
     if (reload)
     {
         LoadPersons();
     }
 }
示例#6
0
 public void Update(modelActivityType activitytype, bool reload = true)
 {
     if (activitytype.CreatedDate.Year < 2000)
     {
         activitytype.CreatedDate = new DateTime(2000, 1, 1);
     }
     activitytype.UpdatedDate = DateTime.Now;
     db.Update("tblActivityType", "ID", activitytype);
     if (reload)
     {
         LoadActivityTypes();
     }
 }
示例#7
0
 public void Update(modelProject project, bool reload = true)
 {
     if (project.CreatedDate.Year < 2000)
     {
         project.CreatedDate = new DateTime(2000, 1, 1);
     }
     project.UpdatedDate = DateTime.Now;
     db.Update("tblProject", "ID", project);
     if (reload)
     {
         LoadProjects();
     }
 }
示例#8
0
 public void Update(modelRole role, bool reload = true)
 {
     if (role.CreatedDate.Year < 2000)
     {
         role.CreatedDate = new DateTime(2000, 1, 1);
     }
     role.UpdatedDate = DateTime.Now;
     db.Update("tblRole", "ID", role);
     if (reload)
     {
         LoadRoles();
     }
 }