Exemple #1
0
 void Bind()
 {
     mtb = btb.GetModel(Convert.ToInt32(Request.Params["bid"]));
     mf  = bf.GetModel(mtb.b_sort);
     mtf = tf.GetModel(mf.f_form);
     if (mtf == null)
     {
         Tunnel.Common.Message.back("表单不存在或已删除,请与管理员联系"); return;
     }
     Label1.Text = fc.From_Content(mtf.f_content, mtb.b_content, false);//取得替换后的表单数据
     if (mf.f_isfile.ToString() == "1")
     {
         isuploads = false;
     }
     TextBox1.Text = mtb.b_title;
     if (mtb.b_suser == 0)
     {
         RadioButtonList3.SelectedIndex = 0;
         isusered = false;
     }
     else
     {
         TextBox2.Text = Tunnel.Common.GetValue.getDataValue("Tunnel_menber", "m_name", "m_id=" + mtb.b_suser);
         RadioButtonList3.SelectedIndex = 1;
         isusered = true;
     }
     m_value.Value = mtb.b_suser.ToString();
     hfile.Value   = mtb.b_file;
     if (!"".Equals(mtb.b_file))
     {
         string[] filelist = mtb.b_file.Split(',');
         foreach (string list in filelist)
         {
             string flist = list.Substring(list.LastIndexOf('/') + 1, list.Length - list.LastIndexOf('/') - 1);
             hfilelist += "<span><img src=\"../../image/attach.png\">" + flist + "<img style='cursor:hand' onclick=\"del(this,'" + list + "')\" alt='删除附件' src=\"../../image/remove.png\">;</span>";
         }
     }
     if (mf.f_state.ToString() == "0")
     {
         scontent = "审核→"; issheng = true;
     }
     else
     {
         scontent = ""; issheng = false;
     }
     Repeater1.DataSource = bs.GetList("s_lid=" + mf.f_id);
     Repeater1.DataBind();
     if (Repeater1.Items.Count <= 0)
     {
         Label2.Text = "本申请未设置流程,将不能保存!"; HiddenField2.Value = "0"; scontent = "";
     }
     else
     {
         Label2.Text = ""; HiddenField2.Value = "1";
     }
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         if (!string.IsNullOrEmpty(Request.Params["delid"]))
         {
             mb = tb.GetModel(Convert.ToInt32(Request.Params["delid"]));
             if ("issure".Equals(Request.Params["mod"]))
             {
                 tmt.Title      = mb.b_title;
                 tmt.TypeId     = 5;
                 tmt.HtmlSource = fc.From_Content(mb.b_formcontent, mb.b_content, true);//取得替换后的表单数据
                 tmt.UserId     = mb.b_user;
                 Tunnel.BLL.Tunnel_information bllf = new Tunnel.BLL.Tunnel_information();
                 int relt = -1;
                 relt = bllf.Add(tmt);
             }
             tb.Delete(mb.b_id);
             Tunnel.Data.DbHelperSQL.ExecuteSql("DELETE FROM TUNNEL_EXAM WHERE E_GID=" + mb.b_id);
             Tunnel.Data.DbHelperSQL.ExecuteSql("DELETE FROM Tunnel_Advice WHERE A_GID=" + mb.b_id);
             Tunnel.Data.DbHelperSQL.ExecuteSql("DELETE FROM Tunnel_Remind WHERE m_type=1 and m_typeid=" + mb.b_id);
             Tunnel.Common.Del_File delfile = new Tunnel.Common.Del_File();
             delfile.FileDelete(mb.b_file);
             Tunnel.Common.Message.Show("操作成功!", "Other_Manage.aspx");
         }
         this.ShowInit("");
     }
 }
Exemple #3
0
    void ShowInit()
    {
        if (!string.IsNullOrEmpty(Request.Params["File_Id"]))
        {
            try
            {
                Tunnel.BLL.Tunnel_bumf   btb = new Tunnel.BLL.Tunnel_bumf();
                Tunnel.Model.Tunnel_bumf mtb = new Tunnel.Model.Tunnel_bumf();
                Tunnel.BLL.Tunnel_form   tf  = new Tunnel.BLL.Tunnel_form();
                Tunnel.Model.Tunnel_form mtf = new Tunnel.Model.Tunnel_form();
                Tunnel.Common.Form_Class fc  = new Tunnel.Common.Form_Class();
                Tunnel.BLL.UserLogin     ul  = new Tunnel.BLL.UserLogin();
                mtb      = btb.GetModel(Convert.ToInt32(Request.Params["File_Id"]));
                formfile = getFile(mtb.b_file);//附件

                Label1.Text  = mtb.b_title;
                Label2.Text  = fc.From_Content(mtb.b_formcontent, mtb.b_content, true);//取得替换后的表单数据
                ul.UsbnLogin = ul.getUserModel(mtb.b_user);
                Label3.Text  = "发布人:" + ul.UsbnLogin.m_name + " 发布时间:" + mtb.b_time.ToString();
            }
            catch
            {
                Tunnel.Common.Message.back("不正确的ID"); return;
            }
        }
    }
Exemple #4
0
 void Bind()
 {
     try
     {
         mtb         = btb.GetModel(int.Parse(Request.Params["bid"]));
         mf          = bf.GetModel(mtb.b_sort);
         mtf         = tf.GetModel(mf.f_form);
         Label1.Text = fc.From_Content(mtf.f_content, mtb.b_content, true);//取得替换后的表单数据
         Label4.Text = mtb.b_title + " (" + mtb.b_time + ")";
         formfile    = Tunnel.Common.GetValue.getFile(mtb.b_file);
         if (mf.f_isfile.ToString() == "1")
         {
             isuploads = false;
         }
         Repeater1.DataSource = bts.GetList("s_lid=" + mf.f_id);
         Repeater1.DataBind();
     }
     catch {
         Tunnel.Common.Message.back("不正确的ID"); return;
     }
 }
Exemple #5
0
 void Bind()
 {
     try
     {
         if (!string.IsNullOrEmpty(Request.Params["bid"]))
         {
             mtb             = btb.GetModel(int.Parse(Request.Params["bid"]));
             Label1.Text     = mtb.b_content;
             Label4.Text     = mtb.b_title + " (" + mtb.b_time + ")";
             Button4.Visible = true;
             formfile        = Tunnel.Common.GetValue.getFile(mtb.b_file);
         }
         else
         {
             Tunnel.Common.Message.back("不正确的ID"); return;
         }
     }
     catch
     {
         Tunnel.Common.Message.back("不正确的ID"); return;
     }
 }
Exemple #6
0
    void Bind()
    {
        try
        {
            mtb = btb.GetModel(int.Parse(Request.Params["bid"]));

            mf  = bf.GetModel(mtb.b_sort);
            mtf = tf.GetModel(mf.f_form);
            if (mtf == null)
            {
                Tunnel.Common.Message.back("表单不存在或已删除,请与管理员联系"); return;
            }
            Label1.Text = fc.From_Content(mtf.f_content, mtb.b_content, true);//取得替换后的表单数据
            Label4.Text = mtb.b_title + " (" + mtb.b_time + ")";
            Label5.Text = "<font color=red>(注:红色代表当前执行步骤,<font color=green>绿色代表已经审批通过</font>)</font>";
            formfile    = Tunnel.Common.GetValue.getFile(mtb.b_file);
            if (mf.f_isfile.ToString() == "1")
            {
                isuploads = false;
            }
            if (mf.f_state.ToString() == "0" && mf.f_sort != 18)
            {
                scontent = "<font color='green'>审核→</font>";
            }
            else
            {
                scontent = "";
            }
            Repeater1.DataSource = bts.GetList("s_lid=" + mf.f_id);
            Repeater1.DataBind();
            Button4.Visible = false;
            Button5.Visible = false;
            string currbid = Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "e_nextbid", "e_gid=" + Request.Params["bid"] + " order by e_id desc");
            if ("".Equals(currbid) || "0".Equals(currbid))
            {
                currbid = Tunnel.Common.GetValue.getDataValue("Tunnel_step", "s_id", "s_lid=" + mtb.b_sort + " and s_num=1");
            }
            mts = bts.GetModel(Convert.ToInt32(currbid));
            if (mts.s_isbak == 1)
            {
                Button5.Visible     = true;
                Button1.Visible     = false;
                Button2.Visible     = false;
                spPassword.Enabled  = false;
                spPassword.TextMode = TextBoxMode.SingleLine;
                spPassword.Text     = "不需填写审批密码";
            }
        }
        catch
        {
            Tunnel.Common.Message.back("不正确的ID"); return;
        }
    }
