public override void BindControls()
 {
     CustomGrid_CustomDocumentHealthHomeCarePlanDiagnoses.Bind(ParentDetailPageObject.ScreenId);
     using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XENCOUNTERREASON", true, "", "", false))
     {
         if (DataViewGlobalCodes != null)
         {
             DataViewGlobalCodes.Sort = "SortOrder asc";
             DropDownList_CustomDocumentHealthHomeServiceNotes_ReasonTodaysEncounter.DataTextField  = "CodeName";
             DropDownList_CustomDocumentHealthHomeServiceNotes_ReasonTodaysEncounter.DataValueField = "GlobalCodeID";
             DropDownList_CustomDocumentHealthHomeServiceNotes_ReasonTodaysEncounter.DataSource     = DataViewGlobalCodes;
             DropDownList_CustomDocumentHealthHomeServiceNotes_ReasonTodaysEncounter.DataBind();
             DropDownList_CustomDocumentHealthHomeServiceNotes_ReasonTodaysEncounter.Items.Insert(0, new ListItem("", "0"));
             DropDownList_CustomDocumentHealthHomeServiceNotes_ReasonTodaysEncounter.SelectedIndex = 0;
         }
     }
     using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XDIAGNOSISSOURCE", true, "", "", false))
     {
         if (DataViewGlobalCodes != null)
         {
             DataViewGlobalCodes.Sort = "SortOrder asc";
             DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataTextField  = "CodeName";
             DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataValueField = "GlobalCodeID";
             DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataSource     = DataViewGlobalCodes;
             DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataBind();
             DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.Items.Insert(0, new ListItem("", "0"));
         }
     }
 }
示例#2
0
    public override void BindControls()
    {
        getLabOrderList();
        #region Bind DropDownList For Transition/Discharge Reason
        using (DataView DataViewGlobalCodetransitionProblemStatus = BaseCommonFunctions.FillDropDown("XPROBLEMSTATUS", true, "", "CodeName", true))
        {
            if (DataViewGlobalCodetransitionProblemStatus != null)
            {
                DataViewGlobalCodetransitionProblemStatus.RowFilter = "GlobalCodeId is not null and Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
                DropDownListCommon_CustomDocumentPsychiatricNoteMDMs_ProblemStatus.DataTableGlobalCodes = DataViewGlobalCodetransitionProblemStatus.ToDataTable();
                DropDownListCommon_CustomDocumentPsychiatricNoteMDMs_ProblemStatus.FillDropDownDropGlobalCodes();
                DropDownListCommon_CustomDocumentPsychiatricNoteMDMs_ProblemStatus.Items.Insert(0, new ListItem("", "0"));;
            }
        }

        DataSet DatasetAgency = null;
        DatasetAgency = new DataSet();
        SqlHelper.FillDataset(Connection.ConnectionString, CommandType.StoredProcedure, "CSP_SCGetAgencyNameDetails", DatasetAgency, new string[] { "Agency" });
        if (DatasetAgency.Tables["Agency"].Rows.Count > 0)
        {
            HiddenField_CustomDocumentConsentTreatments_AgencyName.Value = DatasetAgency.Tables["Agency"].Rows[0]["AgencyName"].ToString();
        }
        HiddenField_CustomDocumentConsentTreatments_AgencyaAbbreviation.Value = DatasetAgency.Tables["Agency"].Rows[0]["AbbreviatedAgencyName"].ToString();

        #endregion
    }
        public override void BindControls()
        {
            DataView dataViewClinician = SHS.BaseLayer.SharedTables.GetSharedTableStaff();

            dataViewClinician.RowFilter = "Clinician='Y' and Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
            dataViewClinician.Sort      = "StaffName ASC";
            DropDownList_CustomDocumentHealthHomeCrisisPlans_ClinicianFacilitatingDischarge.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCrisisPlans_ClinicianFacilitatingDischarge.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCrisisPlans_ClinicianFacilitatingDischarge.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCrisisPlans_ClinicianFacilitatingDischarge.DataBind();
            DropDownList_CustomDocumentHealthHomeCrisisPlans_ClinicianFacilitatingDischarge.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCrisisPlans_ClinicianFacilitatingDischarge.SelectedIndex = 0;
            CustomGrid_CustomDocumentHealthHomeCommPlanFamilyMembers.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomeMentalHealthCrisisPlanSteps.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomeCrisisPlanTypes.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomeCarePlanDiagnoses.Bind(ParentDetailPageObject.ScreenId);

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XDIAGNOSISSOURCE", true, "", "", false))
            {
                if (DataViewGlobalCodes != null)
                {
                    DataViewGlobalCodes.Sort = "SortOrder asc";
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataTextField  = "CodeName";
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataValueField = "GlobalCodeID";
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataSource     = DataViewGlobalCodes;
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataBind();
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.Items.Insert(0, new ListItem("", "0"));
                }
            }
        }
示例#4
0
        public override void BindControls()
        {
            DataSet dsHealthHomeDocuments = new DataSet();

            dsHealthHomeDocuments = BaseCommonFunctions.GetScreenInfoDataSet();
            DynamicFormsDiagnosticRiskAssessment.FormId = 95;
            DynamicFormsDiagnosticRiskAssessment.Activate();
            CustomGrid_CustomDocumentHealthHomeCarePlanDiagnoses.Bind(10977);
            CustomGrid_CustomDocumentHealthHomeCarePlanPESNeeds.Bind(ParentDetailPageObject.ScreenId);
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XDIAGNOSISSOURCE", true, "", "", false))
            {
                if (DataViewGlobalCodes != null)
                {
                    DataViewGlobalCodes.Sort = "SortOrder asc";
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataTextField  = "CodeName";
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataValueField = "GlobalCodeID";
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataSource     = DataViewGlobalCodes;
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataBind();
                    DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.Items.Insert(0, new ListItem("", "0"));
                }
            }
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XICPNEEDS", true, "", "", false))
            {
                DataViewGlobalCodes.Sort = "SortOrder asc";
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataBind();
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.Items.Insert(0, new ListItem("", "0"));
            }
        }
