Пример #1
0
		protected void FillSelectedCompanies()
		{	
			if (CompanyUserID > 0)
			{
				ChangedCompanies.Value = "false";

				ddlSelectedCompanies.Items.Clear();

				BPCompanyUserCompanies bp = new BPCompanyUserCompanies();
				DSCompanies = bp.SelectCompanyUserCompaniesByCompanyUserID(CompanyUserID);
				if (DSCompanies.tbl_CompanyUserCompanies.Count > 0)
				{
					ddlSelectedCompanies.DataTextField = "CompanyName";
					ddlSelectedCompanies.DataValueField = "CompanyID";
					ddlSelectedCompanies.DataBind();

					SelectedCompanies.Value = "";
					foreach (BECompanyUsers.tbl_CompanyUserCompaniesRow content in DSCompanies.tbl_CompanyUserCompanies)
					{
						SelectedCompanies.Value +=  content.CompanyID + ",";
					}
				}
			}
		}
Пример #2
0
		private void ViewAssignedCompanies()
		{
			BPCompanyUserCompanies bp = new BPCompanyUserCompanies();
			DSCompanies = bp.SelectCompanyUserCompaniesByCompanyUserID(CompanyUserID);
			dgAssignedCompanies.DataBind();
		}