Example #1
0
    public void BindDate()
    {
        CountryCity2.SelectCountry("中国", "", "", "");

        //会员编号
        string ags = BLL.CommonClass.CommonDataBLL.GetMemberNumber();

        txtNumber.Text = "会员编号:" + ags;
    }
Example #2
0
 /// <summary>
 /// 发货方式改变,地址也改变
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void DDLSendType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lblOdType.Text == GetTran("004008", "注册报单"))
     {
         int selV = int.Parse(this.DDLSendType.SelectedValue);
         if (selV == 0)//公司发货给店铺
         {
             string    sql      = "select cpccode,storeaddress from storeinfo where storeid='" + mim.StoreID + "'";
             DataTable dt_Store = DAL.DBHelper.ExecuteDataTable(sql);
             if (dt_Store.Rows.Count > 0)
             {
                 CountryCity2.SetCityCode(dt_Store.Rows[0][0].ToString());//将注册的地址设置为默认的
                 Txtdz.Text = dt_Store.Rows[0][1].ToString();
             }
         }
         else //公司发货给会员
         {
             if (mim != null)
             {
                 CountryCity2.SetCityCode(mim.CPCCode);//将注册的地址设置为默认的
                 Txtdz.Text = mim.Address;
             }
         }
     }
     else
     {
         int selV = int.Parse(this.DDLSendType.SelectedValue);
         if (selV == 0)//公司发货给店铺
         {
             if (Session["Member"] != null)
             {
                 string    sql      = "select scpccode,storeaddress from storeinfo si left join memberinfo mi on si.storeid=mi.storeid where mi.number='" + luo.MemBh + "'";
                 DataTable dt_Store = DAL.DBHelper.ExecuteDataTable(sql);
                 if (dt_Store.Rows.Count > 0)
                 {
                     CountryCity2.SetCityCode(dt_Store.Rows[0][0].ToString());//将注册的地址设置为默认的
                     Txtdz.Text = dt_Store.Rows[0][1].ToString();
                 }
             }
         }
         else //公司发货给会员
         {
             if (Session["Member"] != null)
             {
                 string    sql       = "select cpccode,address from memberinfo where number='" + luo.MemBh + "'";
                 DataTable dt_Member = DAL.DBHelper.ExecuteDataTable(sql);
                 if (dt_Member.Rows.Count > 0)
                 {
                     CountryCity2.SetCityCode(dt_Member.Rows[0][0].ToString());//将注册的地址设置为默认的
                     Txtdz.Text = dt_Member.Rows[0][1].ToString();
                 }
             }
         }
     }
 }
Example #3
0
    protected void rbtAddress_SelectedIndexChanged(object sender, EventArgs e)
    {
        string asg = this.rbtAddress.SelectedValue;

        string[] addr = asg.Split(' ');

        //ddth.SelectedValue = addr[6];
        //DDLSendType.SelectedValue = addr[5];
        CountryCity2.SelectCountry(addr[0], addr[1], addr[2], addr[3]);
        Txtdz.Text         = addr[4];
        txtConName.Text    = addr[addr.Length - 2];
        txtOtherPhone.Text = addr[addr.Length - 1];
    }
Example #4
0
    public void BindDate()
    {
        CountryCity2.SelectCountry("中国", "", "", "");
        if (Session["UserType"] != null && Session["UserType"].ToString() != "3")
        {
            if (Session["UserType"].ToString() == "2")
            {
                //top.Visible = false;
                //bottom.Visible = false;
                //STop1.Visible = true;
                //SLeft1.Visible = true;
            }
            else
            {
                //    top.Visible = false;
                //    bottom.Visible = false;
                //    STop1.Visible = false;
                //    SLeft1.Visible = false;
            }
        }
        else
        {
            //top.Visible = true;
            //bottom.Visible = true;
            //STop1.Visible = false;
            //SLeft1.Visible = false;
        }

        // dplCardType.SelectedIndex = 1;

        //会员编号
        string ags = BLL.CommonClass.CommonDataBLL.GetMemberNumber();

        txtNumber.Text          = ags;
        HFNumber.Value          = ags;
        this.txtNumber.ReadOnly = true;
        txtDirect.Text          = Session["Member"].ToString();
        hiddirect.Value         = Session["Member"].ToString();
        DataTable dts = DAL.DBHelper.ExecuteDataTable("select top 1 * from config order by createdate desc");

        if (dts.Rows != null && dts.Rows.Count > 0)
        {
            tz300.Text       = Convert.ToInt32(dts.Rows[0]["para1"]).ToString();
            tz3000.Text      = Convert.ToInt32(dts.Rows[0]["para2"]).ToString();
            tz21000.Text     = Convert.ToInt32(dts.Rows[0]["para3"]).ToString();
            hidtzmoney.Value = Convert.ToInt32(dts.Rows[0]["para1"]).ToString();
        }
    }
