Esempio n. 1
0
        static Controller()
        {
            _MutualList = EstablesIndependientesDAC.Search_MutualList_All();
            _MutualList.Add(new MutualBE {
                Nombre = "Todos", IdMutual = (int)CommonValuesEnum.TodosComboBoxValue
            });
            _MutualList.Add(new MutualBE {
                Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdMutual = (int)CommonValuesEnum.Ninguno
            });

            _ProfecionalList = EstablesIndependientesDAC.Search_ProfecionalList_ByParams(new ProfecionalBE());
            _ProfecionalList.Add(new ProfecionalBE {
                Nombre = "Todos", IdProfecional = (int)CommonValuesEnum.TodosComboBoxValue
            });
            _ProfecionalList.Add(new ProfecionalBE {
                Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdProfecional = (int)CommonValuesEnum.Ninguno
            });

            _TipoConsultaList = ParamComercialDAC.GetByParams(200, null, true, string.Empty);
            _TipoConsultaList.Add(new ParamComercialBE {
                Nombre = "Todos", IdParamComercial = (int)CommonValuesEnum.TodosComboBoxValue
            });
            _TipoConsultaList.Add(new ParamComercialBE {
                Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdParamComercial = (int)CommonValuesEnum.Ninguno
            });
        }
Esempio n. 2
0
        public override CreateParamComercialRes Execute(CreateParamComercialReq pServiceRequest)
        {
            CreateParamComercialRes wRes = new CreateParamComercialRes();

            ParamComercialDAC.Create(pServiceRequest.BusinessData, new Guid(pServiceRequest.ContextInformation.UserId), pServiceRequest.ContextInformation.AppId);

            return(wRes);
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pIdParamComercial"></param>
        /// <param name="name"></param>
        public void Delete(int pIdParamComercial, string name)
        {
            if (ParamComercialDAC.IsUsed(pIdParamComercial))
            {
                throw new Fwk.Exceptions.FunctionalException(string.Format(used, name));
            }

            ParamComercialDAC.Delete(pIdParamComercial);
        }
Esempio n. 4
0
        public override SearchParamComercialByParamsRes Execute(SearchParamComercialByParamsReq pServiceRequest)
        {
            SearchParamComercialByParamsRes wRes = new SearchParamComercialByParamsRes();

            //(int)ClinicaMerced.Common.Common.TipoParametroEnum.ClaseTipoGasto
            wRes.BusinessData = ParamComercialDAC.GetByParams(pServiceRequest.BusinessData.IdTipoParametro,
                                                              pServiceRequest.BusinessData.IdParamComercialRef, pServiceRequest.BusinessData.Vigente,
                                                              pServiceRequest.ContextInformation.AppId);
            return(wRes);
        }