コード例 #1
0
        protected void BuildStatusRow(string ComorbidityText, Label ComorbDateLabel, EformTextBox ComorbDateText, HtmlTableRow ComorbRow, EformCheckBox CurrentComorbCheckBox, Label ComorbNoteLabel, EformTextBox ComorbNote, EformDeleteIcon ComorbDelete)
        {
            ComorbidityDa comorbDa = new ComorbidityDa();
            DataSet       comorbDs = comorbDa.FormGetSpecialRecords(this._patientId, this._eformName, "Dynamic", Comorbidity.Comorbidity_Field, "IN", String.Concat("'", ReadyStringForDB(ComorbidityText), "'"));


            if (comorbDs.Tables.Count > 0 && comorbDs.Tables[0].Rows.Count > 0)
            {
                if (comorbDs.Tables[0].Rows[0][Comorbidity.ComorbDateText].ToString().Length > 0)
                {
                    ComorbDateLabel.Text   = comorbDs.Tables[0].Rows[0][Comorbidity.ComorbDateText].ToString();
                    ComorbDateText.Visible = false;

                    ComorbNoteLabel.Text = comorbDs.Tables[0].Rows[0][Comorbidity.ComorbNotes].ToString();
                    ComorbNote.Visible   = false;

                    CurrentComorbCheckBox.Visible = false;
                    ComorbDelete.Visible          = false;

                    ActivatePopulatedStatusRow(ComorbRow, comorbDs.Tables[0].Rows[0][Comorbidity.ComorbidityId].ToString());
                }
                else if (comorbDs.Tables[0].Rows[0][Comorbidity.ComorbDate].ToString().Length > 0)
                {
                    ComorbDateLabel.Text   = comorbDs.Tables[0].Rows[0][Comorbidity.ComorbDate].ToString();
                    ComorbDateText.Visible = false;

                    ComorbNoteLabel.Text = comorbDs.Tables[0].Rows[0][Comorbidity.ComorbNotes].ToString();
                    ComorbNote.Visible   = false;

                    CurrentComorbCheckBox.Visible = false;
                    ComorbDelete.Visible          = false;

                    ActivatePopulatedStatusRow(ComorbRow, comorbDs.Tables[0].Rows[0][Comorbidity.ComorbidityId].ToString());
                }
            }
        }
コード例 #2
0
 protected void GetComorQuality(EformCheckBox ComorChk, EformTextBox ComorQltyTxt)
 {
     ComorChk.Attributes.Add("onclick", "updateComorQlty(this,'" + ComorQltyTxt.ClientID + "');");
 }
コード例 #3
0
 protected void GetComorComboQuality(EformComboBox ComorCombo, EformTextBox ComorQltyTxt)
 {
     ComorCombo.Attributes.Add("onblur", "updateComorComboQlty('" + ComorQltyTxt.ClientID + "');");
 }
コード例 #4
0
 protected void GetTumorLocChk(EformCheckBox tumorChk, EformTextBox tumorLoc)
 {
     tumorChk.Attributes.Add("onclick", "tumorLocCheck(this,'" + tumorChk.Value + "','" + tumorLoc.ClientID + "');");
 }
コード例 #5
0
 protected void GetRadtxTarget(EformDropDownList RadType, EformTextBox RadTargetTxt, EformTextBox RadQltyTxt)
 {
     RadType.Attributes.Add("onblur", "updateRadTxTarget('" + RadTargetTxt.ClientID + "','" + RadQltyTxt.ClientID + "');");
 }
コード例 #6
0
        protected void BuildOtherStatusRow(string Status, Label StatusDateLabel, EformHidden StatusDate, EformTextBox StatusDateText, HtmlTableRow StatusRow, EformCheckBox CurrentStatusCheckBox, EformComboBox StatusValue)
        {
            StatusDa sDa = new StatusDa();
            DataSet  sDs = sDa.FormGetLastStatusByStatus(this._patientId, this._eformName, "Dynamic", Status);

            // set the number of blank rows that are added to the medications section

            if (sDs.Tables.Count > 0 && sDs.Tables[0].Rows.Count > 0)
            {
                if (sDs.Tables[0].Rows[0]["StatusDateText"].ToString().Length > 0)
                {
                    StatusDateLabel.Text          = sDs.Tables[0].Rows[0]["StatusDateText"].ToString();
                    StatusDateText.Visible        = false;
                    CurrentStatusCheckBox.Visible = false;
                    ActivatePopulatedStatusRow(StatusRow, sDs.Tables[0].Rows[0]["StatusId"].ToString());
                }
                else if (sDs.Tables[0].Rows[0]["StatusDate"].ToString().Length > 0)
                {
                    StatusDateLabel.Text          = sDs.Tables[0].Rows[0]["StatusDate"].ToString();
                    StatusDateText.Visible        = false;
                    CurrentStatusCheckBox.Visible = false;
                    ActivatePopulatedStatusRow(StatusRow, sDs.Tables[0].Rows[0]["StatusId"].ToString());
                }
                else
                {
                    CurrentStatusCheckBox.Attributes.Add("onclick", "SetDiseaseStateDate(this, '" + StatusDateText.ClientID + "', '" + System.DateTime.Now.ToShortDateString() + "', '" + StatusDate.ClientID + "');");
                    StatusDateLabel.Visible = false;   // prob not necessary -jf
                }
            }
            else
            {
                CurrentStatusCheckBox.Attributes.Add("onclick", "SetDiseaseStateDate(this, '" + StatusDateText.ClientID + "', '" + System.DateTime.Now.ToShortDateString() + "', '" + StatusDate.ClientID + "');");
                StatusDateLabel.Visible = false;   // prob not necessary -jf
            }
        }
コード例 #7
0
 protected void getStatus(EformTextBox dateTxt, EformTextBox statusTxt, EformTextBox statusDiseaseTxt, EformTextBox statusQltyTxt)
 {
     statusTxt.Attributes.Add("onblur", "updateStatusOnDate('" + statusTxt.ClientID + "','" + statusDiseaseTxt.ClientID + "','" + statusQltyTxt.ClientID + "');");
 }
コード例 #8
0
ファイル: Recurrence.ascx.cs プロジェクト: aomiit/caisis
 protected void GetStatusDetails(EformComboBox statusCombo, EformTextBox statusdiseaseTxt, EformTextBox statusQltyTxt)
 {
     statusCombo.Attributes.Add("onblur", "updateRecurDetails('" + statusdiseaseTxt.ClientID + "','" + statusQltyTxt.ClientID + "');");
 }
コード例 #9
0
 protected void GetRadtxQlty(EformComboBox RadTypeCombo, EformTextBox RadQltyTxt)
 {
     RadTypeCombo.Attributes.Add("onblur", "updateRadTxQlty('" + RadQltyTxt.ClientID + "');");
 }
コード例 #10
0
 protected void GetSalvageSurgeon(EformTextBox salDateTxt, EformTextBox salSurgeon, EformTextBox salInstitution, EformTextBox salService, EformTextBox salSite, EformTextBox salIndication, EformTextBox salQuality)
 {
     salDateTxt.Attributes.Add("onblur", "updateSurgeon('" + salSurgeon.ClientID + "','" + salInstitution.ClientID + "','" + salService.ClientID + "','" + salSite.ClientID + "','" + salIndication.ClientID + "','" + salQuality.ClientID + "')");
 }
コード例 #11
0
ファイル: MedTxBreastFU.ascx.cs プロジェクト: aomiit/caisis
 //this function is used to update complication values, only if 'Yes' is selected on check all selection,
 //from previous user control - interval patient compliants
 protected void updateComplications(EformTextBox option_value, EformTextBox encDtTxt, EformTextBox toxDtTxt, EformTextBox toxDt, EformTextBox tox, string toxValue, EformTextBox toxQlty)
 {
     if (option_value.Value == "Yes")
     {
         toxDtTxt.Value = encDtTxt.Value;
         toxDt.Value    = encDtTxt.Value;
         tox.Value      = toxValue;
         toxQlty.Value  = "STD";
     }
     else if (option_value.Value == "No" || !string.IsNullOrEmpty(option_value.Value.ToString()))
     {
         toxDtTxt.Value = "";
         toxDt.Value    = "";
         tox.Value      = "";
         toxQlty.Value  = "";
     }
 }
コード例 #12
0
ファイル: I131UptakeScan.ascx.cs プロジェクト: aomiit/caisis
 protected void SetImgSite(CheckBox OutResultChkBox, EformTextBox DxImgSiteTxt, EformDropDownList DxImgSideDD, EformTextBox DxImgsubSiteTxt, EformTextBox DxImgResultTxt, EformTextBox DxImgFindSUV_Txt)
 {
     OutResultChkBox.Attributes.Add("onclick", "OutResultCheck(this,'" + OutResultChkBox.Text + "','" + DxImgSiteTxt.ClientID + "','" + DxImgSideDD.ClientID + "','" + DxImgsubSiteTxt.ClientID + "','" + DxImgResultTxt.ClientID + "','" + DxImgFindSUV_Txt.ClientID + "');");
 }
コード例 #13
0
ファイル: I131UptakeScan.ascx.cs プロジェクト: aomiit/caisis
 protected void SetDxSite(EformCheckBox DxResultChk, EformTextBox DxDateTxt, EformHidden DxDate, EformTextBox DxSite, EformTextBox DxType, EformTextBox DxTarget, EformTextBox DxSide, EformTextBox DxQlty, EformTextBox DxIndc, EformTextBox DxResult)
 {
     DxResultChk.Attributes.Add("onclick", "DiagResultCheck(this,'" + DxResultChk.Value + "','" + DxDateTxt.ClientID + "','" + DxDate.ClientID + "', '" + DxSite.ClientID + "', '" + DxType.ClientID + "','" + DxTarget.ClientID + "','" + DxSide.ClientID + "','" + DxQlty.ClientID + "','" + DxIndc.ClientID + "','" + DxResult.ClientID + "');");
 }
