コード例 #1
0
 /// <summary>
 /// 修改业绩金额分配状态
 /// </summary>
 /// <param name="context"></param>
 private void ChangeAwardSwichStatus(HttpContext context)
 {
     try
     {
         int Id = Convert.ToInt32(context.Request["Id"]);
         TPM_AcheiveLevel model = AcheiveLevel_bll.GetEntityById(Id).retData as TPM_AcheiveLevel;
         model.AwardSwich = Convert.ToByte(context.Request["AwardSwich"]);
         jsonModel        = AcheiveLevel_bll.Update(model);
     }
     catch (Exception ex)
     {
         jsonModel = new JsonModel()
         {
             errNum  = 400,
             errMsg  = ex.Message,
             retData = ""
         };
         LogService.WriteErrorLog(ex.Message);
     }
 }
コード例 #2
0
        private void AddAcheiveLevelData(HttpContext context)
        {
            try
            {
                TPM_AcheiveLevel model = new TPM_AcheiveLevel();
                model.Name = context.Request["Name"];
                model.Pid  = RequestHelper.int_transfer(context.Request, "Pid");
                model.Id   = RequestHelper.int_transfer(context.Request, "Id");

                jsonModel = AcheiveLevel_bll.TPM_AcheiveLevelAdd(model);
            }
            catch (Exception ex)
            {
                jsonModel = new JsonModel()
                {
                    errNum  = 400,
                    errMsg  = ex.Message,
                    retData = ""
                };
                LogService.WriteErrorLog(ex.Message);
            }
        }