Ejemplo n.º 1
0
 public Message UpdateAccountsAgentGame(AccountsAgentGame model)
 {
     try
     {
         aideAccountsData.UpdateAccountsAgentGame(model);
         return(new Message(true));
     }
     catch (Exception ex)
     {
         return(new Message(false, ex.Message));
     }
 }
Ejemplo n.º 2
0
        public Message UpdateAccountsAgentGame(AccountsAgentGame model)
        {
            Message result;

            try
            {
                this.aideAccountsData.UpdateAccountsAgentGame(model);
                result = new Message(true);
            }
            catch (System.Exception ex)
            {
                result = new Message(false, ex.Message);
            }
            return(result);
        }
Ejemplo n.º 3
0
        private void ProcessData()
        {
            int kindID = Convert.ToInt32(ddlKindID.SelectedValue);
            int sortID = CtrlHelper.GetInt(txtSortID, 0);

            AccountsAgentGame model = new AccountsAgentGame();

            model.AgentID  = agentID;
            model.KindID   = Convert.ToInt32(ddlKindID.SelectedValue);
            model.DeviceID = 1;
            model.SortID   = sortID;

            Message msg = new Message();

            if (StrCmd == "add")
            {
                msg = FacadeManage.aideAccountsFacade.InsertAccountsAgentGame(model);
            }
            else
            {
                model.ID = IntParam;
                msg      = FacadeManage.aideAccountsFacade.UpdateAccountsAgentGame(model);
            }

            if (msg.Success)
            {
                if (StrCmd == "add")
                {
                    MessageBoxCloseRef("类型信息增加成功");
                }
                else
                {
                    MessageBoxCloseRef("类型信息修改成功");
                }
            }
            else
            {
                MessageBox("操作失败");
            }
        }
Ejemplo n.º 4
0
        private void BindData()
        {
            if (StrCmd != "add")
            {
                ddlKindID.Enabled = false;
            }

            if (IntParam <= 0)
            {
                return;
            }

            //获取代理游戏列表实体
            AccountsAgentGame model = FacadeManage.aideAccountsFacade.GetAccountsAgentGameInfo(IntParam);

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

            ddlKindID.SelectedValue = model.KindID.ToString();
            CtrlHelper.SetText(txtSortID, model.SortID.ToString());
        }