Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPXinChouCanShu Model = new ZWL.BLL.ERPXinChouCanShu();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtItemName.Text = Model.ItemName.ToString();
         this.txtBackInfo.Text = Model.BackInfo.ToString();
         this.txtUserName.Text = Model.UserName.ToString();
         this.txtTimeStr.Text  = Model.TimeStr.ToString();
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPXinChouCanShu Model = new ZWL.BLL.ERPXinChouCanShu();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtItemName.Text=Model.ItemName.ToString();
         this.txtBackInfo.Text=Model.BackInfo.ToString();
         this.txtUserName.Text=Model.UserName.ToString();
         this.txtTimeStr.Text=Model.TimeStr.ToString();
     }
 }
Beispiel #3
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPXinChouCanShu MyModel = new ZWL.BLL.ERPXinChouCanShu();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' 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();
 }
Beispiel #4
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPXinChouCanShu MyModel = new ZWL.BLL.ERPXinChouCanShu();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' 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();
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPXinChouCanShu Model = new ZWL.BLL.ERPXinChouCanShu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblItemName.Text = Model.ItemName.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.lblItemName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Beispiel #6
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPXinChouCanShu Model = new ZWL.BLL.ERPXinChouCanShu();

        Model.ItemName=this.txtItemName.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.txtItemName.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "н�������Ϣ��ӳɹ���", "XinChouCanShu.aspx");
    }
Beispiel #7
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPXinChouCanShu Model = new ZWL.BLL.ERPXinChouCanShu();

        Model.ItemName = this.txtItemName.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.txtItemName.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "薪酬参数信息添加成功!", "XinChouCanShu.aspx");
    }
Beispiel #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPXinChouCanShu Model = new ZWL.BLL.ERPXinChouCanShu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblItemName.Text=Model.ItemName.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.lblItemName.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }