Пример #1
0
        private bool Save()
        {
            JMMPrescriptionOrder   objJMPrescriptionOrder   = null;
            JMMPreOrderHist        objJMPreOrderHist        = null;
            JMMPrescriptionOrderBL objJMPrescriptionOrderBL = null;
            JMMPreOrderHistBL      objJMPreOrderHistBL      = null;

            try
            {
                if (KPIHlp.CVI64(hdnJMPreOrderHistID.Value) == long.MinValue)
                {
                    objJMPrescriptionOrder   = NewReadScr();
                    objJMPrescriptionOrderBL = new JMMPrescriptionOrderBL();
                    KPITrace.Debug(TraceWeight.Five, "Calling Manage for Prescription Order Entry");
                    WrtActivityLog(long.MinValue, " Managing Prescription Order Entry Dtls.", hdnMode.Value);
                    objJMPrescriptionOrderBL.Manage(ref objJMPrescriptionOrder);
                    hdnJMPrescriptionOrderID.Value = objJMPrescriptionOrder.JMPrescriptionOrderID.HasValue ? objJMPrescriptionOrder.JMPrescriptionOrderID.Value.ToString() : null;
                    NewRecordInquiry();
                }
                else
                {
                    objJMPreOrderHistBL = new JMMPreOrderHistBL();
                    objJMPreOrderHist   = OldReadScr();
                    objJMPreOrderHistBL.UpdateHistory(objJMPreOrderHist);
                    ExistingRecordInquiry();
                }
                AutoUpdateParent();
                ShowMsg(MsgType.Success, FrwkMsg.UPD_SUCCESS);
            }
            catch (Exception objErr)
            {
                ShowMsg(MsgType.Error, FrwkMsg.PAGE_ERR, objErr);
            }
            return(true);
        }
Пример #2
0
        private Dictionary <string, long> RadCombo(Control radCombo)
        {
            List <String> objList           = new List <string>();
            KPIRadCombo   objRadComboDental = ((KPIRadCombo)this.FindControl(radCombo.ID.ToString()));

            int CodeID  = Int32.MinValue;
            int RefType = int.MinValue;

            switch (radCombo.ID.ToString())
            {
            case "radDentProcedure":
                CodeID = 3172;

                RefType = (int)CMSReferenceType.DentalProcedures;
                break;

            case "radDentDisease":
                CodeID  = 3173;
                RefType = (int)CMSReferenceType.DentalDiseases;
                break;

            case "radDentMedications":
                CodeID  = 3174;
                RefType = (int)CMSReferenceType.DentalMedications;
                break;
            }

            DataSet objRadDentist = new JMMDentistVisitDB().GetChekDetails(CodeID, KPIHlp.CVI64(hdnDentVisitID.Value), RefType, KPIHlp.CVI32(hdnJurisID.Value));

            return(objRadDentist.Tables[0].AsEnumerable().ToDictionary(x => x.Field <string>("CodeValue"), y => y.Field <long>("CMSRefValuesID")));
        }
Пример #3
0
 public void ReadScr(ref JMMMedicalHist objJmmMedical)
 {
     try
     {
         JmmMedPrescribe objJmmMedPres     = new JmmMedPrescribe();
         JmmMedPresHist  objJmmMedPresHist = new JmmMedPresHist();
         objJmmMedPres.Dosage               = cddDosage.CodeValue;
         objJmmMedPres.Drug                 = cddDrug.CodeValue;
         objJmmMedPres.MedNameID            = NamCtrlSPIN.KPIID;
         objJmmMedPres.BuildingID           = KPIHlp.CVI64(cddBuilding.CodeValue);
         objJmmMedPres.PodID                = lupPod.KPIID;
         objJmmMedPres.CellID               = lupCell.KPIID;
         objJmmMedPresHist.OfficerPFID      = lupPFID.KPIID;
         objJmmMedPresHist.MethodAdminister = cddMethod.CodeValue;
         objJmmMedPresHist.ActivityDttm     = dttAdminFrom.DateValue;
         objJmmMedPresHist.ToDttm           = dttAdminTo.DateValue;
         objJmmMedPresHist.Status           = cddStatus.CodeValue;
         objJmmMedical.objJmmMedPrescribe   = objJmmMedPres;
         objJmmMedical.objJmmMedPresHist    = objJmmMedPresHist;
     }
     catch (Exception objError)
     {
         throw objError;
     }
 }