Exemple #7
0
 void Bind()
 {
     try
     {
         string suser = "";
         mtb         = btb.GetModel(int.Parse(Tunnel.Data.DESEncrypt.Decrypt(Request.Params["lid"])));
         Label1.Text = mtb.b_content;                  //取得替换后的表单数据
         formfile    = getFile(mtb.b_file);            //附件
         formdvice   = getAdvice(mtb.b_id.ToString()); //意见
         Page.Title  = Label2.Text = mtb.b_title;
         DataSet ds = bte.GetList("e_gid=" + mtb.b_id + " and e_user<>0 order by e_id asc");
         if (mtb.b_state == 3)
         {
             nextb = ""; isend = true;
         }
         else
         {
             if (mtb.b_state > 0)
             {
                 string        curruser = Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "e_nextbuser", "e_gid=" + mtb.b_id + " order by e_id desc");
                 string        currtime = Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "e_time", "e_gid=" + mtb.b_id + " order by e_id desc");
                 int           currnum  = Convert.ToInt32(Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "count(*)", "e_user<>0 and e_gid=" + mtb.b_id));
                 StringBuilder text     = new StringBuilder();
                 text.Append("<tr>");
                 text.Append("<td align=\"center\" style=\"height: 30px; width: 10%;\">第<font color=red>" + (currnum + 1) + "</font>步</td>");
                 text.Append("<td align=\"left\" style=\"height: 30px; width: 30%\">&nbsp;&nbsp;审批</td>");
                 text.Append("<td align=\"left\" style=\"height: 50%\">&nbsp;&nbsp;<strong style=\"color:Red\">" + getallUname(curruser) + " 主办</strong> [<font color=blue>办理中</font>]");
                 text.Append("<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;开始于:" + currtime + "</td>");
                 text.Append("</tr> ");
                 nextb = text.ToString();
             }
         }
         Repeater1.DataSource = ds;
         Repeater1.DataBind();
         if (ds.Tables[0].Rows.Count > 0 || nextb != "")
         {
             isliu = true;
         }
     }
     catch
     {
         Tunnel.Common.Message.back("无效参数");
     }
 }
Exemple #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         this.ShowInit("");
         Tunnel.BLL.Tunnel_flow tf = new Tunnel.BLL.Tunnel_flow();
         DataSet  dds  = tf.GetList("f_sort=18");
         ListItem list = new ListItem();
         //list.Text = "所有流程类型";
         //list.Value = "0";
         //DropDownList1.Items.Add(list);
         foreach (DataRow drds in dds.Tables[0].Rows)
         {
             list       = new ListItem();
             list.Text  = drds["f_name"].ToString();
             list.Value = drds["f_id"].ToString();
             DropDownList1.Items.Add(list);
         }
         if (!string.IsNullOrEmpty(Request.Params["delid"]))
         {
             mb = tb.GetModel(Convert.ToInt32(Request.Params["delid"]));
             if ("issure".Equals(Request.Params["mod"]))
             {
                 tmt.Title      = mb.b_title;
                 tmt.TypeId     = 5;
                 tmt.HtmlSource = fc.From_Content(mb.b_formcontent, mb.b_content, true);//取得替换后的表单数据
                 tmt.UserId     = mb.b_user;
                 Tunnel.BLL.Tunnel_information bllf = new Tunnel.BLL.Tunnel_information();
                 int relt = -1;
                 relt = bllf.Add(tmt);
             }
             tb.Delete(mb.b_id);
             Tunnel.Data.DbHelperSQL.ExecuteSql("DELETE FROM TUNNEL_EXAM WHERE E_GID=" + mb.b_id);
             Tunnel.Data.DbHelperSQL.ExecuteSql("DELETE FROM Tunnel_Advice WHERE A_GID=" + mb.b_id);
             Tunnel.Data.DbHelperSQL.ExecuteSql("DELETE FROM Tunnel_Remind WHERE m_type=1 and m_typeid=" + mb.b_id);
             Tunnel.Common.Del_File delfile = new Tunnel.Common.Del_File();
             delfile.FileDelete(mb.b_file);
             Tunnel.Common.Message.Show("操作成功!");
         }
     }
 }
