Пример #1
0
        /// <summary>
        ///加载公章单的数据
        /// </summary>
        private void LoadOriginalData()
        {
            int       id  = int.Parse(Request.QueryString["id"]); //获取工作流的id值
            DataTable tbl = PJOABLL.ViewBLL.ViewApplySealManager.getlist(id);

            if (tbl.Rows.Count == 1)
            {
                Session["GZDId"]               = tbl.Rows[0]["id"].ToString(); //公章单的id值
                this.lblnumbers.Text           = tbl.Rows[0]["jobflowcname"].ToString();
                this.lbldepart.Text            = tbl.Rows[0]["applicantdepartcname"].ToString();
                this.lblcanme.Text             = tbl.Rows[0]["applicantcname"].ToString();
                this.lblapplydate.Text         = DateTime.Now.ToString("yyyy-MM-dd");
                this.ddlsealsort.SelectedValue = tbl.Rows[0]["sealsort"].ToString();

                this.iptstartdate.Value = tbl.Rows[0]["borrowstarttime"].ToString();
                this.iptenddate.Value   = tbl.Rows[0]["borrowsendtime"].ToString();
                this.iptremark.Value    = tbl.Rows[0]["remark"].ToString();

                int auditruleid = int.Parse(tbl.Rows[0]["ruleid"].ToString());
                if (auditruleid != 1)
                {
                    PJOAModels.ApprovalRule model = PJOABLL.ApprovalRuleManager.GetModel(auditruleid);
                    string path  = model.rolepic;
                    string patha = Server.MapPath(path);
                    this.auditpic.InnerHtml         = File.ReadAllText(Server.MapPath(path));
                    this.ddlauditsort.SelectedValue = model.sort;
                    LoadApprovalRole();
                    this.ddlapprovalrole.SelectedValue = model.id.ToString();
                }
            }
        }
Пример #2
0
        /// <summary>
        /// 依据不同的审核规则查看相应的审核流程图
        /// </summary>
        protected void ddlapprovalrole_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.ddlapprovalrole.SelectedIndex != 0)
            {
                int auditruleid = int.Parse(this.ddlapprovalrole.SelectedValue);
                PJOAModels.ApprovalRule model = PJOABLL.ApprovalRuleManager.GetModel(auditruleid);
                if (model != null)
                {
                    string strpath = model.rolepic;
                    this.auditpic.InnerHtml = File.ReadAllText(Server.MapPath(strpath));
                }
            }
            else
            {
            }
            string str = "<script> $(function(){ $('#iptremark').val(jQuery.changereducestr($('#iptremark').val()));});</script>";

            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "reducestr", str, false);
        }