Beispiel #1
0
        /// <summary>
        /// 初始化列表
        /// </summary>
        protected void InitOrders()
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            #region 查询实体

            var memeber = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);
            if (memeber == null || !memeber.IsAgent) return;
            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.MemberID = memeber.UserID;
            serchModel.PromotionCode = memeber.PollCode == "" ? "未知" : memeber.PromotionCode;
            serchModel.PaymentState = Eyousoft_yhq.Model.PaymentState.已支付;
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            #endregion

            var list = bll.GetFYList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_orders.DataSource = list;
                rpt_orders.DataBind();
                this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect1.intPageSize = pageSize;
                this.ExporPageInfoSelect1.CurrencyPage = pageIndex;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.UrlParams = Request.QueryString;

                litMsg.Visible = false;

            }
            else
            {
                rpt_orders.Visible = false;
            }
        }
Beispiel #2
0
        protected void save()
        {
            var model = new Eyousoft_yhq.Model.User();

            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            model.ContactSex  = (sexType)Utils.GetInt(Utils.GetFormValue(ddl_sex.UniqueID));
            model.UserName    = Utils.GetFormValue("userName");
            model.UserPwd     = Utils.GetFormValue("userPwd");
            model.ContactName = Utils.GetFormValue("contactName");
            model.PollCode    = Utils.GetFormValue("PollCode");
            model.YuE         = 0M;
            model.IssueTime   = DateTime.Now;
            string retUrl = Utils.GetFormValue("rurl");
            bool   result = bll.Add(model);

            if (result)
            {
                if (!string.IsNullOrEmpty(retUrl))
                {
                    Response.Redirect(retUrl);
                }
                EyouSoft.Common.Page.HuiyuanPage.Logout();
                Response.Redirect("/AppPage/weixin/Login.aspx");
            }
        }
Beispiel #3
0
        /// <summary>
        /// 管理员充值
        /// </summary>
        void PayOther()
        {
            string  userTo = Utils.GetQueryStringValue("a");
            decimal moneys = Utils.GetDecimal(Utils.GetQueryStringValue("m"));
            int     result = new Eyousoft_yhq.BLL.Member().HuiYuangZZ(userTo, moneys);

            if (result < 0)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "充值失败"));
            }
            if (result > 0)
            {
                Eyousoft_yhq.BLL.BConDetaile   ser   = new Eyousoft_yhq.BLL.BConDetaile();
                Eyousoft_yhq.Model.MConDetaile model = new Eyousoft_yhq.Model.MConDetaile();

                model.XFway = (Model.XFfangshi)Eyousoft_yhq.Model.XFfangshi.充值;
                Random rn = new Random();
                model.DingDanBianHao = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiHao      = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiShiJian  = DateTime.Now;
                string Mobile    = Utils.GetQueryStringValue("a");
                var    modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);
                model.HuiYuanID = modelUser.UserID;

                model.JiaoYiDuiXiang = modelUser.UserID;
                model.JinE           = moneys;
                model.DDCarrtes      = Eyousoft_yhq.Model.DDleibie.充值订单;
                new Eyousoft_yhq.BLL.BConDetaile().Add(model);
            }
            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "充值成功"));
        }
Beispiel #4
0
        /// <summary>
        /// 管理员充值
        /// </summary>
        void PayOther()
        {
            string userTo = Utils.GetQueryStringValue("a");
            decimal moneys = Utils.GetDecimal(Utils.GetQueryStringValue("m"));
            int result = new Eyousoft_yhq.BLL.Member().HuiYuangZZ(userTo, moneys);
            if (result < 0) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "充值失败"));
            if (result > 0)
            {
                Eyousoft_yhq.BLL.BConDetaile ser = new Eyousoft_yhq.BLL.BConDetaile();
                Eyousoft_yhq.Model.MConDetaile model = new Eyousoft_yhq.Model.MConDetaile();

                model.XFway = (Model.XFfangshi)Eyousoft_yhq.Model.XFfangshi.充值;
                Random rn = new Random();
                model.DingDanBianHao = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiHao = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiShiJian = DateTime.Now;
                string Mobile = Utils.GetQueryStringValue("a");
                var modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);
                model.HuiYuanID = modelUser.UserID;

                model.JiaoYiDuiXiang = modelUser.UserID;
                model.JinE = moneys;
                model.DDCarrtes = Eyousoft_yhq.Model.DDleibie.充值订单;
                new Eyousoft_yhq.BLL.BConDetaile().Add(model);

            }
            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "充值成功"));
        }
        protected void initList(string Code)
        {
            if (string.IsNullOrEmpty(Code))
            {
                litMsg.Visible = true;
                return;
            }
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, new Eyousoft_yhq.Model.MSearchUser()
            {
                PromotionCode = Code
            }, 0);

            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                this.ExporPageInfoSelect1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect1.intPageSize    = pageSize;
                this.ExporPageInfoSelect1.CurrencyPage   = pageIndex;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.UrlParams      = Request.QueryString;


                litMsg.Visible = false;
            }
            else
            {
                rpt_list.Visible = false;
            }
        }
Beispiel #6
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            phGL.Visible = IsLogin;

            var info = new Eyousoft_yhq.BLL.BWeiDian().GetInfo(WeiDianId);

            ltrWeiDianName.Text    = info.MingCheng;
            ltrWeiDianDianHua.Text = "<a href='tel:" + info.DianHua + "'>" + info.DianHua + "</a>";
            ltrWeiDianJieShao.Text = info.JieShao;

            var member = new Eyousoft_yhq.BLL.Member().GetModel(info.HuiYuanId);

            string defaultfFlepath = "/images/weixin/head_no.png";

            if (member != null)
            {
                if (!string.IsNullOrEmpty(member.TuXiangFilepath))
                {
                    imgHead.Src = member.TuXiangFilepath;
                }
                else
                {
                    imgHead.Src = defaultfFlepath;
                }
            }

            WeiDianLogoFilepath = info.LogoFilepath;
            if (string.IsNullOrEmpty(WeiDianLogoFilepath))
            {
                WeiDianLogoFilepath = "/images/weixin/home_img.png";
            }

            this.Title = info.MingCheng + "-微店";
        }
Beispiel #7
0
        /// <summary>
        /// 添加一条抽奖记录
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public int Insert(ChouJiang info)
        {
            info.ChouJiangShiJian = DateTime.Now;
            info.ChouJiangID      = Guid.NewGuid().ToString();
            info.LiuShuiHao       = DateTime.Now.ToString("yyyyMMddHHmmssfff");
            int result = dal.Insert(info);

            if (result == 1)
            {
                var hongbao = new Eyousoft_yhq.BLL.BHongBao().GetInfo(info.ID);
                if (hongbao != null)
                {
                    new Eyousoft_yhq.BLL.BHongBao().Update(new HongBao()
                    {
                        HongBaoJinE = hongbao.HongBaoJinE - info.DianShu, ID = hongbao.ID
                    });
                }
                var model = new Eyousoft_yhq.BLL.Member().GetModel(info.CaoZuoRenID);
                if (model != null)
                {
                    new Eyousoft_yhq.BLL.Member().setMoney(info.CaoZuoRenID, model.YuE + info.DianShu);
                }
            }
            return(result);
        }
