Ejemplo n.º 1
0
		private void GetCompanyID()
		{
			BPCompanyUsers bp = new BPCompanyUsers();
			BECompanyUsers DSCompanyUsers = bp.SelectCompanyInfoByCompanyUserID(Convert.ToInt32(OryxUser.OryxIdentity.MemberID));
			BECompanyUsers.tbl_CompanyUsersRow companyuser = DSCompanyUsers.tbl_CompanyUsers.FindByCompanyUserID(Convert.ToInt32(OryxUser.OryxIdentity.MemberID));

			CompanyID = companyuser.CompanyID;
			CompanyName = companyuser.CompanyName;
		}
Ejemplo n.º 2
0
		private void GetCompanyLogo()
		{
			BPCompanyUsers bp = new BPCompanyUsers();
			DSCompanyUsers = bp.SelectCompanyInfoByCompanyUserID(UserID);
			BECompanyUsers.tbl_CompanyUsersRow companyuser = DSCompanyUsers.tbl_CompanyUsers.FindByCompanyUserID(UserID);

			CompanyID = companyuser.CompanyID;
			if (!companyuser.IsCompanyImageNameNull())
			{
				string CompanyImageName = companyuser.CompanyImageName;
				imgLogo.ImageUrl = "uploads/l_" + CompanyImageName;
				imgLogo.Visible = true;
				lblCompanyName.Visible = false;
			}
			else
			{
				string CompanyName = companyuser.CompanyName;
				imgLogo.Visible = false;
				lblCompanyName.Visible = true;
				lblCompanyName.Text = CompanyName;
			}
		}