tijian_tieying/web/Web/Financial/YSView.aspx.cs
2025-02-20 12:14:39 +08:00

51 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;
using System.Linq;
public partial class Financial_YSView : System.Web.UI.Page
{
public string HeTongName = "";
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();
}
}
}