Hidistro.UI.Web/Admin/Goods/ImportFromTB.cs

(开头部分) 7KB

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

using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Web.UI.WebControls;
using Hidistro.ControlPanel.Commodities;
using Hidistro.ControlPanel.Store;
using Hidistro.Entities.Commodities;
using Hidistro.Entities.Store;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.ControlPanel.Utility;
using Hishop.TransferManager;

namespace Hidistro.UI.Web.Admin.Goods
{

    /// <summary>
    /// 批量导入淘宝数据包
    /// </summary>
    [PrivilegeCheck(Privilege.ProductBatchUpload)]
    public class ImportFromTB : AdminPage
    {

        #region 字段
        private string _dataPath;
        protected Button btnImport;
        protected Button btnUpload;
        protected BrandCategoriesDropDownList dropBrandList;
        protected ProductCategoriesDropDownList dropCategories;
        protected DropDownList dropFiles;
        protected DropDownList dropImportVersions;
        protected FileUpload fileUploader;
        protected RadioButton radInStock;
        protected RadioButton radOnSales;
        protected RadioButton radUnSales;
        #endregion

        #region 构造函数
        protected ImportFromTB()
            : base("m02", "spp04")
        {
        }
        #endregion

        #region 加载事件
        protected override void OnInitComplete(EventArgs e)
        {
            base.OnInitComplete(e);
            this._dataPath = this.Page.Request.MapPath("~/storage/data/taobao");
            if (!Directory.Exists(_dataPath))
            {
                Directory.CreateDirectory(_dataPath);
            }
            this.btnImport.Click += new EventHandler(this.btnImport_Click);
            this.btnUpload.Click += new EventHandler(this.btnUpload_Click);
            if (!this.Page.IsPostBack)
            {
                this.dropCategories.DataBind();
                this.dropBrandList.DataBind();
                this.BindImporters();
后面还有 144 行代码,购买后查看完整代码

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

AI 解读 AI

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

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