示例#1
0
    public override void BindControls()
    {
        CustomGrid.Bind(ParentDetailPageObject.ScreenId);

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

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

        DataSet ds = new DataSet();

        SqlParameter[] _objectSqlParmeters;
        int            ClientID = SHS.BaseLayer.BaseCommonFunctions.ApplicationInfo.Client.ClientId;

        _objectSqlParmeters    = new SqlParameter[1];
        _objectSqlParmeters[0] = new SqlParameter("@clientId", ClientID);
        //ds=SqlHelper.ExecuteDataset(Connection.ConnectionString,CommandType.StoredProcedure,'',_objectSqlParmeters);
        ds = SqlHelper.ExecuteDataset(Connection.ConnectionString, CommandType.StoredProcedure, "csp_GetClientEnrolledPrograms", _objectSqlParmeters);


        DropDownList_CustomDischargeReferrals_Program.DataSource     = ds.Tables[0];
        DropDownList_CustomDischargeReferrals_Program.DataValueField = "ProgramId";
        DropDownList_CustomDischargeReferrals_Program.DataTextField  = "ProgramName";
        DropDownList_CustomDischargeReferrals_Program.DataBind();
        DropDownList_CustomDischargeReferrals_Program.Items.Insert(0, new ListItem("", "-1"));

        //Bind_Filter_ReferralSubType();
    }
示例#2
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;
 }
 public override void BindControls()
 {
     DropDownList_CustomDocumentTransfers_ReceivingStaff.Attributes.Add("onchange", "BindProgramDropDown();");
     DropDownList_CustomDocumentTransfers_ReceivingProgram.Attributes.Add("onchange", "SetValue();");
     DropDownList_CustomDocumentTransfers_TransferStatus.Attributes.Add("onchange", "ShowHide();");
     Bind_Control_Expires();
     CustomGrid.Bind(ParentDetailPageObject.ScreenId);
 }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RelativePath = Page.ResolveUrl("~");
     CustomGrid.Bind(SHS.BaseLayer.BaseCommonFunctions.ScreenId);
 }
示例#5
0
 public override void BindControls()
 {
     CustomGrid.Bind(ParentDetailPageObject.ScreenId);
 }
示例#6
0
        public override void BindControls()
        {
            CustomGrid.Bind(ParentDetailPageObject.ScreenId);

            using (DataView dataViewGlobalCodes = SHS.BaseLayer.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;
                    }
                }
            }

            using (DataView DataViewGlobalCodes = SHS.BaseLayer.BaseCommonFunctions.FillDropDown("XCommunicableDisease", true, "", "SortOrder", true))
            {
                DropDownGlobalCodes_CustomHRMAssessments_CommunicableDiseaseAssessed.DataTextField  = "CodeName";
                DropDownGlobalCodes_CustomHRMAssessments_CommunicableDiseaseAssessed.DataValueField = "GlobalCodeId";
                DropDownGlobalCodes_CustomHRMAssessments_CommunicableDiseaseAssessed.DataSource     = DataViewGlobalCodes;
                DropDownGlobalCodes_CustomHRMAssessments_CommunicableDiseaseAssessed.DataBind();
            }
        }
        private void BindControlGeneral()
        {
            if (SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes != null)
            {
                DataRow[] DataRowStaff   = SHS.BaseLayer.SharedTables.ApplicationSharedTables.Staff.Select("Active='Y' AND ISNULL(RecordDeleted,'N')<>'Y'");
                DataTable dataTableStaff = new DataTable("Table");
                dataTableStaff.Columns.Add("StaffID", System.Type.GetType("System.Int32"));
                dataTableStaff.Columns.Add("FirstName", System.Type.GetType("System.String"));
                dataTableStaff.Columns.Add("LastName", System.Type.GetType("System.String"));
                dataTableStaff.Columns.Add("StaffName", System.Type.GetType("System.String"));
                dataTableStaff.Columns.Add("StaffCode", System.Type.GetType("System.String"));
                dataTableStaff.Columns.Add("clinician", System.Type.GetType("System.String"));
                dataTableStaff.Columns.Add("adminstaff", System.Type.GetType("System.String"));

                DataRow dataRowObject = dataTableStaff.NewRow();
                string  signerName    = string.Empty;

                //For All Staff User
                for (int counter1 = 0; counter1 < DataRowStaff.Length; counter1++)
                {
                    dataRowObject            = dataTableStaff.NewRow();
                    dataRowObject["StaffID"] = DataRowStaff[counter1]["StaffId"];
                    signerName = Convert.ToString(DataRowStaff[counter1]["LastName"]).Trim() + ", " + Convert.ToString(DataRowStaff[counter1]["FirstName"]).Trim();
                    if (signerName.Length > 27)
                    {
                        dataRowObject["StaffName"] = signerName.Substring(0, 27) + "...";
                    }
                    else
                    {
                        dataRowObject["StaffName"] = signerName;
                    }
                    dataRowObject["FirstName"]  = DataRowStaff[counter1]["FirstName"];
                    dataRowObject["LastName"]   = DataRowStaff[counter1]["LastName"];
                    dataRowObject["StaffCode"]  = DataRowStaff[counter1]["UserCode"];
                    dataRowObject["clinician"]  = DataRowStaff[counter1]["clinician"];
                    dataRowObject["adminstaff"] = DataRowStaff[counter1]["adminstaff"];

                    dataTableStaff.Rows.Add(dataRowObject);
                }

                DataView dataViewStaff = new DataView(dataTableStaff);
                //dataViewStaff.Sort = "StaffNameID,StaffName";
                dataViewStaff.Sort = "StaffName";

                //Referring status
                DataView dataRefStatus = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes);
                dataRefStatus.RowFilter = "Category='REFERRALSTATUS' AND Active='Y' AND ISNULL(RecordDeleted,'N')<>'Y'";
                dataRefStatus.Sort      = "SortOrder";
                DropDownList_CustomDocumentReferrals_ReferralStatus.DataTextField  = "CodeName";
                DropDownList_CustomDocumentReferrals_ReferralStatus.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentReferrals_ReferralStatus.DataSource     = dataRefStatus;
                DropDownList_CustomDocumentReferrals_ReferralStatus.DataBind();
                if (SetIndex == true)
                {
                    DropDownList_CustomDocumentReferrals_ReferralStatus.SelectedIndex = 1;
                }
                //Referral DocumentReferrals


                DropDownList_CustomDocumentReferrals_ReferringStaff.DataTextField  = "StaffName";
                DropDownList_CustomDocumentReferrals_ReferringStaff.DataValueField = "StaffId";
                DropDownList_CustomDocumentReferrals_ReferringStaff.DataSource     = dataViewStaff;
                DropDownList_CustomDocumentReferrals_ReferringStaff.DataBind();
                if (initilization == true)
                {
                    DropDownList_CustomDocumentReferrals_ReferringStaff.ClearSelection();
                    DropDownList_CustomDocumentReferrals_ReferringStaff.Items.FindByValue(BaseCommonFunctions.ApplicationInfo.LoggedInUser.UserId.ToString()).Selected = true;
                    initilization = false;
                }
                //Receiving DocumentReferrals

                DataView dvReceivingStaff = new DataView(dataTableStaff);
                dvReceivingStaff.RowFilter = "clinician='Y' OR adminstaff='Y' ";
                dvReceivingStaff.Sort      = "StaffName";
                DropDownList_CustomDocumentReferrals_ReceivingStaff.DataTextField  = "StaffName";
                DropDownList_CustomDocumentReferrals_ReceivingStaff.DataValueField = "StaffId";
                DropDownList_CustomDocumentReferrals_ReceivingStaff.DataSource     = dvReceivingStaff;
                DropDownList_CustomDocumentReferrals_ReceivingStaff.DataBind();

                //Receiving program
                //DataView dataRecProgram = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.Programs);
                //dataRecProgram.RowFilter = "Active='Y' AND ISNULL(RecordDeleted,'N')='N'";
                //dataRecProgram.Sort = "ProgramName";
                //DropDownList_CustomDocumentReferrals_ReceivingProgram.DataTextField = "ProgramName";
                //DropDownList_CustomDocumentReferrals_ReceivingProgram.DataValueField = "ProgramId";
                //DropDownList_CustomDocumentReferrals_ReceivingProgram.DataSource = dataRecProgram;
                //DropDownList_CustomDocumentReferrals_ReceivingProgram.DataBind();

                //DataView dataServices = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.AuthorizationCodes);
                //dataServices.RowFilter = "Active='Y' AND ISNULL(RecordDeleted,'N')='N'";
                //dataServices.Sort = "AuthorizationCodeName";
                ////DropDownList_CustomDocumentReferrals_ReferralStatus.Items.Add(new ListItem("", "-1"));
                //DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataTextField = "AuthorizationCodeName";
                //DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataValueField = "AuthorizationCodeId";
                //DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataSource = dataServices;
                //DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataBind();

                //Service
                //Modify by :RohitK,on 06-19-2012,1796,#81 Services Drop-Downs,Harbor Go Live Issues
                //This stored procedure is designed to restrict the authorization codes available based on DocumentCodeId and ClientId
                using (SHS.UserBusinessServices.ReferralService objectReferralService = new SHS.UserBusinessServices.ReferralService())
                {
                    int      DocumentCodeId          = Convert.ToInt32(BaseCommonFunctions.CheckRowExists(BaseCommonFunctions.ScreenInfo.CurrentDocument.DocumentDataSet, "Documents") ? BaseCommonFunctions.ScreenInfo.CurrentDocument.DocumentDataSet.Tables["Documents"].Rows[0]["DocumentCodeId"] : 0);
                    DataSet  datasetReferralService  = objectReferralService.GetReferralService(DocumentCodeId, Convert.ToInt32(BaseCommonFunctions.ApplicationInfo.Client.ClientId));
                    DataView dataViewReferralService = new DataView(datasetReferralService.Tables["AuthorizationCodes"]);
                    dataViewReferralService.Sort = "DisplayAs";
                    DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataTextField  = "DisplayAs";
                    DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataValueField = "AuthorizationCodeId";
                    DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataSource     = dataViewReferralService;
                    DropDownList_CustomDocumentReferralServices_AuthorizationCodeId.DataBind();
                }

                //Receiving action
                DataView dataRecAction = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes);
                dataRecAction.RowFilter = "Category='RECEIVINGACTION' AND Active='Y' AND ISNULL(RecordDeleted,'N')='N'";
                dataRecAction.Sort      = "SortOrder";
                DropDownList_CustomDocumentReferrals_ReceivingAction.DataTextField  = "CodeName";
                DropDownList_CustomDocumentReferrals_ReceivingAction.DataValueField = "GlobalCodeId";
                DropDownList_CustomDocumentReferrals_ReceivingAction.DataSource     = dataRecAction;
                DropDownList_CustomDocumentReferrals_ReceivingAction.DataBind();


                using (SHS.UserBusinessServices.DetailPages objectCpt = new SHS.UserBusinessServices.DetailPages())
                {
                    DataSet dstGetcustomconfigurationsURL = new DataSet();
                    dstGetcustomconfigurationsURL = objectCpt.GetcustomconfigurationsURL();
                    if (dstGetcustomconfigurationsURL != null)
                    {
                        if (dstGetcustomconfigurationsURL.Tables["customconfigurations"].Rows.Count > 0)
                        {
                            HyperLink_help.NavigateUrl = Convert.ToString(dstGetcustomconfigurationsURL.Tables["customconfigurations"].Rows[0][0]);
                        }
                    }
                }
            }
            CustomGrid.Bind(ParentDetailPageObject.ScreenId);
        }
