protected void Page_Load(object sender, EventArgs e) { //(Master.FindControl("lblRoot") as Label).Text = " » Customize Lists"; //(Master.FindControl("lblMark") as Label).Visible = false; //(Master.FindControl("lblheader") as Label).Text = "LPTF Patient Transfer"; (Master.FindControl("levelOneNavigationUserControl1").FindControl("lblRoot") as Label).Text = "Customize Lists >> "; (Master.FindControl("levelOneNavigationUserControl1").FindControl("lblheader") as Label).Text = "LPTF Patient Transfer"; lblH2.Text = Request.QueryString["name"]; if (lblH2.Text == "Add") { lblactive.Visible = false; ddStatus.Visible = false; lblH2.Text = "Add LPTF Patient Transfer"; } else if (lblH2.Text == "Edit") { lblH2.Text = "Edit LPTF Patient Transfer"; btnsave.Text = "Update"; } ICustomList LPTFPatientTransfer; try { LPTFPatientTransfer = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration"); if (IsPostBack != true) { if (Request.QueryString["name"] == "Edit") { int LPTFId = Convert.ToInt32(Request.QueryString["LPTFId"]); DataSet theDS = LPTFPatientTransfer.GetLPTFPatientTransferID(LPTFId); this.txtLPTFName.Text = theDS.Tables[0].Rows[0]["Name"].ToString(); ViewState["Name"] = theDS.Tables[0].Rows[0]["Name"].ToString(); this.ddAnswer.SelectedValue = theDS.Tables[0].Rows[0]["ARFunded"].ToString(); if (theDS.Tables[0].Rows[0]["DeleteFlag"].ToString() == "1") { this.ddStatus.SelectedValue = "1"; } else { this.ddStatus.SelectedValue = "0"; } } } } catch (Exception err) { MsgBuilder theBuilder = new MsgBuilder(); theBuilder.DataElements["MessageText"] = err.Message.ToString(); IQCareMsgBox.Show("#C1", theBuilder, this); return; } finally { LPTFPatientTransfer = 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); } (Master.FindControl("levelOneNavigationUserControl1").FindControl("lblRoot") as Label).Text = "Customize Lists >> "; (Master.FindControl("levelOneNavigationUserControl1").FindControl("lblheader") as Label).Text = "LPTF Patient Transfer"; lblH2.Text = Request.QueryString["name"]; if (lblH2.Text == "Add") { lblactive.Visible = false; ddStatus.Visible = false; lblH2.Text = "Add LPTF Patient Transfer"; } else if (lblH2.Text == "Edit") { lblH2.Text = "Edit LPTF Patient Transfer"; btnsave.Text = "Update"; } ICustomList LPTFPatientTransfer; try { LPTFPatientTransfer = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration"); if (IsPostBack != true) { if (Request.QueryString["name"] == "Edit") { int LPTFId = Convert.ToInt32(Request.QueryString["LPTFId"]); DataSet theDS = LPTFPatientTransfer.GetLPTFPatientTransferID(LPTFId); this.txtLPTFName.Text = theDS.Tables[0].Rows[0]["Name"].ToString(); ViewState["Name"] = theDS.Tables[0].Rows[0]["Name"].ToString(); this.ddAnswer.SelectedValue = theDS.Tables[0].Rows[0]["ARFunded"].ToString(); if (theDS.Tables[0].Rows[0]["DeleteFlag"].ToString() == "1") { this.ddStatus.SelectedValue = "1"; } else { this.ddStatus.SelectedValue = "0"; } AuthenticationManager Authentication = new AuthenticationManager(); if (Authentication.HasFunctionRight(Convert.ToInt32(ViewState["FID"]), FunctionAccess.Update, (DataTable)Session["UserRight"]) == false) { btnsave.Enabled = false; } } } } catch (Exception err) { MsgBuilder theBuilder = new MsgBuilder(); theBuilder.DataElements["MessageText"] = err.Message.ToString(); IQCareMsgBox.Show("#C1", theBuilder, this); return; } finally { LPTFPatientTransfer = null; } }