コード例 #14
0
 protected void GetValuesOnCheck(EformCheckBox ExtCheck, EformCheckBox grossCheck, EformTextBox prfindSide)
 {
     ExtCheck.Attributes.Add("onclick", "updateValuesOnCheck(this, '" + grossCheck.ClientID + "','" + prfindSide.ClientID + "');");
     grossCheck.Attributes.Add("onclick", "updateValuesOnCheck('" + ExtCheck.ClientID + "', this, '" + prfindSide.ClientID + "');");
 }
コード例 #15
0
 protected void FamDxValues(EformCheckBox FamMemChk, EformTextBox FamMemDx)
 {
     FamMemChk.Attributes.Add("onclick", "FamMemCheck(this,'" + FamMemChk.Value + "', '" + FamMemDx.ClientID + "', 'Thyroid Cancer');");
 }
コード例 #16
0
ファイル: BaseEFormControl.cs プロジェクト: aomiit/caisis
        /// <summary>
        ///
        /// </summary>
        /// <param name="con"></param>
        /// <param name="xmlDoc"></param>
        /// <param name="inputFieldValue"></param>
        protected void SetControlValue(IEformInputField con, XmlDocument xmlDoc, string inputFieldValue)
        {
            if (inputFieldValue != null)
            {
                // TODO: collapse this into a call on the IEformInputField interface
                if (con is EformTextBox)
                {
                    EformTextBox temp = (EformTextBox)con;
                    //temp.Value = inputFieldValue;
                    temp.Text = inputFieldValue;
                }

                else if (con is EformHidden)
                {
                    EformHidden temp = (EformHidden)con;
                    // let's experiment
                    string val = inputFieldValue;
                    if (temp.Field.EndsWith("Date")) // we want Dates enabled to pick up the DateText conversion
                    {
                        temp.Disabled = false;
                        // we need to propagate the value here, b/c it would be empty on the page
                        temp.Value = val;
                    }
                    else if (val == null || "".Equals(val))
                    {
                        temp.Disabled = true;
                    }
                    else
                    {
                        temp.Disabled = false;
                        // persist the value in this case
                        temp.Value = val;
                    }

                    // leave the value alone, keeping what was on the page;
                    // temp.Value = inputFieldValue;
                }

                else if (con is EformTextArea)
                {
                    EformTextArea temp = (EformTextArea)con;
                    //temp.Value = inputFieldValue;
                    temp.Text = inputFieldValue;
                }

                else if (con is EformDropDownList)
                {
                    EformDropDownList temp = (EformDropDownList)con;
                    //temp.Value = inputFieldValue;
                    temp.SelectedValue = inputFieldValue;
                }

                else if (con is EformComboBox)
                {
                    EformComboBox temp = (EformComboBox)con;
                    temp.Value = inputFieldValue;
                }

                //else if (con is EformRadioButtonList)
                //{
                //    EformRadioButtonList temp = (EformRadioButtonList)con;
                //    string val = inputFieldValue;

                //    if (val != null && !val.Equals(""))
                //        temp.SelectedValue = val;
                //}
                else if (con is EformRadioButtonGroup)
                {
                    EformRadioButtonGroup rg = (EformRadioButtonGroup)con;

                    // tell it to the child controls
                    foreach (Control c in rg.Controls)
                    {
                        if (c is EformRadioButton)
                        {
                            EformRadioButton rb = (EformRadioButton)c;

                            string nodeInnerText = GetNodeValue(rg, xmlDoc);

                            if (nodeInnerText != null && !"".Equals(nodeInnerText))
                            {
                                if (rb.Value.Equals(nodeInnerText))
                                {
                                    rb.Checked = true;
                                }
                            }
                        }
                    }
                }
                else if (con is EformRadioButton)
                {
                    EformRadioButton rb = (EformRadioButton)con;

                    string nodeInnerText = inputFieldValue;

                    if (nodeInnerText != null && nodeInnerText != "")
                    {
                        rb.Checked = true;
                    }
                }
                else if (con is EformCheckBox)
                {
                    EformCheckBox cb = (EformCheckBox)con;

                    string nodeInnerText = inputFieldValue;

                    if (nodeInnerText != null && nodeInnerText != "")
                    {
                        cb.Checked = true;
                    }
                }
                else if (con is EformSelect)
                {
                    EformSelect temp = (EformSelect)con;
                    temp.Text = inputFieldValue;
                }
                else if (con is EformCheckBoxList || con is EformRadioButtonList)
                {
                    IEformInputField eFormControl = con as IEformInputField;
                    eFormControl.Value = inputFieldValue;
                }
            }
        }