Example #5
0
    public void ReaderMemberInfo(string bianhao, string OrderId)
    {
        MemberInfoModel mim = new MemberInfoModel();

        DataTable dtmb = RegistermemberBLL.Getcontryofmember(bianhao);

        if (dtmb != null && dtmb.Rows.Count > 0)
        {
            Txtyb.Text = dtmb.Rows[0]["postcode"].ToString();


            mim.PostalCode = dtmb.Rows[0]["postalCode"].ToString();
            mim.HomeTele   = dtmb.Rows[0]["homeTele"].ToString();
            mim.MobileTele = dtmb.Rows[0]["MobileTele"].ToString();
            mim.Email      = dtmb.Rows[0]["Email"].ToString();
        }

        DataTable dtorder = RegistermemberBLL.Getorderinfoofmember(OrderId);

        if (dtorder != null && dtorder.Rows.Count > 0)
        {
            CountryCity2.SelectCountry(dtorder.Rows[0]["Country"].ToString(), dtorder.Rows[0]["Province"].ToString(), dtorder.Rows[0]["City"].ToString(), dtorder.Rows[0]["Xian"].ToString());
            Txtdz.Text           = Encryption.Encryption.GetDecipherAddress(dtorder.Rows[0]["ConAddress"].ToString());
            mim.Address          = Encryption.Encryption.GetDecipherAddress(dtorder.Rows[0]["ConAddress"].ToString());
            mim.CPCCode          = dtorder.Rows[0]["ccpccode"].ToString();
            ViewState["cpccode"] = dtorder.Rows[0]["ccpccode"].ToString();
            ddth.SelectedValue   = dtorder.Rows[0]["sendType"].ToString();

            Ddzf.SelectedValue      = dtorder.Rows[0]["DefrayType"].ToString();
            ViewState["DefrayType"] = dtorder.Rows[0]["DefrayType"].ToString();
            if (dtorder.Rows[0]["defrayType"].ToString() == "2")
            {
                this.txtdzbh.Text = dtorder.Rows[0]["electronicAccountId"].ToString();
            }
            DDLSendType.SelectedValue = dtorder.Rows[0]["SendWay"].ToString();
        }

        Session["mim"] = mim;
    }