Пример #4
0
        //While click on Supply status icon, it will open and create a new order entry
        protected void NewRecordInquiry()
        {
            JMMPrescriptionOrderBL objJMPrescriptionOrderBL = null;
            long?JMPrescriptionOrderID = KPIHlp.CVI64(hdnJMPrescriptionOrderID.Value);

            try
            {
                objJMPrescriptionOrderBL = new JMMPrescriptionOrderBL();

                if (JMPrescriptionOrderID.HasValue && JMPrescriptionOrderID != long.MinValue)
                {
                    JMMPrescriptionOrder objJMPrescriptionOrder = objJMPrescriptionOrderBL.Select(JMPrescriptionOrderID.Value);
                    if (objJMPrescriptionOrder != null)
                    {
                        hdnBookingID.Value             = objJMPrescriptionOrder.JMBookingID.HasValue ? objJMPrescriptionOrder.JMBookingID.Value.ToString() : null;
                        hdnJMMedPrescriptionID.Value   = objJMPrescriptionOrder.JMMedPrescriptionID.HasValue ? objJMPrescriptionOrder.JMMedPrescriptionID.Value.ToString() : null;
                        hdnJMPrescriptionOrderID.Value = objJMPrescriptionOrder.JMPrescriptionOrderID.HasValue ? objJMPrescriptionOrder.JMPrescriptionOrderID.Value.ToString() : null;
                        hdnOrderNo.Value     = objJMPrescriptionOrder.OrderedNo.HasValue ? objJMPrescriptionOrder.OrderedNo.Value.ToString() : null;
                        hdnJurisId.Value     = objJMPrescriptionOrder.JurisID.HasValue ? objJMPrescriptionOrder.JurisID.Value.ToString() : null;
                        hdnOrderNo.Value     = objJMPrescriptionOrder.OrderedNo.HasValue ? objJMPrescriptionOrder.OrderedNo.Value.ToString() : null;
                        hdnOrderAction.Value = objJMPrescriptionOrder.OrderAction;
                        hdnQuantity.Value    = objJMPrescriptionOrder.QtyBalance.HasValue ? objJMPrescriptionOrder.QtyBalance.Value.ToString() : string.Empty;

                        ClearData();
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #5
0
        private bool Save()
        {
            JMMChartingBL   objJMMChartingBL   = null;
            JmmChartingList objJmmChartingList = null;
            JMMMedicalHist  objJMMMedicalHist  = new JMMMedicalHist();

            objJMMMedicalHist.JMMedicalHistID = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJMMedicalHistID"))).Value);
            objJMMMedicalHist.JMBookingID     = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnBookingID"))).Value);
            objJMMMedicalHist.NameID          = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnNameID"))).Value);
            objJMMMedicalHist.JurisID         = KPIHlp.CVI32(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJurisId"))).Value);

            try
            {
                objJmmChartingList = ReadScr(ref objJMMMedicalHist);
                objJMMChartingBL   = new JMMChartingBL();
                KPITrace.Debug(TraceWeight.Five, "Calling Manage for Charting Tab");
                ((BasePage)this.Page).WrtActivityLog(long.MinValue, " Managing charge Dtls.", ((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnMode"))).Value);
                objJMMChartingBL.ManageCharting(objJmmChartingList);
                Inquiry(ref objJMMMedicalHist);


                return(true);
            }
            catch (Exception objErr)
            {
                ((BasePage)this.Page).ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objErr);
                throw;
            }
            finally
            {
            }
        }
Пример #6
0
        protected void LoadData()
        {
            try
            {
                string strhdnMode = UIMode.ADD.ToString();
                try
                {
                    strhdnMode = Request.QueryString.Get("hdnMode").Trim();
                }
                catch (Exception) { }

                if (strhdnMode == UIMode.CHG.ToString() || strhdnMode == UIMode.INQ.ToString()) //CRM#65266 All inmate Booking Status should allow to create Medical Entry
                {
                    hdnDoctorId.Value = Request.QueryString.Get("DoctorID");
                    hdnMode.Value     = strhdnMode; //CRM#65266 All inmate Booking Status should allow to create Medical Entry
                    hdnJurisId.Value  = Request.QueryString.Get("JurisID");
                    int juris = KPIHlp.CVI32(hdnJurisId.Value);
                    lstJuris.SetJurisValue(juris);
                    Inquiry(KPIHlp.CVI64(hdnDoctorId.Value));
                }
                else
                {
                    hdnJurisId.Value = KPIHlp.CVS(GetPageJuris());
                    int juris = KPIHlp.CVI32(hdnJurisId.Value);
                    lstJuris.SetJurisValue(juris);

                    hdnMode.Value = UIMode.ADD.ToString();
                }
            }
            catch (Exception objErr)
            {
                throw objErr;
            }
        }
Пример #7
0
        private bool Save()
        {
            try
            {
                JmsDoctor objJmsDoctor = ReadScr();

                JmsDoctorBL objJmsDoctorBL = new JmsDoctorBL();
                if (hdnMode.Value == UIMode.ADD.ToString())
                {
                    objJmsDoctorBL.Insert(objJmsDoctor);
                    ShowMsg(MsgType.Success, FrwkMsg.ADD_SUCCESS);
                    hdnMode.Value     = UIMode.CHG.ToString();
                    hdnDoctorId.Value = KPIHlp.CVS(objJmsDoctor.DoctorID);
                }
                else
                {
                    objJmsDoctor.DoctorID = KPIHlp.CVI64(hdnDoctorId.Value);
                    objJmsDoctorBL.Update(objJmsDoctor);
                    ShowMsg(MsgType.Success, FrwkMsg.UPD_SUCCESS);
                    hdnMode.Value = UIMode.CHG.ToString();
                }
                //Updating the parent

                Inquiry(objJmsDoctor.DoctorID);
                AutoUpdateParent();

                return(true);
            }
            catch (Exception objErr)
            {
                throw objErr;
            }
        }
Пример #8
0
        protected CMSCommentsList ReadScr()
        {
            CMSCommentsList objCMSCommentsList = null;

            try
            {
                objCMSCommentsList = new CMSCommentsList();
                CMSComments objCMSComments = new CMSComments();
                if (!String.IsNullOrEmpty(Request.QueryString.Get("JMChartID")))
                {
                    objCMSComments.RefID = KPIHlp.CVI64(Request.QueryString.Get("JMChartID"));
                    if (!String.IsNullOrEmpty(Request.QueryString.Get("hdnJurisId")))
                    {
                        objCMSComments.JurisID = KPIHlp.CVI32(Request.QueryString.Get("hdnJurisId"));
                    }
                }

                if (objCMSComments.RefID.HasValue && objCMSComments.RefID.Value > 0)
                {
                    usrMedCharting objusrMedCharting = (usrMedCharting)this.tabMedCharting.Tabs.FindTabFromKey("Chart").FindControl("usrMedCharting");
                    objCMSCommentsList = objusrMedCharting.ReadScr(ref objCMSComments);
                }
            }
            catch (Exception objKPIError)
            {
                ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError);
            }

            return(objCMSCommentsList);
        }
Пример #9
0
 public void Inquiry(Int64 JMMedicalHistID, Int64 JMBookingID, Int32 JurisID, Int16 Status)
 {
     try
     {
         if (JMMedicalHistID != Int64.MinValue && JMBookingID != Int64.MinValue && JurisID != Int32.MinValue)
         {
             DataSet objDS = new JMMMedVitalsBL().SearchVitals(JMMedicalHistID, JMBookingID, JurisID, Status);
             grdMedicalVital.ClearDataSource();
             grdMedicalVital.DataSource = objDS;
             grdMedicalVital.DataBind();
             if (objDS != null && objDS.Tables[0].Rows.Count > 0 && Status == 1)
             {
                 JMMMedVitals objJMMMedVitals = new JMMMedVitalsBL().Select(KPIHlp.CVI64(objDS.Tables[0].Rows[0]["JMMedVitaltID"].ToString()));
                 hdnBloodPressure.Value    = objJMMMedVitals.BloodPressure;
                 hdnBloodPressureMax.Value = objJMMMedVitals.BloodPressureMax;
                 if (objJMMMedVitals.Height.HasValue)
                 {
                     hdnHeight.Value = objJMMMedVitals.Height.Value.ToString();
                 }
                 else
                 {
                     hdnHeight.Value = string.Empty;
                 }
                 if (objJMMMedVitals.Weight.HasValue)
                 {
                     hdnWeight.Value = objJMMMedVitals.Weight.Value.ToString();
                 }
                 else
                 {
                     hdnWeight.Value = string.Empty;
                 }
                 if (objJMMMedVitals.JMMedVitaltID.HasValue)
                 {
                     hdnMedVitalID.Value = objJMMMedVitals.JMMedVitaltID.Value.ToString();
                 }
                 else
                 {
                     hdnMedVitalID.Value = string.Empty;
                 }
                 if (objJMMMedVitals.PulseApical.HasValue)
                 {
                     hdnPulse.Value = objJMMMedVitals.PulseApical.Value.ToString();
                 }
                 else if (objJMMMedVitals.PulseRadial.HasValue)
                 {
                     hdnPulse.Value = objJMMMedVitals.PulseRadial.Value.ToString();
                 }
                 else
                 {
                     hdnPulse.Value = string.Empty;
                 }
             }
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #10
0
        public static object GetMedicationBalance(string JMMedPrescriptionID, string MedicationType)
        {
            JMMMedPrescriptionHist objJMMMedPrescriptionHist = new JMMMedPrescriptionHist();

            objJMMMedPrescriptionHist.JMMedPrescriptionID = KPIHlp.CVI64(JMMedPrescriptionID);
            objJMMMedPrescriptionHist.MedicationType      = MedicationType;
            objJMMMedPrescriptionHist.CurQuantity         = new JMMMedPrescriptionHistBL().GetMedicationBalance(ref objJMMMedPrescriptionHist);
            return((new System.Web.Script.Serialization.JavaScriptSerializer()).Serialize(objJMMMedPrescriptionHist));
        }
Пример #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                cmdAdd.Attributes.Add("OnClick", "return fn_ManipulateAllergy();");
                cmdClear.Attributes.Add("OnClick", "return fn_CancelAllergyDetails();");
                cmdSave.Attributes.Add("OnClick", "glbCtrlClicked='Save';");
                cmdReset.Attributes.Add("OnClick", "glbCtrlClicked='Reset';");
                Page.ClientScript.RegisterOnSubmitStatement(Page.GetType(), "OnSubmit", "return fn_ValidateScreen();");
                chkInactive.Attributes.Add("onclick", "return fn_Inactive();");
                AddClientOnLoadScript("fn_Inactive();");
                hdnJurisId.Value   = Request.QueryString.Get("hdnJurisID") == null ? string.Empty : Request.QueryString.Get("hdnJurisID").Trim().ToString();
                hdnBookingID.Value = Request.QueryString.Get("BookingID") == null ? string.Empty : Request.QueryString.Get("BookingID").ToString();
                if (Request.QueryString.Get("Mode") != null && Request.QueryString.Get("Mode") != string.Empty) //CRM#65266 All inmate Booking Status should allow to create Medical Entry
                {
                    hdnMode.Value = Request.QueryString.Get("Mode").ToString();
                }
                if (!IsPostBack)
                {
                    BoundCheckBoxField ChkColumn = (BoundCheckBoxField)this.grdAllergy.Columns.FromKey("Isactive");
                    ChkColumn.ValueConverter = new BoolConverter();


                    JMMAllergy objJMMAllergy = new JMMAllergy();
                    if (!String.IsNullOrEmpty(hdnJurisId.Value))
                    {
                        objJMMAllergy.JurisID = KPIHlp.CVI32(hdnJurisId.Value);
                    }
                    if (!String.IsNullOrEmpty(hdnBookingID.Value))
                    {
                        objJMMAllergy.JMBookingID = KPIHlp.CVI64(hdnBookingID.Value);
                        Inquiry(ref objJMMAllergy);
                    }
                }



                if (KPIHlp.CVI32(hdnJurisId.Value) > 0)
                {
                    hdnSetUserPFID.Value = State.GPV((int)JailAdmissionParams.IsDefaultAllPFFields, KPIHlp.CVI32(hdnJurisId.Value));
                }

                if (hdnJurisId.Value == KPIHlp.CVS(State.sJurisID))
                {
                    hdnLoginPFCode.Value = KPI.Global.Helper.PersonnelHlp.GetPFCode(State.sPFID);
                    hdnLoginPFDesc.Value = KPI.Global.Helper.PersonnelHlp.GetPFFullName(State.sPFID);
                    hdnLoginPFID.Value   = State.sPFID.ToString();
                }
            }
            catch (Exception)
            {
                KPITrace.Debug(TraceWeight.Five, "Calling page load for medical Allergy screen");
                WrtActivityLog(long.MinValue, " Calling page load for medical Allergy screen.");
            }
        }
Пример #12
0
        private bool Save()
        {
            try
            {
                JMMMedPrescription objJMMMedPrescription = new JMMMedPrescriptionBL().Select(KPIHlp.CVI64(hdnPrescriptionID.Value));

                JMMMedPrescriptionHist objJMMMedPrescriptionHist = ReadScr(ref objJMMMedPrescription);
                objJMMMedPrescription.JMMedPrescriptionID = KPIHlp.CVI64(hdnPrescriptionID.Value);


                if (objJMMMedPrescriptionHist != null && objJMMMedPrescription != null)
                {
                    if (Request.QueryString.Get("Flag") != null && Request.QueryString.Get("Flag") != string.Empty)
                    {
                        if (hdnMode.Value == UIMode.ADD.ToString())
                        {
                            new JMMMedPrescriptionHistBL().Manage(objJMMMedPrescriptionHist);
                            ShowMsg(MsgType.Success, FrwkMsg.ADD_SUCCESS);
                            hdnMedPresHisID.Value = objJMMMedPrescriptionHist.JMMedPrescriptionHistID.Value.ToString();
                            AutoUpdateParent();
                        }
                        else
                        {
                            ShowMsg(MsgType.Success, FrwkMsg.UPD_SUCCESS);
                        }
                        hdnMode.Value      = UIMode.INQ.ToString();
                        blnForceModeChange = true;
                    }
                    else
                    {
                        if (hdnMode.Value == UIMode.ADD.ToString())
                        {
                            new JMMMedPrescriptionHistBL().Manage(objJMMMedPrescriptionHist);
                            ShowMsg(MsgType.Success, FrwkMsg.ADD_SUCCESS);
                            hdnMedPresHisID.Value = string.Empty; //objJMMMedPrescriptionHist.JMMedPrescriptionHistID.Value.ToString();
                            ClearData();
                            cddDrug.DropDown.Items.Clear();
                            cddDrug.DropDown.DataTextField  = "Description";
                            cddDrug.DropDown.DataValueField = "ID";
                            cddDrug.DropDown.DataBind();

                            ListItem objItem1 = new ListItem("--", "");
                            cddDrug.DropDown.Items.Insert(0, objItem1);
                            AddClientOnLoadScript("fn_ClearData();");
                        }
                    }
                }
            }
            catch (KPIException objKPIError)
            {
                ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError);
            }
            return(true);
        }
Пример #13
0
 protected void cmdPrint_Click(object sender, System.Web.UI.ImageClickEventArgs e)
 {
     if (KPIHlp.CVI64(hdnMedPresHisID.Value) != long.MinValue)
     {
         PrintReport(KPIHlp.CVI64(hdnMedPresHisID.Value));
     }
     else
     {
         PrintReport();
     }
 }
Пример #14
0
        public static object GetCurrentDispenseCount(string JMMedPrescriptionID, string MedicationType)
        {
            JMMMedPrescription objJMMMedPrescription = new JMMMedPrescription();

            objJMMMedPrescription.JMMedPrescriptionID = KPIHlp.CVI64(JMMedPrescriptionID);
            objJMMMedPrescription.MedicationType      = MedicationType;


            JMMMedPrescription objJMMedPrescriptiontref = new JMMMedPrescriptionDB().DispenseTypeCount(ref objJMMMedPrescription);

            return((new System.Web.Script.Serialization.JavaScriptSerializer()).Serialize(objJMMedPrescriptiontref));
        }
Пример #15
0
        protected void cmdRefresh_Click(object sender, ImageClickEventArgs e)
        {
            if (KPIHlp.CVI64(hdnJMPreOrderHistID.Value) != long.MinValue)
            {
                ExistingRecordInquiry();
            }

            else
            {
                ClearData();
            }
        }
Пример #16
0
        protected void cmdRefresh_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            try
            {
                ClearData();

                JMMMedicalHist objJMMMedicalHist = new JMMMedicalHist();
                if (hdnMode.Value == UIMode.ADD.ToString() && KPIHlp.CVI64(hdnJMMedicalHistID.Value) == long.MinValue)
                {
                    hdnBookingID.Value            = string.Empty;
                    hdnNameID.Value               = string.Empty;
                    hdnMedHistID.Value            = string.Empty;
                    hdnJMMedicalHistID.Value      = string.Empty;
                    hdnSPINNbr.Value              = string.Empty;
                    HeaderCtrl.KPIID              = long.MinValue;
                    HeaderCtrl.lblEmptyCell2.Text = "";
                    HeaderCtrl.KPISecurity        = "AC";
                    hdnMode.Value      = UIMode.ADD.ToString();
                    blnForceModeChange = true;
                }
                else if (Request.QueryString.Get("hdnMode") == "ADD" && hdnMode.Value == UIMode.INQ.ToString() && KPIHlp.CVI64(hdnJMMedicalHistID.Value) == long.MinValue)
                {
                    hdnBookingID.Value       = string.Empty;
                    hdnNameID.Value          = string.Empty;
                    hdnMedHistID.Value       = string.Empty;
                    hdnJMMedicalHistID.Value = string.Empty;
                    hdnSPINNbr.Value         = string.Empty;
                    hdnMode.Value            = UIMode.ADD.ToString();
                    HeaderCtrl.KPIID         = long.MinValue;
                    HeaderCtrl.KPISecurity   = "AC";
                    hdnMode.Value            = UIMode.ADD.ToString();
                    blnForceModeChange       = true;
                    AddClientOnLoadScript(" window.document.frmMedicalHistory_Id.submit();");
                }
                else
                {
                    if (!string.IsNullOrEmpty(hdnBookingID.Value) && KPIHlp.CVI64(hdnBookingID.Value) > 0)
                    {
                        objJMMMedicalHist.JMBookingID     = KPIHlp.CVI64(hdnBookingID.Value);
                        objJMMMedicalHist.JMMedicalHistID = KPIHlp.CVI64(hdnJMMedicalHistID.Value);
                        objJMMMedicalHist.JurisID         = KPIHlp.CVI32(hdnJurisId.Value);
                        objJMMMedicalHist.NameID          = KPIHlp.CVI64(hdnNameID.Value);
                        LoadData();
                    }
                }
            }
            catch (KPIException objKPIError)
            {
                ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError);
            }
        }
Пример #17
0
        public void ReadScr(ref JMMMedicalHist objJMMMedicalHist)
        {
            try
            {
                CMSRefValuesList objCMSRefValuesList = new CMSRefValuesList();
                if (lupPrimaryDoctor.KPIID != long.MinValue)
                {
                    objJMMMedicalHist.PrimeDoctorID = lupPrimaryDoctor.KPIID;
                }
                objJMMMedicalHist.JurisID = ((BasePage)(this.Page)).GetPageJuris();

                for (int iRowCount = 0; iRowCount < grdFlag.Rows.Count; iRowCount++)
                {
                    if (grdFlag.IsActiveRow(iRowCount))
                    {
                        CMSRefValues objCMSRefValues = new CMSRefValues();

                        objCMSRefValues.JurisID  = objJMMMedicalHist.JurisID;
                        objCMSRefValues.AssocID  = objJMMMedicalHist.JMMedicalHistID; //NameID;
                        objCMSRefValues.RefType  = Convert.ToInt32(CMSReferenceType.MedicalHistFlags);
                        objCMSRefValues.RefValue = grdFlag.GetString(iRowCount, "Flag");
                        objCMSRefValues.Custom1  = grdFlag.GetString(iRowCount, "Cmts"); //Added Flag Comments
                        if (!String.IsNullOrEmpty(objCMSRefValues.Custom1))
                        {
                            if (objCMSRefValues.Custom1.Length <= 255)
                            {
                                objCMSRefValues.Custom1 = objCMSRefValues.Custom1.Substring(0, objCMSRefValues.Custom1.Length);
                            }
                            else
                            {
                                objCMSRefValues.Custom1 = objCMSRefValues.Custom1.Substring(0, txtComment.MaxLength);
                            }
                        }

                        objCMSRefValues.cMode          = grdFlag.GetChar(iRowCount, "KPIMode");
                        objCMSRefValues.CMSRefValuesID = KPIHlp.CVI64(grdFlag.GetString(iRowCount, "KPIID"));
                        if (objCMSRefValues.cMode == 'A')
                        {
                            objCMSRefValues.CMSRefValuesID = KPICounter.GetCounterID(objCMSRefValues.JurisID.Value);
                        }
                        objCMSRefValues.IsActive = 1;
                        objCMSRefValuesList.Add(objCMSRefValues);
                    }
                }
                objJMMMedicalHist.objCMSRefValuesList = objCMSRefValuesList;
            }
            catch (Exception objError)
            {
                throw objError;
            }
        }
Пример #18
0
        public void ReadScr(ref JMMMedicalHist objJMMMedicalHist)
        {
            try
            {
                #region Medical Prescription
                JMMAllergy objJMMAllergy = new JMMAllergy();
                objJMMAllergy.Allergy           = String.Format("{0}", string.Join("','", radAllergy.KPISelectedValues));
                objJMMMedicalHist.objJMMAllergy = objJMMAllergy;
                #endregion

                #region Medical Prescription
                JmmMedPrescribe objPrescribe = new JmmMedPrescribe();
                objPrescribe.Drug      = cddDrugs.CodeValue; //CRM#66995
                objPrescribe.MedNameID = NamCtrlSPIN.KPIID;
                objJMMMedicalHist.objJmmMedPrescribe = objPrescribe;
                #endregion

                #region Medical Visit
                JMMMedVisit objMedVist = new JMMMedVisit();
                objMedVist.Diagnosis             = lupDiagnosed.CodeValue;
                objMedVist.Result                = cddTBResults.CodeValue;
                objMedVist.Hospital              = cddAdmMedFacility.CodeValue;
                objMedVist.SpecialMeal           = String.Format("{0}", string.Join("','", radSpecialMealRequired.KPISelectedValues));
                objJMMMedicalHist.objJmmMedVisit = objMedVist;
                #endregion

                #region Medical Flags & Dentist proceedures
                objJMMMedicalHist.DentalProceedure = String.Format("{0}", string.Join("','", radDentProcedure.KPISelectedValues));
                objJMMMedicalHist.MedicalFlags     = String.Format("{0}", string.Join("','", radMedicalFlags.KPISelectedValues));// cddMedicalFlags.CodeValue;
                objJMMMedicalHist.JurisID          = KPIHlp.CVI32(hdnJurisId.Value);
                #endregion

                #region From & To Date

                objJMMMedicalHist.CreatedDttm  = dttmFromDate.DateValue;
                objJMMMedicalHist.ModifiedDttm = dttmToDate.DateValue;

                objJMMMedicalHist.OwnerSubAgencyID = KPIHlp.CVI64(cddSubAgency.CodeValue);



                #endregion
            }
            catch (Exception objError)
            {
                throw objError;
            }
        }
Пример #19
0
        public static string GetMedPassHistory(List <string> arr)
        {
            JMMMedPrescriptionHist objJMMMedPrescriptionHist = new JMMMedPrescriptionHist();

            if (KPIHlp.CVI64(arr[0]) != long.MinValue)
            {
                objJMMMedPrescriptionHist.JMBuildID = KPIHlp.CVI64(arr[0]);
            }
            if (KPIHlp.CVI64(arr[1]) != long.MinValue)
            {
                objJMMMedPrescriptionHist.JMPodID = KPIHlp.CVI64(arr[1]);
            }
            if (KPIHlp.CVI64(arr[2]) != long.MinValue)
            {
                objJMMMedPrescriptionHist.JMCellID = KPIHlp.CVI64(arr[2]);
            }
            if (KPIHlp.CVI64(arr[3]) != Int16.MinValue)
            {
                objJMMMedPrescriptionHist.IsActive = KPIHlp.CVI16(arr[3]);
            }
            if (KPIHlp.CVI64(arr[4]) != long.MinValue)
            {
                objJMMMedPrescriptionHist.JurisID = KPIHlp.CVI32(arr[4]);
            }

            if (objJMMMedPrescriptionHist.JMBuildID.HasValue && !objJMMMedPrescriptionHist.JMPodID.HasValue)
            {
                objJMMMedPrescriptionHist.JMBuildID = long.MinValue;
            }

            DataSet ds = new JMMMedPrescriptionHistBL().GetMedPassHistory(ref objJMMMedPrescriptionHist);

            System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
            List <Dictionary <string, object> > rows = new List <Dictionary <string, object> >();
            Dictionary <string, object>         row;

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                row = new Dictionary <string, object>();
                foreach (DataColumn col in ds.Tables[0].Columns)
                {
                    row.Add(col.ColumnName, dr[col]);
                }
                rows.Add(row);
            }
            return(serializer.Serialize(rows));
        }
Пример #20
0
 protected void cmdReset_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         JMMMedicalHist objJMMMedicalHist = new JMMMedicalHist();
         objJMMMedicalHist.JMMedicalHistID = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJMMedicalHistID"))).Value);
         objJMMMedicalHist.JMBookingID     = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnBookingID"))).Value);
         objJMMMedicalHist.NameID          = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnNameID"))).Value);
         objJMMMedicalHist.JurisID         = KPIHlp.CVI32(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJurisId"))).Value);
         Inquiry(ref objJMMMedicalHist);
     }
     catch (Exception objErr)
     {
         ((BasePage)this.Page).ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objErr);
         throw;
     }
 }
Пример #21
0
        protected void LoadData()
        {
            string strhdnMode = UIMode.ADD.ToString();

            try
            {
                JMMPrescriptionSchdule objJMPrescriptionSchdule = new JMMPrescriptionSchdule();
                if (KPIHlp.CVI64(hdnMedPrescribeID.Value) > 0)
                {
                    Inquiry(ref objJMPrescriptionSchdule);
                }
            }
            catch (Exception objError)
            {
                ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objError);
            }
        }
