Esempio n. 1
0
    protected void loadAllCombos()
    {
        //LOAD COMBOS --------------------------------------------------------------------

        //demographic State
        CDemographics   Demographics   = new CDemographics();
        CMilitaryRender MilitaryRender = new CMilitaryRender();

        Demographics.LoadDemStateDropDownList(Master,
                                              cboState,
                                              "");

        //demographic Gender
        Demographics.LoadDemGenderDropDownList(Master,
                                               cboGender,
                                               "");

        //load emergency contact
        CDemographics emergState        = new CDemographics();
        CDemographics emergRelationship = new CDemographics();

        emergRelationship.LoadDemRelationshipDropDownList(Master,
                                                          cboEmergencyRelationship,
                                                          "");

        emergState.LoadDemStateDropDownList(Master,
                                            cboEmergencyState,
                                            "");

        //--------------------------------------------------------------------
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        //bind 'onkeyup' event to the 'txtClinic' text box
        //text in this field is required to enable the save button
        txtClinic.Attributes.Add("onkeyup", "management.clinic.checkLength(this);");

        if (!IsPostBack)
        {
            //Load State combo
            CDemographics rfcState = new CDemographics();
            rfcState.LoadDemStateDropDownList(BaseMstr, cboState, "-1");
        }

        CheckUsrRightsMode();
    }