56 lines
2.1 KiB
C#
56 lines
2.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_TaskFPAdd : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD><CFB4>ĸ<EFBFBD><C4B8><EFBFBD>Ϊ<EFBFBD><CEAA>
|
|||
|
|
ZWL.Common.PublicMethod.SetSessionValue("WenJianList", "");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
|
|||
|
|
{
|
|||
|
|
ZWL.BLL.ERPTaskFP Model = new ZWL.BLL.ERPTaskFP();
|
|||
|
|
|
|||
|
|
Model.TaskTitle=this.txtTaskTitle.Text.ToString();
|
|||
|
|
Model.TaskContent=this.txtTaskContent.Text.ToString();
|
|||
|
|
Model.FromUser=ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
Model.ToUserList=this.txtToUserList.Text.ToString();
|
|||
|
|
Model.XinXiGouTong="";
|
|||
|
|
Model.JinDu=decimal.Parse("0");
|
|||
|
|
Model.WanCheng="<22><><EFBFBD><EFBFBD>";
|
|||
|
|
Model.NowState="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|||
|
|
Model.KSSJ = DateTime.Parse(this.TextBox3.Text.Trim() + " " + this.DropDownList1.SelectedItem.Text + ":" + this.DropDownList2.SelectedItem.Text + ":00");
|
|||
|
|
Model.JSSJ = DateTime.Parse(this.TextBox2.Text.Trim() + " " + this.DropDownList3.SelectedItem.Text + ":" + this.DropDownList4.SelectedItem.Text + ":00");
|
|||
|
|
Model.FKSJ = DateTime.Parse(this.TextBox4.Text.Trim() + " " + this.DropDownList5.SelectedItem.Text + ":" + this.DropDownList6.SelectedItem.Text + ":00");
|
|||
|
|
Model.SFFK = this.TX.Value;
|
|||
|
|
Model.Add();
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD>Ͷ<EFBFBD><CDB6><EFBFBD>
|
|||
|
|
SendMainAndSms.SendMessage(CHKSMS, CHKMOB, "<22><><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD><C2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫִ<D2AA>У<EFBFBD>(" + this.txtTaskTitle.Text + ")", this.txtToUserList.Text.Trim());
|
|||
|
|
|
|||
|
|
//дϵͳ<CFB5><CDB3>־
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ(" + this.txtTaskTitle.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><CFA2><EFBFBD>ӳɹ<D3B3><C9B9><EFBFBD>", "TaskFP.aspx");
|
|||
|
|
}
|
|||
|
|
}
|