Beispiel #1
0
 protected void OnButtonMakePaymentClicked(object sender, EventArgs e)
 {
     if(SaveAccountable ())
     {
         PayAccrual winPay = new PayAccrual();
         winPay.FillPayTable (Convert.ToInt32 (entryNumber.Text));
         winPay.ShowAll ();
         if((ResponseType)winPay.Run () == ResponseType.Ok)
         {
             UpdateIncomes ();
             UpdatePaid ();
         }
         winPay.Destroy ();
     }
 }
    protected void OnButtonMakePaymentClicked(object sender, EventArgs e)
    {
        int itemid = Convert.ToInt32(treeviewAccrual.GetSelectedObject<AccrualListEntryDTO>().Id);

        PayAccrual winPay = new PayAccrual();
        winPay.FillPayTable (itemid);
        winPay.ShowAll ();
        if((ResponseType)winPay.Run () == ResponseType.Ok)
            UpdateAccrual ();
        winPay.Destroy ();
    }