示例#1
0
    private void BindGridDataFiter(string filter)
    {
        string connection           = Request.Cookies["Company"].Value;
        IInternalTransferService bl = new BusinessLogic(connection);
        string branch = Request.Cookies["Branch"].Value;
        var    dbData = bl.ListInternalRequests(connection, filter, "Status", branch);

        if (dbData != null)
        {
            GrdViewRequestes.DataSource = dbData;
            GrdViewRequestes.DataBind();
        }
    }
示例#2
0
    private void BindGridData()
    {
        string connection           = Request.Cookies["Company"].Value;
        IInternalTransferService bl = new BusinessLogic(connection);
        string branch = Request.Cookies["Branch"].Value;
        var    dbData = bl.ListInternalRequests(connection, txtSearch.Text, ddCriteria.SelectedValue, branch);

        if (dbData != null)
        {
            GrdViewRequestes.DataSource = dbData;
            GrdViewRequestes.DataBind();
        }
    }