ShopAdmin/ProductInfo/AddProductClass.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using Model;
using BLL;
namespace ShopAdmin.ProductInfo
{
public partial class AddProductClass : System.Web.UI.Page
{
private Int32 adminId;
protected void Page_Load(object sender, EventArgs e)
{
//if (SubTool.CheckAdminLogin("0"))
//{
if (CheckAdminLogin(MyCookie.getCookiesValue("shop8517Admin", "AdminType")))
{
adminId = WebUtility.CheckInt(MyCookie.getCookiesValue("shop8517Admin", "AdminId"));
if (!Page.IsPostBack)
{
string sAction = WebUtility.CheckStr(Request["action"]);
CoreClassInfo ccInfo = new CoreClassInfo();
ccInfo.TableName = "ProductClass";
ccInfo.Id = WebUtility.CheckInt(Request["id"]);
NameValueCollection nvc = new NameValueCollection();
nvc.Add("CreateTime", "CreateTime");
ccInfo.ExtendField = nvc;
switch (sAction)
{
case "add":
ltrDefaultParentId.Text = WebUtility.CheckInt(Request["ParentId"]).ToString();
PanelAdd.Visible = true;
break;
case "modify":
ltrDefaultParentId.Text = WebUtility.CheckInt(Request["ParentId"]).ToString();
PanelAdd.Visible = true;
btnAdd.Text = "修改";
CoreClassInfo c = new D_CoreClass().GetCoreClassInfo(ccInfo);
txtClassName.Text = c.ClassName;
ltrDefaultParentId.Text = c.ParentId.ToString();
txtCreateTime.Value = "2008-4-1";
break;
case "del":
int a = new D_CoreClass().Del(ccInfo);
CreateXML();
PanelIndex.Visible = true;
break;
case "orders":
PanelOrders.Visible = true;
break;
case "orderssave":
OrdersSave();
PanelOrders.Visible = true;
break;
case "xml":
后面还有 157 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
