| | |
| | | <Property></Property> |
| | | <Property name="label">文件存储ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="wjdz"> |
| | | <Property name="label">文件地址</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fileName"> |
| | | <Property></Property> |
| | | <Property name="label">文件名称</Property> |
| | |
| | | <Property name="exClassName">toolbar-button</Property> |
| | | </Button> |
| | | <Button> |
| | | <Property name="caption">上传文件</Property> |
| | | <Property name="iconClass">fa fa-upload</Property> |
| | | <Property name="exClassName">toolbar-button-warm</Property> |
| | | <Property name="action">uploadAction</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | self.get("parent").hide();
 |
| | | if(cur) cur.cancel();</ClientEvent> |
| | |
| | | <Property name="property">kqdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wjdz</Property> |
| | | <Property name="property">wjdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </GroupBox> |
| | |
| | | <Property name="service">api1403PR#delUpdate</Property> |
| | | <Property name="confirmMessage">确定要将数据标记为删除么?</Property> |
| | | </AjaxAction> |
| | | <UploadAction id="uploadAction"> |
| | | <ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&#xD;
 |
| | | 
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | cur.set("wjdz",returnValue);</ClientEvent> |
| | | <Property name="fileResolver">uploadProcessor#uploadFile</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | </View> |
| | | </ViewConfig> |