Showing
1 changed file
with
10 additions
and
7 deletions
@@ -133,15 +133,18 @@ e.on("bind",function(){ | @@ -133,15 +133,18 @@ e.on("bind",function(){ | ||
133 | //item.supplierId | 133 | //item.supplierId |
134 | var i=0; | 134 | var i=0; |
135 | $.each(g2.__rows,function(index1,item1){ | 135 | $.each(g2.__rows,function(index1,item1){ |
136 | - if(__feild=="unqid"){ | ||
137 | - if((item1["brandId"]+"_"+item1["supplierId"])==(item["brandId"]+"_"+item["supplierId"])){ | 136 | + // if(__feild=="unqid"){ |
137 | + // if((item1["brandId"]+"_"+item1["supplierId"])==(item["brandId"]+"_"+item["supplierId"])){ | ||
138 | + // i++; | ||
139 | + // } | ||
140 | + // }else{ | ||
141 | + // if(item1["brandId"]==item["brandId"]){ | ||
142 | + // i++; | ||
143 | + // } | ||
144 | + // } | ||
145 | + if((item1["brandId"]+"_"+item1["supplierId"])==(item["brandId"]+"_"+item["supplierId"])){ | ||
138 | i++; | 146 | i++; |
139 | } | 147 | } |
140 | - }else{ | ||
141 | - if(item1["brandId"]==item["brandId"]){ | ||
142 | - i++; | ||
143 | - } | ||
144 | - } | ||
145 | }); | 148 | }); |
146 | if(i==0){ | 149 | if(i==0){ |
147 | item.method="add"; | 150 | item.method="add"; |
-
Please register or login to post a comment