예제 #1
0
 public ProveedorController(IProveedorService clienteService,
                            IDocumentoIdentidadService docIdentidadService, ITipoProveedorService tipoProveedorService,
                            IPaisService paisService, IDepartamentoService departamentoService,
                            IProvinciaService provinciaService, IDistritoService distritoService,
                            IFormaVentaService formaVentaService, IContactoService contactoService,
                            IProveedorContactoService proveedoContactoService, IDireccionService direccionService,
                            IPersonalService personalService, IMonedaService monedaService, ISunatClient sunatClient,
                            ITipoPrecioService tipoPrecioService, IAreaService areaService)
 {
     _clienteService           = clienteService;
     _docIdentidadService      = docIdentidadService;
     _tipoProveedorService     = tipoProveedorService;
     _paisService              = paisService;
     _departamentoService      = departamentoService;
     _provinciaService         = provinciaService;
     _distritoService          = distritoService;
     _formaVentaService        = formaVentaService;
     _contactoService          = contactoService;
     _proveedorContactoService = proveedoContactoService;
     _direccionService         = direccionService;
     _personalService          = personalService;
     _monedaService            = monedaService;
     _tipoPrecioService        = tipoPrecioService;
     this.sunatClient          = sunatClient;
     this.areaService          = areaService;
 }
 public ContactoController(
     IContactoService ContactoService, 
     IClienteService ClienteService)
 {
     this._ContactoService = ContactoService;
     this._ClienteService = ClienteService;
 }
예제 #3
0
 public PuntoVentaController(IPreciosService precioService, IPuntoVentaService service, IPuntoVentaMap map, IMonedaService monedaService, IContactoService contactoService, IBodegaService bodegaService)
 {
     this.service         = service;
     this.map             = map;
     this.monedaService   = monedaService;
     this.contactoService = contactoService;
     this.bodegaService   = bodegaService;
     this.precioService   = precioService;
 }
 public ClienteController(IClienteService ClienteService, IPedidoService PedidoService, IIndustriaService IndustriaService, IUsuarioService UsuarioService, IContactoService ContactoService, IDireccionService DireccionService) 
 {
     this._ClienteService = ClienteService;
     this._PedidoService = PedidoService;
     this._UsuarioService = UsuarioService;
     this._IndustriaService = IndustriaService;
     this._ContactoService = ContactoService;
     this._DireccionService = DireccionService;
 }
예제 #5
0
 public OrdenController(IMonedaService monedaService, IOrdenService service, IOrdenMap map, IContactoService contactoService, IUserService userService, IInventarioService inventarioService)
 {
     this.service           = service;
     this.map               = map;
     this.contactoService   = contactoService;
     this.userService       = userService;
     this.inventarioService = inventarioService;
     this.monedaService     = monedaService;
 }
예제 #6
0
 public ContactoController(FotosService pFotos, IUserRepository IUserRepository, IContactoCamposService ICCService, IContactoService contactoService, IContactoMap contactoMap, IcontactoCamposMap pContactoCamposMap, IcontactoCamposMap pContactoMap)
 {
     this.contactoService    = contactoService;
     this.contactoMap        = contactoMap;
     this.pContactoCamposMap = pContactoCamposMap;
     this.pContactoCamposMap = pContactoMap;
     this.ICCService         = ICCService;
     this.userMap            = IUserRepository;
     this.Fotos = pFotos;
 }
예제 #7
0
 public FacturaController(IFlujoCategoriaService flujoService, ICajaMovimientoMap cajaMovMap, IMovimientoService movService, IPuntoVentaService pvService, IFacturaMap map, IFacturaService service, IUserService userService, IContactoService contactoService)
 {
     this.map             = map;
     this.service         = service;
     this.userService     = userService;
     this.contactoService = contactoService;
     this.pvService       = pvService;
     this.movService      = movService;
     this.cajaMovMap      = cajaMovMap;
     this.flujoService    = flujoService;
 }
 public ContactoController(IMonedaService monedaService, ICamposPersonalizadosService cpService, IPaisService paisService, IUserService IUserService, IContactoCamposService ICCService, IContactoService contactoService, IContactoMap contactoMap, IContactoCamposMap pContactoCamposMap)
 {
     this.contactoService = contactoService;
     this.contactoMap     = contactoMap;
     ccMap              = pContactoCamposMap;
     this.ccService     = ICCService;
     this.userService   = IUserService;
     this.paisService   = paisService;
     this.cpService     = cpService;
     this.monedaService = monedaService;
 }
예제 #9
0
 public TareaController(IMensajeReceptorService IMensajeReceptorService, IMensajeReceptor IMensajeReceptorMap, IMensajeService ImensajeSerive, IConfiguracionFiltrosService IConfigService, ITipoTareaService ITipoService, IEstadoTareaService IEstadoService, ITareaMapper ITareaMapper, ITareaService pTareaServiceInterface, IContactoService IContactosService, IUserService IUserService)
 {
     this.IMensajeReceptorMap     = IMensajeReceptorMap;
     this.IMensajeReceptorService = IMensajeReceptorService;
     this.TareaServiceInterface   = pTareaServiceInterface;
     this.IContactosService       = IContactosService;
     this.IUserService            = IUserService;
     this.ITareaMapper            = ITareaMapper;
     this.IEstadoService          = IEstadoService;
     this.ITipoService            = ITipoService;
     this.IConfigService          = IConfigService;
     this.ImensajeSerive          = ImensajeSerive;
 }