示例#5
0
 /// <summary>
 /// <Author>Mohit Madaan</Author>
 /// <Description>This function is used to bind Server side Controls (Like Dropdowns and Custom Grid)</Description>
 /// <CreatedDate>September 11,2009</CreatedDate>
 /// </summary>
 public override void BindControls()
 {
     CustomGrid.Bind(ParentDetailPageObject.ScreenId);
     CustomICDGrid.Bind(ParentDetailPageObject.ScreenId);
     using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("DIAGNOSISSEVERITY", true, "", "", false))
     {
         //DropDownList_DiagnosesIAndII_Severity.DataTextField = "CodeName";
         //DropDownList_DiagnosesIAndII_Severity.DataValueField = "GlobalCodeID";
         //DropDownList_DiagnosesIAndII_Severity.DataSource = DataViewGlobalCodes;
         //DropDownList_DiagnosesIAndII_Severity.DataBind();
     }
     using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("DxRemissionType", true, "", "", false))
     {
         DropDownList_DiagnosesIAndII_Remission.DataTextField  = "CodeName";
         DropDownList_DiagnosesIAndII_Remission.DataValueField = "GlobalCodeID";
         DropDownList_DiagnosesIAndII_Remission.DataSource     = DataViewGlobalCodes;
         DropDownList_DiagnosesIAndII_Remission.DataBind();
         DropDownList_DiagnosesIAndII_Remission.Items.Insert(0, new ListItem("", ""));
     }
     using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("DIAGNOSISTYPE", true, "", "", false))
     {
         DataViewGlobalCodes.Sort = "SortOrder asc";
         DropDownList_DiagnosesIAndII_DiagnosisType.DataTextField  = "CodeName";
         DropDownList_DiagnosesIAndII_DiagnosisType.DataValueField = "GlobalCodeID";
         DropDownList_DiagnosesIAndII_DiagnosisType.DataSource     = DataViewGlobalCodes;
         DropDownList_DiagnosesIAndII_DiagnosisType.DataBind();
         DropDownList_DiagnosesIAndII_DiagnosisType.Items.Insert(0, new ListItem("", "0"));
     }
     //DropDownList_DiagnosesIAndII_Remission.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
 }
示例#6
0
 public override void BindControls()
 {
     //BindCAFASRaterList();
     //For binding of RaterClinician dropdown which contains all those active staff where clinician='Y'
     if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff != null)
     {
         //DataView dataViewStaff = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff);
         DataView dataViewStaff = SHS.BaseLayer.SharedTables.GetSharedTableStaff();
         dataViewStaff.RowFilter = "Clinician='Y'";
         dataViewStaff.Sort      = "StaffName";
         DropDownList_CustomCAFAS2_RaterClinician.DataTextField  = "StaffName";
         DropDownList_CustomCAFAS2_RaterClinician.DataValueField = "StaffId";
         DropDownList_CustomCAFAS2_RaterClinician.DataSource     = dataViewStaff;
         DropDownList_CustomCAFAS2_RaterClinician.DataBind();
         DropDownList_CustomCAFAS2_RaterClinician.Items.Insert(0, new ListItem("", ""));
     }
     //For binding of CAFASInterval dropdown
     using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XCAFASINTERVAL", true, "", "CodeName", true))
     {
         DropDownList_CustomCAFAS2_CAFASInterval.DataTextField  = "CodeName";
         DropDownList_CustomCAFAS2_CAFASInterval.DataValueField = "GlobalCodeId";
         DropDownList_CustomCAFAS2_CAFASInterval.DataSource     = DataViewGlobalCodes;
         DropDownList_CustomCAFAS2_CAFASInterval.DataBind();
     }
 }
示例#7
0
 /// <summary>
 /// Overridden function of DataActivityTab
 /// </summary>
 public override void BindControls()
 {
     HiddenFieldRelativePath.Value = Page.ResolveUrl("~/");
     RelativePath = Page.ResolveUrl("~/");
     using (DataView dataViewGlobalCodes = BaseCommonFunctions.FillDropDown("AUTHORIZATIONTEAM", true, "", "", false))
     {
         dataViewGlobalCodes.RowFilter = "Active='Y' and isnull(RecordDeleted,'N')='N'";
         dataViewGlobalCodes.Sort      = "CodeName";
     }
 }
 public override void BindControls()
 {
     using (DataView dataViewGlobalCodes = BaseCommonFunctions.FillDropDown("STAGEOFCHANGE", true, "", "SortOrder", true))
     {
         DropDownList_CustomDocumentCRAFFTs_CrafftStageOfChange.DataTextField  = "CodeName";
         DropDownList_CustomDocumentCRAFFTs_CrafftStageOfChange.DataValueField = "GlobalCodeId";
         DropDownList_CustomDocumentCRAFFTs_CrafftStageOfChange.DataSource     = dataViewGlobalCodes;
         DropDownList_CustomDocumentCRAFFTs_CrafftStageOfChange.DataBind();
     }
 }
 private void BindControl()
 {
     using (DataView dataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XGuardianType", true, "", "CodeName", true))
     {
         DropDownList_CustomHRMAssessments_GuardianType.DataTextField  = "CodeName";
         DropDownList_CustomHRMAssessments_GuardianType.DataValueField = "GlobalCodeId";
         DropDownList_CustomHRMAssessments_GuardianType.DataSource     = dataViewGlobalCodes;
         DropDownList_CustomHRMAssessments_GuardianType.DataBind();
     }
 }
示例#10
0
        public override void BindControls()
        {
            //This Code is used to bind the RelationShip DropDown
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("RELATIONSHIP", true, "", "CodeName", true))
            {
                DropDownList_CustomAcuteServicesPrescreens_ClientRelationship.DataTextField  = "CodeName";
                DropDownList_CustomAcuteServicesPrescreens_ClientRelationship.DataValueField = "GlobalCodeId";
                DropDownList_CustomAcuteServicesPrescreens_ClientRelationship.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomAcuteServicesPrescreens_ClientRelationship.DataBind();
            }
            //This Code is used to bind the Physician Name

            //DataRow[] dataRowStaff = SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff.Select("Active='Y'", "StaffName asc");
            // DataSet dataSetStaff = new DataSet();
            //dataSetStaff.Merge(dataRowStaff,false,MissingSchemaAction.Ignore);

            //Modified by Jitender Kumar Kamboj on 10 sep 2010
            //DropDownList_CustomAcuteServicesPrescreens_CMHStatusPrimaryClinician.DataSource = SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff;
            DataView DataViewStaffName = SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff.DefaultView;

            DataViewStaffName.Sort      = "StaffName";
            DataViewStaffName.RowFilter = "Active='Y'";
            DropDownList_CustomAcuteServicesPrescreens_CMHStatusPrimaryClinician.DataSource     = DataViewStaffName;
            DropDownList_CustomAcuteServicesPrescreens_CMHStatusPrimaryClinician.DataTextField  = "StaffName";
            DropDownList_CustomAcuteServicesPrescreens_CMHStatusPrimaryClinician.DataValueField = "StaffId";
            DropDownList_CustomAcuteServicesPrescreens_CMHStatusPrimaryClinician.DataBind();
            DropDownList_CustomAcuteServicesPrescreens_CMHStatusPrimaryClinician.Items.Insert(0, new ListItem("", ""));

            //Bind The County DropDown

            int stateFips = -1;

            //Added By Vikas Vyas in ref to task #1038
            if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.SystemConfigurations != null)
            {
                if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.SystemConfigurations.Rows[0]["StateFips"] != DBNull.Value)
                {
                    stateFips = Convert.ToInt32(SHS.BaseLayer.SharedTables.ApplicationSharedTables.SystemConfigurations.Rows[0]["StateFips"]);
                }
            }


            DataView dataViewCountyOfResidence = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.Counties);

            dataViewCountyOfResidence.Sort      = "CountyName";
            dataViewCountyOfResidence.RowFilter = "StateFips=" + stateFips;
            if (dataViewCountyOfResidence.Count > 0)
            {
                DropDownList_CustomAcuteServicesPrescreens_ClientCounty.DataSource     = dataViewCountyOfResidence;
                DropDownList_CustomAcuteServicesPrescreens_ClientCounty.DataTextField  = "CountyName";
                DropDownList_CustomAcuteServicesPrescreens_ClientCounty.DataValueField = "CountyFIPS";
                DropDownList_CustomAcuteServicesPrescreens_ClientCounty.DataBind();
                DropDownList_CustomAcuteServicesPrescreens_ClientCounty.Items.Insert(0, new ListItem("", ""));
            }
        }
 public override void BindControls()
 {
     getLabDropDownList();
     using (DataView DataViewGlobalCodetransitionProblemStatus = BaseCommonFunctions.FillDropDown("XPSYCHEVALSTATUS", true, "", "CodeName", true))
     {
         if (DataViewGlobalCodetransitionProblemStatus != null)
         {
             DataViewGlobalCodetransitionProblemStatus.RowFilter = "GlobalCodeId is not null and Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
             DropDownListCommon_CustomDocumentPsychiatricEvaluations_ProblemStatus.DataTableGlobalCodes = DataViewGlobalCodetransitionProblemStatus.ToDataTable();
             DropDownListCommon_CustomDocumentPsychiatricEvaluations_ProblemStatus.FillDropDownDropGlobalCodes();
             DropDownListCommon_CustomDocumentPsychiatricEvaluations_ProblemStatus.Items.Insert(0, new ListItem("", "0"));;
         }
     }
 }
