Ejemplo n.º 1
0
    protected void ImageButton1_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPKaoHe Model = new ZWL.BLL.ERPKaoHe();

        Model.KaoHeTitle  = this.txtKaoHeTitle.Text.ToString();
        Model.KaoHeUser   = this.txtKaoHeUser.Text.ToString();
        Model.KaoHeType   = this.txtKaoHeType.Text.ToString();
        Model.KaoHeDate   = this.txtKaoHeDate.Text.ToString();
        Model.XiangMuFen  = this.txtXiangMuFen.Text.ToString();
        Model.RenWuFen    = this.txtRenWuFen.Text.ToString();
        Model.KaoHeJieLun = this.txtKaoHeJieLun.Text.ToString();
        Model.BackInfo    = this.txtBackInfo.Text.ToString();
        Model.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.TimeStr     = DateTime.Now;

        Model.Add();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户添加考核管理信息(" + this.txtKaoHeTitle.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "考核管理信息添加成功!", "KaoHe.aspx");
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPKaoHe Model = new ZWL.BLL.ERPKaoHe();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblKaoHeTitle.Text  = Model.KaoHeTitle.ToString();
            this.lblKaoHeUser.Text   = Model.KaoHeUser.ToString();
            this.lblKaoHeType.Text   = Model.KaoHeType.ToString();
            this.lblKaoHeDate.Text   = Model.KaoHeDate.ToString();
            this.lblXiangMuFen.Text  = Model.XiangMuFen.ToString();
            this.lblRenWuFen.Text    = Model.RenWuFen.ToString();
            this.lblKaoHeJieLun.Text = Model.KaoHeJieLun.ToString();
            this.lblBackInfo.Text    = Model.BackInfo.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.lblKaoHeTitle.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Ejemplo n.º 3
0
    public void DataBindToGridview()
	{
        GVData.PageSize = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPKaoHe MyModel = new ZWL.BLL.ERPKaoHe();
        DataSet ds = MyModel.GetList("KaoHeTitle Like '%" + this.TextBox1.Text + "%' order by ID desc");
        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPKaoHe Model = new ZWL.BLL.ERPKaoHe();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtKaoHeTitle.Text  = Model.KaoHeTitle.ToString();
         this.txtKaoHeUser.Text   = Model.KaoHeUser.ToString();
         this.txtKaoHeType.Text   = Model.KaoHeType.ToString();
         this.txtKaoHeDate.Text   = Model.KaoHeDate.ToString();
         this.txtXiangMuFen.Text  = Model.XiangMuFen.ToString();
         this.txtRenWuFen.Text    = Model.RenWuFen.ToString();
         this.txtKaoHeJieLun.Text = Model.KaoHeJieLun.ToString();
         this.txtBackInfo.Text    = Model.BackInfo.ToString();
         this.txtUserName.Text    = Model.UserName.ToString();
         this.txtTimeStr.Text     = Model.TimeStr.ToString();
     }
 }