Document/Edit.aspx.cs

(开头部分) 9KB

这里只显示每个文件的开头 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 Document_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='Document_List'", "ID", "asc");

            MojoCube.Office.Sql.DropDownListBind(ddlStatus, "Sys_StatusID", "StatusName_CHS", "ID", "TableName='Document_List'", "ID", "asc");

            if (Request.QueryString["id"] != null)
            {
                ViewState["pk_Document"] = MojoCube.Api.Text.Security.DecryptString(Request.QueryString["id"]);

                MojoCube.Office.Document.List list = new MojoCube.Office.Document.List();
                list.GetData(int.Parse(ViewState["pk_Document"].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;
                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);

                this.Title = "文件编辑";
            }
后面还有 205 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。