Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPTiKuType Model = new ZWL.BLL.ERPTiKuType();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtTiKuName.Text=Model.TiKuName.ToString();
         this.txtPaiXu.Text=Model.PaiXu.ToString();
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPTiKuType Model = new ZWL.BLL.ERPTiKuType();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtTiKuName.Text = Model.TiKuName.ToString();
         this.txtPaiXu.Text    = Model.PaiXu.ToString();
     }
 }
Esempio n. 3
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPTiKuType MyModel = new ZWL.BLL.ERPTiKuType();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by PaiXu asc,ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by PaiXu 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();
 }
Esempio n. 4
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPTiKuType MyModel = new ZWL.BLL.ERPTiKuType();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by PaiXu asc,ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' order by PaiXu 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();
 }
Esempio n. 5
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPTiKuType Model = new ZWL.BLL.ERPTiKuType();

        Model.TiKuName = this.txtTiKuName.Text.ToString();
        Model.PaiXu    = this.txtPaiXu.Text.ToString();

        Model.Add();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "题库分类信息添加成功!", "TiKuType.aspx");
    }
Esempio n. 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuType Model = new ZWL.BLL.ERPTiKuType();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTiKuName.Text = Model.TiKuName.ToString();
            this.lblPaiXu.Text    = Model.PaiXu.ToString();

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

        Model.TiKuName=this.txtTiKuName.Text.ToString();
        Model.PaiXu=this.txtPaiXu.Text.ToString();

        Model.Add();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "��������Ϣ��ӳɹ���", "TiKuType.aspx");
    }
Esempio n. 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPTiKuType Model = new ZWL.BLL.ERPTiKuType();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTiKuName.Text=Model.TiKuName.ToString();
            this.lblPaiXu.Text=Model.PaiXu.ToString();

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

        }
    }