HPManage/WorkManage/Pay/PayList.aspx.cs

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;

public partial class WorkManage_Pay_PayList : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                addnew.Visible = RoleControl("|1260_2|");//增加权限
                btnExcel.Visible = RoleControl("|1260_6|");//导出权限
                BtnSH.Visible = RoleControl("|1260_8|");//审核权限
                BtnQSH.Visible = RoleControl("|1260_9|");//反审核权限
                if (Request.Form["Pay"] != null)//审核、反审核
                {
                    BLL.PayInfor orderChange = new BLL.PayInfor();
                    bool ifOper = false;
                    string ID_list = Request.Form["ID_list"].ToString();//订单ID列表
                    if (ID_list != "")
                    {
                        if (Request.Form["N_BZ"].ToString() == "0" && Request.Form["H_BZ"].ToString() == "1") //审核
                        {
                            ifOper = PaySH(ID_list, 1);
                        }
                        else if (Request.Form["N_BZ"].ToString() == "1" && Request.Form["H_BZ"].ToString() == "0")//反审核
                        {
                            ifOper = PaySH(ID_list, 0);
                        }
                    }
                    if (ifOper == true) Response.Write("suc|v|");
                    else Response.Write("Fail|v|");
                }
                else
                {
                    Common.commad.BindDropDownList1(BillTypeTable("1"), ddlBillType, "ID", "BTName");//单据类型表
                    Common.commad.BindDropDownList1(ReasonTable, ddlReason, "ID", "ReasonName");//资金用途表
                    txtEnd.Attributes.Add("readonly", "true");
                    txtStart.Attributes.Add("readonly", "true");
                    DateTime now = DateTime.Now;
                    DateTime dtFist = new DateTime(now.Year, now.Month, 1);
                    txtStart.Value = dtFist.ToShortDateString();
                    txtEnd.Value = DateTime.Now.ToShortDateString();
                    DataBindData();
                }
            }
            catch (Exception ex)
            {
                Common.WriteLog.CreateLog(ex, "WorkManage_Pay_PayList", "Page_Load", Session["TrueName"].ToString());
            }
        }
    }
    //主表数据
    protected void DataBindData()
后面还有 229 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。