示例#8
0
    public override void BindControls()
    {
        DataView dataViewCodeName = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes);

        dataViewCodeName.RowFilter = "Category='XINCIDENTYESNO' and  Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
        dataViewCodeName.Sort      = "SortOrder,CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSweating.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSweating.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSweating.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSweating.DataBind();

        DataView dataViewNotes = new DataView(SHS.BaseLayer.SharedTables.ApplicationSharedTables.GlobalCodes);

        dataViewNotes.RowFilter = "Category='CLIENTNOTETYPE' and Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
        dataViewNotes.Sort      = "CodeName";
        DropDownList_CustomIncidentReportSeizureFollowUpOfIndividualStatuses_NoteType.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureFollowUpOfIndividualStatuses_NoteType.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureFollowUpOfIndividualStatuses_NoteType.DataSource     = dataViewNotes;
        DropDownList_CustomIncidentReportSeizureFollowUpOfIndividualStatuses_NoteType.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsUrinaryFecalIncontinence.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsUrinaryFecalIncontinence.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsUrinaryFecalIncontinence.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsUrinaryFecalIncontinence.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfArms.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfArms.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfArms.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfArms.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfLegs.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfLegs.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfLegs.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsTonicStiffnessOfLegs.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfArms.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfArms.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfArms.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfArms.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfLegs.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfLegs.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfLegs.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsClonicTwitchingOfLegs.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPupilsDilated.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPupilsDilated.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPupilsDilated.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPupilsDilated.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsAnyAbnormalEyeMovements.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsAnyAbnormalEyeMovements.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsAnyAbnormalEyeMovements.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsAnyAbnormalEyeMovements.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPostictalPeriod.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPostictalPeriod.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPostictalPeriod.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsPostictalPeriod.DataBind();

        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsVagalNerveStimulator.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsVagalNerveStimulator.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsVagalNerveStimulator.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsVagalNerveStimulator.DataBind();

        dataViewCodeName.RowFilter = "Category='XINCIDENTYESNONA' and  Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
        dataViewCodeName.Sort      = "SortOrder,CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSwipedMagnet.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSwipedMagnet.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSwipedMagnet.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsSwipedMagnet.DataBind();

        dataViewCodeName.RowFilter = "Category='XINCIDENTBREATHING' and  Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
        dataViewCodeName.Sort      = "SortOrder,CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsBreathing.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsBreathing.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsBreathing.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsBreathing.DataBind();

        dataViewCodeName.RowFilter = "Category='XINCIDENTCOLOR' and  Active='Y' and ISNULL(RecordDeleted,'N')<>'Y'";
        dataViewCodeName.Sort      = "SortOrder,CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsColor.DataTextField  = "CodeName";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsColor.DataValueField = "GlobalCodeId";
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsColor.DataSource     = dataViewCodeName;
        DropDownList_CustomIncidentReportSeizureDetails_SeizureDetailsColor.DataBind();
        Bind_Staff();
        CustomGrid.Bind(ParentDetailPageObject.ScreenId);
    }