Пример #22
0
        public void ReadScr(ref JMMMedPrescriptionHist objJMMMedPrescriptionHist)
        {
            try
            {
                if (State.gMultiJuris == true && lstJuris.JurisID != 0)
                {
                    objJMMMedPrescriptionHist.JurisID = lstJuris.JurisID;
                }
                else if (!State.gMultiJuris)
                {
                    objJMMMedPrescriptionHist.JurisID = State.sJurisID;
                }
                objJMMMedPrescriptionHist.Drug             = lupPrescription.CodeValue;
                objJMMMedPrescriptionHist.NameID           = NamCtrlSPIN.KPIID;
                objJMMMedPrescriptionHist.ActivityFromDttm = dttmFromDate.DateValue;
                objJMMMedPrescriptionHist.ActivityToDttm   = dttmToDate.DateValue;
                objJMMMedPrescriptionHist.MarPFID          = lupBy.KPIID > 0 ? lupBy.KPIID : long.MinValue;
                objJMMMedPrescriptionHist.OwnerSubAgencyID = KPIHlp.CVI64(cddSubAgency.CodeValue);

                #region GetDocumentTypeList
                StringBuilder SBIDocType = new StringBuilder();
                if (radStatus.CheckedItems.Count > 0)
                {
                    for (int i = 0; i < radStatus.CheckedItems.Count; i++)
                    {
                        if (i == radStatus.CheckedItems.Count - 1)
                        {
                            SBIDocType.Append(radStatus.CheckedItems[i].Value);
                        }
                        else
                        {
                            SBIDocType.Append(radStatus.CheckedItems[i].Value + ",");
                        }
                    }
                    objJMMMedPrescriptionHist.Status = string.Format("'{0}'", Regex.Replace(SBIDocType.ToString(), @",", "','"));
                }

                #endregion
            }
            catch (Exception objError)
            {
                ((BasePage)this.Page).ShowMsg(MsgType.Error, FrwkMsg.PAGE_ERR, objError);
            }
        }
