Exemplo n.º 1
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPGuDingJiLu MyModel = new ZWL.BLL.ERPGuDingJiLu();
     GVData.DataSource = MyModel.GetList("GDName 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.º 2
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPGuDingJiLu MyModel = new ZWL.BLL.ERPGuDingJiLu();
     GVData.DataSource = MyModel.GetList("GDName 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.º 3
0
    public void DataBindToGridview()
    {
        GVData.PageSize  = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPGuDingJiLu MyModel = new ZWL.BLL.ERPGuDingJiLu();
        DataSet ds = MyModel.GetList("GDName Like '%" + this.TextBox1.Text + "%' order by ID desc");

        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }
Exemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPGuDingJiLu Model = new ZWL.BLL.ERPGuDingJiLu();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtGDName.Text   = Model.GDName.ToString();
         this.txtZJType.Text   = Model.ZJType.ToString();
         this.txtZJDate.Text   = Model.ZJDate.ToString();
         this.txtZJJinE.Text   = Model.ZJJinE.ToString();
         this.txtUserName.Text = Model.UserName.ToString();
         this.txtTimeStr.Text  = Model.TimeStr.ToString();
         this.txtBackInfo.Text = Model.BackInfo.ToString();
     }
 }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPGuDingJiLu Model = new ZWL.BLL.ERPGuDingJiLu();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtGDName.Text=Model.GDName.ToString();
         this.txtZJType.Text=Model.ZJType.ToString();
         this.txtZJDate.Text=Model.ZJDate.ToString();
         this.txtZJJinE.Text=Model.ZJJinE.ToString();
         this.txtUserName.Text=Model.UserName.ToString();
         this.txtTimeStr.Text=Model.TimeStr.ToString();
         this.txtBackInfo.Text=Model.BackInfo.ToString();
     }
 }
Exemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPGuDingJiLu Model = new ZWL.BLL.ERPGuDingJiLu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblGDName.Text   = Model.GDName.ToString();
            this.lblZJType.Text   = Model.ZJType.ToString();
            this.lblZJDate.Text   = Model.ZJDate.ToString();
            this.lblZJJinE.Text   = Model.ZJJinE.ToString();
            this.lblUserName.Text = Model.UserName.ToString();
            this.lblTimeStr.Text  = Model.TimeStr.ToString();
            this.lblBackInfo.Text = Model.BackInfo.ToString();

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看折旧记录信息(" + this.lblGDName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Exemplo n.º 7
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPGuDingJiLu Model = new ZWL.BLL.ERPGuDingJiLu();

        Model.GDName   = this.txtGDName.Text.ToString();
        Model.ZJType   = this.txtZJType.Text.ToString();
        Model.ZJDate   = this.txtZJDate.Text.ToString();
        Model.ZJJinE   = this.txtZJJinE.Text.ToString();
        Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.TimeStr  = DateTime.Now;
        Model.BackInfo = this.txtBackInfo.Text.ToString();

        Model.Add();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "折旧记录信息添加成功!", "GuDingJiLu.aspx?GDName=" + Request.QueryString["GDName"].ToString());
    }
Exemplo n.º 8
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPGuDingJiLu Model = new ZWL.BLL.ERPGuDingJiLu();

        Model.GDName=this.txtGDName.Text.ToString();
        Model.ZJType=this.txtZJType.Text.ToString();
        Model.ZJDate=this.txtZJDate.Text.ToString();
        Model.ZJJinE=this.txtZJJinE.Text.ToString();
        Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName");
        Model.TimeStr=DateTime.Now;
        Model.BackInfo=this.txtBackInfo.Text.ToString();

        Model.Add();

        //дϵͳ��־
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "�û�����۾ɼ�¼��Ϣ(" + this.txtGDName.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "�۾ɼ�¼��Ϣ��ӳɹ���", "GuDingJiLu.aspx?GDName=" + Request.QueryString["GDName"].ToString());
    }
Exemplo n.º 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPGuDingJiLu Model = new ZWL.BLL.ERPGuDingJiLu();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblGDName.Text=Model.GDName.ToString();
            this.lblZJType.Text=Model.ZJType.ToString();
            this.lblZJDate.Text=Model.ZJDate.ToString();
            this.lblZJJinE.Text=Model.ZJJinE.ToString();
            this.lblUserName.Text=Model.UserName.ToString();
            this.lblTimeStr.Text=Model.TimeStr.ToString();
            this.lblBackInfo.Text=Model.BackInfo.ToString();

            //дϵͳ��־
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "�û��鿴�۾ɼ�¼��Ϣ(" + this.lblGDName.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }