protected void Page_Load(object sender, EventArgs e) { if (!userBll.CheckLogin() && !adminBll.CheckLogin()) { function.WriteErrMsg("无权限访问页面"); } if (!string.IsNullOrEmpty(Request.QueryString["appID"])) { oaMod = oaBll.SelReturnModel(Convert.ToInt32(Request.QueryString["appID"])); ModelHtml.Text = oaCom.ClearHolder(oaMod); SignImgBind(); } else { if (Session["PrintCon"] != null) { ModelHtml.Text = Session["PrintCon"].ToString(); Page.ClientScript.RegisterStartupScript(this.GetType(), "", "creatimg('" + Session["PrintImg"] + "');", true); } } Page.ClientScript.RegisterStartupScript(this.GetType(), "DisProg", "DisProg(\"" + oaCom.GetHolder(oaMod, 0) + "\");", true); }