Пример #23
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here

            if (Request.QueryString.Get("hdnJurisID") != null && Request.QueryString.Get("hdnJurisID") != string.Empty)
            {
                hdnJurisId.Value = Request.QueryString.Get("hdnJurisID").ToString();
                JurisID          = KPIHlp.CVI32(hdnJurisId.Value);
            }

            if (Request.QueryString.Get("BookingID") != null && Request.QueryString.Get("BookingID") != string.Empty)
            {
                hdnBookingID.Value = Request.QueryString.Get("BookingID").ToString();
                JMBookingID        = KPIHlp.CVI64(hdnBookingID.Value);
            }

            if (Request.QueryString.Get("JMMedicalHistID") != null && Request.QueryString.Get("JMMedicalHistID") != string.Empty)
            {
                hdnJMMedicalHistID.Value = Request.QueryString.Get("JMMedicalHistID").ToString();
                JMMedicalHistID          = KPIHlp.CVI64(hdnJMMedicalHistID.Value);
            }

            if (Request.QueryString.Get("InmateNameID") != null && Request.QueryString.Get("InmateNameID") != string.Empty)
            {
                hdnNameID.Value = Request.QueryString.Get("InmateNameID").ToString();
                NameID          = KPIHlp.CVI64(hdnNameID.Value);
            }
            if (Request.QueryString.Get("Mode") != null && Request.QueryString.Get("Mode") != string.Empty)
            {
                hdnMode.Value = Request.QueryString.Get("Mode").ToString();
            }

            if (!IsPostBack)
            {
                LoadCtrls();
                Inquiry();
            }
            else if (hdnAutoLoad.Value.ToUpper() == "LOAD")
            {
                Inquiry();
                hdnAutoLoad.Value = string.Empty;
            }
        }
