| | |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <Property name="caption">导入EXCEL</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | <Property name="action">uploadExcel</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridMain" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridMain").set("selection",arg.data);</ClientEvent> |
| | |
| | | </Container> |
| | | </CustomDropDown> |
| | | <YearDropDown id="yearDropDown"/> |
| | | <UploadAction id="uploadExcel"> |
| | | <ClientEvent name="onFileUploaded">var fileName = arg.returnValue;
 |
| | | if(fileName){
 |
| | | $notify("附件上传成功,开始执行解析……");
 |
| | | view.get("#ajaxAnalysisExcel").set("parameter",fileName).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | $alert("导入并解析成功!");
 |
| | | query();
 |
| | | }
 |
| | | });
 |
| | | }</ClientEvent> |
| | | <Property name="fileResolver">fileUploadManage#uploadExcel</Property> |
| | | <Property name="maxFileSize">10MB</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <AjaxAction id="ajaxAnalysisExcel"> |
| | | <Property name="service">inoutDataPR#analysisExcel</Property> |
| | | <Property name="executingMessage">正在执行解析……</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |