JCK.Web/customer/cus_goods_view.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JCK.Common;
using System.Data;

namespace JCK.Web.customer
{
    public partial class cus_goods_view : Web.UI.ManagePage
    {
        private string action = CEnums.ActionEnum.Add.ToString(); //操作类型
        private int id = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = CRequest.GetQueryString("action");
            if (!string.IsNullOrEmpty(_action) && _action == CEnums.ActionEnum.View.ToString())
            {
                this.action = CEnums.ActionEnum.View.ToString();//查看类型
                if (!int.TryParse(Request.QueryString["id"] as string, out this.id))
                {
                    lbl_Msg.Text = "传输参数不正确!" + DateTime.Now.ToString();
                    //JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new DAL.DAL_Enterprise_Product().Exists(this.id))
                {
                    lbl_Msg.Text = "信息不存在或已被删除!" + DateTime.Now.ToString();
                    //JscriptMsg("信息不存在或已被删除!", "back", "Error");
                    return;
                }
            }

            if (!Page.IsPostBack)
            {

                if (action == CEnums.ActionEnum.View.ToString()) //查看
                {
                    rptBind(this.id);
                    ShowInfo(this.id);
                }
                 
            }
        }

        #region 数据绑定=================================

        private void rptBind(int _id)
        {
           
            string where = "";

            DAL.DAL_Enterprise_Product bll = new DAL.DAL_Enterprise_Product();

          
            string Includ_ID = bll.GetList("Id='" + _id + "'").Tables[0].Rows[0]["Includ_ID"].ToString();
            if (Includ_ID != "" && Includ_ID != null)
后面还有 96 行代码,购买后查看完整代码

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

AI 解读

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

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