예제 #1
0
 public void BindPayment()
 {
     try
     {
         Employer objEmployer = new Employer();
         DataSet  ds          = objEmployer.GetPayment(hdninvoicenumber.Value, txtCompanyID.Text);
         grdMakeInvoicePayment.DataSource = ds;
         grdMakeInvoicePayment.DataBind();
         if (ds.Tables.Count > 1)
         {
             lblBalance.Text = Convert.ToDouble(ds.Tables[1].Rows[0][0].ToString()).ToString("C");
         }
         else
         {
             lblBalance.Text = "0.0";
         }
         btnSavesent.Enabled = true;
         btnUpdate.Enabled   = false;
     }
     catch (Exception EX)
     {
     }
 }