Beispiel #8
0
        /// <summary>
        /// 根据交易号(订单号)更新订单状态
        /// </summary>
        public bool SheZhiZhiFuByOrderCode(string OrderCode, PaymentState state)
        {
            if (string.IsNullOrEmpty(OrderCode))
            {
                return(false);
            }
            bool result = dal.SheZhiZhiFuByOrderCode(OrderCode, state) > 0 ? true : false;

            if (result)
            {
                var zhifu = GetModelByOrderCode(OrderCode);
                if (zhifu == null)
                {
                    return(false);
                }
                var member = new Eyousoft_yhq.BLL.Member().GetModel(zhifu.OperatorID);
                if (member == null)
                {
                    return(false);
                }
                member.YuE = member.YuE + zhifu.OptMoney;
                return(new Eyousoft_yhq.BLL.Member().UpdateYuE(member));
            }
            else
            {
                return(result);
            }
        }
Beispiel #9
0
        /// <summary>
        /// 删除操作
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        protected string deleteAddressById(string id)
        {
            string msg = "";

            msg = new Eyousoft_yhq.BLL.Member().UserAddressDelete(id) > 0 ? Utils.AjaxReturnJson("1", "删除成功!") : Utils.AjaxReturnJson("0", "删除失败!");
            return(msg);
        }
Beispiel #10
0
 /// <summary>
 /// 获取会员姓名
 /// </summary>
 /// <param name="huiyuanID"></param>
 /// <returns></returns>
 protected string getMemberName(string huiyuanID, int getType)
 {
     var huiyuan = new Eyousoft_yhq.BLL.Member().GetModel(huiyuanID);
     if (huiyuan == null) return "";
     if (getType == 1) return huiyuan.ContactName;
     return string.IsNullOrEmpty(huiyuan.TuXiangFilepath) ? "/images/weixin/head_no.png" : huiyuan.TuXiangFilepath;
 }
Beispiel #11
0
 /// <summary>
 /// 获取联系人姓名
 /// </summary>
 /// <param name="Mobile"></param>
 void getContactName()
 {
     string Mobile = Utils.GetQueryStringValue("userTo");
     var modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);
     if (modelUser == null) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "请核对账户名是否正确!"));
     Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "", modelUser.ContactName));
 }
Beispiel #12
0
        protected string save(string dotype, string aid)
        {
            Eyousoft_yhq.Model.UserAddress model = new Eyousoft_yhq.Model.UserAddress();
            model.ContactName     = Utils.GetFormValue(contactname.UniqueID);
            model.AddressCountry  = Utils.GetInt(Utils.GetFormValue("ddlCountry"));
            model.AddressCity     = Utils.GetInt(Utils.GetFormValue("ddlCity"));
            model.AddressProvince = Utils.GetInt(Utils.GetFormValue("ddlProvince"));
            model.AddressInfo     = Utils.GetFormValue(addressinfo.UniqueID);
            model.ZpCode          = Utils.GetFormValue(zpcode.UniqueID);
            model.MobileNum       = Utils.GetFormValue(mobileNum.UniqueID);
            model.TelNum          = Utils.GetFormValue(telNum.UniqueID);
            model.IsDefault       = Utils.GetFormValue("hidefault") == "1" ? true : false;
            model.UserID          = HuiYuanInfo.UserID;
            string msg = "";

            if (dotype == "add")
            {
                msg = new Eyousoft_yhq.BLL.Member().UserAddressAdd(model) > 0 ? Utils.AjaxReturnJson("1", "新增成功!") : Utils.AjaxReturnJson("0", "新增失败!");
            }
            else
            {
                model.AddressID = aid;
                msg             = new Eyousoft_yhq.BLL.Member().UserAddressUpdate(model) > 0 ? Utils.AjaxReturnJson("1", "修改成功!") : Utils.AjaxReturnJson("0", "修改失败!");
            }
            return(msg);
        }
Beispiel #13
0
        /// <summary>
        /// 发送短信
        /// </summary>
        /// <param name="orderstate">订单状态</param>
        /// <param name="Iphone">订单手机</param>
        /// <param name="OrderId">订单Code</param>
        /// <param name="or">订单ID</param>
        /// <returns></returns>
        protected string SendMsg(Eyousoft_yhq.Model.OrderState orderstate, string Iphone, string OrderId, string or)
        {
            string OM       = new Eyousoft_yhq.BLL.Order().GetModel(or).MemberID;
            bool   valiUser = new Eyousoft_yhq.BLL.Member().GetModel(OM).valiUser;

            if (!valiUser)
            {
                string result  = string.Empty; //返回发送结果
                string sendNum = Iphone;       //发送账号
                IList <Eyousoft_yhq.Model.SMSChannel> channel = Eyousoft_yhq.Web.BsendMsg.CommonProcess.GetSMSChannels();
                string Msg = string.Empty;
                if (orderstate == Eyousoft_yhq.Model.OrderState.待付款)
                {
                    Msg = string.Format("订单确认成功,请及时进行支付 订单号:{0}!【惠旅游】", OrderId);
                    Eyousoft_yhq.Web.BsendMsg.CommonProcess.SendSMS(sendNum, Msg, channel[0], out result);//发送
                }
                else if (orderstate == Eyousoft_yhq.Model.OrderState.已取消)
                {
                    Msg = "订单确认失败,原因:订单预控人数已经满员!【惠旅游】";
                    Eyousoft_yhq.Web.BsendMsg.CommonProcess.SendSMS(sendNum, Msg, channel[0], out result);//发送
                }
                #region  短信日志
                Eyousoft_yhq.Model.MsgLog MsLog = new Eyousoft_yhq.Model.MsgLog
                {
                    TelCode  = sendNum,
                    MsgText  = Msg,
                    ReResult = result
                };
                new Eyousoft_yhq.BLL.MsgLog().Add(MsLog);
                #endregion
                return(result);
            }
            return("");
        }
Beispiel #14
0
        /// <summary>
        /// 初始化菜单
        /// </summary>
        private void InitClass()
        {
            string _class = "class=\"MenberDefault\"";
            string s = Request.Url.AbsolutePath.ToLower();

            switch (s)
            {
                case "/huiyuan/personalinfo.aspx": M1 = _class; break;
                case "/huiyuan/orderlist.aspx": M2 = _class; break;
                case "/huiyuan/apporderlist.aspx": M2 = _class; break;
                case "/huiyuan/addressmanage.aspx": M3 = _class; break;
                case "/huiyuan/tglist.aspx": M4 = _class; break;
                case "/huiyuan/fylist.aspx": M5 = _class; break;
                case "/huiyuan/jclist.aspx": M6 = _class; break;
                case "/huiyuan/planticketmanage.aspx": M7 = _class; break;
                case "/huiyuan/account.aspx": M8 = _class; break;
                case "/huiyuan/hyjp_orders.aspx": M9 = _class; break;
                case "/huiyuan/Insorders.aspx": M10 = _class; break;
                default: M1 = _class; break;
            }
            var MemberModel = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo();
            if (MemberModel != null)
            {
                var memeber = new Eyousoft_yhq.BLL.Member().GetModel(MemberModel.UserID);
                if (memeber != null && memeber.IsAgent)
                {
                    PlaceHolder1.Visible = true;
                }
            }
        }
Beispiel #15
0
        protected void initPage(string strid)
        {
            var model = new Eyousoft_yhq.BLL.Member().GetModel(strid);

            if (model != null)
            {
                userName.Value    = model.UserName;
                ContactName.Value = model.ContactName;
                Option            = (int)model.MemberOption;
                ddl_sex.Items.FindByValue(((int)model.ContactSex).ToString());
                remark.Value = model.Remark;
                if (ddl_sex.Items.FindByValue(((int)model.ContactSex).ToString()) != null)
                {
                    ddl_sex.Items.FindByValue(((int)model.ContactSex).ToString()).Selected = true;
                }
                fydecimal.Value         = model.CommissonScale.ToString("0.00");
                userPromotionCode.Value = model.PromotionCode;
                zhYuE.Value             = model.YuE.ToString("F2");
                ProviceId = (int)model.ProviceId;
                CityId    = (int)model.CityId;
                AreaId    = (int)model.AreaId;
                StreetId  = (int)model.StreetId;
                if (!string.IsNullOrEmpty(model.PollCode))
                {
                    fydecimal.Attributes.Add("readonly", "readonly");
                    userPromotionCode.Attributes.Add("readonly", "readonly");
                }
                if (model.IsZZ)
                {
                    chk_zf.Checked = true;
                }
            }
        }
