Example #1
0
    protected void ImgExpExcel_Click(object sender, EventArgs e)
    {
        int rowcount = ucCustomPagerItems.isCountRecord;

        int countrycode = 0;

        if (ddlSearchCountry.SelectedValue != "0")
        {
            countrycode = Convert.ToInt32(ddlSearchCountry.SelectedValue.ToString());
        }

        string sortbycoloumn = (ViewState["SORTBYCOLOUMN"] == null) ? null : (ViewState["SORTBYCOLOUMN"].ToString());
        int?   sortdirection = null; if (ViewState["SORTDIRECTION"] != null)
        {
            sortdirection = Int32.Parse(ViewState["SORTDIRECTION"].ToString());
        }


        DataTable dt = BLL_OPS_BunkerAnalysis.Get_LOTestingLabList(txtfilter.Text, countrycode, GetSessionUserID(), sortbycoloumn, sortdirection, ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount);

        string[] HeaderCaptions  = { "ID", "Lab Name", "Country", "Address", "EMail", "Phone" };
        string[] DataColumnsName = { "ID", "lab_Name", "Country_Name", "Address", "EMail", "Phone" };

        GridViewExportUtil.ShowExcel(dt, HeaderCaptions, DataColumnsName, "Labs", "Labs", "");
    }
Example #2
0
    public void Load_LOLabList()
    {
        int       rowcount = 0;
        DataTable dt       = BLL_OPS_BunkerAnalysis.Get_LOTestingLabList("", 0, GetSessionUserID(), null, null, 0, 0, ref rowcount);

        ddlLabList.DataSource = dt;
        ddlLabList.DataBind();
    }
Example #3
0
    public void Bind_LOTestingLabs()
    {
        int rowcount = ucCustomPagerItems.isCountRecord;

        int countrycode = 0;

        if (ddlSearchCountry.SelectedValue != "0")
        {
            countrycode = Convert.ToInt32(ddlSearchCountry.SelectedValue.ToString());
        }

        string sortbycoloumn = (ViewState["SORTBYCOLOUMN"] == null) ? null : (ViewState["SORTBYCOLOUMN"].ToString());
        int?   sortdirection = null; if (ViewState["SORTDIRECTION"] != null)
        {
            sortdirection = Int32.Parse(ViewState["SORTDIRECTION"].ToString());
        }


        DataTable dt = BLL_OPS_BunkerAnalysis.Get_LOTestingLabList(txtfilter.Text, countrycode, GetSessionUserID(), sortbycoloumn, sortdirection, ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount);

        GridView_Labs.DataSource = dt;
        GridView_Labs.DataBind();
    }