Note/Edit.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class Note_Edit : MojoCube.Api.UI.MyPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindClass();
hlShare.NavigateUrl = "Receiver.aspx";
MojoCube.Office.Sql.DropDownListBind(ddlType, "Sys_TypeID", "TypeName_CHS", "ID", "TableName='Note_List'", "ID", "asc");
MojoCube.Office.Sql.DropDownListBind(ddlStatus, "Sys_StatusID", "StatusName_CHS", "ID", "TableName='Note_List'", "ID", "asc");
if (Request.QueryString["id"] != null)
{
ViewState["pk_Note"] = MojoCube.Api.Text.Security.DecryptString(Request.QueryString["id"]);
MojoCube.Office.Note.List list = new MojoCube.Office.Note.List();
list.GetData(int.Parse(ViewState["pk_Note"].ToString()));
if (Session["UserID"].ToString() != list.CreateUser.ToString())
{
Response.Redirect("~/Commons/Info.aspx?type=1");
}
MojoCube.Office.Sql.ddlFindByValue(ddlFolder, list.ParentID.ToString());
MojoCube.Office.Sql.ddlFindByValue(ddlType, list.TypeID.ToString());
MojoCube.Office.Sql.ddlFindByValue(ddlStatus, list.StatusID.ToString());
txtTitle.Text = list.Title;
txtReceiverID.Text = list.UserList;
txtContent.Text = list.Description;
txtFilePath.Text = list.FilePath;
if (list.TypeID == 2)
{
txtReceiver.Text = GetReceiver();
ShareDiv.Attributes.Add("style", "position:relative");
}
this.Title = "笔记编辑:" + txtTitle.Text.Trim();
}
else
{
string parentId = "0";
if (Request.QueryString["parentId"] != null)
{
parentId = MojoCube.Api.Text.Security.DecryptString(Request.QueryString["parentId"]);
}
MojoCube.Office.Sql.ddlFindByValue(ddlFolder, parentId);
后面还有 160 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
