示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPHuiYuan Model = new ZWL.BLL.ERPHuiYuan();
         Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtNameStr.Text      = Model.NameStr.ToString();
         this.txtRuHuiDate.Text    = Model.RuHuiDate.ToString();
         this.txtJieShaoRen.Text   = Model.JieShaoRen.ToString();
         this.txtSexStr.Text       = Model.SexStr.ToString();
         this.txtJiGuan.Text       = Model.JiGuan.ToString();
         this.txtJingJi.Text       = Model.JingJi.ToString();
         this.txtChuShengDate.Text = Model.ChuShengDate.ToString();
         this.txtXueLi.Text        = Model.XueLi.ToString();
         this.txtZiLi.Text         = Model.ZiLi.ToString();
         this.txtGeXing.Text       = Model.GeXing.ToString();
         this.txtAiHao.Text        = Model.AiHao.ToString();
         this.txtAddress.Text      = Model.Address.ToString();
         this.txtTel.Text          = Model.Tel.ToString();
         this.txtMobTel.Text       = Model.MobTel.ToString();
         this.txtZuiJiaTime.Text   = Model.ZuiJiaTime.ToString();
         this.txtChangYong.Text    = Model.ChangYong.ToString();
         this.txtZiXin.Text        = Model.ZiXin.ToString();
         this.txtJieLun.Text       = Model.JieLun.ToString();
         this.txtBackInfo.Text     = Model.BackInfo.ToString();
         this.txtUserName.Text     = Model.UserName.ToString();
         this.txtTimeStr.Text      = Model.TimeStr.ToString();
     }
 }
示例#2
0
 public void DataBindToGridview(string IDList)
 {
     ZWL.BLL.ERPHuiYuan MyModel = new ZWL.BLL.ERPHuiYuan();
     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();
 }
示例#3
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPHuiYuan Model = new ZWL.BLL.ERPHuiYuan();

        Model.ID           = int.Parse(Request.QueryString["ID"].ToString());
        Model.NameStr      = this.txtNameStr.Text.ToString();
        Model.RuHuiDate    = this.txtRuHuiDate.Text.ToString();
        Model.JieShaoRen   = this.txtJieShaoRen.Text.ToString();
        Model.SexStr       = this.txtSexStr.Text.ToString();
        Model.JiGuan       = this.txtJiGuan.Text.ToString();
        Model.JingJi       = this.txtJingJi.Text.ToString();
        Model.ChuShengDate = this.txtChuShengDate.Text.ToString();
        Model.XueLi        = this.txtXueLi.Text.ToString();
        Model.ZiLi         = this.txtZiLi.Text.ToString();
        Model.GeXing       = this.txtGeXing.Text.ToString();
        Model.AiHao        = this.txtAiHao.Text.ToString();
        Model.Address      = this.txtAddress.Text.ToString();
        Model.Tel          = this.txtTel.Text.ToString();
        Model.MobTel       = this.txtMobTel.Text.ToString();
        Model.ZuiJiaTime   = this.txtZuiJiaTime.Text.ToString();
        Model.ChangYong    = this.txtChangYong.Text.ToString();
        Model.ZiXin        = this.txtZiXin.Text.ToString();
        Model.JieLun       = this.txtJieLun.Text.ToString();
        Model.BackInfo     = this.txtBackInfo.Text.ToString();
        Model.UserName     = this.txtUserName.Text.ToString();
        Model.TimeStr      = DateTime.Parse(this.txtTimeStr.Text);

        Model.Update();

        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户修改会员信息(" + this.txtNameStr.Text + ")";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "会员信息修改成功!", "HuiYuan.aspx");
    }
示例#4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPHuiYuan Model = new ZWL.BLL.ERPHuiYuan();
            Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblNameStr.Text      = Model.NameStr.ToString();
            this.lblRuHuiDate.Text    = Model.RuHuiDate.ToString();
            this.lblJieShaoRen.Text   = Model.JieShaoRen.ToString();
            this.lblSexStr.Text       = Model.SexStr.ToString();
            this.lblJiGuan.Text       = Model.JiGuan.ToString();
            this.lblJingJi.Text       = Model.JingJi.ToString();
            this.lblChuShengDate.Text = Model.ChuShengDate.ToString();
            this.lblXueLi.Text        = Model.XueLi.ToString();
            this.lblZiLi.Text         = Model.ZiLi.ToString();
            this.lblGeXing.Text       = Model.GeXing.ToString();
            this.lblAiHao.Text        = Model.AiHao.ToString();
            this.lblAddress.Text      = Model.Address.ToString();
            this.lblTel.Text          = Model.Tel.ToString();
            this.lblMobTel.Text       = Model.MobTel.ToString();
            this.lblZuiJiaTime.Text   = Model.ZuiJiaTime.ToString();
            this.lblChangYong.Text    = Model.ChangYong.ToString();
            this.lblZiXin.Text        = Model.ZiXin.ToString();
            this.lblJieLun.Text       = Model.JieLun.ToString();
            this.lblBackInfo.Text     = Model.BackInfo.ToString();
            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.lblNameStr.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }