示例#1
0
    void Bind()
    {
        mf  = bf.GetModel(int.Parse(DropDownList1.SelectedValue));
        mtf = tf.GetModel(mf.f_form);
        if (mtf == null)
        {
            Tunnel.Common.Message.back("表单不存在或已删除,请与管理员联系"); return;
        }
        Label1.Text  = fc.From_Content(mtf.f_content, "", false);//取得替换后的表单数据
        ul.UsbnLogin = ul.getUserModel(ul.LoginID);
        string bumname = Tunnel.Common.GetValue.getDataValue("Tunnel_bum", "b_name", "b_id=" + ul.UsbnLogin.m_bum);

        TextBox1.Text = bumname + mf.f_name;
        if (mf.f_isfile.ToString() == "1")
        {
            isuploads = false;
        }
        Repeater1.DataSource = bs.GetList("s_lid=" + mf.f_id);
        Repeater1.DataBind();
        if (Repeater1.Items.Count <= 0)
        {
            Label2.Text = "本公文未设置流程,将不能保存!"; HiddenField2.Value = "0";
        }
        else
        {
            Label2.Text = ""; HiddenField2.Value = "1";
        }
    }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         mf = tf.GetModel(int.Parse(Request.Params["form_id"]));
         FORM_CONTENT.Value = mf.f_content;
     }
 }
示例#3
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";
     }
 }
示例#4
0
 void Bind()
 {
     try
     {
         mf  = bf.GetModel(int.Parse(Request.Params["Flow"]));
         mtf = tf.GetModel(mf.f_form);
         if (mtf == null)
         {
             Tunnel.Common.Message.back("表单不存在或已删除,请与管理员联系"); return; return;
         }
         Label1.Text  = fc.From_Content(mtf.f_content, "", false);//取得替换后的表单数据
         ul.UsbnLogin = ul.getUserModel(ul.LoginID);
         string bumname = Tunnel.Common.GetValue.getDataValue("Tunnel_bum", "b_name", "b_id=" + ul.UsbnLogin.m_bum);
         TextBox1.Text = bumname + mf.f_name;
         if (mf.f_isfile.ToString() == "1")
         {
             isuploads = false;
         }
         if (mf.f_state.ToString() == "0")
         {
             scontent = "审核→"; issheng = true; isshen = true;
         }
         else
         {
             scontent = ""; issheng = false; isshen = false;
         }
         Repeater1.DataSource = bs.GetList("s_lid=" + mf.f_id);
         Repeater1.DataBind();
         if (Repeater1.Items.Count <= 0)
         {
             Label2.Text = "本申请未设置流程,将不能保存!"; HiddenField2.Value = "0";
         }
         else
         {
             Label2.Text = ""; HiddenField2.Value = "1";
         }
     }
     catch {
         Tunnel.Common.Message.back("不正确的ID"); return;
     }
 }
示例#5
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;
        }
    }
示例#6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         mf = tf.GetModel(int.Parse(Request.Params["form_id"]));
         if (null != mf)
         {
             Tunnel.Common.Form_Class fc = new Tunnel.Common.Form_Class();
             Label1.Text = fc.From_Content(mf.f_content, "", false);
             Page.Title = mf.f_name;
         }
     }
 }
示例#7
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;
     }
 }
示例#8
0
 protected void ShowEdit()
 {
     mf            = bf.GetModel(int.Parse(Request.Params["id"]));
     TextBox1.Text = mf.f_name;
     //DropDownList2.SelectedValue = mf.f_lcid.ToString();
 }