protected void BindInvoice(string SupplyID)
    {
        objChangeReqstMerge.AddMergedColumns(new int[] { 0, 1, 2, 3, 4, 5, 6, 7 }, "Invoice Details", "HeaderStyle-center");
        objChangeReqstMerge.AddMergedColumns(new int[] { 8, 9, 10 }, "Payment", "HeaderStyle-center");
        DataTable dt = BLL_POLOG_Register.POLOG_Get_Invoice(UDFLib.ConvertIntegerToNull(SupplyID.ToString()));

        if (dt.Rows.Count > 0)
        {
            gvInvoiceWithhold.DataSource = dt;
            gvInvoiceWithhold.DataBind();
        }
        else
        {
            gvInvoiceWithhold.DataSource = dt;
            gvInvoiceWithhold.DataBind();
        }
    }
Exemplo n.º 2
0
    protected void BindGrid()
    {
        DataTable dt = BLL_POLOG_Register.POLOG_Get_Invoice(UDFLib.ConvertIntegerToNull(txtPOCode.Text.ToString()));

        if (dt.Rows.Count > 0)
        {
            divPendingPO.Visible = true;
            gvInvoice.DataSource = dt;
            gvInvoice.DataBind();
            BindAttachment(UDFLib.ConvertStringToNull(dt.Rows[0]["Invoice_ID"].ToString()));
            BindPoPreview(UDFLib.ConvertStringToNull(dt.Rows[0]["Supply_ID"].ToString()));
        }
        else
        {
            divPendingPO.Visible = false;
            gvInvoice.DataSource = dt;
            gvInvoice.DataBind();
        }
    }