k3CRM/Customer/CustomsQuery.aspx.cs

(开头部分) 11KB

这里只显示每个文件的开头 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 Model;
using Common;
using System.IO;
using Ajax;

namespace k3CRM.Customer
{
    public partial class CustomsQuery : BasePage
    {
        //表示客户类型 1代表线索,2代表商机
        public static string strType = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            Ajax.Utility.RegisterTypeForAjax(typeof(CustomsQuery));
            if (!Page.IsPostBack)
            {
                strType = RequestData.GetString("type");
                if (strType == "2")
                {
                    ValidatePermissionPage(10);
                    this.btnChange.Visible = false;
                }
                else
                {
                    ValidatePermissionPage(7);
                    this.btnChange.Visible = true;
                    this.btnChangeFile.Visible = false;
                }
            }
        }
        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            this.BindData(this.getstrfilter());
        }
        /// <summary>
        /// 分页绑定
        /// </summary>
        private void BindData(string strfilter)
        {
            DAL.dalOrganization dal = new DAL.dalOrganization();
            DataTable mydt = dal.getOrganizationBillList(strfilter);
            AspNetPager1.RecordCount = mydt.Rows.Count;
            PagedDataSource pd = new PagedDataSource();
            pd.AllowPaging = true;
            pd.PageSize = AspNetPager1.PageSize;
            pd.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
            pd.DataSource = mydt.DefaultView;
            rptUserInfo.DataSource = pd;
            rptUserInfo.DataBind();
        }
后面还有 241 行代码,解锁后查看完整代码

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

AI 解读

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

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