示例#1
0
 public void SubmitForm(ScoreCashEntity userEntity, UserLogOnEntity userLogOnEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         userEntity.Modify(keyValue);
     }
     else
     {
         userEntity.Create();
     }
     service.SubmitForm(userEntity, userLogOnEntity, keyValue);
 }
        public ActionResult DealScoreCash(string keyValue, int state)
        {
            ScoreCashEntity entity = scoreApp.GetForm(keyValue);

            entity.F_Id = keyValue;
            if (state == 1)
            {
                entity.c_cash_state = (int)Distribution.Model.CashScoreState.Succ;//0:未审核   1:审核通过
                ScoreDetailLogic.UpdateAgentScore(entity.c_user_id, -entity.c_amount, "积分提现");
            }
            else if (state == 2)
            {
                entity.c_cash_state = (int)Distribution.Model.CashScoreState.Back;//0:未审核   1:审核通过
            }
            scoreApp.UpdateForm(entity);
            return(Success("处理成功。"));
        }
示例#3
0
 public void UpdateForm(ScoreCashEntity userEntity)
 {
     service.Update(userEntity);
 }