private void BindHeader() { DataSet theFacilityDS = new DataSet(); AuthenticationManager Authentication = new AuthenticationManager(); IFacilitySetup FacilityMaster = (IFacilitySetup)ObjectFactory.CreateInstance("BusinessProcess.Administration.BFacility, BusinessProcess.Administration"); if (Session["SystemId"].ToString() == "1") { theFacilityDS = FacilityMaster.GetSystemBasedLabels(Convert.ToInt32(Session["SystemId"]), ApplicationAccess.Allergy, 0); } else if (Session["SystemId"].ToString() == "2") { theFacilityDS = FacilityMaster.GetSystemBasedLabels(Convert.ToInt32(Session["SystemId"]), ApplicationAccess.Allergy, 0); } ViewState["grdDataSource"] = theFacilityDS.Tables[0]; }
protected void Page_Load(object sender, EventArgs e) { //(Master.FindControl("lblRoot") as Label).Text = "Clinical Forms >>"; //(Master.FindControl("lblMark") as Label).Visible = false; //(Master.FindControl("lblheader") as Label).Text = "Location Transfer"; //(Master.FindControl("lblformname") as Label).Text = "Patient Transfer"; (Master.FindControl("levelOneNavigationUserControl1").FindControl("lblRoot") as Label).Text = "Clinical Forms >> "; (Master.FindControl("levelOneNavigationUserControl1").FindControl("lblheader") as Label).Text = "Location Transfer"; (Master.FindControl("levelTwoNavigationUserControl1").FindControl("lblformname") as Label).Text = "Patient Transfer"; txtTransferDate.Attributes.Add("onkeyup", "DateFormat(this,this.value,event,false,'3')"); txtTransferDate.Attributes.Add("OnBlur", "DateFormat(this,this.value,event,true,'3')"); TxtTransDateEdit.Attributes.Add("onkeyup", "DateFormat(this,this.value,event,false,'3')"); TxtTransDateEdit.Attributes.Add("OnBlur", "DateFormat(this,this.value,event,true,'3')"); //PatientId = Request.QueryString["PatientId"].ToString(); PatientId = Convert.ToString(Session["PatientId"]); BtnUpdate = Request.QueryString["name"].ToString(); //(Master.FindControl("lblpntStatus") as Label).Text = Session["AppStatus"].ToString(); if (Request.QueryString["sts"].ToString() == "1") { btnSave.Enabled = false; } AuthenticationManager Authentiaction = new AuthenticationManager(); if (Authentiaction.HasFunctionRight(ApplicationAccess.Transfer, FunctionAccess.Print, (DataTable)Session["UserRight"]) == false) { btnPrint.Enabled = false; } if (BtnUpdate == "Edit") { tredit.Visible = true; tradd.Visible = false; btnSave.Text = "Update"; TransferId = Request.QueryString["TransferId"].ToString(); ViewState["RegDate"] = Request.QueryString["RegDate"].ToString(); } if (!IsPostBack) { IFacilitySetup FacilityMaster = (IFacilitySetup)ObjectFactory.CreateInstance("BusinessProcess.Administration.BFacility, BusinessProcess.Administration"); theFacilityDS = FacilityMaster.GetSystemBasedLabels(Convert.ToInt32(Session["SystemId"]), 56, 0); ViewState["FacilityDS"] = theFacilityDS; SetPageLabels(); ViewState["SortDirection"] = "Desc"; ViewState["Sorted"] = ""; ViewState["Save"] = null; BindTransferDetail(); BindGrid(); //SaveUpdateMsg(); } }
private void BindHeader() { DataSet theFacilityDS = new DataSet(); AuthenticationManager Authentication = new AuthenticationManager(); IFacilitySetup FacilityMaster = (IFacilitySetup)ObjectFactory.CreateInstance("BusinessProcess.Administration.BFacility, BusinessProcess.Administration"); theFacilityDS = FacilityMaster.GetSystemBasedLabels(Convert.ToInt32(Session["SystemId"]), ApplicationAccess.SchedularAppointment, 0); DataTable theDT = theFacilityDS.Tables[0]; ViewState["grdDataSource"] = theFacilityDS.Tables[0]; }
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); } txtTransferDate.Attributes.Add("onkeyup", "DateFormat(this,this.value,event,false,'3')"); txtTransferDate.Attributes.Add("OnBlur", "DateFormat(this,this.value,event,true,'3')"); TxtTransDateEdit.Attributes.Add("onkeyup", "DateFormat(this,this.value,event,false,'3')"); TxtTransDateEdit.Attributes.Add("OnBlur", "DateFormat(this,this.value,event,true,'3')"); PatientId = Convert.ToString(Session["PatientId"]); BtnUpdate = Request.QueryString["name"].ToString(); //(Master.FindControl("lblpntStatus") as Label).Text = Session["AppStatus"].ToString(); if (!object.Equals(Request.QueryString["sts"], null)) { if (Request.QueryString["sts"].ToString() == "1") { btnSave.Enabled = false; } } AuthenticationManager Authentiaction = new AuthenticationManager(); if (Authentiaction.HasFunctionRight(ApplicationAccess.Transfer, FunctionAccess.Print, (DataTable)Session["UserRight"]) == false) { btnPrint.Enabled = false; } if (BtnUpdate == "Edit") { tredit.Visible = true; tradd.Visible = false; btnSave.Text = "Update"; TransferId = Request.QueryString["TransferId"].ToString(); ViewState["RegDate"] = Request.QueryString["RegDate"].ToString(); } if (!IsPostBack) { IFacilitySetup FacilityMaster = (IFacilitySetup)ObjectFactory.CreateInstance("BusinessProcess.Administration.BFacility, BusinessProcess.Administration"); theFacilityDS = FacilityMaster.GetSystemBasedLabels(Convert.ToInt32(Session["SystemId"]), 56, 0); ViewState["FacilityDS"] = theFacilityDS; SetPageLabels(); ViewState["SortDirection"] = "Desc"; ViewState["Sorted"] = ""; ViewState["Save"] = null; BindTransferDetail(); BindGrid(); } }
private void Init_Page() { if (Session["AppLocation"] == null || Session.Count == 0 || Session["AppUserID"].ToString() == "") { IQCareMsgBox.Show("SessionExpired", this); Response.Redirect("~/frmlogin.aspx", true); } AuthenticationManager Authentication = new AuthenticationManager(); IFacilitySetup FacilityMaster = (IFacilitySetup)ObjectFactory.CreateInstance("BusinessProcess.Administration.BFacility, BusinessProcess.Administration"); theFacilityDS = FacilityMaster.GetSystemBasedLabels(Convert.ToInt32(Session["SystemId"]), 999, 0); ViewState["FacilityDS"] = theFacilityDS; ViewState["grdDataSource"] = theFacilityDS.Tables[0]; ViewState["SortDirection"] = "Asc"; BindGrid(); SetPageLabels(); txtDOB.Value = ""; txtfirstname.Text = ""; txtmiddlename.Text = ""; txtlastname.Text = ""; txtidentificationno.Text = string.Empty; if (Request.QueryString["mnuClicked"] != null) { if (Request.QueryString["mnuClicked"] != "DeletePatient") { ddSex.SelectedValue = "0"; } } if (Session["TechnicalAreaId"] == null) { Session["TechnicalAreaId"] = 0; } BindIdentifierDropdown(Session["TechnicalAreaId"].ToString()); BindServiceDropdown(); IUser theLocationManager; theLocationManager = (IUser)ObjectFactory.CreateInstance("BusinessProcess.Security.BUser, BusinessProcess.Security"); DataTable theDT = theLocationManager.GetFacilityList(); DataRow theDR = theDT.NewRow(); theDR["FacilityName"] = "All"; theDR["FacilityId"] = 9999; theDT.Rows.InsertAt(theDR, 0); BindFunctions theBindManger = new BindFunctions(); theBindManger.BindCombo(ddFacility, theDT, "FacilityName", "FacilityId"); ddFacility.SelectedValue = Convert.ToString(Session["AppLocationId"]); }
private void Init_Page() { AuthenticationManager Authentication = new AuthenticationManager(); IFacilitySetup FacilityMaster = (IFacilitySetup)ObjectFactory.CreateInstance("BusinessProcess.Administration.BFacility, BusinessProcess.Administration"); theFacilityDS = FacilityMaster.GetSystemBasedLabels(Convert.ToInt32(Session["SystemId"]), 999, 0); ViewState["FacilityDS"] = theFacilityDS; ViewState["grdDataSource"] = theFacilityDS.Tables[0]; ViewState["SortDirection"] = "Asc"; BindGrid(); SetPageLabels(); txtDOB.Text = ""; txtfirstname.Text = ""; txtmiddlename.Text = ""; txtlastname.Text = ""; if (Request.QueryString["mnuClicked"] != null) { if (Request.QueryString["mnuClicked"] != "DeletePatient") { ddSex.SelectedValue = "0"; } } IUser theLocationManager; theLocationManager = (IUser)ObjectFactory.CreateInstance("BusinessProcess.Security.BUser, BusinessProcess.Security"); DataTable theDT = theLocationManager.GetFacilityList(); DataRow theDR = theDT.NewRow(); theDR["FacilityName"] = "All"; theDR["FacilityId"] = 9999; theDT.Rows.InsertAt(theDR, 0); BindFunctions theBindManger = new BindFunctions(); theBindManger.BindCombo(ddFacility, theDT, "FacilityName", "FacilityId"); ddFacility.SelectedValue = Convert.ToString(Session["AppLocationId"]); BindServiceDropdown(); }