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; }
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; } }