Hidistro.UI.Web/Admin/zbGoods/ImportFromPP.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Web.UI.WebControls;
using Hidistro.ControlPanel.zbCommodities;
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.zbGoods
{
/// <summary>
/// 批量导入拍拍数据包
/// </summary>
[PrivilegeCheck(Privilege.ProductBatchUpload)]
public class ImportFromPP : 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 override void OnInitComplete(EventArgs e)
{
base.OnInitComplete(e);
this._dataPath = this.Page.Request.MapPath("~/storage/data/paipai");
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();
this.BindFiles();
}
}
protected void Page_Load(object sender, EventArgs e)
{
后面还有 132 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