示例#12
0
 public override void BindControls()
 {
     getLabDropDownList();
     #region Bind DropDownList For Transition/Discharge Reason
     using (DataView DataViewGlobalCodetransitionProblemStatus = BaseCommonFunctions.FillDropDown("XPROBLEMSTATUS", true, "", "CodeName", true))
     {
         if (DataViewGlobalCodetransitionProblemStatus != null)
         {
             DataViewGlobalCodetransitionProblemStatus.RowFilter = "GlobalCodeId is not null and Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
             DropDownListCommon_CustomDocumentPsychiatricServiceNoteMDMs_ProblemStatus.DataTableGlobalCodes = DataViewGlobalCodetransitionProblemStatus.ToDataTable();
             DropDownListCommon_CustomDocumentPsychiatricServiceNoteMDMs_ProblemStatus.FillDropDownDropGlobalCodes();
             DropDownListCommon_CustomDocumentPsychiatricServiceNoteMDMs_ProblemStatus.Items.Insert(0, new ListItem("", "0"));;
         }
     }
     #endregion
 }
        public override void BindControls()
        {
            DataSet ds = BaseCommonFunctions.ScreenInfo.CurrentDocument.DocumentDataSet;

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XCSSRSYESNO", true, "", "", false))
            {
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_WishToBeDead.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_WishToBeDead.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_WishToBeDead.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_WishToBeDead.DataBind();
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_WishToBeDead.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughts.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughts.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughts.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughts.DataBind();
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughts.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughtsWithMethods.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughtsWithMethods.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughtsWithMethods.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughtsWithMethods.DataBind();
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalThoughtsWithMethods.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithoutSpecificPlan.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithoutSpecificPlan.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithoutSpecificPlan.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithoutSpecificPlan.DataBind();
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithoutSpecificPlan.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithSpecificPlan.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithSpecificPlan.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithSpecificPlan.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithSpecificPlan.DataBind();
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalIntentWithSpecificPlan.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalBehaviorQuestion.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalBehaviorQuestion.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalBehaviorQuestion.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalBehaviorQuestion.DataBind();
                DropDownList_CustomDocumentCSSRSAdultSinceLastVisits_SuicidalBehaviorQuestion.Items.Insert(0, new ListItem("", ""));
            }
        }
示例#14
0
        /// <summary>
        /// <Description>Create New Row in TPNeeds table</Description>
        /// <Author>Vikas Vyas</Author>
        /// <CreatedOn>22nd-Sept-2009</CreatedOn>
        /// </summary>
        private void AddGoal()
        {
            DataRow[] dataRowTPNeed        = null;
            int       needId               = 0;
            string    filterString         = string.Empty;
            string    strFirstNameLastName = string.Empty;

            //try catch finally block commented by shifali in ref to task# 950 on 5 june,2010
            //try
            //{
            needId = Convert.ToInt32(Request.QueryString["needId"]);
            using (DataSet dataSetTreatmentPlanHRM = BaseCommonFunctions.ScreenInfo.CurrentDocument.DocumentDataSet)
            {
                if (dataSetTreatmentPlanHRM != null && dataSetTreatmentPlanHRM.Tables.Count > 0)
                {
                    if (dataSetTreatmentPlanHRM.Tables.Contains("TPNeeds"))
                    {
                        dataRowTPNeed = dataSetTreatmentPlanHRM.Tables["TPNeeds"].Select("Isnull(RecordDeleted,'N')<>'Y' and NeedId=" + needId);
                        using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("StageOfTreatment", true, "", "SortOrder", false))
                        {
                        }
                        HiddenField_TPNeeds_NeedId.Value = needId.ToString();                                                                                                                                       // Convert.ToString(dataRowTPNeeds[0]["NeedId"]);
                        Litral_TPNeeds_GoalNumber.Text   = "Goal " + Convert.ToString(Convert.ToInt32(dataSetTreatmentPlanHRM.Tables["TPNeeds"].Compute("Max(NeedNumber)", "Isnull(RecordDeleted,'N')<>'Y'")) + 1); //"Goal " + Convert.ToString(dataRowTPNeeds["NeedNumber"]);

                        if (BaseCommonFunctions.ApplicationInfo.LoggedInUser.LastName != string.Empty)
                        {
                            strFirstNameLastName = BaseCommonFunctions.ApplicationInfo.LoggedInUser.LastName;
                        }
                        if (BaseCommonFunctions.ApplicationInfo.LoggedInUser.FirstName != string.Empty)
                        {
                            if (strFirstNameLastName != string.Empty)
                            {
                                strFirstNameLastName = strFirstNameLastName + ", " + BaseCommonFunctions.ApplicationInfo.LoggedInUser.FirstName;
                            }
                            else
                            {
                                strFirstNameLastName = BaseCommonFunctions.ApplicationInfo.LoggedInUser.FirstName;
                            }
                        }
                    }
                }
            }
        }
