예제 #1
0
        /// <summary>
        /// 创建目录
        /// </summary>
        private void CreateFolder()
        {
            string folderName = GameRequest.GetFormString("txtFolderName");
            string serverPath = TextUtility.GetRealPath(m_folderPath);

            if (TextUtility.EmptyTrimOrNull(folderName))
            {
                m_value = "目录名不能为空";
                return;
            }

            DirectoryInfo dir = new DirectoryInfo(serverPath + "\\" + folderName);

            if (dir.Exists)
            {
                m_value = "目录名已存在";
            }
            else
            {
                try
                {
                    dir.Create();
                    m_value = "创建目录成功, 目录名称为: " + folderName;
                }
                catch
                {
                    m_value = "创建目录失败, 权限不足";
                }
            }
        }
        public JsonResult DelOnlineCount()
        {
            string formString = GameRequest.GetFormString("cid");

            if (formString != "")
            {
                string[]      array         = formString.Trim().Split(',');
                StringBuilder stringBuilder = new StringBuilder();
                string[]      array2        = array;
                foreach (string text in array2)
                {
                    int result = 0;
                    if (int.TryParse(text, out result))
                    {
                        stringBuilder.Append(text + ",");
                    }
                }
                if (!string.IsNullOrEmpty(stringBuilder.ToString()))
                {
                    string sWhere = "WHERE ID in (" + stringBuilder.ToString().TrimEnd(',') + ")";
                    try
                    {
                        FacadeManage.aidePlatformFacade.DeleteOnlineCount(sWhere);
                        RequestMessage requestMessage = new RequestMessage(5);
                        string         text2          = requestMessage.Post();
                        if (!text2.Contains("OK"))
                        {
                            return(Json(new
                            {
                                IsOk = false,
                                Msg = text2
                            }));
                        }
                        return(Json(new
                        {
                            IsOk = true,
                            Msg = "删除成功"
                        }));
                    }
                    catch
                    {
                        return(Json(new
                        {
                            IsOk = false,
                            Msg = "删除失败"
                        }));
                    }
                }
                return(Json(new
                {
                    IsOk = false,
                    Msg = "参数不正确"
                }));
            }
            return(Json(new
            {
                IsOk = false,
                Msg = "没有参数"
            }));
        }
예제 #3
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            string text = GameRequest.GetFormString("action").ToLower();
            string a;

            if ((a = text) != null)
            {
                if (a == "userspreadinfo")
                {
                    this.UserSpreadInfo();
                }
                else
                {
                    if (a == "spreadbalance")
                    {
                        this.SpreadBalance();
                    }
                    else
                    {
                        if (a == "myspreadcheck")
                        {
                            this.MySpreadCheck();
                        }
                    }
                }
            }
        }
예제 #4
0
        private void CreateFolder()
        {
            string formString = GameRequest.GetFormString("txtFolderName");
            string realPath   = TextUtility.GetRealPath(this.m_folderPath);

            if (TextUtility.EmptyTrimOrNull(formString))
            {
                this.m_value = "目录名不能为空";
                return;
            }
            DirectoryInfo directoryInfo = new DirectoryInfo(string.Concat(realPath, "\\", formString));

            if (directoryInfo.Exists)
            {
                this.m_value = "目录名已存在";
                return;
            }
            try
            {
                directoryInfo.Create();
                this.m_value = string.Concat("创建目录成功, 目录名称为: ", formString);
            }
            catch
            {
                this.m_value = "创建目录失败, 权限不足";
            }
        }
예제 #5
0
        public JsonResult UpdateTradeSet()
        {
            string formString = GameRequest.GetFormString("sData");

            if (!(formString == ""))
            {
                CashSetting model = JsonHelper.DeserializeJsonToObject <CashSetting>(formString);
                try
                {
                    FacadeManage.aideAccountsFacade.UpdatePlayerSetting(model);
                    return(Json(new
                    {
                        IsOk = true,
                        Msg = "设置成功"
                    }));
                }
                catch (Exception ex)
                {
                    return(Json(new
                    {
                        IsOk = false,
                        Msg = ex.Message
                    }));
                }
            }
            return(Json(new
            {
                IsOk = false,
                Msg = "参数错误"
            }));
        }
예제 #6
0
        private void CreateFolder()
        {
            string formString = GameRequest.GetFormString("txtFolderName");
            string realPath   = TextUtility.GetRealPath(m_folderPath);

            if (TextUtility.EmptyTrimOrNull(formString))
            {
                m_value = "目录名不能为空";
            }
            else
            {
                DirectoryInfo directoryInfo = new DirectoryInfo(realPath + "\\" + formString);
                if (!directoryInfo.Exists)
                {
                    try
                    {
                        directoryInfo.Create();
                        m_value = "创建目录成功, 目录名称为: " + formString;
                    }
                    catch
                    {
                        m_value = "创建目录失败, 权限不足";
                    }
                }
                else
                {
                    m_value = "目录名已存在";
                }
            }
        }
예제 #7
0
        public string Save(HttpRequest req)
        {
            string module = GetModuleName(Convert.ToInt32(req["moduleType"] ?? "0"));

            try
            {
                Base_Users user = new Base_Users();
                user.UserID          = Convert.ToInt32(req["AdminID"] ?? "0");
                user.Username        = GameRequest.GetFormString("UserName");
                user.canHasSubAgent  = Convert.ToByte(req.Form["canHasSub"]);
                user.AgentLevelLimit = Convert.ToInt32(req.Form["AgentLevelLimit"]);
                user.RoleID          = Convert.ToInt32(req.Form["RoleID"]);
                user.GradeID         = Convert.ToInt32(req.Form["GradeID"]);
                user.Nullity         = byte.Parse(GameRequest.GetFormString("AgentStatus"));
                user.Percentage      = GameRequest.GetFormInt("Revenue", 0);

                Message msg = aidePlatformManagerFacade.ModifyUserInfo(user);
                if (msg.Success)
                {
                    LogHelper2.SaveSuccessLog("修改[" + req.Form["UserName"] + "]", userExt.UserID, (int)LogOperationEnum.EditAgent, GameRequest.GetUserIP(), module);
                    return(JsonResultHelper.GetSuccessJson("保存成功"));
                }
                else
                {
                    LogHelper2.SaveErrLog("修改[" + req.Form["UserName"] + "]", msg.Content, userExt.UserID, (int)LogOperationEnum.EditAgent, GameRequest.GetUserIP(), module);
                    return(JsonResultHelper.GetErrorJson(msg.Content));
                }
            }
            catch (Exception ex)
            {
                LogHelper2.SaveErrLog("修改[" + req.Form["UserName"] + "]", ex.Message, userExt.UserID, (int)LogOperationEnum.EditAgent, GameRequest.GetUserIP(), module);
                return(JsonResultHelper.GetErrorJson(ex.Message));
            }
        }
예제 #8
0
        /// <summary>
        /// 批量删除
        /// </summary>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Delete);
            StringBuilder sbValue        = new StringBuilder();
            string        Checkbox_Value = GameRequest.GetFormString("cid");

            string[] arrValue = Checkbox_Value.Split(',');
            if (arrValue.Length > 0)
            {
                for (int i = 0; i < arrValue.Length; i++)
                {
                    sbValue.AppendFormat("'{0}',", arrValue[i]);
                }
            }
            string strQuery = "WHERE MachineSerial in (" + sbValue.ToString().TrimEnd(new char[] { ',' }) + ")";
            int    result   = FacadeManage.aideAccountsFacade.DeleteConfineMachine(strQuery);

            if (result > 0)
            {
                ShowInfo("删除成功", "ConfineMachineList.aspx", 1200);
                BindData();
            }
            else
            {
                ShowError("删除失败");
            }
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Delete);
            StringBuilder sbValue        = new StringBuilder( );
            string        Checkbox_Value = GameRequest.GetFormString("cid");

            string[] arrValue = Checkbox_Value.Split(',');
            if (arrValue.Length > 0)
            {
                for (int i = 0; i < arrValue.Length; i++)
                {
                    sbValue.AppendFormat("'{0}',", arrValue[i]);
                }
            }
            string strQuery = "WHERE String in (" + sbValue.ToString( ).TrimEnd(new char[] { ',' }) + ")";

            try
            {
                aideAccountsFacade.DeleteConfineContent(strQuery);
                ShowInfo("删除成功");
                BindData( );
            }
            catch
            {
                ShowError("删除失败");
            }
        }
예제 #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //定义变量
            userName = GameRequest.GetFormString("txtPayAccounts");
            string reUserName = GameRequest.GetFormString("txtPayReAccounts");

            money     = GameRequest.GetFormInt("hdfSalePrice", 0);
            sendUrl   = System.Configuration.ConfigurationSettings.AppSettings["DaySendUrl"];    //导向地址
            notifyUrl = System.Configuration.ConfigurationSettings.AppSettings["DayNotifyUrl"];  //同步回调地址
            string key = System.Configuration.ConfigurationSettings.AppSettings["DayKey"];       //密钥

            merId = System.Configuration.ConfigurationSettings.AppSettings["DayMerId"];          //商户ID


            //验证参数
            if (userName != reUserName)
            {
                ShowAndRedirect("两次输入的用户名不一致", "/Pay/PayDay.aspx");
                return;
            }
            if (money == 0)
            {
                ShowAndRedirect("金额输入有误", "/Pay/PayDay.aspx");
                return;
            }

            //生成订单
            orderID = PayHelper.GetOrderIDByPrefix("Day");      //订单号
            OnLineOrder onlineOrder = new OnLineOrder( );

            onlineOrder.ShareID = 2;
            onlineOrder.OrderID = orderID;
            if (Fetch.GetUserCookie( ) == null)
            {
                onlineOrder.OperUserID = 0;
            }
            else
            {
                onlineOrder.OperUserID = Fetch.GetUserCookie( ).UserID;
            }
            onlineOrder.Accounts    = userName;
            onlineOrder.CardTotal   = 1;
            onlineOrder.CardTypeID  = money < 30 ? 1 : money < 60 ? 2 : money < 120 ? 3 : 4;
            onlineOrder.OrderAmount = money;
            onlineOrder.IPAddress   = GameRequest.GetUserIP( );
            TreasureFacade treasureFacade = new TreasureFacade( );
            Message        umsg           = treasureFacade.RequestOrder(onlineOrder);

            if (!umsg.Success)
            {
                RenderAlertInfo(true, umsg.Content, 2);
                return;
            }

            //生成sign签名
            string signStr = merId + "|" + orderID + "|" + money + "|" + sendUrl + "|" + userName + "|" + key;

            sign = EncryptMD5(signStr, false, 32);
        }
예제 #11
0
        /// <summary>
        /// 更新转账返利配置
        /// </summary>
        /// <param name="context"></param>
        private void UpdateTransferReturnConfig(HttpContext context)
        {
            //验证权限
            int             moduleID = 313;
            AdminPermission adminPer = new AdminPermission(userExt, moduleID);

            if (!adminPer.GetPermission((long)Permission.Edit))
            {
                ajv.msg = "非法操作,无操作权限";
                context.Response.Write(ajv.SerializeToJson());
                return;
            }

            int    id      = GameRequest.GetFormInt("id", 0);
            string type    = GameRequest.GetFormString("ReturnType");
            string percent = GameRequest.GetFormString("ReturnPercent");

            //验证ID
            if (id == 0)
            {
                ajv.msg = "非法操作,无效的配置标识";
                context.Response.Write(ajv.SerializeToJson());
                return;
            }

            //验证类型
            if (!Utils.Validate.IsPositiveInt(type))
            {
                ajv.msg = "输入的类型格式不正确";
                context.Response.Write(ajv.SerializeToJson());
                return;
            }
            //验证数量
            if (!Utils.Validate.IsPositiveInt(percent))
            {
                ajv.msg = "输入的返利比例格式不正确";
                context.Response.Write(ajv.SerializeToJson());
                return;
            }

            TransferReturnConfig model = new TransferReturnConfig();

            model.ConfigID      = id;
            model.ReturnType    = Convert.ToByte(type);
            model.ReturnPercent = Convert.ToInt32(percent);

            int result = FacadeManage.aideTreasureFacade.UpdateTransferReturnConfig(model);

            if (result > 0)
            {
                ajv.msg = "修改成功";
                ajv.SetValidDataValue(true);
            }
            else
            {
                ajv.msg = "修改失败";
            }
            context.Response.Write(ajv.SerializeToJson());
        }
        protected void DisableMachine(object sender, EventArgs e)
        {
            AuthUserOperationPermission(Permission.Add);
            StringBuilder sbValue     = new StringBuilder();
            string        machineList = GameRequest.GetFormString("cid");

            FacadeManage.aideAccountsFacade.BatchInsertConfineMachine(machineList);
            MessageBox("操作成功", "ConfineMachineTop.aspx");
        }
예제 #13
0
        public void RetrievePassword(HttpContext context)
        {
            Message       msg      = new Message();
            AjaxJsonValid ajaxJson = new AjaxJsonValid();

            string answer1    = GameRequest.GetFormString("Answer1");
            string answer2    = GameRequest.GetFormString("Answer2");
            string answer3    = GameRequest.GetFormString("Answer3");
            string password   = GameRequest.GetFormString("Password");
            string rePassword = GameRequest.GetFormString("RePassword");
            int    userID     = GameRequest.GetFormInt("UserID", 0);

            #region 参数验证
            if (string.IsNullOrEmpty(answer1) || string.IsNullOrEmpty(answer2) || string.IsNullOrEmpty(answer3))
            {
                ajaxJson.msg = "抱歉,密保答案不能为空";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            if (string.IsNullOrEmpty(password))
            {
                ajaxJson.msg = "抱歉,新密码不能为空";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            if (password != rePassword)
            {
                ajaxJson.msg = "抱歉,两次密码输入不一致";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            if (userID <= 0)
            {
                ajaxJson.msg = "抱歉,找回密码用户不存在";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            #endregion 参数验证

            AccountsProtect protect = new AccountsProtect();
            protect.UserID      = userID;
            protect.LogonPass   = TextEncrypt.EncryptPassword(password);
            protect.Response1   = answer1;
            protect.Response2   = answer2;
            protect.Response3   = answer3;
            protect.LastLogonIP = GameRequest.GetUserIP();

            Message umsg = FacadeManage.aideAccountsFacade.ResetLogonPasswd(protect);
            ajaxJson.SetValidDataValue(umsg.Success);
            ajaxJson.msg = umsg.Content;
            context.Response.Write(ajaxJson.SerializeToJson());
        }
예제 #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int    typeid  = GameRequest.GetFormInt("typeid", 0);
                string content = GameRequest.GetFormString("content");

                if (typeid <= 0 || typeid > 2)
                {
                    lbTip.Text        = "抱歉,找回密码方式选择错误!";
                    fmStep2.Visible   = false;
                    fmStep3.Visible   = true;
                    btnSubmit.Visible = false;
                    return;
                }
                if (typeid == 2 && !Utils.Validate.IsPositiveInt(content))
                {
                    lbTip.Text        = "抱歉,输入的游戏ID格式错误!";
                    fmStep2.Visible   = false;
                    fmStep3.Visible   = true;
                    btnSubmit.Visible = false;
                    return;
                }

                Message msg = typeid == 1 ? FacadeManage.aideAccountsFacade.GetUserSecurityByAccounts(content)
                    : FacadeManage.aideAccountsFacade.GetUserSecurityByGameID(Convert.ToInt32(content));

                if (msg.Success)
                {
                    AccountsProtect protect = msg.EntityList[0] as AccountsProtect;
                    if (protect != null)
                    {
                        lbQuestion1.Text = protect.Question1;
                        lbQuestion2.Text = protect.Question2;
                        lbQuestion3.Text = protect.Question3;
                        hfUser.Value     = protect.UserID.ToString();
                    }
                    else
                    {
                        fmStep2.Visible = false;
                        fmStep3.Visible = true;
                    }
                }
                else
                {
                    lbTip.Text        = msg.Content;
                    fmStep2.Visible   = false;
                    fmStep3.Visible   = true;
                    btnSubmit.Visible = false;
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string key      = System.Configuration.ConfigurationSettings.AppSettings["DayKey"];            //密钥
            string merId    = System.Configuration.ConfigurationSettings.AppSettings["DayMerId"];          //商户ID
            string status   = GameRequest.GetFormString("status");                                         //交易状态
            string sign     = GameRequest.GetFormString("sign");                                           //签名
            string orderId  = GameRequest.GetFormString("orderId");                                        //订单号
            float  payMoney = GameRequest.GetFormFloat("payMoney", 0);                                     //金额
            string operDate = GameRequest.GetFormString("operDate");                                       //订单日期
            string userName = GameRequest.GetFormString("userName");                                       //用户名
            string showUrl  = "http://" + HttpContext.Current.Request.Url.Authority + "/Pay/PayShow.aspx"; //交易完成后提示地址
            string signStr  = merId + "|" + orderId + "|" + status + "|" + payMoney + "|" + operDate + "|" + userName + "|" + key;
            string testSign = EncryptMD5(signStr, false, 32);                                              //计算签名

            ReturnDayDetailInfo result = new ReturnDayDetailInfo( );

            result.OrderID  = orderId;
            result.PayMoney = Convert.ToDecimal(payMoney);
            result.Sign     = sign;
            result.UserName = userName;
            result.PayType  = 1;
            result.Status   = status;

            //天天付支付结果入库
            treasureFacade.WriteReturnDayDetail(result);

            if (signStr == testSign)
            {
                //交易状态为005时表示交易完成
                if (status == "055")
                {
                    ShareDetialInfo detailInfo = new ShareDetialInfo( );
                    detailInfo.OrderID   = orderId;
                    detailInfo.IPAddress = Utility.UserIP;
                    Message umsg = treasureFacade.FilliedOnline(detailInfo, 0);
                    if (umsg.Success)
                    {
                        rtnUrl = showUrl + "?msg=1";//在线充值成功
                    }
                    else
                    {
                        rtnUrl = showUrl + "?msg=2";//在线充值成功,数据正在更新中
                    }
                }
                else
                {
                    rtnOk  = 1;
                    rtnUrl = showUrl + "?msg=3"; //在线充值失败!
                }
            }
        }
예제 #16
0
 /// <summary>
 /// 批量禁用地址
 /// </summary>
 protected void DisableIP(object sender, EventArgs e)
 {
     AuthUserOperationPermission(Permission.Add);
     try
     {
         string ipList = GameRequest.GetFormString("cid");
         FacadeManage.aideAccountsFacade.BatchInsertConfineAddress(ipList);
         MessageBox("操作成功", "ConfineAddressTop.aspx");
     }
     catch (Exception)
     {
         MessageBox("操作失败");
     }
 }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE ID in (" + Checkbox_Value + ")";

            try
            {
                aidePlatformFacade.DeleteSystemMessage(strQuery);
                ShowInfo("删除成功");
            }
            catch
            {
                ShowError("删除失败");
            }
            SystemMessageDataBind();
        }
예제 #18
0
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE DetailID in (" + Checkbox_Value + ")";

            try
            {
                aideTreasureFacade.DeleteYPDetail(strQuery);
                ShowInfo("删除成功");
            }
            catch
            {
                ShowError("删除失败");
            }
            OnLineOrderDataBind( );
        }
        //批量启用
        protected void btnEnable_Click(object sender, EventArgs e)
        {
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE CardID in (" + Checkbox_Value + ")";

            try
            {
                aideTreasureFacade.SetCardEnbale(strQuery);
                MessageBox("启用成功");
            }
            catch
            {
                MessageBox("启用失败");
            }
            BindData( );
        }
예제 #20
0
        /// <summary>
        /// 批量解冻玩家
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnJiedong_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Edit);
            string Checkbox_Value = GameRequest.GetFormString("cid");

            try
            {
                aidePlatformManagerFacade.ModifyUserNullity(Checkbox_Value, false);
                ShowInfo("解冻成功");
            }
            catch
            {
                ShowError("解冻失败");
            }
            GameUserDataBind( );
        }
        /// <summary>
        /// 批量解冻
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEnable_Click(object sender, EventArgs e)
        {
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "Update " + SystemMessage.Tablename + " Set Nullity = 0 WHERE ID in (" + Checkbox_Value + ") and Nullity = 1";
            int    result         = aidePlatformFacade.ExecuteSql(strQuery);

            if (result > 0)
            {
                ShowInfo("解冻成功");
            }
            else
            {
                ShowError("解冻失败,没有需要解冻的消息!");
            }

            SystemMessageDataBind( );
        }
