74 lines
3.1 KiB
C#
74 lines
3.1 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 Subaltern_TaskFPView : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
public int id = 0;
|
|||
|
|
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
id = int.Parse(Request.QueryString["ID"].ToString());
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
ZWL.BLL.ERPTaskFP Model = new ZWL.BLL.ERPTaskFP();
|
|||
|
|
Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|||
|
|
this.lblTaskTitle.Text=Model.TaskTitle.ToString();
|
|||
|
|
this.lblTaskContent.Text=Model.TaskContent.ToString();
|
|||
|
|
this.lblFromUser.Text=Model.FromUser.ToString();
|
|||
|
|
this.lblToUserList.Text=Model.ToUserList.ToString();
|
|||
|
|
this.lblXinXiGouTong.Text=Model.XinXiGouTong.ToString();
|
|||
|
|
this.lblJinDu.Text=Model.JinDu.ToString()+"%";
|
|||
|
|
this.lblWanCheng.Text=Model.WanCheng.ToString();
|
|||
|
|
this.lblNowState.Text=Model.NowState.ToString();
|
|||
|
|
this.Label1.Text = Model.KSSJ.ToString();
|
|||
|
|
this.Label2.Text = Model.JSSJ.ToString();
|
|||
|
|
this.Label3.Text = Model.SFFK.ToString();
|
|||
|
|
this.Label4.Text = Model.FKSJ.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.lblTaskTitle.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
protected void Button1_Click(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
string SqlStr = "update ERPTaskFP set JinDu=" + this.txtJinDu.Text.Trim() + ",WanCheng='" + this.txtWanCheng.Text.Trim() + "',XinXiGouTong='" + GetNowString() + "' where ID=" + Request.QueryString["ID"].ToString();
|
|||
|
|
|
|||
|
|
ZWL.DBUtility.DbHelperSQL.ExecuteSQL(SqlStr);
|
|||
|
|
|
|||
|
|
//дϵͳ<CFB5><CDB3>־
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB>㱨<EFBFBD><E3B1A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ(" + this.lblTaskTitle.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
ZWL.Common.MessageBox.ShowAndRedirect(this, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㱨<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD>", "Task.aspx");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string GetNowString()
|
|||
|
|
{
|
|||
|
|
string ReturnStr = "";
|
|||
|
|
ReturnStr = "<22>㱨<EFBFBD>û<EFBFBD><C3BB><EFBFBD>" + ZWL.Common.PublicMethod.GetSessionValue("UserName") + " ʱ<>䣺" + DateTime.Now.ToString();
|
|||
|
|
ReturnStr = ReturnStr + " <3B><><EFBFBD>½<EFBFBD><C2BD>ȣ<EFBFBD>" + "<img src=\"../images/vote_bg.gif\" width=" + this.txtJinDu.Text.Trim() + " height=10 /> " + this.txtJinDu.Text.Trim() + "%";
|
|||
|
|
ReturnStr = ReturnStr + "<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" + this.txtWanCheng.Text.Trim();
|
|||
|
|
ReturnStr = ReturnStr + "<br><3E>㱨<EFBFBD><E3B1A8><EFBFBD>ݣ<EFBFBD>" + this.TextBox1.Text.Trim() + "<hr style=\"height:1px; color: #006600;\">" + this.lblXinXiGouTong.Text;
|
|||
|
|
|
|||
|
|
return ReturnStr;
|
|||
|
|
}
|
|||
|
|
}
|