Exemple #1
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPCustomInfo MyModel = new ZWL.BLL.ERPCustomInfo();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' " + GetTimeCondition() + " 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();
 }
Exemple #2
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPCustomInfo MyModel = new ZWL.BLL.ERPCustomInfo();
     GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' " + GetTimeCondition() + " " + 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();
 }
Exemple #3
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        if (ZWL.Common.PublicMethod.IFExists("CustomName", "ERPCustomInfo", int.Parse(Request.QueryString["ID"].ToString()), this.txtCustomName.Text) == true)
        {
            ZWL.BLL.ERPCustomInfo model = new ZWL.BLL.ERPCustomInfo();
            model.ID              = int.Parse(Request.QueryString["ID"].ToString());
            model.CustomName      = this.txtCustomName.Text;
            model.CustomSerils    = this.txtCustomSerils.Text;
            model.ChargeMan       = this.txtChargeMan.Text;
            model.Address         = this.txtAddress.Text;
            model.UrlLink         = this.txtUrlLink.Text;
            model.YouBian         = this.txtYouBian.Text;
            model.TelStr          = this.txtTelStr.Text;
            model.XingZhi         = this.txtXingZhi.Text;
            model.LaiYuan         = this.txtLaiYuan.Text;
            model.QuYu            = this.txtQuYu.Text;
            model.ZhuangTai       = this.txtZhuangTai.Text;
            model.RenShu          = this.txtRenShu.Text;
            model.BanGongMianJi   = this.txtBanGongMianJi.Text;
            model.LeiBie          = this.txtLeiBie.Text;
            model.JiBie           = this.txtJiBie.Text;
            model.YeWuFanWei      = this.txtYeWuFanWei.Text;
            model.HangYe          = this.txtHangYe.Text;
            model.MuQianWenTi     = this.txtMuQianWenTi.Text;
            model.YuJiDingDanDate = this.txtYuJiDingDanDate.Text;
            model.BackInfoA       = this.txtBackInfoA.Text;
            model.BackInfoB       = this.txtBackInfoB.Text;
            model.BackInfoC       = this.txtBackInfoC.Text;
            model.BackInfoD       = this.txtBackInfoD.Text;
            model.TimeStr         = DateTime.Parse(this.Label2.Text);
            model.UserName        = this.Label1.Text;

            model.DingDanCount = this.txtDingDanCount.Text;
            model.YuJiTiXing   = this.txtYuJiTiXing.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, "客户信息修改成功!", "MyCustom.aspx");
        }
        else
        {
            ZWL.Common.MessageBox.Show(this, "该客户名称已经存在,请查证后再输入!");
        }
    }
Exemple #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPCustomInfo model = new ZWL.BLL.ERPCustomInfo();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblCustomName.Text      = model.CustomName;
            CustomNameStr                = model.CustomName;
            this.lblCustomSerils.Text    = model.CustomSerils;
            this.lblChargeMan.Text       = model.ChargeMan;
            this.lblAddress.Text         = model.Address;
            this.lblUrlLink.Text         = model.UrlLink;
            this.lblYouBian.Text         = model.YouBian;
            this.lblTelStr.Text          = model.TelStr;
            this.lblXingZhi.Text         = model.XingZhi;
            this.lblLaiYuan.Text         = model.LaiYuan;
            this.lblQuYu.Text            = model.QuYu;
            this.lblZhuangTai.Text       = model.ZhuangTai;
            this.lblRenShu.Text          = model.RenShu;
            this.lblBanGongMianJi.Text   = model.BanGongMianJi;
            this.lblLeiBie.Text          = model.LeiBie;
            this.lblJiBie.Text           = model.JiBie;
            this.lblYeWuFanWei.Text      = model.YeWuFanWei;
            this.lblHangYe.Text          = model.HangYe;
            this.lblMuQianWenTi.Text     = model.MuQianWenTi;
            this.lblYuJiDingDanDate.Text = model.YuJiDingDanDate;
            this.lblBackInfoA.Text       = model.BackInfoA;
            this.lblBackInfoB.Text       = model.BackInfoB;
            this.lblBackInfoC.Text       = model.BackInfoC;
            this.lblBackInfoD.Text       = model.BackInfoD;
            this.lblTimeStr.Text         = model.TimeStr.ToString();
            this.lblUserName.Text        = model.UserName;

            this.Label2.Text = model.DingDanCount;
            this.Label1.Text = model.YuJiTiXing;
            this.Label3.Text = model.IFShare;
            this.Label4.Text = model.CusBakA;
            this.Label5.Text = model.CusBakB;
            this.Label6.Text = model.CusBakC;
            this.Label7.Text = model.CusBakD;
            this.Label8.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();
        }
    }
Exemple #5
0
    public void DataBindToGridview()
    {
        string XiaShuUser = ZWL.DBUtility.DbHelperSQL.GetSHSLInt("select top 1 XiaShuUser from ERPUser where UserName='******'");
        string SSTempSTR = "";
        if (XiaShuUser != "全部")
        {
            SSTempSTR = "and UserName in(" + "'" + XiaShuUser.Replace(",", "','") + "'" + ")";
        }

        ZWL.BLL.ERPCustomInfo MyModel = new ZWL.BLL.ERPCustomInfo();
        GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' " + GetTimeCondition() + " " + SSTempSTR + " 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();
    }
Exemple #6
0
    public void DataBindToGridview()
    {
        string XiaShuUser = ZWL.DBUtility.DbHelperSQL.GetSHSLInt("select top 1 XiaShuUser from ERPUser where UserName='******'");
        string SSTempSTR  = "";

        if (XiaShuUser != "全部")
        {
            SSTempSTR = "and UserName in(" + "'" + XiaShuUser.Replace(",", "','") + "'" + ")";
        }

        ZWL.BLL.ERPCustomInfo MyModel = new ZWL.BLL.ERPCustomInfo();
        GVData.DataSource = MyModel.GetList(" " + this.DropDownList1.SelectedItem.Value.ToString() + " Like '%" + this.TextBox1.Text + "%' " + GetTimeCondition() + " " + SSTempSTR + " 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();
    }
Exemple #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ZWL.Common.PublicMethod.CheckSession();
         ZWL.BLL.ERPCustomInfo model = new ZWL.BLL.ERPCustomInfo();
         model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
         this.txtCustomName.Text      = model.CustomName;
         this.txtCustomSerils.Text    = model.CustomSerils;
         this.txtChargeMan.Text       = model.ChargeMan;
         this.txtAddress.Text         = model.Address;
         this.txtUrlLink.Text         = model.UrlLink;
         this.txtYouBian.Text         = model.YouBian;
         this.txtTelStr.Text          = model.TelStr;
         this.txtXingZhi.Text         = model.XingZhi;
         this.txtLaiYuan.Text         = model.LaiYuan;
         this.txtQuYu.Text            = model.QuYu;
         this.txtZhuangTai.Text       = model.ZhuangTai;
         this.txtRenShu.Text          = model.RenShu;
         this.txtBanGongMianJi.Text   = model.BanGongMianJi;
         this.txtLeiBie.Text          = model.LeiBie;
         this.txtJiBie.Text           = model.JiBie;
         this.txtYeWuFanWei.Text      = model.YeWuFanWei;
         this.txtHangYe.Text          = model.HangYe;
         this.txtMuQianWenTi.Text     = model.MuQianWenTi;
         this.txtYuJiDingDanDate.Text = model.YuJiDingDanDate;
         this.txtBackInfoA.Text       = model.BackInfoA;
         this.txtBackInfoB.Text       = model.BackInfoB;
         this.txtBackInfoC.Text       = model.BackInfoC;
         this.txtBackInfoD.Text       = model.BackInfoD;
         this.Label1.Text             = model.UserName;
         this.Label2.Text             = model.TimeStr.ToString();
         this.txtDingDanCount.Text    = model.DingDanCount;
         this.txtYuJiTiXing.Text      = model.YuJiTiXing;
         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;
     }
 }
Exemple #8
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        if (ZWL.Common.PublicMethod.IFExists("CustomName", "ERPCustomInfo", 0, this.txtCustomName.Text) == true)
        {
            string CustomName      = this.txtCustomName.Text;
            string CustomSerils    = this.txtCustomSerils.Text;
            string ChargeMan       = this.txtChargeMan.Text;
            string Address         = this.txtAddress.Text;
            string UrlLink         = this.txtUrlLink.Text;
            string YouBian         = this.txtYouBian.Text;
            string TelStr          = this.txtTelStr.Text;
            string XingZhi         = this.txtXingZhi.Text;
            string LaiYuan         = this.txtLaiYuan.Text;
            string QuYu            = this.txtQuYu.Text;
            string ZhuangTai       = this.txtZhuangTai.Text;
            string RenShu          = this.txtRenShu.Text;
            string BanGongMianJi   = this.txtBanGongMianJi.Text;
            string LeiBie          = this.txtLeiBie.Text;
            string JiBie           = this.txtJiBie.Text;
            string YeWuFanWei      = this.txtYeWuFanWei.Text;
            string HangYe          = this.txtHangYe.Text;
            string MuQianWenTi     = this.txtMuQianWenTi.Text;
            string YuJiDingDanDate = this.txtYuJiDingDanDate.Text;
            string BackInfoA       = this.txtBackInfoA.Text;
            string BackInfoB       = this.txtBackInfoB.Text;
            string BackInfoC       = this.txtBackInfoC.Text;
            string BackInfoD       = this.txtBackInfoD.Text;

            ZWL.BLL.ERPCustomInfo model = new ZWL.BLL.ERPCustomInfo();
            model.CustomName      = CustomName;
            model.CustomSerils    = CustomSerils;
            model.ChargeMan       = ChargeMan;
            model.Address         = Address;
            model.UrlLink         = UrlLink;
            model.YouBian         = YouBian;
            model.TelStr          = TelStr;
            model.XingZhi         = XingZhi;
            model.LaiYuan         = LaiYuan;
            model.QuYu            = QuYu;
            model.ZhuangTai       = ZhuangTai;
            model.RenShu          = RenShu;
            model.BanGongMianJi   = BanGongMianJi;
            model.LeiBie          = LeiBie;
            model.JiBie           = JiBie;
            model.YeWuFanWei      = YeWuFanWei;
            model.HangYe          = HangYe;
            model.MuQianWenTi     = MuQianWenTi;
            model.YuJiDingDanDate = YuJiDingDanDate;
            model.BackInfoA       = BackInfoA;
            model.BackInfoB       = BackInfoB;
            model.BackInfoC       = BackInfoC;
            model.BackInfoD       = BackInfoD;
            model.TimeStr         = DateTime.Now;
            model.UserName        = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            model.DingDanCount    = this.txtDingDanCount.Text;
            model.YuJiTiXing      = this.txtYuJiTiXing.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.NameEng               = this.txtNameEng.Text.ToString();
            model.FaRenDaiMa            = this.txtFaRenDaiMa.Text.ToString();
            model.YingYeZhiZhao         = this.txtYingYeZhiZhao.Text.ToString();
            model.ZiBenE                = this.txtZiBenE.Text.ToString();
            model.ZuZhiXingZhi          = this.txtZuZhiXingZhi.Text.ToString();
            model.YingYeChangSuo        = this.txtYingYeChangSuo.Text.ToString();
            model.JingJi                = this.txtJingJi.Text.ToString();
            model.SheHuiGuanXi          = this.txtSheHuiGuanXi.Text.ToString();
            model.BenGongSiGuanXi       = this.txtBenGongSiGuanXi.Text.ToString();
            model.JieShaoRen            = this.txtJieShaoRen.Text.ToString();
            model.BaoZhengRen           = this.txtBaoZhengRen.Text.ToString();
            model.ShuiPiaoName          = this.txtShuiPiaoName.Text.ToString();
            model.DiZhiDianHua          = this.txtDiZhiDianHua.Text.ToString();
            model.NaShuiDengJiHao       = this.txtNaShuiDengJiHao.Text.ToString();
            model.KaiHuHangZhangHao     = this.txtKaiHuHangZhangHao.Text.ToString();
            model.JiaoYiFangShi         = this.txtJiaoYiFangShi.Text.ToString();
            model.ZhangQi               = this.txtZhangQi.Text.ToString();
            model.FuKuanFangShi         = this.txtFuKuanFangShi.Text.ToString();
            model.YunFeiChengDan        = this.txtYunFeiChengDan.Text.ToString();
            model.CuXiaoFei             = this.txtCuXiaoFei.Text.ToString();
            model.GuangGaoFei           = this.txtGuangGaoFei.Text.ToString();
            model.YouDaiZheKou          = this.txtYouDaiZheKou.Text.ToString();
            model.FuKuanTaiDu           = this.txtFuKuanTaiDu.Text.ToString();
            model.ShiFouDuiZhang        = this.txtShiFouDuiZhang.Text.ToString();
            model.DuiZhangShiJian       = this.txtDuiZhangShiJian.Text.ToString();
            model.ZuiJiaPaiFangShiJian  = this.txtZuiJiaPaiFangShiJian.Text.ToString();
            model.ZuiJiaShouKuanShiJian = this.txtZuiJiaShouKuanShiJian.Text.ToString();
            model.QiTaGongYing          = this.txtQiTaGongYing.Text.ToString();
            model.ChangYongNaJia        = this.txtChangYongNaJia.Text.ToString();
            model.GongSiYiJian          = this.txtGongSiYiJian.Text.ToString();
            model.ZiXin      = this.txtZiXin.Text.ToString();
            model.ZongJieLun = this.txtZongJieLun.Text.ToString();

            model.Add();

            //写系统日志
            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, "客户信息添加成功!", "MyCustom.aspx");
        }
        else
        {
            ZWL.Common.MessageBox.Show(this, "该客户名称已经存在,请查证后再输入!");
        }
    }
Exemple #9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPCustomInfo model = new ZWL.BLL.ERPCustomInfo();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.lblCustomName.Text      = model.CustomName;
            CustomNameStr                = model.CustomName;
            this.lblCustomSerils.Text    = model.CustomSerils;
            this.lblChargeMan.Text       = model.ChargeMan;
            this.lblAddress.Text         = model.Address;
            this.lblUrlLink.Text         = model.UrlLink;
            this.lblYouBian.Text         = model.YouBian;
            this.lblTelStr.Text          = model.TelStr;
            this.lblXingZhi.Text         = model.XingZhi;
            this.lblLaiYuan.Text         = model.LaiYuan;
            this.lblQuYu.Text            = model.QuYu;
            this.lblZhuangTai.Text       = model.ZhuangTai;
            this.lblRenShu.Text          = model.RenShu;
            this.lblBanGongMianJi.Text   = model.BanGongMianJi;
            this.lblLeiBie.Text          = model.LeiBie;
            this.lblJiBie.Text           = model.JiBie;
            this.lblYeWuFanWei.Text      = model.YeWuFanWei;
            this.lblHangYe.Text          = model.HangYe;
            this.lblMuQianWenTi.Text     = model.MuQianWenTi;
            this.lblYuJiDingDanDate.Text = model.YuJiDingDanDate;
            this.lblBackInfoA.Text       = model.BackInfoA;
            this.lblBackInfoB.Text       = model.BackInfoB;
            this.lblBackInfoC.Text       = model.BackInfoC;
            this.lblBackInfoD.Text       = model.BackInfoD;
            this.lblTimeStr.Text         = model.TimeStr.ToString();
            this.lblUserName.Text        = model.UserName;

            this.Label2.Text = model.DingDanCount;
            this.Label1.Text = model.YuJiTiXing;
            this.Label3.Text = model.IFShare;
            this.Label4.Text = model.CusBakA;
            this.Label5.Text = model.CusBakB;
            this.Label6.Text = model.CusBakC;
            this.Label7.Text = model.CusBakD;
            this.Label8.Text = model.CusBakE;

            this.lblNameEng.Text               = model.NameEng.ToString();
            this.lblFaRenDaiMa.Text            = model.FaRenDaiMa.ToString();
            this.lblYingYeZhiZhao.Text         = model.YingYeZhiZhao.ToString();
            this.lblZiBenE.Text                = model.ZiBenE.ToString();
            this.lblZuZhiXingZhi.Text          = model.ZuZhiXingZhi.ToString();
            this.lblYingYeChangSuo.Text        = model.YingYeChangSuo.ToString();
            this.lblJingJi.Text                = model.JingJi.ToString();
            this.lblSheHuiGuanXi.Text          = model.SheHuiGuanXi.ToString();
            this.lblBenGongSiGuanXi.Text       = model.BenGongSiGuanXi.ToString();
            this.lblJieShaoRen.Text            = model.JieShaoRen.ToString();
            this.lblBaoZhengRen.Text           = model.BaoZhengRen.ToString();
            this.lblShuiPiaoName.Text          = model.ShuiPiaoName.ToString();
            this.lblDiZhiDianHua.Text          = model.DiZhiDianHua.ToString();
            this.lblNaShuiDengJiHao.Text       = model.NaShuiDengJiHao.ToString();
            this.lblKaiHuHangZhangHao.Text     = model.KaiHuHangZhangHao.ToString();
            this.lblJiaoYiFangShi.Text         = model.JiaoYiFangShi.ToString();
            this.lblZhangQi.Text               = model.ZhangQi.ToString();
            this.lblFuKuanFangShi.Text         = model.FuKuanFangShi.ToString();
            this.lblYunFeiChengDan.Text        = model.YunFeiChengDan.ToString();
            this.lblCuXiaoFei.Text             = model.CuXiaoFei.ToString();
            this.lblGuangGaoFei.Text           = model.GuangGaoFei.ToString();
            this.lblYouDaiZheKou.Text          = model.YouDaiZheKou.ToString();
            this.lblFuKuanTaiDu.Text           = model.FuKuanTaiDu.ToString();
            this.lblShiFouDuiZhang.Text        = model.ShiFouDuiZhang.ToString();
            this.lblDuiZhangShiJian.Text       = model.DuiZhangShiJian.ToString();
            this.lblZuiJiaPaiFangShiJian.Text  = model.ZuiJiaPaiFangShiJian.ToString();
            this.lblZuiJiaShouKuanShiJian.Text = model.ZuiJiaShouKuanShiJian.ToString();
            this.lblQiTaGongYing.Text          = model.QiTaGongYing.ToString();
            this.lblChangYongNaJia.Text        = model.ChangYongNaJia.ToString();
            this.lblGongSiYiJian.Text          = model.GongSiYiJian.ToString();
            this.lblZiXin.Text      = model.ZiXin.ToString();
            this.lblZongJieLun.Text = model.ZongJieLun.ToString();


            //写系统日志
            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();
        }
    }
Exemple #10
0
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        if (ZWL.Common.PublicMethod.IFExists("CustomName", "ERPCustomInfo", 0, this.txtCustomName.Text) == true)
        {
            string CustomName      = this.txtCustomName.Text;
            string CustomSerils    = this.txtCustomSerils.Text;
            string ChargeMan       = this.txtChargeMan.Text;
            string Address         = this.txtAddress.Text;
            string UrlLink         = this.txtUrlLink.Text;
            string YouBian         = this.txtYouBian.Text;
            string TelStr          = this.txtTelStr.Text;
            string XingZhi         = this.txtXingZhi.Text;
            string LaiYuan         = this.txtLaiYuan.Text;
            string QuYu            = this.txtQuYu.Text;
            string ZhuangTai       = this.txtZhuangTai.Text;
            string RenShu          = this.txtRenShu.Text;
            string BanGongMianJi   = this.txtBanGongMianJi.Text;
            string LeiBie          = this.txtLeiBie.Text;
            string JiBie           = this.txtJiBie.Text;
            string YeWuFanWei      = this.txtYeWuFanWei.Text;
            string HangYe          = this.txtHangYe.Text;
            string MuQianWenTi     = this.txtMuQianWenTi.Text;
            string YuJiDingDanDate = this.txtYuJiDingDanDate.Text;
            string BackInfoA       = this.txtBackInfoA.Text;
            string BackInfoB       = this.txtBackInfoB.Text;
            string BackInfoC       = this.txtBackInfoC.Text;
            string BackInfoD       = this.txtBackInfoD.Text;

            ZWL.BLL.ERPCustomInfo model = new ZWL.BLL.ERPCustomInfo();
            model.CustomName      = CustomName;
            model.CustomSerils    = CustomSerils;
            model.ChargeMan       = ChargeMan;
            model.Address         = Address;
            model.UrlLink         = UrlLink;
            model.YouBian         = YouBian;
            model.TelStr          = TelStr;
            model.XingZhi         = XingZhi;
            model.LaiYuan         = LaiYuan;
            model.QuYu            = QuYu;
            model.ZhuangTai       = ZhuangTai;
            model.RenShu          = RenShu;
            model.BanGongMianJi   = BanGongMianJi;
            model.LeiBie          = LeiBie;
            model.JiBie           = JiBie;
            model.YeWuFanWei      = YeWuFanWei;
            model.HangYe          = HangYe;
            model.MuQianWenTi     = MuQianWenTi;
            model.YuJiDingDanDate = YuJiDingDanDate;
            model.BackInfoA       = BackInfoA;
            model.BackInfoB       = BackInfoB;
            model.BackInfoC       = BackInfoC;
            model.BackInfoD       = BackInfoD;
            model.TimeStr         = DateTime.Now;
            model.UserName        = ZWL.Common.PublicMethod.GetSessionValue("UserName");
            model.DingDanCount    = this.txtDingDanCount.Text;
            model.YuJiTiXing      = this.txtYuJiTiXing.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.Add();

            //写系统日志
            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, "客户信息添加成功!", "MyCustom.aspx");
        }
        else
        {
            ZWL.Common.MessageBox.Show(this, "该客户名称已经存在,请查证后再输入!");
        }
    }
