Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session["ConsultorioId"]                  = null;
                btnNewDiagnosticos.OnClientClick          = WindowAddDX.GetSaveStateReference(hfRefresh.ClientID) + WindowAddDX.GetShowReference("FRM033C.aspx?Mode=New");
                btnAddRecomendacion.OnClientClick         = winEditReco.GetSaveStateReference(hfRefresh.ClientID) + winEditReco.GetShowReference("FRM033B.aspx?Mode=New");
                btnAddRestriccion.OnClientClick           = winEditRestri.GetSaveStateReference(hfRefresh.ClientID) + winEditRestri.GetShowReference("FRM033E.aspx?Mode=New");
                btnNewDiagnosticosFrecuente.OnClientClick = WindowAddDXFrecuente.GetSaveStateReference(hfRefresh.ClientID) + WindowAddDXFrecuente.GetShowReference("FRM033G.aspx?Mode=New");
                btnNewExamenes.OnClientClick              = winEdit3.GetSaveStateReference(hfRefresh.ClientID) + winEdit3.GetShowReference("../ExternalUser/FRM031E_.aspx");
                btnNewFichaOcupacional.OnClientClick      = winEdit2.GetSaveStateReference(hfRefresh.ClientID) + winEdit2.GetShowReference("../ExternalUser/FRM031C.aspx");

                Session["btnNewFichaOcupacional"] = false;
                Session["btnNewExamenes"]         = false;
                LoadCombos();
                dpFechaInicio.SelectedDate = DateTime.Now.AddDays(-1); //DateTime.Parse("25/07/2014");
                dpFechaFin.SelectedDate    = DateTime.Now;             // DateTime.Parse("25/07/2014");
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OperationResult objOperationResult = new OperationResult();
                btnOtroDx.OnClientClick = WindowAddDX.GetSaveStateReference(hfRefresh.ClientID) + WindowAddDX.GetShowReference("CIE10.aspx");

                btnClose.OnClientClick = ActiveWindow.GetConfirmHideReference();

                //Llenar combo ItemParameter Tree
                ddlDx.DataTextField              = "Description";
                ddlDx.DataValueField             = "Id";
                ddlDx.DataSimulateTreeLevelField = "Level";
                ddlDx.DataEnableSelectField      = "EnabledSelect";
                List <DataForTreeView> t = _objDataHierarchyBL.GetSystemParameterForComboTree_(ref objOperationResult, 149);
                ddlDx.DataSource = t;
                ddlDx.DataBind();
                this.ddlDx.Items.Insert(0, new FineUI.ListItem("-- Seleccione --", "-1"));

                LoadData();
            }
        }