Ejemplo n.º 1
0
 public void Delete(modelOrganizationType orgtypes, bool reload = true)
 {
     db.Delete("tblOrganizationType", "ID", orgtypes);
     if (reload)
     {
         LoadOrganizationTypes();
     }
 }
Ejemplo n.º 2
0
 public void Update(modelOrganizationType orgtypes, bool reload = true)
 {
     if (orgtypes.CreatedDate.Year < 2000)
     {
         orgtypes.CreatedDate = new DateTime(2000, 1, 1);
     }
     orgtypes.UpdatedDate = DateTime.Now;
     db.Update("tblOrganizationType", "ID", orgtypes);
     if (reload)
     {
         LoadOrganizationTypes();
     }
 }
Ejemplo n.º 3
0
 public void Insert(modelOrganizationType orgtypes, bool reload = true)
 {
     if (orgtypes.ID == 0)
     {
         orgtypes.ID          = Program.GData.LongID();
         orgtypes.CreatedDate = DateTime.Now;
         orgtypes.UpdatedDate = DateTime.Now;
     }
     db.Insert("tblOrganizationType", "ID", false, orgtypes);
     if (reload)
     {
         LoadOrganizationTypes();
     }
 }