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; }
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; }
public PipeBCRecord(string key, BusinessCheckNotice notice, Pipe pipe) : base(key) { this.BusinessCheckNotice = notice; this.Pipe = pipe; }
//调度 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; }
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; }