Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPLiRun model = new ZWL.BLL.ERPLiRun();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblProjectName.Text   = model.ProjectName;
            this.lblProjectSerils.Text = model.ProjectSerils;
            this.lblSumJinE.Text       = model.SumJinE;
            this.lblFeiYong.Text       = model.FeiYong;
            this.lblChengBen.Text      = model.ChengBen;
            this.lblFangZu.Text        = model.FangZu;
            this.lblShuiE.Text         = model.ShuiE;
            this.lblGongZi.Text        = model.GongZi;
            this.lblTiCheng.Text       = model.TiCheng;
            this.lblQiTa.Text          = model.QiTa;
            this.lblShiJi.Text         = model.ShiJi;
            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 ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPLiRun model = new ZWL.BLL.ERPLiRun();
        model.ID            = int.Parse(Request.QueryString["ID"].ToString());
        model.ProjectName   = this.txtProjectName.Text;
        model.ProjectSerils = this.txtProjectSerils.Text;
        model.SumJinE       = this.txtSumJinE.Text;
        model.FeiYong       = this.txtFeiYong.Text;
        model.ChengBen      = this.txtChengBen.Text;
        model.FangZu        = this.txtFangZu.Text;
        model.ShuiE         = this.txtShuiE.Text;
        model.GongZi        = this.txtGongZi.Text;
        model.TiCheng       = this.txtTiCheng.Text;
        model.QiTa          = this.txtQiTa.Text;
        model.ShiJi         = this.txtShiJi.Text;
        model.UserName      = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        model.TimeStr       = DateTime.Now;
        model.Update();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改利润核算信息(" + this.txtProjectName.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
        ZWL.Common.MessageBox.ShowAndRedirect(this, "利润核算信息修改成功!", "LiRuiGuanLi.aspx?ProjectName=" + Request.QueryString["ProjectName"].ToString());
    }
Exemplo n.º 3
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPLiRun MyModel = new ZWL.BLL.ERPLiRun();
     GVData.DataSource = MyModel.GetList("ProjectName Like '%" + this.TextBox1.Text + "%' order by ID desc");
     GVData.DataBind();
     LabPageSum.Text     = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text    = LabCurrentPage.Text.ToString();
 }
Exemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPLiRun model = new ZWL.BLL.ERPLiRun();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtProjectName.Text   = model.ProjectName;
         this.txtProjectSerils.Text = model.ProjectSerils;
         this.txtSumJinE.Text       = model.SumJinE;
         this.txtFeiYong.Text       = model.FeiYong;
         this.txtChengBen.Text      = model.ChengBen;
         this.txtFangZu.Text        = model.FangZu;
         this.txtShuiE.Text         = model.ShuiE;
         this.txtGongZi.Text        = model.GongZi;
         this.txtTiCheng.Text       = model.TiCheng;
         this.txtQiTa.Text          = model.QiTa;
         this.txtShiJi.Text         = model.ShiJi;
     }
 }