Example #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //获取标准币种
        bzCurrency = CommonDataBLL.GetStandard();
        i          = (AjaxClass.GetCurrency(Convert.ToInt32(bzCurrency), Convert.ToInt32(Session["Default_Currency"].ToString())));
        Permissions.ThreeRedirect(Page, "../member/" + Permissions.redirUrl);
        luo.SetVlaue();
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxMemShopCart));
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));

        Translations();

        if (!IsPostBack)
        {
            BindRadioType();

            if (Session["mbreginfo"] != null)
            {
                mim = (MemberInfoModel)Session["mbreginfo"];
            }
            if (Session["UserType"] != null && Session["UserType"].ToString() != "3" && Session["EditOrderID"] == null)
            {
                top.Visible          = false;
                bottom.Visible       = false;
                STop1.Visible        = false;
                SLeft1.Visible       = false;
                txtMemBh.Visible     = true;
                lblMemBh.Style.Value = "display:none;";
            }
            else
            {
                if (Session["UserType"].ToString() == "2")
                {
                    top.Visible    = false;
                    bottom.Visible = false;
                    STop1.Visible  = true;
                    SLeft1.Visible = true;
                }
                else
                {
                    top.Visible    = false;
                    bottom.Visible = false;
                    STop1.Visible  = false;
                    SLeft1.Visible = false;
                }

                txtMemBh.Style.Value = "display:none;";
                lblMemBh.Style.Value = "display:block;";

                txtMemBh.Text = luo.MemBh;
                lblMemBh.Text = luo.MemBh;
            }

            BindData();

            //不是注册过来的新会员
            if (Session["mbreginfo"] == null)
            {
                if ((Session["UserType"] != null && Session["UserType"].ToString() == "3") || Session["EditOrderID"] != null)
                {
                    top.Visible    = true;
                    bottom.Visible = true;
                    STop1.Visible  = false;
                    SLeft1.Visible = false;


                    Txtyddh.Visible = false;
                    txtName.Visible = false;

                    //不是注册过来的,就进行名称和邮编的查询
                    DataTable dt = DAL.DBHelper.ExecuteDataTable("select name,postalcode,mobiletele,cpccode,address,storeid from memberinfo where number='" + luo.MemBh + "'");
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        this.txtName.Text = Encryption.Encryption.GetDecipherName(dt.Rows[0]["Name"].ToString());
                        this.labName.Text = Encryption.Encryption.GetDecipherName(dt.Rows[0]["Name"].ToString());
                        if (dt.Rows[0]["postalcode"].ToString() != "")
                        {
                            this.txtPostCode.Text = dt.Rows[0]["postalcode"].ToString();
                            this.labPostCode.Text = dt.Rows[0]["postalcode"].ToString();
                        }
                        else
                        {
                            this.txtPostCode.Text = "111111";
                            this.labPostCode.Text = "111111";
                        }
                        this.Txtyddh.Text = dt.Rows[0]["mobiletele"].ToString();
                        this.labyddh.Text = dt.Rows[0]["mobiletele"].ToString();
                    }
                    GetBindAddress();
                }
                else
                {
                    if (Session["UserType"].ToString() == "2")
                    {
                        top.Visible    = false;
                        bottom.Visible = false;
                        STop1.Visible  = true;
                        SLeft1.Visible = true;
                    }
                    else
                    {
                        top.Visible    = true;
                        bottom.Visible = true;
                        STop1.Visible  = false;
                        SLeft1.Visible = false;
                    }


                    this.rbtAddress.Items.Add(GetTran("000200", "新地址"));

                    this.rbtAddress.SelectedIndex = 0;
                    txtName.Enabled = false;
                    Txtyddh.Enabled = false;
                }
            }
            else
            {
                if (Session["UserType"] != null && Session["UserType"].ToString() != "3" && Session["EditOrderID"] == null)
                {
                    top.Visible          = false;
                    bottom.Visible       = false;
                    STop1.Visible        = false;
                    SLeft1.Visible       = false;
                    txtMemBh.Visible     = true;
                    lblMemBh.Style.Value = "display:none;";
                }
                else
                {
                    if (Session["UserType"].ToString() == "2")
                    {
                        top.Visible    = false;
                        bottom.Visible = false;
                        STop1.Visible  = true;
                        SLeft1.Visible = true;
                    }
                    else
                    {
                        top.Visible    = false;
                        bottom.Visible = false;
                        STop1.Visible  = false;
                        SLeft1.Visible = false;
                    }
                }
                //邮编和姓名默认赋值进去
                MemberInfoModel mi = (MemberInfoModel)Session["mbreginfo"];
                mim = mi;

                txtMemBh.Style.Value = "display:none;";
                lblMemBh.Style.Value = "display:block;";
                txtMemBh.Text        = mi.Number;
                lblMemBh.Text        = mi.Number;

                this.txtName.Text     = Encryption.Encryption.GetDecipherName(mi.Name);
                this.labName.Text     = Encryption.Encryption.GetDecipherName(mi.Name);
                this.txtPostCode.Text = mi.PostalCode;
                this.labPostCode.Text = mi.PostalCode;
                if (mi.PostalCode.Length == 0)
                {
                    this.labPostCode.Text = "111111";
                    this.txtPostCode.Text = "111111";
                }
                this.Txtyddh.Text = mi.MobileTele;
                this.labyddh.Text = mi.MobileTele;

                txtConName.Text    = Encryption.Encryption.GetDecipherName(mi.Name);
                txtOtherPhone.Text = mi.MobileTele;
                this.txtName.Attributes.Add("style", "display:none;");
                this.txtPostCode.Attributes.Add("style", "display:none;");
                this.Txtyddh.Attributes.Add("style", "display:none;");
                if (mi.CPCCode.Trim().Length > 0)
                {
                    CountryCity2.SetCityCode(mi.CPCCode);//将注册的地址设置为默认的
                }
                Txtdz.Text = mi.Address;
                GetBindAddress();
            }
            p_content2.Style.Add("display", "none");
        }
    }
