Exemple #1
0
 public GetDocInfoForQueryResponse GetDocInfoForQuery(GetDocInfoForQueryRequest request)
 {
     ContractInfo[] contracts = new ContractInfo[8];      
     contracts[0] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup = "BRENT",
         DocName = "SampleConfirm.docx",
         DocType = "OURPAPER_OUTBOUND",
         FileType = "docx",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey)+2 ,
         URL = "BRENT" + "/" + request.FeedType + "/" + "docx" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".docx" 
     };
     contracts[1] = new ContractInfo
     {
         BookingCompShortName = "Merc USA",
         CmdtyGroup = "WTI",
         DocName = "Template_01.docx",
         DocType = "OURPAPER_OUTBOUND",
         FileType = "docx",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey) +3,
         URL = "WTI" + "/" + request.FeedType + "/" + "docx" + "/" + ConvertToInt(request.DocumentKey) + 3 + ".docx" 
     };
     contracts[2] = new ContractInfo
     {
         BookingCompShortName = "Merc Sing",
         CmdtyGroup = "CRUDE",
         DocName = "BillOfLading_01.tif",
         DocType = "BROKER_INBOUND",
         FileType = "tif",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey) + 4,
         URL = "CRUDE" + "/" + request.FeedType + "/" + "tif" + "/" + ConvertToInt(request.DocumentKey) + 4 + ".tif" 
     };
     contracts[3] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup = "BRENT",
         DocName = "Contract_01.pdf",
         DocType = "OURPAPER_INBOUND",
         FileType = "pdf",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey) + 4,
         URL = "BRENT" + "/" + request.FeedType + "/" + "pdf" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".pdf"
     };
     contracts[4] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup = "BRENT",
         DocName = "BillOfLading_02.rtf",
         DocType = "BROKER_INBOUND",
         FileType = "rtf",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey) + 2,
         URL = "BRENT" + "/" + request.FeedType + "/" + "rtf" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".rtf"
     };
     contracts[5] = new ContractInfo
     {
         BookingCompShortName = "Merc USA",
         CmdtyGroup = "WTI",
         DocName = "BillOfLading_03.doc",
         DocType = "BROKER_OUTBOUND",
         FileType = "doc",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey) + 3,
         URL = "WTI" + "/" + request.FeedType + "/" + "doc" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".doc"
     };
     contracts[6] = new ContractInfo
     {
         BookingCompShortName = "Merc Sing",
         CmdtyGroup = "CRUDE",
         DocName = "CptyPaper_01.html",
         DocType = "CPTYPAPER_INBOUND",
         FileType = "html",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey) + 1,
         URL = "CRUDE" + "/" + request.FeedType + "/" + "html" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".html"
     };
     contracts[7] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup = "BRENT",
         DocName = "MiscDoc_01.txt",
         DocType = "CPTYPAPER_OUTBOUND",
         FileType = "txt",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source = request.TradingSystemCode,
         DocID = ConvertToInt(request.DocumentKey) + 2,
         URL = "BRENT" + "/" + request.FeedType + "/" + "txt" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".txt"
     };
     return new GetDocInfoForQueryResponse {QueryResult=contracts };
 }
Exemple #2
0
 public GetDocInfoForQueryResponse GetDocInfoForQuery(GetDocInfoForQueryRequest request)
 {
     ContractInfo[] contracts = new ContractInfo[8];
     contracts[0] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup           = "BRENT",
         DocName  = "SampleConfirm.docx",
         DocType  = "OURPAPER_OUTBOUND",
         FileType = "docx",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 2,
         URL      = "BRENT" + "/" + request.FeedType + "/" + "docx" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".docx"
     };
     contracts[1] = new ContractInfo
     {
         BookingCompShortName = "Merc USA",
         CmdtyGroup           = "WTI",
         DocName  = "Template_01.docx",
         DocType  = "OURPAPER_OUTBOUND",
         FileType = "docx",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 3,
         URL      = "WTI" + "/" + request.FeedType + "/" + "docx" + "/" + ConvertToInt(request.DocumentKey) + 3 + ".docx"
     };
     contracts[2] = new ContractInfo
     {
         BookingCompShortName = "Merc Sing",
         CmdtyGroup           = "CRUDE",
         DocName  = "BillOfLading_01.tif",
         DocType  = "BROKER_INBOUND",
         FileType = "tif",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 4,
         URL      = "CRUDE" + "/" + request.FeedType + "/" + "tif" + "/" + ConvertToInt(request.DocumentKey) + 4 + ".tif"
     };
     contracts[3] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup           = "BRENT",
         DocName  = "Contract_01.pdf",
         DocType  = "OURPAPER_INBOUND",
         FileType = "pdf",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 4,
         URL      = "BRENT" + "/" + request.FeedType + "/" + "pdf" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".pdf"
     };
     contracts[4] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup           = "BRENT",
         DocName  = "BillOfLading_02.rtf",
         DocType  = "BROKER_INBOUND",
         FileType = "rtf",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 2,
         URL      = "BRENT" + "/" + request.FeedType + "/" + "rtf" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".rtf"
     };
     contracts[5] = new ContractInfo
     {
         BookingCompShortName = "Merc USA",
         CmdtyGroup           = "WTI",
         DocName  = "BillOfLading_03.doc",
         DocType  = "BROKER_OUTBOUND",
         FileType = "doc",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 3,
         URL      = "WTI" + "/" + request.FeedType + "/" + "doc" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".doc"
     };
     contracts[6] = new ContractInfo
     {
         BookingCompShortName = "Merc Sing",
         CmdtyGroup           = "CRUDE",
         DocName  = "CptyPaper_01.html",
         DocType  = "CPTYPAPER_INBOUND",
         FileType = "html",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 1,
         URL      = "CRUDE" + "/" + request.FeedType + "/" + "html" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".html"
     };
     contracts[7] = new ContractInfo
     {
         BookingCompShortName = "Merc GVA",
         CmdtyGroup           = "BRENT",
         DocName  = "MiscDoc_01.txt",
         DocType  = "CPTYPAPER_OUTBOUND",
         FileType = "txt",
         TradeNum = ConvertToInt(request.DocumentKey),
         Source   = request.TradingSystemCode,
         DocID    = ConvertToInt(request.DocumentKey) + 2,
         URL      = "BRENT" + "/" + request.FeedType + "/" + "txt" + "/" + ConvertToInt(request.DocumentKey) + 2 + ".txt"
     };
     return(new GetDocInfoForQueryResponse {
         QueryResult = contracts
     });
 }