Exemplo n.º 1
0
        /// <summary>
        /// Carga Dominios relacionados entre al objeto _RelatedDomains que esta bindiado a la grilla
        /// </summary>
        static void Populate(out Exception ex)
        {
            ex = null;

            try
            {
                _ProfecionesList        = SearchParametroByParams((int)TipoParametroEnum.Profecion, null);
                _EstadoCivilList        = SearchParametroByParams((int)TipoParametroEnum.EstadoCivil, null);
                _EspecialidadMedicaList = SearchParametroByParams((int)TipoParametroEnum.Especialidad, null);
                _EspecialidadMedicaList.Add(new ParametroBE {
                    Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdParametro = (int)CommonValuesEnum.Ninguno
                });
                _TipoEventoMedicoList   = SearchParametroByParams((int)TipoParametroEnum.TipoEventoMedico, null);
                _AllergiesItemTypesList = Controller.SearchParametroByParams((int)TipoParametroEnum.AllergiesItemTypes, null);

                _CEI_10List      = (CEI10GridList)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(CEI10GridList), Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"dat\cei.xml"));
                _CEI_10ComboList = (CEI10ComboList)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(CEI10ComboList), Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"dat\cei10_combo.xml"));
                _PMOFileList     = (PMOFileList)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(PMOFileList), Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"dat\pmo.xml"));
            }
            catch (Exception err)
            {
                //err.Source = "Origen de datos";
                ex = err;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Carga Dominios relacionados entre al objeto _RelatedDomains que esta bindiado a la grilla
        /// </summary>
        static void Populate(out Exception ex)
        {
            ex = null;

            try
            {
                _ProfecionesList = SearchParametroByParams((int)TipoParametroEnum.Profecion, null);
                _EstadoCivilList = SearchParametroByParams((int)TipoParametroEnum.EstadoCivil, null);
                _EspecialidadMedicaList = SearchParametroByParams((int)TipoParametroEnum.Especialidad, null);
                _EspecialidadMedicaList.Add(new ParametroBE { Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdParametro = (int)CommonValuesEnum.Ninguno });
                _TipoEventoMedicoList = SearchParametroByParams((int)TipoParametroEnum.TipoEventoMedico, null);
                _AllergiesItemTypesList = Controller.SearchParametroByParams((int)TipoParametroEnum.AllergiesItemTypes, null);
                
                _CEI_10List = (CEI10GridList)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(CEI10GridList), Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"dat\cei.xml"));
                _CEI_10ComboList = (CEI10ComboList)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(CEI10ComboList), Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"dat\cei10_combo.xml"));
                _PMOFileList = (PMOFileList)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(PMOFileList), Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"dat\pmo.xml"));

            }
            catch (Exception err)
            {
                //err.Source = "Origen de datos";
                ex = err;
            }
        }