Beispiel #16
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            var info = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);

            if (info == null)
            {
                Utils.RCWE("异常请求");
            }

            txtWeiXinHao.Value  = info.WeiXinHao;
            txtXingMing.Value   = info.ContactName;
            txtGongSiName.Value = info.GongSiName;
            txtZhiWei.Value     = info.ZhiWei;
            txtShouJi.Value     = info.ShouJi;

            txtQQ.Value       = info.QQ;
            txtYouXiang.Value = info.YouXiang;
            txtDiZhi.Value    = info.DiZhi;
            TuXiangFilepath   = info.TuXiangFilepath;

            txtTuXiangFilepath.Value = info.TuXiangFilepath;

            if (string.IsNullOrEmpty(TuXiangFilepath))
            {
                TuXiangFilepath = "/images/weixin/head_no.png";
            }
        }
Beispiel #17
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            phGL.Visible = IsLogin;

            var info = new Eyousoft_yhq.BLL.BWeiDian().GetInfo(WeiDianId);

            ltrWeiDianName.Text = info.MingCheng;
            ltrWeiDianDianHua.Text = "<a href='tel:" + info.DianHua + "'>" + info.DianHua + "</a>";
            ltrWeiDianJieShao.Text = info.JieShao;

            var member = new Eyousoft_yhq.BLL.Member().GetModel(info.HuiYuanId);

            string defaultfFlepath = "/images/weixin/head_no.png";
            if (member != null)
            {
                if (!string.IsNullOrEmpty(member.TuXiangFilepath))
                    imgHead.Src = member.TuXiangFilepath;
                else
                    imgHead.Src = defaultfFlepath;
            }

            WeiDianLogoFilepath = info.LogoFilepath;
            if (string.IsNullOrEmpty(WeiDianLogoFilepath)) WeiDianLogoFilepath = "/images/weixin/home_img.png";

            this.Title = info.MingCheng + "-微店";
        }
Beispiel #18
0
        /// <summary>
        /// 转账
        /// </summary>
        void PayOther()
        {
            string userTo = Utils.GetQueryStringValue("a");
            decimal moneys = Utils.GetDecimal(Utils.GetQueryStringValue("m"));
            int result = new Eyousoft_yhq.BLL.Member().UpdatePayState(HuiYuanInfo.UserID, userTo, moneys);
            if (result == -102) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "转账金额不能为0!"));
            if (result == -101) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "转账账户错误"));
            if (result == -100) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "登陆失败,请重新登陆!"));
            if (result == -99) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "可用余额不足!"));
            if (result == -98) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "不能给本人转账"));
            if (result == 0) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "转帐失败"));
            if (result == 1)
            {
                Eyousoft_yhq.BLL.BConDetaile ser = new Eyousoft_yhq.BLL.BConDetaile();
                Eyousoft_yhq.Model.MConDetaile model = new MConDetaile();
                model.HuiYuanID = userInfo.UserID;
                model.XFway = (Model.XFfangshi)XFfangshi.转帐;
                Random rn = new Random();
                model.DingDanBianHao = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiHao = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiShiJian = DateTime.Now;
                string Mobile = Utils.GetQueryStringValue("a");
                var modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);
                model.JiaoYiDuiXiang = modelUser.UserID;
                model.JinE = moneys;
                new Eyousoft_yhq.BLL.BConDetaile().Add(model);

            }
            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "转帐成功"));
        }
Beispiel #19
0
        protected void initList()
        {
            string Code = string.Empty;

            var memeber = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);
            if (memeber == null || !memeber.IsAgent) return;
            Code = memeber.PromotionCode;
            if (string.IsNullOrEmpty(Code))
            {
                litMsg.Visible = true;
                return;
            }
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, new Eyousoft_yhq.Model.MSearchUser() { PromotionCode = Code }, 0);
            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect1.intPageSize = pageSize;
                this.ExporPageInfoSelect1.CurrencyPage = pageIndex;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.UrlParams = Request.QueryString;

                litMsg.Visible = false;

            }
            else
            {
                rpt_list.Visible = false;
            }
        }
Beispiel #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string dotype = Utils.GetQueryStringValue("dotype");

            if (dotype == "DelYouJi")
            {
                DelYouJi();
            }
            HuiYuanId = Utils.GetQueryStringValue("huiyuanid2");
            var info = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanId);

            if (HuiYuanInfo != null && HuiYuanInfo.UserID == HuiYuanId)
            {
                IsMy = true;
            }
            if (info == null)
            {
                Response.Redirect("/HuiYuanWeiXin/Login.aspx");
            }
            XingMing        = info.ContactName;
            TuXiangFilepath = info.TuXiangFilepath;
            if (string.IsNullOrEmpty(TuXiangFilepath))
            {
                TuXiangFilepath = "/images/weixin/head_no.png";
            }
            BindInte(HuiYuanId);
        }
Beispiel #21
0
        protected void initList()
        {
            Eyousoft_yhq.BLL.Member        bll        = new Eyousoft_yhq.BLL.Member();
            Eyousoft_yhq.Model.MSearchUser serchModel = new Eyousoft_yhq.Model.MSearchUser();
            serchModel.ContactName = Utils.GetQueryStringValue("contactName");
            serchModel.UserName    = Utils.GetQueryStringValue("userName");
            if (Utils.GetQueryStringValue("txtIsLvYouGuWen") == "1")
            {
                serchModel.IsLvYouGuWen = true;
            }
            if (Utils.GetQueryStringValue("txtIsLvYouGuWen") == "0")
            {
                serchModel.IsLvYouGuWen = false;
            }

            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel, 0);

            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                BindPage();
                litMsg.Visible = false;
            }
            else
            {
                rpt_list.Visible = false;
            }
        }
Beispiel #22
0
        protected void initList()
        {
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();
            Eyousoft_yhq.Model.MSearchUser serchModel = new Eyousoft_yhq.Model.MSearchUser();
            serchModel.ContactName = Utils.GetQueryStringValue("contactName");
            serchModel.UserName = Utils.GetQueryStringValue("userName");
            if (Utils.GetQueryStringValue("txtIsLvYouGuWen") == "1")
            {
                serchModel.IsLvYouGuWen = true;
            }
            if (Utils.GetQueryStringValue("txtIsLvYouGuWen") == "0")
            {
                serchModel.IsLvYouGuWen = false;
            }

            pageIndex = UtilsCommons.GetPagingIndex("Page");
            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel, 0);
            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                BindPage();
                litMsg.Visible = false;

            }
            else
            {
                rpt_list.Visible = false;
            }
        }
