partial void UpdateERPYS(ERPYS instance);
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(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加应付计划信息(" + this.txtHeTongName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "应付信息添加成功!", "YF.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); DataEntityDataContext context = new DataEntityDataContext(); ERPYS Model = new ERPYS(); Model = context.ERPYS.SingleOrDefault(p => p.ID == int.Parse(Request.QueryString["ID"].ToString())); this.lblHeTongName.Text = Model.HeTongName.ToString(); HeTongName = Model.HeTongName.ToString(); this.lblQianYueKeHu.Text = Model.QianYueKeHu.ToString(); this.lblHeTongMiaoShu.Text = Model.HTJE.ToString(); this.lblShengXiaoDate.Text = Model.TiXingDate.ToString().Replace(" 0:00:00", ""); this.lblTiXingDate.Text = Model.DaoKuanDate.ToString().Replace(" 0:00:00", ""); this.lblCreateTime.Text = Model.CreateTime.ToString(); this.lblCreateUser.Text = Model.CreateUser.ToString(); this.Label1.Text = Model.SFDK; this.lblBackInfo.Text = Model.BackInfo.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看应付信息(" + this.lblHeTongName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { DataEntityDataContext context = new DataEntityDataContext(); ERPYS Model = new ERPYS(); Model = context.ERPYS.SingleOrDefault(p => p.ID == int.Parse(Request.QueryString["ID"].ToString())); Model.SFDK = this.DZ.Value; ERPRecive model2 = context.ERPRecive.SingleOrDefault(p => p.ID == Model.FKID); model2.SFDK = this.DZ.Value; context.SubmitChanges(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改应付信息(" + this.txtHeTongName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "应付信息修改成功!", "YF.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { DataEntityDataContext context = new DataEntityDataContext(); ERPRecive Model = new ERPRecive(); Model = context.ERPRecive.SingleOrDefault(p => p.ID == int.Parse(Request.QueryString["ID"].ToString())); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); 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.SFDK = this.DZ.Value; Model.BackInfo = this.txtBackInfo.Text.ToString(); ERPYS ys = new ERPYS(); ys = context.ERPYS.SingleOrDefault(p => p.FKID == Model.ID); ys.HeTongName = this.txtHeTongName.Text.ToString(); ys.QianYueKeHu = this.txtQianYueKeHu.Text.ToString(); ys.HTJE = this.txtHeTongMiaoShu.Text.ToString(); ys.TiXingDate = DateTime.Parse(this.txtShengXiaoDate.Text); ys.DaoKuanDate = DateTime.Parse(this.txtTiXingDate.Text); ys.BackInfo = this.txtBackInfo.Text.ToString(); ys.SFDK = this.DZ.Value; ys.NowState = "F"; context.SubmitChanges(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改付款计划信息(" + this.txtHeTongName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "付款计划信息修改成功!", "FK.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); DataEntityDataContext context = new DataEntityDataContext(); ERPYS Model = new ERPYS(); Model = context.ERPYS.SingleOrDefault(p => p.ID == int.Parse(Request.QueryString["ID"].ToString())); this.txtHeTongName.Attributes.Add("readonly", "true"); this.txtQianYueKeHu.Attributes.Add("readonly", "true"); this.txtHeTongMiaoShu.Attributes.Add("readonly", "true"); this.txtShengXiaoDate.Attributes.Add("readonly", "true"); this.txtHeTongName.Text = Model.HeTongName.ToString(); this.txtQianYueKeHu.Text = Model.QianYueKeHu.ToString(); this.txtHeTongMiaoShu.Text = Model.HTJE.ToString(); this.txtShengXiaoDate.Text = Model.TiXingDate.ToString().Replace(" 0:00:00", ""); this.txtTiXingDate.Text = Model.DaoKuanDate.ToString().Replace(" 0:00:00", ""); this.DZ.Value = Model.SFDK; this.txtBackInfo.Text = Model.BackInfo.ToString(); } }
partial void DeleteERPYS(ERPYS instance);
partial void InsertERPYS(ERPYS instance);