Backup/WebApp/Admin/Adm_Info.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 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 Adm_Info : AdminBasic
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["CID"] != "")
{
hfCID.Value = Request["CID"];
this.IsAuthority(0);
ShowEditor();
}
}
}
private void ShowEditor()
{
RM.BLL.Info mybll = new RM.BLL.Info();
RM.Entity.Info myInfo = mybll.GetEntityByCID(Convert.ToInt32(hfCID.Value));
if ( myInfo != null)
{
txtContent.Value = myInfo.Content;
txtCreateDate.Text = myInfo.CreateTime.ToShortDateString();
txtModifyDate.Text = myInfo.ModifyTime.ToShortDateString();
hfInfoID.Value = myInfo.ID.ToString();
}
lblAction.Text = new RM.BLL.Cate().GetEntity(Convert.ToInt32(hfCID.Value)).Name;
}
protected void btn_Save_Click(object sender, EventArgs e)
{
RM.BLL.Info InfoBLL = new RM.BLL.Info();
RM.Entity.Info MyInfo;
if (Convert.ToInt32(hfInfoID.Value) > 0)
{
MyInfo = InfoBLL.GetEntity(Convert.ToInt32(hfInfoID.Value));
MyInfo.ClassID = Convert.ToInt32(hfCID.Value);
MyInfo.Content = txtContent.Value;
MyInfo.ModifyTime = DateTime.Now;
MyInfo.Title = lblAction.Text;
if (InfoBLL.Update(MyInfo))
{
//写入系统日志.
RM.BLL.WebLog.WriteMasterOperate("修改", "修改[" + MyInfo.ID.ToString() + ":" + MyInfo.Title + "].");
后面还有 28 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。