MxWeiXinPF.Web/admin/qiangpiao/advmgr.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
using MxWeiXinPF.BLL;
namespace MxWeiXinPF.Web.admin.qiangpiao
{
public partial class advmgr : Web.UI.ManagePage
{
private string action = MXEnums.ActionEnum.Add.ToString(); //操作类型
wx_qp_img pBll = new wx_qp_img();
protected void Page_Load(object sender, EventArgs e)
{
string _action = MXRequest.GetQueryString("action");
int id = 0;
if (!Page.IsPostBack)
{
id = MyCommFun.RequestInt("id");
ShowInfo(id);
}
}
#region 赋值操作=================================
private void ShowInfo(int id)
{
hidid.Value = id.ToString();
IList<Model.wx_qp_img> plist = pBll.GetModelList(" bId=" + id+" and iType=3 ");
rptAlbumList.DataSource = plist;
rptAlbumList.DataBind();
}
#endregion
//保存
protected void btnSubmit_Click(object sender, EventArgs e)
{
int bid = MyCommFun.Str2Int(hidid.Value);
string[] albumArr = Request.Form.GetValues("hid_photo_name");
string[] remarkArr = Request.Form.GetValues("hid_photo_remark");
bool res=pBll.DeleteByBid(bid,3);
if (albumArr != null && albumArr.Length > 0)
{
if (albumArr.Length > 50)
{
JscriptMsg("不能上传超过50张相片!", "back", "Error");
return;
}
Model.wx_qp_img photo = new Model.wx_qp_img();
后面还有 25 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
