Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //登录判断

                Base_Users userExt = new Base_Users();
                userExt = FacadeManage.aidePlatformManagerFacade.GetUserInfoFromCache();
                if (userExt == null || userExt.UserID <= 0 || (userExt.UserID != ApplicationConfig.SUPER_ADMINISTRATOR_ID && userExt.RoleID <= 0))
                {
                    Response.Redirect("/Login.aspx?errtype=overtime");
                    return;
                }

                userExt         = FacadeManage.aidePlatformManagerFacade.GetUserByUserID(userExt.UserID);
                userName        = userExt.Username;
                preLogonDate    = userExt.PreLogintime.ToString();
                preLogonip      = userExt.LastLoginIP;
                preLogonTimes   = userExt.LoginTimes;
                preLogonAddress = IPQuery.GetAddressWithIP(preLogonip);
                if (userExt.UserID == ApplicationConfig.SUPER_ADMINISTRATOR_ID || userExt.RoleID == 1)
                {
                    roleName = "超级管理员";
                }
                else
                {
                    roleName = FacadeManage.aidePlatformManagerFacade.GetRolenameByRoleID(userExt.RoleID);
                }
            }
        }
Example #2
0
        private void BindData()
        {
            if (IntParam <= 0)
            {
                return;
            }
            //获取信息
            AccountsInfo model = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(IntParam);

            if (model == null)
            {
                MessageBox("用户信息不存在");
                return;
            }

            CtrlHelper.SetText(ltGameID, model.GameID.ToString());
            CtrlHelper.SetText(ltAccounts, model.Accounts.Trim());
            CtrlHelper.SetText(ltUserModel, model.UserMedal.ToString("N0"));
            CtrlHelper.SetText(ltLove, model.LoveLiness.ToString("N0"));

            UserCurrencyInfo uci = FacadeManage.aideTreasureFacade.GetUserCurrencyInfo(IntParam);

            if (uci != null)
            {
                ltCurrency.Text = uci.Currency.ToString("N0");
            }

            //游戏币信息
            GameScoreInfo scoreInfo = FacadeManage.aideTreasureFacade.GetGameScoreInfoByUserID(IntParam);

            if (scoreInfo == null)
            {
                return;
            }
            CtrlHelper.SetText(ltScore, scoreInfo.Score.ToString("N0"));
            CtrlHelper.SetText(ltInsureScore, scoreInfo.InsureScore.ToString("N0"));
            CtrlHelper.SetText(ltWinCount, scoreInfo.WinCount.ToString());
            CtrlHelper.SetText(ltLostCount, scoreInfo.LostCount.ToString());
            CtrlHelper.SetText(ltDrawCount, scoreInfo.DrawCount.ToString());
            CtrlHelper.SetText(ltFleeCount, scoreInfo.FleeCount.ToString());
            CtrlHelper.SetText(ltRevenue, scoreInfo.Revenue.ToString("N0"));

            //登录房间、注册信息
            CtrlHelper.SetText(ltGameLogonTimes, scoreInfo.AllLogonTimes.ToString());
            CtrlHelper.SetText(ltLastLogonDate, scoreInfo.AllLogonTimes == 0 ? "从未登陆房间" : scoreInfo.LastLogonDate.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(ltLogonSpacingTime, scoreInfo.AllLogonTimes == 0 ? "" : Fetch.GetTimeSpan(Convert.ToDateTime(scoreInfo.LastLogonDate), DateTime.Now) + " 前");

            CtrlHelper.SetText(ltLastLogonIP, scoreInfo.LastLogonIP.ToString());
            CtrlHelper.SetText(ltLogonIPInfo, IPQuery.GetAddressWithIP(scoreInfo.LastLogonIP.ToString()));
            CtrlHelper.SetText(ltLastLogonMachine, scoreInfo.LastLogonMachine.ToString());
            CtrlHelper.SetText(ltRegisterDate, scoreInfo.RegisterDate.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(ltRegisterIP, scoreInfo.RegisterIP.ToString());
            CtrlHelper.SetText(ltRegIPInfo, IPQuery.GetAddressWithIP(scoreInfo.RegisterIP.ToString()));
            CtrlHelper.SetText(ltRegisterMachine, scoreInfo.RegisterMachine.ToString());
            CtrlHelper.SetText(ltOnLineTimeCount, scoreInfo.OnLineTimeCount.ToString());
            CtrlHelper.SetText(ltPlayTimeCount, scoreInfo.PlayTimeCount.ToString());
        }
        private void BindData()
        {
            if (IntParam <= 0)
            {
                return;
            }
            //获取信息
            AccountsInfo model = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(IntParam);

            if (model == null)
            {
                MessageBox("用户信息不存在");
                return;
            }

            CtrlHelper.SetText(ltGameID, model.GameID.ToString());
            CtrlHelper.SetText(ltAccounts, model.Accounts.Trim());
            int kindID = int.Parse(ddlGame.SelectedValue);

            if (kindID <= 0)
            {
                return;
            }

            //积分信息
            //GameScoreFacade aideGameScoreFacade = new GameScoreFacade( aidePlatformFacade.GetConn( kindID ) );
            //Game.Entity.GameScore.GameScoreInfo scoreInfo = aideGameScoreFacade.GetGameScoreInfoByUserId( IntParam );
            GameScoreInfo scoreInfo = new TreasureFacade(kindID).GetGameScoreInfoByUserID(IntParam);

            if (scoreInfo == null)
            {
                return;
            }
            CtrlHelper.SetText(ltScore, scoreInfo.Score.ToString("N0"));

            CtrlHelper.SetText(ltWinCount, scoreInfo.WinCount.ToString());
            CtrlHelper.SetText(ltLostCount, scoreInfo.LostCount.ToString());
            CtrlHelper.SetText(ltDrawCount, scoreInfo.DrawCount.ToString());
            CtrlHelper.SetText(ltFleeCount, scoreInfo.FleeCount.ToString());


            //登录房间、注册信息
            CtrlHelper.SetText(ltGameLogonTimes, scoreInfo.AllLogonTimes.ToString() + "次");
            CtrlHelper.SetText(ltLastLogonDate, scoreInfo.LastLogonDate.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(ltLogonSpacingTime, Fetch.GetTimeSpan(Convert.ToDateTime(scoreInfo.LastLogonDate), DateTime.Now) + "前");

            CtrlHelper.SetText(ltLastLogonIP, scoreInfo.LastLogonIP.ToString());
            CtrlHelper.SetText(ltLogonIPInfo, IPQuery.GetAddressWithIP(scoreInfo.LastLogonIP.ToString()));
            CtrlHelper.SetText(ltLastLogonMachine, scoreInfo.LastLogonMachine.ToString());
            CtrlHelper.SetText(ltRegisterDate, scoreInfo.RegisterDate.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(ltRegisterIP, scoreInfo.RegisterIP.ToString());
            CtrlHelper.SetText(ltRegIPInfo, IPQuery.GetAddressWithIP(scoreInfo.RegisterIP.ToString()));
            CtrlHelper.SetText(ltRegisterMachine, scoreInfo.RegisterMachine.ToString());
            CtrlHelper.SetText(ltOnLineTimeCount, scoreInfo.OnLineTimeCount.ToString());
            CtrlHelper.SetText(ltPlayTimeCount, scoreInfo.PlayTimeCount.ToString());
        }
Example #4
0
        public static string GetAddressWithIP(string IP)
        {
            string text = "";

            try
            {
                return(IPQuery.GetAddressWithIP(IP));
            }
            catch (Exception)
            {
                return("");
            }
        }
Example #5
0
        public static string GetAddressWithIP(string IP)
        {
            string result = "";

            try
            {
                result = IPQuery.GetAddressWithIP(IP);
            }
            catch (System.Exception)
            {
                result = "";
            }
            return(result);
        }
Example #6
0
        private void KQDetailDataBind()
        {
            if (id <= 0)
            {
                return;
            }

            //获取站点信息
            ReturnKQDetailInfo kQDetailInfo = FacadeManage.aideTreasureFacade.GetKQDetailInfo(id);

            if (kQDetailInfo == null)
            {
                ShowError("信息不存在");
                return;
            }

            CtrlHelper.SetText(litOrderID, "<a class='l' href='javascript:void(0)' onclick=\"javascript:openWindowOwn('OnLineOrderInfo.aspx?OrderID=" + kQDetailInfo.OrderID + "','online_" + kQDetailInfo.OrderID + "',600,465)\">" + kQDetailInfo.OrderID + "</a>");
            CtrlHelper.SetText(litOrderTime, kQDetailInfo.OrderTime.ToString("yyyy-MM-dd HH:ss:mm"));
            CtrlHelper.SetText(litOrderAmount, kQDetailInfo.OrderAmount.ToString("N"));
            CtrlHelper.SetText(litPayAmount, kQDetailInfo.PayAmount.ToString("N"));
            CtrlHelper.SetText(litFee, kQDetailInfo.Fee.ToString("f3"));
            CtrlHelper.SetText(litRevenue, (kQDetailInfo.PayAmount - kQDetailInfo.Fee).ToString("f3"));
            if (kQDetailInfo.PayResult == "10")
            {
                CtrlHelper.SetText(litPayResult, "<span class='lan'>成功</span>");
            }
            else
            {
                CtrlHelper.SetText(litPayResult, "<span class='hong'>失败</span>");
            }
            CtrlHelper.SetText(litDealID, kQDetailInfo.DealID);
            CtrlHelper.SetText(litDealTime, kQDetailInfo.DealTime.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(litBankDealID, kQDetailInfo.BankDealID);
            CtrlHelper.SetText(litPayType, billPayType.GetBillPayType(kQDetailInfo.PayType.Trim()));
            CtrlHelper.SetText(litBankID, billBanks.GetBillBanksByCode(kQDetailInfo.BankID.Trim()));
            CtrlHelper.SetText(litErrCode, kQDetailInfo.ErrCode);
            CtrlHelper.SetText(litVersion, kQDetailInfo.Version);
            CtrlHelper.SetText(litLanguage, "中文");
            CtrlHelper.SetText(litExt1, kQDetailInfo.Ext1 + "&nbsp;&nbsp;" + IPQuery.GetAddressWithIP(kQDetailInfo.Ext1));
            CtrlHelper.SetText(litExt2, kQDetailInfo.Ext2);
            CtrlHelper.SetText(litSignType, "与提交订单时的签名类型保持一致");
            CtrlHelper.SetText(litSignMsg, kQDetailInfo.SignMsg);
        }
Example #7
0
        private void GameUserDataBind()
        {
            //验证数据
            if (id <= 0)
            {
                return;
            }

            //获取用户信息
            Base_Users user = aidePlatformManagerFacade.GetUserByUserID(id);

            if (user == null)
            {
                MessageBox("用户信息不存在");
                return;
            }
            CtrlHelper.SetText(lblAccounts, user.Username);
            CtrlHelper.SetText(lblRoleID, GetRoleName(user.RoleID));
            CtrlHelper.SetText(hdfOldLogonPass, user.Password);
            CtrlHelper.SetText(lblLoginTimes, user.LoginTimes.ToString());
            CtrlHelper.SetText(lblLastLogonIP, IPQuery.GetAddressWithIP(user.LastLoginIP));
            CtrlHelper.SetText(lblLastLogonDate, user.LastLogintime.ToString());
        }
Example #8
0
        private void OnLineOrderDataBind()
        {
            if (orderID == "")
            {
                return;
            }

            //获取站点信息
            OnLineOrder onLineOrderInfo = aideTreasureFacade.GetOnLineOrderInfo(orderID);

            if (onLineOrderInfo == null)
            {
                ShowError("信息不存在");
                return;
            }

            CtrlHelper.SetText(litOrderID, onLineOrderInfo.OrderID.Trim());
            CtrlHelper.SetText(litApplyDate, onLineOrderInfo.ApplyDate.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(litAccounts, onLineOrderInfo.Accounts.Trim());
            CtrlHelper.SetText(litOrderAmount, onLineOrderInfo.OrderAmount.ToString("N"));
            CtrlHelper.SetText(litPayAmount, onLineOrderInfo.PayAmount.ToString("N"));
            CtrlHelper.SetText(litPresentScore, onLineOrderInfo.CardGold.ToString());
            if (onLineOrderInfo.OrderStatus == 0)
            {
                CtrlHelper.SetText(litOrderStatus, "<span class='hong'>未付款</span>");
            }
            else if (onLineOrderInfo.OrderStatus == 1)
            {
                CtrlHelper.SetText(litOrderStatus, "<span class='lan'>已付款待处理</span>");
            }
            else
            {
                CtrlHelper.SetText(litOrderStatus, "<span class='lan'>成功</span>");
            }
            CtrlHelper.SetText(litIPAddress, onLineOrderInfo.IPAddress.Trim() + "&nbsp;&nbsp;" + IPQuery.GetAddressWithIP(onLineOrderInfo.IPAddress.Trim()));
            CtrlHelper.SetText(litOperUserID, onLineOrderInfo.OperUserID.ToString());
        }
Example #9
0
        private void BindData( )
        {
            if (IntParam <= 0)
            {
                return;
            }

            //获取信息
            AccountsInfo model = aideAccountsFacade.GetAccountInfoByUserID(IntParam);

            if (model == null)
            {
                MessageBox("用户信息不存在");
                return;
            }
            //CtrlHelper.SetText( ltUserID, model.UserID.ToString( ) );
            CtrlHelper.SetText(ltGameID, model.GameID.ToString( ));
            CtrlHelper.SetText(ltRegAccounts, model.RegAccounts.Trim( ));
            CtrlHelper.SetText(txtAccount, model.Accounts.Trim( ));
            CtrlHelper.SetText(txtNickName, model.NickName.Trim( ));
            CtrlHelper.SetText(litCompellation, model.Compellation);
            //CtrlHelper.SetText(litUserMedal, model.UserMedal.ToString());

            CtrlHelper.SetText(txtUnderWrite, model.UnderWrite.Trim( ));
            CtrlHelper.SetCheckBoxValue(ckbNullity, model.Nullity);
            CtrlHelper.SetCheckBoxValue(ckbStunDown, model.StunDown);
            CtrlHelper.SetText(txtExperience, model.Experience.ToString( ).Trim( ));
            CtrlHelper.SetText(txtPresent, model.Present.ToString( ).Trim( ));
            CtrlHelper.SetText(txtLoveLiness, model.LoveLiness.ToString( ).Trim( ));
            CtrlHelper.SetText(ltProtectID, model.ProtectID > 0 ? "<span style=\"font-weight: bold;\">已申请</span>&nbsp;<a href=\"javascript:openWindow('AccountsProtectInfo.aspx?param=" + model.ProtectID + "',580,320)\" class=\"l1\">点击查看</a>" : "未申请");
            CtrlHelper.SetText(ltMemberInfo, GetMemberName(model.MemberOrder) + (model.MemberOrder == 0 ? "" : "&nbsp;&nbsp;&nbsp;&nbsp;到期时间:" + model.MemberSwitchDate.ToString("yyyy-MM-dd mm:HH:ss")));
            if (model.MemberOrder != 0)
            {
                plMemberList.Visible = true;
            }
            strFaceID = model.FaceID.ToString( );
            ddlGender.SelectedValue      = model.Gender.ToString( );
            rdoMoorMachine.SelectedValue = model.MoorMachine.ToString( );
            //用户权限
            int intUserRight = model.UserRight;

            if (ckbUserRight.Items.Count > 0)
            {
                foreach (ListItem item in ckbUserRight.Items)
                {
                    item.Selected = int.Parse(item.Value) == (intUserRight & int.Parse(item.Value));
                }
            }
            //玩家身份
            ddlMasterOrder.SelectedValue = model.MasterOrder.ToString( ).Trim( );
            //用户管理权限
            int intMasterRight = model.MasterRight;

            if (ckbMasterRight.Items.Count > 0)
            {
                foreach (ListItem item in ckbMasterRight.Items)
                {
                    item.Selected = int.Parse(item.Value) == (intMasterRight & int.Parse(item.Value));
                }
            }
            //机器人
            CtrlHelper.SetCheckBoxValue(chkIsAndroid, model.IsAndroid);

            //登录、注册信息
            CtrlHelper.SetText(ltWebLogonTimes, model.WebLogonTimes.ToString( ));
            CtrlHelper.SetText(ltGameLogonTimes, model.GameLogonTimes.ToString( ));
            CtrlHelper.SetText(ltLastLogonDate, model.LastLogonDate.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(ltLogonSpacingTime, Fetch.GetTimeSpan(Convert.ToDateTime(model.LastLogonDate), DateTime.Now));
            CtrlHelper.SetText(ltLastLogonIP, model.LastLogonIP.ToString( ));
            CtrlHelper.SetText(ltLogonIPInfo, IPQuery.GetAddressWithIP(model.LastLogonIP.ToString( )));
            CtrlHelper.SetText(ltLastLogonMachine, model.LastLogonMachine.ToString( ));
            CtrlHelper.SetText(ltRegisterDate, model.RegisterDate.ToString("yyyy-MM-dd HH:mm:ss"));
            CtrlHelper.SetText(ltRegisterIP, model.RegisterIP.ToString( ));
            CtrlHelper.SetText(ltRegIPInfo, IPQuery.GetAddressWithIP(model.RegisterIP.ToString( )));
            CtrlHelper.SetText(ltRegisterMachine, model.RegisterMachine.ToString( ));
            CtrlHelper.SetText(ltOnLineTimeCount, Fetch.ConverTimeToDHMS(model.OnLineTimeCount));
            CtrlHelper.SetText(ltPlayTimeCount, Fetch.ConverTimeToDHMS(model.PlayTimeCount));

            //密保卡信息
            //PasswordCard pc = new PasswordCard( );
            if (model.PasswordID != 0)
            {
                LiteralPasswordCard.Text = "<span style=\"font-weight: bold;\">已绑定</span>";
                spanPasswordCard.Visible = true;
            }
        }
Example #10
0
 /// <summary>
 /// 根据IP的地理位置
 /// </summary>
 /// <param name="IP">IP</param>
 /// <returns></returns>
 protected string GetAddressWithIP(string IP)
 {
     return(IPQuery.GetAddressWithIP(IP));
 }