Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPNFormType Model = new ZWL.BLL.ERPNFormType();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtTypeName.Text = Model.TypeName.ToString();
         this.txtPaiXuStr.Text = Model.PaiXuStr.ToString();
         this.txtBackInfo.Text = Model.BackInfo.ToString();
     }
 }
Exemplo n.º 2
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPNFormType MyModel = new ZWL.BLL.ERPNFormType();
     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();
 }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPNFormType Model = new ZWL.BLL.ERPNFormType();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTypeName.Text = Model.TypeName.ToString();
            this.lblPaiXuStr.Text = Model.PaiXuStr.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.lblTypeName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Exemplo n.º 4
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPNFormType Model = new ZWL.BLL.ERPNFormType();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "表单分类信息添加成功!", "NFormType.aspx");
    }