Esempio n. 1
0
    public void GetOpenInvoiceNos()
    {
        invObj = new InvoiceClass();
        DataTable dtInv = invObj.GetOpenInvoiceNos();

        if (dtInv.Rows.Count > 0)
        {
            ddlPendingInvoiceNumber.DataSource     = dtInv;
            ddlPendingInvoiceNumber.DataValueField = "invIdUniqueNo";
            ddlPendingInvoiceNumber.DataTextField  = "invoiceNo";
            ddlPendingInvoiceNumber.DataBind();
            ddlPendingInvoiceNumber.Items.Insert(0, new ListItem("-- Select Invoice No --", "0"));
        }
        else
        {
            ddlPendingInvoiceNumber.Items.Insert(0, new ListItem("-- No Pending Invoice --", "0"));
        }
    }