Exemplo n.º 1
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPLinkMan MyModel = new ZWL.BLL.ERPLinkMan();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' and UserName='******' 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.º 2
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPLinkMan MyModel = new ZWL.BLL.ERPLinkMan();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' " + SetIfShare() + " 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.º 3
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPLinkMan MyModel = new ZWL.BLL.ERPLinkMan();
     GVData.DataSource = MyModel.GetList("CustomName Like '%" + this.TextBox1.Text + "%' and NameStr Like '%" + this.TextBox2.Text + "%'  and UserName 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.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPLinkMan model = new ZWL.BLL.ERPLinkMan();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblCustomName.Text      = model.CustomName;
            this.lblNameStr.Text         = model.NameStr;
            this.lblSex.Text             = model.Sex;
            this.lblBirthDay.Text        = model.BirthDay;
            this.lblSuoChuJiaoSe.Text    = model.SuoChuJiaoSe;
            this.lblZhiWu.Text           = model.ZhiWu;
            this.lblPeiOu.Text           = model.PeiOu;
            this.lblZiNv.Text            = model.ZiNv;
            this.lblDanWieDianHua.Text   = model.DanWieDianHua;
            this.lblDanWeiChuanZhen.Text = model.DanWeiChuanZhen;
            this.lblJiaTingZhuZhi.Text   = model.JiaTingZhuZhi;
            this.lblJiaTingYouBian.Text  = model.JiaTingYouBian;
            this.lblJiaTingDianHua.Text  = model.JiaTingDianHua;
            this.lblShouJi.Text          = model.ShouJi;
            this.lblXiaoLingTong.Text    = model.XiaoLingTong;
            this.lblEmail.Text           = model.Email;
            this.lblQQ.Text       = model.QQ;
            this.lblMsn.Text      = model.Msn;
            this.lblBackInfo.Text = model.BackInfo;
            this.lblUserName.Text = model.UserName;
            this.lblTimeStr.Text  = model.TimeStr.ToString();
            this.lblIFShare.Text  = model.IFShare;
            this.lblCusBakA.Text  = model.CusBakA;
            this.lblCusBakB.Text  = model.CusBakB;
            this.lblCusBakC.Text  = model.CusBakC;
            this.lblCusBakD.Text  = model.CusBakD;
            this.lblCusBakE.Text  = model.CusBakE;

            //写系统日志
            ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
            MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            MyRiZhi.DoSomething = "用户查看联系人信息(" + this.lblCustomName.Text + ")";
            MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
            MyRiZhi.Add();
        }
    }
Exemplo n.º 5
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        ZWL.BLL.ERPLinkMan model = new ZWL.BLL.ERPLinkMan();
        model.ID              = int.Parse(Request.QueryString["ID"].ToString());
        model.CustomName      = this.txtCustomName.Text;
        model.NameStr         = this.txtNameStr.Text;
        model.Sex             = this.txtSex.Text;
        model.BirthDay        = this.txtBirthDay.Text;
        model.SuoChuJiaoSe    = this.txtSuoChuJiaoSe.Text;
        model.ZhiWu           = this.txtZhiWu.Text;
        model.PeiOu           = this.txtPeiOu.Text;
        model.ZiNv            = this.txtZiNv.Text;
        model.DanWieDianHua   = this.txtDanWieDianHua.Text;
        model.DanWeiChuanZhen = this.txtDanWeiChuanZhen.Text;
        model.JiaTingZhuZhi   = this.txtJiaTingZhuZhi.Text;
        model.JiaTingYouBian  = this.txtJiaTingYouBian.Text;
        model.JiaTingDianHua  = this.txtJiaTingDianHua.Text;
        model.ShouJi          = this.txtShouJi.Text;
        model.XiaoLingTong    = this.txtXiaoLingTong.Text;
        model.Email           = this.txtEmail.Text;
        model.QQ              = this.txtQQ.Text;
        model.Msn             = this.txtMsn.Text;
        model.BackInfo        = this.txtBackInfo.Text;
        model.UserName        = this.Label1.Text;
        model.TimeStr         = DateTime.Parse(this.Label2.Text);
        model.IFShare         = this.txtIFShare.Text;
        model.CusBakA         = this.txtCusBakA.Text;
        model.CusBakB         = this.txtCusBakB.Text;
        model.CusBakC         = this.txtCusBakC.Text;
        model.CusBakD         = this.txtCusBakD.Text;
        model.CusBakE         = this.txtCusBakE.Text;
        model.Update();

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

        ZWL.Common.MessageBox.ShowAndRedirect(this, "联系人信息修改成功!", "MyCustomLinkMan.aspx?CustomName=" + Request.QueryString["CustomName"].ToString());
    }
Exemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPLinkMan model = new ZWL.BLL.ERPLinkMan();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtCustomName.Text      = model.CustomName;
         this.txtNameStr.Text         = model.NameStr;
         this.txtSex.Text             = model.Sex;
         this.txtBirthDay.Text        = model.BirthDay;
         this.txtSuoChuJiaoSe.Text    = model.SuoChuJiaoSe;
         this.txtZhiWu.Text           = model.ZhiWu;
         this.txtPeiOu.Text           = model.PeiOu;
         this.txtZiNv.Text            = model.ZiNv;
         this.txtDanWieDianHua.Text   = model.DanWieDianHua;
         this.txtDanWeiChuanZhen.Text = model.DanWeiChuanZhen;
         this.txtJiaTingZhuZhi.Text   = model.JiaTingZhuZhi;
         this.txtJiaTingYouBian.Text  = model.JiaTingYouBian;
         this.txtJiaTingDianHua.Text  = model.JiaTingDianHua;
         this.txtShouJi.Text          = model.ShouJi;
         this.txtXiaoLingTong.Text    = model.XiaoLingTong;
         this.txtEmail.Text           = model.Email;
         this.txtQQ.Text       = model.QQ;
         this.txtMsn.Text      = model.Msn;
         this.txtBackInfo.Text = model.BackInfo;
         this.Label1.Text      = model.UserName;
         this.Label2.Text      = model.TimeStr.ToString();
         this.txtIFShare.Text  = model.IFShare;
         this.txtCusBakA.Text  = model.CusBakA;
         this.txtCusBakB.Text  = model.CusBakB;
         this.txtCusBakC.Text  = model.CusBakC;
         this.txtCusBakD.Text  = model.CusBakD;
         this.txtCusBakE.Text  = model.CusBakE;
     }
 }