gld_journal_detail_query - 鍓湰.lview 10.1 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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hp  
    $Date: 2013-9-13 下午03:44:06  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <script type="text/javascript"><![CDATA[
             function gld_310_journal_back() {
            		 //history.go(-1);
					 $('gld532_journal_num_query_window').close();
            }
            //过账按钮
        	function gld_532_journal_posting()
        	{
        	  
        	    var journal_header_id = ${/parameter/@journal_header_id};   	   	
        	    //batch_update 代表多条数据批次更新     如果是update--则是表示更新一条数据
				//$('gld_journal_headers_result_ds').submitSelected('${/request/@context_path}/autocrud/gld.GLD531.gld_journal_posting/batch_update');
				Leaf.Masker.mask(Ext.getBody(), '正在过账..');
				Leaf.request({
                        url: $('gld_posting_link').getUrl(),
                        para: {
                            journal_header_id:journal_header_id
                        },
                        success: function(args) { //
                            Leaf.SideBar.show({
			                            	msg: '过账成功',
			                            	duration: 4000
	                        			});
                         $('gld_journal_headers_result_ds').query();  
                         $('gld532_journal_num_query_window').close(); 
                         Leaf.Masker.unmask(Ext.getBody());
                        },
                        scope: this
                    });
				//更新完后台数据库数据之后,重新查询相关信息
				
        	}
        ]]></script>
        <a:screenBody>
            <a:dataSets>
                <!-- 	汇率类型 -->
                <a:dataSet id="exchangerate_type_vl_ds">
                    <a:datas dataSource="/model/exchangerate_type"/>
                </a:dataSet>
                <!-- 会计期查询 -->
                <!--  <a:dataSet id="gld_period_num_ds" loadData="true" queryUrl="${/request/@context_path}/autocrud/gld.GLD530.gld_period_num_query/query">
                <a:events>
                    <a:event name="load" handler="gld_period_num_onLoad"/>
                </a:events>
            </a:dataSet> -->
                <a:dataSet id="gld_journal_headers_ds" autoQuery="true" canQuery="true" fetchAll="true" model="gld.GLD530.gld_journal_headers" queryUrl="${/request/@context_path}/autocrud/gld.GLD530.gld_journal_headers/query?journal_header_id=${/parameter/@journal_header_id}">
                    <a:fields>
                        <a:field name="exchange_rate" readOnly="true"/>
                        <a:field name="exchange_rate_type" readOnly="true"/>
                        <a:field name="status" readOnly="true"/>
                        <a:field name="code_value_name" readOnly="true"/>
                        <a:field name="exchange_rate_type" readOnly="true"/>
                        <a:field name="currency_code" readOnly="true"><![CDATA[
                        ]]></a:field>
                        <a:field name="currency_code_desc" readOnly="true"/>
                        <a:field name="period_num" readOnly="true"/>
                        <a:field name="period_year" readOnly="true"/>
                        <a:field name="attachment_num" readOnly="true"/>
                        <a:field name="period_name"><![CDATA[
                        ]]></a:field>
                        <a:field name="journal_num" readOnly="true"/>
                        <a:field name="source_code" readOnly="true"/>
                        <a:field name="category_code" readOnly="true"><![CDATA[
                        ]]></a:field>
                        <a:field name="category_code_desc" readOnly="true"/>
                        <a:field name="source_code_desc" readOnly="true"/>
                    </a:fields>
                </a:dataSet>
                <a:dataSet id="gld_journal_details_ds" autoQuery="true" model="gld.gld_journal_details" queryUrl="${/request/@context_path}/autocrud/gld.gld_journal_details/query?journal_header_id=${/parameter/@journal_header_id}">
                    <a:fields>
                        <a:field name="line_description" readOnly="true"/>
                        <a:field name="responsibility_center_name" readOnly="true"/>
                        <a:field name="account_description" readOnly="true"/>
                        <a:field name="account_code" readOnly="true"><![CDATA[ 
                        ]]></a:field>
                        <a:field name="amount_dr" readOnly="true"/>
                        <a:field name="amount_cr" readOnly="true"/>
                        <a:field name="amount_fuc_dr" readOnly="true"/>
                        <a:field name="amount_fuc_cr" readOnly="true"/>
                    </a:fields>
                </a:dataSet>
            </a:dataSets>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:toolbarButton click="gld_310_journal_back" text="关闭"/>
                <a:toolbarButton click="gld_532_journal_posting" text="过账"/>
                <!-- <a:toolbarButton click="gld_310_journal_next" text="下一页"/>
                   <a:toolbarButton click="gld_310_journal_pre" text="上一页"/> -->
            </a:screenTopToolbar>
            <a:form>
                <a:hBox>
                    <a:datePicker name="journal_date" bindTarget="gld_journal_headers_ds" prompt="日期" readOnly="true"/>
                    <a:comboBox name="period_name" bindTarget="gld_journal_headers_ds" prompt="会计期" readOnly="true"/>
                    <a:textField name="period_year" bindTarget="gld_journal_headers_ds" prompt="年度" readOnly="true"/>
                    <a:textField name="code_value_name" bindTarget="gld_journal_headers_ds" prompt="状态" readOnly="true"/>
                </a:hBox>
                <a:hBox>
                    <a:spinner name="attachment_num" bindTarget="gld_journal_headers_ds" min="0" prompt="附件数" step="1"/>
                    <!-- <a:numberField name="attachment_num" allowDecimals="false" allowNegative="false"   bindTarget="gld_journal_headers_ds" prompt="附件数"/> -->
                    <a:textField name="category_code_desc" bindTarget="gld_journal_headers_ds" prompt="凭证类型"/>
                    <a:textField name="journal_num" bindTarget="gld_journal_headers_ds" prompt="凭证编号"/>
                    <a:textField name="source_code_desc" bindTarget="gld_journal_headers_ds" prompt="来源" readOnly="true"/>
                </a:hBox>
                <a:hBox>
                    <a:textField name="currency_code_desc" bindTarget="gld_journal_headers_ds" prompt="币种"/>
                    <a:comboBox name="exchange_rate_type_desc" bindTarget="gld_journal_headers_ds" prompt="汇率类型" readOnly="true"/>
                    <a:textField name="exchange_rate" bindTarget="gld_journal_headers_ds" prompt="汇率" readOnly="true"/>
                </a:hBox>
                <a:hBox>
                    <a:textField name="description" bindTarget="gld_journal_headers_ds" prompt="摘要" readOnly="true" width="616"/>
                </a:hBox>
            </a:form>
            <a:tabPanel marginHeight="215" marginWidth="30">
                <a:tabs>
                    <a:tab prompt="基本信息">
                        <a:grid id="gld_journal_details_grid1" bindTarget="gld_journal_details_ds" marginHeight="250" marginWidth="40" navBar="true">
                            <a:columns>
                                <a:column lock="true" prompt=" ">
                                    <a:column name="line_description" prompt="摘要" width="200"/>
                                    <a:column name="responsibility_center_name" prompt="责任中心" width="150"/>
                                    <a:column name="account_code" prompt="科目"/>
                                    <a:column name="account_description" align="right" prompt="描述" width="230"/>
                                </a:column>
                                <a:column prompt="原币">
                                    <a:column name="amount_dr" align="right" prompt="借方金额" renderer="Leaf.formatMoney"/>
                                    <a:column name="amount_cr" align="right" prompt="贷方金额" renderer="Leaf.formatMoney"/>
                                </a:column>
                                <a:column prompt="本位币">
                                    <a:column name="amount_fuc_dr" align="right" prompt="借方金额" renderer="Leaf.formatMoney"/>
                                    <a:column name="amount_fuc_cr" align="right" prompt="贷方金额" renderer="Leaf.formatMoney"/>
                                </a:column>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="附加信息">
                        <a:grid id="gld_journal_details_grid2" bindTarget="gld_journal_details_ds" marginHeight="250" marginWidth="40" navBar="true">
                            <a:columns>
                                <a:column lock="true" prompt=" ">
                                    <a:column name="line_description" prompt="摘要" width="200"/>
                                    <a:column name="responsibility_center_name" prompt="责任中心" width="150"/>
                                    <a:column name="account_code" prompt="科目"/>
                                    <a:column name="account_description" prompt="描述" width="230"/>
                                </a:column>
                                <a:column prompt=" ">
                                    <a:column name="reference1" prompt="参考1"/>
                                    <a:column name="reference2" prompt="参考2"/>
                                    <a:column name="reference3" prompt="参考3"/>
                                    <a:column name="reference4" prompt="参考4"/>
                                </a:column>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                </a:tabs>
            </a:tabPanel>
        </a:screenBody>
    </a:view>
</a:screen>