public BECompanyGroups SelectCompanyGroupsByID(int CompanyGroupID) { BECompanyGroups ds = new BECompanyGroups(); DACompanyGroups da = new DACompanyGroups(); da.SelectByID(CompanyGroupID.ToString(), ds.tbl_CompanyGroups); return ds; }
public BECompanyGroups SelectCompanyGroupPermissionsByCompanyGroupID(int CompanyGroupID) { DACompanyGroups daGroups = new DACompanyGroups(); DACompanyGroupPermissions daGroupPerms = new DACompanyGroupPermissions(); DACompanyPermissions daPerms = new DACompanyPermissions(); DACompanyPermissionValues daPermValues = new DACompanyPermissionValues(); BECompanyGroups ds = new BECompanyGroups(); //ds.EnforceConstraints = false; daGroups.SelectByID(CompanyGroupID.ToString(), ds.tbl_CompanyGroups); daPerms.SelectAll(ds.tbl_CompanyPermissions); daGroupPerms.SelectByID(CompanyGroupID.ToString(), ds.tbl_CompanyGroupPermissions); daPermValues.SelectAll(ds.tbl_CompanyPermissionValues); return ds; }