public frm_EventDetails_Diagnosis(MedicalEventBE medicalEevent)
        {
            InitializeComponent();
            colColEnabled.FilterMode = DevExpress.XtraGrid.ColumnFilterMode.Value;
            colColEnabled.FilterInfo = new ColumnFilterInfo("[ColEnabled] = true");
            //---------------MedicalEventDetailType---------------
            //12000	CEI10-Diagnosis                                   
            //12001	Tratamiento TTO                                   
            //12002	Metodo Complementarios                            
            //12003	Rehabilitación                                    

            ParametroList items = new ParametroList();

            items.Add(new ParametroBE { Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdParametro = (int)CommonValuesEnum.Ninguno });
            items.Add(new ParametroBE(870, "Relevante actual"));
            items.Add(new ParametroBE(871, "Relevante Crónico"));
            items.Add(new ParametroBE(872, "Presuntivo"));
            parametroBEBindingSource.DataSource = items;

           
            this.CurentEvent = medicalEevent;


            

        }
Пример #2
0
        /// <summary>
        /// Obtine parametros 
        /// </summary>
        /// <param name="pIdTipoParametro">Tipo (gasto, clase, forma pago etc)</param>
        /// <param name="pIdParametroRef">Relacion con otro param</param>
        /// <param name="vigente">Vigentes o no</param>
        /// <returns></returns>
        public static ParametroList GetByParams(int? pIdTipoParametro, int? pIdParametroRef, bool? vigente, string pCompanyId)
        {
            Database wDatabase = null;
            DbCommand wCmd = null;

            ParametroList list = new ParametroList();
            ParametroBE wParametroBE = null;
            try
            {
                wDatabase = DatabaseFactory.CreateDatabase(Common.CnnStringName);

                wCmd = wDatabase.GetStoredProcCommand("Parametro_s_ByParam");


                wDatabase.AddInParameter(wCmd, "IdTipoParametro", System.Data.DbType.Int32, pIdTipoParametro);
                wDatabase.AddInParameter(wCmd, "IdParametroRef", System.Data.DbType.Int32, pIdParametroRef);
                wDatabase.AddInParameter(wCmd, "Vigente", System.Data.DbType.Boolean, vigente);
                if (!String.IsNullOrEmpty(pCompanyId))
                    wDatabase.AddInParameter(wCmd, "CompanyId", System.Data.DbType.String, pCompanyId);

                IDataReader reader = wDatabase.ExecuteReader(wCmd);

                #region Fill wGastoBECollection
                while (reader.Read())
                {
                    wParametroBE = new ParametroBE();

                    wParametroBE.IdParametro = Convert.ToInt32(reader["IdParametro"]);
                    if (reader["IdTipoParametro"] != DBNull.Value)
                        wParametroBE.IdTipoParametro = Convert.ToInt32(reader["IdTipoParametro"]);

                    wParametroBE.Nombre = reader["Nombre"].ToString().Trim();

                    if (reader["IdParametroRef"] != DBNull.Value)
                        wParametroBE.IdParametroRef = Convert.ToInt32(reader["IdParametroRef"]);

                    list.Add(wParametroBE);

                }
                #endregion

                reader.Dispose();

                return list;


            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #3
0
        public uc_event_view()
        {
            InitializeComponent();
            uC_EventDetailsGrid_Diagnosis.DetailType = MedicalEventDetailType.CEI10_Diagnosis;
            uC_EventDetailsGrid_MetComplementario.DetailType = MedicalEventDetailType.Metodo_Complementarios;
            ParametroList items = new ParametroList();

            items.Add(new ParametroBE { Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdParametro = (int)CommonValuesEnum.Ninguno });
            items.Add(new ParametroBE(870, "Relevante actual"));
            items.Add(new ParametroBE(871, "Relevante Crónico"));
            items.Add(new ParametroBE(872, "Presuntivo"));

            parametroBEBindingSource.DataSource = items;

            
        }
        public frm_EventDetails_MetodoComplementario(MedicalEventBE medicalEevent)
        {
            InitializeComponent();

            //---------------MedicalEventDetailType---------------
            //12000	CEI10-Diagnosis                                   
            //12001	Tratamiento TTO                                   
            //12002	Metodo Complementarios                            
            //12003	Rehabilitación                                    

            ParametroList items = new ParametroList();

            items.Add(new ParametroBE { Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdParametro = (int)CommonValuesEnum.Ninguno });
            items.Add(new ParametroBE(870, "Relevante actual"));
            items.Add(new ParametroBE(871, "Relevante Crónico"));
            items.Add(new ParametroBE(872, "Presuntivo"));
            parametroBEBindingSource.DataSource = items;

           
            this.CurentEvent = medicalEevent;
        }
Пример #5
0
        //MedicalEventDetail_ViewList _MedicalEventDetails_From_OtherEvents = null;
       public uc_event_01()
        {

            InitializeComponent();
            uC_EventDetailsGrid_Diagnosis.DetailType = MedicalEventDetailType.CEI10_Diagnosis;
            uC_EventDetailsGrid_MetComplementario.DetailType = MedicalEventDetailType.Metodo_Complementarios;
            this.ShowClose = true;
            this.ShowSave = true;
            colEnabled.FilterMode = DevExpress.XtraGrid.ColumnFilterMode.Value;
            colEnabled.FilterInfo = new ColumnFilterInfo("[Enabled] = true");

            ParametroList items = new ParametroList();

            items.Add(new ParametroBE { Nombre = Enum.GetName(typeof(CommonValuesEnum), CommonValuesEnum.Ninguno), IdParametro = (int)CommonValuesEnum.Ninguno });
            items.Add(new ParametroBE(870, "Enfermedad relevante"));
            items.Add(new ParametroBE(871, "Enfermedad crónica"));
            items.Add(new ParametroBE(872, "Dx quirurjicos "));

            parametroBEBindingSource.DataSource = items;
            
        }
Пример #6
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;
            }
        }