public virtual IInOutLineState Get(long lineNumber, bool forCreation, bool nullAllowed) { InOutLineId globalId = new InOutLineId(_inOutState.DocumentNumber, lineNumber); if (_loadedInOutLineStates.ContainsKey(globalId)) { return(_loadedInOutLineStates[globalId]); } if (forCreation || ForReapplying) { var state = new InOutLineState(ForReapplying); state.InOutLineId = globalId; _loadedInOutLineStates.Add(globalId, state); return(state); } else { var state = InOutLineStateDao.Get(globalId, nullAllowed); if (state != null) { _loadedInOutLineStates.Add(globalId, state); } return(state); } }
public virtual InOutLineId ToInOutLineId() { InOutLineId v = new InOutLineId(); v.InOutDocumentNumber = this.InOutDocumentNumber; v.LineNumber = this.LineNumber; return(v); }
public InOutLineIdDtoWrapper(InOutLineId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } InOutLineId other = obj as InOutLineId; if (other == null) { return(false); } return(true && Object.Equals(this.InOutDocumentNumber, other.InOutDocumentNumber) && Object.Equals(this.LineNumber, other.LineNumber) ); }
public InOutLineIdFlattenedDto(InOutLineId val) { this._value = new InOutLineIdDtoWrapper(val); }