Пример #1
0
 public CommonService(ILogError l, ICommon c, ICrudReserva p, IProdesp prodesp, ISiafem siafem, IChaveCicsmo chave) : base(l)
 {
     _prodesp  = new ProdespService(l, prodesp, new ProgramaDal(), new FonteDal(), new EstruturaDal(), new RegionalDal());
     _siafem   = new SiafemService(l, siafem, new ProgramaDal(), new FonteDal(), new EstruturaDal());
     _regional = new RegionalService(l, new RegionalDal());
     _reserva  = p;
     _chave    = new ChaveCicsmoService(l, chave);
     _common   = c;
 }
Пример #2
0
 public ReservaService(ILogError l, ICrudReserva p, IProdespReserva prodesp, ISiafemReserva siafem, ICrudPrograma programa,
                       ICrudFonte fonte, ICrudEstrutura estrutura, ICrudReservaMes reservaMes, IRegional regional, IChaveCicsmo chave, ICommon c)
     : base(l, c, prodesp, siafem, new SiafemEmpenhoWs(), chave)
 {
     _prodesp    = new ProdespReservaService(l, prodesp, programa, fonte, estrutura, regional);
     _siafem     = new SiafemReservaService(l, siafem, programa, fonte, estrutura);
     _reservaMes = new ReservaMesService(l, reservaMes);
     _reserva    = p;
     _chave      = new ChaveCicsmoService(l, chave);
     _programa   = new ProgramaService(l, programa, estrutura);
 }