Esempio n. 1
0
        private void GetInvoiceStatusDetails(int iInvoiceID, string iDocType)
        {
            dtbl = objInvoice.GetAPCommentsGMG(iInvoiceID, iDocType);
            int sHold = objInvoice.GetAPCommLinkColor(iInvoiceID, iDocType);

            if (sHold == 1)
            {
                chkHold.Checked = true;
            }

            if (dtbl.Rows.Count > 0)
            {
                dgSalesCallDetails.Visible    = true;
                dgSalesCallDetails.DataSource = dtbl;
                dgSalesCallDetails.DataBind();
            }
            else
            {
                dgSalesCallDetails.Visible = false;
                lblMessage.Text            = "Sorry, this document has no previous AP Comments.";
            }
        }