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(); } }
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(); } }
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(); } }
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(); } }
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(); } }
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(); } }
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(); } }
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(); } }