prj_project_family_visit.lview 3.84 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hand  
    $Date: 2016-3-31 下午3:03:15  
    $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 submit_prj_project_family_visit_result_ds() {
                $('prj_project_family_visit_result_ds').submit();
            }
            
            var confirm_flag = 'N';
            
            function zjwfl5110_onButtonGroup2() {
                //
                confirm_flag = 'Y';
                submit_prj_project_family_visit_result_ds();
            }
            
            function on_family_visit_result_ds_submitsuccess(ds,dd) {

                if (confirm_flag == 'Y') {
                   
                    var combobox_ds_id = "${/parameter/@combobox_ds_id}";
                    var wfl_node_action_id = "${/parameter/@wfl_node_action_id}";
                    var wfl_node_action_prompt = '${/parameter/@wfl_node_action_prompt}';
                    zjwfl5110_onButtonGroup(null, combobox_ds_id, wfl_node_action_id, wfl_node_action_prompt, 3);
                    $('zj_wfl_workflow_service_window').close();
                }
            }
            function on_family_visit_result_ds_submitfailed(ds,dd){
                confirm_flag = 'N';
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="prj_project_family_visit_query">
                <a:fields>
                    <a:field name="project_id" defaultValue="${/parameter/@project_id}"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="prj_project_family_visit_result_ds" autoQuery="true" model="prj.PRJ903.prj_project_family_visit" queryDataSet="prj_project_family_visit_query">
                <a:fields>
                    <a:field name="feedback"/>
                    <a:field name="opinion" required="true"/>
                    <a:field name="project_id" defaultValue="${/parameter/@project_id}"/>
                    <a:field name="combobox_ds_id" defaultValue="${/parameter/@combobox_ds_id}"/>
                    <a:field name="wfl_node_action_id" defaultValue="${/parameter/@wfl_node_action_id}"/>
                    <a:field name="wfl_node_action_prompt" defaultValue="${/parameter/@wfl_node_action_prompt}"/>
                    <a:field name="action_type" defaultValue="${/parameter/@action_type}"/>
                </a:fields>
                <a:events>
                    <a:event name="submitsuccess" handler="on_family_visit_result_ds_submitsuccess"/>
                    <a:event name="submitfailed" handler="on_family_visit_result_ds_submitfailed"/>
                </a:events>
            </a:dataSet>
            <a:dataSet id="prj_project_family_base_ds" autoQuery="true" queryUrl="${/request/@context_path}/autocrud/zjwfl.rd_project_base_info/query?project_id=${/parameter/@project_id}">
                <a:field name="project_number"/>
                <a:field name="bp_name"/>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="submit_prj_project_family_visit_result_ds" text="保存"/>
                <a:gridButton click="zjwfl5110_onButtonGroup2" text="确定"/>
            </a:screenTopToolbar>
            <a:form column="2" width="500">
                <a:textField name="project_number" bindTarget="prj_project_family_base_ds" prompt="申请编号" readOnly="true"/>
                <a:textField name="bp_name" bindTarget="prj_project_family_base_ds" prompt="承租人" readOnly="true"/>
                <a:textArea name="opinion" bindTarget="prj_project_family_visit_result_ds" colspan="2" height="200" prompt="家访意见" width="400"/>
            </a:form>
        </a:screenBody>
    </a:view>
</a:screen>