Пример #1
0
     /// <summary>
     /// Create a new instance of Alim viewmodel
     /// </summary>
     /// <param name="service">Service dependency</param>
 	/// <param name="serviceFactConv">Service dependency</param>
 	/// <param name="serviceNt_Cant">Service dependency</param>
 	/// <param name="serviceAlim_Grp">Service dependency</param>
 	/// <param name="serviceAlim_Fuente">Service dependency</param>
 	/// <param name="serviceUniMed">Service dependency</param>
 	/// <param name="serviceRecProd">Service dependency</param>
 	/// <param name="serviceDesCant">Service dependency</param>
 	/// <param name="serviceRendCant">Service dependency</param>
     public AlimFindViewModel(IAlimAppService service, IFactConvAppService serviceFactConv, INt_CantAppService serviceNt_Cant, IAlim_GrpAppService serviceAlim_Grp, IAlim_FuenteAppService serviceAlim_Fuente, IUniMedAppService serviceUniMed, IRecProdAppService serviceRecProd, IDesCantAppService serviceDesCant, IRendCantAppService serviceRendCant) : this()
     {
         if (service == null)
             throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
 		if (serviceFactConv == null)
             throw new ArgumentNullException("serviceFactConv", PresentationResources.exception_WithoutService);
 		if (serviceNt_Cant == null)
             throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService);
 		if (serviceAlim_Grp == null)
             throw new ArgumentNullException("serviceAlim_Grp", PresentationResources.exception_WithoutService);
 		if (serviceAlim_Fuente == null)
             throw new ArgumentNullException("serviceAlim_Fuente", PresentationResources.exception_WithoutService);
 		if (serviceUniMed == null)
             throw new ArgumentNullException("serviceUniMed", PresentationResources.exception_WithoutService);
 		if (serviceRecProd == null)
             throw new ArgumentNullException("serviceRecProd", PresentationResources.exception_WithoutService);
 		if (serviceDesCant == null)
             throw new ArgumentNullException("serviceDesCant", PresentationResources.exception_WithoutService);
 		if (serviceRendCant == null)
             throw new ArgumentNullException("serviceRendCant", PresentationResources.exception_WithoutService);
 
         _serviceAlim = service;
         _serviceFactConv = serviceFactConv;
         _serviceNt_Cant = serviceNt_Cant;
         _serviceAlim_Grp = serviceAlim_Grp;
         _serviceAlim_Fuente = serviceAlim_Fuente;
         _serviceUniMed = serviceUniMed;
         _serviceRecProd = serviceRecProd;
         _serviceDesCant = serviceDesCant;
         _serviceRendCant = serviceRendCant;
 
 		BuildVm();
     }
Пример #2
0
        /// <summary>
        /// Create a new instance of Alim controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceFactConv">Service dependency</param>
        /// <param name="serviceNt_Cant">Service dependency</param>
        /// <param name="serviceAlim_Grp">Service dependency</param>
        /// <param name="serviceAlim_Fuente">Service dependency</param>
        /// <param name="serviceUniMed">Service dependency</param>
        /// <param name="serviceRecProd">Service dependency</param>
        /// <param name="serviceDesCant">Service dependency</param>
        /// <param name="serviceRendCant">Service dependency</param>
        public AlimController(IAlimAppService service, IFactConvAppService serviceFactConv, INt_CantAppService serviceNt_Cant, IAlim_GrpAppService serviceAlim_Grp, IAlim_FuenteAppService serviceAlim_Fuente, IUniMedAppService serviceUniMed, IRecProdAppService serviceRecProd, IDesCantAppService serviceDesCant, IRendCantAppService serviceRendCant)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceFactConv == null)
            {
                throw new ArgumentNullException("serviceFactConv", PresentationResources.exception_WithoutService);
            }
            if (serviceNt_Cant == null)
            {
                throw new ArgumentNullException("serviceNt_Cant", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim_Grp == null)
            {
                throw new ArgumentNullException("serviceAlim_Grp", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim_Fuente == null)
            {
                throw new ArgumentNullException("serviceAlim_Fuente", PresentationResources.exception_WithoutService);
            }
            if (serviceUniMed == null)
            {
                throw new ArgumentNullException("serviceUniMed", PresentationResources.exception_WithoutService);
            }
            if (serviceRecProd == null)
            {
                throw new ArgumentNullException("serviceRecProd", PresentationResources.exception_WithoutService);
            }
            if (serviceDesCant == null)
            {
                throw new ArgumentNullException("serviceDesCant", PresentationResources.exception_WithoutService);
            }
            if (serviceRendCant == null)
            {
                throw new ArgumentNullException("serviceRendCant", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceAlim        = service;
            _serviceFactConv    = serviceFactConv;
            _serviceNt_Cant     = serviceNt_Cant;
            _serviceAlim_Grp    = serviceAlim_Grp;
            _serviceAlim_Fuente = serviceAlim_Fuente;
            _serviceUniMed      = serviceUniMed;
            _serviceRecProd     = serviceRecProd;
            _serviceDesCant     = serviceDesCant;
            _serviceRendCant    = serviceRendCant;
        }
Пример #3
0
        /// <summary>
        /// Create a new instance of Alim_Fuente controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceAlim">Service dependency</param>
        public Alim_FuenteController(IAlim_FuenteAppService service, IAlimAppService serviceAlim)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim == null)
            {
                throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceAlim_Fuente = service;
            _serviceAlim        = serviceAlim;
        }
Пример #4
0
        /// <summary>
        /// Create a new instance of Alim_Fuente viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        /// <param name="serviceAlim">Service dependency</param>
        public Alim_FuenteFindViewModel(IAlim_FuenteAppService service, IAlimAppService serviceAlim) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }
            if (serviceAlim == null)
            {
                throw new ArgumentNullException("serviceAlim", PresentationResources.exception_WithoutService);
            }

            _serviceAlim_Fuente = service;
            _serviceAlim        = serviceAlim;

            BuildVm();
        }