예제 #22
0
        /// <summary>
        /// 批量解冻玩家
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnJiedong_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Enable);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE UserID in (" + Checkbox_Value + ")";

            try
            {
                aideAccountsFacade.JieDongAccount(strQuery);
                ShowInfo("解冻成功");
            }
            catch
            {
                ShowError("解冻失败");
            }
            AccountsDataBind( );
        }
예제 #23
0
        //解冻
        protected void btnEnable_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Edit);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE NoticeID in (" + Checkbox_Value + ")";

            try
            {
                aideNativeWebFacade.SetNoticeEnbale(strQuery);
                ShowInfo("解冻成功");
            }
            catch
            {
                ShowError("解冻失败");
            }
            NoticeDataBind( );
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Delete);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE FeedbackID in (" + Checkbox_Value + ")";

            try
            {
                aideNativeWebFacade.DeleteGameFeedback(strQuery);
                ShowInfo("删除成功");
            }
            catch
            {
                ShowError("删除失败");
            }
            FeedbackDataBind();
        }
        //解冻
        protected void btnEnable_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Edit);
            int    userid         = 0;
            int    matchid        = 0;
            string Checkbox_Value = GameRequest.GetFormString("cid");

            string[] arrayValue = Checkbox_Value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            for (int i = 0; i < arrayValue.Length; i++)
            {
                matchid = int.Parse(arrayValue[i].Split(new char[] { '_' }, StringSplitOptions.RemoveEmptyEntries)[0]);
                userid  = int.Parse(arrayValue[i].Split(new char[] { '_' }, StringSplitOptions.RemoveEmptyEntries)[1]);
                aideNativeWebFacade.SetUserMatchEnbale(string.Format("WHERE MatchID ={0} AND UserID={1}", matchid, userid));
            }
            ShowInfo("解冻成功");
            BindData( );
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Delete);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE OnLineID in (" + Checkbox_Value + ")";

            try
            {
                aideTreasureFacade.DeleteOnlineOrder(strQuery);
                ShowInfo("删除成功");
            }
            catch
            {
                ShowError("删除失败");
            }
            OnLineOrderDataBind( );
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Delete);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "WHERE PageID in (" + Checkbox_Value + ")";

            try
            {
                aidePlatformFacade.DeleteGamePageItem(strQuery);
                ShowInfo("删除成功");
            }
            catch
            {
                ShowError("删除失败");
            }
            BindData( );
        }
예제 #28
0
        /// <summary>
        /// 批量取消机器人
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnCancle_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.IsRobot);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = " WHERE UserID in (" + Checkbox_Value + ")";

            try
            {
                aideAccountsFacade.CancleAndroid(strQuery);
                ShowInfo("操作成功");
            }
            catch
            {
                ShowError("操作失败");
            }
            AccountsDataBind( );
        }
예제 #29
0
        //解冻
        protected void btnEnable_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Edit);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "Update MatchInfo Set Nullity=0 WHERE Nullity = 1 AND MatchID in (" + Checkbox_Value + ")";
            int    result         = aideGameMatchFacade.ExecuteSql(strQuery);

            if (result > 0)
            {
                ShowInfo("解冻成功");
            }
            else
            {
                ShowError("解冻失败,没有需要解冻的比赛");
            }
            BindData( );
        }
예제 #30
0
        //删除
        protected void btnDel_Click(object sender, EventArgs e)
        {
            //判断权限
            AuthUserOperationPermission(Permission.Delete);
            string Checkbox_Value = GameRequest.GetFormString("cid");
            string strQuery       = "DELETE MatchInfo WHERE MatchID in (" + Checkbox_Value + ")";
            int    result         = aideGameMatchFacade.ExecuteSql(strQuery);

            if (result > 0)
            {
                ShowInfo("删除成功");
            }
            else
            {
                ShowError("删除失败,没有需要冻结的比赛");
            }
            BindData( );
        }