public void Insert(modelProject project, bool reload = true) { if (project.ID == 0) { project.ID = Program.GData.LongID(); project.CreatedDate = DateTime.Now; project.UpdatedDate = DateTime.Now; } db.Insert("tblProject", "ID", false, project); if (reload) { LoadProjects(); } }
public void Insert(modelActivityType activitytype, bool reload = true) { if (activitytype.ID == 0) { activitytype.ID = Program.GData.LongID(); activitytype.CreatedDate = DateTime.Now; activitytype.UpdatedDate = DateTime.Now; } db.Insert("tblActivityType", "ID", false, activitytype); if (reload) { LoadActivityTypes(); } }
public void Insert(modelRole role, bool reload = true) { if (role.ID == 0) { role.ID = Program.GData.LongID(); role.CreatedDate = DateTime.Now; role.UpdatedDate = DateTime.Now; } db.Insert("tblRole", "ID", false, role); if (reload) { LoadRoles(); } }
public void Insert(modelOrganization organization, bool reload = true) { if (organization.ID == 0) { organization.ID = Program.GData.LongID(); organization.CreatedDate = DateTime.Now; organization.UpdatedDate = DateTime.Now; } db.Insert("tblOrganization", "ID", false, organization); if (reload) { LoadOrganizations(); } }
public void Insert(modelProjectActivity projactivity, bool reload = true) { if (projactivity.ID == 0) { projactivity.ID = Program.GData.LongID(); projactivity.CreatedDate = DateTime.Now; projactivity.UpdatedDate = DateTime.Now; } db4.Insert("tblProjectActivity", "ID", false, projactivity); if (reload) { LoadProjectActivities(); } }
public void Insert(modelProjectActivityVariation activityvariation, bool reload = true) { if (activityvariation.ID == 0) { activityvariation.ID = Program.GData.LongID(); activityvariation.CreatedDate = DateTime.Now; activityvariation.UpdatedDate = DateTime.Now; } db2.Insert("tblProjectActivityVariation", "ID", false, activityvariation); if (reload) { LoadProjectActivityVariations(); } }
public void Insert(modelProjectVariationOrganization projectVariationOrg, bool reload = true) { if (projectVariationOrg.ID == 0) { projectVariationOrg.ID = Program.GData.LongID(); projectVariationOrg.CreatedDate = DateTime.Now; projectVariationOrg.UpdatedDate = DateTime.Now; } db3.Insert("tblProjectVariationOrganization", "ID", false, projectVariationOrg); if (reload) { LoadProjectVariationOrganizations(); } }
public void Insert(modelPerson person, bool reload = true) { if (person.ID == 0) { person.ID = Program.GData.LongID(); person.CreatedDate = DateTime.Now; person.UpdatedDate = DateTime.Now; } db.Insert("tblPerson", "ID", false, person); if (reload) { LoadPersons(); } }