private int saveData_BL()
        {
            int      recCnt = 0;                                                        // number of records affected
            DataTool dbTool = new DataTool();

            TrinityBLO.MedicalInfo mInfo = (TrinityBLO.MedicalInfo)Session["NewMedical"];
            dbTool.updateMedicalRecord(mInfo);
            Session.Remove("NewMedical");
            // whether or not field is a checkbox, -1 means no

            // create the update portion of the sql statement
            foreach (string strFieldObj in Request.Form)
            {
                if (strFieldObj.IndexOf("chkAllergy") != -1)
                {
                    // need to create the new values for the sql string that will update the Patient Allergy table
                    dbTool.newAllergy(Int32.Parse(Request.Form[strFieldObj].ToString()));
                }
            }

            return(recCnt);
        } //Tested and working
Example #2
0
 public int updateMedicalInfo(MedicalInfo mInfo)
 {
     return(dbTool.updateMedicalRecord(mInfo));
 }