Example #7
0
    /// <summary>
    /// 注册过来的新会员
    /// </summary>
    private void GetBindAddress()
    {
        DataTable dt = BLL.CommonClass.CommonDataBLL.GetBindAddress(luo.MemBh);

        if (dt.Rows.Count > 0)
        {
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                string code   = dt.Rows[i][0].ToString().Substring(0, 8);
                string addres = BLL.CommonClass.CommonDataBLL.GetAddressByCode(code);
                addres += " " + dt.Rows[i][0].ToString().Substring(8, dt.Rows[i][0].ToString().Length - 8);
                addres += " " + dt.Rows[i][2].ToString();
                addres += " " + dt.Rows[i][3].ToString();
                addres += " " + Encryption.Encryption.GetDecipherName(dt.Rows[i][4].ToString());
                addres += " " + dt.Rows[i][5].ToString();
                this.rbtAddress.Items.Add(addres);
            }
            this.panel1.Visible = true;


            if (Session["mbreginfo"] != null) //注册过来的时候,默认的是新地址
            {
                this.rbtAddress.SelectedIndex = dt.Rows.Count;
            }
            else
            {
                this.rbtAddress.SelectedIndex = 0;
            }
            if (rbtAddress.SelectedIndex != dt.Rows.Count)
            {
                string   asg  = this.rbtAddress.SelectedItem.Text.Trim();
                string[] addr = asg.Split(' ');
                if (addr.Length == 3)
                {
                    this.txtPostCode.Text = DAL.CommonDataDAL.GetZipCode(addr[0], addr[1], addr[2]);
                }
                else
                {
                    this.txtPostCode.Text = "";
                }
                Txtdz.Text                = addr[4];
                ddth.SelectedValue        = addr[6];
                DDLSendType.SelectedValue = addr[5];
                CountryCity2.SelectCountry(addr[0], addr[1], addr[2], addr[3]);
                txtConName.Text    = addr[addr.Length - 2];
                txtOtherPhone.Text = addr[addr.Length - 1];
            }
            else
            {
                panel2.Style.Add("display", "");
            }
        }
        else
        {
            this.rbtAddress.Items.Add(GetTran("000200", "新地址"));

            this.rbtAddress.SelectedIndex = 0;
        }

        if (Session["mbreginfo"] == null)
        {
            ltPayMoney.Text = ((double.Parse(ltYunfei.Text) + double.Parse(ltPrice.Text)) * i).ToString("0.00");
        }
        else
        {
            ltPayMoney.Text = ((double.Parse(ltYunfei.Text) + double.Parse(ltPrice.Text)) * i).ToString("0.00");
        }
    }
