Example #1
0
 /// <summary>
 /// 保存表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="entity">实体对象</param>
 /// <returns></returns>
 public void SaveForm(string keyValue, ToolrecordEntity entity)
 {
     try
     {
         service.SaveForm(keyValue, entity);
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 /// <summary>
 /// 保存试验记录
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="entity">实体对象</param>
 /// <returns></returns>
 public void SaveToolrecord(string keyValue, ToolrecordEntity entity)
 {
     if (entity != null)
     {
         new ToolrecordService().SaveForm(keyValue, entity);
         if (!string.IsNullOrEmpty(entity.ToolEquipmentId))
         {
             ToolequipmentEntity toolequipment = GetEntity(entity.ToolEquipmentId);
             toolequipment.CheckDate     = entity.CheckDate;
             toolequipment.NextCheckDate = entity.NextCheckDate;
             toolequipment.OperUser      = entity.OperUser;
             toolequipment.OperUserId    = entity.OperUserId;
             this.BaseRepository().Update(toolequipment);
         }
     }
 }
Example #3
0
 public void SaveToolrecord(string keyValue, ToolrecordEntity entity)
 {
     service.SaveToolrecord(keyValue, entity);
 }
 public ActionResult SaveToolrecord(string keyValue, ToolrecordEntity entity)
 {
     toolequipmentBll.SaveToolrecord(keyValue, entity);
     return(Success("操作成功。"));
 }