HPManage/WorkManage/Roll/RollList.aspx.cs

(开头部分) 10KB

这里只显示每个文件的开头 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_Roll_RollList : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                addnew.Visible = RoleControl("|1240_2|");//增加权限
                btnExcel.Visible = RoleControl("|1240_6|");//导出权限
                BtnSH.Visible = RoleControl("|1240_8|");//审核权限
                BtnQSH.Visible = RoleControl("|1240_9|");//反审核权限
                if (Request.Form["Roll"] != null)//审核、反审核
                {
                    BLL.RollInfor orderChange = new BLL.RollInfor();
                    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 = RollSH(ID_list, 1);
                        }
                        else if (Request.Form["N_BZ"].ToString() == "1" && Request.Form["H_BZ"].ToString() == "0")//反审核
                        {
                            ifOper = RollSH(ID_list, 0);
                        }
                    }
                    if (ifOper == true) Response.Write("suc|v|");
                    else Response.Write("Fail|v|");
                }
                else
                {
                    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_Roll_RollList", "Page_Load", Session["TrueName"].ToString());
            }
        }
    }
    //主表数据
    protected void DataBindData()
    {
        try
后面还有 170 行代码,购买后查看完整代码

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

AI 解读

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

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