You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
3.0 KiB
Plaintext

11 months ago
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using BP.Sys;
using BP.En;
using BP.Web;
using BP.DA;
using BP;
namespace CCFlow.Web.Comm
{
/// <summary>
/// Do <20><>ժҪ˵<D2AA><CBB5><EFBFBD><EFBFBD>
/// </summary>
public partial class Do : System.Web.UI.Page
{
#region <20><><EFBFBD><EFBFBD>.
public string GetVal(string key)
{
string val = this.Request.QueryString[key];
return BP.Tools.DealString.DealStr(val);
}
/// <summary>
/// <20>رմ<D8B1><D5B4><EFBFBD>
/// </summary>
protected void WinClose()
{
this.Response.Write("<script language='JavaScript'> window.close();</script>");
}
public string DoType
{
get
{
return this.GetVal("DoType");
}
}
public string DoWhat
{
get
{
return this.GetVal("DoWhat");
}
}
public string MyPK
{
get
{
return this.GetVal("MyPK");
}
}
public string EnName
{
get
{
return this.GetVal("EnName");
}
}
public string EnsName
{
get
{
return this.GetVal("EnsName");
}
}
#endregion <20><><EFBFBD><EFBFBD>.
protected void Page_Load(object sender, System.EventArgs e)
{
switch (this.DoType)
{
case "SearchExp":
// this.SearchExp();
break;
case "DownFile":
Entity enF = BP.En.ClassFactory.GetEn(this.EnName);
enF.PKVal = this.GetVal("PK");
enF.Retrieve();
string pPath = enF.GetValStringByKey("MyFilePath") + "\\" + enF.PKVal + "." + enF.GetValStringByKey("MyFileExt");
//<2F>ж<EFBFBD><D0B6>ļ<EFBFBD><C4BC>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
if (System.IO.File.Exists(pPath)==false)
{
pPath = enF.EnMap.FJSavePath + "\\" + enF.PKVal + "." + enF.GetValStringByKey("MyFileExt");
if (System.IO.File.Exists(pPath) == false)
{
Response.Write("<script>alert('<27>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>');</script>");
this.WinClose();
return;
}
}
BP.WF.HttpHandler.HttpHandlerGlo.DownloadFile(pPath,
enF.GetValStringByKey("MyFileName"));
this.WinClose();
return;
default:
break;
}
this.WinClose();
}
#region Web <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵĴ<C9B5><C4B4><EFBFBD>
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> ASP.NET Web <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ġ<EFBFBD>
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD> - <20><>Ҫʹ<D2AA>ô<EFBFBD><C3B4><EFBFBD><EFBFBD><EFBFBD><E0BCAD><EFBFBD>޸<EFBFBD>
/// <20>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>
/// </summary>
private void InitializeComponent()
{
}
#endregion
}
}