public ActionResult SaveSumKSocreInfo(string planid, string chaperid)
        {
            var message = "";
            AssessmentSumEntity resultEntity = assessmentsumbll.GetSumByPlanOrChapID(planid, chaperid);

            if (resultEntity != null)
            {
                if (resultEntity.Reserve == "已筛选")
                {
                    if (resultEntity.GradeStatus != "已评分")
                    {
                        resultEntity.GradeStatus = "已评分";
                        assessmentsumbll.SaveForm(resultEntity.Id, resultEntity);
                        message = "已完成此项评分。";
                    }
                    else
                    {
                        message = "已修订此项评分。";
                    }
                }
                else
                {
                    message = "请先完成不适宜筛选并提交。";
                }
            }
            return(Success(message));
        }
Example #2
0
 /// <summary>
 /// 保存表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="entity">实体对象</param>
 /// <returns></returns>
 public void SaveForm(string keyValue, AssessmentSumEntity entity)
 {
     try
     {
         service.SaveForm(keyValue, entity);
     }
     catch (Exception)
     {
         throw;
     }
 }
        public ActionResult SaveSelfSumInfo(string planid, string chaperid, string selfsum)
        {
            AssessmentSumEntity resultEntity = assessmentsumbll.GetSumByPlanOrChapID(planid, chaperid);

            if (resultEntity != null)
            {
                resultEntity.SelfSum     = selfsum;//自评总结
                resultEntity.SelfSumDate = System.DateTime.Now;
                assessmentsumbll.SaveForm(resultEntity.Id, resultEntity);
            }
            return(Success("操作成功。"));
        }
        public ActionResult SaveSumInfo(string planid, string chaperid)
        {
            var message = "";
            AssessmentSumEntity resultEntity = assessmentsumbll.GetSumByPlanOrChapID(planid, chaperid);

            if (resultEntity != null)
            {
                if (resultEntity.Reserve != "已筛选")
                {
                    resultEntity.Reserve = "已筛选";
                    assessmentsumbll.SaveForm(resultEntity.Id, resultEntity);
                    message = "已完成此项不适宜项筛选。";
                }
                else
                {
                    message = "已修订此项不适宜项筛选。";
                }
            }
            return(Success(message));
        }
 public ActionResult SaveForm(string keyValue, AssessmentSumEntity entity)
 {
     assessmentsumbll.SaveForm(keyValue, entity);
     return(Success("操作成功。"));
 }