47 lines
1.7 KiB
C#
47 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace FineUIPro.Web.Common.FileManage
|
|
{
|
|
public partial class EditOffice : System.Web.UI.Page
|
|
{
|
|
public string url, newofficetype, readURL, strOper;
|
|
public string txtFileId, txtFileCode, txtFileName, drpBigType, drpSmallType;//定义表单数据
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
url = Request.QueryString["url"];
|
|
newofficetype = Request.QueryString["newofficetype"];
|
|
drpBigType = Request.QueryString["drpBigType"];
|
|
drpSmallType = Request.QueryString["drpSmallType"];
|
|
strOper = Request.QueryString["oper"];
|
|
|
|
if (url != null && url != "")
|
|
{
|
|
readURL = "Read.aspx?docid=" + url;
|
|
//SqlDataReader dr = BLL.SQLHelper.RunSql("select * from Common_FileManage where FileId=" + url);
|
|
try
|
|
{
|
|
var q = from x in BLL.Funs.DB.Common_FileManage where x.FileId.ToString() == url select x;
|
|
|
|
if (q.Count() > 0)
|
|
{
|
|
txtFileId = q.First().FileId.ToString();
|
|
txtFileCode = q.First().FileCode;
|
|
txtFileName = q.First().FileName.ToString();
|
|
drpBigType = q.First().BigType.ToString();
|
|
drpSmallType = q.First().SmallType.ToString();
|
|
}
|
|
}
|
|
catch { }
|
|
}
|
|
|
|
}
|
|
}
|
|
} |