EasyShop/siteAdmin/Goods/ProductJiFen.aspx.cs

(开头部分) 10KB

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

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OpSql;
using Ftion;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using conn;
using System.Linq;
using System.Text;
using MyModels;
namespace EasyShop.siteAdmin.Goods
{
    public partial class ProductJiFen : System.Web.UI.Page
    {
        DbConn conn = new DbConn();
        public string jsString = "";
        public string sltID = "";
        public string NowDate = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            //Ftion.Function.CheckState();
            NowDate = DateTime.Now.ToString("yyyy-MM-dd");
            if (!IsPostBack)
            {
                LoadData();
            }
        }
        private void LoadData()
        {
            //StringBuilder strSql = new StringBuilder();
            //strSql.Append("SELECT  a.ID, ProductName,ClassName, Price, Case when State=1 then '<font style=\"color:green\">已审核</font>' else '<font style=\"color:#ff0000\">未审核</font>' end as State, Brand, Img_Big, [Content], AddDate,UserName, ProStockNumber FROM TB_MC_Product a left join TB_MC_Class b on a.ClassId=b.ID where 1=1");
            //strSql.Append(" and ISNULL(IsXuNi,'0')<>1");
            string ssinfo = txt_SearchInfo.Text.ToString();
            BindData("", ssinfo);

        }
        public string getBrandInfo()
        {

            string dem = "";
            StringBuilder strSql = new StringBuilder();
            strSql.Append("SELECT Id, Name FROM TB_MC_Brand");
            conn.open();
            DataSet ds = conn.dataset(strSql.ToString());
            int num = ds.Tables[0].Rows.Count;
            for (int i = 0; i < num; i++)
            {
                string ID = ds.Tables[0].Rows[i][0].ToString();
                string ClassName = ds.Tables[0].Rows[i][1].ToString();
                //if (ID == sltID)
                //{
                //    dem += "<option value=" + ID + " selected=selected>" + ClassName + "</option>";
                //}
                //else
                //{
                dem += "<option value=" + ID + ">" + ClassName + "</option>";
后面还有 219 行代码,购买后查看完整代码

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

AI 解读 AI

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

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