<ProtoRequest
No = "84P6-11-00023"
Requestor = "Daniel Frank(E677648)"
CustomerName = "TLV BMW"
CustomerOrder = ""
MWO = "4601302"
PartNumber = ""
ProductType = ""
CreationDate = "24-Jun-2011"
ABCClasification = ""
ProtoStatus = "Closed"
UsageType = "Component Request"
BOMAvailabilityDate = ""
BOMCommitedDate = ""
Technology = ""
Plant = "84P6-Thaon Les Vosges"
EstimatedBudget_USD = "0.00">
<LineItem
PartNumber = "805069-009A"
Description = "Hsg-Comp retouche"
RequestQty = "1"
Supplier = ""
RequestedDeliveryDate = "29-Jun-2011"
LineStatus = "Closed"
SalesOrder = "1654130"
Item = "10"
StandardLeadTime = "23"
ABCClassification = "-1"
AgreedDate = ""
EstimatedCost_USD = "0.0"/>
<LineItem
PartNumber = "811352-006A"
Description = "hsg comp retouche"
RequestQty = "1"
Supplier = ""
RequestedDeliveryDate = "28-Jun-2011"
LineStatus = "Partially Closed"
SalesOrder = "1654130"
Item = "20"
StandardLeadTime = "23"
ABCClassification = "-1"
AgreedDate = ""
EstimatedCost_USD = "0.0"/>
<LineItem
PartNumber = "811352-006A"
Description = "Hsg-Comp retouche"
RequestQty = "1"
Supplier = ""
RequestedDeliveryDate = "28-Jun-2011"
LineStatus = "Partially Closed"
SalesOrder = "1654130"
Item = "20"
StandardLeadTime = "23"
ABCClassification = "-1"
AgreedDate = ""
EstimatedCost_USD = "0.0"/>
</ProtoRequest>
上記は、jqGridにマップしたいxml構造です。
私のxmlReaderは次のとおりです。
xmlReader: {
root:"ProtoRequestInfo",
row:"ProtoRequest",
repeatitems:false
}
ここで、サブグリッドではなく、メイン グリッド自体にこの情報を使用して 4 (「LineItemNo」タグの数) 行を作成する必要があります。
期待される出力:
No Requestor PartNumber Description
____________________________________________________________________________
84P6-11-00023 Daniel Frank(E677648) 805069-009A Hsg-Comp retouche
84P6-11-00023 Daniel Frank(E677648) 811352-006A hsg comp retouche
...........
...........
コルモデルはどうあるべきですか?