Esempio n. 1
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPJSDIC MyModel = new ZWL.BLL.ERPJSDIC();
     GVData.DataSource = MyModel.GetList("DicName Like '%" + this.TextBox1.Text + "%' and UserName='******' 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();
 }
Esempio n. 2
0
    public void DataBindToGridview()
    {
        GVData.PageSize  = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPJSDIC MyModel = new ZWL.BLL.ERPJSDIC();
        DataSet          ds      = MyModel.GetList("DicName Like '%" + this.TextBox1.Text + "%' and UserName='******' order by ID desc");

        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPJSDIC Model = new ZWL.BLL.ERPJSDIC();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtDicName.Text  = Model.DicName.ToString();
         this.txtBackinfo.Text = Model.Backinfo.ToString();
         this.txtUserName.Text = Model.UserName.ToString();
         this.txtTimeStr.Text  = Model.TimeStr.ToString();
     }
 }
Esempio n. 4
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPJSDIC Model = new ZWL.BLL.ERPJSDIC();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "签收文件夹信息添加成功!", "JSDIC.aspx");
    }
Esempio n. 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPJSDIC Model = new ZWL.BLL.ERPJSDIC();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblDicName.Text  = Model.DicName.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.lblDicName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }