protected void Page_Load(object sender, EventArgs e) { IIQCareSystem MgrSecurity; try { if (!IsPostBack) { BindFunctions BindManager = new BindFunctions(); MgrSecurity = (IIQCareSystem)ObjectFactory.CreateInstance("BusinessProcess.Security.BIQCareSystem, BusinessProcess.Security"); DataSet theDSVisitForm = MgrSecurity.GetVisitForms(); BindManager.BindCombo(ddAuditTrail, theDSVisitForm.Tables[0], "VisitName", "VisitTypeID"); MgrSecurity = (IIQCareSystem)ObjectFactory.CreateInstance("BusinessProcess.Security.BIQCareSystem, BusinessProcess.Security"); DataSet theDS = MgrSecurity.GetMySQLAuditTrailData(); Session["theDS"] = theDS.Tables[0]; } } catch (Exception err) { MsgBuilder theBuilder = new MsgBuilder(); theBuilder.DataElements["MessageText"] = err.Message.ToString(); IQCareMsgBox.Show("#C1", theBuilder, this); return; } finally { MgrSecurity = null; } }
protected void Page_Load(object sender, EventArgs e) { IIQCareSystem MgrSecurity; try { if (!IsPostBack) { DataTable theDT = (DataTable)Session["AppModule"]; String ModuleId = Convert.ToString(theDT.Rows[0]["ModuleId"]); BindFunctions BindManager = new BindFunctions(); MgrSecurity = (IIQCareSystem)ObjectFactory.CreateInstance("BusinessProcess.Security.BIQCareSystem, BusinessProcess.Security"); DataSet theDSVisitForm = MgrSecurity.GetVisitForms(); DataView theDV = new DataView(theDSVisitForm.Tables[0]); theDV.RowFilter = "DeleteFlag = 0 and SystemID IN(" + Session["SystemId"] + ") and ModuleID IN(" + ModuleId + ",0)"; BindManager.BindCombo(ddAuditTrail, theDV.ToTable(), "VisitName", "VisitTypeID"); DataSet theDS = MgrSecurity.GetMySQLAuditTrailData(); Session["theDS"] = theDS.Tables[0]; } } catch (Exception err) { MsgBuilder theBuilder = new MsgBuilder(); theBuilder.DataElements["MessageText"] = err.Message.ToString(); IQCareMsgBox.Show("#C1", theBuilder, this); return; } finally { MgrSecurity = null; } }
protected void Page_Load(object sender, EventArgs e) { if (Session["AppLocation"] == null || Session.Count == 0 || Session["AppUserID"].ToString() == "") { IQCareMsgBox.Show("SessionExpired", this); Response.Redirect("~/frmlogin.aspx", true); } IIQCareSystem MgrSecurity; //(Master.FindControl("levelOneNavigationUserControl1").FindControl("lblRoot") as Label).Visible = false; //(Master.FindControl("levelTwoNavigationUserControl1").FindControl("PanelPatiInfo") as Panel).Visible = false; try { if (!IsPostBack) { Session["PatientID"] = null; DataTable theDT = (DataTable)Session["AppModule"]; String ModuleId = Convert.ToString(theDT.Rows[0]["ModuleId"]); BindFunctions BindManager = new BindFunctions(); MgrSecurity = (IIQCareSystem)ObjectFactory.CreateInstance("BusinessProcess.Security.BIQCareSystem, BusinessProcess.Security"); DataSet theDSVisitForm = MgrSecurity.GetVisitForms(); DataView theDV = new DataView(theDSVisitForm.Tables[0]); theDV.RowFilter = "DeleteFlag = 0 and SystemID IN(" + Session["SystemId"] + ")"; BindManager.BindCombo(ddAuditTrail, theDV.ToTable(), "VisitName", "VisitTypeID"); DataSet theDS = MgrSecurity.GetMySQLAuditTrailData(); Session["theDS"] = theDS.Tables[0]; } } catch (Exception err) { MsgBuilder theBuilder = new MsgBuilder(); theBuilder.DataElements["MessageText"] = err.Message.ToString(); IQCareMsgBox.Show("#C1", theBuilder, this); return; } finally { MgrSecurity = null; } }