prj_project_law_option.lview 5.9 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: 6590 Richen.Xu 
    $Date: 2015-5-8 上午10:17:32  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view package="leaf.ui.std" template="default">
        <a:link id="prj501N_law_opinion_print_url" url="${/request/@context_path}/modules/prj/PRJ501N/prj_law_opinion_print.lview"/>
        <script type="text/javascript"><![CDATA[
	function prj501N_back(){
	    $('prj_opinion_window').close();
	}
	
	function prj501N_opinion_save(){
	    //假如没有opinion说明表中还没有对应的法务意见,则执行insert操作,否则执行update操作
		if(Leaf.isEmpty($('prj501N_law_opinion_ds').getAt(0).get('opinion_id')))
		{
		    $('prj501N_law_opinion_ds').getAt(0).isNew=true;
		}
		$('prj501N_law_opinion_ds').getAt(0).set('project_id','${/parameter/@project_id}');
		$('prj501N_law_opinion_ds').getAt(0).set('status','NEW');
	    $('prj501N_law_opinion_ds').submit();
	}
	
	function prj501N_opinion_submit(){
	    Leaf.showConfirm('提示','确定要提交法审意见单吗?',function(){
	        //假如没有opinion说明表中还没有对应的法务意见,则执行insert操作,否则执行update操作
			if(Leaf.isEmpty($('prj501N_law_opinion_ds').getAt(0).get('opinion_id')))
			{
			    $('prj501N_law_opinion_ds').getAt(0).isNew=true;
			}
			$('prj501N_law_opinion_ds').getAt(0).set('project_id','${/parameter/@project_id}');
			$('prj501N_law_opinion_ds').getAt(0).set('status','SUBMIT');
		    $('prj501N_law_opinion_ds').submit();
	    });
	}
	
	function prj501N_print(){
	    Leaf.showConfirm('提示','确定要打印吗?',function(){
	        	 	// alert(1);
                    Leaf.Masker.mask(Ext.getBody(),'正在提交');
                    var templt_name = 'project_law_opinion.xml';
                    var project_id = '${/parameter/@project_id}';
                    var url = $('prj501N_law_opinion_print_url').getUrl()+'?templt_name='+templt_name+'&project_id='+project_id;
                     alert(url);
                    var form = document.createElement("form");
                    form.target = "word_export_window";
                    form.method = "post";
                    form.action = url;
                    var iframe = Ext.get('word_export_window') || new Ext.Template('<iframe id ="word_export_window" name="word_export_window" style="position:absolute;left:-10000px;top:-10000px;width:1px;height:1px;display:none"></iframe>').insertFirst(document.body, {}, true);
                    document.body.appendChild(form);
                    form.submit();
                    Ext.fly(form).remove();
                    Leaf.Masker.unmask(Ext.getBody());
                });
	}
	
	]]></script>
        <a:dataSets>
            <a:dataSet id="prj501N_project_info_ds" autoQuery="true" queryUrl="${/request/@context_path}/autocrud/prj.PRJ501N.project_wfl_info/query?project_id=${/parameter/@project_id}"/>
            <a:dataSet id="prj501N_law_opinion_ds" autoQuery="true" model="prj.PRJ501N.prj_law_audit_opinion" queryUrl="${/request/@context_path}/autocrud/prj.PRJ501N.prj_law_audit_opinion/query?project_id=${/parameter/@project_id}"/>
        </a:dataSets>
        <a:screenBody>
            <a:hBox>
                <a:button click="prj501N_back" text="返回"/>
                <a:button click="prj501N_opinion_save" text="保存"/>
                <a:button click="prj501N_opinion_submit" text="提交"/>
                <a:button click="prj501N_print" text="打印"/>
            </a:hBox>
            <a:fieldSet column="2" title="本次融资项目情况简介" width="760">
                <a:label name="project_name" bindTarget="prj501N_project_info_ds" prompt="项目名称" width="300"/>
                <a:label name="employee_id_n" bindTarget="prj501N_project_info_ds" prompt="呈报人"/>
                <a:label name="lease_organization_n" bindTarget="prj501N_project_info_ds" prompt="业务单位" width="300"/>
                <a:label name="examinant" bindTarget="prj501N_project_info_ds" prompt="审查人"/>
            </a:fieldSet>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[项目进度]]></font>
            </label>
            <a:grid bindTarget="prj501N_law_opinion_ds" height="50" navBar="false" width="760">
                <a:columns>
                    <a:column name="created_date" prompt="立项日期" width="150"/>
                    <a:column name="submit_date" prompt="报审日期" width="150"/>
                    <a:column name="law_audit_date" editor="prj_law_dp" prompt="出具法审意见日期" renderer="Leaf.formatDateTime" width="150"/>
                    <a:column name="feedback_date" editor="prj_law_dp" prompt="法审问题反馈日期" renderer="Leaf.formatDateTime" width="150"/>
                    <a:column name="committee_date" editor="prj_law_dp" prompt="项目上会日期" renderer="Leaf.formatDateTime" width="150"/>
                </a:columns>
                <a:editors>
                    <a:dateTimePicker id="prj_law_dp"/>
                </a:editors>
            </a:grid>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[法审意见]]></font>
            </label>
            <a:textArea name="law_audit_opinion" bindTarget="prj501N_law_opinion_ds" height="200" marginWidth="50" prompt=""/>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[法审意见反馈情况]]></font>
            </label>
            <a:textArea name="feedback" bindTarget="prj501N_law_opinion_ds" height="200" marginWidth="50" prompt=""/>
            <br/>
            <label>
                <font style="font-size:20px;"><![CDATA[结论]]></font>
            </label>
            <a:textArea name="conclusion" bindTarget="prj501N_law_opinion_ds" height="200" marginWidth="50" prompt=""/>
        </a:screenBody>
    </a:view>
</a:screen>