Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPPinShen model = new ZWL.BLL.ERPPinShen();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtProjectName.Text    = model.ProjectName;
         this.txtProjectSerils.Text  = model.ProjectSerils;
         this.txtPingShenTime.Text   = model.PingShenTime;
         this.txtPingShenJieGuo.Text = model.PingShenJieGuo;
         this.txtBachInfo.Text       = model.BachInfo;
     }
 }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPPinShen model = new ZWL.BLL.ERPPinShen();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblProjectName.Text    = model.ProjectName;
            this.lblProjectSerils.Text  = model.ProjectSerils;
            this.lblPingShenTime.Text   = model.PingShenTime;
            this.lblPingShenJieGuo.Text = model.PingShenJieGuo;
            this.lblUserName.Text       = model.UserName;
            this.lblTimeStr.Text        = model.TimeStr.ToString();
            this.lblBachInfo.Text       = model.BachInfo;

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "查看评审信息(" + this.lblProjectName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }