//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.º 2
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, '☆');
        }
    }
    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);
        }
    }