PL.PROJECT/System/Business/BusinessList.aspx.cs

(开头部分) 14KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using PL.COMMON;
using PL.BLL;
using PL.Model;
using System.Collections.Generic;

public partial class System_Business_BusinessList : System.Web.UI.Page, IPostBackEventHandler
{
    public string WhereStr = "", Class = "";
    public int pageCount = 0;
    public int Counts = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Page.ClientScript.GetPostBackEventReference(this, "");
        Class = Function.GetString("Class");
        if (!PL.BLL.Public.GetUserRole("业务列表"))
        {
            Function.ClientScript("alert('您无权操作!');window.location.replace('../Customer/CustomerList.aspx');");
        }
        
        if (!Page.IsPostBack)
        {
            this.AspNetPager.PageIndex = 1;
            this.ShowSend();
        }
       
        this.BindBusiness();
    }
    public string TrimLR(string str)
    {
        str = System.Text.RegularExpressions.Regex.Replace(str, @"(^\s*)|(\s*$)|(^\t*)|(\t*$)|(^\n*$)", "", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
        return str;
    }
    protected void ShowSend()
    {
        WhereStr = " b.状态 = 0 and a.业务状态=0";
        if (Function.StrToInt(Class, 0) != 0)
        {
            WhereStr += " and a.业务分类 = " + Function.StrToInt(Class, 0);
        }
        if (this.txt_Year.SelectedValue != "0")
        {
            string DateStr = string.Empty;
            DateStr = this.txt_Year.SelectedValue;
            //WhereStr += " and datediff(Month,a.到期日期,getDate())>=" + DateStr + " and a.是否续费=1";
            WhereStr += " and  datediff(month,getdate(),a.到期日期) <=" + DateStr + " and a.是否续费=1";

        }
        if (this.txt_Type.SelectedValue != "")
        {

后面还有 286 行代码,购买后查看完整代码

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

AI 解读

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

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