DocTemplate/DocumentList.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace OI.DocTemplate
{
/// <summary>
/// DocumentList 的摘要说明。
/// </summary>
public partial class DocumentList :OI.PageBase
{
public string userName;
private OI.DatabaseOper.DatabaseConnect oConn = new OI.DatabaseOper.DatabaseConnect();
protected void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if (Session["userid"]==null)
{
Response.Write ("<script>alert('超时,请重新登录');top.location.href='../userpass.aspx';</script>");
return ;
}
userName=Session["UserName"].ToString();
}
//列出所有模版
public string GetTemplateList(string ObjType,string FileType)
{
string mTemplateList;
mTemplateList="<select name=" + ObjType + ">" ;
mTemplateList+="<option value=''>------不用模版------</option>";
string strSelectCmd="select RecordID,substring(filename,0,len(filename)-3) filename from Template where FileType='" + FileType + "'";
SqlCommand mCommand = new SqlCommand(strSelectCmd,oConn.GetConn());//更改
SqlDataReader mReader =null;
mReader=mCommand.ExecuteReader();
while (mReader.Read())
{
mTemplateList+="<option value='" + mReader["RecordID"].ToString() + "'>" + mReader["filename"].ToString() + "</option>";
}
mReader.Close();
oConn.DataBaseClose();
mTemplateList+="</select>";
return (mTemplateList);
}
public string GetTableContent()
后面还有 68 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。