protected void Page_Load(object sender, EventArgs e) { FormID = Request.QueryString["FormID"] + ""; cnKey = Request.QueryString["cnKey"] + ""; ID = Request.QueryString["ID"] + ""; SysModel = new Js.DAO.Sys.TreeListDao().GetModel(FormID); if (!IsPostBack) { //ScriptManager.RegisterStartupScript(this, this.GetType(), "Resize", "content_resize();", true); rptview.Visible = false; //this.rptform.Visible = false; rptopt.Visible = false; // WebReport1.Zoom = 1.5f; WebReport1.Width = int.Parse(Request.QueryString["W"] + "") - 150; WebReport1.Height = int.Parse(Request.QueryString["H"] + "") - 25; this.txtAlone.Text = ID; optArea.Checked = (ID.Length == 0); Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey); if (Session["language_session"] + "" == "zh-cn") lblCaption.Text = SysModel.Text_cn + "--" + lblCaption.Text; else if (Session["language_session"] + "" == "en-us") lblCaption.Text = SysModel.Text_en + "--" + lblCaption.Text; else lblCaption.Text = SysModel.Text + "--" + lblCaption.Text; DataTable dt; dt = dal.GetRecord("F", ""); if (dt != null && dt.Rows.Count > 0) this.txtStart.Text = "" + dt.Rows[0][SysModel.KeyField]; dt = dal.GetRecord("L", ""); if (dt != null && dt.Rows.Count > 0) this.txtEnd.Text = "" + dt.Rows[0][SysModel.KeyField]; DropDownList_ReSetRptName(FormID, cnKey, 0, ref cmbRptName); } btViewLast.Enabled = Request.Cookies["rptwhere_" + FormID] != null && ("" + Request.Cookies["rptwhere_" + FormID].Value != ""); txtAlone.Attributes.Add("ondblclick", "GetOtherJsonValue(\"" + FormID + "\", \"" + cnKey + "\", \"" + SysModel.KeyField + "\", \"txtAlone\");$('#optAlone').attr('checked', true);"); txtStart.Attributes.Add("ondblclick", "GetOtherJsonValue(\"" + FormID + "\", \"" + cnKey + "\", \"" + SysModel.KeyField + "\", \"txtAlone\");$('#optArea').attr('checked', true);"); txtEnd.Attributes.Add("ondblclick", "GetOtherJsonValue(\"" + FormID + "\", \"" + cnKey + "\", \"" + SysModel.KeyField + "\", \"txtAlone\");$('#optArea').attr('checked', true);"); btnSel1.OnClientClick = "getMultiItems(\"" + FormID + "\", \"" + cnKey + "\", 1, \"" + SysModel.KeyField + "\", this, '#Hidden1');return false;"; }
protected void BtBack_Click(object sender, EventArgs e) { SysModel = new Js.DAO.Sys.TreeListDao().GetModel(FormID); Response.Redirect(SysModel.Url + "?FormID=" + FormID); }