示例#15
0
        public override void BindControls()
        {
            DataSet dsHealthHomeDocuments = new DataSet();

            dsHealthHomeDocuments = BaseCommonFunctions.GetScreenInfoDataSet();

            DataView dataViewClinician = SHS.BaseLayer.SharedTables.GetSharedTableStaff();

            dataViewClinician.RowFilter = "Clinician='Y' and Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
            dataViewClinician.Sort      = "StaffName ASC";
            DropDownList_CustomDocumentHealthHomeTransitionPlans_ClinicianCoordinatingDischarge.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeTransitionPlans_ClinicianCoordinatingDischarge.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeTransitionPlans_ClinicianCoordinatingDischarge.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeTransitionPlans_ClinicianCoordinatingDischarge.DataBind();
            DropDownList_CustomDocumentHealthHomeTransitionPlans_ClinicianCoordinatingDischarge.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeTransitionPlans_ClinicianCoordinatingDischarge.SelectedIndex = 0;

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XHHTRANSENTITY", true, "", "", false))
            {
                if (DataViewGlobalCodes != null)
                {
                    DataViewGlobalCodes.Sort = "SortOrder asc";
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionFromEntityType.DataTextField  = "CodeName";
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionFromEntityType.DataValueField = "GlobalCodeID";
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionFromEntityType.DataSource     = DataViewGlobalCodes;
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionFromEntityType.DataBind();
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionFromEntityType.Items.Insert(0, new ListItem("", "0"));
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionFromEntityType.SelectedIndex = 0;

                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionToEntityType.DataTextField  = "CodeName";
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionToEntityType.DataValueField = "GlobalCodeID";
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionToEntityType.DataSource     = DataViewGlobalCodes;
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionToEntityType.DataBind();
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionToEntityType.Items.Insert(0, new ListItem("", "0"));
                    DropDownList_CustomDocumentHealthHomeTransitionPlans_TransitionToEntityType.SelectedIndex = 0;
                }
            }

            CustomGrid_CustomDocumentHealthHomeReferrals.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomePriorAuthorizations.Bind(ParentDetailPageObject.ScreenId);
        }
示例#16
0
        public override void BindControls()
        {
            IntegratedCarePlanCreatedBy = BaseCommonFunctions.ApplicationInfo.LoggedInUser.UserCode;
            // Bind Screen Id to each Custom Grid
            CustomGrid_CustomDocumentHealthHomeCarePlanBHGoals.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomeCarePlanOutcomes.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomeCarePlanDiagnoses.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomeCarePlanLongTermCareOutcomes.Bind(ParentDetailPageObject.ScreenId);
            CustomGrid_CustomDocumentHealthHomeCarePlanPESNeeds.Bind(ParentDetailPageObject.ScreenId);
            // Bind Dropdowns
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XICPNEEDS", true, "", "", false))
            {
                DataViewGlobalCodes.Sort = "SortOrder asc";
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.DataBind();
                DropDownList_CustomDocumentHealthHomeCarePlanPESNeeds_PsychosocialSupportNeedType.Items.Insert(0, new ListItem("", "0"));
            }

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XICPLTTYPES", true, "", "", false))
            {
                DataViewGlobalCodes.Sort = "SortOrder asc";
                DropDownList_CustomDocumentHealthHomeCarePlans_AdmitToFacilityType.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCarePlans_AdmitToFacilityType.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentHealthHomeCarePlans_AdmitToFacilityType.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCarePlans_AdmitToFacilityType.DataBind();
                DropDownList_CustomDocumentHealthHomeCarePlans_AdmitToFacilityType.Items.Insert(0, new ListItem("", "0"));
            }

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XDIAGNOSISSOURCE", true, "", "", false))
            {
                DataViewGlobalCodes.Sort = "SortOrder asc";
                DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.DataBind();
                DropDownList_CustomDocumentHealthHomeCarePlanDiagnoses_DiagnosisSource.Items.Insert(0, new ListItem("", "0"));
            }
        }
示例#17
0
        public override void BindControls()
        {
            using (DataView dataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XPSDDRISKDUETO", true, "", "SortOrder", true))
            {
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataBind();
            }
        }
示例#18
0
        public override void BindControls()
        {
            //string str = Request.Form["HiddenFieldPageFilters"].ToString();
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("LIVINGARRANGEMENT", true, "", "CodeName", true))
            {
                //DataViewGlobalCodes.Sort = "CodeName";
                DropDownList_CustomHRMAssessments_CurrentLivingArrangement.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_CurrentLivingArrangement.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_CurrentLivingArrangement.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_CurrentLivingArrangement.DataBind();
            }
            //DropDownList_CustomHRMAssessments_CurrentPrimaryCarePhysician
            //Commented by Loveena on ref to Task#201
            //using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XPrimaryPractitioner", true, "", "", true))
            //{
            //    DataViewGlobalCodes.Sort = "CodeName";
            //    DropDownList_CustomHRMAssessments_CurrentPrimaryCarePhysician.DataTextField = "CodeName";
            //    DropDownList_CustomHRMAssessments_CurrentPrimaryCarePhysician.DataValueField = "GlobalCodeId";
            //    DropDownList_CustomHRMAssessments_CurrentPrimaryCarePhysician.DataSource = DataViewGlobalCodes;
            //    DropDownList_CustomHRMAssessments_CurrentPrimaryCarePhysician.DataBind();
            //}

            using (DataView dataViewGlobalCodes = BaseCommonFunctions.FillDropDown("REFERRALTYPE", true, "", "CodeName", true))
            {
                // dataViewGlobalCodes.Sort = "SortOrder";
                DropDownList_CustomHRMAssessments_ReferralType.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_ReferralType.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_ReferralType.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_ReferralType.DataBind();
            }
            //To fill dropdown CurrentEmploymentStatus
            using (DataView dataViewGlobalCodes = BaseCommonFunctions.FillDropDown("EMPLOYMENTSTATUS", true, "", "CodeName", true))
            {
                DropDownList_CustomHRMAssessments_EmploymentStatus.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_EmploymentStatus.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_EmploymentStatus.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_EmploymentStatus.DataBind();
            }
        }
