Exemplo n.º 1
0
 public static void Publish(this BO.OrderWMS @this)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("OrderWMS", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "Publish")) {
         zAppDev.DotNet.Framework.Utilities.Serializer <DSS3_LogisticsPoolingForUrbanDistribution.BO.OrderDTO> ord = new zAppDev.DotNet.Framework.Utilities.Serializer <DSS3_LogisticsPoolingForUrbanDistribution.BO.OrderDTO>();
         DSS3_LogisticsPoolingForUrbanDistribution.BO.OrderDTO ordDTO = (new DSS3_LogisticsPoolingForUrbanDistribution.BO.OrderTransformationDataTransformation.Transformer()).OrderWMS_To_OrderDTO(@this);
         string order    = ord.ToJson(ordDTO);
         string encorder = zAppDev.DotNet.Framework.Utilities.Common.Base64Encode(order);
         System.Collections.Generic.List <DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage> message = new System.Collections.Generic.List <DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage>();
         DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage mes1 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage();
         DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage mes2 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage();
         DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage mes3 = new DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage();
         mes1.type = "string"; mes1.val = "sarmed_order"; mes1.key = "topic"; mes2.type = "int"; mes2.val = "1"; mes2.key = "sarmed_order"; mes3.type = "string"; mes3.val = encorder; mes3.key = "payload"; message?.Add(mes1);
         message?.Add(mes2);
         message?.Add(mes3);
         DSS3_LogisticsPoolingForUrbanDistribution.ExternalStructs.LocalPubSub.Publication publication = new DSS3_LogisticsPoolingForUrbanDistribution.ExternalStructs.LocalPubSub.Publication();
         System.Collections.Generic.List <DSS3_LogisticsPoolingForUrbanDistribution.ExternalStructs.LocalPubSub.PubMessage> apisPubMessage = new System.Collections.Generic.List <DSS3_LogisticsPoolingForUrbanDistribution.ExternalStructs.LocalPubSub.PubMessage>();
         foreach (var pubs in message ?? Enumerable.Empty <DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessage>())
         {
             DSS3_LogisticsPoolingForUrbanDistribution.ExternalStructs.LocalPubSub.PubMessage pubMessage = (new DSS3_LogisticsPoolingForUrbanDistribution.BO.PubMessageDataTransformation.Transformer()).PubMessage_To_PubMessage(pubs);
             apisPubMessage.Add(pubMessage);
         }
         publication.publication = apisPubMessage.ToArray(); DSS3_LogisticsPoolingForUrbanDistribution.BLL.ExternalRestServices.LocalPubSubRestService.Publish(publication);
     }
 }
Exemplo n.º 2
0
 public static void NewOperation(this BO.OrderWMS @this)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("OrderWMS", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "NewOperation")) {
     }
 }
Exemplo n.º 3
0
 public static void CopyFields(this BO.OrderWMS @this, DSS3_LogisticsPoolingForUrbanDistribution.BO.OrderWMS order)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("OrderWMS", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "CopyFields")) {
         @this.OrdID = (order?.OrdID ?? 0); @this.OrdOrderID_Remote = (order?.OrdOrderID_Remote ?? 0); @this.OrdOrderExternalCode = (order?.OrdOrderExternalCode ?? ""); @this.OrdOrderDescr = (order?.OrdOrderDescr ?? ""); @this.OrdRegDateTime = (order?.OrdRegDateTime ?? System.Data.SqlTypes.SqlDateTime.MinValue.Value); @this.OrdDateTime = (order?.OrdDateTime ?? System.Data.SqlTypes.SqlDateTime.MinValue.Value); @this.OrdDeliveryDateTime = (order?.OrdDeliveryDateTime ?? System.Data.SqlTypes.SqlDateTime.MinValue.Value); @this.OrdDepositorCode = (order?.OrdDepositorCode ?? ""); @this.OrdDepositorFullName = (order?.OrdDepositorFullName ?? ""); @this.OrdCustomerCode = (order?.OrdCustomerCode ?? ""); @this.OrdCustomerFullName = (order?.OrdCustomerFullName ?? ""); @this.OrdStatus = (order?.OrdStatus ?? 0); @this.OrdMemo = (order?.OrdMemo ?? ""); @this.OrdPurpose = (order?.OrdPurpose ?? ""); @this.OrdDeliveryValue = (order?.OrdDeliveryValue ?? 0); @this.OrdDeliveryNotes = (order?.OrdDeliveryNotes ?? ""); @this.OrdIsReturn = (order?.OrdIsReturn ?? 0); @this.OrdPrdTypeDescr = (order?.OrdPrdTypeDescr ?? ""); @this.OrdWrhRoutingCode = (order?.OrdWrhRoutingCode ?? ""); @this.OrdDlsId = (order?.OrdDlsId ?? 0); @this.OrdDlsDescr = (order?.OrdDlsDescr ?? ""); @this.OrdDlsAddress = (order?.OrdDlsAddress ?? ""); @this.OrdDlsCity = (order?.OrdDlsCity ?? ""); @this.OrdDlsArea = (order?.OrdDlsArea ?? ""); @this.OrdRoutingStatus = (order?.OrdRoutingStatus ?? 0); @this.OrdLfdWeight = (order?.OrdLfdWeight ?? 0); @this.OrdLfdVol = (order?.OrdLfdVol ?? 0); @this.OrdLfdCtn = (order?.OrdLfdCtn ?? 0); @this.OrdLfdCtn = (order?.OrdLfdCtn ?? 0); @this.OrdLfdBar = (order?.OrdLfdBar ?? 0); @this.OrdLfdPalEuro = (order?.OrdLfdPalEuro ?? 0); @this.OrdLfdPalInd = (order?.OrdLfdPalInd ?? 0); @this.OrdLfdPalElsa = (order?.OrdLfdPalElsa ?? 0); @this.OrdLfdParOU = (order?.OrdLfdParOU ?? 0); @this.OrdLfdVar = (order?.OrdLfdVar ?? 0); @this.OrdVoucherDateTime = (order?.OrdVoucherDateTime ?? System.Data.SqlTypes.SqlDateTime.MinValue.Value); @this.OrdVoucherNumber = (order?.OrdVoucherNumber ?? ""); @this.OrdVoucherSeries = (order?.OrdVoucherSeries ?? ""); @this.OrdVoucherId = (order?.OrdVoucherId ?? 0); @this.OrdAgencyCode = (order?.OrdAgencyCode ?? ""); @this.OrdAgencyAddress = (order?.OrdAgencyAddress ?? ""); @this.OrdAgencyDescr = (order?.OrdAgencyDescr ?? ""); @this.OrdTelRouteId = (order?.OrdTelRouteId ?? 0); @this.OrdVchPlateNr = (order?.OrdVchPlateNr ?? ""); @this.OrdVchRouteNr = (order?.OrdVchRouteNr ?? 0); @this.OrdVhrDate = (order?.OrdVhrDate ?? System.Data.SqlTypes.SqlDateTime.MinValue.Value); @this.OrdVhrID = (order?.OrdVhrID ?? 0); @this.OrdLastUpdateDateTime = (order?.OrdLastUpdateDateTime ?? System.Data.SqlTypes.SqlDateTime.MinValue.Value); @this.OrdReadyForLoading = (order?.OrdReadyForLoading ?? 0); @this.Polyline = (order?.Polyline ?? ""); @this.Warehouse = (order?.Warehouse ?? ""); @this.Truck = (order?.Truck ?? "");
     }
 }