public ActionResult ComDiffInsert(TMB_COMDIFFDTO cdDto)
 {
     //验证实体字段
     if (!ModelState.IsValid)
     {
         return(View(cdDto));
     }
     //验证是否重复
     else if (!service.ValidateIsRepeat(cdDto, 0))
     {
         ModelState.AddModelError("error", "最大值与最小值重复");
         return(View(cdDto));
     }
     //新增
     else
     {
         cdDto.C_EMP_ID   = BaseUser.Id;
         cdDto.C_EMP_NAME = BaseUser.Name;
         cdDto.D_MOD_DT   = DateTime.Now;
         cdDto.N_STATUS   = 1;
         service.ComDiffInsert(cdDto);
         cdDto.ResultType = 1;
         return(View(cdDto));
     }
 }