private void LoadCompaniesGrid() { try { //string standardstewardshipIds = ""; //standardstewardshipIds = System.Configuration.ConfigurationManager.AppSettings["StewardshipStandardIDs"]; //OrganizationInfo objorg = new OrganizationInfo(UserOrganizationId); //string[] arr = standardstewardshipIds.Split(','); //bool isstewardship = false; //foreach (var id in arr) //{ // if (Conversion.ParseInt(id) == objorg.OrganizationTypeId) // isstewardship = true; //} //// UserInfo userobj = new UserInfo(LoginMemberId); //if (isstewardship) //{ // DataSet ds = Lots.GetAllCompanieswithAddressbyStewardshipId(UserOrganizationId); // grvOrganizations.DataSource = ds; // grvOrganizations.DataBind(); // grvTanspoterOrganizations.DataSource = ds; // grvTanspoterOrganizations.DataBind(); //} //else //{ DataSet ds = Lots.GetAllCompanieswithAddressWithinSameStewardship(UserOrganizationId, CatId); grvOrganizations.DataSource = ds; grvOrganizations.DataBind(); //} } catch (Exception ex) { new SqlLog().InsertSqlLog(0, "lotInfo .LoadCompaniesGrid", ex); } }
protected void LoadBasicInfo() { DataSet ds = Lots.GetAllCompanieswithAddressWithinSameStewardship(322, CatId); grvOrganizations.DataSource = ds; grvOrganizations.DataBind(); }