Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPCarBaoYang Model = new ZWL.BLL.ERPCarBaoYang();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblCarName.Text      = Model.CarName.ToString();
            this.lblBYDate.Text       = Model.BYDate.ToString();
            this.lblJingBanUser.Text  = Model.JingBanUser.ToString();
            this.lblZhuGuanUser.Text  = Model.ZhuGuanUser.ToString();
            this.lblBYQianLCBNum.Text = Model.BYQianLCBNum.ToString();
            this.lblQiYouJinE.Text    = Model.QiYouJinE.ToString();
            this.lblBYJinE.Text       = Model.BYJinE.ToString();
            this.lblWeiXiuJinE.Text   = Model.WeiXiuJinE.ToString();
            this.lblOtherJinE.Text    = Model.OtherJinE.ToString();
            this.lblUserName.Text     = Model.UserName.ToString();
            this.lblTimeStr.Text      = Model.TimeStr.ToString();
            this.lblBackInfo.Text     = Model.BackInfo.ToString();

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看车辆保养记录信息(" + this.lblCarName.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.ERPCarBaoYang Model = new ZWL.BLL.ERPCarBaoYang();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtCarName.Text      = Model.CarName.ToString();
         this.txtBYDate.Text       = Model.BYDate.ToString();
         this.txtJingBanUser.Text  = Model.JingBanUser.ToString();
         this.txtZhuGuanUser.Text  = Model.ZhuGuanUser.ToString();
         this.txtBYQianLCBNum.Text = Model.BYQianLCBNum.ToString();
         this.txtQiYouJinE.Text    = Model.QiYouJinE.ToString();
         this.txtBYJinE.Text       = Model.BYJinE.ToString();
         this.txtWeiXiuJinE.Text   = Model.WeiXiuJinE.ToString();
         this.txtOtherJinE.Text    = Model.OtherJinE.ToString();
         this.txtUserName.Text     = Model.UserName.ToString();
         this.txtTimeStr.Text      = Model.TimeStr.ToString();
         this.txtBackInfo.Text     = Model.BackInfo.ToString();
     }
 }