예제 #1
0
        protected virtual IInOutLineImageStateCreated MapCreate(ICreateInOutLineImage c, IInOutLineCommand outerCommand, long version, IInOutLineState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new InOutLineImageEventId(c.InOutDocumentNumber, c.InOutLineLineNumber, c.SequenceId, version);
            IInOutLineImageStateCreated e = NewInOutLineImageStateCreated(stateEventId);
            var s = outerState.InOutLineImages.Get(c.SequenceId, true);

            e.Url    = c.Url;
            e.Active = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
예제 #2
0
 public void Remove(ICreateInOutLineImage c)
 {
     _innerCommands.Remove(c);
 }
예제 #3
0
 public void Add(ICreateInOutLineImage c)
 {
     _innerCommands.Add(c);
 }
예제 #4
0
 void ICreateInOutLineImageCommands.Remove(ICreateInOutLineImage c)
 {
     _innerCommands.Remove((CreateInOutLineImageDto)c);
 }
예제 #5
0
 void ICreateInOutLineImageCommands.Add(ICreateInOutLineImage c)
 {
     _innerCommands.Add((CreateInOutLineImageDto)c);
 }