Commit 90ad6094 authored by rcc's avatar rcc

初始化

parents
# hls_rent
## 租房管理系统
### 一
把screen文件夹名字改为hls_rent,放到hlap-train\core\src\main\webapp\modules目录下
把bm文件夹名字改为hls_rent,放到hlap-train\core\src\main\webapp\WEB-INF\classes目录下
### 二
创建数据表
### 三
添加系统代码(腾讯文档)
### 四
执行序列SQL
### 五
编译package
### 六
一级菜单
HLS_RENT,租房信息管理系统
二级菜单
RENT1000,租房信息管理模块;
RENT2000,入住人员信息管理模块;
RENT3000,租房费用管理模块;
RENT4000,租房过程管理模块;
RENT5000,租房合同管理模块;
### 七
执行页面注册SQL(注意:执行完页面注册脚本要commit)
### 八
更新缓存
### 九
刷新页面
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="fnd_city">
<bm:fields>
<bm:field name="city_code_description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="description" prompt="fnd_city.description"/>
<bm:field name="city_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="city_id" prompt="fnd_city.city_id"/>
</bm:fields>
<bm:primary-key>
<bm:pk-field name="city_code"/>
</bm:primary-key>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select p.city_id as city_code,p.description as city_code_description FROM fnd_city p #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="province_code" queryExpression="p.province_id = ${@province_code} and p.enabled_flag = 'Y'"/>
</bm:query-fields>
</bm:model>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm" baseTable="fnd_country">
<bm:fields>
<bm:field name="country_code_description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="description" prompt="fnd_country.description"/>
<bm:field name="country_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="country_code" prompt="fnd_country.country_id"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select f.country_id as country_code, f.description as country_code_description from fnd_country f where f.enabled_flag = 'Y' and f.country_id = 32
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="fnd_province">
<bm:fields>
<bm:field name="province_code_description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="description" prompt="fnd_province.description"/>
<bm:field name="province_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="province_id" prompt="fnd_province.province_id"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select p.province_id as province_code, p.description as province_code_description FROM fnd_province p #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="country_code" queryExpression="p.country_id = ${@country_code} and p.enabled_flag = 'Y'"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_ROOM_INFO">
<bm:fields>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" prompt="HLS_ROOM_INFO.ROOM_ID"/>
<bm:field name="room_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_NO" prompt="HLS_ROOM_INFO.ROOM_NO"/>
<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ABBR" prompt="HLS_ROOM_INFO.ROOM_ABBR"/>
<bm:field name="room_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_TYPE" prompt="HLS_ROOM_INFO.ROOM_TYPE"/>
<bm:field name="room_area" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_AREA" prompt="HLS_ROOM_INFO.ROOM_AREA"/>
<bm:field name="bed" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BED" prompt="HLS_ROOM_INFO.BED"/>
<bm:field name="bed_used" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BED_USED" prompt="HLS_ROOM_INFO.BED_USED"/>
<bm:field name="bed_free" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BED_FREE" prompt="HLS_ROOM_INFO.BED_FREE"/>
<bm:field name="landlord_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_NAME" prompt="HLS_ROOM_INFO.LANDLORD_NAME"/>
<bm:field name="landlord_tel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_TEL" prompt="HLS_ROOM_INFO.LANDLORD_TEL"/>
<bm:field name="intermediary" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY" prompt="HLS_ROOM_INFO.INTERMEDIARY"/>
<bm:field name="intermediary_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY_NAME" prompt="HLS_ROOM_INFO.INTERMEDIARY_NAME"/>
<bm:field name="intermediary_tel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY_TEL" prompt="HLS_ROOM_INFO.INTERMEDIARY_TEL"/>
<bm:field name="message" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MESSAGE" prompt="HLS_ROOM_INFO.MESSAGE"/>
<bm:field name="room_addr_country" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ADDR_COUNTRY" prompt="HLS_ROOM_INFO.ROOM_ADDR_COUNTRY"/>
<bm:field name="room_addr_province" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ADDR_PROVINCE" prompt="HLS_ROOM_INFO.ROOM_ADDR_PROVINCE"/>
<bm:field name="room_addr_city" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ADDR_CITY" prompt="HLS_ROOM_INFO.ROOM_ADDR_CITY"/>
<bm:field name="room_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_STATUS" prompt="HLS_ROOM_INFO.ROOM_STATUS"/>
<bm:field name="create_date" datatype="java.lang.String" prompt="HLS_ROOM_INFO.CREATION_DATE"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="room_id"/>
</bm:primary-key>
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
hls_rent_pkg.insert_room_info(
p_room_type => ${@room_type_code},
p_room_area => ${@room_area_code},
p_bed_free => ${@bed_free_code},
p_landlord_name => ${@landlord_name},
p_landlord_tel => ${@landlord_tel},
p_room_addr_country => ${@country_code},
p_room_addr_province => ${@province_code},
p_room_addr_city => ${@city_code},
p_room_abbr => ${@room_abbr},
p_intermediary => ${@intermediary},
p_intermediary_name => ${@intermediary_name},
p_intermediary_tel => ${@intermediary_tel},
p_message => ${@message}
);
end;]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_rent_pkg.update_room_info(
p_room_no => ${@room_no},
p_room_type => ${@room_type_code},
p_room_area => ${@room_area_code},
p_bed => ${@bed_free_code},
p_landlord_name => ${@landlord_name},
p_landlord_tel => ${@landlord_tel},
p_room_addr_country => ${@country_code},
p_room_addr_province => ${@province_code},
p_room_addr_city => ${@city_code},
p_room_abbr => ${@room_abbr},
p_intermediary => ${@intermediary},
p_intermediary_name => ${@intermediary_name},
p_intermediary_tel => ${@intermediary_tel},
p_message => ${@message}
);
end;]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT
room_id,
room_no,
room_abbr,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_TYPE', room_type)) room_type,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_AREA', room_area)) room_area,
bed,
bed_used,
bed_free,
landlord_name,
landlord_tel,
intermediary,
intermediary_name,
intermediary_tel,
message,
(select fc.description from fnd_country fc where fc.country_id = room_addr_country) room_addr_country,
(select fc.description from fnd_province fc where fc.province_id = room_addr_province) room_addr_province,
(select fc.description from fnd_city fc where fc.city_id = room_addr_city) room_addr_city,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_STATUS', room_status)) room_status,
to_char(creation_date, 'yyyy-mm-dd') create_date
FROM hls_room_info #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="room_abbr" queryExpression="room_abbr like &apos;%&apos;||${@room_abbr}||&apos;%&apos;"/>
<bm:query-field name="landlord_name" queryExpression="landlord_name = ${@landlord_name}"/>
<bm:query-field name="landlord_tel" queryExpression="landlord_tel = ${@landlord_tel}"/>
<bm:query-field name="room_type" queryExpression="room_type = ${@room_type_code}"/>
<bm:query-field name="room_no" queryExpression="room_no = ${@room_no}"/>
<bm:query-field name="creation_date_from" queryExpression="to_char(creation_date, 'yyyy-mm-dd') >= ${@creation_date_from}"/>
<bm:query-field name="creation_date_to" queryExpression=" ${@creation_date_to} >= to_char(creation_date, 'yyyy-mm-dd')"/>
<bm:query-field name="room_status" queryExpression="room_status = ${@room_status_code}"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="room_no=${/parameter/@room_no}" model="hls_rent.RENT100.hls_room_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
//二级联动
function onCountryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_code'){
console.log(name);
console.log(value);
$('RENT100_provinceDs').setQueryParameter('country_code', value);
$('RENT100_provinceDs').query();
}
else if(name == 'province_code'){
console.log(name);
console.log(value);
$('RENT100_cityDs').setQueryParameter('province_code', value);
$('RENT100_cityDs').query();
}
}
//修改按钮
function RENT100_updateRoomInfo(){
//debugger;
var room_no = '${/parameter/@room_no}';
console.log(room_no);
$('RENT100_room_info_edit_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT100.hls_room_info/batch_update"+'?room_no='+room_no);
$('RENT100_room_info_edit_ds').submit();
}
//提交成功之后触发此函数
function onSubmitSuccess_roomInfoEditDs(){
//console.log("444");
//$('RENT100_room_info_input_ds').reset();
$('room_info_search_result_window').close();
RENT100_roomInfoSearch();
}
]]></script>
<a:dataSets>
<!-- 房屋面积-->
<a:dataSet id="RENT100_roomAreaDs" lookupCode="HLS_HOUSE_AREA"/>
<!-- 床位数量-->
<a:dataSet id="RENT100_bedNumberDs" lookupCode="HLS_BED_NUMBER"/>
<!-- 房屋地址三级联动-->
<a:dataSet id="RENT100_countryDs" loadData="true" model="hls_rent.RENT100.fnd_country"/>
<a:dataSet id="RENT100_provinceDs" model="hls_rent.RENT100.fnd_province"/>
<a:dataSet id="RENT100_cityDs" model="hls_rent.RENT100.fnd_city"/>
<a:dataSet id="RENT100_room_info_edit_ds" model="hls_rent.RENT100.hls_room_info" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="room_type" required="true" displayField="code_value_name" options="RENT100_roomTypeDs1" returnField="room_type_code" valueField="code_value"/>
<a:field name="room_area" required="true" displayField="code_value_name" options="RENT100_roomAreaDs" returnField="room_area_code" valueField="code_value"/>
<a:field name="bed_free" required="true" displayField="code_value_name" options="RENT100_bedNumberDs" returnField="bed_free_code" valueField="code_value"/>
<a:field name="landlord_name" displayField="period_name" options="" required="true" returnField="period_name" valueField="period_name"/>
<a:field name="landlord_tel" required="true"/>
<a:field name="room_addr_country" required="true" displayField="country_code_description" options="RENT100_countryDs" returnField="country_code" valueField="country_code"/>
<a:field name="room_addr_province" required="true" displayField="province_code_description" options="RENT100_provinceDs" returnField="province_code" valueField="province_code"/>
<a:field name="room_addr_city" required="true" displayField="city_code_description" options="RENT100_cityDs" returnField="city_code" valueField="city_code"/>
<a:field name="room_abbr" displayField="currency_desc" options="" required="true" returnField="currency_code" valueField="currency_code"/>
<a:field name="intermediary" required="true"/>
<a:field name="intermediary_name" displayField="type_name" options="" required="true" returnField="exchange_rate_type" valueField="type_code"/>
<a:field name="intermediary_tel" required="true"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCountryUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_roomInfoEditDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="房屋编号:${/parameter/@room_no}">
<a:box id="" column="3" style="width:100%">
<a:comboBox name="room_type" bindtarget="RENT100_room_info_edit_ds" prompt="房屋类型"/>
<a:comboBox name="room_area" bindtarget="RENT100_room_info_edit_ds" prompt="房屋面积"/>
<a:comboBox name="bed_free" bindtarget="RENT100_room_info_edit_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_edit_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_edit_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:comboBox name="room_addr_country" bindtarget="RENT100_room_info_edit_ds" prompt="房屋地址:国家"/>
<a:comboBox name="room_addr_province" bindtarget="RENT100_room_info_edit_ds" prompt="省"/>
<a:comboBox name="room_addr_city" bindtarget="RENT100_room_info_edit_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_edit_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_edit_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_edit_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_edit_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_edit_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_updateRoomInfo" text="修改" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
//二级联动
function onCountryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_code'){
console.log(name);
console.log(value);
$('RENT100_provinceDs').setQueryParameter('country_code', value);
$('RENT100_provinceDs').query();
}
else if(name == 'province_code'){
console.log(name);
console.log(value);
$('RENT100_cityDs').setQueryParameter('province_code', value);
$('RENT100_cityDs').query();
}
}
//保存
function RENT100_saveRoomInfo() {
//console.log("fuck");
//数据提交
$('RENT100_room_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT100.hls_room_info/batch_update");
$('RENT100_room_info_input_ds').submit();
//$('room_info_new_window').close();
//$('RENT100_room_info_input_ds').reset();
// alert("????");
}
//提交成功之后触发此函数
function onSubmitSuccess_roomInfoInputDs(){
//$('RENT100_room_info_input_ds').reset();
$('room_info_new_window').close();
RENT100_roomInfoSearch();
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋面积-->
<a:dataSet id="RENT100_roomAreaDs" lookupCode="HLS_HOUSE_AREA"/>
<!-- 床位数量-->
<a:dataSet id="RENT100_bedNumberDs" lookupCode="HLS_BED_NUMBER"/>
<!-- 房屋地址三级联动-->
<a:dataSet id="RENT100_countryDs" loadData="true" model="hls_rent.RENT100.fnd_country"/>
<a:dataSet id="RENT100_provinceDs" model="hls_rent.RENT100.fnd_province" fetchAll="true"/>
<a:dataSet id="RENT100_cityDs" model="hls_rent.RENT100.fnd_city" fetchAll="true"/>
<!-- 房屋信息-->
<a:dataSet id="RENT100_room_info_input_ds" autoCreate="true">
<a:fields>
<a:field name="room_type" required="true" displayField="code_value_name" options="RENT100_roomTypeDs" returnField="room_type_code" valueField="code_value"/>
<a:field name="room_area" required="true" displayField="code_value_name" options="RENT100_roomAreaDs" returnField="room_area_code" valueField="code_value"/>
<a:field name="bed_free" required="true" displayField="code_value_name" options="RENT100_bedNumberDs" returnField="bed_free_code" valueField="code_value"/>
<a:field name="landlord_name" displayField="period_name" options="" required="true" returnField="period_name" valueField="period_name"/>
<a:field name="landlord_tel" required="true" validator="validate_telNumber"/>
<a:field name="room_addr_country" required="true" displayField="country_code_description" options="RENT100_countryDs" returnField="country_code" valueField="country_code"/>
<a:field name="room_addr_province" required="true" displayField="province_code_description" options="RENT100_provinceDs" returnField="province_code" valueField="province_code"/>
<a:field name="room_addr_city" required="true" displayField="city_code_description" options="RENT100_cityDs" returnField="city_code" valueField="city_code"/>
<a:field name="room_abbr" displayField="currency_desc" options="" required="true" returnField="currency_code" valueField="currency_code"/>
<a:field name="intermediary" required="true"/>
<a:field name="intermediary_name" displayField="type_name" options="" required="true" returnField="exchange_rate_type" valueField="type_code"/>
<a:field name="intermediary_tel" required="true" validator="validate_telNumber"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCountryUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_roomInfoInputDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="新增房屋信息">
<a:box id="" column="3" style="width:100%">
<a:comboBox name="room_type" bindtarget="RENT100_room_info_input_ds" prompt="房屋类型"/>
<a:comboBox name="room_area" bindtarget="RENT100_room_info_input_ds" prompt="房屋面积"/>
<a:comboBox name="bed_free" bindtarget="RENT100_room_info_input_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_input_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_input_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:comboBox name="room_addr_country" bindtarget="RENT100_room_info_input_ds" prompt="房屋地址:国家"/>
<a:comboBox name="room_addr_province" bindtarget="RENT100_room_info_input_ds" prompt="省"/>
<a:comboBox name="room_addr_city" bindtarget="RENT100_room_info_input_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_input_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_input_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_input_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_input_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_saveRoomInfo" text="保存" width="80"/>
<!--<a:toolbarButton click="" text="关闭" width="80"/>-->
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_room_info_new" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_new.screen"/>
<a:link id="pageLink_room_info_search_result" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_search_result.screen"/>
<script><![CDATA[
//新增按钮
function RENT100_roomInfoAdd(){
new Aurora.Window({
id:'room_info_new_window',
url:$('pageLink_room_info_new').getUrl(),
title:'新增房屋信息',
height:400,
width:800
})
}
//查询按钮
function RENT100_roomInfoSearch(){
console.log('1');
$('RENT100_room_info_result_ds').query();
}
//grid渲染函数
function RENT100_room_info_result_ds_grid(value, record, name){
//debugger;
if(!record.isNew)
{
var room_no = record.get('room_no');
var rlt = '<a href="javascript:RENT100_roomInfoSearchResult(\'' + room_no + '\');">'+room_no+'</a>'
if(name=='room_no')
{
return rlt;
}
}
return '';
}
//查询结果显示框
function RENT100_roomInfoSearchResult(room_no){
new Aurora.Window({
id:'room_info_search_result_window',
url:$('pageLink_room_info_search_result').getUrl(),
params:{
room_no:room_no
},
title:'查询结果显示',
height:400,
width:830
});
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
//debugger;
//console.log(name);
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
//console.log(start_date);
var end_date = record.get('creation_date_to');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
//判断电话号码是否有效
function validate_telNumber(record, name, value){
if(name == 'landlord_tel'){
var landlord_tel = record.get('landlord_tel');
if(typeof(landlord_tel) != 'undefined' && !Ext.isEmpty(landlord_tel)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(landlord_tel))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs1" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋状态-->
<a:dataSet id="RENT100_roomStatusDs" lookupCode="HLS_HOUSE_STATUS"/>
<!-- 查询集-->
<a:dataSet id="RENT100_room_info_query" autoCreate="true">
<a:fields>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel" validator="validate_telNumber"/>
<a:field name="room_type" displayField="code_value_name" options="RENT100_roomTypeDs1" returnField="room_type_code" valueField="code_value"/>
<a:field name="creation_date_from"/>
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="room_status" displayField="code_value_name" options="RENT100_roomStatusDs" returnField="room_status_code" valueField="code_value"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="RENT100_room_info_result_ds" autoQuery="true" model="hls_rent.RENT100.hls_room_info" queryDataSet="RENT100_room_info_query"/>
</a:dataSets>
<a:screenBody>
<a:form id="" title="查询条件">
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_query" prompt="房屋简称"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_query" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_query" prompt="联系电话"/>
<a:comboBox name="room_type" bindtarget="RENT100_room_info_query" prompt="房屋类型"/>
<a:datePicker name="creation_date_from" bindtarget="RENT100_room_info_query" prompt="创建日期从"/>
<a:datePicker name="creation_date_to" bindtarget="RENT100_room_info_query" prompt="创建日期到"/>
<a:comboBox name="room_status" bindtarget="RENT100_room_info_query" prompt="房屋状态"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_roomInfoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
</a:form>
<a:grid id="RENT100_room_info_result_ds_grid" bindTarget="RENT100_room_info_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="room_no" align="center" editor="" prompt="房屋编号" renderer="RENT100_room_info_result_ds_grid" width="120" />
<a:column name="room_abbr" align="center" editor="" prompt="房屋简称" width="100"/>
<a:column name="room_type" align="center" editor="" prompt="房屋类型" width="100"/>
<a:column name="bed_free" align="center" editor="" prompt="床位" width="80"/>
<a:column name="landlord_name" align="center" editor="" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" align="center" editor="" prompt="联系电话" width="120"/>
<a:column name="intermediary" align="center" editor="" prompt="中介名称" width="120"/>
<a:column name="room_addr_province" align="center" editor="" prompt="房屋地址省" width="100"/>
<a:column name="room_addr_city" align="center" editor="" prompt="房屋地址市" width="100"/>
<a:column name="room_status" align="center" editor="" prompt="房屋状态" width="80"/>
<a:column name="create_date" align="center" editor="" prompt="创建日期" width="120" />
<a:column name="message" editor="" prompt="备注" width="120"/>
</a:columns>
<!--<a:datePicker name="" prompt="退房日期"/>-->
<a:toolBar>
<!--<a:link id="room_info_new" url="${/request/@context_path}/room_info_new.screen">-->
<!--<a:button click="RENT100_roomInfoAdd" text="新增" iconAlign="right" width="80" />-->
<!--</a:link>-->
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="room_no=${/parameter/@room_no}" model="hls_rent.RENT100.hls_room_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<a:dataSets>
<a:dataSet id="RENT100_room_info_search_result_ds" model="hls_rent.RENT100.hls_room_info" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="room_type" readOnly="true" />
<a:field name="room_area" readOnly="true" />
<a:field name="bed_free" readOnly="true"/>
<a:field name="landlord_name" readOnly="true"/>
<a:field name="landlord_tel" readOnly="true"/>
<a:field name="room_addr_country" readOnly="true"/>
<a:field name="room_addr_province" readOnly="true"/>
<a:field name="room_addr_city" readOnly="true"/>
<a:field name="room_abbr" readOnly="true"/>
<a:field name="intermediary" readOnly="true"/>
<a:field name="intermediary_name" readOnly="true"/>
<a:field name="intermediary_tel" readOnly="true"/>
<a:field name="message" readOnly="true"/>
</a:fields>
<!--<a:events>-->
<!--<a:event name="update" handler="onCountryUpdate"/>-->
<!--</a:events>-->
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="">
<a:box id="" column="3" style="width:100%">
<a:textField name="room_type" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋面积"/>
<a:textField name="bed_free" bindtarget="RENT100_room_info_search_result_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_search_result_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_search_result_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:textField name="room_addr_country" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋地址:国家"/>
<a:textField name="room_addr_province" bindtarget="RENT100_room_info_search_result_ds" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="RENT100_room_info_search_result_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_search_result_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_search_result_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_search_result_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_search_result_ds" prompt="备注"/>
</a:box>
<!--<a:screenTopToolbar>-->
<!--<a:toolbarButton click="RENT100_saveRoomInfo" text="保存" width="80"/>-->
<!--</a:screenTopToolbar>-->
</a:form>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<a:link id="pageLink_create_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_editor.screen"/>
<a:link id="pageLink_alter_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info.screen"/>
<script><![CDATA[
<!--grid渲染函数-->
function HLS_staff_info_result_grid_ds(value, record, name){
//debugger;
console.log("33");
if(!record.isNew)
{
var personnel_no = record.get('personnel_no');
var perNo = '<a href="javascript:winOpen_edit_user(\'' + personnel_no + '\');">'+personnel_no+'</a>'
if(name=='personnel_no')
{
return perNo;
}
}
return '';
}
<!--显示入住人员信息-->
function winOpen_edit_user(personnel_no){
new Aurora.Window({
id:'hls_hrms_hsm_staff_info',
url:$('pageLink_alter_user').getUrl(),
params:{
personnel_no:personnel_no
},
title:'${l:查看用户}',
height:500,
width:1000
});
}
<!--查询按钮-->
function HLS_staff_infoSearch(){
console.log('1');
$('HLS_staff_info_input').query();
}
<!--比较日期-->
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
<!--判断日期是否有效-->
function validate_date(record, name, value){
console.log('panduan');
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
console.log('start_date有了');
var end_date = record.get('creation_date_to');
console.log('end_date有了');
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds1" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds1" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds1" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员状态-->
<a:dataSet id="HLS_status_Ds1" lookupCode="HLS_STAFF_STATUS"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds1" autoCreate="true">
<a:fields>
<a:field name="staff_no" />
<a:field name="name" />
<a:field name="gender_code" />
<a:field name="gender" displayField="code_value_name" options="HLS_gender_Ds1" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" displayField="code_value_name" options="HLS_dept_Ds1" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" displayField="code_value_name" options="HLS_base_Ds1" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" validator="validate_telNumber"/>
<a:field name="creation_date_from"/>
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="people_status_code" />
<a:field name="people_status" displayField="code_value_name" options="HLS_status_Ds1" returnField="people_status_code" valueField="code_value_name"/>
</a:fields>
<!-- <a:events>
<a:event name="submitsuccess" handler="GLD5010_headerSubmitSuccess"/>
</a:events>-->
</a:dataSet>
<a:dataSet id="HLS_staff_info_input" autoQuery="true" model="hls_rent.RENT200.hls_staff_info_search" queryDataSet="HLS_staff_info_input_ds1" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="查询条件">
<a:screenTopToolbar>
<a:toolbarButton click="HLS_staff_infoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
<a:box id="" column="3" style="width:100%">
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds1" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds1" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds1" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds1" prompt="联系电话"/>
<a:datePicker name="creation_date_from" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期从"/>
<a:datePicker name="creation_date_to" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期到"/>
<a:comboBox name="people_status" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员状态"/>
</a:box>
</a:form>
<a:grid id="HLS_staff_info_result_grid" bindTarget="HLS_staff_info_input" marginHeight="121" marginWidth="45" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="grid_delete_user" text="删除" width="80" iconAlign="left"/>-->
<!--<a:button click="winOpen_create_user" text="新增" width="80" iconAlign="left"/>-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="personnel_no" editor="" prompt="入住人员编号" renderer="HLS_staff_info_result_grid_ds" width="100" />
<a:column name="staff_no" editor="" prompt="入住人员工号" width="100" />
<a:column name="name" editor="" prompt="入住人员姓名" width="100"/>
<a:column name="gender" editor="" prompt="性别" width="100"/>
<a:column name="department" editor="" prompt="所在部门" width="80"/>
<a:column name="base_in" editor="" prompt="base地" width="80"/>
<a:column name="phone_number" editor="" prompt="联系电话" width="80"/>
<a:column name="email" editor="" prompt="邮箱地址" width="80"/>
<a:column name="message" editor="" prompt="备注" width="120"/>
<!--<a:column name="creation_date" editor="" prompt="创建日期" width="120"/>-->
<a:column name="created_date" editor="" prompt="创建的日期" width="120"/>
<a:column name="people_status" editor="" prompt="入住人员状态" width="80"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="personnel_no=${/parameter/@personnel_no}" model="hls_rent.RENT200.hls_staff_info_search" rootPath="alter_model"/>
</a:init-procedure>
<a:view>
<script><![CDATA[
<!--页面关闭-->
function alterScreen_close(){
$('hls_hrms_hsm_staff_info').close();
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_staff_info_input_ds" model="hls_rent.RENT200.hls_staff_info_search" autoCreate="true">
<a:datas dataSource="/model/alter_model"/>
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" readOnly="true"/>
<a:field name="name" readOnly="true"/>
<a:field name="gender_code" readOnly="true"/>
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds1" returnField="gender_code" valueField="code_value_name"/>
<a:field name="department_code" readOnly="true"/>
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds1" returnField="department_code" valueField="code_value_name"/>
<a:field name="base_in_code" readOnly="true"/>
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds1" returnField="base_in_code" valueField="code_value_name"/>
<a:field name="phone_number" readOnly="true"/>
<a:field name="email" readOnly="true"/>
<a:field name="message" readOnly="true"/>
</a:fields>
<!-- <a:events>
<a:event name="submitsuccess" handler="GLD5010_headerSubmitSuccess"/>
</a:events> -->
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form style="width:100%" title="入住人员信息:${/parameter/@personnel_no}">
<a:box column="3" style="width:100%">
<a:textField name="personnel_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindTarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindTarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="alterScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="personnel_no=${/parameter/@personnel_no}" model="hls_rent.RENT200.hls_staff_info_search" rootPath="alter_model"/>
</a:init-procedure>
<a:view>
<script><![CDATA[
<!--修改页面关闭-->
function alterScreen_close() {
$('hls_hrms_hsm_staff_info_alter').close();
}
<!--修改按钮-->
function updateDs_alter(){
//debugger;
var personnel_no = '${/parameter/@personnel_no}';
console.log(personnel_no);
$('HLS_staff_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT200.hls_staff_info_search/batch_update"+'?personnel_no='+personnel_no);
$('HLS_staff_info_input_ds').submit();
}
<!--修改成功后处理-->
function onSubmitSuccess_alterDs(dataSet, datas, res){
HLS_staff_infoSearch();
alterScreen_close();
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds" model="hls_rent.RENT200.hls_staff_info_search" autoCreate="true">
<a:datas dataSource="/model/alter_model"/>
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" required="true"/>
<a:field name="name" required="true"/>
<a:field name="gender_code" />
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" validator="validate_telNumber"/>
<a:field name="email"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_alterDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form style="width:100%" title="入住人员信息:${/parameter/@personnel_no}">
<a:box column="3" style="width:100%">
<a:textField name="personnel_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindTarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindTarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="updateDs_alter" text="修改" width="80"/>
<a:toolbarButton click="alterScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<script><![CDATA[
<!--页面关闭-->
function createScreen_close(){
$('hls_hrms_hsm_staff_info_editor').close();
}
<!--页面保存-->
function createDs_save() {
console.log("hello");
//数据提交
$('HLS_staff_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT200.hls_staff_info_search/batch_update");
$('HLS_staff_info_input_ds').submit();
}
<!--新增成功后处理-->
function onSubmitSuccess_createDs(dataSet, datas, res){
HLS_staff_infoSearch();
createScreen_close();
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds" autoCreate="true">
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" required="true"/>
<!--<a:field name="name" required="true"/>-->
<a:field name="name" required="true"/>
<a:field name="gender_code" />
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" required="true" validator="validate_telNumber"/>
<a:field name="email" required="true"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_createDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="入住人员信息">
<a:box id="" column="3" style="width:100%">
<a:textField name="personnel_no" bindtarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindtarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindtarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindtarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindtarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindtarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindtarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindtarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindtarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="createDs_save" text="保存" width="80"/>
<a:toolbarButton click="createScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" baseTable="hls_hsm" alias="h" >
<bm:fields>
<bm:field name="people_id" databaseType="NUMBER" datatype="java.lang.Long"/>
<bm:field name="personnel_no" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="staff_no" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="gender" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="department" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="base_in" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="phone_number" databaseType="VARCHAR2" datatype="java.lang.String"/>
<!--<bm:field name="creation_date" databaseType="VARCHAR2" datatype="java.lang.String"/>-->
<bm:field name="people_status" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="email" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="message" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="created_date" datatype="java.lang.String" prompt="HLS_ROOM_INFO.CREATION_DATE"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="people_id"/>
</bm:primary-key>
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
hls_rent_pkg.insert_people_info(
p_staff_no => ${@staff_no},
p_name => ${@name},
p_gender => ${@gender_code},
p_department => ${@department_code},
p_base_in => ${@base_in_code},
p_phone_number => ${@phone_number},
p_email => ${@email},
p_message => ${@message}
);
end;]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_rent_pkg.update_people_info(
p_personnel_no => ${@personnel_no},
p_staff_no => ${@staff_no},
p_name => ${@name},
p_gender => ${@gender_code},
p_department => ${@department_code},
p_base_in => ${@base_in_code},
p_phone_number => ${@phone_number},
p_email => ${@email},
p_message => ${@message}
);
end;]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT people_id,personnel_no,
staff_no,
name,
(sys_code_pkg.get_sys_code_value_name('HLS211_GENDER', gender)) gender,
(sys_code_pkg.get_sys_code_value_name('HLS_DEPT_TYPE', department)) department,
(sys_code_pkg.get_sys_code_value_name('HLS_BASE_TYPE', base_in)) base_in,
phone_number,
(sys_code_pkg.get_sys_code_value_name('HLS_STAFF_STATUS', people_status)) people_status,
email,
message,
contract_no ,
leaving_date,
live_start_date,
created_by,
last_updated_by,
last_update_date,
to_char(creation_date, 'yyyy-mm-dd') created_date
FROM hls_hsm #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="staff_no" queryExpression="staff_no = ${@staff_no}"/>
<bm:query-field name="name" queryExpression="name = ${@name}"/>
<bm:query-field name="gender" queryExpression="gender = ${@gender_code}"/>
<bm:query-field name="department" queryExpression="department = ${@department_code}"/>
<bm:query-field name="base_in" queryExpression="base_in = ${@base_in_code}"/>
<bm:query-field name="phone_number" queryExpression="phone_number = ${@phone_number}"/>
<bm:query-field name="creation_date_from" queryExpression="to_char(creation_date, 'yyyy-mm-dd') >= ${@creation_date_from}"/>
<bm:query-field name="creation_date_to" queryExpression=" ${@creation_date_to} >= to_char(creation_date, 'yyyy-mm-dd')"/>
<bm:query-field name="people_status" queryExpression="people_status = ${@people_status_code}"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" baseTable="hls_room_info" alias="hi">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT * FROM (
SELECT hci.h_contract_number contract_no,
hri.room_abbr room_abbr,
hri.room_type room_type,
hri.landlord_name landlord_name,
nvl(sum(hfd.apportion_rental), 0) -
nvl((select hvt.credit_item_rent
from hls_verification_tab hvt
where hvt.source_object = hfd.staff_no
and hvt.receipt_no = hrf.receipt_no),
0) apportion_rental,
nvl(sum(hfd.apportion_water), 0) -
nvl((select hvt.credit_item_water
from hls_verification_tab hvt
where hvt.source_object = hfd.staff_no
and hvt.receipt_no = hrf.receipt_no),
0) apportion_water,
nvl(sum(hfd.apportion_electric), 0) -
nvl((select hvt.credit_item_electric
from hls_verification_tab hvt
where hvt.source_object = hfd.staff_no
and hvt.receipt_no = hrf.receipt_no),
0) apportion_electric,
nvl(sum(hfd.apportion_network), 0) -
nvl((select hvt.credit_item_network
from hls_verification_tab hvt
where hvt.source_object = hfd.staff_no
and hvt.receipt_no = hrf.receipt_no),
0) apportion_network,
nvl(sum(hfd.apportion_cable), 0) -
nvl((select hvt.credit_item_cable
from hls_verification_tab hvt
where hvt.source_object = hfd.staff_no
and hvt.receipt_no = hrf.receipt_no),
0) apportion_cable,
hfd.staff_no staff_no,
hrf.receipt_no receipt_no,
hrf.receipt_sources receipt_sources,
hrf.message message
FROM hls_hsm hh,
hls_room_info hri,
hls_contract_info hci,
hls_rent_receipt_fee hrf,
hls_fee_detail hfd
WHERE hri.room_id = hci.room_id
AND hci.h_contract_number = hh.contract_no
AND hh.staff_no = hrf.receipt_objects
AND hrf.receipt_objects = hfd.staff_no
AND hfd.staff_no = ${@staff_no}
AND hrf.receipt_no = ${@receipt_no}
GROUP BY hci.h_contract_number,
hri.room_abbr,
hri.landlord_name,
hri.room_type,
hfd.staff_no,
hrf.receipt_no,
hrf.receipt_sources,
hrf.message)
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="contract_no" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="true" forQuery="false" physicalName="H_CONTRACT_NUMBER" prompt="合同编号"/>
<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="false" forQuery="true" physicalName="ROOM_ABBR" prompt="房屋简称"/>
<bm:field name="room_type" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="ROOM_TYPE" prompt="房屋类型"/>
<bm:field name="landlord_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="LANDLORD_NAME" prompt="房东姓名"/>
<bm:field name="apportion_rental" datatype="java.lang.String"/>
<bm:field name="apportion_water" datatype="java.lang.String"/>
<bm:field name="apportion_electric" datatype="java.lang.String"/>
<bm:field name="apportion_network" datatype="java.lang.String"/>
<bm:field name="apportion_cable" datatype="java.lang.String"/>
<bm:field name="staff_no" datatype="java.lang.String"/>
<bm:field name="receipt_no" datatype="java.lang.String"/>
<bm:field name="receipt_sources" datatype="java.lang.String"/>
<bm:field name="message" datatype="java.lang.String"/>
</bm:fields>
<bm:query-fields>
<bm:query-field field="room_abbr" queryExpression="hi.room_abbr like &apos;%&apos; || ${@room_abbr} || &apos;%&apos;"/>
<bm:query-field field="landlord_name" queryOperator="="/>
<bm:query-field field="room_type" queryOperator="="/>
</bm:query-fields>
</bm:model>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm">
<bm:fields>
<bm:field name="verification_rental" datatype="java.lang.Long"/>
<bm:field name="verification_water" datatype="java.lang.Long"/>
<bm:field name="verification_electric" datatype="java.lang.Long"/>
<bm:field name="verification_network" datatype="java.lang.Long"/>
<bm:field name="verification_cable" datatype="java.lang.Long"/>
<bm:field name="staff_no" datatype="java.lang.String"/>
<bm:field name="receipt_no" datatype="java.lang.String"/>
<bm:field name="receipt_sources" datatype="java.lang.String"/>
<bm:field name="message" datatype="java.lang.String"/>
<bm:field name="contract_no" datatype="java.lang.String"/>
</bm:fields>
<bm:features>
<f:standard-who/>
</bm:features>
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
BEGIN
hls_rent_pkg.verification_insert(p_contract_no => ${@contract_no} ,
p_receipt_no => ${@receipt_no} ,
p_staff_no => ${@staff_no} ,
p_verification_rental => ${@verification_rental} ,
p_verification_water => ${@verification_water},
p_verification_electric => ${@verification_electric},
p_verification_network => ${@verification_network} ,
p_verification_cable => ${@verification_cable} ,
p_receipt_sources => ${@receipt_sources} ,
p_message => ${@message});
END;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm" baseTable="hls_rent_fee_info">
<bm:fields>
<bm:field name="fee_no" datatype="java.lang.String"/>
<bm:field name="fee_add_date" datatype="java.util.Date"/>
<bm:field name="fee_first_date" datatype="java.util.Date"/>
<bm:field name="fee_last_date" datatype="java.util.Date"/>
<bm:field name="fee_items" datatype="java.lang.String"/>
<bm:field name="fee_sources" datatype="java.lang.String"/>
<bm:field name="fee_objects" datatype="java.lang.String"/>
<bm:field name="fee_amounts" datatype="java.lang.String"/>
<bm:field name="fee_currency" datatype="java.lang.String"/>
<bm:field name="message" datatype="java.lang.String"/>
</bm:fields>
<bm:features>
<f:standard-who/>
</bm:features>
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
hls_rent_pkg.insert_rent_fee_info(
p_fee_no =>${@fee_no},
p_fee_add_date =>to_date(${@fee_add_date}, 'yyyy-mm-dd'),
p_fee_first_date =>to_date(${@fee_first_date},'yyyy-mm-dd'),
p_fee_last_date =>to_date(${@fee_last_date},'yyyy-mm-dd'),
p_fee_items =>${@fee_items_code},
p_fee_sources =>${@fee_sources_code},
p_fee_objects =>${@fee_objects},
p_fee_amounts =>${@fee_amounts},
p_fee_currency =>${@currency_code},
p_message =>${@message} );
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:script><![CDATA[
function RENT1030_save_info(){
$('RENT1030_fee_add_ds').submit();
}
function compareDate(date1, date2){
if(date1 > date2){
return false;
}
return true;
}
function validator_date(record, name, value){
if(name == 'fee_first_date' || name == 'fee_last_date'){
var start_date = record.get('fee_first_date');
var end_date = record.get('fee_last_date');
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
function feeInfoSubmitSuccess(){
$('add_fee_info_window').close();
RENT1030_queryFeeInfo();
}
]]></a:script>
<a:dataSets>
<a:dataSet id="RENT1030_items_ds" lookupCode="HLS_FEE_ITEMS"/>
<a:dataSet id="RENT1030_sources_ds" lookupCode="HLS_FEE_SOURCES"/>
<a:dataSet id="RENT1030_currency_ds" model="hls_rent.RENT300.rent_fee_currency" loadData="true"/>
<a:dataSet id="RENT1030_fee_add_ds" model="hls_rent.RENT300.rent_fee_add" autoCreate="true">
<a:fields>
<a:field name="fee_no"/>
<a:field name="fee_objects"/>
<a:field name="fee_add_date" required="true"/>
<a:field name="fee_first_date" required="true"/>
<a:field name="fee_last_date" required="true" validator="validator_date"/>
<a:field name="fee_items" displayField="code_value_name" valueField="code_value" returnField="fee_items_code" options="RENT1030_items_ds" required="true"/>
<a:field name="fee_sources" displayField="code_value_name" valueField="code_value" returnField="fee_sources_code" options="RENT1030_sources_ds" required="true"/>
<a:field name="fee_objects_display" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_fee_objects" lovWidth="680" title="费用对象" required="true" returnField="fee_objects_code">
<a:mapping>
<a:map from="room_abbr" to="fee_objects_display"/>
<a:map from="room_id" to="fee_objects"/>
</a:mapping>
</a:field>
<a:field name="fee_amounts" required="true"/>
<a:field name="fee_currency" displayField="currency_name" options="RENT1030_currency_ds" returnField="currency_code" valueField="currency_code" required="true"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="feeInfoSubmitSuccess"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton id="back_button" click="" text="HLS.EXIT"/>
<a:gridButton id="save_button" click="RENT1030_save_info" text="HLS.SAVE"/>
</a:screenTopToolbar>
<a:form style="width:100%;border:none">
<a:box column="2" >
<a:textField name="fee_no" bindTarget="RENT1030_fee_add_ds" prompt="费用单编号" readOnly="true"/>
<a:datePicker name="fee_add_date" bindTarget="RENT1030_fee_add_ds" prompt="新增日期" />
</a:box>
<a:box column="2" >
<a:datePicker name="fee_first_date" bindTarget="RENT1030_fee_add_ds" prompt="费用开始日" />
<a:datePicker name="fee_last_date" bindTarget="RENT1030_fee_add_ds" prompt="费用结束日"/>
</a:box>
<a:box column="3" >
<a:comboBox name="fee_items" bindTarget="RENT1030_fee_add_ds" prompt="费用项目" />
<a:comboBox name="fee_sources" bindTarget="RENT1030_fee_add_ds" prompt="费用来源"/>
<a:lov name="fee_objects_display" bindTarget="RENT1030_fee_add_ds" prompt="费用对象"/>
</a:box>
<a:box column="2" >
<a:numberField name="fee_amounts" bindTarget="RENT1030_fee_add_ds" prompt="费用金额"/>
<a:comboBox name="fee_currency" bindTarget="RENT1030_fee_add_ds" prompt="币种"/>
</a:box>
<a:box column="1" >
<a:textArea name="message" bindTarget="RENT1030_fee_add_ds" prompt="备注" width="383"/>
</a:box>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" baseTable="gld_currency_vl">
<bm:fields>
<bm:field name="currency_name" datatype="java.lang.String" databaseType="VARCHAR2" physicalName="CURRENCY_NAME" prompt="币种"/>
<bm:field name="currency_code" datatype="java.lang.String" databaseType="VARCHAR2" physicalName="CURRENCY_CODE" prompt="币种"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT gv.CURRENCY_NAME, gv.CURRENCY_CODE
FROM gld_currency_vl gv
WHERE gv.CURRENCY_CODE = 'CNY'
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="add_fee_info" url="${/request/@context_path}/modules/hls_rent/RENT300/rent_fee_add.screen"/>
<script><![CDATA[
function RENT1030_addFeeInfo(){
new Aurora.Window({
id:'add_fee_info_window',
url:$('add_fee_info').getUrl(),
title:'${l:费用新增}',
height:400,
width:750
});
}
function RENT1030_queryFeeInfo(){
<!--debugger;-->
$('RENT1030_fee_info_result_ds').query();
}
function RENT1030_back(){
history.go(-1);
}
]]>
</script>
<a:dataSets>
<a:dataSet id="RENT1030_fee_items_ds" lookupCode="HLS_FEE_ITEMS" loadData="true"/>
<a:dataSet id="RENT1030_fee_sources_ds" lookupCode="HLS_FEE_SOURCES" loadData="true"/>
<a:dataSet id="RENT1030_fee_info_query_ds">
<a:fields>
<a:field name="fee_no"/>
<a:field name="fee_objects"/>
<a:field name="fee_items" displayField="code_value_name" valueField="code_value" returnField="fee_items_code" options="RENT1030_fee_items_ds"/>
<a:field name="fee_sources" displayField="code_value_name" valueField="code_value" returnField="fee_sources_code" options="RENT1030_fee_sources_ds"/>
<a:field name="fee_objects_display" lovGridHeight="320" lovHeight="480" lovService="hls_rent.RENT300.rent_fee_objects" lovWidth="600" title="费用对象">
<a:mapping>
<a:map from="room_abbr" to="fee_objects_display"/>
<a:map from="room_id" to="fee_objects"/>
</a:mapping>
</a:field>
<a:field name="date_begin"/>
<a:field name="date_end"/>
<a:field name="first_date"/>
<a:field name="last_date"/>
</a:fields>
</a:dataSet>
<a:dataSet id="RENT1030_fee_info_result_ds" queryDataSet="RENT1030_fee_info_query_ds" model="hls_rent.RENT300.rent_fee_query" autoQuery="true">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="RENT1030_back" text="HLS.BACK"/>
<a:gridButton click="RENT1030_queryFeeInfo" text="HLS.QUERY"/>
</a:screenTopToolbar>
<a:form bindTarget="RENT1030_fee_info_query_ds" style="width:100%;border:none" title="查询条件" >
<a:box id="RENT1030_fee_query_box" column="3" style="width:100%">
<a:textField name="fee_no" bindTarget="RENT1030_fee_info_query_ds" prompt="费用单编号"/>
<a:comboBox name="fee_items" bindTarget="RENT1030_fee_info_query_ds" prompt="费用项目"/>
<a:comboBox name="fee_sources" bindTarget="RENT1030_fee_info_query_ds" prompt="费用来源"/>
<a:lov name="fee_objects_display" bindTarget="RENT1030_fee_info_query_ds" prompt="费用对象"/>
<a:datePicker name="date_begin" bindTarget="RENT1030_fee_info_query_ds" prompt="新增日期从"/>
<a:datePicker name="date_end" bindTarget="RENT1030_fee_info_query_ds" prompt="新增日期到"/>
<a:datePicker name="first_date" bindTarget="RENT1030_fee_info_query_ds" prompt="费用发生日从"/>
<a:datePicker name="last_date" bindTarget="RENT1030_fee_info_query_ds" prompt="费用发生日到"/>
</a:box>
</a:form>
<a:grid id="RENT1030_fee_info_result_grid" bindTarget="RENT1030_fee_info_result_ds" marginHeight="81" marginWidth="45" navBar="true">
<a:toolBar>
<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>
</a:toolBar>
<a:columns>
<a:column name="fee_no" prompt="费用单编号" width="160" align="center"/>
<a:column name="fee_items" prompt="费用项目" width="160" align="center"/>
<a:column name="fee_sources" prompt="费用来源" width="160" align="center"/>
<a:column name="fee_objects" prompt="费用对象" width="160" align="center"/>
<a:column name="fee_first_date" prompt="费用发生日" width="160" align="center"/>
<a:column name="fee_last_date" prompt="费用结束日" width="160" align="center"/>
<a:column name="fee_amounts" prompt="费用金额" width="160" align="center"/>
<a:column name="fee_add_date" prompt="新增日期" width="160" align="center"/>
</a:columns>
<!--<a:editors>-->
<!--<a:textField id="TEST1020_voucher_audit_tf"/>-->
<!--<a:numberField id="TEST1020_voucher_audit_nf"/>-->
<!--<a:lov id="TEST1020_voucher_audit_lv"/>-->
<!--</a:editors>-->
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" baseTable="hls_room_info" alias="hi">
<bm:operations>
<bm:operation name="">
<bm:query-sql><![CDATA[
SELECT hi.room_abbr, hi.room_type, hi.landlord_name
FROM hls_room_info hi
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="room_id"/>
<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="true" forQuery="true" physicalName="ROOM_ABBR" prompt="房屋简称"/>
<bm:field name="room_type" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="ROOM_TYPE" prompt="房屋类型"/>
<bm:field name="landlord_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="LANDLORD_NAME" prompt="房东姓名"/>
</bm:fields>
<bm:query-fields>
<bm:query-field field="room_abbr" queryExpression="hi.room_abbr like &apos;%&apos; || ${@room_abbr} || &apos;%&apos;"/>
<bm:query-field field="room_type" queryOperator="="/>
<bm:query-field field="landlord_name" queryOperator="="/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="hf">
<bm:fields>
<bm:field name="fee_no" datatype="java.lang.String"/>
<bm:field name="fee_add_date" datatype="java.lang.String"/>
<bm:field name="fee_first_date" datatype="java.lang.String"/>
<bm:field name="fee_last_date" datatype="java.lang.String"/>
<bm:field name="fee_items" datatype="java.lang.String"/>
<bm:field name="fee_sources" datatype="java.lang.String"/>
<bm:field name="fee_objects" datatype="java.lang.String"/>
<bm:field name="fee_amounts" datatype="java.lang.String"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT fee_no,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS', hf.fee_items)) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_SOURCES', hf.fee_sources)) fee_sources,
(select room_abbr from hls_room_info hi where hi.room_id = fee_objects) fee_objects,
to_char(fee_first_date, 'yyyy-mm-dd') fee_first_date,
to_char(fee_last_date, 'yyyy-mm-dd') fee_last_date,
fee_amounts,
to_char(fee_add_date, 'yyyy-mm-dd') fee_add_date
FROM hls_rent_fee_info hf
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field field="fee_no" queryOperator="="/>
<bm:query-field field="fee_items" queryExpression="fee_items = ${@fee_items_code}"/>
<bm:query-field field="fee_sources" queryExpression="fee_sources = ${@fee_sources_code}"/>
<bm:query-field field="fee_objects" queryExpression="fee_objects = ${@fee_objects}"/>
<bm:query-field name="date_begin" queryExpression="hf.fee_add_date &gt;= to_date(${@date_begin},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="date_end" queryExpression="hf.fee_add_date &lt;= to_date(${@date_end},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="first_date" queryExpression="hf.fee_first_date &gt;= to_date(${@first_date},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="last_date" queryExpression="hf.fee_first_date &lt;= to_date(${@last_date},&apos;yyyy-mm-dd&apos;)"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm">
<bm:fields>
<bm:field name="receipt_no" datatype="java.lang.String"/>
<bm:field name="receipt_date" datatype="java.lang.String"/>
<bm:field name="receipt_ways" datatype="java.lang.String"/>
<bm:field name="receipt_objects" datatype="java.lang.String"/>
<bm:field name="receipt_amounts" datatype="java.lang.String"/>
<bm:field name="verification_amounts_y" datatype="java.lang.String"/>
<bm:field name="verification_amounts_n" datatype="java.lang.String"/>
<bm:field name="message"/>
</bm:fields>
<bm:features>
<f:standard-who/>
</bm:features>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT hrf.receipt_no,
to_char(hrf.receipt_date, 'yyyy-mm-dd') receipt_date,
(sys_code_pkg.get_sys_code_value_name('HLS_RECEIPT_WAY',
hrf.receipt_ways)) receipt_ways,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hrf.receipt_objects) receipt_objects,
hrf.receipt_amounts receipt_amounts,
nvl(hrf.verification_amounts, 0) verification_amounts_y,
(hrf.receipt_amounts - nvl(hrf.verification_amounts, 0)) verification_amounts_n,
hrf.message,
hrf.receipt_objects,
hrf.receipt_sources
FROM hls_rent_receipt_fee hrf
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="source_object" queryExpression="hrf.receipt_objects = ${@source_object}"/>
<bm:query-field name="source_type" queryExpression="hrf.receipt_sources = ${@source_type}"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
//收款方式改变触发函数
function onReceiptWayUpdate(ds,record,name,value,oldvalue){
if(name == 'receipt_sources_code'){
console.log(name);
console.log(value);
//console.log($('RENT1030_receipt_sources_objects').getValue() );
}
}
//保存
function saveReceiptFee() {
//数据提交
$('RENT1030_manual_receipt_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT300.rent_receipt_fee/batch_update");
$('RENT1030_manual_receipt_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_saveReceiptFee(){
history.go(0);
// $('RENT1030_manual_receipt_ds').reset();
}
//保存确认框
function payment_enquiry_save(){
var ds = $('RENT1030_manual_receipt_ds');
if (!ds.validate()) {
return;
}
Aurora.showConfirm('保存', '是否确认保存?', saveReceiptFee, null, 200, 100 );
}
//暂时没有用到此函数
function changeValue(comboBox, newValue, oldValue){
//debugger;
var objectVal = $('RENT1030_manual_receipt_ds').getCurrentRecord().getMeta().getField('receipt_objects_display');
if(newValue == '入住人员'){
objectVal.setRequired(true);
objectVal.setReadOnly(false);
}else{
objectVal.setRequired(false);
objectVal.setReadOnly(true);
}
}
]]></script>
<a:dataSets>
<!--收款方式-->
<!--<a:dataSet id="RENT1030_receipt_ways_ds" lookupCode="HLS_RECEIPT_WAY"/>-->
<!--收款来源-->
<!--<a:dataSet id="RENT1030_receipt_sources_ds" lookupCode="HLS_SOURCE_TYPE"/>-->
<!--币种类型-->
<a:dataSet id="RENT1030_currency_ds" model="hls_rent.RENT300.rent_fee_currency" loadData="true"/>
<a:dataSet id="RENT1030_manual_receipt_ds" autoCreate="true" model="hls_rent.RENT300.rent_receipt_fee">
<a:fields>
<a:field name="receipt_objects" required="true"/>
<a:field name="receipt_objects_display" required="true" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<a:mapping>
<a:map from="name" to="receipt_objects_display"/>
<a:map from="staff_no" to="receipt_objects"/>
</a:mapping>
</a:field>
<!--<a:field name="receipt_no"/>-->
<a:field name="receipt_date" required="true" />
<a:field name="receipt_ways" required="true" displayField="code_value_name" valueField="code_value" returnField="receipt_ways_code" options="RENT1030_receipt_ways_ds"/>
<a:field name="receipt_sources" required="true" displayField="code_value_name" valueField="code_value" returnField="receipt_sources_code" options="RENT1030_receipt_sources_ds"/>
<a:field name="receipt_amounts" required="true" />
<a:field name="currency" required="true" displayField="currency_name" options="RENT1030_currency_ds" returnField="fee_currency_code" valueField="currency_code" />
<a:field name="message" />
</a:fields>
<a:events>
<a:event name="update" handler="onReceiptWayUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_saveReceiptFee"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="RENT1030_manual_receipt_ds_form" style="width:100%;border:none" bindTarget="RENT1030_manual_receipt_ds" title ="收款新增">
<a:box column="3" >
<!--<a:textField name="receipt_no" bindTarget="RENT1030_manual_receipt_ds" prompt="收款编号" readOnly="true"/>-->
<a:datePicker name="receipt_date" bindTarget="RENT1030_manual_receipt_ds" prompt="收款日期"/>
<a:comboBox name="receipt_ways" bindTarget="RENT1030_manual_receipt_ds" prompt="收款方式"/>
</a:box>
<a:box id="RENT1030_receipt_sources_objects" column="2">
<a:comboBox name="receipt_sources" bindTarget="RENT1030_manual_receipt_ds" prompt="收款来源">
<!--<a:events>-->
<!--<a:event name="change" handler="changeValue"/>-->
<!--</a:events>-->
</a:comboBox>
<a:lov name="receipt_objects_display" bindTarget="RENT1030_manual_receipt_ds" prompt="收款对象"/>
</a:box>
<a:box column="2">
<a:numberField name="receipt_amounts" allowNegative="false" bindTarget="RENT1030_manual_receipt_ds" prompt="收款金额"/>
<a:comboBox name="currency" bindTarget="RENT1030_manual_receipt_ds" prompt="币种"/>
</a:box>
<a:box column="1">
<a:textArea name="message" bindTarget="RENT1030_manual_receipt_ds" prompt="备注" width="383"/>
</a:box>
<a:screenTopToolbar>
<a:gridButton id="csh511_receipt_save_id" click="payment_enquiry_save" text="HLS.SAVE"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_manual_verification_edit" url="${/request/@context_path}/modules/hls_rent/RENT300/manual_verification.screen"/>
<script><![CDATA[
function Warning(receipt_no) {
Aurora.showInfoMessage('警告','未核销金额不足!',null,300,100);
}
function RENT_manual_verification_grid(value, record, name){
<!--if(!record.isNew)-->
<!--{-->
<!--var receipt_no = record.get('receipt_no');-->
<!--var rlt = '<a href="javascript:RENT100_verificationInfoEdit(\'' + receipt_no + '\');">'+receipt_no+'</a>'-->
<!--if(name=='receipt_no')-->
<!--{-->
<!--return rlt;-->
<!--}-->
<!--}-->
<!--return '';-->
var receipt_no = value;
var verification_amounts_n = record.get('verification_amounts_n');
var rlt = '<a href="javascript:RENT100_verificationInfoEdit(\'' + receipt_no + '\');">'+receipt_no+'</a>'
if (verification_amounts_n > 0) {
return rlt;
} else {
return '<a href="javascript:Warning(\'' + receipt_no + '\');">'+receipt_no+'</a>'
}
}
function RENT100_verificationInfoEdit(receipt_no){
<!--debugger;-->
<!--var record_result = $('RENT1030_manual_result_ds').getCurrentRecord();-->
<!--var record_query = $('RENT1030_manual_query_ds').getCurrentRecord();-->
<!--var verification_amounts_n = record_result.get('verification_amounts_n');-->
<!--if(verification_amounts_n > 0){-->
new Aurora.Window({
id:'verification_result_window',
url:$('pageLink_manual_verification_edit').getUrl(),
params:{
receipt_no:receipt_no
<!--record_result:record_result,-->
<!--record_query:record_query-->
},
title:'手工核销',
height:500,
width:1030
});
<!--}else{-->
<!--//Aurora.showConfirm('警告','未核销金额不足',null,null,300,100);-->
<!--Aurora.showInfoMessage('警告','未核销金额不足!',null,300,100);-->
<!--}-->
}
function verificationQuery(){
$('RENT1030_manual_result_ds').query();
}
function changeValue(radio, newValue, oldValue){
<!--debugger;-->
var objectVal = $('RENT1030_manual_query_ds').getCurrentRecord().getMeta().getField('source_object_display');
if(newValue == 'room_people'){
objectVal.setRequired(true);
objectVal.setReadOnly(false);
}else{
<!--debugger;-->
objectVal.setRequired(false);
objectVal.setReadOnly(true);
var sourceObject = $('RENT1030_manual_query_ds').data[0].get('source_object_display');
var source_type = $('RENT1030_manual_query_ds').getCurrentRecord().get('source_type');
console.log(source_type);
if(sourceObject != null){
$('RENT1030_manual_query_ds').reset();
}
}
}
]]></script>
<a:dataSets>
<a:dataSet id="RENT1030_source_type_ds" lookupCode="HLS_SOURCE_TYPE"/>
<a:dataSet id="RENT1030_currency_ds" model="hls_rent.RENT300.rent_fee_currency" loadData="true"/>
<a:dataSet id="RENT1030_manual_query_ds" >
<a:fields>
<a:field name="source_type" displayField="code_value_name" valueField="code_value" returnField="source_code" options="RENT1030_source_type_ds" required="true"/>
<a:field name="verification_date"/>
<a:field name="source_object"/>
<a:field name="source_object_display" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象" readOnly="true">
<a:mapping>
<a:map from="name" to="source_object_display"/>
<a:map from="staff_no" to="source_object"/>
</a:mapping>
</a:field>
<a:field name="currency" displayField="currency_name" options="RENT1030_currency_ds" returnField="currency_code" valueField="currency_code" defaultValue="人民币"/>
<a:field name="verification_no"/>
</a:fields>
</a:dataSet>
<a:dataSet id="RENT1030_manual_result_ds" queryDataSet="RENT1030_manual_query_ds" model="hls_rent.RENT300.rent_manual_query">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form title="收款核销来源选择" style="width:100%; border:none">
<a:button text="确认" click="verificationQuery"/>
<a:box column="1" style="width:100%">
<a:radio name="source_type" prompt="收款来源于" bindTarget="RENT1030_manual_query_ds">
<a:items>
<a:item label="入住人员" value="room_people"/>
<a:item label="其他" value="others"/>
</a:items>
<a:events>
<a:event name="change" handler="changeValue"/>
</a:events>
</a:radio>
</a:box>
<a:box column="4" style="width:100%">
<a:datePicker name="verification_date" prompt="核销日期" bindTarget="RENT1030_manual_query_ds"/>
<a:lov name="source_object_display" prompt="来源对象" bindTarget="RENT1030_manual_query_ds"/>
<a:comboBox name="currency" prompt="核销币种" bindTarget="RENT1030_manual_query_ds"/>
<a:textField name="verification_no" readOnly="true" prompt="核销编号" bindTarget="RENT1030_manual_query_ds"/>
</a:box>
</a:form>
<a:grid bindTarget="RENT1030_manual_result_ds" navBar="true" marginHeight="81" marginWidth="45" >
<a:columns>
<a:column name="receipt_no" prompt="收款编号" renderer="RENT_manual_verification_grid" width="160" align="center"/>
<a:column name="receipt_date" prompt="收款日期" width="160" align="center"/>
<a:column name="receipt_ways" prompt="收款方式" width="160" align="center"/>
<a:column name="receipt_objects" prompt="收款对象" width="160" align="center"/>
<a:column name="receipt_amounts" prompt="收款金额" width="160" align="center"/>
<a:column name="verification_amounts_y" prompt="已核销金额" width="160" align="center"/>
<a:column name="verification_amounts_n" prompt="未核销金额" width="160" align="center"/>
<a:column name="message" prompt="备注" width="160" align="center"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm">
<bm:fields>
<bm:field name="receipt_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_NO" prompt="收款编号"/>
<bm:field name="receipt_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ABBR" prompt="收款日期"/>
<bm:field name="receipt_sources" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_TYPE" prompt="收款来源"/>
<bm:field name="receipt_objects" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_AREA" prompt="收款对象"/>
<bm:field name="receipt_ways" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BED" prompt="收款方式"/>
<bm:field name="receipt_amounts" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BED_USED" prompt="收款金额"/>
<bm:field name="verification_amounts" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BED_FREE" prompt="H核销金额"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_NAME" prompt="币种"/>
<bm:field name="message" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_TEL" prompt="备注"/>
</bm:fields>
<bm:features>
<f:standard-who/>
</bm:features>
<bm:operations>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
hls_rent_pkg.insert_receipt_fee(
p_receipt_objects => ${@receipt_objects},
p_receipt_date => to_date(${@receipt_date}, 'yyyy-mm-dd'),
p_receipt_ways => ${@receipt_ways_code},
p_receipt_sources => ${@receipt_sources_code},
p_receipt_amounts => ${@receipt_amounts},
p_currency => ${@fee_currency_code},
p_message => ${@message}) ;
end;]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:update-sql><![CDATA[
select
receipt_no,
to_char(receipt_date,'yyyy-mm-dd') receipt_date,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE', receipt_sources)) receipt_sources,
receipt_objects,
(sys_code_pkg.get_sys_code_value_name('HLS_RECEIPT_WAY', receipt_ways)) receipt_ways,
receipt_amounts,
verification_amounts,
(select gv.currency_name from gld_currency_vl gv where gv.currency_code = currency) currency,
message
from hls_rent_receipt_fee
#WHERE_CLAUSE#
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="receipt_ways" queryExpression="receipt_ways = ${@receipt_ways_code}"/>
<bm:query-field name="receipt_objects" queryExpression="receipt_objects = ${@receipt_objects}"/>
<bm:query-field name="receipt_sources" queryExpression="receipt_sources = ${@receipt_sources_code}"/>
<bm:query-field name="receipt_no" queryExpression="receipt_no = ${@receipt_no}"/>
<bm:query-field name="receipt_date_begin" queryExpression="to_char(receipt_date, 'yyyy-mm-dd') >= ${@receipt_date_begin}"/>
<bm:query-field name="receipt_date_end" queryExpression=" ${@receipt_date_end} >= to_char(receipt_date, 'yyyy-mm-dd')"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_manual_receipt_add" url="${/request/@context_path}/modules/hls_rent/RENT300/rent_manual_receipt.screen"/>
<script><![CDATA[
//查询按钮
function receiptFeeSearch(){
$('RENT1030_receipt_result_ds').query();
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
//debugger;
//console.log(name);
if(name == 'receipt_date_begin' || name == 'receipt_date_end'){
var start_date = record.get('receipt_date_begin');
//console.log(start_date);
var end_date = record.get('receipt_date_end');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
//手工收款新增
function manualReceiptAdd(){
new Aurora.Window({
id:'manual_receipt_add_window',
url:$('pageLink_manual_receipt_add').getUrl(),
title:'新增房屋信息',
height:400,
width:800
})
}
function RENT1030_back(){
history.go(-1);
}
]]></script>
<a:dataSets>
<!--收款来源-->
<a:dataSet id="RENT1030_receipt_sources_ds" lookupCode="HLS_SOURCE_TYPE"/>
<!--收款方式-->
<a:dataSet id="RENT1030_receipt_ways_ds" lookupCode="HLS_RECEIPT_WAY"/>
<!--查询集-->
<a:dataSet id="RENT1030_receipt_query_ds">
<a:fields>
<a:field name="receipt_no"/>
<a:field name="receipt_sources" displayField="code_value_name" valueField="code_value" returnField="receipt_sources_code" options="RENT1030_receipt_sources_ds"/>
<a:field name="receipt_objects" />
<a:field name="receipt_objects_display" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<a:mapping>
<a:map from="name" to="receipt_objects_display"/>
<a:map from="staff_no" to="receipt_objects"/>
</a:mapping>
</a:field>
<a:field name="receipt_ways" displayField="code_value_name" valueField="code_value" returnField="receipt_ways_code" options="RENT1030_receipt_ways_ds"/>
<a:field name="receipt_date_begin"/>
<a:field name="receipt_date_end" validator="validate_date"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="RENT1030_receipt_result_ds" autoQuery="true" model="hls_rent.RENT300.rent_receipt_fee" queryDataSet="RENT1030_receipt_query_ds"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:toolbarButton click="RENT1030_back" text="HLS.BACK"/>
<a:toolbarButton click="receiptFeeSearch" text="HLS.QUERY"/>
</a:screenTopToolbar>
<a:form bindTarget="RENT1030_receipt_query_ds" style="width:100%;border:none" title="查询条件" >
<a:box id="RENT1030_receipt_query_box" column="3" style="width:100%">
<a:textField name="receipt_no" bindTarget="RENT1030_receipt_query_ds" prompt="收款编号"/>
<a:comboBox name="receipt_sources" bindTarget="RENT1030_receipt_query_ds" prompt="收款来源"/>
<a:lov name="receipt_objects_display" bindTarget="RENT1030_receipt_query_ds" prompt="收款对象"/>
<a:comboBox name="receipt_ways" bindTarget="RENT1030_receipt_query_ds" prompt="收款方式"/>
<a:datePicker name="receipt_date_begin" bindTarget="RENT1030_receipt_query_ds" prompt="收款日期从"/>
<a:datePicker name="receipt_date_end" bindTarget="RENT1030_receipt_query_ds" prompt="收款日期到"/>
</a:box>
</a:form>
<a:grid id="" bindTarget="RENT1030_receipt_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>-->
<!--<a:button text="删除" type="delete"/>-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="receipt_no" align="center" prompt="收款编号" width="160" />
<a:column name="receipt_date" align="center" prompt="收款日期" width="130"/>
<a:column name="receipt_sources" align="center" prompt="收款来源" width="130"/>
<a:column name="receipt_objects" align="center" prompt="收款对象" width="130"/>
<a:column name="receipt_ways" align="center" prompt="收款方式" width="130"/>
<a:column name="receipt_amounts" align="center" prompt="收款金额" width="130"/>
<a:column name="verification_amounts" align="center" prompt="核销金额" width="130"/>
<a:column name="currency" align="center" prompt="币种" width="130"/>
<a:column name="message" prompt="备注" width="180" align="center"/>
</a:columns>
<a:toolBar>
<a:button click="manualReceiptAdd" text="新增" iconAlign="right" width="80" />
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
function RENT1030_verification_query(){
<!--debugger;-->
$('RENT1030_verification_result_ds').query();
}
function RENT1030_back(){
history.go(-1);
}
]]></script>
<a:dataSets>
<a:dataSet id="RENT1030_creditor_project_ds" lookupCode="HLS_FEE_ITEMS"/>
<a:dataSet id="RENT1030_source_type_ds" lookupCode="HLS_SOURCE_TYPE"/>
<a:dataSet id="RENT1030_verification_query_ds" >
<a:fields>
<a:field name="verification_no"/>
<a:field name="contract_no"/>
<a:field name="fee_items" displayField="code_value_name" valueField="code_value" returnField="fee_items_code" options="RENT1030_creditor_project_ds"/>
<a:field name="verification_start_date"/>
<a:field name="verification_end_date"/>
<a:field name="source_type" displayField="code_value_name" valueField="code_value" returnField="source_type_code" options="RENT1030_source_type_ds"/>
<a:field name="source_object_name" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<a:mapping>
<a:map from="name" to="source_object_name"/>
<a:map from="staff_no" to="source_object"/>
</a:mapping>
</a:field>
<a:field name="source_object"/>
</a:fields>
</a:dataSet>
<a:dataSet id="RENT1030_verification_result_ds" model="hls_rent.RENT300.rent_ver_search" autoQuery="true" queryDataSet="RENT1030_verification_query_ds">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="RENT1030_back" text="HLS.BACK"/>
<a:gridButton click="RENT1030_verification_query" text="HLS.QUERY"/>
</a:screenTopToolbar>
<a:form bindTarget="RENT1030_verification_query_ds" style="width:100%;border:none" title="查询条件" >
<a:box id="RENT1030_verification_query_box" column="3" style="width:100%">
<a:textField name="verification_no" bindTarget="RENT1030_verification_query_ds" prompt="核销编号"/>
<a:textField name="contract_no" bindTarget="RENT1030_verification_query_ds" prompt="合同编号"/>
<a:comboBox name="fee_items" bindTarget="RENT1030_verification_query_ds" prompt="债权项"/>
<a:datePicker name="verification_start_date" bindTarget="RENT1030_verification_query_ds" prompt="核销日期从"/>
<a:datePicker name="verification_end_date" bindTarget="RENT1030_verification_query_ds" prompt="核销日期到"/>
<a:comboBox name="source_type" bindTarget="RENT1030_verification_query_ds" prompt="来源类别"/>
<a:lov name="source_object_name" bindTarget="RENT1030_verification_query_ds" prompt="来源对象"/>
</a:box>
</a:form>
<a:grid id="RENT1030_verification_grid" bindTarget="RENT1030_verification_result_ds" marginHeight="80" marginWidth="45" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>-->
<!--<a:button text="删除" type="delete"/>-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="verification_no" prompt="核销编号" width="160" align="center"/>
<a:column name="verification_date" prompt="核销日期" width="160" align="center"/>
<a:column name="contract_no" prompt="合同编号" width="160" align="center"/>
<a:column name="fee_item" prompt="债权项" width="160" align="center"/>
<a:column name="verification_fee" prompt="核销金额" width="160" align="center"/>
<a:column name="source_type_name" prompt="来源类别" width="160" align="center"/>
<a:column name="source_object_name" prompt="来源对象" width="160" align="center"/>
<a:column name="receipt_no" prompt="来源单号" width="160" align="center"/>
<a:column name="currency_name" prompt="币种" width="160" align="center"/>
<a:column name="message" prompt="备注" width="165" align="center"/>
</a:columns>
<!--<a:editors>-->
<!--<a:textField id="TEST1020_voucher_audit_tf"/>-->
<!--<a:numberField id="TEST1020_voucher_audit_nf"/>-->
<!--<a:lov id="TEST1020_voucher_audit_lv"/>-->
<!--</a:editors>-->
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm">
<bm:features>
<f:standard-who/>
</bm:features>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from(SELECT hh.name,hh.staff_no,hh.phone_number FROM hls_hsm hh WHERE hh.people_status IN ('type2','type3'))t #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="true" forQuery="true" physicalName="NAME" prompt="人员姓名"/>
<bm:field name="staff_no" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="STAFF_NO" prompt="人员工号"/>
<bm:field name="phone_number" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="PHONE_NUMBER" prompt="联系号码"/>
</bm:fields>
<bm:query-fields>
<bm:query-field field="name" queryExpression="t.name like &apos;%&apos; || ${@name} || &apos;%&apos;"/>
<bm:query-field field="staff_no" queryExpression="t.staff_no =${@staff_no} "/>
<bm:query-field field="phone_number" queryOperator="="/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm">
<bm:fields>
<bm:field name="verification_no"/>
<bm:field name="verification_date"/>
<bm:field name="contract_no"/>
<bm:field name="fee_item"/>
<bm:field name="verification_fee"/>
<bm:field name="source_type_name"/>
<bm:field name="source_object_name"/>
<bm:field name="receipt_no"/>
<bm:field name="currency_name"/>
<bm:field name="message"/>
</bm:fields>
<bm:features>
<f:standard-who/>
</bm:features>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT *
FROM (SELECT hvt.verification_no,
to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
hvt.contract_no,
(SELECT 'fee_items_1' FROM dual) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(SELECT 'fee_items_1'
FROM dual))) fee_item,
hvt.credit_item_rent verification_fee,
hvt.source_type,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
hvt.source_type)) source_type_name,
hvt.source_object,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hvt.source_object) source_object_name,
hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt
UNION
SELECT hvt.verification_no,
to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
hvt.contract_no,
(SELECT 'fee_items_2' FROM dual) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(SELECT 'fee_items_2'
FROM dual))) fee_item,
hvt.credit_item_electric verification_fee,
hvt.source_type,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
hvt.source_type)) source_type_name,
hvt.source_object,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hvt.source_object) source_object_name,
hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt
UNION
SELECT hvt.verification_no,
to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
hvt.contract_no,
(SELECT 'fee_items_3' FROM dual) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(SELECT 'fee_items_3'
FROM dual))) fee_item,
hvt.credit_item_network verification_fee,
hvt.source_type,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
hvt.source_type)) source_type_name,
hvt.source_object,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hvt.source_object) source_object_name,
hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt
UNION
SELECT hvt.verification_no,
to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
hvt.contract_no,
(SELECT 'fee_items_4' from dual) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(SELECT 'fee_items_4'
FROM dual))) fee_item,
hvt.credit_item_cable verification_fee,
hvt.source_type,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
hvt.source_type)) source_type_name,
hvt.source_object,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hvt.source_object) source_object_name,
hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt) t
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="contract_no" queryExpression="t.contract_no like &apos;%&apos;||${@contract_no}||&apos;%&apos;"/>
<bm:query-field name="fee_items" queryExpression="t.fee_items = ${@fee_items_code}"/>
<bm:query-field name="verification_start_date" queryExpression="to_date(t.verification_date, 'yyyy-mm-dd') &gt;= to_date(${@verification_start_date},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="verification_end_date" queryExpression="to_date(t.verification_date, 'yyyy-mm-dd') &lt;= to_date(${@verification_end_date},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="source_type" queryExpression="t.source_type = ${@source_type_code}"/>
<bm:query-field name="source_object" queryExpression="t.source_object = ${@source_object}"/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_HSM">
<bm:fields>
<bm:field name="people_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PEOPLE_ID" prompt="HLS_HSM.PEOPLE_ID"/>
<bm:field name="staff_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STAFF_NO" forDisplay="true" forQuery="true" prompt="入住人员工号"/>
<bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NAME" forQuery="true" forDisplay="true" prompt="姓名"/>
<bm:field name="gender" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER" forDisplay="true" prompt="性别"/>
<bm:field name="department" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPARTMENT" forDisplay="true" prompt="所在部门"/>
<bm:field name="base_in" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BASE_IN" forDisplay="true" prompt="base地"/>
<bm:field name="phone_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PHONE_NUMBER" forQuery="true" prompt="联系电话"/>
<!--<bm:field name="people_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PEOPLE_STATUS" prompt="HLS_HSM.PEOPLE_STATUS"/>-->
<bm:field name="email" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EMAIL" prompt="邮箱"/>
<bm:field name="leaving_date" databaseType="DATE" datatype="java.util.Date" physicalName="LEAVING_DATE" prompt="HLS_HSM.LEAVING_DATE"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="people_id"/>
</bm:primary-key>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select people_id,
staff_no,
name,
(sys_code_pkg.get_sys_code_value_name('HLS211_GENDER', gender)) gender,
(sys_code_pkg.get_sys_code_value_name('HLS_DEPT_TYPE', department)) department,
(sys_code_pkg.get_sys_code_value_name('HLS_BASE_TYPE', base_in)) base_in,
phone_number,
email,
leaving_date
from HLS_HSM
where people_status='type2' and contract_no=${@h_contract_number}
]]></bm:query-sql>
</bm:operation>
<!--<bm:operation name="update">-->
<!--<bm:update-sql><![CDATA[-->
<!--begin-->
<!--hls_renter_arrangements_pkg.checkin(p_staff_no => ${@staff_no},-->
<!--h_contract_number => ${@h_contract_number},-->
<!--p_room_id => ${@room_id},-->
<!--p_leaving_date => to_date(${@leaving_date},'yyyy-mm-dd hh24:mi:ss'));-->
<!--end;-->
<!--]]></bm:update-sql>-->
<!--</bm:operation>-->
</bm:operations>
<bm:query-fields>
<bm:query-field field="staff_no" queryOperator="="/>
<bm:query-field field="name" queryOperator="like"/>
<bm:query-field field="phone_number" queryOperator="="/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_HSM" trace="true">
<bm:fields>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" />
<bm:field name="staff_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STAFF_NO" prompt="入住人员工号"/>
<!--<bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NAME" forQuery="true" forDisplay="true" prompt="姓名"/>-->
<!--<bm:field name="gender" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER" forDisplay="true" prompt="性别"/>-->
<!--<bm:field name="department" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPARTMENT" forDisplay="true" prompt="所在部门"/>-->
<!--<bm:field name="base_in" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BASE_IN" forDisplay="true" prompt="base地"/>-->
<!--<bm:field name="contract_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="contract_no"/>-->
<!--<bm:field name="people_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PEOPLE_STATUS" prompt="HLS_HSM.PEOPLE_STATUS"/>-->
<!--<bm:field name="email" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EMAIL" prompt="邮箱"/>-->
<!--<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ABBR" forDisplay="true" forQuery="true" prompt="房屋简称"/>-->
<!--<bm:field name="room_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_TYPE" forDisplay="true" forQuery="true" prompt="房屋类型"/>-->
<!--<bm:field name="phone_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PHONE_NUMBER" prompt="HLS_HSM.PHONE_NUMBER"/>-->
<!--<bm:field name="leaving_date" databaseType="DATE" datatype="java.util.Date" physicalName="LEAVING_DATE" prompt="HLS_HSM.LEAVING_DATE"/>-->
<!--<bm:field name="live_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="live_start_date" />-->
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
Hls_check_out.checkout(p_staff_no => ${@staff_no},
p_room_id => ${@room_id},
p_check_out_date => to_date(${@check_out_date},'yyyy-mm-dd hh24:mi:ss')
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<!--<a:link id="hls_house_contract_link" url="${/request/@context_path}/modules/train/TRA1010/Search_detial.screen"/>-->
<!--<a:link id="hls_house_contract_add" url="${/request/@context_path}/modules/train/TRA1010/Create_contract.screen"/>-->
<!--<a:link id="hls_house_contract_modification" url="${/request/@context_path}/modules/train/TRA1010/modification.screen"/>-->
<a:link id="hls_checkin_detial_link" url="${/request/@context_path}/modules/hls_rent/RENT400/checkin2.screen"/>
<a:screenBody>
<script><![CDATA[
function hls_house_query() {
$('hls_search_line_ds').query();
}
function checkin_detial(){
if($('hls_search_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请选择一条记录!',null, 200, 100 );
return false;
}else if($('hls_search_line_ds').getSelected().length>1){
Aurora.showErrorMessage( 'ERROR', '只能选择一条记录!',null, 200, 100 );
return false;
}else{
var recordno=$('hls_search_line_ds').getSelected()[0];
var h_contract_number=recordno.get('h_contract_number');
var record = $('hls_search_line_ds').getCurrentRecord();
console.log(recordno);
furl = $('hls_checkin_detial_link').getUrl() + '?h_contract_number=' + h_contract_number;
//Aurora.go(furl)
new Aurora.Window({
id: 'checkin_detial_window',
url: furl,
title: '入住人员详细信息',
params: {
record: recordno,
winId: 'checkin_detial_window'
},
fullScreen:true
});
}
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_HOUSE_TYPE_ds" lookupCode="HLS_HOUSE_TYPE"/>
<!--<a:dataSet id="contract_condition_ds" lookupCode="CONTRACT_CONDITION"/>-->
<a:dataSet id="hls_search_contract_ds">
<a:datas>
<a:record contract_condition="合同确认状态"/>
</a:datas>
<a:fields>
<a:field name="h_contract_number"/>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel"/>
<a:field name="room_type" displayField="code_value_name" options="HLS_HOUSE_TYPE_ds" returnField="code_value_name" valueField="code_value"/>
<a:field name="intermediary"/>
<a:field name="intermediary_name"/>
<a:field name="contract_start_date"/>
<a:field name="contract_finish_date"/>
<!--<a:field name="contract_condition" displayField="code_value_name" options="contract_condition_ds" returnField="code_value_name" valueField="code_value"/>-->
</a:fields>
</a:dataSet>
<a:dataSet id="hls_search_line_ds" queryDataSet="hls_search_contract_ds" model="hls_rent.RENT500.HLS_room_contract_info" selectable="true" autoPageSize="true" autoCreate="true">
<a:field name="h_contract_number"/>
<a:field name="contract_condition"/>
<a:field name="room_id"/>
</a:dataSet>
</a:dataSets>
<a:screenTopToolbar>
<a:gridButton click="hls_house_query" text="查询" width="80"/>
<!--<a:gridButton click="addWindow" text="新增" width="80"/>-->
<!--<a:gridButton click="modificationWindow" text="修改" width="80"/>-->
</a:screenTopToolbar>
<a:form id="search_contract_header" style="width:100%" title="查询条件">
<a:box id="search_contract_header_box" column="3" style="width:100%">
<a:textField name="h_contract_number" bindtarget="hls_search_contract_ds" prompt="房屋合同编号"/>
<a:textField name="room_abbr" bindtarget="hls_search_contract_ds" prompt="房屋简称"/>
<a:comboBox name="room_type" bindtarget="hls_search_contract_ds" prompt="房屋类型"/>
<a:textField name="landlord_name" bindtarget="hls_search_contract_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="hls_search_contract_ds" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="hls_search_contract_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="hls_search_contract_ds" prompt="中介联系人"/>
<a:datePicker name="contract_start_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期从"/>
<a:datePicker name="contract_finish_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期到"/>
<!--<a:comboBox name="contract_condition" bindtarget="hls_search_contract_ds" prompt="租房合同状态"/>-->
</a:box>
</a:form>
<a:grid id="search_line_grid" bindTarget="hls_search_line_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="h_contract_number" prompt="房屋合同编号" width="140" />
<a:column name="room_abbr" prompt="房屋简称" width="80"/>
<a:column name="room_type" prompt="房屋类型" width="80"/>
<a:column name="landlord_name" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" prompt="联系电话" width="120"/>
<a:column name="intermediary" prompt="中介名称" width="80"/>
<a:column name="bed" prompt="床位" width="80"/>
<a:column name="bed_used" prompt="已住床位" width="80"/>
<a:column name="bed_free" prompt="剩余床位" width="80"/>
<a:column name="contract_start_date" prompt="合同开始日期" width="100"/>
<a:column name="contract_finish_date" prompt="合同到期日期" width="100"/>
<a:column name="contract_condition" prompt="房屋合同状态" width="120"/>
<!--<a:column name="contract_remark" prompt="合同备注" width="80"/>-->
</a:columns>
<a:toolBar>
<a:button click="checkin_detial" text="入住" width="80"/>
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_HSM">
<bm:fields>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" />
<bm:field name="staff_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STAFF_NO" prompt="入住人员工号"/>
<!--<bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NAME" forQuery="true" forDisplay="true" prompt="姓名"/>-->
<!--<bm:field name="gender" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER" forDisplay="true" prompt="性别"/>-->
<!--<bm:field name="department" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPARTMENT" forDisplay="true" prompt="所在部门"/>-->
<!--<bm:field name="base_in" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BASE_IN" forDisplay="true" prompt="base地"/>-->
<bm:field name="contract_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="contract_no"/>
<!--<bm:field name="people_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PEOPLE_STATUS" prompt="HLS_HSM.PEOPLE_STATUS"/>-->
<!--<bm:field name="email" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EMAIL" prompt="邮箱"/>-->
<bm:field name="leaving_date" databaseType="DATE" datatype="java.util.Date" physicalName="LEAVING_DATE" prompt="预计入住时间至"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
Hls_checkin.checkin(p_staff_no => ${@staff_no},
h_contract_number => ${@h_contract_number},
p_room_id => ${@room_id},
p_leaving_date => to_date(${@leaving_date},'yyyy-mm-dd hh24:mi:ss'));
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-update model="hls_rent.RENT400.checkin_save"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_HSM">
<bm:fields>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" />
<bm:field name="staff_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STAFF_NO" prompt="入住人员工号"/>
<bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NAME" forQuery="true" forDisplay="true" prompt="姓名"/>
<bm:field name="gender" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER" forDisplay="true" prompt="性别"/>
<bm:field name="department" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPARTMENT" forDisplay="true" prompt="所在部门"/>
<bm:field name="base_in" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BASE_IN" forDisplay="true" prompt="base地"/>
<bm:field name="contract_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="contract_no"/>
<bm:field name="people_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PEOPLE_STATUS" prompt="HLS_HSM.PEOPLE_STATUS"/>
<bm:field name="email" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EMAIL" prompt="邮箱"/>
<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ABBR" forDisplay="true" forQuery="true" prompt="房屋简称"/>
<bm:field name="room_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_TYPE" forDisplay="true" forQuery="true" prompt="房屋类型"/>
<bm:field name="phone_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PHONE_NUMBER" prompt="HLS_HSM.PHONE_NUMBER"/>
<bm:field name="leaving_date" databaseType="DATE" datatype="java.util.Date" physicalName="LEAVING_DATE" prompt="HLS_HSM.LEAVING_DATE"/>
<bm:field name="live_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="live_start_date" />
<bm:field name="rent_dates" databaseType="NUMBER" datatype="java.lang.Long" physicalName="入住天数" />
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select *
from
(select hsm.contract_no,
hsm.staff_no,
hsm.name,
(sys_code_pkg.get_sys_code_value_name('HLS211_GENDER',hsm.gender)) gender,
(sys_code_pkg.get_sys_code_value_name('HLS_DEPT_TYPE',hsm.department)) department,
(sys_code_pkg.get_sys_code_value_name('HLS_BASE_TYPE',hsm.base_in)) base_in,
hsm.phone_number,
hri.room_abbr,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_TYPE',hri.room_type)) room_type,
hci.room_id,
hsm.email,
hsm.leaving_date,
hsm.live_start_date,
sysdate-hsm.live_start_date rent_dates,
(sys_code_pkg.get_sys_code_value_name('HLS_STAFF_STATUS',hsm.people_status)) people_status
from hls_hsm hsm,hls_room_info hri,HLS_Contract_info hci
where hsm.contract_no=hci.h_contract_number
AND hci.room_id=hri.room_id
AND hsm.people_status='type2') t #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field field="staff_no" queryOperator="="/>
<bm:query-field field="name" queryOperator="like"/>
<bm:query-field field="phone_number" queryOperator="="/>
<bm:query-field field="gender" queryOperator="="/>
<bm:query-field field="department" queryOperator="="/>
<bm:query-field field="base_in" queryOperator="="/>
<bm:query-field field="room_abbr" queryOperator="="/>
<bm:query-field field="live_start_date" queryOperator="="/>
<bm:query-field field="leaving_date" queryOperator="="/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="hls_house_contract_link" url="${/request/@context_path}/modules/hls_rent/RENT400/contract_detial.screen"/>
<script><![CDATA[
function formatDate(value,record,name){
return value.substring(0,10);
}
function hls_house_query() {
//debugger;
$('hls_check_out_line_ds').query();
}
function hls_house_contract_link(value, record, name) {
url = $('hls_house_contract_link').getUrl() + '?h_contract_number=' + record.get('contract_no');
return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>';
}
function returnmain(){
history.go(0);
}
function openWindow(url) {
new Aurora.Window({
id: 'information_window',
url: url,
title: '合同信息详情',
height:480,width:820
});
}
function check_out(){
if($('hls_check_out_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}
if ($('HLS_check_out_date_ds').data.length == 0){
Aurora.showInfoMessage('退房日期确认','退房日期不能为空',null,300,100);
return;
}
else {
var check_out_date = $('HLS_check_out_date_ds').getCurrentRecord().get('check_out_date');
}
var ds = $('hls_check_out_line_ds').getSelected();
for (var i=0;i<ds.length;i++){
var live_start_date = ds[i].data.live_start_date;
console.log(live_start_date);
if(live_start_date>check_out_date){
Aurora.showInfoMessage('退房日期确认','退房日期不能早于入住日期!',null,300,100);
return;
}
ds[i].data.check_out_date = check_out_date;
}
console.log(ds);
Aurora.showConfirm('退房确认','是否退房?',checkoutfunction,null,300,100);
}
function checkoutfunction(){
var record=$('hls_check_out_line_ds').getSelected();
$('hls_check_out_line_ds').submitSelected();
}
//保存成功触发函数
function onSubmitSuccess_checkoutSave(){
console.log("保存成功")
hls_house_query();
}
]]></script>
<a:screenBody>
<a:dataSets>
<a:dataSet id="HLS_DEPT_TYPE_ds" lookupCode="HLS_DEPT_TYPE"/>
<a:dataSet id="HLS_SEX_ds" lookupCode="HLS211_GENDER"/>
<a:dataSet id="HLS_BASE_TYPE_DS" lookupCode="HLS_BASE_TYPE"/>
<a:dataSet id="HLS_check_out_date_ds">
<a:field name="check_out_date"/>
</a:dataSet>
<!--查询集-->
<a:dataSet id="checkout_head_ds" autoCreate="true">
<a:fields>
<a:field name="staff_no"/>
<a:field name="name"/>
<a:field name="gender" displayField="code_value_name" options="HLS_SEX_ds" returnField="code_value" valueField="code_value"/>
<a:field name="department" displayField="code_value_name" options="HLS_DEPT_TYPE_ds" returnField="code_value" valueField="code_value"/>
<a:field name="base_in" displayField="code_value_name" options="HLS_BASE_TYPE_DS" returnField="code_value" valueField="code_value"/>
<a:field name="phone_number" />
<a:field name="room_abbr"/>
<a:field name="live_start_date"/>
<a:field name="leaving_date"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="hls_check_out_line_ds" autoQuery="true" queryDataSet="checkout_head_ds" model="hls_rent.RENT400.checkout" selectable="true" submitUrl="${/request/@context_path}/modules/hls_rent/RENT400/checkout_save.svc" >
<a:fields>
<a:field name="contract_no"/>
<a:field name="room_id"/>
<a:field name="room_type"/>
<a:field name="live_start_date" />
<a:field name="rent_dates"/>
<a:field name="check_out_date"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_checkoutSave"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:form id="" style="width:100%" title="查询条件">
<a:screenTopToolbar>
<a:toolbarButton click="hls_house_query" text="查询" width="80"/>
</a:screenTopToolbar>
<a:box id="" column="3" style="width:100%">
<a:textField name="staff_no" bindtarget="checkout_head_ds" prompt="入住人员工号"/>
<a:textField name="name" bindtarget="checkout_head_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindtarget="checkout_head_ds" prompt="性别"/>
<a:comboBox name="department" bindtarget="checkout_head_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindtarget="checkout_head_ds" prompt="base地"/>
<a:textField name="phone_number" bindtarget="checkout_head_ds" prompt="联系电话"/>
<a:textField name="room_abbr" bindtarget="checkout_head_ds" prompt="房屋简称"/>
<a:datePicker name="live_start_date" bindtarget="checkout_head_ds" prompt="入住日期从"/>
<a:datePicker name="leaving_date" bindtarget="checkout_head_ds" prompt="入住日期到"/>
</a:box>
</a:form>
<a:grid id="111" bindTarget="hls_check_out_line_ds" height="200" marginHeight="121" marginWidth="45" title="查询结果" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="checkoutfunction" text="退房" width="80" />-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="contract_no" prompt="房屋合同编号" renderer="hls_house_contract_link" width="120" />
<a:column name="staff_no" prompt="入住人员工号" width="100"/>
<a:column name="name" prompt="入住人员姓名" width="100"/>
<a:column name="gender" prompt="性别" width="80"/>
<a:column name="department" prompt="所在部门" width="80"/>
<a:column name="base_in" prompt="base地" width="80"/>
<a:column name="phone_number" prompt="联系电话" width="100"/>
<a:column name="room_abbr" prompt="房屋简称" width="80"/>
<a:column name="room_type" prompt="房屋类型" width="80"/>
<a:column name="live_start_date" prompt="入住日期" width="160" renderer="Aurora.formatDate"/>
<a:column name="rent_dates" prompt="入住天数" width="80"/>
<a:column name="people_status" prompt="入住人员状态" width="120"/>
</a:columns>
<!--<a:box>-->
<!--<a:datePicker name="check_out_date" />-->
<!--<a:button text="退房" width="80" />-->
<!---->
<!--</a:box>-->
</a:grid>
<a:hBox>
<a:datePicker name="check_out_date" bindTarget="HLS_check_out_date_ds" prompt="退房日期">
</a:datePicker>
<a:toolbarButton click="check_out" text="退房"/>
</a:hBox>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-update model="hls_rent.RENT400.check_out_save"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="h_contract_number=${/parameter/@h_contract_number}" model="hls_rent.RENT500.HLS_room_contract_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
function formatDate(value,record,name){
return value.substring(0,10);
}
function chage_condition(){
var records = $('HLS_Contract_info_Sure_ds').getAll();
for ( var i = 0; i < records.length ; i++) {
records[i].set("h_contract_number", "${/parameter/@h_contract_number}");
}
console.log('records');
//var h_contract_number='${/parameter/@h_contract_number}';
//$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update"+'?h_contract_number='+h_contract_number);
$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update");
$('HLS_Contract_info_Sure_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_sureContractDs(){
//alert("?");
$('information_window').close();
hls_house_query();
}
]]></script>
<a:dataSets>
<!--<a:dataSet id="contract_condition_ds" model="train.contract_condition"/>-->
<!--确认操作DS-->
<a:dataSet id="HLS_Contract_info_Sure_ds" autoCreate="true">
<a:datas>
<!--<a:record h_contract_number="${/parameter/@h_contract_number}"/>-->
<a:record />
</a:datas>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
<!--合同详细信息-->
<a:dataSet id="HLS_Contract_info_ds" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="contract_ID" readOnly="true"/>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="month_rent_price" readOnly="true"/>
<a:field name="tenancy_term" readOnly="true"/>
<a:field name="agency_fee" readOnly="true"/>
<a:field name="contract_invoice_tax" readOnly="true"/>
<a:field name="sum_price" readOnly="true"/>
<a:field name="contract_condition" readOnly="true"/>
<a:field name="remark" readOnly="true"/>
<a:field name="contract_remark" readOnly="true"/>
<a:field name="currency" readOnly="true"/>
<a:field name="room_id" readOnly="true" lovHeight="460" lovService="hls_rent.RENT500.HLS_room_info" lovWidth="600" title="房屋选择">
<a:mapping>
<a:map from="room_area" to="room_area"/>
<a:map from="room_abbr" to="room_abbr"/>
<a:map from="room_type" to="room_type"/>
<a:map from="bed" to="bed"/>
<a:map from="room_id" to="room_id"/>
<a:map from="landlord_name" to="landlord_name"/>
<a:map from="landlord_tel" to="landlord_tel"/>
<a:map from="intermediary" to="intermediary"/>
<a:map from="intermediary_name" to="intermediary_name"/>
<a:map from="intermediary_tel" to="intermediary_tel"/>
<a:map from="message" to="message"/>
<a:map from="room_addr_country" to="room_addr_country"/>
<a:map from="room_addr_province" to="room_addr_province"/>
<a:map from="room_addr_city" to="room_addr_city"/>
</a:mapping>
</a:field>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:box id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="HLS_Contract_info_ds" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="HLS_Contract_info_ds" prompt="合同开始日期" renderer="formatDate"/>
<a:datePicker name="contract_finish_date" bindtarget="HLS_Contract_info_ds" prompt="合同结束日期" renderer="formatDate"/>
</a:box>
<a:box column="4">
<a:textField name="room_id" bindtarget="HLS_Contract_info_ds" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="HLS_Contract_info_ds" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="HLS_Contract_info_ds" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="HLS_Contract_info_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="HLS_Contract_info_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系电话"/>
<!--<a:textField name="" bindtarget="" editable="false" prompt="房屋地址"/>-->
<a:textField name="room_addr_country" bindtarget="HLS_Contract_info_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="HLS_Contract_info_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="HLS_Contract_info_ds" editable="false" prompt="市"/>
</a:box>
<a:box column="3">
<a:textField name="month_rent_price" bindtarget="HLS_Contract_info_ds" prompt="月租金"/>
<a:textField name="tenancy_term" bindtarget="HLS_Contract_info_ds" prompt="租期"/>
<a:textField name="agency_fee" bindtarget="HLS_Contract_info_ds" prompt="中介费"/>
<a:textField name="contract_invoice_tax" bindtarget="HLS_Contract_info_ds" prompt="合同发票税" />
<a:textField name="sum_price" bindtarget="HLS_Contract_info_ds" prompt="总金额" />
<a:textField name="currency" bindtarget="HLS_Contract_info_ds" editable="false" prompt="币种" />
</a:box>
<a:box column="1">
<a:textField name="remark" bindtarget="HLS_Contract_info_ds" prompt="备注" width="400"/>
<a:textField name="contract_remark" bindtarget="HLS_Contract_info_ds" prompt="合同备注" width="600"/>
</a:box>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_HSM">
<bm:fields>
<bm:field name="people_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PEOPLE_ID" prompt="HLS_HSM.PEOPLE_ID"/>
<bm:field name="staff_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STAFF_NO" forDisplay="true" forQuery="true" prompt="入住人员工号"/>
<bm:field name="name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NAME" forQuery="true" forDisplay="true" prompt="姓名"/>
<bm:field name="gender" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER" forDisplay="true" prompt="性别"/>
<bm:field name="department" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPARTMENT" forDisplay="true" prompt="所在部门"/>
<bm:field name="base_in" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BASE_IN" forDisplay="true" prompt="base地"/>
<bm:field name="phone_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PHONE_NUMBER" forQuery="true" prompt="联系电话"/>
<!--<bm:field name="people_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PEOPLE_STATUS" prompt="HLS_HSM.PEOPLE_STATUS"/>-->
<bm:field name="email" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EMAIL" prompt="邮箱"/>
<!--<bm:field name="leaving_date" databaseType="DATE" datatype="java.util.Date" physicalName="LEAVING_DATE" prompt="HLS_HSM.LEAVING_DATE"/>-->
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="people_id"/>
</bm:primary-key>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from(select people_id,
staff_no,
name,
(sys_code_pkg.get_sys_code_value_name('HLS211_GENDER', gender)) gender,
(sys_code_pkg.get_sys_code_value_name('HLS_DEPT_TYPE', department)) department,
(sys_code_pkg.get_sys_code_value_name('HLS_BASE_TYPE', base_in)) base_in,
phone_number,
email
from HLS_HSM
where people_status='type1')t #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
<!--<bm:operation name="update">-->
<!--<bm:update-sql><![CDATA[-->
<!--begin-->
<!--hls_renter_arrangements_pkg.checkin(p_staff_no => ${@staff_no},-->
<!--h_contract_number => ${@h_contract_number},-->
<!--p_room_id => ${@room_id},-->
<!--p_leaving_date => to_date(${@leaving_date},'yyyy-mm-dd hh24:mi:ss'));-->
<!--end;-->
<!--]]></bm:update-sql>-->
<!--</bm:operation>-->
</bm:operations>
<bm:query-fields>
<bm:query-field field="staff_no" queryOperator="="/>
<bm:query-field field="name" queryOperator="like"/>
<bm:query-field field="phone_number" queryOperator="="/>
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:screenBody>
<a:script><![CDATA[
function v_sum_price(){
var record = $('hls_room_info_ds').getAt(0);
var sum_price = record.get('month_rent_price')*record.get('tenancy_term')+record.get('agency_fee')+record.get('Contract_invoice_tax');
record.set('sum_price',sum_price);
}
function saveContract(){
$('hls_room_info_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.HLS_Contract_info/batch_update");
$('hls_room_info_ds').submit();
//Aurora.showConfirm('提示:', '保存成功!',null,450, 300);
}
function returnmain(){
history.go(0);
}
//保存成功触发函数
function onSubmitSuccess_saveContractDs(){
$('new_information_window').close();
hls_house_query();
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
if(name == 'contract_start_date' || name == 'contract_finish_date'){
var start_date = record.get('contract_start_date');
//console.log(start_date);
var end_date = record.get('contract_finish_date');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
]]></a:script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs1" lookupCode="HLS_HOUSE_TYPE"/>
<!--合同新增DS-->
<a:dataSet id="hls_room_info_ds" model="hls_rent.RENT500.HLS_Contract_info" autoCreate="true">
<a:fields>
<a:field name="room_id" required="true" lovHeight="460" lovService="hls_rent.RENT500.HLS_room_info" lovWidth="600" title="房屋选择">
<a:mapping>
<a:map from="room_id" to="room_id" />
<a:map from="room_area" to="room_area"/>
<a:map from="room_abbr" to="room_abbr"/>
<a:map from="room_type" to="room_type"/>
<a:map from="bed" to="bed"/>
<a:map from="landlord_name" to="landlord_name"/>
<a:map from="landlord_tel" to="landlord_tel"/>
<a:map from="intermediary" to="intermediary"/>
<a:map from="intermediary_name" to="intermediary_name"/>
<a:map from="intermediary_tel" to="intermediary_tel"/>
<a:map from="message" to="message"/>
<a:map from="room_addr_country" to="room_addr_country"/>
<a:map from="room_addr_province" to="room_addr_province"/>
<a:map from="room_addr_city" to="room_addr_city"/>
</a:mapping>
</a:field>
<a:field name="h_contract_number" />
<a:field name="contract_start_date" required="true"/>
<a:field name="contract_finish_date" required="true"/>
<a:field name="contract_ID" />
<a:field name="h_contract_number" />
<a:field name="contract_start_date"/>
<a:field name="contract_finish_date" validator="validate_date"/>
<a:field name="month_rent_price" required="true"/>
<a:field name="tenancy_term" required="true"/>
<a:field name="agency_fee" required="true"/>
<a:field name="contract_invoice_tax" />
<a:field name="sum_price"/>
<a:field name="contract_condition"/>
<a:field name="contract_remark"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_saveContractDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<!--<a:screenTopToolbar>-->
<!--<a:gridbutton text="保存" click="saveContract" width="80" />-->
<!--</a:screenTopToolbar>-->
<a:form id="c_form" style="width:100%" title="">
<a:form id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="hls_room_info_ds" editable="false" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="hls_room_info_ds" prompt="合同开始日期"/>
<a:datePicker name="contract_finish_date" bindtarget="hls_room_info_ds" prompt="合同结束日期"/>
</a:form>
<a:form id="room_form" column="3" style="width:100%" title="房屋信息" >
<a:lov name="room_id" bindtarget="hls_room_info_ds" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="hls_room_info_ds" editable="false" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="hls_room_info_ds" editable="false" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="hls_room_info_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="hls_room_info_ds" editable="false" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="hls_room_info_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="hls_room_info_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="hls_room_info_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="hls_room_info_ds" editable="false" prompt="中介联系电话"/>
<a:textField name="" bindtarget="" editable="false" prompt="房屋地址"/>
<a:textField name="room_addr_country" bindtarget="hls_room_info_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="hls_room_info_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="hls_room_info_ds" editable="false" prompt="市"/>
</a:form>
<a:form id="" style="width:100%" >
<a:textField name="message" bindtarget="hls_room_info_ds" editable="false" width="400"/>
</a:form>
<a:form id="contract_form" column="2" style="width:100%" title="租金信息">
<a:numberField name="month_rent_price" allowNegative="false" bindtarget="hls_room_info_ds" prompt="月租金"/>
<a:numberField name="tenancy_term" bindtarget="hls_room_info_ds" prompt="租期"/>
<a:numberField name="agency_fee" bindtarget="hls_room_info_ds" prompt=" "/>
<a:numberField name="Contract_invoice_tax" bindtarget="hls_room_info_ds" prompt="合同发票税" />
<a:button click="v_sum_price" text="计算" width="80"/>
<a:numberField name="sum_price" bindtarget="hls_room_info_ds" editable="false" prompt="总金额" />
<a:textField name="remark" bindtarget="hls_room_info_ds" prompt="备注" width="400"/>
</a:form>
<a:form id="contract_remark_form" column="1" style="width:100%" >
<a:textField name="contract_remark" bindtarget="hls_room_info_ds" prompt="合同备注" width="600"/>
</a:form>
<a:form column="2">
<a:button text="保存" click="saveContract" width="80" />
<a:button text="返回" click="returnmain" width="80" />
</a:form>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_CONTRACT_INFO">
<bm:fields>
<bm:field name="contract_ID" databaseType="NUMBER" datatype="java.lang.Long" physicalName="contract_ID" prompt="房屋合同ID"/>
<bm:field name="h_contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="H_CONTRACT_NUMBER" prompt="房屋合同编号"/>
<bm:field name="contract_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONTRACT_START_DATE" prompt="合同开始日期"/>
<bm:field name="contract_finish_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONTRACT_FINISH_DATE" prompt="合同结束日期"/>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" prompt="房屋ID"/>
<bm:field name="month_rent_price" databaseType="NUMBER" datatype="java.lang.Long" physicalName="MONTH_RENT_PRICE" prompt="月租金"/>
<bm:field name="tenancy_term" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TENANCY_TERM" prompt="租期"/>
<bm:field name="agency_fee" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AGENCY_FEE" prompt="中介费"/>
<bm:field name="Contract_invoice_tax" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_INVOICE_TAX" prompt="合同发票税费"/>
<bm:field name="sum_price" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SUM_PRICE" prompt="总租金"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY" prompt="币种"/>
<bm:field name="remark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REMARK" prompt="备注"/>
<bm:field name="contract_remark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_REMARK" prompt="合同备注"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="contract_ID"/>
</bm:primary-key>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT * FROM HLS_Contract_info #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
HLS_Contract_info_pkg.insert_contract_info(
p_contract_start_date => to_date(${@contract_start_date},'yyyy-mm-dd'),
p_contract_finish_date => to_date(${@contract_finish_date},'yyyy-mm-dd'),
p_room_id => ${@room_id},
p_month_rent_price => ${@month_rent_price},
p_tenancy_term => ${@tenancy_term},
p_agency_fee => ${@agency_fee},
p_Contract_invoice_tax => ${@Contract_invoice_tax},
p_sum_price => ${@sum_price},
p_remark => ${@remark},
p_contract_remark => ${@contract_remark});
end;
]]></bm:update-sql>
</bm:operation>
<!--<bm:operation name="update">-->
<!--<bm:update-sql><![CDATA[-->
<!--begin-->
<!--HLS_Contract_info_pkg.update_contract_info(-->
<!--p_contract_start_date => to_date(${@contract_start_date},'yyyy-mm-dd'),-->
<!--p_contract_finish_date => to_date(${@contract_finish_date},'yyyy-mm-dd'),-->
<!--p_room_id => ${@room_id},-->
<!--p_month_rent_price => ${@month_rent_price},-->
<!--p_tenancy_term => ${@tenancy_term},-->
<!--p_agency_fee => ${@agency_fee},-->
<!--p_Contract_invoice_tax => ${@Contract_invoice_tax},-->
<!--p_sum_price => ${@sum_price},-->
<!--p_currency => ${@currency},-->
<!--p_remark => ${@remark},-->
<!--p_contract_remark => ${@contract_remark});-->
<!--end;-->
<!--]]></bm:update-sql>-->
<!--</bm:operation>-->
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
HLS_Contract_info_pkg.modifi_contract_condition(p_h_contract_number => ${@h_contract_number})
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_CONTRACT_INFO" trace="true">
<bm:fields>
<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ABBR" prompt="HLS_ROOM_INFO.ROOM_ABBR"/>
<bm:field name="room_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_TYPE" prompt="HLS_ROOM_INFO.ROOM_TYPE"/>
<bm:field name="bed" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BED" prompt="HLS_ROOM_INFO.BED"/>
<bm:field name="bed_used" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BED_USED" prompt="HLS_ROOM_INFO.BED_USED"/>
<bm:field name="bed_free" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BED_FREE" prompt="HLS_ROOM_INFO.BED_FREE"/>
<bm:field name="landlord_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_NAME" prompt="HLS_ROOM_INFO.LANDLORD_NAME"/>
<bm:field name="landlord_tel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_TEL" prompt="HLS_ROOM_INFO.LANDLORD_TEL"/>
<bm:field name="intermediary" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY" prompt="HLS_ROOM_INFO.INTERMEDIARY"/>
<bm:field name="intermediary_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY_NAME" prompt="中介联系人"/>
<!--<bm:field name="contract_ID" databaseType="NUMBER" datatype="java.lang.Long" physicalName="contract_ID" prompt="房屋合同ID"/>-->
<bm:field name="h_contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="H_CONTRACT_NUMBER" prompt="房屋合同编号"/>
<bm:field name="contract_start_date" datatype="java.lang.String"/>
<bm:field name="contract_finish_date" datatype="java.lang.String"/>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" prompt="房屋ID"/>
<bm:field name="contract_remark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_REMARK" prompt="合同备注"/>
<bm:field name="room_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="room_status" prompt="房屋状态"/>
<bm:field name="month_rent_price" databaseType="NUMBER" datatype="java.lang.Long" physicalName="month_rent_price" />
<bm:field name="tenancy_term" databaseType="NUMBER" datatype="java.lang.Long" physicalName="tenancy_term" />
<bm:field name="agency_fee" databaseType="NUMBER" datatype="java.lang.Long" physicalName="agency_fee" />
<bm:field name="contract_invoice_tax" databaseType="NUMBER" datatype="java.lang.Long" physicalName="contract_invoice_tax" />
<bm:field name="sum_price" databaseType="NUMBER" datatype="java.lang.Long" physicalName="sum_price" />
<bm:field name="remark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="remark" />
<bm:field name="intermediary_tel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY_TEL" prompt="中介联系电话"/>
<bm:field name="room_area" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_AREA" forDisplay="true" prompt="房屋面积"/>
<bm:field name="room_addr_country" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="room_addr_country"/>
<bm:field name="room_addr_province" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="room_addr_province" />
<bm:field name="room_addr_city" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="room_addr_city" />
<bm:field name="contract_condition" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="contract_condition" prompt="房屋合同状态"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="currency"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<!--<bm:primary-key>-->
<!--<bm:pk-field name="contract_id"/>-->
<!--</bm:primary-key>-->
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from (
select
hci.h_contract_number,
to_char(hci.contract_start_date,'yyyy-mm-dd') contract_start_date,
to_char(hci.contract_finish_date,'yyyy-mm-dd') contract_finish_date,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_TYPE', hri.room_type)) room_type,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_AREA', hri.room_area)) room_area,
hri.bed,
hri.bed_used,
hri.bed_free,
hri.intermediary,
hri.landlord_name,
hri.landlord_tel,
hci.contract_remark,
hri.room_status,
hri.intermediary_name,
hci.month_rent_price,
(select fc.description from fnd_country fc where fc.country_id = room_addr_country) room_addr_country,
(select fc.description from fnd_province fc where fc.province_id = room_addr_province) room_addr_province,
(select fc.description from fnd_city fc where fc.city_id = room_addr_city) room_addr_city,
hci.tenancy_term,
hci.agency_fee,
hci.contract_invoice_tax,
hci.sum_price,
hci.remark,
hri.room_id,
hri.intermediary_tel,
hri.room_abbr,
(sys_code_pkg.get_sys_code_value_name('CONTRACT_CONDITION', hci.contract_condition)) contract_condition,
hci.currency
from HLS_Contract_info hci LEFT JOIN hls_room_info hri ON hri.room_id=hci.room_id ) tt #WHERE_CLAUSE#
]]></bm:query-sql>
<bm:parameters>
<bm:parameter/>
</bm:parameters>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="room_abbr" queryExpression="tt.room_abbr like &apos;%&apos;||${@room_abbr}||&apos;%&apos;"/>
<bm:query-field name="intermediary_name" queryExpression="tt.intermediary_name =${@intermediary_name}"/>
<bm:query-field name="landlord_name" queryExpression="tt.landlord_name =${@landlord_name}"/>
<bm:query-field name="landlord_tel" queryExpression="tt.landlord_tel =${@landlord_tel}"/>
<bm:query-field name="room_type" queryExpression="tt.room_type =${@room_type}"/>
<bm:query-field name="intermediary" queryExpression="tt.intermediary =${@intermediary}"/>
<bm:query-field name="intermediary_name" queryExpression="tt.intermediary_name =${@intermediary_name}"/>
<bm:query-field name="contract_start_date_begin" queryExpression="tt.contract_start_date >= ${@contract_start_date_begin}" />
<bm:query-field name="contract_start_date_end" queryExpression="${@contract_start_date_end} >= tt.contract_start_date"/>
<bm:query-field name="contract_condition" queryExpression="tt.contract_condition =${@contract_condition}"/>
<!--<bm:query-field name="h_contract_number" queryExpression="tt.h_contract_number =${@h_contract_number}"/>-->
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_ROOM_INFO">
<bm:fields>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" prompt="房屋ID"/>
<bm:field name="room_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_NO" forDisplay="true" prompt="房屋编号"/>
<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ABBR" forDisplay="true" forQuery="true" prompt="房屋简称"/>
<bm:field name="room_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_TYPE" forDisplay="true" forQuery="true" prompt="房屋类型"/>
<bm:field name="room_area" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_AREA" forDisplay="true" prompt="房屋面积"/>
<bm:field name="bed" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BED" prompt="床位"/>
<bm:field name="bed_used" databaseType="NUMBER" datatype="java.lang.Long" physicalName="bed_used" />
<bm:field name="bed_free" databaseType="NUMBER" datatype="java.lang.Long" physicalName="bed_free" />
<!--<bm:field name="bed" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BED" prompt="床位"/>-->
<bm:field name="landlord_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_NAME" forQuery="true" prompt="房东姓名"/>
<bm:field name="landlord_tel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LANDLORD_TEL" forQuery="true" prompt="联系电话"/>
<bm:field name="intermediary" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY" prompt="中介名称"/>
<bm:field name="intermediary_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY_NAME" prompt="中介联系人"/>
<bm:field name="intermediary_tel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERMEDIARY_TEL" prompt="中介联系电话"/>
<bm:field name="message" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MESSAGE" prompt="备注"/>
<bm:field name="room_addr_country" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ADDR_COUNTRY" prompt="国家"/>
<bm:field name="room_addr_province" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ADDR_PROVINCE" prompt="省"/>
<bm:field name="room_addr_city" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_ADDR_CITY" prompt="市"/>
<bm:field name="ROOM_STATUS" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ROOM_STATUS" prompt="房屋状态"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select * from (select
room_id,
room_no,
room_abbr,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_TYPE', room_type)) room_type,
(sys_code_pkg.get_sys_code_value_name('HLS_HOUSE_AREA', room_area)) room_area,
bed,
bed_used,
bed_free,
landlord_name,
landlord_tel,
intermediary,
intermediary_name,
intermediary_tel,
message,
(select fc.description from fnd_country fc where fc.country_id = room_addr_country) room_addr_country,
(select fc.description from fnd_province fc where fc.province_id = room_addr_province) room_addr_province,
(select fc.description from fnd_city fc where fc.city_id = room_addr_city) room_addr_city,
room_status
from hls_room_info
where ROOM_STATUS='status1' and room_id not in(select room_id from HLS_Contract_info)) #WHERE_CLAUSE#
]]></bm:query-sql>
<!--<bm:parameters>-->
<!--<bm:parameter/>-->
<!--</bm:parameters>-->
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="room_abbr" queryExpression="room_abbr like &apos;%&apos;||${@room_abbr}||&apos;%&apos;"/>
<bm:query-field name="landlord_name" queryExpression="landlord_name = ${@landlord_name}"/>
<bm:query-field name="landlord_tel" queryExpression="landlord_tel = ${@landlord_tel}"/>
<bm:query-field name="room_type" queryExpression="room_type = ${@room_type}"/>
<!--<bm:query-field field="room_abbr" queryOperator="like"/>-->
<!--<bm:query-field field="room_type" queryOperator="="/>-->
<!--<bm:query-field field="landlord_name" queryOperator="="/>-->
<!--<bm:query-field field="landlord_tel" queryOperator="like"/>-->
</bm:query-fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="h_contract_number=${/parameter/@h_contract_number}" model="hls_rent.RENT500.HLS_room_contract_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
function formatDate(value,record,name){
return value.substring(0,10);
}
function chage_condition(){
var records = $('HLS_Contract_info_Sure_ds').getAll();
for ( var i = 0; i < records.length ; i++) {
records[i].set("h_contract_number", "${/parameter/@h_contract_number}");
}
console.log('records');
//var h_contract_number='${/parameter/@h_contract_number}';
//$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update"+'?h_contract_number='+h_contract_number);
$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update");
$('HLS_Contract_info_Sure_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_sureContractDs(){
//alert("?");
$('information_window').close();
hls_house_query();
}
]]></script>
<a:dataSets>
<!--<a:dataSet id="contract_condition_ds" model="train.contract_condition"/>-->
<!--确认操作DS-->
<a:dataSet id="HLS_Contract_info_Sure_ds" autoCreate="true">
<a:datas>
<!--<a:record h_contract_number="${/parameter/@h_contract_number}"/>-->
<a:record />
</a:datas>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
<!--合同详细信息-->
<a:dataSet id="HLS_Contract_info_ds" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="contract_ID" readOnly="true"/>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="month_rent_price" readOnly="true"/>
<a:field name="tenancy_term" readOnly="true"/>
<a:field name="agency_fee" readOnly="true"/>
<a:field name="contract_invoice_tax" readOnly="true"/>
<a:field name="sum_price" readOnly="true"/>
<a:field name="contract_condition" readOnly="true"/>
<a:field name="remark" readOnly="true"/>
<a:field name="contract_remark" readOnly="true"/>
<a:field name="currency" readOnly="true"/>
<a:field name="room_id" readOnly="true" lovHeight="460" lovService="hls_rent.RENT500.HLS_room_info" lovWidth="600" title="房屋选择">
<a:mapping>
<a:map from="room_area" to="room_area"/>
<a:map from="room_abbr" to="room_abbr"/>
<a:map from="room_type" to="room_type"/>
<a:map from="bed" to="bed"/>
<a:map from="room_id" to="room_id"/>
<a:map from="landlord_name" to="landlord_name"/>
<a:map from="landlord_tel" to="landlord_tel"/>
<a:map from="intermediary" to="intermediary"/>
<a:map from="intermediary_name" to="intermediary_name"/>
<a:map from="intermediary_tel" to="intermediary_tel"/>
<a:map from="message" to="message"/>
<a:map from="room_addr_country" to="room_addr_country"/>
<a:map from="room_addr_province" to="room_addr_province"/>
<a:map from="room_addr_city" to="room_addr_city"/>
</a:mapping>
</a:field>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:box id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="HLS_Contract_info_ds" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="HLS_Contract_info_ds" prompt="合同开始日期" renderer="formatDate"/>
<a:datePicker name="contract_finish_date" bindtarget="HLS_Contract_info_ds" prompt="合同结束日期" renderer="formatDate"/>
</a:box>
<a:box column="4">
<a:textField name="room_id" bindtarget="HLS_Contract_info_ds" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="HLS_Contract_info_ds" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="HLS_Contract_info_ds" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="HLS_Contract_info_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="HLS_Contract_info_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系电话"/>
<!--<a:textField name="" bindtarget="" editable="false" prompt="房屋地址"/>-->
<a:textField name="room_addr_country" bindtarget="HLS_Contract_info_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="HLS_Contract_info_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="HLS_Contract_info_ds" editable="false" prompt="市"/>
</a:box>
<a:box column="3">
<a:textField name="month_rent_price" bindtarget="HLS_Contract_info_ds" prompt="月租金"/>
<a:textField name="tenancy_term" bindtarget="HLS_Contract_info_ds" prompt="租期"/>
<a:textField name="agency_fee" bindtarget="HLS_Contract_info_ds" prompt="中介费"/>
<a:textField name="contract_invoice_tax" bindtarget="HLS_Contract_info_ds" prompt="合同发票税" />
<a:textField name="sum_price" bindtarget="HLS_Contract_info_ds" prompt="总金额" />
<a:textField name="currency" bindtarget="HLS_Contract_info_ds" editable="false" prompt="币种" />
</a:box>
<a:box column="1">
<a:textField name="remark" bindtarget="HLS_Contract_info_ds" prompt="备注" width="400"/>
<a:textField name="contract_remark" bindtarget="HLS_Contract_info_ds" prompt="合同备注" width="600"/>
</a:box>
<a:button text="确认" click="chage_condition" width="80"/>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_CONTRACT_INFO">
<bm:fields>
<bm:field name="contract_ID" databaseType="NUMBER" datatype="java.lang.Long" physicalName="contract_ID" prompt="房屋合同ID"/>
<bm:field name="contract_condition" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="contract_condition" prompt="房屋合同状态"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="contract_ID"/>
</bm:primary-key>
<bm:operations>
<!--<bm:operation name="query">-->
<!--<bm:query-sql><![CDATA[-->
<!--SELECT * FROM HLS_Contract_info #WHERE_CLAUSE#-->
<!--]]></bm:query-sql>-->
<!--</bm:operation>-->
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
HLS_Contract_info_pkg.modifi_contract_condition(p_h_contract_number => ${@h_contract_number});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="h_contract_number=${/parameter/@h_contract_number}" model="hls_rent.RENT500.HLS_room_contract_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
function formatDate(value,record,name){
return value.substring(0,10);
}
//function chage_condition(){
//var h_contract_number='${/parameter/@h_contract_number}';
//$('HLS_Contract_info_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500..contract_condition/batch_update"+'?h_contract_number='+h_contract_number);
//$('HLS_Contract_info_ds').submit();
//}
function v_sum_price(){
var record = $('HLS_Contract_info_ds').getAt(0);
var sum_price = record.get('month_rent_price')*record.get('tenancy_term')+record.get('agency_fee')+record.get('contract_invoice_tax');
record.set('sum_price',sum_price);
}
function saveContract(){
$('HLS_Contract_info_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.modification_contract/batch_update");
$('HLS_Contract_info_ds').submit();
}
function returnmain(){
history.go(0);
}
//保存成功触发函数
function onSubmitSuccess_editContractDs(){
console.log("修改成功");
$('modifi_information_window').close();
hls_house_query();
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_Contract_info_ds" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" />
<a:field name="contract_finish_date" />
<!--<a:field name="contract_ID" />-->
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date"/>
<a:field name="contract_finish_date"/>
<a:field name="month_rent_price"/>
<a:field name="tenancy_term"/>
<a:field name="agency_fee"/>
<a:field name="Contract_invoice_tax"/>
<a:field name="sum_price"/>
<a:field name="contract_condition"/>
<a:field name="contract_remark"/>
<a:field name="room_id" lovHeight="460" lovService="hls_rent.RENT500.HLS_room_info" lovWidth="600" title="房屋选择">
<a:mapping>
<a:map from="room_id" to="room_id"/>
<a:map from="room_area" to="room_area" readOnly="true" />
<a:map from="room_abbr" to="room_abbr"/>
<a:map from="room_type" to="room_type" readOnly="true" />
<a:map from="bed" to="bed"/>
<a:map from="landlord_name" to="landlord_name"/>
<a:map from="landlord_tel" to="landlord_tel"/>
<a:map from="intermediary" to="intermediary"/>
<a:map from="intermediary_name" to="intermediary_name"/>
<a:map from="intermediary_tel" to="intermediary_tel"/>
<a:map from="message" to="message"/>
<a:map from="room_addr_country" to="room_addr_country"/>
<a:map from="room_addr_province" to="room_addr_province"/>
<a:map from="room_addr_city" to="room_addr_city"/>
</a:mapping>
</a:field>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_editContractDs"/>
</a:events>
</a:dataSet>
<!--<a:dataSet id="hls_room_info_ds" model="train.HLS_Contract_info">-->
<!--<a:fields>-->
<!--<a:field name="room_id" required="true" lovHeight="460" lovService="train.HLS_room_info" lovWidth="600" title="房屋选择">-->
<!--<a:mapping>-->
<!--<a:map from="room_id" to="room_id"/>-->
<!--<a:map from="room_area" to="room_area"/>-->
<!--<a:map from="room_abbr" to="room_abbr"/>-->
<!--<a:map from="room_type" to="room_type"/>-->
<!--<a:map from="bed" to="bed"/>-->
<!--<a:map from="landlord_name" to="landlord_name"/>-->
<!--<a:map from="landlord_tel" to="landlord_tel"/>-->
<!--<a:map from="intermediary" to="intermediary"/>-->
<!--<a:map from="intermediary_name" to="intermediary_name"/>-->
<!--<a:map from="intermediary_tel" to="intermediary_tel"/>-->
<!--<a:map from="message" to="message"/>-->
<!--<a:map from="room_addr_country" to="room_addr_country"/>-->
<!--<a:map from="room_addr_province" to="room_addr_province"/>-->
<!--<a:map from="room_addr_city" to="room_addr_city"/>-->
<!--</a:mapping>-->
<!--</a:field>-->
<!--</a:fields>-->
<!--</a:dataSet>-->
</a:dataSets>
<a:screenBody>
<a:box id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="HLS_Contract_info_ds" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="HLS_Contract_info_ds" prompt="合同开始日期" renderer="formatDate"/>
<a:datePicker name="contract_finish_date" bindtarget="HLS_Contract_info_ds" prompt="合同结束日期" renderer="formatDate"/>
</a:box>
<a:box column="3">
<a:lov name="room_id" bindtarget="HLS_Contract_info_ds" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="HLS_Contract_info_ds" editable="false" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="HLS_Contract_info_ds" editable="false" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="HLS_Contract_info_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="HLS_Contract_info_ds" editable="false" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系电话"/>
<a:textField name="" bindtarget="" editable="false" prompt="房屋地址"/>
<a:textField name="room_addr_country" bindtarget="HLS_Contract_info_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="HLS_Contract_info_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="HLS_Contract_info_ds" editable="false" prompt="市"/>
</a:box>
<a:box column="2">
<a:numberField name="month_rent_price" bindtarget="HLS_Contract_info_ds" prompt="月租金"/>
<a:numberField name="tenancy_term" bindtarget="HLS_Contract_info_ds" prompt="租期"/>
<a:numberField name="agency_fee" bindtarget="HLS_Contract_info_ds" prompt="中介费"/>
<a:numberField name="contract_invoice_tax" bindtarget="HLS_Contract_info_ds" prompt="合同发票税" />
<a:button click="v_sum_price" text="计算" width="80"/>
<a:numberField name="sum_price" bindtarget="HLS_Contract_info_ds" editable="false" prompt="总金额" />
<a:textField name="remark" bindtarget="HLS_Contract_info_ds" prompt="备注" width="400"/>
</a:box>
<a:box column="1">
<a:textField name="contract_remark" bindtarget="HLS_Contract_info_ds" prompt="合同备注" width="600"/>
</a:box>
<!--<a:button text="确认" click="chage_condition" width="80"/>-->
<a:button text="保存" click="saveContract" width="80"/>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" alias="t1" baseTable="HLS_CONTRACT_INFO">
<bm:fields>
<bm:field name="contract_ID" databaseType="NUMBER" datatype="java.lang.Long" physicalName="contract_ID" prompt="房屋合同ID"/>
<bm:field name="h_contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="H_CONTRACT_NUMBER" prompt="房屋合同编号"/>
<bm:field name="contract_start_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONTRACT_START_DATE" prompt="合同开始日期"/>
<bm:field name="contract_finish_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONTRACT_FINISH_DATE" prompt="合同结束日期"/>
<bm:field name="room_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROOM_ID" prompt="房屋ID"/>
<bm:field name="month_rent_price" databaseType="NUMBER" datatype="java.lang.Long" physicalName="MONTH_RENT_PRICE" prompt="月租金"/>
<bm:field name="tenancy_term" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TENANCY_TERM" prompt="租期"/>
<bm:field name="agency_fee" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AGENCY_FEE" prompt="中介费"/>
<bm:field name="contract_invoice_tax" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_INVOICE_TAX" prompt="合同发票税费"/>
<bm:field name="sum_price" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SUM_PRICE" prompt="总租金"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY" prompt="币种"/>
<bm:field name="remark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REMARK" prompt="备注"/>
<bm:field name="contract_remark" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_REMARK" prompt="合同备注"/>
</bm:fields>
<bm:features>
<f:standard-who xmlns:f="aurora.database.features"/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="contract_ID"/>
</bm:primary-key>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT * FROM HLS_Contract_info #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
HLS_Contract_info_pkg.update_contract_info(
p_h_contract_number => ${@h_contract_number},
p_contract_start_date => to_date(${@contract_start_date},'yyyy-mm-dd'),
p_contract_finish_date => to_date(${@contract_finish_date},'yyyy-mm-dd'),
p_room_id => ${@room_id},
p_month_rent_price => ${@month_rent_price},
p_tenancy_term => ${@tenancy_term},
p_agency_fee => ${@agency_fee},
p_Contract_invoice_tax => ${@contract_invoice_tax},
p_sum_price => ${@sum_price},
p_currency => ${@currency},
p_remark => ${@remark},
p_contract_remark => ${@contract_remark});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="room_no=${/parameter/@room_no}" model="hls_rent.RENT100.hls_room_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
//二级联动
function onCountryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_code'){
console.log(name);
console.log(value);
$('RENT100_provinceDs').setQueryParameter('country_code', value);
$('RENT100_provinceDs').query();
}
else if(name == 'province_code'){
console.log(name);
console.log(value);
$('RENT100_cityDs').setQueryParameter('province_code', value);
$('RENT100_cityDs').query();
}
}
//修改按钮
function RENT100_updateRoomInfo(){
//debugger;
var room_no = '${/parameter/@room_no}';
console.log(room_no);
$('RENT100_room_info_edit_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT100.hls_room_info/batch_update"+'?room_no='+room_no);
$('RENT100_room_info_edit_ds').submit();
}
//提交成功之后触发此函数
function onSubmitSuccess_roomInfoEditDs(){
//console.log("444");
//$('RENT100_room_info_input_ds').reset();
$('room_info_search_result_window').close();
RENT100_roomInfoSearch();
}
]]></script>
<a:dataSets>
<!-- 房屋面积-->
<a:dataSet id="RENT100_roomAreaDs" lookupCode="HLS_HOUSE_AREA"/>
<!-- 床位数量-->
<a:dataSet id="RENT100_bedNumberDs" lookupCode="HLS_BED_NUMBER"/>
<!-- 房屋地址三级联动-->
<a:dataSet id="RENT100_countryDs" loadData="true" model="hls_rent.RENT100.fnd_country"/>
<a:dataSet id="RENT100_provinceDs" model="hls_rent.RENT100.fnd_province"/>
<a:dataSet id="RENT100_cityDs" model="hls_rent.RENT100.fnd_city"/>
<a:dataSet id="RENT100_room_info_edit_ds" model="hls_rent.RENT100.hls_room_info" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="room_type" required="true" displayField="code_value_name" options="RENT100_roomTypeDs1" returnField="room_type_code" valueField="code_value"/>
<a:field name="room_area" required="true" displayField="code_value_name" options="RENT100_roomAreaDs" returnField="room_area_code" valueField="code_value"/>
<a:field name="bed_free" required="true" displayField="code_value_name" options="RENT100_bedNumberDs" returnField="bed_free_code" valueField="code_value"/>
<a:field name="landlord_name" displayField="period_name" options="" required="true" returnField="period_name" valueField="period_name"/>
<a:field name="landlord_tel" required="true"/>
<a:field name="room_addr_country" required="true" displayField="country_code_description" options="RENT100_countryDs" returnField="country_code" valueField="country_code"/>
<a:field name="room_addr_province" required="true" displayField="province_code_description" options="RENT100_provinceDs" returnField="province_code" valueField="province_code"/>
<a:field name="room_addr_city" required="true" displayField="city_code_description" options="RENT100_cityDs" returnField="city_code" valueField="city_code"/>
<a:field name="room_abbr" displayField="currency_desc" options="" required="true" returnField="currency_code" valueField="currency_code"/>
<a:field name="intermediary" required="true"/>
<a:field name="intermediary_name" displayField="type_name" options="" required="true" returnField="exchange_rate_type" valueField="type_code"/>
<a:field name="intermediary_tel" required="true"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCountryUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_roomInfoEditDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="房屋编号:${/parameter/@room_no}">
<a:box id="" column="3" style="width:100%">
<a:comboBox name="room_type" bindtarget="RENT100_room_info_edit_ds" prompt="房屋类型"/>
<a:comboBox name="room_area" bindtarget="RENT100_room_info_edit_ds" prompt="房屋面积"/>
<a:comboBox name="bed_free" bindtarget="RENT100_room_info_edit_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_edit_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_edit_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:comboBox name="room_addr_country" bindtarget="RENT100_room_info_edit_ds" prompt="房屋地址:国家"/>
<a:comboBox name="room_addr_province" bindtarget="RENT100_room_info_edit_ds" prompt="省"/>
<a:comboBox name="room_addr_city" bindtarget="RENT100_room_info_edit_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_edit_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_edit_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_edit_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_edit_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_edit_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_updateRoomInfo" text="修改" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
//二级联动
function onCountryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_code'){
console.log(name);
console.log(value);
$('RENT100_provinceDs').setQueryParameter('country_code', value);
$('RENT100_provinceDs').query();
}
else if(name == 'province_code'){
console.log(name);
console.log(value);
$('RENT100_cityDs').setQueryParameter('province_code', value);
$('RENT100_cityDs').query();
}
}
//保存
function RENT100_saveRoomInfo() {
//console.log("fuck");
//数据提交
$('RENT100_room_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT100.hls_room_info/batch_update");
$('RENT100_room_info_input_ds').submit();
//$('room_info_new_window').close();
//$('RENT100_room_info_input_ds').reset();
// alert("????");
}
//提交成功之后触发此函数
function onSubmitSuccess_roomInfoInputDs(){
//$('RENT100_room_info_input_ds').reset();
$('room_info_new_window').close();
RENT100_roomInfoSearch();
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋面积-->
<a:dataSet id="RENT100_roomAreaDs" lookupCode="HLS_HOUSE_AREA"/>
<!-- 床位数量-->
<a:dataSet id="RENT100_bedNumberDs" lookupCode="HLS_BED_NUMBER"/>
<!-- 房屋地址三级联动-->
<a:dataSet id="RENT100_countryDs" loadData="true" model="hls_rent.RENT100.fnd_country"/>
<a:dataSet id="RENT100_provinceDs" model="hls_rent.RENT100.fnd_province" fetchAll="true"/>
<a:dataSet id="RENT100_cityDs" model="hls_rent.RENT100.fnd_city" fetchAll="true"/>
<!-- 房屋信息-->
<a:dataSet id="RENT100_room_info_input_ds" autoCreate="true">
<a:fields>
<a:field name="room_type" required="true" displayField="code_value_name" options="RENT100_roomTypeDs" returnField="room_type_code" valueField="code_value"/>
<a:field name="room_area" required="true" displayField="code_value_name" options="RENT100_roomAreaDs" returnField="room_area_code" valueField="code_value"/>
<a:field name="bed_free" required="true" displayField="code_value_name" options="RENT100_bedNumberDs" returnField="bed_free_code" valueField="code_value"/>
<a:field name="landlord_name" displayField="period_name" options="" required="true" returnField="period_name" valueField="period_name"/>
<a:field name="landlord_tel" required="true" validator="validate_telNumber"/>
<a:field name="room_addr_country" required="true" displayField="country_code_description" options="RENT100_countryDs" returnField="country_code" valueField="country_code"/>
<a:field name="room_addr_province" required="true" displayField="province_code_description" options="RENT100_provinceDs" returnField="province_code" valueField="province_code"/>
<a:field name="room_addr_city" required="true" displayField="city_code_description" options="RENT100_cityDs" returnField="city_code" valueField="city_code"/>
<a:field name="room_abbr" displayField="currency_desc" options="" required="true" returnField="currency_code" valueField="currency_code"/>
<a:field name="intermediary" required="true"/>
<a:field name="intermediary_name" displayField="type_name" options="" required="true" returnField="exchange_rate_type" valueField="type_code"/>
<a:field name="intermediary_tel" required="true" validator="validate_telNumber"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCountryUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_roomInfoInputDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="新增房屋信息">
<a:box id="" column="3" style="width:100%">
<a:comboBox name="room_type" bindtarget="RENT100_room_info_input_ds" prompt="房屋类型"/>
<a:comboBox name="room_area" bindtarget="RENT100_room_info_input_ds" prompt="房屋面积"/>
<a:comboBox name="bed_free" bindtarget="RENT100_room_info_input_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_input_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_input_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:comboBox name="room_addr_country" bindtarget="RENT100_room_info_input_ds" prompt="房屋地址:国家"/>
<a:comboBox name="room_addr_province" bindtarget="RENT100_room_info_input_ds" prompt="省"/>
<a:comboBox name="room_addr_city" bindtarget="RENT100_room_info_input_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_input_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_input_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_input_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_input_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_saveRoomInfo" text="保存" width="80"/>
<!--<a:toolbarButton click="" text="关闭" width="80"/>-->
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment