|
楼主 |
发表于 2016-5-12 11:27:25
|
显示全部楼层
好像是if-if-for循环中的问题,代码如下,但我看了,似乎没问题啊
- //更新右下方的表数据并刷新表
- if(schemaNameData.getCurrentRowID()!=null){//判断左面的表是否有数据
- var checkedRows=itemTable.getCheckeds();
- if(checkedRows.length>=1){
- //var classificationID=classificationData.getCurrentRowID();//获得“质检对象类型表”的当前行ID
- //var objectID=objectData.getCurrentRowID();//获得“质检对象名称表”的当前行ID
- for(i=0;i<checkedRows.length;i++){
- var options{
- defaultValues:[
- {
- //fQualityTestingSchemaName:schemaData.getValueByID('fQualityTestingSchemaName',schemaData.getCurrentRowID()),
- fQualityTestingObjectTYPE3:classificationData.getValueByID('fQualityTestingObjectTYPE',classificationData.getCurrentRowID()),
- fQualityTestingObjectName3:objectData.getValueByID('fQualityTestingObjectName',objectData.getCurrentRowID()),
- fQualityTestingItemNumber3:itemData.getValue('fQualityTestingItemNumber',checkedRows[i]),
- fQualityTestingItemName3:itemData.getValue('fQualityTestingItemName',checkedRows[i]),
- fAllowableDeviation3:itemData.getValue('fAllowableDeviation',checkedRows[i]),
- fQualityTestingMethod3:itemData.getValue('fQualityTestingMethod',checkedRows[i])}
- ]};
- schemaContentData.newData(options);//更新右边表的数据
- }
- //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- }
- }
复制代码 |
|