Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPReportType Model = new ZWL.BLL.ERPReportType();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtTypeName.Text = Model.TypeName.ToString();
         this.txtBackInfo.Text = Model.BackInfo.ToString();
         this.txtPaiXuStr.Text = Model.PaiXuStr.ToString();
     }
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPReportType Model = new ZWL.BLL.ERPReportType();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtTypeName.Text=Model.TypeName.ToString();
         this.txtBackInfo.Text=Model.BackInfo.ToString();
         this.txtPaiXuStr.Text=Model.PaiXuStr.ToString();
     }
 }
Ejemplo n.º 3
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPReportType MyModel = new ZWL.BLL.ERPReportType();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by PaiXuStr asc,ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by PaiXuStr asc,ID desc");
     }
     GVData.DataBind();
     LabPageSum.Text     = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text    = LabCurrentPage.Text.ToString();
 }
Ejemplo n.º 4
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPReportType MyModel = new ZWL.BLL.ERPReportType();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by PaiXuStr asc,ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by PaiXuStr asc,ID desc");
     }
     GVData.DataBind();
     LabPageSum.Text = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text = LabCurrentPage.Text.ToString();
 }
Ejemplo n.º 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPReportType Model = new ZWL.BLL.ERPReportType();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTypeName.Text = Model.TypeName.ToString();
            this.lblBackInfo.Text = Model.BackInfo.ToString();
            this.lblPaiXuStr.Text = Model.PaiXuStr.ToString();

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看报表分类信息(" + this.lblTypeName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Ejemplo n.º 6
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPReportType Model = new ZWL.BLL.ERPReportType();

        Model.TypeName=this.txtTypeName.Text.ToString();
        Model.BackInfo=this.txtBackInfo.Text.ToString();
        Model.PaiXuStr=this.txtPaiXuStr.Text.ToString();

        Model.Add();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "���������Ϣ��ӳɹ���", "ReportType.aspx");
    }
Ejemplo n.º 7
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPReportType Model = new ZWL.BLL.ERPReportType();

        Model.TypeName = this.txtTypeName.Text.ToString();
        Model.BackInfo = this.txtBackInfo.Text.ToString();
        Model.PaiXuStr = this.txtPaiXuStr.Text.ToString();

        Model.Add();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "报表分类信息添加成功!", "ReportType.aspx");
    }
Ejemplo n.º 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPReportType Model = new ZWL.BLL.ERPReportType();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTypeName.Text=Model.TypeName.ToString();
            this.lblBackInfo.Text=Model.BackInfo.ToString();
            this.lblPaiXuStr.Text=Model.PaiXuStr.ToString();

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

        }
    }