Example #1
0
		public BECompanyGroups SelectCompanyGroupsByID(int CompanyGroupID)
		{
			BECompanyGroups ds = new BECompanyGroups();
			DACompanyGroups da = new DACompanyGroups();

			da.SelectByID(CompanyGroupID.ToString(), ds.tbl_CompanyGroups);
			return ds;
		}
Example #2
0
		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;
		}