/************************************************************
    Function Name: BindCompanies
    Functionality: This function is used to bind the company grid
    *********************************************************************/
    private void BindCompanies(char isSearch)
    {
        oCompanyManager = new BLL.CompanyManager();

        GVUsers.DataSource = oCompanyManager.SearchRequestedUsersForCompanies(Convert.ToInt32(ddlCompany.SelectedValue), 'I');
        GVUsers.DataBind();
        if (isSearch.Equals('Y'))
            lblResultMsg.Text = GVUsers.Rows.Count.ToString() + " Record(s) found.";

        if (GVUsers.Rows.Count > 0)
            lnkBtnSendRequest.Visible = true;
        else
            lnkBtnSendRequest.Visible = false;

        oCompanyManager = null;
    }
コード例 #2
0
 /************************************************************
 Function Name: BindCompanies
 Functionality: This function is used to bind the company grid
 *********************************************************************/
 private void BindCompanies()
 {
     oCompanyManager = new BLL.CompanyManager();
     GVUsers.DataSource = oCompanyManager.SearchRequestedUsersForCompanies(Convert.ToInt32(AppLib.GetLoggedInUserId()), Convert.ToChar(ddlStatus.SelectedValue));
     GVUsers.DataBind();
 }