示例#19
0
        public override void BindControls()
        {
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XCSSRSYESNO", true, "", "", false))
            {
                DropDownList_CustomDocumentAdultLTs_DeadLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_DeadLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_DeadLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_DeadLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_DeadLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_DeadPast1Month.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_DeadPast1Month.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_DeadPast1Month.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_DeadPast1Month.DataBind();
                DropDownList_CustomDocumentAdultLTs_DeadPast1Month.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_NonSpecificLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_NonSpecificLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_NonSpecificLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_NonSpecificLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_NonSpecificLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_NonSpecificPast1Month.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_NonSpecificPast1Month.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_NonSpecificPast1Month.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_NonSpecificPast1Month.DataBind();
                DropDownList_CustomDocumentAdultLTs_NonSpecificPast1Month.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationPast1Month.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationPast1Month.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationPast1Month.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationPast1Month.DataBind();
                DropDownList_CustomDocumentAdultLTs_ActiveSuicidalIdeationPast1Month.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ASILifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ASILifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ASILifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ASILifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_ASILifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ASIPast1Month.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ASIPast1Month.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ASIPast1Month.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ASIPast1Month.DataBind();
                DropDownList_CustomDocumentAdultLTs_ASIPast1Month.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ASISPILifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ASISPILifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ASISPILifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ASISPILifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_ASISPILifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ASISPIPast1Month.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ASISPIPast1Month.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ASISPIPast1Month.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ASISPIPast1Month.DataBind();
                DropDownList_CustomDocumentAdultLTs_ASISPIPast1Month.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataBind();
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_SelfInjuriesOne.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesOne.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesOne.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesOne.DataBind();
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesOne.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.DataBind();
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviourPast3Monts.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_SelfInjuriesTwo.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesTwo.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesTwo.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesTwo.DataBind();
                DropDownList_CustomDocumentAdultLTs_SelfInjuriesTwo.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptPast3Months.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptPast3Months.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptPast3Months.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptPast3Months.DataBind();
                DropDownList_CustomDocumentAdultLTs_InterruptedAttemptPast3Months.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_AbortedLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_AbortedLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_AbortedLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_AbortedLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_AbortedLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_AbortedPast3Months.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_AbortedPast3Months.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_AbortedPast3Months.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_AbortedPast3Months.DataBind();
                DropDownList_CustomDocumentAdultLTs_AbortedPast3Months.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_PreparatoryLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_PreparatoryLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_PreparatoryLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_PreparatoryLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_PreparatoryLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_preparatoryPast3Months.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_preparatoryPast3Months.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_preparatoryPast3Months.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_preparatoryPast3Months.DataBind();
                DropDownList_CustomDocumentAdultLTs_preparatoryPast3Months.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorLifeTime.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorLifeTime.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorLifeTime.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorLifeTime.DataBind();
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorLifeTime.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorPast3Months.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorPast3Months.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorPast3Months.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorPast3Months.DataBind();
                DropDownList_CustomDocumentAdultLTs_SuicidalBehaviorPast3Months.Items.Insert(0, new ListItem("", ""));
            }
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XSEVERITY", true, "", "", false))
            {
                DropDownList_CustomDocumentAdultLTs_LifeTimeMostSevere.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_LifeTimeMostSevere.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_LifeTimeMostSevere.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_LifeTimeMostSevere.DataBind();
                DropDownList_CustomDocumentAdultLTs_LifeTimeMostSevere.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_RecentMostSevere.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_RecentMostSevere.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_RecentMostSevere.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_RecentMostSevere.DataBind();
                DropDownList_CustomDocumentAdultLTs_RecentMostSevere.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_DurationMostSevereOne.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereOne.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereOne.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereOne.DataBind();
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereOne.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_DurationMostSevereTwo.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereTwo.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereTwo.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereTwo.DataBind();
                DropDownList_CustomDocumentAdultLTs_DurationMostSevereTwo.Items.Insert(0, new ListItem("", ""));
            }
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XFrequencyOne", true, "", "", false))
            {
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereOne.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereOne.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereOne.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereOne.DataBind();
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereOne.Items.Insert(0, new ListItem("", ""));
            }

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XFrequencyTwo", true, "", "", false))
            {
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereTwo.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereTwo.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereTwo.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereTwo.DataBind();
                DropDownList_CustomDocumentAdultLTs_FrequencyMostSevereTwo.Items.Insert(0, new ListItem("", ""));
            }
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XConDetReason", true, "", "", false))
            {
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereOne.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereOne.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereOne.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereOne.DataBind();
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereOne.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereTwo.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereTwo.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereTwo.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereTwo.DataBind();
                DropDownList_CustomDocumentAdultLTs_ControllabilityMostSevereTwo.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereOne.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereOne.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereOne.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereOne.DataBind();
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereOne.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereTwo.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereTwo.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereTwo.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereTwo.DataBind();
                DropDownList_CustomDocumentAdultLTs_DeterrentsMostSevereTwo.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereOne.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereOne.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereOne.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereOne.DataBind();
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereOne.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereTwo.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereTwo.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereTwo.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereTwo.DataBind();
                DropDownList_CustomDocumentAdultLTs_ReasonsMostSevereTwo.Items.Insert(0, new ListItem("", ""));
            }

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XActualLethality", true, "", "", false))
            {
                DropDownList_CustomDocumentAdultLTs_ActualLethality1.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ActualLethality1.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ActualLethality1.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ActualLethality1.DataBind();
                DropDownList_CustomDocumentAdultLTs_ActualLethality1.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ActualLethality2.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ActualLethality2.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ActualLethality2.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ActualLethality2.DataBind();
                DropDownList_CustomDocumentAdultLTs_ActualLethality2.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_ActualLethality3.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_ActualLethality3.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_ActualLethality3.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_ActualLethality3.DataBind();
                DropDownList_CustomDocumentAdultLTs_ActualLethality3.Items.Insert(0, new ListItem("", ""));
            }

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XPotentialLethality", true, "", "", false))
            {
                DropDownList_CustomDocumentAdultLTs_PotentialLethality1.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_PotentialLethality1.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_PotentialLethality1.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_PotentialLethality1.DataBind();
                DropDownList_CustomDocumentAdultLTs_PotentialLethality1.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_PotentialLethality2.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_PotentialLethality2.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_PotentialLethality2.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_PotentialLethality2.DataBind();
                DropDownList_CustomDocumentAdultLTs_PotentialLethality2.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentAdultLTs_PotentialLethality3.DataTextField  = "CodeName";
                DropDownList_CustomDocumentAdultLTs_PotentialLethality3.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentAdultLTs_PotentialLethality3.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentAdultLTs_PotentialLethality3.DataBind();
                DropDownList_CustomDocumentAdultLTs_PotentialLethality3.Items.Insert(0, new ListItem("", ""));
            }
        }
