public void BindSupplierGrid()
    {
        if (SBillID != 0)
        {
            divSuppDetails.Attributes["class"] = "show";

            DataTable    mEditDTable = new DataTable();
            DataTable    mSuppDTable = new DataTable();
            SupplierBill sbillm      = new SupplierBill();

            // Summary

            sbillm.Flag    = "Edit";
            sbillm.SBillID = SBillID;

            mEditDTable          = sbillm.GetSupplierDetails().Tables[0];
            lblSBillID.Text      = mEditDTable.Rows[0]["SBillID"].ToString();
            lblSupplierCode.Text = mEditDTable.Rows[0]["SupplierCode"].ToString();
            txtSupplierName.Text = mEditDTable.Rows[0]["SupplierName"].ToString();
            lblPurchaseCode.Text = mEditDTable.Rows[0]["PurchaseCode"].ToString();
            txtPurchaseName.Text = mEditDTable.Rows[0]["PurchaseName"].ToString();
            txtInvoiceNo.Text    = mEditDTable.Rows[0]["InvoiceNo"].ToString();
            txtInvoiceDate.Text  = mEditDTable.Rows[0]["InvoiceDate"].ToString();

            BindGSTPerDropDown(lblSupplierCode.Text);
            ddlGSTPer.SelectedValue = mEditDTable.Rows[0]["GSTPer"].ToString();

            // Details

            sbillm.Flag    = "Details";
            sbillm.SBillID = SBillID;

            mSuppDTable         = sbillm.GetSupplierDetails().Tables[0];
            Session["tempdata"] = mSuppDTable;
        }
    }
    public void GetSupplierDetails()
    {
        DataSet      mDSet  = new DataSet();
        SupplierBill sbillm = new SupplierBill();

        sbillm.Flag      = "All";
        sbillm.SBillID   = 0;
        sbillm.InvoiceNo = 0;
        //sbillm.FromDate = "";
        //sbillm.ToDate = "";

        mDSet = sbillm.GetSupplierDetails();

        gvSupplierBill.DataSource = mDSet.Tables[0];
        gvSupplierBill.DataBind();
    }