Snailsoft.CRM.Web/Archive/Input/DeletedCustomer/showCustomerInfo.aspx.cs

(开头部分) 6KB

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

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Snailsoft.Utils;
using Snailsoft.CRM.DB.Data;
using Snailsoft.CRM.Business;

namespace Snailsoft.CRM.Web.Archive.Input.DeletedCustomer
{
	/// <summary>
	/// showCustomerInfo 的摘要说明。
	/// </summary>
	public class showCustomerInfo : BasePage
	{
        protected System.Web.UI.WebControls.Table CusTable;

        //客户ID
        private int cusID = 0;

		private void Page_Load(object sender, System.EventArgs e)
		{
            if (!IsPostBack) {
                //默认的客户积分是0
                this.CusTable.Rows[11].Cells[1].Text = "0";

                if (Request.QueryString.Count > 0) {
                    this.cusID = Convert.ToInt32(Request.QueryString["cusID"]);
                }

                //显示固定字段的取值
                showAllSolidColValue();

                //显示自定义表格的取值
                showAllDefine();
            }
            this.CusTable.Attributes.Add("align","center");
		}

        //显示固定字段的取值
        private void showAllSolidColValue() {
            CustomerBN bn = new CustomerBN(Page);
            try {
                bn.QueryCusID(cusID);
                DataTable dt = bn.GetList();

                if (dt.Rows.Count < 1) {
                    CommonDialog.Show("该记录已经被删除!");
                }
                else {
                    this.CusTable.Rows[1].Cells[1].Text = dt.Rows[0]["cusName"].ToString();
                    this.CusTable.Rows[1].Cells[3].Text = dt.Rows[0]["cusCode"].ToString();
                    this.CusTable.Rows[2].Cells[1].Text = dt.Rows[0]["cusAdr"].ToString();
                    this.CusTable.Rows[2].Cells[3].Text = dt.Rows[0]["cusPage"].ToString();
后面还有 98 行代码,购买后查看完整代码

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

AI 解读

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

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