Exemple #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         string suser = "";
         mtb        = btb.GetModel(int.Parse(Request.Params["lid"]));
         Page.Title = mtb.b_title;
         DataSet       ds      = bte.GetList("e_gid=" + mtb.b_id + " and e_user<>0 order by e_id asc");
         StringBuilder texttop = new StringBuilder();
         texttop.Append("<tr>");
         texttop.Append("<td align=\"center\" style=\"height: 30px; width: 10%;\">第<font color=red>1</font>步</td>");
         texttop.Append("<td align=\"left\" style=\"height: 30px; width: 30%\">&nbsp;&nbsp;发起</td>");
         texttop.Append("<td align=\"left\" style=\"height: 50%\">&nbsp;&nbsp;<strong style=\"color:Red\">" + getUname(mtb.b_user.ToString()) + "</strong> [<font color=Green>发起</font>]");
         texttop.Append("<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发起于:" + mtb.b_time.ToString() + "</td>");
         texttop.Append("</tr> ");
         if (mtb.b_state == 3)
         {
             nextb = ""; isend = true;
         }
         else
         {
             if (mtb.b_state > 0)
             {
                 string        curruser = Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "e_nextbuser", "e_gid=" + mtb.b_id + " order by e_id desc");
                 string        currtime = Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "e_time", "e_gid=" + mtb.b_id + " order by e_id desc");
                 int           currnum  = Convert.ToInt32(Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "count(*)", "e_user<>0 and e_gid=" + mtb.b_id));
                 StringBuilder text     = new StringBuilder();
                 text.Append("<tr>");
                 text.Append("<td align=\"center\" style=\"height: 30px; width: 10%;\">第<font color=red>" + (currnum + 2) + "</font>步</td>");
                 text.Append("<td align=\"left\" style=\"height: 30px; width: 30%\">&nbsp;&nbsp;审批</td>");
                 text.Append("<td align=\"left\" style=\"height: 50%\">&nbsp;&nbsp;<strong style=\"color:Red\">" + getallUname(curruser) + " 主办</strong> [<font color=blue>办理中</font>]");
                 text.Append("<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;开始于:" + currtime + "</td>");
                 text.Append("</tr> ");
                 nextb = text.ToString();
             }
         }
         toptb = texttop.ToString();
         Repeater1.DataSource = ds;
         Repeater1.DataBind();
     }
 }
