<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: trd
    $Date: 2023-3-20 下午1:49:19
    $Revision: 1.0  
    $Purpose: 手工凭证其它附件导入
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
         	function saveClick(){
        		if (document.getElementById('importFile').value){
        			var fileName = document.getElementById('importFile').value;
        			var fileType = fileName.substr(fileName.lastIndexOf("."));
        			document.getElementById('importForm').submit();
        		}
        	}

       	]]></script>
        <a:dataSets>
            <a:dataSet id="label_ds" autoCreate="true">
              </a:dataSet>
        </a:dataSets>
          <a:fieldSet style="margin-left:10px;margin-top:10px;" title="导入文件" width="400">
      <form name="upload" id="importForm" action="hls_journal_attach_trans_upload.lview?session_id=${/parameter/@session_id}&amp;_csrf=${/session/@_csrf.token}" enctype="multipart/form-data" method="post">
                <label style="margin-left:10px;margin-top:10px;"><![CDATA[请选择文件:]]></label>
                <input name="CONTENT" id="importFile" style="margin-bottom:4px;width:160px;height:22px;" type="file"/>
                <input onclick="saveClick()" style="margin-left:50px;margin-top:10px;width:60px;" type="button" value="导入"/>
            </form>
        </a:fieldSet>
    </a:view>
</a:screen>
