56 lines
1.8 KiB
C#
56 lines
1.8 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 Financial_YFAdd : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
|
|||
|
|
{
|
|||
|
|
DataEntityDataContext context = new DataEntityDataContext();
|
|||
|
|
ERPYS Model = new ERPYS();
|
|||
|
|
|
|||
|
|
Model.HeTongName = this.txtHeTongName.Text.ToString();
|
|||
|
|
Model.QianYueKeHu = this.txtQianYueKeHu.Text.ToString();
|
|||
|
|
Model.HTJE = this.txtHeTongMiaoShu.Text.ToString();
|
|||
|
|
Model.TiXingDate = DateTime.Parse(this.txtShengXiaoDate.Text);
|
|||
|
|
Model.DaoKuanDate = DateTime.Parse(this.txtTiXingDate.Text);
|
|||
|
|
Model.CreateTime = DateTime.Now;
|
|||
|
|
Model.CreateUser = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
Model.BackInfo = this.txtBackInfo.Text.ToString();
|
|||
|
|
Model.SFDK = this.DZ.Value;
|
|||
|
|
Model.NowState = "F";
|
|||
|
|
context.ERPYS.InsertOnSubmit(Model);
|
|||
|
|
context.SubmitChanges();
|
|||
|
|
|
|||
|
|
//дϵͳ<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><D3A6><EFBFBD>ƻ<EFBFBD><C6BB><EFBFBD>Ϣ(" + this.txtHeTongName.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
ZWL.Common.MessageBox.ShowAndRedirect(this, "Ӧ<><D3A6><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ӳɹ<D3B3><C9B9><EFBFBD>", "YF.aspx");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|