/// <summary>
        /// Initializes a new instance of the <see cref="SerialEntryOrganizerWithoutRootModelController"/> class.
        /// </summary>
        /// <param name="offlineRequest">The offline request.</param>
        public SerialEntryOrganizerWithoutRootModelController(UPOfflineSerialEntryRequest offlineRequest)
            : this(new ViewReference(offlineRequest.Json, "SerialEntry"), false)
        {
            this.OfflineRequest       = offlineRequest;
            this.PopToRootOnSave      = true; // Sync Conflict Page need PopToRootView
            this.ConflictHandlingMode = true;

            this.AddPageModelControllers();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UPSEOrder"/> class.
 /// </summary>
 /// <param name="rootRecord">The root record.</param>
 /// <param name="parameters">The parameters.</param>
 /// <param name="offlineRequest">The offline request.</param>
 /// <param name="theDelegate">The delegate.</param>
 /// <exception cref="InvalidOperationException">FieldControl is null</exception>
 public UPSEOrder(UPCRMRecord rootRecord, Dictionary <string, object> parameters,
                  UPOfflineSerialEntryRequest offlineRequest, UPSerialEntryDelegate theDelegate)
     : base(rootRecord, parameters, offlineRequest, theDelegate)
 {
     if (this.SourceFieldControl == null || this.DestFieldControl == null)
     {
         throw new InvalidOperationException("FieldControl is null");
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Submits the change record request.
        /// </summary>
        /// <param name="changedRecords">The changed records.</param>
        protected void SubmitChangeRecordRequest(List <UPCRMRecord> changedRecords)
        {
            UPOfflineSerialEntryRequest offlineRequest = this.SerialEntry.OfflineRequest;

            offlineRequest.StartRequest(UPOfflineRequestMode.OnlineConfirm, changedRecords, this);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UPSerialEntry"/> class.
 /// </summary>
 /// <param name="rootRecord">The root record.</param>
 /// <param name="parameters">The parameters.</param>
 /// <param name="offlineRequest">The offline request.</param>
 /// <param name="theDelegate">The delegate.</param>
 public UPSEPOS(UPCRMRecord rootRecord, Dictionary <string, object> parameters, UPOfflineSerialEntryRequest offlineRequest,
                UPSerialEntryDelegate theDelegate)
     : base(rootRecord, parameters, offlineRequest, theDelegate)
 {
 }