1
Linqクエリを使用して2つのnav Webサービスデータに参加しようとしています。しかし、どうすればいいのですか?私のコードは以下の通りです。顧客の詳細とInvoice Webサービスがあります。私はこのページを1ページにしたいと思います。私に解決策を教えてください。1つのリピータで2つのNav Webサービスデータに参加する
public void bindEmpCustInvoice(string strCusCode)
{
List<Customer_Card_Filter> cardFilter = new List<Customer_Card_Filter>();
Customer_Card_Filter cardField = new Customer_Card_Filter();
cardFilter.Add(cardField);
Customer_Card[] cardList = cls.wsCustomerCard.ReadMultiple(cardFilter.ToArray(), null, 3);
RptEmpCustInvoise.DataSource = cardList;
RptEmpCustInvoise.DataBind();
decimal decValue = 0.00m;
List<Customer_Statistics_Bill_to_Customer_Filter> cFilter = new List<Customer_Statistics_Bill_to_Customer_Filter>();
Customer_Statistics_Bill_to_Customer_Filter cField = new Customer_Statistics_Bill_to_Customer_Filter();
cFilter.Add(cField);
Customer_Statistics_Bill_to_Customer[] billList = cls.wsCustBillService.ReadMultiple(decValue, decValue, decValue, decValue, cFilter.ToArray(), null, 3);
RptEmpCustInvoise.DataSource = billList;
RptEmpCustInvoise.DataBind();
var q = (from cd in cardList
join bd in billList on cd.No equals bd.No
orderby cd.No
select new
{
cd.No,
cd.Name,
cd.Contact,
cd.Phone_No,
cd.City,
bd.Balance_LCY,
bd.Outstanding_Orders_LCY,
bd.Shipped_Not_Invoiced_LCY,
bd.Outstanding_Invoices_LCY,
bd.Outstanding_Serv_Orders_LCY,
bd.Serv_Shipped_Not_Invoiced_LCY,
bd.Outstanding_Serv_Invoices_LCY
}).ToArray();
}