protected void btnSubmit_Click(object sender, EventArgs e) { IPatientHome WListManager = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome, BusinessProcess.Clinical"); WListManager.SavePatientWaitList((DataTable)Session["dtWaitingList"], Convert.ToInt32(Session["WLTechnicalArea"]), Convert.ToInt32(base.Session["AppUserId"]), Convert.ToInt32(HttpContext.Current.Session["WLPatientID"])); IQCareMsgBox.Show("Successfully saved ", "!", "", this); ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true); }
/// <summary> /// Handles the Click event of the btnSubmit control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void btnSubmit_Click(object sender, EventArgs e) { try { //Revist Date. DateTime now = DateTime.Now; //Entry point int moduleID = Convert.ToInt32(Session["WLTechnicalArea"]); int patientID = Convert.ToInt32(HttpContext.Current.Session["WLPatientID"]); //UserID IPatientHome pMGR; pMGR = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome, BusinessProcess.Clinical"); pMGR.SavePatientRevisit(now, this.RevistHrsAllowance, moduleID, this.UserId, patientID, this.LocationId); } catch //(Exception err) { // MsgBuilder theBuilder = new MsgBuilder(); // theBuilder.DataElements["MessageText"] = err.Message.ToString(); // IQCareMsgBox.Show("#C1", theBuilder, this); } try { IPatientHome WListManager = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome, BusinessProcess.Clinical"); WListManager.SavePatientWaitList((DataTable)Session["dtWaitingList"], Convert.ToInt32(Session["WLTechnicalArea"]), Convert.ToInt32(base.Session["AppUserId"]), Convert.ToInt32(HttpContext.Current.Session["WLPatientID"])); IQCareMsgBox.Show("Successfully saved ", "!", "", this); } catch (Exception ex) { IQCareMsgBox.Show("Error Occurred " + ex.Message, "!", "", this); } }