public void DataBindToGridview(string IDList) { ZWL.BLL.ERPJiangChengZhiDu MyModel = new ZWL.BLL.ERPJiangChengZhiDu(); 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(); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPJiangChengZhiDu Model = new ZWL.BLL.ERPJiangChengZhiDu(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtTitleStr.Text = Model.TitleStr.ToString(); this.txtJianJie.Text = Model.JianJie.ToString(); this.txtUserName.Text = Model.UserName.ToString(); this.txtTimeStr.Text = Model.TimeStr.ToString(); ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr); ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList")); this.txtConTentStr.Text = Model.ConTentStr.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPJiangChengZhiDu Model = new ZWL.BLL.ERPJiangChengZhiDu(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtTitleStr.Text=Model.TitleStr.ToString(); this.txtJianJie.Text=Model.JianJie.ToString(); this.txtUserName.Text=Model.UserName.ToString(); this.txtTimeStr.Text=Model.TimeStr.ToString(); ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr); ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList")); this.txtConTentStr.Text=Model.ConTentStr.ToString(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPJiangChengZhiDu Model = new ZWL.BLL.ERPJiangChengZhiDu(); Model.TitleStr = this.txtTitleStr.Text.ToString(); Model.JianJie = this.txtJianJie.Text.ToString(); Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr = DateTime.Now; Model.FuJianStr = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.ConTentStr = this.txtConTentStr.Text.ToString(); 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, "奖惩制度信息添加成功!", "JiangChengZhiDu.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPJiangChengZhiDu Model = new ZWL.BLL.ERPJiangChengZhiDu(); Model.TitleStr=this.txtTitleStr.Text.ToString(); Model.JianJie=this.txtJianJie.Text.ToString(); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.FuJianStr=ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.ConTentStr=this.txtConTentStr.Text.ToString(); 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, "�����ƶ���Ϣ��ӳɹ���", "JiangChengZhiDu.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPJiangChengZhiDu Model = new ZWL.BLL.ERPJiangChengZhiDu(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblTitleStr.Text = Model.TitleStr.ToString(); this.lblJianJie.Text = Model.JianJie.ToString(); this.lblUserName.Text = Model.UserName.ToString(); this.lblTimeStr.Text = Model.TimeStr.ToString(); this.lblFuJianStr.Text = ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(), "../UpLoadFile/"); this.lblConTentStr.Text = Model.ConTentStr.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(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPJiangChengZhiDu Model = new ZWL.BLL.ERPJiangChengZhiDu(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblTitleStr.Text=Model.TitleStr.ToString(); this.lblJianJie.Text=Model.JianJie.ToString(); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); this.lblFuJianStr.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(),"../UpLoadFile/"); this.lblConTentStr.Text=Model.ConTentStr.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(); } }