protected void btnAlter_Click(object sender, EventArgs e)
    {
        BG_ReimAppendix ra = BGReimAppendixManager.GetAcc(arid);

        string[] str = ra.ARContent.Split('☆');
        ra.ARContent = getCbCatalog();
        ra.ARTime    = Convert.ToDateTime(Session["time"]);
        if (BGReimAppendixManager.UpdAccessories(ra))
        {
            lblMResult.Text = "* 修改成功";
            Response.Redirect("ApplyAlter.aspx?arid=" + arid, true);
        }
        else
        {
            lblMResult.Text = "* 操作失败、请检查数据后重试";
        }
        //if (total > Convert.ToDecimal(str[8]))
        //{
        //    lblMResult.Text = "* 所填金额不能大于分配金额";
        //    return;
        //}
        //else
        //{
        //    ra.ARContent = getCbCatalog();
        //    if (BGReimAppendixManager.UpdAccessories(ra))
        //    {
        //        lblMResult.Text = "* 修改成功";
        //        Response.Redirect("ApplyAlter.aspx?arid=" + arid, true);
        //    }
        //    else
        //    {
        //        lblMResult.Text = "* 操作失败、请检查数据后重试";
        //    }
        //}
    }
    //protected void btnAlter_Click(object sender, EventArgs e)
    //{
    //    BG_ApplyReimbur bt = new BG_ApplyReimbur();
    //    bt.ARID = Utils.IntSafeConvert(arid);
    //    bt.ARAgent = txtARAgent.Text.Trim();                            //经办人
    //    bt.ARExcu = txtARExcu.Text.Trim();                              //事由
    //    //bt.PPID = Utils.IntSafeConvert(ddlARExpPro.SelectedItem.Value); //支出项目ID
    //    //bt.ARExpType = ddlARExpType.SelectedValue;                      //支出类型
    //    bt.ARListSta = "未提交";                                         //申请表状态
    //    bt.ARMon = decimal.Parse(txtARMon.Text.Trim());                  //金额
    //    bt.ARReiSinNum = txtARReiSinNum.Text.Trim();          //报销单号
    //    bt.ARRepDep = txtARRepDep.Text.Trim();                           //上报部门
    //    bt.ARTime = DateTime.Parse(txtBITime.Text.Trim());                                        //申请时间
    //    bt.DepID =DepID;        //部门

    //    BGApplyReimburManager.UpdApplyReimbur(bt);
    //    Response.Redirect("ApplyList.aspx", true);

    //}
    protected void btnQue_Click(object sender, EventArgs e)
    {
        int       Arid   = Convert.ToInt32(arid);
        DataTable dt1    = BGReimAppendixManager.GetAccessories(arid);
        string    ARType = string.Empty;

        if (dt1.Rows.Count <= 0)
        {
            Label1.Text = "该申请单没有添加附件,无法执行操作";
        }
        else
        {
            ARType        = dt1.Rows[0]["ARType"].ToString();
            lbRDType.Text = ARType.ToString();

            if (lbRDType.Text == "公差旅")
            {
                Response.Redirect("BusinessTrip.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "医疗")
            {
                Response.Redirect("ApplyMediCost.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "办公室用品")
            {
                Response.Redirect("OfficeSupplies.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "培训")
            {
                Response.Redirect("Train.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "工作会议")
            {
                Response.Redirect("ConferenceFees.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "资料印制")
            {
                Response.Redirect("GuildActivity.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "公会活动")
            {
                Response.Redirect("InformationPrinted.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "长途出车记录")
            {
                Response.Redirect("CarRecordSheet.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "维修")
            {
                Response.Redirect("Maintenance.aspx?arid=" + arid + "&oper=3", true);
            }
            else if (lbRDType.Text == "其它费用")
            {
                Response.Redirect("Expense.aspx?arid=" + arid + "&oper=3", true);
            }
        }
    }
Exemplo n.º 3
0
    private void informbind(string arid)
    {
        DataTable dt = BGReimAppendixManager.GetAccessories(arid);

        if (dt.Rows.Count > 0)
        {
            string content = dt.Rows[0]["ARContent"].ToString();
            setTextBox(content, '☆');
        }
    }
Exemplo n.º 4
0
    protected void btnAlter_Click(object sender, EventArgs e)
    {
        BG_ReimAppendix ra = BGReimAppendixManager.GetAcc(arid);

        ra.ARContent = getCbCatalog();
        ra.ARTime    = Convert.ToDateTime(Session["time"]);
        if (BGReimAppendixManager.UpdAccessories(ra))
        {
            lblMResult.Text = "* 修改成功";
            Response.Redirect("ApplyAlter.aspx?arid=" + arid, true);
        }
        else
        {
            lblMResult.Text = "* 操作失败、请检查数据后重试";
        }
    }
Exemplo n.º 5
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        BG_ReimAppendix ra = new BG_ReimAppendix();

        ra.ARID      = common.IntSafeConvert(arid);
        ra.ARContent = getCbCatalog();
        ra.ARType    = "培训";
        ra.ARTime    = Convert.ToDateTime(Session["time"]);
        if (BGReimAppendixManager.AddAccessories(ra))
        {
            lblMResult.Text = "* 其它费用";
        }
        else
        {
            lblMResult.Text = "* 操作失败、请检查数据后重试";
        }
    }
    protected void btnAlt_Click(object sender, EventArgs e)
    {
        int       Arid   = Convert.ToInt32(arid);
        DataTable dt1    = BGReimAppendixManager.GetAccessories(arid);
        string    ARType = string.Empty;

        if (dt1.Rows.Count > 0)
        {
            ARType        = dt1.Rows[0]["ARType"].ToString();
            lbRDType.Text = ARType.ToString();
        }
        if (lbRDType.Text == "差旅")
        {
            Response.Redirect("ApplyTravelCost.aspx?arid=" + arid + "&oper=4", true);
        }
        else if (lbRDType.Text == "医疗")
        {
            Response.Redirect("ApplyMediCost.aspx?arid=" + arid + "&oper=4", true);
        }
        else if (lbRDType.Text == "办公室用品")
        {
            Response.Redirect("OfficeSupplies.aspx?arid=" + arid + "&oper=4", true);
        }
        else if (lbRDType.Text == "培训")
        {
            Response.Redirect("Train.aspx?arid=" + arid + "&oper=4", true);
        }
        else if (lbRDType.Text == "工作会议")
        {
            Response.Redirect("ConferenceFees.aspx?arid=" + arid + "&oper=4", true);
        }
        else if (lbRDType.Text == "资料印制")
        {
            Response.Redirect("InformationPrinted.aspx?arid=" + arid + "&oper=4", true);
        }
        else if (lbRDType.Text == "其它费用")
        {
            Response.Redirect("Expense.aspx?arid=" + arid + "&oper=4", true);
        }
    }
Exemplo n.º 7
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        BG_ReimAppendix ra = new BG_ReimAppendix();

        ra.ARID      = common.IntSafeConvert(arid);
        ra.ARContent = getCbCatalog();
        ra.ARType    = "资料印制";
        ra.ARTime    = Convert.ToDateTime(Session["time"]);
        string[] str   = ra.ARContent.Split('☆');
        decimal  total = ParToDecimal.ParToDel(Session["money"].ToString());

        if (BGReimAppendixManager.AddAccessories(ra))
        {
            lblMResult.Text = "* 添加成功";
        }
        else
        {
            lblMResult.Text = "* 操作失败、请检查数据后重试";
        }

        //if (total > Convert.ToDecimal(str[32]))
        //{
        //    lblMResult.Text = "* 所填金额不能大于分配金额";
        //    return;
        //}
        //else
        //{
        //    if (BGReimAppendixManager.AddAccessories(ra))
        //    {
        //        lblMResult.Text = "* 添加成功";

        //    }
        //    else
        //    {
        //        lblMResult.Text = "* 操作失败、请检查数据后重试";
        //    }
        //}
    }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        BG_ReimAppendix ra = new BG_ReimAppendix();

        ra.ARID      = common.IntSafeConvert(arid);
        ra.ARContent = getCbCatalog();
        ra.ARType    = "工作会议";
        string[] str = ra.ARContent.Split('☆');
        ra.ARTime = Convert.ToDateTime(Session["time"]);
        //decimal total = Convert.ToDecimal(ChineseToNumber.WordToNumber(TextBox9.Text.Trim()));
        if (BGReimAppendixManager.AddAccessories(ra))
        {
            lblMResult.Text = "* 添加成功";
        }
        else
        {
            lblMResult.Text = "* 操作失败、请检查数据后重试";
        }
        //if (total > Convert.ToDecimal(str[8]))
        //{
        //    lblMResult.Text = "* 所填金额不能大于分配金额";
        //    return;
        //}
        //else
        //{
        //    if (BGReimAppendixManager.AddAccessories(ra))
        //    {
        //        lblMResult.Text = "* 添加成功";

        //    }
        //    else
        //    {
        //        lblMResult.Text = "* 操作失败、请检查数据后重试";
        //    }
        //}
    }