Exemple #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         if (!string.IsNullOrEmpty(Request.Params["bid"]))
         {
             mtb              = btb.GetModel(int.Parse(Request.Params["bid"]));
             TextBox1.Text    = mtb.b_title;
             FCKeditor1.Value = mtb.b_content;
             hfile.Value      = mtb.b_file;
             if (!"".Equals(mtb.b_file))
             {
                 string[] filelist = mtb.b_file.Split(',');
                 foreach (string list in filelist)
                 {
                     string flist = list.Substring(list.LastIndexOf('/') + 1, list.Length - list.LastIndexOf('/') - 1);
                     hfilelist += "<span><img src=\"../../image/attach.png\">" + flist + "<img style='cursor:hand' onclick=\"del(this,'" + list + "')\" alt='删除附件' src=\"../../image/remove.png\">;</span>";
                 }
             }
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         string bWhere = "";
         mtb = btb.GetModel(int.Parse(Request.Params["lid"]));
         mf  = bf.GetModel(mtb.b_sort);
         if (mf.f_sort == 18)
         {
             bWhere = " and e_bid<>0";
         }
         else
         {
             bWhere = "";
         }
         Page.Title = mtb.b_title;
         DataSet       ds      = bte.GetList("e_gid=" + mtb.b_id + bWhere + " order by e_id asc");
         StringBuilder text    = new StringBuilder();
         StringBuilder texttop = new StringBuilder();
         texttop.Append("<tr>");
         texttop.Append("<td align=\"center\" style=\"height: 30px; width: 10%;\">第<font color=red>1</font>步</td>");
         texttop.Append("<td align=\"left\" style=\"height: 30px; width: 30%\">&nbsp;&nbsp;发起</td>");
         texttop.Append("<td align=\"left\" style=\"height: 50%\">&nbsp;&nbsp;<strong style=\"color:Red\">" + getUname(mtb.b_user.ToString()) + "</strong> [<font color=Green>发起</font>]");
         texttop.Append("<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发起于:" + mtb.b_time.ToString() + "</td>");
         texttop.Append("</tr> ");
         if (mtb.b_state == 3)
         {
             nextb = ""; isend = true;
         }
         else if (mtb.b_state == 1)
         {
             string suser = "";
             if (mtb.b_suser == 0)
             {
                 ul.UsbnLogin = bm.GetModel(mtb.b_user);
                 DataSet dss = new DataSet();
                 dss = bm.GetList("m_bum=" + ul.UsbnLogin.m_bum);
                 foreach (DataRow dr in dss.Tables[0].Rows)
                 {
                     if (Tunnel.BLL.Permission.IfHasPrimision(dr["m_id"].ToString(), "流程审核", "我的工作", false))
                     {
                         suser += dr["m_id"].ToString() + ",";
                     }
                 }
                 if (!string.IsNullOrEmpty(suser))
                 {
                     text.Append("<tr>");
                     text.Append("<td align=\"center\" style=\"height: 30px; width: 10%;\">第<font color=red>2</font>步</td>");
                     text.Append("<td align=\"left\" style=\"height: 30px; width: 30%\">&nbsp;&nbsp;审核</td>");
                     text.Append("<td align=\"left\" style=\"height: 50%\">&nbsp;&nbsp;<strong style=\"color:Red\">" + getallUname(suser) + " 主办</strong> [<font color=blue>审核中</font>]");
                     text.Append("<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;开始于:" + mtb.b_time.ToString() + "</td>");
                     text.Append("</tr> ");
                 }
                 else
                 {
                     text.Append("<tr>");
                     text.Append("<td align=\"center\" colspan='3' style=\"height: 30px; width: 10%;color:red\">没有设置审核人,请与管理员联系!</td>");
                     text.Append("</tr> ");
                 }
             }
             else
             {
                 text.Append("<tr>");
                 text.Append("<td align=\"center\" style=\"height: 30px; width: 10%;\">第<font color=red>2</font>步</td>");
                 text.Append("<td align=\"left\" style=\"height: 30px; width: 30%\">&nbsp;&nbsp;审核</td>");
                 text.Append("<td align=\"left\" style=\"height: 50%\">&nbsp;&nbsp;<strong style=\"color:Red\">" + getUname(mtb.b_suser.ToString()) + " 主办</strong> [<font color=blue>审核中</font>]");
                 text.Append("<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;开始于:" + mtb.b_time.ToString() + "</td>");
                 text.Append("</tr> ");
             }
             nextb = text.ToString();
         }
         else
         {
             if (mtb.b_state > 0)
             {
                 string currbid  = Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "e_nextbid", "e_gid=" + mtb.b_id + " order by e_id desc");
                 string currtime = Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "e_time", "e_gid=" + mtb.b_id + " order by e_id desc");
                 int    currnum  = Convert.ToInt32(Tunnel.Common.GetValue.getDataValue("Tunnel_exam", "count(*)", "e_gid=" + mtb.b_id));
                 if ("".Equals(currbid) || "0".Equals(currbid))
                 {
                     currbid = Tunnel.Common.GetValue.getDataValue("Tunnel_step", "s_id", "s_lid=" + mtb.b_sort + " and s_num=1");
                 }
                 mts = ts.GetModel(Convert.ToInt32(currbid));
                 string nextnum  = "";
                 string nextname = "";
                 string nextuser = "";
                 if (mts != null)
                 {
                     nextnum  = Tunnel.Common.GetValue.getDataValue("Tunnel_step", "s_num", "s_id=" + mts.s_id);
                     nextname = getname(mts.s_id.ToString());
                     nextuser = getallUname(mts.s_zid.ToString());
                 }
                 else
                 {
                     nextname = "步骤不存在或已删除";
                     nextuser = nextnum = "无";
                 }
                 text.Append("<tr>");
                 text.Append("<td align=\"center\" style=\"height: 30px; width: 10%;\">第<font color=red>" + (currnum + (bWhere == ""?2:1)) + "</font>步</td>");
                 text.Append("<td align=\"left\" style=\"height: 30px; width: 30%\">&nbsp;&nbsp;" + "序号" + nextnum + ":" + nextname + "</td>");
                 text.Append("<td align=\"left\" style=\"height: 50%\">&nbsp;&nbsp;<strong style=\"color:Red\">" + nextuser + " 主办</strong> [<font color=blue>办理中</font>]");
                 text.Append("<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;开始于:" + currtime + "</td>");
                 text.Append("</tr> ");
                 nextb = text.ToString();
             }
         }
         toptb = texttop.ToString();
         Repeater1.DataSource = ds;
         Repeater1.DataBind();
     }
 }