Example #8
0
    protected void btnEditProduct_Click(object sender, EventArgs e)
    {
        if (CountryCity2.CheckFill() == false)
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('请选择地址!')</script>");
            return;
        }
        if (Txtdz.Text.Trim() == "")
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('请填写地址!')</script>");
            return;
        }

        string OrderId = Request.QueryString["OrderID"].ToString();
        string bianhao = Request.QueryString["Number"].ToString();

        SqlDataReader hydr       = DAL.DBHelper.ExecuteReader("select PayCurrency,DefrayType from MemberOrder where orderid='" + OrderId + "'");
        string        fukuanMode = "";
        int           bizhong    = 0;

        if (hydr.Read())
        {
            fukuanMode = hydr["DefrayType"].ToString();
            bizhong    = Convert.ToInt32(hydr["PayCurrency"]);

            hydr.Close();
        }
        else
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('订单不存在')</script>");
            return;
        }

        string error = "";
        //获取用户选择商品的集合

        IList <MemberDetailsModel> choseProList = AddMemberDetails();

        if (choseProList == null)
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + this.GetTran("000294", "抱歉!购货数量必须输入数字!") + "');</script>", false);
            return;
        }
        if (choseProList.Count == 0 && Request.QueryString["tp"] == "-1")
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + this.GetTran("000296", "抱歉!您还没有选择商品!") + "');</script>", false);
            return;
        }
        if (Convert.ToBoolean(ViewState["StateCount"]))
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("007039", "对不起,您选择了停售产品,并且超出了店铺库存数量!") + "');</script>", false);
            return;
        }


        //获得总的购货金额和pv
        double TotalMoney = registermemberBLL.getZongJing(choseProList);
        double SumPv      = registermemberBLL.getZongPv(choseProList);

        double bottonLine = new BLL.Registration_declarations.AddOrderBLL().GetBottomLine();
        double ce         = TotalMoney - bottonLine;

        if (ce < 0)
        {
            ScriptHelper.SetAlert(Page, "报单金额必须大于" + bottonLine.ToString());
            return;
        }

        //无货总金额
        double notEnoughmoney = registermemberBLL.CheckMoneyIsEnough(choseProList, GetStoreID(), OrderId);

        //if (Ddzf.SelectedValue != "2")
        //{
        //    if (notEnoughmoney > Convert.ToDouble(ViewState["dpm"]))
        //    {
        //        ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('店铺报单额不够!')</script>");
        //        return;
        //    }
        //}
        if (this.Ddzf.SelectedValue.ToString() == "2")
        {
            string elcNumber      = this.txtdzbh.Text.Trim().ToLower();
            string elcPassword    = Encryption.Encryption.GetEncryptionPwd(this.txtdzmima.Text, elcNumber);
            string CheckEctResult = registermemberBLL.CheckEctPassWord(this.Ddzf.SelectedValue, elcNumber, elcPassword);
            if (CheckEctResult != null)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + CheckEctResult + "');</script>", false);
                return;
            }

            //需要修改
            double elcMoney = Convert.ToDouble(CommonDataBLL.EctBalance(txtdzbh.Text.Trim()));
            //如果电子金额少于用户订单总额
            if (elcMoney < Convert.ToDouble(TotalMoney))
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("001528", "用户") + this.txtdzbh.Text.Trim() + GetTran("001529", "的电子钱包不够本次报单!") + "');</script>", false);
                return;
            }
        }
        //有货总金额
        double EnoughProductMoney = 0.00;//Convert.ToDouble(registermemberBLL.getEnoughProductMoney(choseProList, GetStoreID()));

        int qs = BLL.CommonClass.CommonDataBLL.getMaxqishu();

        List <MemberDetailsModel> lmdm = new List <MemberDetailsModel>();

        lmdm = (List <MemberDetailsModel>)choseProList;

        if (Session["mim"] != null)
        {
            MemberInfoModel mim = (MemberInfoModel)Session["mim"];

            MemberOrderModel mom = new MemberOrderModel();
            mom.Number     = bianhao;
            mom.OrderId    = OrderId;
            mom.StoreId    = GetStoreID();
            mom.TotalMoney = Convert.ToDecimal(MemberOrderAgainBLL.GetBzMoney(GetStoreID(), Convert.ToDouble(TotalMoney)));// Convert.ToDecimal(TotalMoney);
            mom.TotalPv    = Convert.ToDecimal(SumPv);

            DataTable dtoinfo = RegistermemberBLL.Getmominfoofmember(OrderId);

            if (dtoinfo != null && dtoinfo.Rows.Count > 0)
            {
                mom.CarryMoney          = Convert.ToDecimal(dtoinfo.Rows[0]["CarryMoney"]);
                mom.OrderExpect         = Convert.ToInt32(dtoinfo.Rows[0]["OrderExpectNum"]);
                mom.PayExpect           = Convert.ToInt32(dtoinfo.Rows[0]["PayExpectNum"]);
                mom.Err                 = "";
                mom.IsAgain             = Convert.ToInt32(dtoinfo.Rows[0]["IsAgain"]);
                mom.OrderDate           = Convert.ToDateTime(dtoinfo.Rows[0]["OrderDate"]); //DateTime.Now;
                mom.Remark              = "";
                mom.DefrayState         = Convert.ToInt32(dtoinfo.Rows[0]["DefrayState"]);
                mom.Consignee           = dtoinfo.Rows[0]["Consignee"].ToString();
                mom.RemittancesId       = dtoinfo.Rows[0]["RemittancesId"].ToString();
                mom.ElectronicaccountId = dtoinfo.Rows[0]["ElectronicaccountId"].ToString();
                mom.OrderType           = Convert.ToInt32(dtoinfo.Rows[0]["OrderType"]);
                mom.IsreceiVables       = Convert.ToInt32(dtoinfo.Rows[0]["DefrayState"]);
            }

            CityModel cm = new CityModel();
            cm.Country  = CountryCity2.Country;
            cm.Province = CountryCity2.Province;
            cm.City     = CountryCity2.City;
            cm.Xian     = CountryCity2.Xian;

            mom.ConCity               = cm;
            mom.CCPCCode              = mim.CPCCode;
            mom.ConAddress            = Encryption.Encryption.GetEncryptionAddress(Txtdz.Text.Trim());
            mom.ConZipCode            = mim.PostalCode;
            mom.ConTelPhone           = mim.HomeTele;
            mom.ConMobilPhone         = mim.MobileTele;
            mom.ConPost               = mim.Email;
            mom.DefrayType            = Convert.ToInt32(Ddzf.SelectedValue);
            mom.DefrayType            = Convert.ToInt32(ViewState["DefrayType"]);
            mom.PayMoney              = Convert.ToDecimal(MemberOrderAgainBLL.GetBzMoney(GetStoreID(), Convert.ToDouble(TotalMoney)) / MemberOrderAgainBLL.GetBzHl(Convert.ToInt32(DropCurrency.SelectedValue)));//Convert.ToDecimal(TotalMoney);
            mom.PayCurrency           = Convert.ToInt32(DropCurrency.SelectedValue);
            mom.StandardCurrency      = MemberOrderAgainBLL.GetBzTypeId(GetStoreID());
            mom.StandardcurrencyMoney = Convert.ToDecimal(TotalMoney);
            mom.OperateIp             = Request.UserHostAddress;
            mom.OperateNumber         = GetStoreID();
            mom.SendType              = Convert.ToInt32(ddth.SelectedValue);

            if (mom.DefrayState == 0)
            {
                mom.PaymentMoney = 0;
            }
            else
            {
                mom.PaymentMoney = Convert.ToDecimal(MemberOrderAgainBLL.GetBzMoney(GetStoreID(), Convert.ToDouble(TotalMoney)) / MemberOrderAgainBLL.GetBzHl(Convert.ToInt32(DropCurrency.SelectedValue)));
            }
            mom.ReceivablesDate    = Convert.ToDateTime(DBHelper.ExecuteScalar("select ReceivablesDate from MemberOrder where OrderID='" + OrderId + "'")); //DateTime.Now;
            mom.EnoughProductMoney = Convert.ToDecimal(EnoughProductMoney);
            mom.LackProductMoney   = Convert.ToDecimal(MemberOrderAgainBLL.GetBzMoney(GetStoreID(), Convert.ToDouble(notEnoughmoney)));                     //获得标准币种Convert.ToDecimal(notEnoughmoney);
            mom.SendWay            = Convert.ToInt32(DDLSendType.SelectedValue);
            if (Ddzf.SelectedValue == "2")
            {
                mom.ElectronicaccountId = this.txtdzbh.Text.Trim();
            }
            if (mom.OperateNumber.Trim().Length == 0)
            {
                if (Session["Company"] != null)
                {
                    mom.OperateNumber = "管理员:" + Session["Company"].ToString();
                }
            }

            string aa = MemberOrderBLL.UpdateMemberOrder(OrderId, lmdm, mom, GetStoreID());

            if (aa == "1")
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('修改成功');window.location.href=window.location.href+'&date='+new Date().getTime()</script>");
            }
            else
            {
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('修改失败')</script>");
            }
        }
        else
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('登录超时,请重新登录');window.location.href='index.aspx'</script>");
        }
    }