Example #1
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;
		}
Example #2
0
		public void UpdateCompanyGroupPermissions(BECompanyGroups dsCompanyGroups)
		{
			DACompanyGroupPermissions daGroupPerm = new DACompanyGroupPermissions();

			daGroupPerm.Update( dsCompanyGroups.tbl_CompanyGroupPermissions);
		}