Web/Admin/Pictures/AddPrice.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
namespace Web.Admin.Pictures
{
public partial class AddPrice : Web.UI.ManagePage
{
public int Id;
protected void Page_Load(object sender, EventArgs e)
{
if (!int.TryParse(Request.Params["id"] as string, out this.Id))
{
JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要修改的信息不存在或参数不正确。", "back", "Error");
return;
}
if (!Page.IsPostBack)
{
chkLoginLevel("addPictures");
ShowInfo(this.Id);
}
}
//赋值操作
private void ShowInfo(int _id)
{
BLL.Pictures bll = new BLL.Pictures();
Model.Pictures model = bll.GetModel(_id);
txtTitle.Text = model.Title;
}
//保存
protected void btnSave_Click(object sender, EventArgs e)
{
Model.ProductPrice model = new Model.ProductPrice();
BLL.ProductPrice bll = new BLL.ProductPrice();
model.Title = txtColor.Text.Trim();
model.ProId =this.Id;
model.Price = decimal.Parse(txtPrice.Text.Trim());
model.PriceTitle = dPriceTitle.SelectedValue.ToString();
model.OriginalPriceTitle = dOriginalPriceTitle.SelectedValue.ToString();
model.OriginalPrice = txtOriginalPrice.Text.Trim();
long ReId = bll.Add(model);
if (ReId > 0)
{
//保存日志
SaveLogs("[商品模块]添加商品:" + model.Title);
JscriptPrint("商品发布成功啦!", "AddPrice.aspx?Id=" + this.Id, "Success");
}
else
{
JscriptPrint("发布过程中发错误啦!", "", "Error");
}
}
}
后面还有 1 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。