コード例 #1
0
        public SerializedUnit MapFrom(Receipt input)
        {
            SerializedUnit serializedUnit =
                Scout.Core.Data.CreateEntity <SerializedUnit>(input.Session);

            serializedUnit.InitIdent       = input.SerialNumber;
            serializedUnit.ReturnDate      = DateTime.Now;
            serializedUnit.Item            = input.Item;
            serializedUnit.ReturnType      = input.PurchaseOrder.ReturnType;
            serializedUnit.ReturnSeed      = SerializedHistoryService.GetReturnSeedFor(serializedUnit);
            serializedUnit.ReturnTypeCount = SerializedHistoryRepository.GetReturnTypeCount(serializedUnit);
            return(serializedUnit);
        }
コード例 #2
0
 public static SerializedUnit GetLastReturn(Session session, SerializedUnit unit)
 {
     return(SerializedHistoryRepository.GetLastReturn(session, unit));
 }
コード例 #3
0
 public static int GetReturnSeedFor(SerializedUnit unit)
 {
     return(SerializedHistoryRepository.GetReturnSeedFor(unit));
 }
コード例 #4
0
 public static int GetTimeInFieldFor(SerializedUnit unit)
 {
     return(SerializedHistoryRepository.GetTimeInFieldFor(unit));
 }