示例#1
0
 public bool InsertOqcCheckedItems(tblOqcCheckedItems checkedItems)
 {
     try
     {
         _entity.tblOqcCheckedItems.Add(checkedItems);
         _entity.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }
示例#2
0
        public Result InsertOqcCheckedItems(tblOqcCheckedItems checkedItems)
        {
            IProduction iProductionSelect = new WCMS_DAL_Production();
            var         result            = new Result();

            try
            {
                result.IsSuccess = iProductionSelect.InsertOqcCheckedItems(checkedItems);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(result);
        }
示例#3
0
 public Result InsertOqcCheckedItems(tblOqcCheckedItems checkedItems)
 {
     try
     {
         return(productionManager.InsertOqcCheckedItems(checkedItems));
     }
     catch (Exception ex)
     {
         //if (log.IsErrorEnabled)
         //    log.Error("Insert Sales Order : " + ex.Message);
         return(new Result {
             IsSuccess = false, Message = ex.Message
         });
     }
 }