Exemple #12
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        try
        {
            System.Web.HttpFileCollection uploadFiles = Request.Files;
            System.Web.HttpPostedFile     theFile;
            for (int i = 0; i < uploadFiles.Count; i++)
            {
                theFile = uploadFiles[i];

                if (Convert.ToDouble(theFile.ContentLength) / 1024 / 1024 > 10)
                {
                    Tunnel.Common.Message.back("附件大小不能大于10MB");
                    return;
                }
                else
                {
                    continue;
                }
            }
            int s = this.sava();
            Tunnel.Model.Tunnel_menber tm = ul.GetUserBean(ul.LoginID);
            mtb = btb.GetModel(s);
            //下一步骤ID
            string currbid  = Tunnel.Common.GetValue.getDataValue("Tunnel_step", "s_id", "s_lid=" + mtb.b_sort + " and s_num=1");
            string curruser = Tunnel.Common.GetValue.getDataValue("Tunnel_step", "s_zid", "s_lid=" + mtb.b_sort + " and s_num=1");
            //如果流程没有预设步骤
            if ("".Equals(currbid))
            {
                Tunnel.Common.Message.back("本流程未预设步骤,请与管理员联系!"); return;
            }
            //将当前步骤存入数据库表:Tunnel_exam
            Tunnel.BLL.Tunnel_exam   bte = new Tunnel.BLL.Tunnel_exam();
            Tunnel.Model.Tunnel_exam mte = new Tunnel.Model.Tunnel_exam();
            mte.e_bid     = 0;
            mte.e_endtime = DateTime.Now;
            mte.e_gid     = Convert.ToInt32(mtb.b_id);
            mte.e_user    = ul.LoginID;
            mte.e_time    = DateTime.Now;
            mte.e_nextbid = Convert.ToInt32(currbid);
            bte.Add(mte);
            if (s > 0)
            {
                Tunnel.Model.Tunnel_Remind tr = new Tunnel.Model.Tunnel_Remind();
                Tunnel.BLL.Tunnel_Remind   br = new Tunnel.BLL.Tunnel_Remind();
                string[] users = curruser.Split(',');
                foreach (string user in users)
                {
                    if (!string.IsNullOrEmpty(user))
                    {
                        tr.m_title    = TextBox1.Text.Trim() + "<font color=red>(待审批)</font>";
                        tr.m_url      = "N_WorkFlow/MyApply/Apply_zSp.aspx?bid=" + mte.e_gid;
                        tr.m_touser   = Convert.ToInt32(user);
                        tr.m_time     = DateTime.Now;
                        tr.m_type     = 1;
                        tr.m_typeid   = mte.e_gid;
                        tr.m_bid      = Convert.ToInt32(currbid);
                        tr.m_callTime = Convert.ToDateTime("1800-1-1 00:00:00");
                        tr.m_isread   = 0;
                        long messge = br.Add(tr);
                    }
                }
                Tunnel.Common.Message.Show("操作成功!", "Document_Add.aspx");
            }
        }
        catch
        {
            Tunnel.Common.Message.back("流程错误,请与管理员联系!");
        }
    }