| <?xml version="1.0" encoding="UTF-8"?> | 
| <ViewConfig> | 
|   <Arguments/> | 
|   <Context/> | 
|   <Model/> | 
|   <View layout="padding:5;regionPadding:5"> | 
|     <Property name="packages">font-awesome,css-common</Property> | 
|     <Property name="cache"> | 
|       <Property name="mode">clientSide</Property> | 
|     </Property> | 
|     <DataSet id="dsMain"> | 
|       <Property name="dataProvider">buildingPR#loadData</Property> | 
|       <Property name="dataType">[dtBuilding]</Property> | 
|     </DataSet> | 
|     <Container layout="regionPadding:10" layoutConstraint="top"> | 
|       <Property name="exClassName">bg-color</Property> | 
|       <Property name="height">55</Property> | 
|       <Property name="contentOverflow">hidden</Property> | 
|       <Label layoutConstraint="left"> | 
|         <Property name="text">菜单栏:</Property> | 
|       </Label> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">view.get("#dsMain").insert();
 | 
| view.get("#dialogMain").show();
 | 
| view.get("#oneId").set("readOnly",false);</ClientEvent> | 
|         <Property name="caption">新增</Property> | 
|         <Property name="exClassName">btn-normal</Property> | 
|         <Property name="iconClass">fa fa-plus</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">var dialog= view.get("#dialogMain");
 | 
| dialog.show();</ClientEvent> | 
|         <Property name="caption">编辑</Property> | 
|         <Property name="exClassName">btn-warm</Property> | 
|         <Property name="iconClass">fa fa-pencil</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <ClientEvent name="onClick">var cur = view.get("#dsMain.data:#");
 | 
| if(!cur) return;
 | 
| view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 | 
|     if(result){
 | 
|         $alert(result);
 | 
|         return;
 | 
|     }else{
 | 
|         cur.remove();
 | 
|     }
 | 
| });</ClientEvent> | 
|         <Property name="caption">删除</Property> | 
|         <Property name="exClassName">btn-warn</Property> | 
|         <Property name="iconClass">fa fa-trash-o</Property> | 
|       </Button> | 
|       <Button layoutConstraint="left"> | 
|         <Property name="caption">刷新缓存</Property> | 
|         <Property name="exClassName">btn-flush</Property> | 
|         <Property name="iconClass">fa fa-refresh</Property> | 
|         <Property name="action">ajaxRefreshCache</Property> | 
|       </Button> | 
|     </Container> | 
|     <Container layoutConstraint="center"> | 
|       <Property name="exClassName">bg-color</Property> | 
|       <DataGrid id="dgMain"> | 
|         <ClientEvent name="onDataRowDoubleClick" signature="self,arg,depotdialog,oneId">var dialog= view.get("#dialogMain");
 | 
| dialog.show();
 | 
