public void Departure(string CommPartnerId, string TransactionId, DepartureDoc aDepartureDoc)
 {
     this.Invoke("Departure", new object[] {
         CommPartnerId,
         TransactionId,
         aDepartureDoc
     });
     return;
 }
Пример #2
0
        public ArrayList InternalProcess(System.String MsgOutId)
        {
            ArrayList aDepartureDocList = new ArrayList();

            IDataReader r = db.ExecuteReader(
                "select" +
                " MSG_OUT_DEPARTURE.DEPARTUREIDENTITY" +
                ",MSG_OUT_DEPARTURE.DEPARTUREIDENTITYREFERENCE" +
                ",MSG_OUT_DEPARTURE.FROMNODEIDENTITY" +
                ",MSG_OUT_DEPARTURE.DELIVERYMETHOD" +
                ",MSG_OUT_DEPARTURE.ROUTEIDENTITY" +
                ",MSG_OUT_DEPARTURE.ROUTEDESCRIPTION" +
                ",MSG_OUT_DEPARTURE.CUSTOMERORDERRELEASEDATETIME" +
                ",MSG_OUT_DEPARTURE.CUSTOMERORDERSTOPDATETIME" +
                ",MSG_OUT_DEPARTURE.TRANSITSTOPDATETIME" +
                ",MSG_OUT_DEPARTURE.PLANNEDDEPARTUREDATETIME" +
                ",MSG_OUT_DEPARTURE.CHECKPRODUCTTRANSPORTTYPE" +
                ",MSG_OUT_DEPARTURE.VEHICLEIDENTITY" +
                " from   MSG_OUT_DEPARTURE" +
                " where  MSG_OUT_DEPARTURE.MSG_OUT_ID = '" + MsgOutId + "'");

            while (r.Read())
            {
                DepartureDoc aDepartureDoc = new DepartureDoc();

                aDepartureDoc.OPCODE = "1";

                if (r.IsDBNull(0))
                {
                    aDepartureDoc.DepartureIdentity = null;
                }
                else
                {
                    aDepartureDoc.DepartureIdentity = r.GetString(0);
                }

                if (r.IsDBNull(1))
                {
                    aDepartureDoc.DepartureIdentityReference = null;
                }
                else
                {
                    aDepartureDoc.DepartureIdentityReference = r.GetString(1);
                }

                if (r.IsDBNull(2))
                {
                    aDepartureDoc.FromNodeIdentity = null;
                }
                else
                {
                    aDepartureDoc.FromNodeIdentity = r.GetString(2);
                }

                if (r.IsDBNull(3))
                {
                    aDepartureDoc.DeliveryMethod = null;
                }
                else
                {
                    aDepartureDoc.DeliveryMethod = r.GetString(3);
                }

                if (r.IsDBNull(4))
                {
                    aDepartureDoc.RouteIdentity = null;
                }
                else
                {
                    aDepartureDoc.RouteIdentity = r.GetString(4);
                }

                if (r.IsDBNull(5))
                {
                    aDepartureDoc.RouteDescription = null;
                }
                else
                {
                    aDepartureDoc.RouteDescription = r.GetString(5);
                }

                if (r.IsDBNull(6))
                {
                    aDepartureDoc.CustomerOrderReleaseDateTime = null;
                }
                else
                {
                    aDepartureDoc.CustomerOrderReleaseDateTime = DateTime.SpecifyKind(r.GetDateTime(6), DateTimeKind.Local);
                }

                if (r.IsDBNull(7))
                {
                    aDepartureDoc.CustomerOrderStopDateTime = null;
                }
                else
                {
                    aDepartureDoc.CustomerOrderStopDateTime = DateTime.SpecifyKind(r.GetDateTime(7), DateTimeKind.Local);
                }

                if (r.IsDBNull(8))
                {
                    aDepartureDoc.TransitStopDateTime = null;
                }
                else
                {
                    aDepartureDoc.TransitStopDateTime = DateTime.SpecifyKind(r.GetDateTime(8), DateTimeKind.Local);
                }

                if (r.IsDBNull(9))
                {
                    aDepartureDoc.PlannedDepartureDateTime = null;
                }
                else
                {
                    aDepartureDoc.PlannedDepartureDateTime = DateTime.SpecifyKind(r.GetDateTime(9), DateTimeKind.Local);
                }

                if (r.IsDBNull(10))
                {
                    aDepartureDoc.CheckProductTransportType = null;
                }
                else
                {
                    aDepartureDoc.CheckProductTransportType = r.GetString(10);
                }

                if (r.IsDBNull(11))
                {
                    aDepartureDoc.VehicleIdentity = null;
                }
                else
                {
                    aDepartureDoc.VehicleIdentity = r.GetString(11);
                }

                aDepartureDocList.Add(aDepartureDoc);
            }

            r.Close();


            return(aDepartureDocList);
        }
 public System.IAsyncResult BeginDeparture(string CommPartnerId, string TransactionId, DepartureDoc aDepartureDoc, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("Departure", new object[] {
         CommPartnerId,
         TransactionId,
         aDepartureDoc
     }, callback, asyncState));
 }