Web/shop/Foodimport.aspx.cs

(开头部分) 7KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using WMPT.SQLServerDAL;
using WMPT.Model;
using System.IO;
using WMPT.Common;
using System.ComponentModel;
using System.Data;

/// <summary>
/// 商品导入
/// </summary>
public partial class TogoHome_Foodimport : System.Web.UI.Page
{
    BackgroundWorker bgw;

    int count = 0;
    string msg = "";
    private int tid
    {
        get
        {
            object o = ViewState["tid"];
            return (o == null) ? 1 : Convert.ToInt32(o);
        }
        set
        {
            ViewState["tid"] = value;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        ValidatorSet validator = new ValidatorSet("Admin");
        validator.SetValidator();
        if (!this.Page.IsPostBack)
        {
            UserHelp.IsLogin_Togo(Request.Url.PathAndQuery);
            tid = UserHelp.GetUser_Togo().Unid;
        }
    }

    Foodinfo dal = new Foodinfo();
    EFoodSort dal_sort = new EFoodSort();

    /// <summary>
    /// 导入
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void in_Click(object sender, EventArgs e)
    {
        bgw = new BackgroundWorker();
        bgw.WorkerSupportsCancellation = true;
        bgw.WorkerReportsProgress = true;
后面还有 186 行代码,购买后查看完整代码

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

AI 解读 AI

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

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