| oneId.set("readOnly",true);</ClientEvent> | 
|         <Property name="dataSet">dsMain</Property> | 
|         <Property name="readOnly">true</Property> | 
|         <RowNumColumn/> | 
|         <DataColumn name="name"> | 
|           <Property name="property">name</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">length</Property> | 
|           <Property name="name">length</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">width</Property> | 
|           <Property name="name">width</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn name="height"> | 
|           <Property name="property">height</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">ground</Property> | 
|           <Property name="name">ground</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">wall</Property> | 
|           <Property name="name">wall</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">roof</Property> | 
|           <Property name="name">roof</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">roofTruss</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="name">roofTruss</Property> | 
|         </DataColumn> | 
|         <DataColumn> | 
|           <Property name="property">createDate</Property> | 
|           <Property name="align">center</Property> | 
|           <Property name="name">createDate</Property> | 
|         </DataColumn> | 
|         <DataColumn name="userDate"> | 
|           <Property name="property">userDate</Property> | 
|           <Property name="align">center</Property> | 
|         </DataColumn> | 
|       </DataGrid> | 
|     </Container> | 
|     <Dialog id="dialogMain"> | 
|       <Property name="closeable">false</Property> | 
|       <Property name="caption">仓库信息</Property> | 
|       <Property name="width">60%</Property> | 
|       <Property name="iconClass">fa fa-tasks</Property> | 
|       <Buttons> | 
|         <Button id="btnOk"> | 
|           <ClientEvent name="onClick">view.get("#uaSave").execute(function(result){
 | 
|     if(result){
 | 
|         $alert(result);
 | 
|     }else{
 | 
|         $notify("保存成功!!");
 | 
|         view.get("#dialogMain").hide();
 | 
|     }
 | 
| });</ClientEvent> | 
|           <Property name="caption">确定</Property> | 
|           <Property name="iconClass">fa fa-check</Property> | 
|         </Button> | 
|         <Button> | 
|           <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 | 
|             self.get("parent").hide();</ClientEvent> | 
|           <Property name="caption">取消</Property> | 
|           <Property name="iconClass">fa fa-times</Property> | 
|         </Button> | 
|       </Buttons> | 
|       <Children> | 
|         <AutoForm> | 
|           <Property name="dataSet">dsMain</Property> | 
|           <Property name="cols">*,*</Property> | 
|           <Property name="labelAlign">right</Property> | 
|           <Property name="labelSeparator">:</Property> | 
|           <Property name="labelWidth">120</Property> | 
|           <AutoFormElement id="oneId"> | 
|             <Property name="name">id</Property> | 
|             <Property name="property">id</Property> | 
|             <Property name="readOnly">false</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">deptId</Property> | 
|             <Property name="property">deptId</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">name</Property> | 
|             <Property name="property">name</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">userDate</Property> | 
|             <Property name="property">userDate</Property> | 
|             <Property name="readOnly">false</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">roofTruss</Property> | 
|             <Property name="property">roofTruss</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">ground</Property> | 
|             <Property name="property">ground</Property> | 
|             <Property name="readOnly">false</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">wall</Property> | 
|             <Property name="property">wall</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">roof</Property> | 
|             <Property name="property">roof</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">storage</Property> | 
|             <Property name="property">storage</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">height</Property> | 
|             <Property name="property">height</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">length</Property> | 
|             <Property name="property">length</Property> | 
|             <Property name="readOnly">false</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">width</Property> | 
|             <Property name="property">width</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">createDate</Property> | 
|             <Property name="property">createDate</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">diameter</Property> | 
|             <Property name="property">diameter</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">volume</Property> | 
|             <Property name="property">volume</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">doorNum</Property> | 
|             <Property name="property">doorNum</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">lon</Property> | 
|             <Property name="property">lon</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <AutoFormElement> | 
|             <Property name="name">lat</Property> | 
|             <Property name="property">lat</Property> | 
|             <Editor/> | 
|           </AutoFormElement> | 
|           <Link> | 
|             <Property name="href">http://api.map.baidu.com/lbsapi/getpoint/</Property> | 
|             <Property name="target">_blank</Property> | 
|             <Property name="style"> | 
|               <Property name="padding-left">150px</Property> | 
|             </Property> | 
|             <Property name="text">帮助:点击坐标位置拾取</Property> | 
|           </Link> | 
|         </AutoForm> | 
|       </Children> | 
|       <Tools/> | 
|     </Dialog> | 
|     <AjaxAction id="ajaxRefreshCache"> | 
|       <Property name="service">buildingPR#refreshCache</Property> | 
|       <Property name="successMessage">刷新成功!</Property> | 
|       <Property name="confirmMessage">确定要刷新缓存么?</Property> | 
|     </AjaxAction> | 
|     <UpdateAction id="uaSave"> | 
|       <Property name="dataResolver">buildingPR#saveData</Property> | 
|       <Property name="successMessage">数据保存完成!</Property> | 
|       <UpdateItem> | 
|         <Property name="dataSet">dsMain</Property> | 
|         <Property name="dataPath">[#current]</Property> | 
|         <Property name="validateData">false</Property> | 
|       </UpdateItem> | 
|     </UpdateAction> | 
|     <AjaxAction id="ajaxDel"> | 
|       <Property name="service">buildingPR#delData</Property> | 
|       <Property name="confirmMessage">确定要执行删除么?</Property> | 
|     </AjaxAction> | 
|   </View> | 
| </ViewConfig> |