示例#20
0
        public override void BindControls()
        {
            CustomGrid.Bind(ParentDetailPageObject.ScreenId);

            using (DataView dataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XPSDDRISKDUETO", true, "", "SortOrder", true))
            {
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskLossOfPlacementDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskLossOfSupportDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskExpulsionFromSchoolDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskHospitalizationDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskCriminalJusticeSystemDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskElopementFromHomeDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskLossOfFinancialStatusDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskHigherLevelOfCareDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskHigherLevelOfCareDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskHigherLevelOfCareDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskHigherLevelOfCareDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskOutOfCountryPlacementDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskOutOfCountryPlacementDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskOutOfCountryPlacementDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskOutOfCountryPlacementDueTo.DataBind();

                DropDownList_CustomHRMAssessments_PsRiskOutOfHomePlacementDueTo.DataTextField  = "CodeName";
                DropDownList_CustomHRMAssessments_PsRiskOutOfHomePlacementDueTo.DataValueField = "GlobalCodeId";
                DropDownList_CustomHRMAssessments_PsRiskOutOfHomePlacementDueTo.DataSource     = dataViewGlobalCodes;
                DropDownList_CustomHRMAssessments_PsRiskOutOfHomePlacementDueTo.DataBind();

                foreach (Control ctrl in this.Controls)
                {
                    if (ctrl is Streamline.DotNetDropDownGlobalCodes.DropDownGlobalCodes)
                    {
                        ((Streamline.DotNetDropDownGlobalCodes.DropDownGlobalCodes)ctrl).DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
                        ((Streamline.DotNetDropDownGlobalCodes.DropDownGlobalCodes)ctrl).FillDropDownDropGlobalCodes();
                        continue;
                    }
                }
            }
        }
示例#21
0
    ///<summary>
    ///<Description>This Function is used to bind form id of DFA
    ///<Author>Jagdeep Hundal</Author>
    ///<CreatedOn>Aug 25,2011</CreatedOn>
    ///</summary>
    ///

    public override void BindControls()
    {
        //DynamicFormsDemographics.FormId = 82;
        //DynamicFormsDemographics.Activate();
        DataView dataViewPrograms = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes);

        dataViewPrograms.RowFilter = "Category='SEX' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        DownList_CustomDocumentRegistrations_Sex.DataTextField  = "CodeName";
        DownList_CustomDocumentRegistrations_Sex.DataValueField = "GlobalCodeId";
        DownList_CustomDocumentRegistrations_Sex.DataSource     = dataViewPrograms;
        DownList_CustomDocumentRegistrations_Sex.DataBind();
        dataViewPrograms.RowFilter = "Category='MARITALSTATUS' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        DownList_CustomDocumentRegistrations_MaritalStatus.DataTextField  = "CodeName";
        DownList_CustomDocumentRegistrations_MaritalStatus.DataValueField = "GlobalCodeId";
        DownList_CustomDocumentRegistrations_MaritalStatus.DataSource     = dataViewPrograms;
        DownList_CustomDocumentRegistrations_MaritalStatus.DataBind();
        dataViewPrograms.RowFilter = "Category='XCOMMMETHOD' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        DropDownList_CustomDocumentRegistrations_PrimayMethodOfCommunication.DataTextField  = "CodeName";
        DropDownList_CustomDocumentRegistrations_PrimayMethodOfCommunication.DataValueField = "GlobalCodeId";
        DropDownList_CustomDocumentRegistrations_PrimayMethodOfCommunication.DataSource     = dataViewPrograms;
        DropDownList_CustomDocumentRegistrations_PrimayMethodOfCommunication.DataBind();
        dataViewPrograms.RowFilter = "Category='XINTERPRETERNEEDED' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        DropDownList_CustomDocumentRegistrations_InterpreterNeeded.DataTextField  = "CodeName";
        DropDownList_CustomDocumentRegistrations_InterpreterNeeded.DataValueField = "GlobalCodeId";
        DropDownList_CustomDocumentRegistrations_InterpreterNeeded.DataSource     = dataViewPrograms;
        DropDownList_CustomDocumentRegistrations_InterpreterNeeded.DataBind();
        dataViewPrograms.RowFilter = "Category='XTRIBALAFFILIATION' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        dataViewPrograms.Sort      = "CodeName ASC";
        DropDownList_CustomDocumentRegistrations_TribalAffiliation.DataTextField  = "CodeName";
        DropDownList_CustomDocumentRegistrations_TribalAffiliation.DataValueField = "GlobalCodeId";
        DropDownList_CustomDocumentRegistrations_TribalAffiliation.DataSource     = dataViewPrograms;
        DropDownList_CustomDocumentRegistrations_TribalAffiliation.DataBind();
        dataViewPrograms.RowFilter = "Category='LANGUAGE' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        dataViewPrograms.Sort      = "CodeName ASC";
        DropDownList_CustomDocumentRegistrations_PrimaryLanguage.DataTextField  = "CodeName";
        DropDownList_CustomDocumentRegistrations_PrimaryLanguage.DataValueField = "GlobalCodeId";
        DropDownList_CustomDocumentRegistrations_PrimaryLanguage.DataSource     = dataViewPrograms;
        DropDownList_CustomDocumentRegistrations_PrimaryLanguage.DataBind();
        dataViewPrograms.RowFilter = "Category='XSECODARYLANGUAGE' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        dataViewPrograms.Sort      = "CodeName ASC";
        DropDownList_CustomDocumentRegistrations_SecondaryLanguage.DataTextField  = "CodeName";
        DropDownList_CustomDocumentRegistrations_SecondaryLanguage.DataValueField = "GlobalCodeId";
        DropDownList_CustomDocumentRegistrations_SecondaryLanguage.DataSource     = dataViewPrograms;
        DropDownList_CustomDocumentRegistrations_SecondaryLanguage.DataBind();
        dataViewPrograms.RowFilter = "Category='HISPANICORIGIN' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        DropDownList_CustomDocumentRegistrations_HispanicOrigin.DataTextField  = "CodeName";
        DropDownList_CustomDocumentRegistrations_HispanicOrigin.DataValueField = "GlobalCodeId";
        DropDownList_CustomDocumentRegistrations_HispanicOrigin.DataSource     = dataViewPrograms;
        DropDownList_CustomDocumentRegistrations_HispanicOrigin.DataBind();
        dataViewPrograms.RowFilter = "Category='RACE' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        DropDownList_CustomDocumentRegistrations_Race.DataTextField  = "CodeName";
        DropDownList_CustomDocumentRegistrations_Race.DataValueField = "GlobalCodeId";
        DropDownList_CustomDocumentRegistrations_Race.DataSource     = dataViewPrograms;
        DropDownList_CustomDocumentRegistrations_Race.DataBind();
        dataViewPrograms.RowFilter = "Category='XPATIENTTYPE' and Active='Y' and ISNULL(RecordDeleted,'N')='N'";
        //DropDownList_CustomDocumentRegistrations_PatientType.DataTextField = "CodeName";
        //DropDownList_CustomDocumentRegistrations_PatientType.DataValueField = "GlobalCodeId";
        //DropDownList_CustomDocumentRegistrations_PatientType.DataSource = dataViewPrograms;
        //DropDownList_CustomDocumentRegistrations_PatientType.DataBind();
        Bind_Filter_States();
        Bind_Filter_Counties();
        using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("CLIENTNAMESUFFIX", true, "", "", true))
        //using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("suffix", true, "", "", true))
        {
            DropDownList_CustomDocumentRegistrations_Suffix.DataTextField  = "CodeName";
            DropDownList_CustomDocumentRegistrations_Suffix.DataValueField = "CodeName";
            DropDownList_CustomDocumentRegistrations_Suffix.DataSource     = DataViewGlobalCodes;
            DropDownList_CustomDocumentRegistrations_Suffix.DataBind();
        }
    }
