Exemplo n.º 1
0
 public PosTransferRecord(string key, TransferNotice notice, Pipe pipe, DateTime dateCreated)
     : base(key)
 {
     this.TransferNotice = notice;
     this.Pipe = pipe;
     this.DateCreated = dateCreated;
 }
Exemplo n.º 2
0
 public PipeReturningRecord(string key, ReturningNotice notice, Pipe pipe, DateTime dateCreated)
     : base(key)
 {
     this.ReturningNotice = notice;
     this.Pipe = pipe;
     this.DateCreated = dateCreated;
 }
Exemplo n.º 3
0
 public TransferRecord(string key, Pipe pipe, TransferItem transferItem, DateTime dateCreated)
     : base(key)
 {
     this.Pipe = pipe;
     this.TransferItem = transferItem;
     this.DateCreated = dateCreated;
 }
Exemplo n.º 4
0
 public NormalCheckRecord(string key, NormalCheckTask task, Pipe pipe, DateTime dateCreated, int orederNo)
     : base(key)
 {
     this.NormalCheckTask = task;
     this.Pipe = pipe;
     this.DateCreated = dateCreated;
     this.OrderNO = orederNo;
 }
Exemplo n.º 5
0
 public PipeBCRecord(string key, BusinessCheckNotice notice, Pipe pipe)
     : base(key)
 {
     this.BusinessCheckNotice = notice;
     this.Pipe = pipe;
 }
Exemplo n.º 6
0
        //调度 2011-07-25 By huncherby
        public static Boolean CanTransfer(Pipe pipe)
        {
            if (pipe == null)
                throw new ArgumentNullException("pipe");

            if ((pipe.State & PipeState.SentOut) == PipeState.SentOut ||
                (pipe.State & PipeState.SentingOut) == PipeState.SentingOut)
            {
                return false;
            }

            return true;
        }
Exemplo n.º 7
0
        public static Boolean CanSentout(Pipe pipe)
        {
            if (pipe == null)
                throw new ArgumentNullException("pipe");

            if ((pipe.State & PipeState.Returned) == PipeState.Returned && (pipe.State & PipeState.ReturnValid) == PipeState.ReturnValid)
            {
                return true;
            }

            if ((pipe.State & PipeState.SentOut) == PipeState.SentOut ||
                (pipe.State & PipeState.SentingOut) == PipeState.SentingOut ||
                (pipe.State & PipeState.CheckValid) != PipeState.CheckValid
                //||(pipe.State & PipeState.IncomeRecordDone) != PipeState.IncomeRecordDone)
                )
            {
                return false;
            }

            return true;
        }