1 camChange:function(){
2 this.wdBuilding.attr('value',"");
3 var campus=this.wdCampus.attr("value");
4 console.log(campus);
5 if(campus>0)
6 {
7 var content=
8 {
9 op:"=",
10 left:"compus",
11 right:Number(campus)
12 }
13 this.wdBuilding.store = this.getBuildingStore(content);
14 }
15 },
16 getBuildingStore:function(content){
17 console.log("getBuildingstore");
18 var cmd={
19 resCommand:
20 {
21 type:"search",
22 res:"building",
23 content:content,
24 orderBy:'compus',
25 tag:"building"
26 }
27 };
28 return new ntms.data.DeferredReadStore(cmd);
29 },