コード例 #1
0
    protected void BindInvoiceCount()
    {
        try
        {
            DataTable dt = BLL_POLOG_Register.POLOG_Get_Approved_Invoice_Count(UDFLib.ConvertStringToNull(ddlSupplier.SelectedValue),
                                                                               UDFLib.ConvertIntegerToNull(ddlVessel.SelectedValue), UDFLib.ConvertStringToNull(ddlOwner.SelectedValue), chkUrgent.Checked ? 1: 0, UDFLib.ConvertIntegerToNull(GetSessionUserID()));

            if (dt.Rows.Count > 0)
            {
                divInvoiceCount.Visible  = true;
                gvInviceCount.DataSource = dt;
                gvInviceCount.DataBind();
            }
            else
            {
                divInvoiceCount.Visible  = false;
                gvInviceCount.DataSource = dt;
                gvInviceCount.DataBind();
            }
        }
        catch { }
        {
        }
    }