Beispiel #1
0
 public static List <Boleto> listBySituacao(String nome, DateTime datain, DateTime datafn,
                                            Int32 situacao, String numdoc, String nossonum)
 {
     if (numdoc.Length > 0)
     {
         List <Boleto> lo = new List <Boleto>();
         lo.Add(get(Int32.Parse(numdoc)));
         return(lo);
     }
     else if (nossonum.Length > 0)
     {
         return(BoletoDAL.listNossoNum(nossonum));
     }
     else
     {
         if (situacao == 1)
         {
             return(BoletoDAL.listSituacao(datain, datafn, nome, false));
         }
         else if (situacao == 2)
         {
             return(BoletoDAL.listSituacao(datain, datafn, nome, true));
         }
         else
         {
             return(BoletoDAL.listTodas(datain, datafn, nome));
         }
     }
 }
Beispiel #2
0
 public static void save(ref Boleto o)
 {
     if (BoletoDAL.val(o.ID))
     {
         o.ID = BoletoDAL.set(o);
     }
     else
     {
         BoletoDAL.up(o);
     }
 }
Beispiel #3
0
 public static List <Boleto> listBoletos(DateTime datain, DateTime datafn, Boolean recebido)
 {
     return(BoletoDAL.listByVencimento(datain, datafn, recebido));
 }
Beispiel #4
0
 public static Boleto get(String nossonum)
 {
     return(BoletoDAL.get(nossonum));
 }
Beispiel #5
0
 public static Boleto get(Int32 id)
 {
     return(BoletoDAL.get(id));
 }
Beispiel #6
0
 public static Int32 getNext()
 {
     return(BoletoDAL.getNext());
 }
Beispiel #7
0
 public static void del(Int32 id)
 {
     BoletoDAL.del(id);
 }