示例#22
0
        private void BindDropDowns()
        {
            DataView dataViewClinician = SHS.BaseLayer.SharedTables.GetSharedTableStaff();

            dataViewClinician.RowFilter = "Clinician='Y' and Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
            dataViewClinician.Sort      = "StaffName ASC";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember1.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember1.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember1.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember1.DataBind();
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember1.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember1.SelectedIndex = 0;

            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember2.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember2.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember2.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember2.DataBind();
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember2.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember2.SelectedIndex = 0;

            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember3.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember3.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember3.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember3.DataBind();
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember3.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember3.SelectedIndex = 0;

            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember4.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember4.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember4.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember4.DataBind();
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember4.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember4.SelectedIndex = 0;

            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember5.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember5.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember5.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember5.DataBind();
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember5.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember5.SelectedIndex = 0;

            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember6.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember6.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember6.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember6.DataBind();
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember6.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember6.SelectedIndex = 0;

            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember7.DataTextField  = "StaffName";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember7.DataValueField = "StaffId";
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember7.DataSource     = dataViewClinician;
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember7.DataBind();
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember7.Items.Insert(0, new ListItem("", "0"));
            DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamMember7.SelectedIndex = 0;

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XHHROLE", true, "", "", false))
            {
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole1.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole1.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole1.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole1.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole1.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole1.SelectedIndex = 0;

                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole2.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole2.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole2.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole2.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole2.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole2.SelectedIndex = 0;

                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole3.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole3.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole3.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole3.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole3.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole3.SelectedIndex = 0;

                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole4.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole4.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole4.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole4.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole4.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole4.SelectedIndex = 0;

                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole5.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole5.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole5.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole5.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole5.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole5.SelectedIndex = 0;

                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole6.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole6.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole6.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole6.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole6.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole6.SelectedIndex = 0;

                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole7.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole7.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole7.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole7.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole7.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_HealthHomeTeamRole7.SelectedIndex = 0;
            }
            using (DataView DataViewGC = BaseCommonFunctions.FillDropDown("XHHPayors", true, "", "", false))
            {
                DropDownList_CustomDocumentHealthHomeCommPlans_MedicaidManagedCarePlan.DataTextField  = "CodeName";
                DropDownList_CustomDocumentHealthHomeCommPlans_MedicaidManagedCarePlan.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentHealthHomeCommPlans_MedicaidManagedCarePlan.DataSource     = DataViewGC;
                DropDownList_CustomDocumentHealthHomeCommPlans_MedicaidManagedCarePlan.DataBind();
                DropDownList_CustomDocumentHealthHomeCommPlans_MedicaidManagedCarePlan.Items.Insert(0, new ListItem("", "0"));
                DropDownList_CustomDocumentHealthHomeCommPlans_MedicaidManagedCarePlan.SelectedIndex = 0;
            }
        }
