Exemplo n.º 1
0
        public ArrayList InternalProcess(System.String MsgOutId)
        {
            ArrayList aDepartureTransportTypeDocList = new ArrayList();

            IDataReader r = db.ExecuteReader(
                "select" +
                " MSG_OUT_DEPARTURE_TRP.DEPARTUREIDENTITY" +
                ",MSG_OUT_DEPARTURE_TRP.PRODUCTTRANSPORTIDENTITY" +
                " from   MSG_OUT_DEPARTURE_TRP" +
                " where  MSG_OUT_DEPARTURE_TRP.MSG_OUT_ID = '" + MsgOutId + "'");

            while (r.Read())
            {
                DepartureTransportTypeDoc aDepartureTransportTypeDoc = new DepartureTransportTypeDoc();

                aDepartureTransportTypeDoc.OPCODE = "1";

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

                if (r.IsDBNull(1))
                {
                    aDepartureTransportTypeDoc.ProductTransportIdentity = null;
                }
                else
                {
                    aDepartureTransportTypeDoc.ProductTransportIdentity = r.GetString(1);
                }

                aDepartureTransportTypeDocList.Add(aDepartureTransportTypeDoc);
            }

            r.Close();


            return(aDepartureTransportTypeDocList);
        }
 public System.IAsyncResult BeginDepartureTransportType(string CommPartnerId, string TransactionId, DepartureTransportTypeDoc aDepartureTransportTypeDoc, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("DepartureTransportType", new object[] {
         CommPartnerId,
         TransactionId,
         aDepartureTransportTypeDoc
     }, callback, asyncState));
 }
 public void DepartureTransportType(string CommPartnerId, string TransactionId, DepartureTransportTypeDoc aDepartureTransportTypeDoc)
 {
     this.Invoke("DepartureTransportType", new object[] {
         CommPartnerId,
         TransactionId,
         aDepartureTransportTypeDoc
     });
     return;
 }