51 lines
1.7 KiB
C#
51 lines
1.7 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Collections;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
|
|
public partial class WorkPlan_WorkPlanView : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|
//绑定页面数据
|
|
ZWL.BLL.ERPWorkPlan MyModel = new ZWL.BLL.ERPWorkPlan();
|
|
MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|
this.Label1.Text = MyModel.TitleStr;
|
|
this.Label2.Text = MyModel.CanLookUser;
|
|
this.Label6.Text = MyModel.ContentStr;
|
|
this.Label4.Text = MyModel.UserName;
|
|
this.Label5.Text = MyModel.TimeStr.ToString();
|
|
|
|
this.HyperLink1.NavigateUrl = "../LanEmail/LanEmailAdd.aspx?UserName=" + MyModel.UserName;
|
|
|
|
this.Label3.Text = ZWL.Common.PublicMethod.GetWenJian(MyModel.FuJianStr, "../UploadFile/");
|
|
|
|
//写系统日志
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|
MyRiZhi.DoSomething = "查看工作计划信息(" + this.Label1.Text + ")";
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|
MyRiZhi.Add();
|
|
}
|
|
}
|
|
public void btnDownloadFile_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
ZWL.Common.PublicMethod.DownloadFile(Server.MapPath("~"), this.hdnFileURL.Value.Trim());
|
|
}
|
|
catch
|
|
{
|
|
}
|
|
}
|
|
}
|