Exemplo n.º 1
0
 public void DataBindToGridview(string IDList)
 {
     DataEntityDataContext context = new DataEntityDataContext();
     ZWL.BLL.ERPXueXi MyLanEmail = new ZWL.BLL.ERPXueXi();
     var T = context.ERPXueXi.Where(p => p.ID > 0).OrderByDescending(p => p.ID);
     EmailList = T.ToList();
 }
Exemplo n.º 2
0
    public void DataBindToGridview(string IDList)
    {
        DataEntityDataContext context = new DataEntityDataContext();

        ZWL.BLL.ERPXueXi MyLanEmail = new ZWL.BLL.ERPXueXi();
        var T = context.ERPXueXi.Where(p => p.ID > 0).OrderByDescending(p => p.ID);

        EmailList = T.ToList();
    }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPXueXi Model = new ZWL.BLL.ERPXueXi();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtTitleStr.Text = Model.TitleStr.ToString();
         this.txtBackInfo.Text = Model.BackInfo.ToString();
         ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr);
         ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
         this.txtUserName.Text = Model.UserName.ToString();
         this.txtTimeStr.Text  = Model.TimeStr.ToString();
     }
 }
Exemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPXueXi Model = new ZWL.BLL.ERPXueXi();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtTitleStr.Text=Model.TitleStr.ToString();
         this.txtBackInfo.Text=Model.BackInfo.ToString();
     ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr);
     ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList"));
         this.txtUserName.Text=Model.UserName.ToString();
         this.txtTimeStr.Text=Model.TimeStr.ToString();
     }
 }
Exemplo n.º 5
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPXueXi MyModel = new ZWL.BLL.ERPXueXi();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' 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.º 6
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPXueXi MyModel = new ZWL.BLL.ERPXueXi();
     if (IDList.Trim().Length > 0)
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' and ID in(" + IDList + ") order by ID desc");
     }
     else
     {
         GVData.DataSource = MyModel.GetList(" " + DropDownList2.SelectedItem.Value.ToString() + " like '%" + this.TextBox3.Text.Trim() + "%' 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.º 7
0
    protected void ImageButton1_Click(object sender, EventArgs e)
    {
        ZWL.BLL.ERPXueXi Model = new ZWL.BLL.ERPXueXi();

        Model.TitleStr  = this.txtTitleStr.Text.ToString();
        Model.BackInfo  = this.txtBackInfo.Text.ToString();
        Model.FuJianStr = ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        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.txtTitleStr.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "在线学习信息添加成功!", "XueXi.aspx");
    }
Exemplo n.º 8
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPXueXi Model = new ZWL.BLL.ERPXueXi();

        Model.TitleStr=this.txtTitleStr.Text.ToString();
        Model.BackInfo=this.txtBackInfo.Text.ToString();
        Model.FuJianStr=ZWL.Common.PublicMethod.GetSessionValue("WenJianList");
        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.txtTitleStr.Text + ")";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "����ѧϰ��Ϣ��ӳɹ���", "XueXi.aspx");
    }
Exemplo n.º 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPXueXi Model = new ZWL.BLL.ERPXueXi();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTitleStr.Text  = Model.TitleStr.ToString();
            this.lblBackInfo.Text  = Model.BackInfo.ToString();
            this.lblFuJianStr.Text = ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(), "../UpLoadFile/");
            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.lblTitleStr.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Exemplo n.º 10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPXueXi Model = new ZWL.BLL.ERPXueXi();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblTitleStr.Text=Model.TitleStr.ToString();
            this.lblBackInfo.Text=Model.BackInfo.ToString();
            this.lblFuJianStr.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(),"../UpLoadFile/");
            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.lblTitleStr.Text + ")";
            MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();

        }
    }