Esempio n. 1
0
        public void ReadAddMode()
        {
            try
            {
                JMMMedPrescriptionHist objJMMMedPrescriptionHist = new JMMMedPrescriptionHist();
                objJMMMedPrescriptionHist.JMMScheduleEventsID = KPIHlp.CVI64(hdnJMMScheduleEventsID.Value);
                objJMMMedPrescriptionHist.JMMedPrescriptionID = KPIHlp.CVI64(hdnPrescriptionID.Value);

                JMMScheduleEvents objJMMScheduleEvents = null;
                if (objJMMMedPrescriptionHist.JMMScheduleEventsID.HasValue)
                {
                    objJMMScheduleEvents = new JMMScheduleEventsBL().Select(objJMMMedPrescriptionHist.JMMScheduleEventsID.Value);
                    if (objJMMScheduleEvents != null)
                    {
                        cddDispense.KPISelectedCodeValue = objJMMScheduleEvents.MedicationType; //Request.QueryString.Get("MedicationType") == null ? string.Empty : Request.QueryString.Get("MedicationType").Trim();
                        //txtDispense.Text = objJMMScheduleEvents.Dispense.HasValue ? objJMMScheduleEvents.Dispense.ToString() : "0";// Request.QueryString.Get("Dispense") == null ? string.Empty : Request.QueryString.Get("Dispense").Trim();

                        txtInstructions.Text = objJMMScheduleEvents.Instructions;
                        objJMMMedPrescriptionHist.MedicationType = objJMMScheduleEvents.MedicationType;// Request.QueryString.Get("MedicationType") == null ? string.Empty : Request.QueryString.Get("MedicationType").Trim();
                    }
                }



                objJMMMedPrescriptionHist = new JMMMedPrescriptionHistBL().GetLastAdministered(objJMMMedPrescriptionHist.JMMedPrescriptionID.Value);  //objJMMMedPrescriptionHist.MedPresSchID

                if (objJMMMedPrescriptionHist != null && objJMMMedPrescriptionHist.ActivityDttm.HasValue)
                {
                    dttmLstAdministered.DateValue = objJMMMedPrescriptionHist.ActivityDttm.Value;
                }
            }
            catch (KPIException objKPIError)
            {
                ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError);
            }
        }
Esempio n. 2
0
        public static object GetScheduleEvents(string JMMScheduleEventsID)
        {
            JMMScheduleEvents objJMMScheduleEvents = new JMMScheduleEventsBL().Select(KPIHlp.CVI64(JMMScheduleEventsID));

            return((new System.Web.Script.Serialization.JavaScriptSerializer()).Serialize(objJMMScheduleEvents));
        }