示例#23
0
        public override void BindControls()
        {
            DataSet ds = BaseCommonFunctions.ScreenInfo.CurrentDocument.DocumentDataSet;

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XCSSRSYESNO", true, "", "", false))
            {
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_WishToBeDead.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_WishToBeDead.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_WishToBeDead.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_WishToBeDead.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_WishToBeDead.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_NonSpecificActiveSuicidalThoughts.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_NonSpecificActiveSuicidalThoughts.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_NonSpecificActiveSuicidalThoughts.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_NonSpecificActiveSuicidalThoughts.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_NonSpecificActiveSuicidalThoughts.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithAnyMethodsWithoutIntentToAct.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithAnyMethodsWithoutIntentToAct.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithAnyMethodsWithoutIntentToAct.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithAnyMethodsWithoutIntentToAct.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithAnyMethodsWithoutIntentToAct.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithSomeIntentToActWithoutSpecificPlan.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithSomeIntentToActWithoutSpecificPlan.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithSomeIntentToActWithoutSpecificPlan.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithSomeIntentToActWithoutSpecificPlan.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActiveSuicidalIdeationWithSomeIntentToActWithoutSpecificPlan.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AciveSuicidalIdeationWithSpecificPlanAndIntent.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AciveSuicidalIdeationWithSpecificPlanAndIntent.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AciveSuicidalIdeationWithSpecificPlanAndIntent.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AciveSuicidalIdeationWithSpecificPlanAndIntent.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AciveSuicidalIdeationWithSpecificPlanAndIntent.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualAttempt.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualAttempt.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualAttempt.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualAttempt.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualAttempt.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInNonSuicidalSelfInjuriousBehavior.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInNonSuicidalSelfInjuriousBehavior.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInNonSuicidalSelfInjuriousBehavior.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInNonSuicidalSelfInjuriousBehavior.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInNonSuicidalSelfInjuriousBehavior.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInSelfInjuriousBehaviorIntentUnknown.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInSelfInjuriousBehaviorIntentUnknown.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInSelfInjuriousBehaviorIntentUnknown.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInSelfInjuriousBehaviorIntentUnknown.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_HasSubjectEngagedInSelfInjuriousBehaviorIntentUnknown.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_InterruptedAttempt.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_InterruptedAttempt.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_InterruptedAttempt.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_InterruptedAttempt.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_InterruptedAttempt.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AbortedOrSelfInterruptedAttempt.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AbortedOrSelfInterruptedAttempt.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AbortedOrSelfInterruptedAttempt.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AbortedOrSelfInterruptedAttempt.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_AbortedOrSelfInterruptedAttempt.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PreparatoryActsOrBehavior.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PreparatoryActsOrBehavior.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PreparatoryActsOrBehavior.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PreparatoryActsOrBehavior.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PreparatoryActsOrBehavior.Items.Insert(0, new ListItem("", ""));

                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_SuicidalBehavior.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_SuicidalBehavior.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_SuicidalBehavior.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_SuicidalBehavior.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_SuicidalBehavior.Items.Insert(0, new ListItem("", ""));
            }
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XCSSRSCASLTSEVERE", true, "", "", false))
            {
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_MostSevereIdeation.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_MostSevereIdeation.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_MostSevereIdeation.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_MostSevereIdeation.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_MostSevereIdeation.Items.Insert(0, new ListItem("", ""));
            }
            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XCSSRSCASLTFREQUENCY", true, "", "", false))
            {
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_Frequency.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_Frequency.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_Frequency.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_Frequency.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_Frequency.Items.Insert(0, new ListItem("", ""));
            }

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XActualLethality", true, "", "", false))
            {
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualLethalityMedicalDamage.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualLethalityMedicalDamage.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualLethalityMedicalDamage.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualLethalityMedicalDamage.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_ActualLethalityMedicalDamage.Items.Insert(0, new ListItem("", ""));
            }

            using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("XPotentialLethality", true, "", "", false))
            {
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PotentialLethality.DataTextField  = "CodeName";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PotentialLethality.DataValueField = "GlobalCodeID";
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PotentialLethality.DataSource     = DataViewGlobalCodes;
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PotentialLethality.DataBind();
                DropDownList_CustomDocumentCSSRSChildSinceLastVisits_PotentialLethality.Items.Insert(0, new ListItem("", ""));
            }
        }
    public override void BindControls()
    {
        DropDownList_CustomInquiries_InquirerRelationToMember.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_InquirerRelationToMember.FillDropDownDropGlobalCodes();


        DropDownList_CustomInquiries_SAType.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_SAType.FillDropDownDropGlobalCodes();

        using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("REFERRALTYPE", true, "", "CodeName", true))
        {
            DropDownList_CustomInquiries_ReferralType.DataTextField  = "CodeName";
            DropDownList_CustomInquiries_ReferralType.DataValueField = "GlobalCodeId";
            DropDownList_CustomInquiries_ReferralType.DataSource     = DataViewGlobalCodes;
            DropDownList_CustomInquiries_ReferralType.DataBind();
        }
        //using (DataView DataViewGlobalCodes = BaseCommonFunctions.FillDropDown("REFERRALTYPE", true, "", "CodeName", true))
        //{

        //    DropDownList_CustomInquiries_ReferralSubtype.DataTextField = "CodeName";
        //    DropDownList_CustomInquiries_ReferralSubtype.DataValueField = "GlobalCodeId";
        //    DropDownList_CustomInquiries_ReferralSubtype.DataSource = DataViewGlobalCodes;
        //    DropDownList_CustomInquiries_ReferralSubtype.DataBind();
        //}

        if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.States != null)
        {
            DataView DataViewStatesName = SHS.BaseLayer.SharedTables.ApplicationSharedTables.States.DefaultView;
            DataViewStatesName.Sort = "StateName";
            DropDownList_CustomInquiries_State.DataTextField  = "StateName";
            DropDownList_CustomInquiries_State.DataValueField = "StateAbbreviation";
            DropDownList_CustomInquiries_State.DataSource     = DataViewStatesName;
            DropDownList_CustomInquiries_State.DataBind();

            DropDownList_CustomInquiries_ReferalState.DataTextField  = "StateName";
            DropDownList_CustomInquiries_ReferalState.DataValueField = "StateAbbreviation";
            DropDownList_CustomInquiries_ReferalState.DataSource     = DataViewStatesName;
            DropDownList_CustomInquiries_ReferalState.DataBind();
        }
        if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.Programs != null)
        {
            DataView DataViewProgramsName = SHS.BaseLayer.SharedTables.ApplicationSharedTables.Programs.DefaultView;
            DataViewProgramsName.RowFilter = "ISNULL(RecordDeleted,'N')='N' and  ISNULL(Active,'N')='Y'";
            DataViewProgramsName.Sort      = "ProgramName";
            DropDownList_CustomInquiries_ProgramId.DataTextField  = "ProgramName";
            DropDownList_CustomInquiries_ProgramId.DataValueField = "ProgramId";
            DropDownList_CustomInquiries_ProgramId.DataSource     = DataViewProgramsName;
            DropDownList_CustomInquiries_ProgramId.DataBind();
        }

        DataView dataViewLocation = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.Locations);

        DropDownList_CustomInquiries_Location.DataTextField  = "LocationName";
        DropDownList_CustomInquiries_Location.DataValueField = "LocationId";
        DropDownList_CustomInquiries_Location.DataSource     = dataViewLocation;
        DropDownList_CustomInquiries_Location.DataBind();

        DropDownList_CustomInquiries_UrgencyLevel.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_UrgencyLevel.FillDropDownDropGlobalCodes();

        DropDownList_CustomInquiries_InquiryType.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_InquiryType.FillDropDownDropGlobalCodes();

        DropDownList_CustomInquiries_ContactType.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_ContactType.FillDropDownDropGlobalCodes();

        DropDownList_CustomInquiries_InitialContact.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_InitialContact.FillDropDownDropGlobalCodes();

        DropDownList_CustomInquiries_Facility.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_Facility.FillDropDownDropGlobalCodes();


        if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff != null)
        {
            DataView DataViewStaffName = SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff.DefaultView;
            DataViewStaffName.Sort      = "StaffName";
            DataViewStaffName.RowFilter = "ISNULL(RecordDeleted,'N')='N' and  ISNULL(Active,'N')<>'N'";
            DropDownList_CustomInquiries_RecordedBy.DataTextField  = "StaffName";
            DropDownList_CustomInquiries_RecordedBy.DataValueField = "StaffId";
            DropDownList_CustomInquiries_RecordedBy.DataSource     = DataViewStaffName;
            DropDownList_CustomInquiries_RecordedBy.DataBind();

            DropDownList_CustomInquiries_GatheredBy.DataTextField  = "StaffName";
            DropDownList_CustomInquiries_GatheredBy.DataValueField = "StaffId";
            DropDownList_CustomInquiries_GatheredBy.DataSource     = DataViewStaffName;
            DropDownList_CustomInquiries_GatheredBy.DataBind();

            DropDownList_CustomInquiries_AssignedToStaffId.DataTextField  = "StaffName";
            DropDownList_CustomInquiries_AssignedToStaffId.DataValueField = "StaffId";
            DropDownList_CustomInquiries_AssignedToStaffId.DataSource     = DataViewStaffName;
            DropDownList_CustomInquiries_AssignedToStaffId.DataBind();
        }

        DropDownList_CustomInquiries_InquiryStatus.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_InquiryStatus.FillDropDownDropGlobalCodes();

        DropDownList_CustomInquiries_EmergencyContactRelationToClient.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        DropDownList_CustomInquiries_EmergencyContactRelationToClient.FillDropDownDropGlobalCodes();

        //DropDownList_CustomInquiries_PresentingPopulation.DataTableGlobalCodes = SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes;
        //DropDownList_CustomInquiries_PresentingPopulation.FillDropDownDropGlobalCodes();

        //if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.StaffLocations != null)
        //{
        //    DataView DataViewStaffLocation = SHS.BaseLayer.SharedTables.ApplicationSharedTables.StaffLocations.DefaultView;
        //    DataViewStaffLocation.Sort = "LocationName";
        //    DataViewStaffLocation.RowFilter = "StaffId=" + SHS.BaseLayer.BaseCommonFunctions.ApplicationInfo.LoggedInUser.LoggedinUserId.ToString();
        //    DropDownList_CustomInquiries_Location.DataTextField = "LocationName";
        //    DropDownList_CustomInquiries_Location.DataValueField = "LocationId";
        //    DropDownList_CustomInquiries_Location.DataSource = DataViewStaffLocation;
        //    DropDownList_CustomInquiries_Location.DataBind();
        //}


        //Adding values in the Sex dropdown
        DropDownList_CustomInquiries_Sex.Items.Add(new ListItem("", "U"));
        DropDownList_CustomInquiries_Sex.Items.Add(new ListItem("Male", "M"));
        DropDownList_CustomInquiries_Sex.Items.Add(new ListItem("Female", "F"));
        //Adding values in the Sex dropdown ends here

        LoadDispositionControl();

        //LoadVerificationEligibiltyControl();
        Bind_Filter_ReferralSubType();

        Bind_ReferralReason();
    }