public PosTransferRecord(string key, TransferNotice notice, Pipe pipe, DateTime dateCreated)
     : base(key)
 {
     this.TransferNotice = notice;
     this.Pipe = pipe;
     this.DateCreated = dateCreated;
 }
 public PipeReturningRecord(string key, ReturningNotice notice, Pipe pipe, DateTime dateCreated)
     : base(key)
 {
     this.ReturningNotice = notice;
     this.Pipe = pipe;
     this.DateCreated = dateCreated;
 }
Beispiel #3
0
 public TransferRecord(string key, Pipe pipe, TransferItem transferItem, DateTime dateCreated)
     : base(key)
 {
     this.Pipe = pipe;
     this.TransferItem = transferItem;
     this.DateCreated = dateCreated;
 }
 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;
 }
Beispiel #5
0
 public PipeBCRecord(string key, BusinessCheckNotice notice, Pipe pipe)
     : base(key)
 {
     this.BusinessCheckNotice = notice;
     this.Pipe = pipe;
 }
Beispiel #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;
        }
Beispiel #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;
        }