protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPOffice Model = new ZWL.BLL.ERPOffice(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblOfficeName.Text = Model.OfficeName.ToString(); this.lblMiaoShu.Text = Model.MiaoShu.ToString(); this.lblFuJianStr.Text = ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(), "../UpLoadFile/"); this.lblTypeStr.Text = Model.TypeStr.ToString(); this.lblSerils.Text = Model.Serils.ToString(); this.lblDanWei.Text = Model.DanWei.ToString(); this.lblDanJia.Text = Model.DanJia.ToString(); this.lblGongYingShang.Text = Model.GongYingShang.ToString(); this.lblMinNum.Text = Model.MinNum.ToString(); this.lblMaxNum.Text = Model.MaxNum.ToString(); this.lblNowNum.Text = Model.NowNum.ToString(); this.lblUserName.Text = Model.UserName.ToString(); this.lblTimeStr.Text = Model.TimeStr.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看办公用品信息(" + this.lblOfficeName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPOffice Model = new ZWL.BLL.ERPOffice(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblOfficeName.Text=Model.OfficeName.ToString(); this.lblMiaoShu.Text=Model.MiaoShu.ToString(); this.lblFuJianStr.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(),"../UpLoadFile/"); this.lblTypeStr.Text=Model.TypeStr.ToString(); this.lblSerils.Text=Model.Serils.ToString(); this.lblDanWei.Text=Model.DanWei.ToString(); this.lblDanJia.Text=Model.DanJia.ToString(); this.lblGongYingShang.Text=Model.GongYingShang.ToString(); this.lblMinNum.Text=Model.MinNum.ToString(); this.lblMaxNum.Text=Model.MaxNum.ToString(); this.lblNowNum.Text=Model.NowNum.ToString(); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴�칫��Ʒ��Ϣ(" + this.lblOfficeName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPOffice Model = new ZWL.BLL.ERPOffice(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtOfficeName.Text = Model.OfficeName.ToString(); this.txtMiaoShu.Text = Model.MiaoShu.ToString(); ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr); ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList")); this.txtTypeStr.Text = Model.TypeStr.ToString(); this.txtSerils.Text = Model.Serils.ToString(); this.txtDanWei.Text = Model.DanWei.ToString(); this.txtDanJia.Text = Model.DanJia.ToString(); this.txtGongYingShang.Text = Model.GongYingShang.ToString(); this.txtMinNum.Text = Model.MinNum.ToString(); this.txtMaxNum.Text = Model.MaxNum.ToString(); this.txtNowNum.Text = Model.NowNum.ToString(); this.txtUserName.Text = Model.UserName.ToString(); this.txtTimeStr.Text = Model.TimeStr.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPOffice Model = new ZWL.BLL.ERPOffice(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtOfficeName.Text=Model.OfficeName.ToString(); this.txtMiaoShu.Text=Model.MiaoShu.ToString(); ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr); ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList")); this.txtTypeStr.Text=Model.TypeStr.ToString(); this.txtSerils.Text=Model.Serils.ToString(); this.txtDanWei.Text=Model.DanWei.ToString(); this.txtDanJia.Text=Model.DanJia.ToString(); this.txtGongYingShang.Text=Model.GongYingShang.ToString(); this.txtMinNum.Text=Model.MinNum.ToString(); this.txtMaxNum.Text=Model.MaxNum.ToString(); this.txtNowNum.Text=Model.NowNum.ToString(); this.txtUserName.Text=Model.UserName.ToString(); this.txtTimeStr.Text=Model.TimeStr.ToString(); } }