Backup/WebApp/Admin/Product_Editor.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using RM.Common;
namespace RM.WebApp.Admin
{
public partial class Product_Editor : AdminBasic
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.IsAuthority(1);
FileUploadProduct.Attributes.Add("onchange", "Upload_OnChange(this,'txtImageProduct','ProductImageState');");
FileUploadFile.Attributes.Add("onchange", "Upload_OnChange(this,'txtFile','ProductFileState');");
ddlClass.DataSource = new RM.BLL.Cate().GetChild(71);
ddlClass.DataBind();
ddlClass.Items.Insert(0, "==请选择==");
ddlClass.Items[0].Value = "0";
string str = Request.QueryString["ID"];
RM.Entity.Product MyPro;
RM.BLL.Product ProBLL = new RM.BLL.Product();
if (str != null && OperateText.IsNumber(str))
{
MyPro = ProBLL.GetEntity(Convert.ToInt32(str));
lblAction.Text = "修改";
btnCancel.Visible = true;
btnCancel.Attributes.Add("onclick", "history.back();return false;");
}
else
{
MyPro = new RM.Entity.Product();
lblAction.Text = "新增";
btnCancel.Visible = false;
MyPro.IsPub = true;
}
hfProductID.Value = MyPro.ID.ToString();
Method.sltListBox(ref ddlClass, MyPro.pCateID.ToString());
txtName.Text = MyPro.pName;
txtPrice.Text = MyPro.pPrice.ToString();
txtImageProduct.Text = MyPro.pImageUrl;
txtFile.Text = MyPro.pFileUrl;
chkIsPub.Checked = MyPro.IsPub;
chkIsTop.Checked = MyPro.IsTop;
chkIsHome.Checked = MyPro.IsHome;
txtFunction.Value = MyPro.pFunction;
txtSysReq.Value = MyPro.pSysRequest;
txtBuy.Value = MyPro.pBuy;
txtGuide.Value = MyPro.pUseGuide;
后面还有 125 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。