84 lines
3.2 KiB
C#
84 lines
3.2 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 NWorkFlow_NWorkToDoView : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
public string PiLiangSet = "";//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶεĿ<CEB5>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
ZWL.BLL.ERPNWorkToDo Model = new ZWL.BLL.ERPNWorkToDo();
|
|||
|
|
Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|||
|
|
this.lblWorkName.Text=Model.WorkName.ToString();
|
|||
|
|
//this.lblFormID.Text=Model.FormID.ToString();
|
|||
|
|
//this.lblWorkFlowID.Text=Model.WorkFlowID.ToString();
|
|||
|
|
this.lblUserName.Text=Model.UserName.ToString();
|
|||
|
|
this.lblTimeStr.Text=Model.TimeStr.ToString();
|
|||
|
|
this.lblFormContent.Text=Model.FormContent.ToString();
|
|||
|
|
this.lblFuJianList.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianList.ToString(),"../UpLoadFile/");
|
|||
|
|
this.lblShenPiYiJian.Text=Model.ShenPiYiJian.ToString();
|
|||
|
|
//this.lblJieDianID.Text=Model.JieDianID.ToString();
|
|||
|
|
this.lblJieDianName.Text = "<a href=\"NWorkFlowReView.aspx?WorkFlowID=" + Model.WorkFlowID.ToString() + "&FormID=" + Model.FormID.ToString() + "\" target=\"_blank\">" + Model.JieDianName.ToString() + "</a>";
|
|||
|
|
this.lblShenPiUserList.Text=Model.ShenPiUserList.ToString();
|
|||
|
|
this.lblOKUserList.Text=Model.OKUserList.ToString();
|
|||
|
|
this.lblStateNow.Text=Model.StateNow.ToString();
|
|||
|
|
this.lblLateTime.Text=Model.LateTime.ToString();
|
|||
|
|
|
|||
|
|
//дϵͳ<CFB5><CDB3>־
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB>鿴<EFBFBD><E9BFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ(" + this.lblWorkName.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
SetNodeInfoAndSet();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>þ<EFBFBD><C3BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԡ<EFBFBD><D4A1><EFBFBD>ǰ<EFBFBD>ж<EFBFBD>Ȩ<EFBFBD>ޡ<EFBFBD><DEA1><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD>ܵ<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public void SetNodeInfoAndSet()
|
|||
|
|
{
|
|||
|
|
ZWL.BLL.ERPNWorkToDo MyModelWork = new ZWL.BLL.ERPNWorkToDo();
|
|||
|
|
MyModelWork.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|||
|
|
|
|||
|
|
//<2F><>ȡ<EFBFBD><C8A1>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
string[] FormItemList = ZWL.DBUtility.DbHelperSQL.GetSHSL("select top 1 ItemsList from ERPNForm where ID=" + MyModelWork.FormID.ToString()).Split('|');
|
|||
|
|
|
|||
|
|
for (int ItemNum = 0; ItemNum < FormItemList.Length; ItemNum++)
|
|||
|
|
{
|
|||
|
|
if (FormItemList[ItemNum].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
PiLiangSet = PiLiangSet + "document.getElementById(\"" + FormItemList[ItemNum].ToString().Split('_')[0] + "\").disabled=true;";//readOnly
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
|
|||
|
|
{
|
|||
|
|
Response.Redirect("PrintWork.aspx?ID=" + Request.QueryString["ID"].ToString());
|
|||
|
|
}
|
|||
|
|
public void btnDownloadFile_Click(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.DownloadFile(Server.MapPath("~"), this.hdnFileURL.Value.Trim());
|
|||
|
|
}
|
|||
|
|
catch
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|