Ejemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            string          id            = context.Request["id"];
            string          websiteOwner  = bll.WebsiteOwner;
            TeamPerformance myPerformance = bll.GetByKey <TeamPerformance>("AutoID", id, websiteOwner: websiteOwner);

            apiResp.code   = (int)APIErrCode.IsSuccess;
            apiResp.status = true;
            apiResp.msg    = "获取管理奖信息";

            apiResp.result = myPerformance == null ? new ResponsePerformce() : new ResponsePerformce
            {
                id           = myPerformance.AutoID,
                member       = CurrentUserInfo.TrueName,
                performance  = Convert.ToDouble(myPerformance.Performance),
                rate         = Convert.ToDouble(myPerformance.Rate),
                total_reward = Convert.ToDouble(myPerformance.TotalReward),
                child_reward = Convert.ToDouble(myPerformance.ChildReward),
                reward       = Convert.ToDouble(myPerformance.Reward),
                amount       = Convert.ToDouble((myPerformance.Reward * 80 / 100)),
                fund         = Convert.ToDouble((myPerformance.Reward * 20 / 100))
            };
            bll.ContextResponse(context, apiResp);
        }