Beispiel #23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string SubsOrderNo = Request.Form["SubsOrderNo"],
           OrderNo             = Request.Form["OrderNo"],
           BalanceMoney        = Request.Form["BalanceMoney"],
           PNR           = Request.Form["PNR"],
           TktCount      = Request.Form["TktCount"],
           ManCount      = Request.Form["ManCount"],
           TktCreateData = Request.Form["TktCreateData"],
           remark        = Request.Form["remark"];

            if (string.IsNullOrEmpty(SubsOrderNo))
            {
                return;
            }
            var orderModel = new Eyousoft_yhq.BLL.BJiPiaoBaoCun().GetModelByCode(SubsOrderNo);//获取订单信息

            if (orderModel == null)
            {
                return;
            }
            var huiyuanModel = new Eyousoft_yhq.BLL.Member().GetModel(orderModel.OpeatorID);//获取下单人信息

            if (huiyuanModel == null)
            {
                return;
            }
            var model = new Eyousoft_yhq.BLL.BJiPiaoBaoCun().GetModelByCode(SubsOrderNo);

            model.payState = Eyousoft_yhq.Model.TickOrderPayState.已出票;
            bool result = new Eyousoft_yhq.BLL.BJiPiaoBaoCun().setState(model);
        }
Beispiel #24
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Utils.GetQueryStringValue("chongzhi") == "1") baocun();
     if (Utils.GetQueryStringValue("chk") == "1") getContactName(Utils.GetQueryStringValue("a"));
     if (Utils.GetQueryStringValue("zz") == "1") PayOther();
     var memeber = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);
     if (memeber != null) litAccount.Text = memeber.YuE.ToString("C2");
     PlaceHolder1.Visible = HuiYuanInfo.IsZZ;
 }
Beispiel #25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Utils.GetQueryStringValue("zhuanz") == "1") PayOther();
            var memeber = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);
            if (memeber != null)
            {

            }
        }
Beispiel #26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Utils.GetQueryStringValue("chk") == "1") getContactName();
            if (Utils.GetQueryStringValue("zz") == "1") PayOther();

            if (userInfo == null) Response.Redirect("/AppPage/weixin/Login.aspx?rurl=/AppPage/weixin/AccountManage.aspx");
            PlaceHolder2.Visible = PlaceHolder1.Visible = userInfo.IsZZ;
            var huiyuan = new Eyousoft_yhq.BLL.Member().GetModel(userInfo.UserID);
            if (huiyuan != null) lblmoney.Text = huiyuan.YuE.ToString("F2");
        }
Beispiel #27
0
        /// <summary>
        /// 获取联系人姓名
        /// </summary>
        /// <param name="Mobile"></param>
        void getContactName(string Mobile)
        {
            var modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);

            if (modelUser == null)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "请核对账户名是否正确!"));
            }
            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "", modelUser.ContactName));
        }
Beispiel #28
0
        /// <summary>
        /// 设置默认地址
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        protected string setDefault(string id)
        {
            Eyousoft_yhq.Model.UserAddress model = new Eyousoft_yhq.Model.UserAddress();
            model.AddressID = id;
            model.UserID    = HuiYuanInfo.UserID;
            model.IsDefault = true;
            string msg = "";

            msg = new Eyousoft_yhq.BLL.Member().UserAddressDefaultUpdate(model) > 0 ? Utils.AjaxReturnJson("1", "设置成功!") : Utils.AjaxReturnJson("0", "设置失败!");
            return(msg);
        }
Beispiel #29
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            var huiYuanInfo = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanId2);

            if (huiYuanInfo == null)
            {
                RedirectLogin("/huiyuanweixin/mingpian.aspx");
            }

            BeiGuanZhuJiShu = huiYuanInfo.GuanZhuJiShu;

            if (BeiGuanZhuJiShu == 0)
            {
                ph01.Visible = true;
                ph02.Visible = false;

                if (IsLogin && huiYuanInfo.UserID == HuiYuanInfo.UserID)
                {
                    new Eyousoft_yhq.BLL.Member().Update(HuiYuanId2, Eyousoft_yhq.Model.OptionType.关注);
                    ltrXX01.Text = "还没有人关注你哦<br/><a class=\"font_blue\" href=\"/huiyuanweixin/mingpian.aspx\">赶快把你的微名片分享给朋友吧</a>";
                    this.Title   = "关注我的人";
                }
                else
                {
                    ltrXX01.Text = "还没有人关注他(她)哦<br/><!--<a href=\"javascript:void(0)\" id=\"a_woyaoguanzhu\">我要关注</a>-->";
                    this.Title   = "关注他(她)的人";
                }
            }
            else
            {
                ph01.Visible = false;
                ph02.Visible = true;

                if (IsLogin && huiYuanInfo.UserID == HuiYuanInfo.UserID)
                {
                    new Eyousoft_yhq.BLL.Member().Update(HuiYuanId2, Eyousoft_yhq.Model.OptionType.关注);
                    ltrXX02.Text = "关注我的人";
                    this.Title   = "关注我的人";
                }
                else
                {
                    ltrXX02.Text = "关注他(她)的人";
                    this.Title   = "关注他(她)的人";
                }

                InitRpt1();
            }

            if (IsLogin && HuiYuanInfo.UserID == HuiYuanId2)
            {
                ph04.Visible = false;
            }
        }
Beispiel #30
0
 /// <summary>
 /// init info
 /// </summary>
 void InitInfo()
 {
     YeMianTitle = Page.Title;
     var WeiDianID = EyouSoft.Common.Utils.GetWeiDianId();
     var weiDianInfo = new Eyousoft_yhq.BLL.BWeiDian().GetInfo(WeiDianID);
     if (weiDianInfo != null)
     {
         WDesc = weiDianInfo.JieShao;
         var info = new Eyousoft_yhq.BLL.Member().GetModel(weiDianInfo.HuiYuanId);
         if (info != null) TXImg = "http://www.4008005216.com" + info.TuXiangFilepath;
     }
 }
Beispiel #31
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Utils.GetQueryStringValue("zhuanz") == "1")
            {
                PayOther();
            }
            var memeber = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);

            if (memeber != null)
            {
            }
        }
Beispiel #32
0
        /// <summary>
        /// 转账
        /// </summary>
        void PayOther()
        {
            string  userTo = Utils.GetQueryStringValue("a");
            decimal moneys = Utils.GetDecimal(Utils.GetQueryStringValue("m"));
            int     result = new Eyousoft_yhq.BLL.Member().UpdatePayState(userInfo.UserID, userTo, moneys);

            if (result == -102)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "转账金额不能为0!"));
            }
            if (result == -101)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "转账账户错误"));
            }
            if (result == -100)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "登陆失败,请重新登陆!"));
            }
            if (result == -99)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "可用余额不足!"));
            }
            if (result == -98)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "不能给本人转账"));
            }
            if (result == 0)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "转帐失败"));
            }

            if (result == 1)
            {
                Eyousoft_yhq.BLL.BConDetaile   ser   = new Eyousoft_yhq.BLL.BConDetaile();
                Eyousoft_yhq.Model.MConDetaile model = new MConDetaile();
                model.HuiYuanID = userInfo.UserID;
                model.XFway     = (Model.XFfangshi)XFfangshi.转帐;
                Random rn = new Random();
                model.DingDanBianHao = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiHao      = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiShiJian  = DateTime.Now;
                string Mobile    = Utils.GetQueryStringValue("userTo");
                var    modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);
                model.JiaoYiDuiXiang = modelUser.UserID;
                model.JinE           = moneys;
                new Eyousoft_yhq.BLL.BConDetaile().Add(model);
            }

            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "转帐成功"));
        }
Beispiel #33
0
        protected void pageSave(string doType)
        {
            string id    = Utils.GetQueryStringValue("id");
            var    model = new Eyousoft_yhq.Model.User();


            model.UserName       = Utils.GetFormValue(userName.UniqueID);
            model.ContactSex     = (sexType)Utils.GetInt(Utils.GetFormValue(ddl_sex.UniqueID));
            model.UserPwd        = Utils.GetFormValue(userPwd.UniqueID);
            model.ContactName    = Utils.GetFormValue(ContactName.UniqueID);
            model.Remark         = Utils.GetFormValue(remark.UniqueID);
            model.IssueTime      = DateTime.Now;
            model.CommissonScale = Utils.GetDecimal(Utils.GetFormValue(fydecimal.UniqueID));
            model.PromotionCode  = Utils.GetFormValue(userPromotionCode.UniqueID);
            model.YuE            = Utils.GetDecimal(Utils.GetFormValue(zhYuE.UniqueID));
            model.IsZZ           = Utils.GetFormValue(chk_zf.UniqueID) == "1" ? true : false;
            model.MemberOption   = (MemberOption)Utils.GetInt(Utils.GetFormValue("MemberOption"));
            model.ProviceId      = Utils.GetInt(Utils.GetFormValue("MyProvice"));
            model.CityId         = Utils.GetInt(Utils.GetFormValue("MyCity"));
            model.AreaId         = Utils.GetInt(Utils.GetFormValue("MyArea"));
            model.StreetId       = Utils.GetInt(Utils.GetFormValue("MyStreet"));
            if (model.CommissonScale == 0 && string.IsNullOrEmpty(model.PromotionCode))
            {
                model.IsAgent = false;
            }
            else
            {
                model.IsAgent = true;
            }
            #region 提交保存
            bool   result = false;
            string msg    = "";
            Response.Clear();
            Eyousoft_yhq.BLL.Member BLL = new Eyousoft_yhq.BLL.Member();
            //if (doType == "add")
            //{
            //    result = BLL.Add(model);
            //    msg = result ? "添加成功!" : "添加失败!";
            //    Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", msg));
            //}
            //else
            //{
            model.UserID = id;
            result       = BLL.Update(model);
            msg          = result ? "修改成功!" : "修改失败!";
            Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", msg));
            //}
            Response.End();
            #endregion
        }
Beispiel #34
0
        /// <summary>
        /// 获取会员姓名
        /// </summary>
        /// <param name="huiyuanID"></param>
        /// <returns></returns>
        protected string getMemberName(string huiyuanID, int getType)
        {
            var huiyuan = new Eyousoft_yhq.BLL.Member().GetModel(huiyuanID);

            if (huiyuan == null)
            {
                return("");
            }
            if (getType == 1)
            {
                return(huiyuan.ContactName);
            }
            return(string.IsNullOrEmpty(huiyuan.TuXiangFilepath) ? "/images/weixin/head_no.png" : huiyuan.TuXiangFilepath);
        }
Beispiel #35
0
        /// <summary>
        /// 初始化地址信息
        /// </summary>
        /// <param name="id"></param>
        protected void initADDRESS(string id)
        {
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            var model = bll.GetAddress(id);
            if (model != null)
            {
                contactname.Text = model.ContactName;
                ADDRESS.Text = string.Format("{0} {1} {2} {3}", model.AddressProvinceName, model.AddressCityName, model.AddressCountryName, model.AddressInfo);
                zpcode.Text = model.ZpCode;
                mobileNum.Text = model.MobileNum;
                telNum.Text = model.TelNum;
            }
        }
Beispiel #36
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string youjiid = Utils.GetQueryStringValue("YouJiId");
            var    list    = new Eyousoft_yhq.BLL.BYouJi().GetModel(youjiid);

            if (list != null)
            {
                #region 获取会员头像和名称
                var info = new Eyousoft_yhq.BLL.Member().GetModel(list.HuiYuanId);
                if (info != null)
                {
                    string TuXiangFilepath = info.TuXiangFilepath;
                    if (string.IsNullOrEmpty(TuXiangFilepath))
                    {
                        TuXiangFilepath = "/images/weixin/head_no.png";
                    }
                    string FenXiangLianJie = string.Format("<a href=\"http://{0}/huiyuanweixin/mingpian.aspx?mingpianid={1}&eventkey=qrscene_01\"><img  src=\"{2}\"></a>", HOST, info.MingPianId, TuXiangFilepath);
                    ltrTouXiang.Text  = FenXiangLianJie;
                    ltrMingCheng.Text = info.ContactName;
                }
                #endregion

                LtrTitle.Text = yjtitle = list.YouJiTitle;
                int rowsCount = 0;
                var item      = new Eyousoft_yhq.BLL.Product().GetList(1, 1, ref rowsCount, new Eyousoft_yhq.Model.SerProduct()
                {
                    FavourCode = string.IsNullOrEmpty(list.WeiXinMa) ? "-999" : list.WeiXinMa
                });
                if (item != null && item.Count > 0)
                {
                    ChanPinLink.Text = "<div style=\"text-align:center; font-size:14px;\"><a href=\"/AppPage/weixin/ProductInfo.aspx?id=" + item[0].ProductID + "&weidianid=" + new Eyousoft_yhq.BLL.BWeiDian().GetWeiDianId(list.HuiYuanId) + "\">[查看相关产品及预定]</a></div>";
                }
                if (list.YouJiContent[0].XingChengContent.Length > 30)
                {
                    yjdesc = list.YouJiContent[0].XingChengContent.Substring(0, 30);
                }
                else
                {
                    yjdesc = list.YouJiContent[0].XingChengContent;
                }
                if (!string.IsNullOrEmpty(list.YouJiContent[0].ImgFile))
                {
                    yjimg = list.YouJiContent[0].ImgFile;
                }

                rptList.DataSource = list.YouJiContent;
                rptList.DataBind();
            }
        }
Beispiel #37
0
        void PayOther()
        {
            string userTo = Utils.GetFormValue("userTo");
            decimal moneys = Convert.ToDecimal(Utils.GetFormValue("money"));
            int result = new Eyousoft_yhq.BLL.Member().UpdatePayState(userInfo.UserName, userTo, 500);
            if (result == 1)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "转帐成功"));

            }
            else
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "转帐失败"));
            }
        }
Beispiel #38
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string HuiYuanId = Utils.GetQueryStringValue("huiyuanid2");
            var info = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanId);

            if (info == null) { Response.Redirect("/HuiYuanWeiXin/Login.aspx"); }
            if (HuiYuanInfo != null && HuiYuanInfo.UserID == HuiYuanId)
            {
                IsMy = true;
            }
            XingMing = info.ContactName;
            TuXiangFilepath = info.TuXiangFilepath;
            if (string.IsNullOrEmpty(TuXiangFilepath)) TuXiangFilepath = "/images/weixin/head_no.png";
            BindInte(HuiYuanId);
        }
Beispiel #39
0
        void PayOther()
        {
            string  userTo = Utils.GetFormValue("userTo");
            decimal moneys = Convert.ToDecimal(Utils.GetFormValue("money"));
            int     result = new Eyousoft_yhq.BLL.Member().UpdatePayState(userInfo.UserName, userTo, 500);

            if (result == 1)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "转帐成功"));
            }
            else
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "转帐失败"));
            }
        }
Beispiel #40
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        void init()
        {
            if (HuiYuanInfo == null || string.IsNullOrEmpty(HuiYuanInfo.UserID)) Response.Redirect("Login.aspx");
            var model = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);
            if (model != null && model.IsLvYouGuWen)
            {
                PlaceHolder1.Visible = true;
            }

            string yid = Utils.GetQueryStringValue("yid");
            var info = new Eyousoft_yhq.BLL.BYouJi().GetModel(yid);
            if (info == null) return;
            txttitle.Text = info.YouJiTitle;
            txtlink.Text = info.ShiPinLink;
        }
Beispiel #41
0
        /// <summary>
        /// 初始化地址信息
        /// </summary>
        /// <param name="id"></param>
        protected void initADDRESS(string id)
        {
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            var model = bll.GetAddress(id);

            if (model != null)
            {
                contactname.Text = model.ContactName;
                ADDRESS.Text     = string.Format("{0} {1} {2} {3}", model.AddressProvinceName, model.AddressCityName, model.AddressCountryName, model.AddressInfo);
                zpcode.Text      = model.ZpCode;
                mobileNum.Text   = model.MobileNum;
                telNum.Text      = model.TelNum;
            }
        }
Beispiel #42
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            YeMianTitle = Page.Title;
            var WeiDianID   = EyouSoft.Common.Utils.GetWeiDianId();
            var weiDianInfo = new Eyousoft_yhq.BLL.BWeiDian().GetInfo(WeiDianID);

            if (weiDianInfo != null)
            {
                WDesc = weiDianInfo.JieShao;
                var info = new Eyousoft_yhq.BLL.Member().GetModel(weiDianInfo.HuiYuanId);
                if (info != null)
                {
                    TXImg = "http://www.4008005216.com" + info.TuXiangFilepath;
                }
            }
        }
Beispiel #43
0
        /// <summary>
        /// 获取联系人姓名
        /// </summary>
        /// <param name="Mobile"></param>
        void getContactName(string Mobile)
        {
            decimal moneys = Utils.GetDecimal(Utils.GetQueryStringValue("m"));
            if (moneys <= 0)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "输入金额有误"));
            }
            var modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);
            if (modelUser == null) Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "请核对账户名是否正确!"));
            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "", modelUser.ContactName));
            if (modelUser.UserName == Mobile)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "请核对账户名是否正确!"));

            }
        }
Beispiel #44
0
        /// <summary>
        /// 保存设置
        /// </summary>
        void BaoCun()
        {
            var info = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID);

            if (info == null)
            {
                Utils.RCWE("异常请求");
            }

            info.WeiXinHao       = Utils.GetFormValue(txtWeiXinHao.UniqueID);
            info.ContactName     = Utils.GetFormValue(txtXingMing.UniqueID);
            info.GongSiName      = Utils.GetFormValue(txtGongSiName.UniqueID);
            info.ZhiWei          = Utils.GetFormValue(txtZhiWei.UniqueID);
            info.ShouJi          = Utils.GetFormValue(txtShouJi.UniqueID);
            info.QQ              = Utils.GetFormValue(txtQQ.UniqueID);
            info.YouXiang        = Utils.GetFormValue(txtYouXiang.UniqueID);
            info.DiZhi           = Utils.GetFormValue(txtDiZhi.UniqueID);
            info.TuXiangFilepath = Utils.GetFormValue(txtTuXiangFilepath.UniqueID);

            //从微信服务器下载图像
            string txtTuXiangMediaId = Utils.GetFormValue("txtTuXiangMediaId");

            if (!string.IsNullOrEmpty(txtTuXiangMediaId))
            {
                string url = string.Format("http://file.api.weixin.qq.com/cgi-bin/media/get?access_token={0}&media_id={1}", Utils.get_weixin_access_token(), txtTuXiangMediaId);

                string tuxiang_filename = string.Empty;

                bool xiaZaiRetCode = EyouSoft.Toolkit.request.weixin_media_xiazai(url, "/ufiles/weixin/", out tuxiang_filename);

                if (xiaZaiRetCode)
                {
                    info.TuXiangFilepath = tuxiang_filename;
                }
            }

            int bllRetCode = new Eyousoft_yhq.BLL.Member().HuiYuan_U(info);

            if (bllRetCode == 1)
            {
                Utils.RCWE_AJAX("1", "操作成功");
            }
            else
            {
                Utils.RCWE_AJAX("1", "操作失败,请重试");
            }
        }
Beispiel #45
0
        /// <summary>
        /// 初始化地址列表
        /// </summary>
        protected void initList()
        {
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();
            var list = bll.GetAddressList(0, HuiYuanInfo.UserID);

            if (list != null && list.Count > 0)
            {
                rpt_address.DataSource = list;
                rpt_address.DataBind();
                NoMsg.Visible = false;
            }
            else
            {
                rpt_address.Visible = false;
                NoMsg.Text          = "<tr><td align=\"center\" colspan=\"7\">没有相关数据!</td></tr>";
            }
        }
Beispiel #46
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            var huiYuanInfo = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanId2);
            if (huiYuanInfo == null) { RedirectLogin("/huiyuanweixin/mingpian.aspx");  }

            BeiDianZanJiShu = huiYuanInfo.ZanJiShu;

            if (BeiDianZanJiShu == 0)
            {
                ph01.Visible = true;
                ph02.Visible = false;

                if (IsLogin && huiYuanInfo.UserID == HuiYuanInfo.UserID)
                {
                    new Eyousoft_yhq.BLL.Member().Update(HuiYuanId2, Eyousoft_yhq.Model.OptionType.点赞);
                    ltrXX01.Text = "还没有人为你点赞哦<br/><a class=\"font_blue\" href=\"/huiyuanweixin/mingpian.aspx\">赶快把你的微名片分享给朋友吧</a>";
                    this.Title = "点赞我的人";
                }
                else
                {
                    ltrXX01.Text = "还没有人为他(她)点赞哦<br/><!--<a href=\"javascript:void(0)\" id=\"a_woyaodianzan\">我要点赞</a>-->";
                    this.Title = "点赞他(她)的人";
                }
            }
            else
            {
                ph01.Visible = false;
                ph02.Visible = true;

                if (IsLogin && huiYuanInfo.UserID == HuiYuanInfo.UserID)
                {
                    new Eyousoft_yhq.BLL.Member().Update(HuiYuanId2, Eyousoft_yhq.Model.OptionType.点赞);
                    ltrXX02.Text = "点赞我的人";
                    this.Title = "点赞我的人";
                }
                else
                {
                    ltrXX02.Text = "点赞他(她)的人";
                    this.Title = "点赞他(她)的人";
                }

                InitRpt();
            }

            if (IsLogin && HuiYuanInfo.UserID == HuiYuanId2) ph03.Visible = false;
        }
Beispiel #47
0
        /// <summary>
        /// 初始化地址列表
        /// </summary>
        protected void initList()
        {
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();
            var list = bll.GetAddressList(0, HuiYuanInfo.UserID);
            if (list != null && list.Count > 0)
            {
                rpt_address.DataSource = list;
                rpt_address.DataBind();
                NoMsg.Visible = false;
            }
            else
            {
                rpt_address.Visible = false;
                NoMsg.Text = "<tr><td align=\"center\" colspan=\"7\">没有相关数据!</td></tr>";

            }
        }
Beispiel #48
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string youjiid = Utils.GetQueryStringValue("YouJiId");
            var list = new Eyousoft_yhq.BLL.BYouJi().GetModel(youjiid);
            if (list != null)
            {
                #region 获取会员头像和名称
                var info = new Eyousoft_yhq.BLL.Member().GetModel(list.HuiYuanId);
                if (info != null)
                {
                    string TuXiangFilepath = info.TuXiangFilepath;
                    if (string.IsNullOrEmpty(TuXiangFilepath)) TuXiangFilepath = "/images/weixin/head_no.png";
                    string FenXiangLianJie = string.Format("<a href=\"http://{0}/huiyuanweixin/mingpian.aspx?mingpianid={1}&eventkey=qrscene_01\"><img  src=\"{2}\"></a>", HOST, info.MingPianId, TuXiangFilepath);
                    ltrTouXiang.Text = FenXiangLianJie;
                    ltrMingCheng.Text = info.ContactName;

                }
                #endregion

                LtrTitle.Text = yjtitle = list.YouJiTitle;
                int rowsCount=0;
                var item = new Eyousoft_yhq.BLL.Product().GetList(1, 1, ref rowsCount, new Eyousoft_yhq.Model.SerProduct() { FavourCode = string.IsNullOrEmpty(list.WeiXinMa) ? "-999" : list.WeiXinMa });
                if(item!=null && item.Count>0)
                {
                    ChanPinLink.Text = "<div style=\"text-align:center; font-size:14px;\"><a href=\"/AppPage/weixin/ProductInfo.aspx?id=" + item[0].ProductID + "&weidianid=" + new Eyousoft_yhq.BLL.BWeiDian().GetWeiDianId(list.HuiYuanId) + "\">[查看相关产品及预定]</a></div>";
                }
                if (list.YouJiContent[0].XingChengContent.Length > 30)
                {
                    yjdesc = list.YouJiContent[0].XingChengContent.Substring(0, 30);
                }
                else
                {
                    yjdesc = list.YouJiContent[0].XingChengContent;
                }
                if (!string.IsNullOrEmpty(list.YouJiContent[0].ImgFile))
                {
                    yjimg = list.YouJiContent[0].ImgFile;
                }

                rptList.DataSource = list.YouJiContent;
                rptList.DataBind();

            }
        }
Beispiel #49
0
        /// <summary>
        /// 根据交易号(订单号)更新订单状态
        /// </summary>
        public bool SheZhiZhiFuByOrderCode(string OrderCode, PaymentState state)
        {
            if (string.IsNullOrEmpty(OrderCode)) return false;
            bool result = dal.SheZhiZhiFuByOrderCode(OrderCode, state) > 0 ? true : false;
            if (result)
            {
                var zhifu = GetModelByOrderCode(OrderCode);
                if (zhifu == null) return false;
                var member = new Eyousoft_yhq.BLL.Member().GetModel(zhifu.OperatorID);
                if (member == null) return false;
                member.YuE = member.YuE + zhifu.OptMoney;
                return new Eyousoft_yhq.BLL.Member().UpdateYuE(member);

            }
            else
            {
                return result;
            }
        }
Beispiel #50
0
        protected void save()
        {
            var model = new Eyousoft_yhq.Model.User();
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            model.ContactSex = (sexType)Utils.GetInt(Utils.GetFormValue(ddl_sex.UniqueID));
            model.UserName = Utils.GetFormValue("userName");
            model.UserPwd = Utils.GetFormValue("userPwd");
            model.ContactName = Utils.GetFormValue("contactName");
            model.PollCode = Utils.GetFormValue("PollCode");
            model.YuE = 0M;
            model.IssueTime = DateTime.Now;
            bool result = bll.Add(model);
            if (result)
            {
                EyouSoft.Model.SSOStructure.MUserInfo userInfo = new Eyousoft_yhq.BLL.MemberLogin().isLogin(model.UserName, model.UserPwd);
                Response.Redirect("/AppPage/Default.aspx");
            }
        }
Beispiel #51
0
        /// <summary>
        /// 初始化编辑地址信息
        /// </summary>
        /// <param name="id"></param>
        protected void initPage(string id)
        {
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            var model = bll.GetAddress(id);
            if (model != null)
            {
                contactname.Value = model.ContactName;
                xSelect = model.AddressCountry;
                xCityId = model.AddressCity;
                xProvinceId = model.AddressProvince;
                addressinfo.Value = model.AddressInfo;
                zpcode.Value = model.ZpCode;
                mobileNum.Value = model.MobileNum;
                telNum.Value = model.TelNum;
                isdefault.Checked = model.IsDefault;
                mark = model.IsDefault ? 1 : 0;
            }
        }
Beispiel #52
0
        protected void save()
        {
            Eyousoft_yhq.Model.User model = new Eyousoft_yhq.Model.User();
            model.ContactName = Utils.GetFormValue(contactName.UniqueID);
            model.ContactSex = (sexType)Utils.GetInt(Utils.GetFormValue(ddl_sex.UniqueID)); ;
            model.UserPwd = Utils.GetFormValue(userPwd.UniqueID);
            model.UserID = userinfo.UserID;
            model.Remark = userinfo.Remark;
            bool result = new Eyousoft_yhq.BLL.Member().Update(model);
            if (result)
            {
                Utils.ShowMsg("修改成功!");
            }
            else
            {
                Utils.ShowMsg("修改失败!");

            }
        }
Beispiel #53
0
        /// <summary>
        /// 添加用户
        /// </summary>
        protected string save()
        {
            var model = new Eyousoft_yhq.Model.User();

            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            model.ContactSex  = (sexType)Utils.GetInt(Utils.GetFormValue("userSex"));
            model.UserName    = Utils.GetFormValue("userName");
            model.UserPwd     = Utils.GetFormValue("userPwd");
            model.ContactName = Utils.GetFormValue("contactName");
            model.PollCode    = Utils.GetFormValue("userPollCode");
            model.IsAgent     = false;
            model.IssueTime   = DateTime.Now;
            //string ViaCode = Utils.GetFormValue("userViaCode");
            model.YuE = 0M;
            string          msg  = string.Empty;
            List <string[]> list = new List <string[]>();
            //list = Session[model.UserName] as List<string[]>;
            //if (list != null)
            //{
            //    for (int i = 0; i < list.Count; i++)
            //    {
            //        if (ViaCode == list[i][1] && DateTime.Compare(Convert.ToDateTime(list[i][2]).AddMinutes(5), DateTime.Now) > 0)
            //        {
            //            msg = list[i][1];
            //        }
            //    }
            //}
            //if (string.IsNullOrEmpty(msg))
            //{
            //    return UtilsCommons.AjaxReturnJson("0", "请填写正确的验证码!");
            //}
            bool result = bll.Add(model);

            Session.Remove(model.UserName);
            if (result)
            {
                Session.Remove(model.UserName);
                EyouSoft.Model.SSOStructure.MUserInfo userInfo = new Eyousoft_yhq.BLL.MemberLogin().isLogin(model.UserName, model.UserPwd);
            }

            return(UtilsCommons.AjaxReturnJson("1", string.Format("注册{0}", result ? "成功,正在跳转页面,请稍后 !" : "失败!请稍后再试")));
        }
Beispiel #54
0
        protected void save()
        {
            Eyousoft_yhq.Model.User model = new Eyousoft_yhq.Model.User();
            model.ContactName = Utils.GetFormValue(contactName.UniqueID);
            model.ContactSex  = (sexType)Utils.GetInt(Utils.GetFormValue(ddl_sex.UniqueID));;
            model.UserPwd     = Utils.GetFormValue(userPwd.UniqueID);
            model.UserID      = userinfo.UserID;
            model.Remark      = userinfo.Remark;
            bool result = new Eyousoft_yhq.BLL.Member().Update(model);

            if (result)
            {
                Utils.ShowMsg("修改成功!");
            }
            else
            {
                Utils.ShowMsg("修改失败!");
            }
        }
