コード例 #1
0
ファイル: ReportsGateway.cs プロジェクト: jpheary/Argix10
        public static DataSet InboundManifestRead(string manifestID)
        {
            //
            DataSet manifest = new DataSet();
            AgentLineHaulServiceClient client = new AgentLineHaulServiceClient();

            try {
                DataSet ds = client.InboundManifestRead(manifestID);
                if (ds != null)
                {
                    manifest.Merge(ds);
                }
                client.Close();
            }
            catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); }
            catch (FaultException <AgentLineHaulFault> afe) { client.Abort(); throw new ApplicationException(afe.Detail.Message); }
            catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); }
            catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); }
            return(manifest);
        }
コード例 #2
0
ファイル: ReportsGateway.cs プロジェクト: jpheary/Argix10
        public static DataSet InboundManifestsView(string clientNumber, string clientDivision, DateTime startPickupDate, DateTime endPickupDate)
        {
            //
            DataSet manifests = new DataSet();
            AgentLineHaulServiceClient client = new AgentLineHaulServiceClient();

            try {
                DataSet ds = client.InboundManifestsView(clientNumber, clientDivision, startPickupDate, endPickupDate);
                if (ds != null)
                {
                    manifests.Merge(ds);
                }
                client.Close();
            }
            catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); }
            catch (FaultException <AgentLineHaulFault> afe) { client.Abort(); throw new ApplicationException(afe.Detail.Message); }
            catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); }
            catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); }
            return(manifests);
        }