public override bool DocumentCloseDocument() { _DataSetOrderDetails = null; _DataSetClientMedicationScriptHistory = null; objectClientMedications = null; _DataSetClientSummary = null; Session["DataViewClientMedicationScriptHistory"] = null; GridViewMedicationInstructions.Dispose(); DataGridScriptHistory.Dispose(); return(true); }
protected override void Page_Load(object sender, EventArgs e) { #region "error message color added by rohit ref. #121" Streamline.BaseLayer.CommonFunctions.SetErrorMegssageBackColor(LabelError); Streamline.BaseLayer.CommonFunctions.SetErrorMegssageForeColor(LabelError); #endregion //Added this function call in ref to Task#2971 to clear the session DocumentCloseDocument(); //Added in ref to Task#2895 if (System.Configuration.ConfigurationSettings.AppSettings["OpenFromSmartCare"].ToString().ToUpper() == "FALSE") { LinkButtonLogout.Style["display"] = "block"; LinkButtonStartPage.Style["display"] = "block"; } ButtonNewOrder.Enabled = ((Streamline.BaseLayer.StreamlinePrinciple)Context.User).HasPermission(Permissions.NewOrder); //Code Adde by Pramod on 10 Apr 2008 as checkbox should be enable or disable according to permission //CheckBoxDiscontinued.Enabled = ((Streamline.BaseLayer.StreamlinePrinciple)Context.User).HasPermission(Permissions.NewOrder); Session["OriginalDataUpdated"] = 1; //added by chandan. Accessed in MedicationPrintOrderDialog1.aspx.cs //Code added by Loveena in ref to Task#2486 If this window is opened //from the Medication History page, close should take the user back to the history page //to refill the controls on clicking the medication whether continue/discontinue as corresponding to task#2494. CommonFunctions.Event_Trap(this); //Added by Chandan for task #2433 MM1.9 FillDiscontinueDropDown(); //End by Chandan //Commented By Pramod on 10 Apr 2008 as checkbox should be enable of disable according to NewOrder Permission //CheckBoxDiscontinued.Enabled = ((Streamline.BaseLayer.StreamlinePrinciple)Context.User).HasPermission(Permissions.AddMedication); //TextBoxDiscontinue.Enabled = ((Streamline.BaseLayer.StreamlinePrinciple)Context.User).HasPermission(Permissions.NewOrder); //Added new parameter by Chandan for passing DiscontinueReasonCode ref task #2433 CheckBoxDiscontinued.Attributes.Add("onclick", "return ValidateInputs('" + TextBoxDiscontinue.ClientID + "','" + HiddenFieldClientMedicationId.ClientID + "','" + CheckBoxDiscontinued.ClientID + "','" + DropDownDiscontinueReason.ClientID + "');return false"); // CheckBoxPermitChanges.Attributes.Add("onclick","return "); _DataSetOrderDetails = new Streamline.UserBusinessServices.DataSets.DataSetClientMedicationOrders(); _DataSetOrderDetails.Clear(); BindControls(); //Code added by Loveena ends over here. //Start Code Added By Pradeep as per task#31 CheckBoxPermitChanges.Attributes.Add("onclick", "return SavePermitChangesByOtherUsers()"); //End Code Added by pradeep as per task#31 //--Start Code Added by Pradeep as per task#31 //Modified by Loveena in ref to Task#31 as per David Comments //CheckBoxPermitChanges.Enabled = ((Streamline.BaseLayer.StreamlinePrinciple)Context.User).HasPermission(Permissions.PermitChanges); //--End Code Added by radeep as per task#31 if (((Streamline.BaseLayer.StreamlinePrinciple)Context.User).HasPermission(Permissions.PermitChanges) && ((Streamline.BaseLayer.StreamlineIdentity)Context.User.Identity).Prescriber == "Y") { CheckBoxPermitChanges.Attributes.Add("style", "display:block"); } else { CheckBoxPermitChanges.Attributes.Add("style", "display:none"); } //Code Added by : Malathi Shiva //With Ref to task# : 33 - Community Network Services if (((Streamline.BaseLayer.StreamlinePrinciple)Context.User).HasPermission(Permissions.OffLabel) == false) { this.CheckBoxOffLabel.Attributes.Add("style", "display:none"); this.Span_OffLabel.Attributes.Add("style", "display:none"); } }