Beispiel #55
0
        /// <summary>
        /// 初始化菜单
        /// </summary>
        private void InitClass()
        {
            string _class = "class=\"MenberDefault\"";
            string s      = Request.Url.AbsolutePath.ToLower();

            switch (s)
            {
            case "/huiyuan/personalinfo.aspx": M1 = _class; break;

            case "/huiyuan/orderlist.aspx": M2 = _class; break;

            case "/huiyuan/apporderlist.aspx": M2 = _class; break;

            case "/huiyuan/addressmanage.aspx": M3 = _class; break;

            case "/huiyuan/tglist.aspx": M4 = _class; break;

            case "/huiyuan/fylist.aspx": M5 = _class; break;

            case "/huiyuan/jclist.aspx": M6 = _class; break;

            case "/huiyuan/planticketmanage.aspx": M7 = _class; break;

            case "/huiyuan/account.aspx": M8 = _class; break;

            case "/huiyuan/hyjp_orders.aspx": M9 = _class; break;

            case "/huiyuan/Insorders.aspx": M10 = _class; break;

            default: M1 = _class; break;
            }
            var MemberModel = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo();

            if (MemberModel != null)
            {
                var memeber = new Eyousoft_yhq.BLL.Member().GetModel(MemberModel.UserID);
                if (memeber != null && memeber.IsAgent)
                {
                    PlaceHolder1.Visible = true;
                }
            }
        }
Beispiel #56
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string SubsOrderNo = Request.Form["SubsOrderNo"],
                OrderNo = Request.Form["OrderNo"],
                BalanceMoney = Request.Form["BalanceMoney"],
                PNR = Request.Form["PNR"],
                TktCount = Request.Form["TktCount"],
                ManCount = Request.Form["ManCount"],
                TktCreateData = Request.Form["TktCreateData"],
                remark = Request.Form["remark"];

            if (string.IsNullOrEmpty(SubsOrderNo)) return;
            var orderModel = new Eyousoft_yhq.BLL.BJiPiaoBaoCun().GetModelByCode(SubsOrderNo);//获取订单信息
            if (orderModel == null) return;
            var huiyuanModel = new Eyousoft_yhq.BLL.Member().GetModel(orderModel.OpeatorID);//获取下单人信息
            if (huiyuanModel == null) return;
            var model = new Eyousoft_yhq.BLL.BJiPiaoBaoCun().GetModelByCode(SubsOrderNo);
            model.payState = Eyousoft_yhq.Model.TickOrderPayState.已出票;
            bool result = new Eyousoft_yhq.BLL.BJiPiaoBaoCun().setState(model);
        }
Beispiel #57
0
        /// <summary>
        /// 添加用户
        /// </summary>
        protected string save()
        {
            var model = new Eyousoft_yhq.Model.User();
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            model.ContactSex = (sexType)Utils.GetInt(Utils.GetFormValue("userSex"));
            model.UserName = Utils.GetFormValue("userName");
            model.UserPwd = Utils.GetFormValue("userPwd");
            model.ContactName = Utils.GetFormValue("contactName");
            model.PollCode = Utils.GetFormValue("userPollCode");
            model.IsAgent = false;
            model.IssueTime = DateTime.Now;
            //string ViaCode = Utils.GetFormValue("userViaCode");
            model.YuE = 0M;
            string msg = string.Empty;
            List<string[]> list = new List<string[]>();
            //list = Session[model.UserName] as List<string[]>;
            //if (list != null)
            //{
            //    for (int i = 0; i < list.Count; i++)
            //    {
            //        if (ViaCode == list[i][1] && DateTime.Compare(Convert.ToDateTime(list[i][2]).AddMinutes(5), DateTime.Now) > 0)
            //        {
            //            msg = list[i][1];
            //        }
            //    }
            //}
            //if (string.IsNullOrEmpty(msg))
            //{
            //    return UtilsCommons.AjaxReturnJson("0", "请填写正确的验证码!");
            //}
            bool result = bll.Add(model);
            Session.Remove(model.UserName);
            if (result)
            {
                Session.Remove(model.UserName);
                EyouSoft.Model.SSOStructure.MUserInfo userInfo = new Eyousoft_yhq.BLL.MemberLogin().isLogin(model.UserName, model.UserPwd);
            }

            return UtilsCommons.AjaxReturnJson("1", string.Format("注册{0}", result ? "成功,正在跳转页面,请稍后 !" : "失败!请稍后再试"));
        }
Beispiel #58
0
        protected void save()
        {
            var model = new Eyousoft_yhq.Model.User();
            Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member();

            model.ContactSex = (sexType)Utils.GetInt(Utils.GetFormValue(ddl_sex.UniqueID));
            model.UserName = Utils.GetFormValue("userName");
            model.UserPwd = Utils.GetFormValue("userPwd");
            model.ContactName = Utils.GetFormValue("contactName");
            model.PollCode = Utils.GetFormValue("PollCode");
            model.YuE = 0M;
            model.IssueTime = DateTime.Now;
            string retUrl = Utils.GetFormValue("rurl");
            bool result = bll.Add(model);
            if (result)
            {
                if (!string.IsNullOrEmpty(retUrl)) Response.Redirect(retUrl);
                EyouSoft.Common.Page.HuiyuanPage.Logout();
                Response.Redirect("/AppPage/weixin/Login.aspx");
            }
        }
Beispiel #59
0
 /// <summary>
 /// 添加一条抽奖记录
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public int Insert(ChouJiang info)
 {
     info.ChouJiangShiJian = DateTime.Now;
     info.ChouJiangID = Guid.NewGuid().ToString();
     info.LiuShuiHao = DateTime.Now.ToString("yyyyMMddHHmmssfff");
     int result = dal.Insert(info);
     if (result == 1)
     {
         var hongbao = new Eyousoft_yhq.BLL.BHongBao().GetInfo(info.ID);
         if (hongbao != null)
         {
             new Eyousoft_yhq.BLL.BHongBao().Update(new HongBao() { HongBaoJinE = hongbao.HongBaoJinE - info.DianShu, ID = hongbao.ID });
         }
         var model = new Eyousoft_yhq.BLL.Member().GetModel(info.CaoZuoRenID);
         if (model != null)
         {
             new Eyousoft_yhq.BLL.Member().setMoney(info.CaoZuoRenID, model.YuE + info.DianShu);
         }
     }
     return result;
 }
Beispiel #60
0
        /// <summary>
        /// 显示订单信息
        /// </summary>
        protected void initPage()
        {
            string id = Utils.GetQueryStringValue("id");
            string ordertype = Utils.GetQueryStringValue("ordertype");

            var model = new Eyousoft_yhq.BLL.BJiPiaoBaoCun().GetModelByCode(id);

            if (model == null)
            {
                lblxiaofei.Text = "未找到此订单2!";
                xiaofei.Visible = isXF.Visible = false;
                return;
            }
            if (model.payState != Eyousoft_yhq.Model.TickOrderPayState.已出票)
            {
                lblxiaofei.Text = "此订单未出票!";
                xiaofei.Visible = isXF.Visible = false;
                return;
            }
            else
            {
                var huiyuan = new Eyousoft_yhq.BLL.Member().GetModel(model.OpeatorID);
                if (huiyuan == null)
                {
                    lblxiaofei.Text = "数据丢失,请联系我们!";
                    xiaofei.Visible = isXF.Visible = false;
                    return;
                }
                cusName.Value = huiyuan.ContactName;
                cusMob.Value = huiyuan.UserName;
                proName.Value = model.OrderCode;

                string policyXML = new com._8222666.fxb2b.Service().XmlSubmit(
               Utils.getIdentityXMLString()
            , string.Format("<QuerySubsOrder_1_3><SubsOrderNo>{0}</SubsOrderNo></QuerySubsOrder_1_3>", id)
            , "");
                getCarrNo(policyXML);
                lblxiaofei.Visible = false;
            }
        }