예제 #10
0
 public GastoController(ITomaService tomaService, IHaciendaService haciendaService, IHaciendaMap haciendaMap, IKardexMap kardexMap, IBodegaService bodegaService, IUserService userService, ICompraMap map, IInventarioService inventarioService, IMonedaService monedaService, ICompraService service, IContactoService contactoService)
 {
     this.service           = service;
     this.contactoService   = contactoService;
     this.inventarioService = inventarioService;
     this.monedaService     = monedaService;
     this.map             = map;
     this.userService     = userService;
     this.bodegaService   = bodegaService;
     this.kardexMap       = kardexMap;
     this.haciendaMap     = haciendaMap;
     this.haciendaService = haciendaService;
     this.tomaService     = tomaService;
 }
예제 #11
0
        public ContactoViewModel(IContactoService service)
        {
            this.service           = service;
            Contactos              = new ObservableCollection <Contacto>();
            CargarContactosCommand = new Command(async() => await ExecuteLoadItemsCommand());

            MessagingCenter.Subscribe <AgregarContacto, Contacto>(this, MessageKeys.AgregarContacto, async(obj, contacto) =>
            {
                var _contacto = contacto as Contacto;
                this.service.AgregarContacto(_contacto);
                CargarContactosCommand.Execute(null);
            });

            MessagingCenter.Subscribe <ListaContacto, Contacto>(this, MessageKeys.EliminarContacto, async(obj, contacto) =>
            {
                var _contacto = contacto as Contacto;
                this.service.EliminarContacto(_contacto);
                CargarContactosCommand.Execute(null);
            });
        }
예제 #12
0
 public DescuentoPromocionController(IPromocionProductoMap promoProdMap, IPromocionProductoService promoProdService,
                                     IInventarioService IInventarioService, IContactoService IClienteService,
                                     IDescuentoUsuarioClaveService DescUserClaveService, IDescuentoUsuarioClaveMap mapDesClavecUser,
                                     IDescuentoPromocionMap map, IDescuentoUsuarioRangoMap mapDescUserRango,
                                     IDescuentoUsuarioRangoService DescUserServiceRango, IDescuentoUsuarioService DescUserService,
                                     IDescuentoPromocionService service, IUserService IUserService, IDescuentoUsuarioMap mapDescUser)
 {
     this.service              = service;
     this.map                  = map;
     this.IUserService         = IUserService;
     this.mapDescUser          = mapDescUser;
     this.DescUserService      = DescUserService;
     this.mapDescUserRango     = mapDescUserRango;
     this.DescUserServiceRango = DescUserServiceRango;
     this.DescUserClaveService = DescUserClaveService;
     this.mapDesClavecUser     = mapDesClavecUser;
     this.IClienteService      = IClienteService;
     this.IInventarioService   = IInventarioService;
     this.promoProdMap         = promoProdMap;
     this.promoProdService     = promoProdService;
 }
예제 #13
0
        private static void TestContactoUsuario(IApplicationContext ctx)
        {
            ISessionFactory sf = (ISessionFactory)ctx.GetObject("sessionFactory");
            ISession        s  = sf.OpenSession();

            IUsuarioService  usuarioService  = (IUsuarioService)ctx.GetObject("usuarioService");
            IContactoService contactoService = (IContactoService)ctx.GetObject("contactoService");

            Usuario poli = usuarioService.Retrieve(0);

            foreach (ContactoUsuario cu in poli.Contactos)
            {
                Console.WriteLine("({0}) {1}", cu.TipoContacto.Nombre, cu.Nombre);
            }

            TipoContacto msn = (TipoContacto)s.Get(typeof(TipoContacto), 1);
            //contactoService.AgregarContacto(msn, poli, "poligarcia" + DateTime.Now.Millisecond + "@hotmail.com");
            ContactoUsuario contactoUsuario = new ContactoUsuario(msn, poli, "poligarcia" + DateTime.Now.Millisecond + "@hotmail.com");

            poli.Contactos.Add(contactoUsuario);

            usuarioService.SaveOrUpdate(poli);
        }
예제 #14
0
 public ContactoMapper(IContactoService pContactoService, ICamposPersonalizadosService ICamposPersonalizados)
 {
     this.contactoService       = pContactoService;
     this.ICamposPersonalizados = ICamposPersonalizados;
 }
예제 #15
0
 public ContactosController(IContactoService contactoService, IConstructoraService constructoraService)
 {
     _constructoraService = constructoraService;
     this.ContactoService = contactoService;
 }
 public ContactoController(IContactoService contactoService,
                           IAreaService areaService)
 {
     this.contactoService = contactoService;
     this.areaService     = areaService;
 }
예제 #17
0
 public ContactoController(ILogger logger, IContactoService contactoService)
     : base(logger)
 {
     _contactoService = contactoService;
 }
예제 #18
0
 public ContactoController()
 {
     _IContactoService = new ContactoService();
 }