Exemple #11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            ZWL.BLL.ERPCustomInfo model = new ZWL.BLL.ERPCustomInfo();
            model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
            this.txtCustomName.Text      = model.CustomName;
            this.txtCustomSerils.Text    = model.CustomSerils;
            this.txtChargeMan.Text       = model.ChargeMan;
            this.txtAddress.Text         = model.Address;
            this.txtUrlLink.Text         = model.UrlLink;
            this.txtYouBian.Text         = model.YouBian;
            this.txtTelStr.Text          = model.TelStr;
            this.txtXingZhi.Text         = model.XingZhi;
            this.txtLaiYuan.Text         = model.LaiYuan;
            this.txtQuYu.Text            = model.QuYu;
            this.txtZhuangTai.Text       = model.ZhuangTai;
            this.txtRenShu.Text          = model.RenShu;
            this.txtBanGongMianJi.Text   = model.BanGongMianJi;
            this.txtLeiBie.Text          = model.LeiBie;
            this.txtJiBie.Text           = model.JiBie;
            this.txtYeWuFanWei.Text      = model.YeWuFanWei;
            this.txtHangYe.Text          = model.HangYe;
            this.txtMuQianWenTi.Text     = model.MuQianWenTi;
            this.txtYuJiDingDanDate.Text = model.YuJiDingDanDate;
            this.txtBackInfoA.Text       = model.BackInfoA;
            this.txtBackInfoB.Text       = model.BackInfoB;
            this.txtBackInfoC.Text       = model.BackInfoC;
            this.txtBackInfoD.Text       = model.BackInfoD;
            this.Label1.Text             = model.UserName;
            this.Label2.Text             = model.TimeStr.ToString();
            this.txtDingDanCount.Text    = model.DingDanCount;
            this.txtYuJiTiXing.Text      = model.YuJiTiXing;
            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;

            this.txtNameEng.Text               = model.NameEng.ToString();
            this.txtFaRenDaiMa.Text            = model.FaRenDaiMa.ToString();
            this.txtYingYeZhiZhao.Text         = model.YingYeZhiZhao.ToString();
            this.txtZiBenE.Text                = model.ZiBenE.ToString();
            this.txtZuZhiXingZhi.Text          = model.ZuZhiXingZhi.ToString();
            this.txtYingYeChangSuo.Text        = model.YingYeChangSuo.ToString();
            this.txtJingJi.Text                = model.JingJi.ToString();
            this.txtSheHuiGuanXi.Text          = model.SheHuiGuanXi.ToString();
            this.txtBenGongSiGuanXi.Text       = model.BenGongSiGuanXi.ToString();
            this.txtJieShaoRen.Text            = model.JieShaoRen.ToString();
            this.txtBaoZhengRen.Text           = model.BaoZhengRen.ToString();
            this.txtShuiPiaoName.Text          = model.ShuiPiaoName.ToString();
            this.txtDiZhiDianHua.Text          = model.DiZhiDianHua.ToString();
            this.txtNaShuiDengJiHao.Text       = model.NaShuiDengJiHao.ToString();
            this.txtKaiHuHangZhangHao.Text     = model.KaiHuHangZhangHao.ToString();
            this.txtJiaoYiFangShi.Text         = model.JiaoYiFangShi.ToString();
            this.txtZhangQi.Text               = model.ZhangQi.ToString();
            this.txtFuKuanFangShi.Text         = model.FuKuanFangShi.ToString();
            this.txtYunFeiChengDan.Text        = model.YunFeiChengDan.ToString();
            this.txtCuXiaoFei.Text             = model.CuXiaoFei.ToString();
            this.txtGuangGaoFei.Text           = model.GuangGaoFei.ToString();
            this.txtYouDaiZheKou.Text          = model.YouDaiZheKou.ToString();
            this.txtFuKuanTaiDu.Text           = model.FuKuanTaiDu.ToString();
            this.txtShiFouDuiZhang.Text        = model.ShiFouDuiZhang.ToString();
            this.txtDuiZhangShiJian.Text       = model.DuiZhangShiJian.ToString();
            this.txtZuiJiaPaiFangShiJian.Text  = model.ZuiJiaPaiFangShiJian.ToString();
            this.txtZuiJiaShouKuanShiJian.Text = model.ZuiJiaShouKuanShiJian.ToString();
            this.txtQiTaGongYing.Text          = model.QiTaGongYing.ToString();
            this.txtChangYongNaJia.Text        = model.ChangYongNaJia.ToString();
            this.txtGongSiYiJian.Text          = model.GongSiYiJian.ToString();
            this.txtZiXin.Text      = model.ZiXin.ToString();
            this.txtZongJieLun.Text = model.ZongJieLun.ToString();
        }
    }