Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPShouKuan model = new ZWL.BLL.ERPShouKuan();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblProjectName.Text   = model.ProjectName;
            this.lblProjectSerils.Text = model.ProjectSerils;
            this.lblJieDuanName.Text   = model.JieDuanName;
            this.lblShouKuanE.Text     = model.ShouKuanE;
            this.lblFaPiaoHao.Text     = model.FaPiaoHao;
            this.lblShouKuanDate.Text  = model.ShouKuanDate;
            this.lblDaoKuanDate.Text   = model.DaoKuanDate;
            this.lblShengYuE.Text      = model.ShengYuE;
            this.lblUserName.Text      = model.UserName;
            this.lblTimeStr.Text       = model.TimeStr.ToString();

            //写系统日志
            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();
        }
    }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPShouKuan model = new ZWL.BLL.ERPShouKuan();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtProjectName.Text   = model.ProjectName;
         this.txtProjectSerils.Text = model.ProjectSerils;
         this.txtJieDuanName.Text   = model.JieDuanName;
         this.txtShouKuanE.Text     = model.ShouKuanE;
         this.txtFaPiaoHao.Text     = model.FaPiaoHao;
         this.txtShouKuanDate.Text  = model.ShouKuanDate;
         this.txtDaoKuanDate.Text   = model.DaoKuanDate;
         this.txtShengYuE.Text      = model.ShengYuE;
     }
 }