Пример #24
0
        private bool Save()
        {
            JMMAllergyBL   objJMMAllergyBL   = null;
            JMMAllergyList objJmmAllergyList = null;
            JMMAllergy     objJmmAllergy     = new JMMAllergy();

            try
            {
                objJmmAllergyList = ReadScr();
                objJMMAllergyBL   = new JMMAllergyBL();
                KPITrace.Debug(TraceWeight.Five, "Calling Manage for frmMedAllergy");
                ((BasePage)this.Page).WrtActivityLog(long.MinValue, " Managing frmMedAllergy.", ((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnMode"))).Value);


                if (objJmmAllergyList == null)
                {
                    return(false);
                }
                else
                {
                    objJMMAllergyBL.ManageAllergy(objJmmAllergyList);

                    if (objJmmAllergyList.Count > 0)
                    {
                        ((BasePage)Page).ShowMsg(MsgType.Success, FrwkMsg.UPD_SUCCESS, null);
                    }
                    objJmmAllergy.JMBookingID = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnBookingID"))).Value);
                    objJmmAllergy.JurisID     = KPIHlp.CVI32(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJurisId"))).Value);
                    Inquiry(ref objJmmAllergy);


                    return(true);
                }
            }
            catch (Exception objErr)
            {
                ((BasePage)this.Page).ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objErr);
                throw;
            }
            finally
            {
            }
        }
Пример #25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            cmdSave.Attributes.Add("onclick", "glbCtrlClicked = 'Save';");
            cmdSaveNClose.Attributes.Add("onclick", "glbCtrlClicked = 'Save';");
            cmdRefresh.Attributes.Add("onclick", "glbCtrlClicked = 'Refresh';");
            cmdPrint.Attributes.Add("onclick", "glbCtrlClicked = 'Print';");
            Page.ClientScript.RegisterOnSubmitStatement(Page.GetType(), "OnSubmit", "return fn_ValidateScreen();");
            hdnDisposition.Value = Request.QueryString.Get("Disposition") == null ? string.Empty : Request.QueryString.Get("Disposition").ToString();
            if (!IsPostBack)
            {
                hdnBookingID.Value             = Request.QueryString.Get("JMBookingID") == null ? string.Empty : Request.QueryString.Get("JMBookingID").ToString();
                hdnJMMedicalHistID.Value       = Request.QueryString.Get("JMMedicalHistID") == null ? string.Empty : Request.QueryString.Get("JMMedicalHistID").ToString();
                hdnJurisId.Value               = Request.QueryString.Get("hdnJurisId") == null ? string.Empty : Request.QueryString.Get("hdnJurisId").ToString();
                hdnJMMedPrescriptionID.Value   = Request.QueryString.Get("JMMedPrescriptionID") == null ? string.Empty : Request.QueryString.Get("JMMedPrescriptionID").ToString();
                hdnJMPrescriptionOrderID.Value = Request.QueryString.Get("JMPrescriptionOrderID") == null ? string.Empty : Request.QueryString.Get("JMPrescriptionOrderID").ToString();
                hdnDrugID.Value           = Request.QueryString.Get("DrugID") == null ? string.Empty : Request.QueryString.Get("DrugID").ToString();
                hdnOrderNo.Value          = Request.QueryString.Get("OrderedNo") == null ? string.Empty : Request.QueryString.Get("OrderedNo").ToString();
                hdnJMPreOrderHistID.Value = Request.QueryString.Get("JMPreOrderHistID") == null ? string.Empty : Request.QueryString.Get("JMPreOrderHistID").ToString();
                hdnJMPreOrderHistNo.Value = Request.QueryString.Get("JMPreOrderHistNo") == null ? string.Empty : Request.QueryString.Get("JMPreOrderHistNo").ToString();
                hdnMode.Value             = Request.QueryString.Get("Mode") == null ? string.Empty : Request.QueryString.Get("Mode").ToString();
                JurisID = KPIHlp.CVI32(hdnJurisId.Value);
                if (KPIHlp.CVI64(hdnJMPreOrderHistID.Value) != long.MinValue)
                {
                    ExistingRecordInquiry();
                }
                else if (KPIHlp.CVI64(hdnJMPrescriptionOrderID.Value) != long.MinValue)
                {
                    NewRecordInquiry();
                }

                if (!String.IsNullOrEmpty(hdnJurisId.Value) && JurisID > 0)
                {
                    hdnSetUserPFID.Value = State.GPV((int)JailAdmissionParams.IsDefaultAllPFFields, KPIHlp.CVI32(hdnJurisId.Value));
                }
            }
            if (State.sJurisID == JurisID)
            {
                hdnLoginPFCode.Value = KPI.Global.Helper.PersonnelHlp.GetPFCode(State.sPFID);
                hdnLoginPFDesc.Value = KPI.Global.Helper.PersonnelHlp.GetPFFullName(State.sPFID);
                hdnLoginPFID.Value   = State.sPFID.ToString();
            }
        }
Пример #26
0
        protected void ExistingRecordInquiry()
        {
            JMMPreOrderHistBL objJMPreOrderHistBL = null;
            long?JMPreOrderHistID = KPIHlp.CVI64(hdnJMPreOrderHistID.Value);

            try
            {
                objJMPreOrderHistBL = new JMMPreOrderHistBL();
                if (JMPreOrderHistID.HasValue && JMPreOrderHistID.Value != long.MinValue)
                {
                    JMMPreOrderHist objJMPreOrderHist = objJMPreOrderHistBL.Select(JMPreOrderHistID.Value);
                    if (objJMPreOrderHist != null)
                    {
                        hdnJMPreOrderHistID.Value      = objJMPreOrderHist.JMPreOrderHistID.HasValue ? objJMPreOrderHist.JMPreOrderHistID.Value.ToString() : null;
                        hdnBookingID.Value             = objJMPreOrderHist.JMBookingID.HasValue ? objJMPreOrderHist.JMBookingID.Value.ToString() : null;
                        hdnJMMedPrescriptionID.Value   = objJMPreOrderHist.JMMedPrescriptionID.HasValue ? objJMPreOrderHist.JMMedPrescriptionID.Value.ToString() : null;
                        hdnJMPrescriptionOrderID.Value = objJMPreOrderHist.JMPrescriptionOrderID.HasValue ? objJMPreOrderHist.JMPrescriptionOrderID.Value.ToString() : null;
                        hdnOrderNo.Value = objJMPreOrderHist.OrderedNo.HasValue ? objJMPreOrderHist.OrderedNo.Value.ToString() : null;
                        hdnJurisId.Value = objJMPreOrderHist.JurisID.HasValue ? objJMPreOrderHist.JurisID.Value.ToString() : null;
                        hdnOrderNo.Value = objJMPreOrderHist.OrderedNo.HasValue ? objJMPreOrderHist.OrderedNo.Value.ToString() : null;

                        dttmOrderedDate.DateValue               = objJMPreOrderHist.OrderedDttm.HasValue ? objJMPreOrderHist.OrderedDttm.Value : DateTime.MinValue;
                        lupOrderedPF.KPIID                      = objJMPreOrderHist.OrderedPFID.HasValue ? objJMPreOrderHist.OrderedPFID.Value : long.MinValue;
                        txtQuantity.Text                        = objJMPreOrderHist.QtyBalance.HasValue ? objJMPreOrderHist.QtyBalance.Value.ToString() : null;
                        cddOrderAction.KPISelectedCodeValue     = objJMPreOrderHist.OrderAction;
                        cddStorageLocation.KPISelectedCodeValue = objJMPreOrderHist.StorageLocation;
                        cddQuantityType.KPISelectedCodeValue    = objJMPreOrderHist.MedicationType;

                        cddDestroyed.KPISelectedCodeValue = objJMPreOrderHist.HowDestroyed;
                        lupWitness.KPIID = objJMPreOrderHist.WitnessPFID.HasValue ? objJMPreOrderHist.WitnessPFID.Value : long.MinValue;

                        hdnOrderAction.Value = objJMPreOrderHist.OrderAction;
                        hdnQuantity.Value    = objJMPreOrderHist.QtyBalance.HasValue ? objJMPreOrderHist.QtyBalance.Value.ToString() : string.Empty;
                        txtDescription.Text  = string.Empty;
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #27
0
        protected void cmdPrint_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            ClearData();
            JMMMedicalHist objJMMMedicalHist = new JMMMedicalHist();

            if (hdnMode.Value == UIMode.ADD.ToString() && KPIHlp.CVI64(hdnJMMedicalHistID.Value) == long.MinValue)
            {
                hdnBookingID.Value       = string.Empty;
                hdnNameID.Value          = string.Empty;
                hdnMedHistID.Value       = string.Empty;
                hdnJMMedicalHistID.Value = string.Empty;
                hdnSPINNbr.Value         = string.Empty;
                HeaderCtrl.KPIID         = long.MinValue;
            }
            else if (Request.QueryString.Get("hdnMode") == "ADD" && hdnMode.Value == UIMode.INQ.ToString())
            {
                hdnBookingID.Value       = string.Empty;
                hdnNameID.Value          = string.Empty;
                hdnMedHistID.Value       = string.Empty;
                hdnJMMedicalHistID.Value = string.Empty;
                hdnSPINNbr.Value         = string.Empty;
                hdnMode.Value            = UIMode.ADD.ToString();
                HeaderCtrl.KPIID         = long.MinValue;
                AddClientOnLoadScript(" window.document.frmMedicalHistory_Id.submit();");
            }
            else
            {
                if (!string.IsNullOrEmpty(hdnBookingID.Value) && KPIHlp.CVI64(hdnBookingID.Value) > 0)
                {
                    objJMMMedicalHist.JMBookingID     = KPIHlp.CVI64(hdnBookingID.Value);
                    objJMMMedicalHist.JMMedicalHistID = KPIHlp.CVI64(hdnJMMedicalHistID.Value);
                    objJMMMedicalHist.JurisID         = KPIHlp.CVI32(hdnJurisId.Value);
                    objJMMMedicalHist.NameID          = KPIHlp.CVI64(hdnNameID.Value);
                    LoadData();
                }
            }
            if (hdnJMMedicalHistID.Value != null && hdnJMMedicalHistID.Value != "")
            {
                PrintReport(KPIHlp.CVI64(hdnJMMedicalHistID.Value));
                WrtActivityLog(KPIHlp.CVI64(hdnJMMedicalHistID.Value), "Medical History Entry ", "PRT");
            }
        }
Пример #28
0
        protected void cmdReset_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                AddClientOnLoadScript("fn_CancelAllergyDetails();");

                JMMAllergy objJMMAllergy = new JMMAllergy();
                objJMMAllergy.JMBookingID = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnBookingID"))).Value);
                objJMMAllergy.JurisID     = KPIHlp.CVI32(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJurisId"))).Value);

                if (objJMMAllergy.JMBookingID.HasValue && objJMMAllergy.JMBookingID.Value > 0 && objJMMAllergy.JurisID.HasValue && objJMMAllergy.JurisID.Value > 0)
                {
                    Inquiry(ref objJMMAllergy);
                }
            }
            catch (Exception)
            {
                KPITrace.Debug(TraceWeight.Five, "Calling medical Allergy screen Reset Button");
                WrtActivityLog(long.MinValue, " Calling medical Allergy screen Reset Button.");
            }
        }
Пример #29
0
        protected JMMMedicalHist ReadScr()
        {
            JMMMedicalHist objJMMMedicalHist = null;

            try
            {
                if (ValidateScr())
                {
                    long NameID = KPIHlp.CVI64(hdnNameID.Value);
                    objJMMMedicalHist             = new JMMMedicalHist();
                    objJMMMedicalHist.JurisID     = GetPageJuris();
                    objJMMMedicalHist.JMBookingID = KPIHlp.CVI64(hdnBookingID.Value);
                    objJMMMedicalHist.NameID      = KPIHlp.CVI64(hdnNameID.Value);
                    if (KPIHlp.CVI64(hdnJMMedicalHistID.Value) == long.MinValue)
                    {
                        objJMMMedicalHist.JMMedicalHistID = KPICounter.GetCounterID(objJMMMedicalHist.JurisID.Value);
                    }
                    else
                    {
                        objJMMMedicalHist.JMMedicalHistID = KPIHlp.CVI64(hdnJMMedicalHistID.Value);
                    }
                    usrMedicalMain usrMedMainObj = (usrMedicalMain)this.tabMain.Tabs.FindTabFromKey("Main").FindControl("usrMedicalMain1");
                    usrMedMainObj.ReadScr(ref objJMMMedicalHist);

                    usrDental objusrDental = (usrDental)this.tabMain.Tabs.FindTabFromKey("Dental").FindControl("UsrDental1");
                    objusrDental.ReadScr(ref objJMMMedicalHist);


                    usrMedicationHistorySupply objMedHistorySupply = (usrMedicationHistorySupply)this.tabMain.Tabs.FindTabFromKey("MHS").FindControl("usrMedicationHistorySupply");
                    objMedHistorySupply.ReadScr(ref objJMMMedicalHist);
                }
            }
            catch (Exception objError)
            {
                ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objError);
            }
            return(objJMMMedicalHist);
        }
Пример #30
0
        protected void cmdReset_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                AddClientOnLoadScript("fn_CancelChartDetailsRow();");

                JMMMedicalHist objJMMMedicalHist = new JMMMedicalHist();
                objJMMMedicalHist.JMMedicalHistID = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJMMedicalHistID"))).Value);
                objJMMMedicalHist.JMBookingID     = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnBookingID"))).Value);
                objJMMMedicalHist.NameID          = KPIHlp.CVI64(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnNameID"))).Value);
                objJMMMedicalHist.JurisID         = KPIHlp.CVI32(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJurisId"))).Value);

                if (objJMMMedicalHist.JMMedicalHistID.HasValue && objJMMMedicalHist.JMMedicalHistID.Value > 0 && objJMMMedicalHist.JMBookingID.HasValue && objJMMMedicalHist.JMBookingID.Value > 0)
                {
                    Inquiry(ref objJMMMedicalHist);
                }
            }
            catch (Exception objErr)
            {
                ((BasePage)this.Page).ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objErr);
                throw;
            }
        }