Commit ead3cb12 authored by e's avatar e

租房信息管理系统

parents
# hls_rent
租房管理系统
<?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>
<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.landlord_name landlord_name,
hri.landlord_tel landlord_tel,
nvl(sum(hfd.apportion_rental), 0) -
nvl((select hpv.verification_fee
from hls_payment_verification hpv
where hpv.creditor_project not in
('fee_items_1',
'fee_items_2',
'fee_items_3',
'fee_items_4')
and hpv.contract_no = hci.h_contract_number
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_rental,
nvl(sum(hfd.apportion_water), 0) -
nvl((select hpv.verification_fee
from hls_payment_verification hpv
where hpv.creditor_project = 'fee_items_1'
and hpv.contract_no = hci.h_contract_number
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_water,
nvl(sum(hfd.apportion_electric), 0) -
nvl((select hpv.verification_fee
from hls_payment_verification hpv
where hpv.creditor_project = 'fee_items_2'
and hpv.contract_no = hci.h_contract_number
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_electric,
nvl(sum(hfd.apportion_network), 0) -
nvl((select hpv.verification_fee
from hls_payment_verification hpv
where hpv.creditor_project = 'fee_items_3'
and hpv.contract_no = hci.h_contract_number
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_network,
nvl(sum(hfd.apportion_cable), 0) -
nvl((select hpv.verification_fee
from hls_payment_verification hpv
where hpv.creditor_project = 'fee_items_4'
and hpv.contract_no = hci.h_contract_number
and hpv.source_object = hfd.staff_no
and rownum <= 1),
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}
GROUP BY hci.h_contract_number,
hri.room_abbr,
hri.landlord_name,
hri.landlord_tel,
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="landlord_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="ROOM_TYPE" prompt="房屋类型"/>
<bm:field name="landlord_tel" 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="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">
<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_update(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"?>
<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"?>
<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"?>
<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"?>
<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 hh.name,hh.staff_no,hh.phone_number FROM hls_hsm hh WHERE hh.people_status IN ('type2','type3')
]]></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="hh.name like &apos;%&apos; || ${@name} || &apos;%&apos;"/>
<bm:query-field field="staff_no" queryExpression="hh.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_id" databaseType="NUMBER" datatype="java.lang.Long"/>
<bm:field name="verification_no" databaseType="VARCHAR2" datatype="java.lang.String"/>
<bm:field name="verification_date" datatype="java.lang.String" />
<bm:field name="contract_no" databaseType="VARCHAR2" datatype="java.lang.String" />
<bm:field name="creditor_project" databaseType="VARCHAR2" datatype="java.lang.String" />
<bm:field name="verification_fee" databaseType="VARCHAR2" datatype="java.lang.String" />
<bm:field name="source_type" databaseType="VARCHAR2" datatype="java.lang.String" />
<bm:field name="source_object" databaseType="VARCHAR2" datatype="java.lang.String" />
<bm:field name="receipt_no" databaseType="VARCHAR2" datatype="java.lang.String" />
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" />
<bm:field name="message" databaseType="VARCHAR2" datatype="java.lang.String" />
</bm:fields>
<bm:features>
<f:standard-who/>
</bm:features>
<bm:operations>
<bm:operation name="query">
<bm:update-sql><![CDATA[
select
verification_id ,
verification_no ,
contract_no ,
nvl((sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS', creditor_project)), '租金') creditor_project ,
to_char(creation_date, 'yyyy-mm-dd') verification_date ,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE', source_type)) source_type ,
source_object ,
receipt_no ,
currency ,
message ,
verification_fee ,
creation_date ,
created_by ,
last_updated_by ,
last_update_date
from hls_payment_verification
#WHERE_CLAUSE#
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<!--查询页面用-->
<bm:query-field name="verification_no" queryExpression="verification_no = ${@verification_no}"/>
<bm:query-field name="contract_no" queryExpression="contract_no = ${@contract_no}"/>
<bm:query-field name="creditor_project" queryExpression="creditor_project = ${@creditor_project_code}"/>
<bm:query-field name="verification_start_date" queryExpression="to_char(creation_date, 'yyyy-mm-dd') >= ${@verification_start_date}"/>
<bm:query-field name="verification_end_date" queryExpression=" ${@verification_end_date} >= to_char(creation_date, 'yyyy-mm-dd')"/>
<bm:query-field name="source_type" queryExpression="source_type = ${@source_type_code}"/>
<bm:query-field name="source_object" queryExpression="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"?>
<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"?>
<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"?>
<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"?>
<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"?>
<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"?>
<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>
<?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>
<?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_edit" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_edit.screen"/>
<a:link id="pageLink_room_info_new" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_new.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_roomInfoRemove(){
//console.log($('RENT100_room_info_result_grid'));
//debugger;
if(hls_houses_remove_confirm()){
$('RENT100_room_info_result_grid').remove();
}
return;
}
//判断选中记录是否有效
function hls_houses_remove_confirm(){
if($('RENT100_room_info_result_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}else{
var records=$('RENT100_room_info_result_ds').getSelected();
for(i=0;i<records.length;i++){
if(records[i].get('room_status')=='已租住'){
Aurora.showErrorMessage( 'ERROR', '房屋状态为已租住,不能删除!!',null, 200, 100 );
return false;
}
}
}
return true;
}
//查询按钮
function RENT100_roomInfoSearch(){
//console.log('1');
$('RENT100_room_info_result_ds').query();
}
//
function getNowFormatDate() {
var date = new Date();
var seperator1 = "-";
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = year + seperator1 + month + seperator1 + strDate;
return currentdate;
}
//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_roomInfoEdit(\'' + room_no + '\');">'+room_no+'</a>'
if(name=='room_no')
{
return rlt;
}
}
return '';
}
//编辑窗口
function RENT100_roomInfoEdit(room_no){
new Aurora.Window({
id:'room_info_search_result_window',
url:$('pageLink_room_info_edit').getUrl(),
params:{
room_no:room_no
},
title:'修改房屋信息',
height:500,
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;
}
if(name == 'intermediary_tel'){
var intermediary_tel = record.get('intermediary_tel');
if(typeof(intermediary_tel) != 'undefined' && !Ext.isEmpty(intermediary_tel)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(intermediary_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" selectable="true"/>
</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_grid" bindTarget="RENT100_room_info_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="room_no" 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_roomInfoRemove" text="删除" iconAlign="right" width="80" />
<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: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>
<?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_alter.screen"/>
<script><![CDATA[
<!--新增用户-->
function winOpen_create_user(){
new Aurora.Window({
id:'hls_hrms_hsm_staff_info_editor',
url:$('pageLink_create_user').getUrl(),
title:'${l:新增用户}',
height:500,
width:1000
});
}
<!--删除用户-->
function grid_delete_user(){
if(hls_staff_delete_confirm()){
$('HLS_staff_info_result_grid').remove();
}
return;
}
<!--判断选中记录是否有效-->
function hls_staff_delete_confirm(){
if($('HLS_staff_info_input').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}else{
var records=$('HLS_staff_info_input').getSelected();
for(i=0;i<records.length;i++){
if(records[i].get('people_status')=='已入住'){
Aurora.showErrorMessage( 'ERROR', '入住人员状态为正在租住,不能删除!',null, 200, 100 );
return false;
}
}
}
return true;
}
<!--&lt;!&ndash;删除确认&ndash;&gt;-->
<!--function openWindow1(){-->
<!--Aurora.showOkCancelWindow('确认', '是否确认删除');-->
<!--}-->
<!--grid渲染函数-->
function HLS_staff_info_result_grid_ds(value, record, name){
//debugger;
console.log("渲染");
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_alter',
url:$('pageLink_alter_user').getUrl(),
params:{
personnel_no:personnel_no
},
title:'${l:修改用户}',
height:500,
width:1000
});
}
<!--查询按钮-->
function HLS_staff_infoSearch(){
console.log('查询');
$('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" required="true"/>-->
<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:editors>-->
<!--<a:textField id="tra_voucher_tf"/>-->
<!--<a:numberField id="tra_voucher_nf"/>-->
<!--<a:lov id="tra_voucher_lv"/>-->
<!--</a:editors>-->
</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: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>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="return_verification" url="${/request/@context_path}/modules/hls_rent/RENT300/rent_manual_verification.screen"/>
<script><![CDATA[
function before_click(){
//debugger;
var receipt_no = $('verification_result_window').params.receipt_no;
var staff_no = $('verification_result_window').params.record_query.get('source_object');
console.log($('verification_result_window').params.record_query.get('source_object'));
var contract_no_field = $('RENT1030_contract_no_ds').getCurrentRecord().getMeta().getField('contract_no');
url = "hls_rent.RENT300.contract_room_no?staff_no="+staff_no;
contract_no_field.setLovService(url);
}
function value_change(){
//debugger;
var total_receipt = $('verification_result_window').params.record_result.get('verification_amounts_n');
total_receipt = Number(total_receipt);
var RENT1030_contract_no_ds_record = $('RENT1030_contract_no_ds').getCurrentRecord();
var apportion_rental = RENT1030_contract_no_ds_record.get('apportion_rental');
apportion_rental = Number(apportion_rental);
var apportion_water = RENT1030_contract_no_ds_record.get('apportion_water');
apportion_water = Number(apportion_water);
var apportion_electric = RENT1030_contract_no_ds_record.get('apportion_electric');
apportion_electric = Number(apportion_electric);
var apportion_network = RENT1030_contract_no_ds_record.get('apportion_network');
apportion_network = Number(apportion_network)
var apportion_cable = RENT1030_contract_no_ds_record.get('apportion_cable');
apportion_cable = Number(apportion_cable);
if(total_receipt > apportion_rental){
RENT1030_contract_no_ds_record.set('verification_rental', apportion_rental);
var remain_receipt_1 = total_receipt - apportion_rental;
if(remain_receipt_1 > apportion_water){
RENT1030_contract_no_ds_record.set('verification_water', apportion_water);
var remain_receipt_2 = remain_receipt_1 - apportion_water;
if(remain_receipt_2 > apportion_electric){
RENT1030_contract_no_ds_record.set('verification_electric', apportion_electric);
var remain_receipt_3 = remain_receipt_2 - apportion_electric;
if(remain_receipt_3 > apportion_network){
RENT1030_contract_no_ds_record.set('verification_network', apportion_network);
remain_receipt_4 = remain_receipt_3 - apportion_network;
if(remain_receipt_4 > apportion_cable){
RENT1030_contract_no_ds_record.set('verification_cable', apportion_cable);
}else{
RENT1030_contract_no_ds_record.set('verification_cable', remain_receipt_4);
}
}else{
RENT1030_contract_no_ds_record.set('verification_network', remain_receipt_3);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}else{
RENT1030_contract_no_ds_record.set('verification_electric', remain_receipt_2);
RENT1030_contract_no_ds_record.set('verification_network', 0);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}else{
RENT1030_contract_no_ds_record.set('verification_water', remain_receipt_1);
RENT1030_contract_no_ds_record.set('verification_electric', 0);
RENT1030_contract_no_ds_record.set('verification_network', 0);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}else{
RENT1030_contract_no_ds_record.set('verification_rental', total_receipt);
RENT1030_contract_no_ds_record.set('verification_water', 0);
RENT1030_contract_no_ds_record.set('verification_electric', 0);
RENT1030_contract_no_ds_record.set('verification_network', 0);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}
function verification_submit(){
Aurora.showConfirm('提交', '是否确认提交?', payment_verification_submit, null, 200, 100 );
}
function payment_verification_submit(){
$('RENT1030_contract_no_ds').submit();
}
function payment_verification_submitSuccess(ds,res){
location.href = $('return_verification').getUrl();
parent.shMenu('show');
}
]]></script>
<a:dataSets>
<a:dataSet id="RENT1030_contract_no_ds" autoCreate="true" submitUrl="${/request/@context_path}/autocrud/hls_rent.RENT300.manual_verification_submit/batch_update">
<a:fields>
<a:field name="contract_no" lovGridHeight="320" lovHeight="480" lovWidth="600" title="费用对象" >
<a:mapping>
<a:map from="contract_no" to="contract_no"/>
<a:map from="apportion_rental" to="apportion_rental"/>
<a:map from="apportion_water" to="apportion_water"/>
<a:map from="apportion_electric" to="apportion_electric"/>
<a:map from="apportion_network" to="apportion_network"/>
<a:map from="apportion_cable" to="apportion_cable"/>
<a:map from="staff_no" to="staff_no"/>
<a:map from="receipt_no" to="receipt_no"/>
<a:map from="receipt_sources" to="receipt_sources"/>
<a:map from="message" to="message"/>
</a:mapping>
</a:field>
<a:field name="apportion_rental"/>
<a:field name="verification_rental"/>
<a:field name="apportion_water"/>
<a:field name="verification_water"/>
<a:field name="apportion_electric"/>
<a:field name="verification_electric"/>
<a:field name="apportion_network"/>
<a:field name="verification_network"/>
<a:field name="apportion_cable"/>
<a:field name="verification_cable"/>
<a:field name="staff_no"/>
<a:field name="receipt_no"/>
<a:field name="receipt_sources"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitSuccess" handler="payment_verification_submitSuccess"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form title="收款核销" style="width:100%; border:none" >
<a:button text="HLS.SUBMIT" click="verification_submit"/>
<a:box column="1" style="width:100%">
<a:lov name="contract_no" prompt="房屋合同编号" bindTarget="RENT1030_contract_no_ds">
<a:events>
<a:event name="commit" handler="value_change"/>
<a:event name="beforetriggerclick" handler="before_click"/>
</a:events>
</a:lov>
</a:box>
</a:form>
<a:grid marginHeight="121" marginWidth="45" bindTarget="RENT1030_contract_no_ds">
<a:columns>
<a:column prompt="应付租金">
<a:column prompt="剩余债权" name="apportion_rental" renderer="Aurora.formatMoney"/>
<a:column prompt="本次核销" name="verification_rental" renderer="Aurora.formatMoney"/>
</a:column>
<a:column prompt="应付水费">
<a:column prompt="剩余债权" name="apportion_water" renderer="Aurora.formatMoney"/>
<a:column prompt="本次核销" name="verification_water" renderer="Aurora.formatMoney"/>
</a:column>
<a:column prompt="应付电费">
<a:column prompt="剩余债权" name="apportion_electric" renderer="Aurora.formatMoney"/>
<a:column prompt="本次核销" name="verification_electric" renderer="Aurora.formatMoney"/>
</a:column>
<a:column prompt="应付宽带网络费">
<a:column prompt="剩余债权" name="apportion_network" renderer="Aurora.formatMoney"/>
<a:column prompt="本次核销" name="verification_network" renderer="Aurora.formatMoney"/>
</a:column>
<a:column prompt="应付有线电视费">
<a:column prompt="剩余债权" name="apportion_cable" renderer="Aurora.formatMoney"/>
<a:column prompt="本次核销" name="verification_cable" renderer="Aurora.formatMoney"/>
</a:column>
</a:columns>
</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>
<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"?>
<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();
}
]]>
</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" selectable="true" queryDataSet="RENT1030_fee_info_query_ds" model="hls_rent.RENT300.rent_fee_query" selectionModel="single" autoQuery="true">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="" 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="121" 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" editor="TEST1020_voucher_audit_tf" prompt="费用单编号" width="150"/>
<a:column name="fee_items" editor="TEST1020_voucher_audit_lv" prompt="费用项目" width="150"/>
<a:column name="fee_sources" editor="" prompt="费用来源" width="150"/>
<a:column name="fee_objects" editor="TEST1020_voucher_audit_tf" prompt="费用对象" width="150"/>
<a:column name="fee_first_date" editor="TEST1020_voucher_audit_nf" prompt="费用发生日" width="150"/>
<a:column name="fee_last_date" editor="TEST1020_voucher_audit_nf" prompt="费用结束日" width="150"/>
<a:column name="fee_amounts" editor="TEST1020_voucher_audit_tf" prompt="费用金额" width="150"/>
<a:column name="fee_add_date" editor="TEST1020_voucher_audit_tf" prompt="新增日期" width="150"/>
</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"?>
<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" 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:gridButton id="csh511_receipt_back_id" click="" text="HLS.EXIT"/>
</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 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 '';
}
function RENT100_verificationInfoEdit(receipt_no){
var record_result = $('RENT1030_manual_result_ds').getCurrentRecord();
var record_query = $('RENT1030_manual_query_ds').getCurrentRecord();
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
});
}
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){
// Aurora.showInfoMessage('${1:PROMPT}', '警告', null, 250, 100);
$('RENT1030_manual_query_ds').reset();
}
}
}
//function click(){
// }
]]></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="来源对象">
<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" autoCreate="true">
</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="121" marginWidth="45" >
<a:columns>
<a:column name="receipt_no" prompt="收款编号" renderer="RENT_manual_verification_grid" width="150"/>
<a:column name="receipt_date" prompt="收款日期" width="160"/>
<a:column name="receipt_ways" prompt="收款方式" width="160"/>
<a:column name="receipt_objects" prompt="收款对象" width="160"/>
<a:column name="receipt_amounts" prompt="收款金额" width="160"/>
<a:column name="verification_amounts_y" prompt="已核销金额" width="160"/>
<a:column name="verification_amounts_n" prompt="未核销金额" width="160"/>
<a:column name="message" prompt="备注"/>
</a:columns>
</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 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;
}
}
]]></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="" 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" editor="TEST1020_voucher_audit_tf" prompt="收款编号" width="120"/>
<a:column name="receipt_date" align="center" editor="TEST1020_voucher_audit_lv" prompt="收款日期" width="120"/>
<a:column name="receipt_sources" align="center" editor="" prompt="收款来源" width="120"/>
<a:column name="receipt_objects" align="center" editor="TEST1020_voucher_audit_tf" prompt="收款对象" width="120"/>
<a:column name="receipt_ways" align="center" editor="TEST1020_voucher_audit_nf" prompt="收款方式" width="80"/>
<a:column name="receipt_amounts" align="center" editor="TEST1020_voucher_audit_nf" prompt="收款金额" width="80"/>
<a:column name="verification_amounts" align="center" editor="TEST1020_voucher_audit_tf" prompt="核销金额" width="120"/>
<a:column name="currency" align="center" editor="TEST1020_voucher_audit_tf" prompt="币种" width="120"/>
<a:column name="message" editor="TEST1020_voucher_audit_tf" prompt="备注" width="120"/>
</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"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
<!--查询按钮-->
function HLS_staff_infoSearch(){
console.log('1');
$('RENT1030_verification_query').query();
}
<!--比较日期-->
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
<!--判断日期是否有效-->
function validate_date(record, name, value){
console.log('panduan');
if(name == 'verification_start_date' || name == 'verification_end_date'){
var start_date = record.get('verification_start_date');
console.log('start_date有了');
var end_date = record.get('verification_end_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;
}
}
]]></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_currency_ds" model="hls_rent.RENT300.rent_fee_currency" loadData="true"/>
<!--查询集-->
<a:dataSet id="RENT1030_verification_query_ds" autoCreate="true">
<a:fields>
<a:field name="verification_no"/>
<a:field name="contract_no"/>
<a:field name="creditor_project_code"/>
<a:field name="creditor_project" displayField="code_value_name" valueField="code_value" returnField="creditor_project_code" options="RENT1030_creditor_project_ds"/>
<a:field name="verification_start_date"/>
<a:field name="verification_end_date" validator="validate_date"/>
<a:field name="source_type_code"/>
<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" />-->
<a:field name="source_object" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<a:mapping>
<a:map from="name" to="source_object"/>
<!--<a:map from="staff_no" to="source_object"/>-->
</a:mapping>
</a:field>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="RENT1030_verification_query" autoQuery="true" model="hls_rent.RENT300.rent_ver_search" queryDataSet="RENT1030_verification_query_ds" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="" text="HLS.BACK"/>
<a:gridButton click="HLS_staff_infoSearch" 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="creditor_project" 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" bindTarget="RENT1030_verification_query_ds" prompt="来源对象"/>
</a:box>
</a:form>
<a:grid id="" bindTarget="RENT1030_verification_query" 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="verification_no" editor="TEST1020_voucher_audit_tf" prompt="核销编号" width="160"/>
<a:column name="verification_date" editor="TEST1020_voucher_audit_lv" prompt="核销日期" width="160"/>
<a:column name="contract_no" editor="" prompt="合同编号" width="160"/>
<a:column name="creditor_project" editor="TEST1020_voucher_audit_tf" prompt="债权项" width="160"/>
<a:column name="verification_fee" editor="TEST1020_voucher_audit_nf" prompt="核销金额" width="160"/>
<a:column name="source_type" editor="TEST1020_voucher_audit_nf" prompt="来源类别" width="160"/>
<a:column name="source_object" editor="TEST1020_voucher_audit_tf" prompt="来源对象" width="160"/>
<a:column name="receipt_no" editor="TEST1020_voucher_audit_tf" prompt="来源单号" width="160"/>
<a:column name="currency" editor="TEST1020_voucher_audit_tf" prompt="币种" width="160"/>
<a:column name="message" editor="TEST1020_voucher_audit_tf" prompt="备注" width="160"/>
</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"?>
<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;
new Aurora.Window({
id: 'checkin_detial_window',
url: furl,
title: '入住人员详细信息',
params: {
record: recordno,
winId: 'checkin_detial_window'
},
height:480,width:820
});
}
}
]]></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>
<?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:link id="hls_checkin1" url="${/request/@context_path}/modules/train/TRA1010/checkin1.screen"/>-->
<a:view>
<script><![CDATA[
//格式化日期
function formatDate(value,record,name){
return value.substring(0,10);
}
//新增一条记录
function new_hsm(){
var bed_free = $('checkin_detial_window').params.record.data['bed_free'];
var undetermined_beds = $('HLS_create_people_info_ds').getAll().length;
console.log(bed_free);
console.log(undetermined_beds);
if ( undetermined_beds < bed_free) {
var ds=$('HLS_create_people_info_ds');
ds.create();
}else {
Aurora.showInfoMessage('入住提示','床位已满!',null,null,null);
}
}
function openWindow() {
history.go(0);
}
//保存记录
function record_save(){
var h_contract_number = $('Hls_hsm_ds').getAll()[0].data.h_contract_number;
var room_id = $('Hls_hsm_ds').getAll()[0].data.room_id;
var records = $('HLS_create_people_info_ds').getAll();
var createPeopleInfoRecord = $('HLS_create_people_info_ds');
//console.log(records.data);
var staffArray = []; //保存员工编号
for(var i =0;i<createPeopleInfoRecord.data.length;i++){
staffArray.push(createPeopleInfoRecord.data[i].get('staff_no'))
}
//判断员工编号是否重复
for(var m=0;m<staffArray.length;m++){
for(var n=m+1;n<staffArray.length;n++){
if(staffArray[m]==staffArray[n]){
Aurora.showErrorMessage('错误','人员重复');
return;
}
}
}
console.log(staffArray);
//给每条记录增加合同编号和房屋编号
for ( var i = 0; i < records.length ; i++) {
records[i].set("h_contract_number", h_contract_number);
records[i].set("room_id", room_id);
}
$('HLS_create_people_info_ds').setSubmitUrl("${/request/@context_path}/modules/hls_rent/RENT400/checkin_save.svc");
$('HLS_create_people_info_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_record_save(){
$('checkin_detial_window').close();
hls_house_query();
}
//新增一条记录
function HLS1050_add_record(){
var ds = $('HLS1050_renter_info_ds');
var total_beds = $('arrangement_confirm').params.record.data['house_beds'];
var used_beds = $('HLS1050_arranged_renters_ds').getAll().length;
var undetermined_beds = $('HLS1050_renter_info_ds').getAll().length;
if ((used_beds + undetermined_beds) < total_beds) {
ds.create();//创建一个空的ds,即增加新的住户
} else {
Aurora.showInfoMessage('入住提示','床位已满!',null,null,null);
}
}
//删除一条记录
function HLS1050_record_clear(){
$('checkin_det').clear();
}
]]></script>
<a:dataSets>
<!--新增入住人员信息-->
<a:dataSet id="HLS_create_people_info_ds" selectable="true" model="hls_rent.RENT400.checkin_save">
<!--<a:datas>-->
<!--<a:record h_contract_number="${/parameter/@h_contract_number}"/>-->
<!--</a:datas>-->
<a:fields>
<a:field name="staff_no" lovGridHeight="300" lovHeight="500" lovService="hls_rent.RENT400.hls_hsm_info" lovWidth="600" required="true" title="入住人员信息">
<a:mapping>
<a:map from="staff_no" to="staff_no"/>
<a:map from="name" to="name"/>
<a:map from="gender" to="gender"/>
<a:map from="department" to="department"/>
<a:map from="base_in" to="base_in"/>
<a:map from="phone_number" to="phone_number"/>
<a:map from="email" to="email"/>
<a:map from="people_id" to="people_id"/>
<!--<a:map from="leaving_date" to="leaving_date"/>-->
</a:mapping>
</a:field>
<a:field name="leaving_date" required="true" />
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_record_save"/>
</a:events>
</a:dataSet>
<!--根据房屋合同编号查询已入住人员信息-->
<a:dataSet id="HLS_checkin_people_info_query_ds" selectable="true">
<a:datas>
<a:record h_contract_number="${/parameter/@h_contract_number}"/>
</a:datas>
</a:dataSet>
<!--已入住人员信息结果集-->
<a:dataSet id="HLS_checkin_people_info_ds" autoQuery="true" queryDataSet="HLS_checkin_people_info_query_ds" model="hls_rent.RENT400.HLS_checkedIn_people_info">
</a:dataSet>
<!--房屋信息,合同信息,租金信息-->
<a:dataSet id="Hls_hsm_ds" selectable="true" submitUrl="${/request/@context_path}/modules/hls_rent/RENT400/checkin_save.svc">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="leaving_date"/>
<a:field name="h_contract_number" />
<a:field name="contract_start_date" />
<a:field name="contract_finish_date" />
<a:field name="contract_ID" />
<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" />
<a:field name="room_type"/>
<a:field name="room_area" />
<a:field name="landlord_name" />
<a:field name="landlord_tel" />
<a:field name="intermediary" />
<a:field name="intermediary_name"/>
<a:field name="intermediary_tel"/>
<a:field name="room_addr_country"/>
<a:field name="room_addr_province" />
<a:field name="room_addr_city" />
<!--<a:field name="people_id"/>-->
</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_hsm_ds" editable="false" renderer="getValue" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="Hls_hsm_ds" editable="false" readOnly="true" prompt="合同开始日期" renderer="getFormatDateValue"/>
<a:datePicker name="contract_finish_date" bindtarget="Hls_hsm_ds" editable="false" readOnly="true" prompt="合同结束日期" renderer="getFormatDateValue"/>
</a:box>
<a:grid id="HLS_checkin_people_info_ds_grid" style="width:100%" bindtarget="HLS_checkin_people_info_ds" showRowNumber="true" marginHeight="300" marginWidth="370" title="已入住人员信息">
<a:columns>
<a:column name="staff_no" prompt="已入住人员工号" width="100" />
<a:column name="name" prompt="入住人员姓名" width="100"/>
<a:column name="gender" prompt="性别" width="100"/>
<a:column name="department" prompt="所在部门" width="80"/>
<a:column name="base_in" prompt="base地" width="80"/>
<a:column name="phone_number" prompt="联系电话" width="80"/>
<a:column name="email" prompt="邮箱地址" width="80"/>
<a:column name="leaving_date" prompt="预计入住时间至" width="120"/>
</a:columns>
</a:grid>
<a:grid id="checkin_det" style="width:100%" bindtarget="HLS_create_people_info_ds" navBar="true" showRowNumber="true" height="300" selectable="true" title="新增入住人员">
<a:toolBar>
<a:button text="保存" click="record_save" width="80" />
<a:button text="新增" click="new_hsm" width="80" />
<a:button text="删除" type="delete" width="80" />
</a:toolBar>
<a:columns>
<a:column name="staff_no" editor="hls_hsm_lv" prompt="入住人员工号" width="100" />
<a:column name="name" prompt="入住人员姓名" width="100"/>
<a:column name="gender" prompt="性别" width="100"/>
<a:column name="department" prompt="所在部门" width="80"/>
<a:column name="base_in" prompt="base地" width="80"/>
<a:column name="phone_number" prompt="联系电话" width="80"/>
<a:column name="email" prompt="邮箱地址" width="80"/>
<a:column name="leaving_date" editor="hls_hsm_date" bindtarget="Hls_hsm_ds" prompt="预计入住时间至" width="120"/>
</a:columns>
<a:editors>
<a:datePicker id="hls_hsm_date"/>
<a:lov id="hls_hsm_lv"/>
</a:editors>
</a:grid>
<a:form id="search_room_info" style="width:100%" title="房屋信息">
<a:box column="3">
<a:textField name="room_id" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="Hls_hsm_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="Hls_hsm_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="Hls_hsm_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="Hls_hsm_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="Hls_hsm_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="Hls_hsm_ds" editable="false" prompt="中介联系电话"/>
<a:textField name="room_addr_country" bindtarget="Hls_hsm_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="Hls_hsm_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="Hls_hsm_ds" editable="false" prompt="市"/>
</a:box>
</a:form>
<a:box id="" style="width:100%" >
<a:textField name="message" bindtarget="Hls_hsm_ds" editable="false" width="400" prompt="房屋信息备注"/>
</a:box>
<a:form id="search_contract_info" style="width:100%" title="租金信息">
<a:box column="3">
<a:textField name="month_rent_price" bindtarget="Hls_hsm_ds" editable="false" prompt="月租金"/>
<a:textField name="tenancy_term" bindtarget="Hls_hsm_ds" editable="false" prompt="租期"/>
<a:textField name="agency_fee" bindtarget="Hls_hsm_ds" editable="false" prompt="中介费"/>
<a:textField name="contract_invoice_tax" bindtarget="Hls_hsm_ds" editable="false" prompt="合同发票税" />
<a:textField name="sum_price" bindtarget="Hls_hsm_ds" editable="false" prompt="总金额" />
<a:textField name="remark" bindtarget="Hls_hsm_ds" editable="false" prompt="备注" width="400"/>
</a:box>
<a:box column="1">
<a:textField name="contract_remark" bindtarget="Hls_hsm_ds" prompt="合同备注" width="600"/>
</a:box>
</a:form>
<a:box column="2">
<!--<a:button text="保存" click="record_save" width="80" />-->
<a:button text="返回" click="openWindow" width="80" />
</a:box>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?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"?>
<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/RENT500/Search_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();
//Aurora.showInfoMessage('${l:PROMPT}', '退房成功!', null, 250, 100);
}
//保存成功触发函数
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" 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: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" 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"?>
<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"?>
<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"?>
<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/hls_rent/RENT500/Search_detial.screen"/>
<a:link id="hls_house_contract_add" url="${/request/@context_path}/modules/hls_rent/RENT500/Create_contract.screen"/>
<a:link id="hls_house_contract_modification" url="${/request/@context_path}/modules/hls_rent/RENT500/modification.screen"/>
<a:screenBody>
<script><![CDATA[
function hls_house_query() {
$('hls_search_line_ds').query();
}
function hls_house_contract_link(value, record, name) {
url = $('hls_house_contract_link').getUrl() + '?h_contract_number=' + record.get('h_contract_number');
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 addWindow() {
new Aurora.Window({
id: 'new_information_window',
url: $('hls_house_contract_add').getUrl(),
title: '创建合同信息',
height:480,width:820
});
}
//修改按钮
function modification(){
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 if($('hls_search_line_ds').getSelected().length==1){
var records=$('hls_search_line_ds').getSelected();
if(records[0].get('contract_condition')=='合同确认状态'){
Aurora.showErrorMessage( 'ERROR', '该合同已确认,不能修改!!',null, 200, 100 );
return false;
}else{
//var record=$('hls_search_line_ds').getSelected()[0];
var h_contract_number=records[0].get('h_contract_number');
furl = $('hls_house_contract_modification').getUrl() + '?h_contract_number=' + h_contract_number;
new Aurora.Window({
id: 'modifi_information_window',
url: furl,
title: '修改合同信息',
height:480,width:820
});
}
}
}
//判断选中记录是否有效
function hls_contract_remove_confirm(){
if($('hls_search_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}else{
var records=$('hls_search_line_ds').getSelected();
for(i=0;i<records.length;i++){
if(records[i].get('contract_condition')=='合同确认状态'){
Aurora.showErrorMessage( 'ERROR', '合同状态已确认,不能删除!!',null, 200, 100 );
return false;
}
}
}
return true;
}
//删除按钮
function hls_contract_remove(){
if(hls_contract_remove_confirm()){
$('search_line_grid').remove();
}
return;
}
//判断电话号码是否有效
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="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: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="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_start_date_begin"/>
<a:field name="contract_finish_date_end"/>
<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" autoQuery="true" queryDataSet="hls_search_contract_ds" model="hls_rent.RENT500.HLS_room_contract_info" selectable="true" autoPageSize="true">
<a:field name="h_contract_number"/>
<a:field name="contract_condition"/>
</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="room_abbr" 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:comboBox name="room_type" 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:datePicker name="contract_start_date_begin" bindtarget="hls_search_contract_ds" prompt="合同开始日期从"/>
<a:datePicker name="contract_start_date_end" 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:toolBar>
<a:button click="addWindow" text="新增" width="80"/>
<a:button click="hls_contract_remove" text="删除" width="80" iconAlign="left"/>
<a:button click="modification" text="修改" width="80"/>
</a:toolBar>
<a:columns>
<a:column name="h_contract_number" renderer="hls_house_contract_link" prompt="房屋合同编号" width="140" />
<a:column name="contract_start_date" prompt="合同开始日期" width="100"/>
<a:column name="contract_finish_date" prompt="合同到期日期" width="100"/>
<a:column name="room_abbr" prompt="房屋简称" width="80"/>
<a:column name="room_type" 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="landlord_name" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" prompt="联系电话" width="120"/>
<a:column name="intermediary" prompt="中介名称" width="80"/>
<a:column name="contract_condition" prompt="房屋合同状态" width="120"/>
<a:column name="contract_remark" prompt="合同备注" width="80"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
create or replace package HLS_Contract_info_pkg is
-- Author : WWW
-- Created : 2018/8/8 18:51:12
-- Purpose :
procedure insert_contract_info(p_contract_start_date date,
p_contract_finish_date date,
p_room_id number,
p_month_rent_price number,
p_tenancy_term number,
p_agency_fee number,
p_Contract_invoice_tax number,
p_sum_price number,
p_remark varchar2,
p_contract_remark varchar2);
procedure update_contract_info(p_h_contract_number varchar2,
p_contract_start_date date,
p_contract_finish_date date,
p_room_id number,
p_month_rent_price number,
p_tenancy_term number,
p_agency_fee number,
p_Contract_invoice_tax number,
p_sum_price number,
p_currency varchar2,
p_remark varchar2,
p_contract_remark varchar2) ;
procedure modifi_contract_condition(p_h_contract_number varchar2);
end HLS_Contract_info_pkg;
/
create or replace package body HLS_Contract_info_pkg is
-- Function and procedure implementations
procedure insert_contract_info(p_contract_start_date date,
p_contract_finish_date date,
p_room_id number,
p_month_rent_price number,
p_tenancy_term number,
p_agency_fee number,
p_Contract_invoice_tax number,
p_sum_price number,
p_remark varchar2,
p_contract_remark varchar2) is
v_contract_ID number;
v_h_contract_number varchar2(100);
begin
v_contract_ID := HLS_Contract_info_s.Nextval;
v_h_contract_number := 'FWHT' || to_char(sysdate, 'yyyymm') ||
trim(to_char(1000 + HLS_Contract_info_s1.Nextval));
insert into HLS_Contract_info
(contract_ID,
h_contract_number,
contract_start_date,
contract_finish_date,
room_id,
contract_condition,
month_rent_price,
tenancy_term,
agency_fee,
Contract_invoice_tax,
sum_price,
currency,
remark,
contract_remark,
CREATION_DATE,
created_by,
last_updated_by,
last_update_date)
values
(v_contract_ID,
v_h_contract_number,
p_contract_start_date,
p_contract_finish_date,
p_room_id,
'type1',
p_month_rent_price,
p_tenancy_term,
p_agency_fee,
p_contract_invoice_tax,
p_sum_price,
'ÈËÃñ±Ò',
p_remark,
p_contract_remark,
sysdate,
1,
-1,
sysdate);
end;
procedure update_contract_info(p_h_contract_number varchar2,
p_contract_start_date date,
p_contract_finish_date date,
p_room_id number,
p_month_rent_price number,
p_tenancy_term number,
p_agency_fee number,
p_Contract_invoice_tax number,
p_sum_price number,
p_currency varchar2,
p_remark varchar2,
p_contract_remark varchar2) is
begin
update HLS_Contract_info
set contract_start_date = p_contract_start_date,
contract_finish_date = p_contract_finish_date,
room_id = p_room_id,
month_rent_price = p_month_rent_price,
tenancy_term = p_tenancy_term,
agency_fee = p_agency_fee,
Contract_invoice_tax = p_Contract_invoice_tax,
sum_price = p_sum_price,
currency = p_currency,
remark = p_remark,
contract_remark = p_contract_remark,
created_by = 1,
last_updated_by = -1,
last_update_date = sysdate
where h_contract_number = p_h_contract_number;
end;
procedure modifi_contract_condition(p_h_contract_number varchar2) is
begin
update HLS_Contract_info
set contract_condition = 'type2'
where h_contract_number = p_h_contract_number;
end;
end HLS_Contract_info_pkg;
/
create or replace package Hls_check_out is
-- Author : WWW
-- Created : 2018/8/15 16:27:42
-- Purpose :
procedure checkout(p_staff_no varchar2,
p_room_id number,
p_check_out_date date);
end Hls_check_out;
/
create or replace package body Hls_check_out is
procedure checkout(p_staff_no varchar2,
p_room_id number,
p_check_out_date date) is
begin
update hls_hsm
set people_status = 'type3',
check_out_date = p_check_out_date
where staff_no = p_staff_no;
update hls_room_info
set bed_used = bed_used - 1, bed_free = bed_free + 1
where room_id = p_room_id;
end;
end Hls_check_out;
/
create or replace package Hls_checkin is
-- Author : WWW
-- Created : 2018/8/14 14:55:49
-- Purpose : ⷿϵͳס̹
procedure checkin(p_staff_no varchar2,
h_contract_number varchar2,
p_room_id number,
p_leaving_date date);
end Hls_checkin;
/
create or replace package body Hls_checkin is
procedure checkin(p_staff_no varchar2,
h_contract_number varchar2,
p_room_id number,
p_leaving_date date) is
begin
update hls_hsm
set people_status = 'type2',
contract_no = h_contract_number,
leaving_date = p_leaving_date,
live_start_date = sysdate
where staff_no = p_staff_no;
update hls_room_info
set bed_used = bed_used + 1, bed_free = bed_free - 1
where room_id = p_room_id;
end;
end Hls_checkin;
/
create or replace package hls_rent_pkg is
-- Author : CONGWEIJING
-- Created : 2018/8/8 14:11:50
-- Purpose :
type ref_cursor is ref cursor;
procedure insert_room_info(p_room_type in varchar2,
p_room_area varchar2,
p_bed_free varchar2,
p_landlord_name varchar2,
p_landlord_tel varchar2,
p_room_addr_country varchar2,
p_room_addr_province varchar2,
p_room_addr_city varchar2,
p_room_abbr varchar2,
p_intermediary varchar2,
p_intermediary_name varchar2,
p_intermediary_tel varchar2,
p_message varchar2);
--费用表插入
procedure insert_rent_fee_info(p_fee_no varchar2,
p_fee_add_date date,
p_fee_first_date date,
p_fee_last_date date,
p_fee_items varchar2,
p_fee_sources varchar2,
p_fee_objects varchar2,
p_fee_amounts number,
p_fee_currency varchar2,
p_message varchar2);
/*--费用明细表插入
procedure insert_rent_fee_detail(p_room_id in varchar2,
p_fee_items in varchar2,
p_fee_amounts in number,
p_fee_first_date in date,
p_fee_last_date in date);*/
--根据房屋编号更新房屋信息
procedure update_room_info(p_room_no in varchar2,
p_room_type in varchar2,
p_room_area varchar2,
p_bed varchar2,
p_landlord_name varchar2,
p_landlord_tel varchar2,
p_room_addr_country varchar2,
p_room_addr_province varchar2,
p_room_addr_city varchar2,
p_room_abbr varchar2,
p_intermediary varchar2,
p_intermediary_name varchar2,
p_intermediary_tel varchar2,
p_message varchar2);
--插入一条手工收款数据
procedure insert_receipt_fee(p_receipt_objects in varchar2,
p_receipt_date date,
p_receipt_ways varchar2,
p_receipt_sources varchar2,
p_receipt_amounts varchar2,
p_currency varchar2,
p_message varchar2);
--插入人员信息
procedure insert_people_info(
/* p_personnel_no in varchar2,*/p_staff_no in varchar2,
p_name in varchar2,
p_gender in varchar2,
p_department in varchar2,
p_base_in in varchar2,
p_phone_number in varchar2,
p_email in varchar2,
p_message in varchar2);
--根据人员编号更新人员信息
procedure update_people_info(p_personnel_no in varchar2,
p_staff_no in varchar2,
p_name in varchar2,
p_gender in varchar2,
p_department in varchar2,
p_base_in in varchar2,
p_phone_number in varchar2,
p_email in varchar2,
p_message in varchar2);
--费用明细表
procedure insert_fee_detail_by_staffno(p_room_id in varchar2,
p_fee_items in varchar2,
p_fee_amounts in number,
p_fee_first_date in date,
p_fee_last_date in date);
--手工核销提交
procedure verification_insert_update(p_contract_no varchar2,
p_receipt_no varchar2,
p_staff_no varchar2,
p_verification_rental number,
p_verification_water number,
p_verification_electric number,
p_verification_network number,
p_verification_cable number,
p_receipt_sources varchar2,
p_message varchar2);
--核销事务表插入
procedure insert_payment_verification(v_verification_id number,
v_verification_no varchar2,
v_contract_no varchar2,
v_creditor_project varchar2,
v_verification_date varchar2,
v_source_type varchar2,
v_source_object varchar2,
v_receipt_no varchar2,
v_currency varchar2,
v_message varchar2,
v_verification_fee number);
end hls_rent_pkg;
/
create or replace package body hls_rent_pkg is
procedure insert_room_info(p_room_type in varchar2,
p_room_area varchar2,
p_bed_free varchar2,
p_landlord_name varchar2,
p_landlord_tel varchar2,
p_room_addr_country varchar2,
p_room_addr_province varchar2,
p_room_addr_city varchar2,
p_room_abbr varchar2,
p_intermediary varchar2,
p_intermediary_name varchar2,
p_intermediary_tel varchar2,
p_message varchar2) is
v_room_id number := hls_room_info_s.nextval;
v_room_no varchar2(30);
begin
select 'FW' || to_char(sysdate, 'YYYYmmdd') ||
trim(to_char((1000 + hls_room_info_s1.nextval)))
into v_room_no
from dual;
insert into hls_room_info
(room_id,
room_no,
room_abbr,
room_type,
room_area,
bed,
bed_used,
bed_free,
landlord_name,
landlord_tel,
intermediary,
intermediary_name,
intermediary_tel,
message,
room_addr_country,
room_addr_province,
room_addr_city,
room_status,
creation_date,
created_by,
last_updated_by,
last_update_date)
values
(v_room_id,
v_room_no,
p_room_abbr,
p_room_type,
p_room_area,
p_bed_free,
0,
p_bed_free,
p_landlord_name,
p_landlord_tel,
p_intermediary,
p_intermediary_name,
p_intermediary_tel,
p_message,
p_room_addr_country,
p_room_addr_province,
p_room_addr_city,
'status1',
sysdate,
1,
-1,
sysdate);
end insert_room_info;
--费用单新增
procedure insert_rent_fee_info(p_fee_no varchar2,
p_fee_add_date date,
p_fee_first_date date,
p_fee_last_date date,
p_fee_items varchar2,
p_fee_sources varchar2,
p_fee_objects varchar2,
p_fee_amounts number,
p_fee_currency varchar2,
p_message varchar2) is
v_fee_id hls_rent_fee_info.fee_id%type := hls_rent_fee_info_s.nextval;
v_fee_no hls_rent_fee_info.fee_no%type := 'FYD' ||
to_char(sysdate, 'yyyymmdd') ||
trim(to_char(1000 + v_fee_id));
begin
insert into hls_rent_fee_info
(fee_id,
fee_no,
fee_add_date,
fee_first_date,
fee_last_date,
fee_items,
fee_sources,
fee_objects,
fee_amounts,
fee_currency,
message,
created_by,
creation_date,
last_updated_by,
last_update_date)
values
(v_fee_id,
v_fee_no,
p_fee_add_date,
p_fee_first_date,
p_fee_last_date,
p_fee_items,
p_fee_sources,
p_fee_objects,
p_fee_amounts,
p_fee_currency,
p_message,
1,
sysdate,
-1,
sysdate);
insert_fee_detail_by_staffno(p_fee_objects,
p_fee_items,
p_fee_amounts,
p_fee_first_date,
p_fee_last_date);
end insert_rent_fee_info;
/*--按新增的一条收费费用来计算明细
procedure insert_rent_fee_detail(p_room_id in varchar2,
p_fee_items in varchar2,
p_fee_amounts in number,
p_fee_first_date in date,
p_fee_last_date in date) is
v_every_date date := p_fee_first_date;
v_fee_detail_id number;
v_contract_no varchar2(30);
v_count number;
v_room_price number;
v_water_price number;
v_electric_price number;
v_network_price number;
v_cable_price number;
v_fee_period number := 1;
cursor fee_cursor is
select hfi.fee_no fee_no,
hfi.fee_first_date fee_first_date,
hfi.fee_last_date fee_last_date,
hfi.fee_items fee_items,
hfi.fee_objects fee_objects,
hfi.fee_amounts fee_amounts
from hls_rent_fee_info hfi;
begin
select hls_contract_info.contract_id
into v_contract_no
from hls_contract_info
where hls_contract_info.room_id = p_room_id;
for i_cursor in fee_cursor loop
--判断期数,
\* 传入的房间号与表中原存在的房间号逐一遍历进行对比,
如果之前存在此房间号且各项费用都收取一次则判定此次
为二期收费*\
--房间号相同且收费项目与之前存在项目相同,
if i_cursor.fee_objects = p_room_id and
i_cursor.fee_items = p_fee_items then
v_fee_period := v_fee_period + 1;
\* else
v_fee_period := 1;*\
end if;
end loop;
--从费用开始日+1循环到费用结束日,根据room_id计算在员工租住时间内这一天所住的人数
while v_every_date < p_fee_last_date loop
select count(hh.staff_no)
into v_count
from hls_hsm hh, hls_contract_info hci
where hh.contract_no = hci.h_contract_number
and hci.room_id = p_room_id
and v_every_date between hh.live_start_date and hh.check_out_date;
--根据合同号及这一天租住的人数分摊日租金
select round((hci1.sum_price /
(hci1.contract_finish_date - hci1.contract_start_date)) /
v_count,
2)
into v_room_price
from hls_hsm hh1, hls_contract_info hci1
where hh1.contract_no = hci1.h_contract_number
and hci1.room_id = p_room_id;
--同理计算这一天的各项费用
--计算水费
if p_fee_items = 'fee_items_1' then
select round((p_fee_amounts / (p_fee_last_date - p_fee_first_date)) /
v_count,
2)
into v_water_price
from dual;
end if;
--计算电费
if p_fee_items = 'fee_items_2' then
select round((p_fee_amounts / (p_fee_last_date - p_fee_first_date)) /
v_count,
2)
into v_electric_price
from dual;
end if;
--计算网络费用
if p_fee_items = 'fee_items_3' then
select round((p_fee_amounts / (p_fee_last_date - p_fee_first_date)) /
v_count,
2)
into v_network_price
from dual;
end if;
--计算有线电视费用
if p_fee_items = 'fee_items_4' then
select round((p_fee_amounts / (p_fee_last_date - p_fee_first_date)) /
v_count,
2)
into v_cable_price
from dual;
end if;
v_fee_detail_id := hls_fee_detail_s.nextval;
--如果一期别的费用数据过长
insert into hls_fee_detail
(fee_detail_id,
starff_no,
periods,
apportion_rental,
apportion_water,
apportion_electric,
apportion_network,
apportion_cable)
values
(v_fee_detail_id,
v_contract_no,
v_fee_period,
v_room_price,
v_water_price,
v_electric_price,
v_network_price,
v_cable_price);
v_every_date := v_every_date + 1;
end loop;
end insert_rent_fee_detail;*/
--根据房屋编号更新房屋信息
procedure update_room_info(p_room_no in varchar2,
p_room_type in varchar2,
p_room_area varchar2,
p_bed varchar2,
p_landlord_name varchar2,
p_landlord_tel varchar2,
p_room_addr_country varchar2,
p_room_addr_province varchar2,
p_room_addr_city varchar2,
p_room_abbr varchar2,
p_intermediary varchar2,
p_intermediary_name varchar2,
p_intermediary_tel varchar2,
p_message varchar2) is
v_room_type varchar2(200) := p_room_type;
v_room_area varchar2(200) := p_room_area;
v_bed varchar2(200) := p_bed;
v_room_addr_country varchar2(200) := p_room_addr_country;
v_room_addr_province varchar2(200) := p_room_addr_province;
v_room_addr_city varchar2(200) := p_room_addr_city;
begin
if (v_room_type is null or v_room_type = '') then
select h.room_type
into v_room_type
from hls_room_info h
where h.room_no = p_room_no;
end if;
if (v_room_area is null or v_room_area = '') then
select h.room_area
into v_room_area
from hls_room_info h
where h.room_no = p_room_no;
end if;
if (v_bed is null or v_bed = '') then
select h.bed
into v_bed
from hls_room_info h
where h.room_no = p_room_no;
end if;
if (v_room_addr_country is null or v_room_addr_country = '') then
select h.room_addr_country
into v_room_addr_country
from hls_room_info h
where h.room_no = p_room_no;
end if;
if (v_room_addr_province is null or v_room_addr_province = '') then
select h.room_addr_province
into v_room_addr_province
from hls_room_info h
where h.room_no = p_room_no;
end if;
if (v_room_addr_city is null or v_room_addr_city = '') then
select h.room_addr_city
into v_room_addr_city
from hls_room_info h
where h.room_no = p_room_no;
end if;
update hls_room_info
set room_abbr = p_room_abbr,
room_type = v_room_type,
room_area = v_room_area,
bed = v_bed,
landlord_name = p_landlord_name,
landlord_tel = p_landlord_tel,
intermediary = p_intermediary,
intermediary_name = p_intermediary_name,
intermediary_tel = p_intermediary_tel,
message = p_message,
room_addr_country = v_room_addr_country,
room_addr_province = v_room_addr_province,
room_addr_city = v_room_addr_city,
last_update_date = sysdate
where room_no = p_room_no;
end;
--插入一条手工收款数据
procedure insert_receipt_fee(p_receipt_objects in varchar2,
p_receipt_date date,
p_receipt_ways varchar2,
p_receipt_sources varchar2,
p_receipt_amounts varchar2,
p_currency varchar2,
p_message varchar2) is
v_receipt_id number := hls_rent_receipt_fee_s.nextval;
v_receipt_no varchar2(30);
v_contract_no varchar2(30); --根据员工编号查找合同编号
v_count number;
begin
select 'SKXZ' || to_char(sysdate, 'YYYYmmdd') ||
trim(to_char((1000 + hls_rent_receipt_fee_s1.nextval)))
into v_receipt_no
from dual;
select contract_no
into v_contract_no
from hls_hsm
where staff_no = p_receipt_objects;
if p_receipt_sources = 'room_people' then
select count(1)
into v_count
from hls_rent_receipt_fee hrf
where hrf.receipt_objects = p_receipt_objects;
if v_count != 0 then
update hls_rent_receipt_fee hrf
set hrf.receipt_amounts = hrf.receipt_amounts + p_receipt_amounts
where hrf.receipt_objects = p_receipt_objects;
else
insert into hls_rent_receipt_fee
(receipt_id,
receipt_no,
receipt_sources,
receipt_objects,
receipt_ways,
receipt_date,
receipt_amounts,
currency,
contract_no,
message,
creation_date,
created_by,
last_updated_by,
last_update_date)
values
(v_receipt_id,
v_receipt_no,
p_receipt_sources,
p_receipt_objects,
p_receipt_ways,
p_receipt_date,
p_receipt_amounts,
p_currency,
v_contract_no,
p_message,
sysdate,
1,
-1,
sysdate);
end if;
else
insert into hls_rent_receipt_fee
(receipt_id,
receipt_no,
receipt_sources,
receipt_objects,
receipt_ways,
receipt_date,
receipt_amounts,
currency,
contract_no,
message,
creation_date,
created_by,
last_updated_by,
last_update_date)
values
(v_receipt_id,
v_receipt_no,
'others',
'',
p_receipt_ways,
p_receipt_date,
p_receipt_amounts,
p_currency,
v_contract_no,
p_message,
sysdate,
1,
-1,
sysdate);
end if;
end insert_receipt_fee;
--插入人员信息
procedure insert_people_info(
/* p_personnel_no in varchar2,*/p_staff_no in varchar2,
p_name in varchar2,
p_gender in varchar2,
p_department in varchar2,
p_base_in in varchar2,
p_phone_number in varchar2,
p_email in varchar2,
p_message in varchar2) is
v_people_id number := hls_people_info_s.nextval;
v_personnel_no varchar2(30);
begin
select 'RZRY' || to_char(sysdate, 'YYYYMM') ||
trim(to_char((1000 + hls_people_info_s1.nextval)))
into v_personnel_no
from dual;
insert into hls_hsm
(people_id,
personnel_no,
staff_no,
name,
gender,
department,
base_in,
phone_number,
people_status,
email,
message,
leaving_date,
live_start_date,
created_by,
creation_date,
last_updated_by,
last_update_date)
values
(v_people_id,
v_personnel_no,
p_staff_no,
p_name,
p_gender,
p_department,
p_base_in,
p_phone_number,
'type1',
p_email,
p_message,
sysdate,
sysdate,
1,
sysdate,
-1,
sysdate);
end;
--根据人员编号更新人员信息
procedure update_people_info(p_personnel_no in varchar2,
p_staff_no in varchar2,
p_name in varchar2,
p_gender in varchar2,
p_department in varchar2,
p_base_in in varchar2,
p_phone_number in varchar2,
p_email in varchar2,
p_message in varchar2) is
v_gender varchar2(30) := p_gender;
v_department varchar2(30) := p_department;
v_base_in varchar2(30) := p_base_in;
begin
if (v_gender is null or v_gender = '') then
select h.gender
into v_gender
from hls_hsm h
where h.personnel_no = p_personnel_no;
end if;
if (v_department is null or v_department = '') then
select h.department
into v_department
from hls_hsm h
where h.personnel_no = p_personnel_no;
end if;
if (v_base_in is null or v_base_in = '') then
select h.base_in
into v_base_in
from hls_hsm h
where h.personnel_no = p_personnel_no;
end if;
update hls_hsm
set staff_no = p_staff_no,
name = p_name,
gender = v_gender,
department = v_department,
base_in = v_base_in,
phone_number = p_phone_number,
email = p_email,
message = p_message,
last_update_date = sysdate
where personnel_no = p_personnel_no;
end;
procedure insert_fee_detail_by_staffno(p_room_id in varchar2,
p_fee_items in varchar2,
p_fee_amounts in number,
p_fee_first_date in date,
p_fee_last_date in date) is
v_every_date date := p_fee_first_date;
v_fee_detail_id number;
v_starff_no varchar2(30);
v_count number;
v_room_price number;
v_water_price number;
v_electric_price number;
v_network_price number;
v_cable_price number;
v_fee_period number := 1;
type staff_type is table of hls_hsm.staff_no%type index by binary_integer;
v_staff_table staff_type;
cursor fee_cursor is
select hfi.fee_no fee_no,
hfi.fee_first_date fee_first_date,
hfi.fee_last_date fee_last_date,
hfi.fee_items fee_items,
hfi.fee_objects fee_objects,
hfi.fee_amounts fee_amounts
from hls_rent_fee_info hfi;
begin
for i_cursor in fee_cursor loop
if (i_cursor.fee_items != null or i_cursor.fee_items != '') and
(i_cursor.fee_objects != null or i_cursor.fee_items != '') then
if i_cursor.fee_items = p_fee_items and
i_cursor.fee_objects = p_room_id then
v_fee_period := v_fee_period + 1;
end if;
end if;
end loop;
while v_every_date <= p_fee_last_date loop
select count(hh.staff_no)
into v_count
from hls_hsm hh, hls_contract_info hci
where hh.contract_no = hci.h_contract_number
and hci.room_id = p_room_id
and v_every_date between hh.live_start_date and
nvl(hh.check_out_date, date '2099-01-01');
--得到这一天住在该房间的每一员工的员工号
if v_count > 0 then
for i in 1 .. v_count loop
select staff_no
into v_staff_table(i)
from (select hh.staff_no
from hls_hsm hh, hls_contract_info hci
where hh.contract_no = hci.h_contract_number
and hci.room_id = p_room_id
and (v_every_date between hh.live_start_date and
nvl(hh.check_out_date, date '2099-01-01'))
and rownum <= i)
minus (select hh.staff_no
from hls_hsm hh, hls_contract_info hci
where hh.contract_no = hci.h_contract_number
and hci.room_id = p_room_id
and (v_every_date between hh.live_start_date and
nvl(hh.check_out_date, date '2099-01-01'))
and rownum <= i - 1);
end loop;
--根据员工号以及收费项目进行收费明细表的数据插入(每位员工都进行数据平摊并插入)
for i in 1 .. v_count loop
/*计算日租金的平摊,由于日租金是按总金额除以合同生效结束日,所以日租金固定
这里会出现相同的多行数据,故取rownum=1;
人数不同平摊金额不一样,取rownum=1的日租金来除以人数进行平摊*/
select round((hci1.sum_price / (hci1.contract_finish_date -
hci1.contract_start_date)) / v_count,
2)
into v_room_price
from hls_hsm hh1, hls_contract_info hci1
where hh1.contract_no = hci1.h_contract_number
and hci1.room_id = p_room_id
and rownum <= 1;
--同理计算这一天的各项费用
--计算水费
if p_fee_items = 'fee_items_1' then
select round((p_fee_amounts /
(p_fee_last_date - p_fee_first_date)) / v_count,
2)
into v_water_price
from dual;
end if;
--计算电费
if p_fee_items = 'fee_items_2' then
select round((p_fee_amounts /
(p_fee_last_date - p_fee_first_date)) / v_count,
2)
into v_electric_price
from dual;
end if;
--计算网络费用
if p_fee_items = 'fee_items_3' then
select round((p_fee_amounts /
(p_fee_last_date - p_fee_first_date)) / v_count,
2)
into v_network_price
from dual;
end if;
--计算有线电视费用
if p_fee_items = 'fee_items_4' then
select round((p_fee_amounts /
(p_fee_last_date - p_fee_first_date)) / v_count,
2)
into v_cable_price
from dual;
end if;
v_fee_detail_id := hls_fee_detail_s.nextval;
/* 对于今天还在住宿的员工来说算出其所平摊的费用即可插入明细表
,遍历住在同一房间的每位员工 */
insert into hls_fee_detail
(fee_detail_id,
staff_no,
periods,
apportion_rental,
apportion_water,
apportion_electric,
apportion_network,
apportion_cable)
values
(v_fee_detail_id,
v_staff_table(i),
v_fee_period,
v_room_price,
v_water_price,
v_electric_price,
v_network_price,
v_cable_price);
end loop;
end if;
v_every_date := v_every_date + 1;
end loop;
end insert_fee_detail_by_staffno;
--手工核销提交
procedure verification_insert_update(p_contract_no varchar2,
p_receipt_no varchar2,
p_staff_no varchar2,
p_verification_rental number,
p_verification_water number,
p_verification_electric number,
p_verification_network number,
p_verification_cable number,
p_receipt_sources varchar2,
p_message varchar2) is
cursor verification_cursor is
select hpv.creditor_project creditor_project,
hpv.source_type source_type,
hpv.receipt_no receipt_no,
hpv.source_object source_object,
hpv.verification_fee verification_fee
from hls_payment_verification hpv
where hpv.contract_no = p_contract_no;
v_update_insert varchar2(30) := 'insert';
v_verification_no varchar2(30);
v_number_contract number;
v_number_staff number;
begin
select 'SKHX' || to_char(sysdate, 'yyyymmdd') ||
trim(to_char(1000 + hls_payment_verification_s.nextval))
into v_verification_no
from dual;
--如果合同存在,游标不为空,则根据员工号更新数据
--如果该合同下的员工存在,则更新
--不存在,则插入
select count(1)
into v_number_contract
from hls_payment_verification hpv
where hpv.contract_no = p_contract_no;
if v_number_contract != 0 then
select count(1)
into v_number_staff
from hls_payment_verification hpv
where hpv.source_object = p_staff_no;
--租金
if v_number_staff != 0 then
--存在即更新,
update hls_payment_verification hpv
set hpv.verification_fee = p_verification_rental +
hpv.verification_fee
where hpv.source_object = p_staff_no
and hpv.creditor_project = '租金';
--水
update hls_payment_verification hpv
set hpv.verification_fee = p_verification_water +
hpv.verification_fee
where hpv.source_object = p_staff_no
and hpv.creditor_project = 'fee_items_1';
--电
update hls_payment_verification hpv
set hpv.verification_fee = p_verification_electric +
hpv.verification_fee
where hpv.source_object = p_staff_no
and hpv.creditor_project = 'fee_items_2';
--网络
update hls_payment_verification hpv
set hpv.verification_fee = p_verification_rental +
hpv.verification_fee
where hpv.source_object = p_staff_no
and hpv.creditor_project = 'fee_items_3';
--电视
update hls_payment_verification hpv
set hpv.verification_fee = p_verification_rental +
hpv.verification_fee
where hpv.source_object = p_staff_no
and hpv.creditor_project = 'fee_items_4';
else
--租金
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'租金',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_rental);
--水
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_1',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_water);
--电
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_2',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_electric);
--网络
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_3',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_network);
--电视
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_4',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_cable);
end if;
------------------------
else
--租金
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'租金',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_rental);
--水
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_1',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_water);
--电
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_2',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_electric);
--网络
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_3',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_network);
--电视
insert_payment_verification(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
'fee_items_4',
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_cable);
end if;
--更新收款事务表
update hls_rent_receipt_fee hrf
set hrf.verification_amounts = nvl(p_verification_rental, 0) +
nvl(p_verification_water, 0) +
nvl(p_verification_electric, 0) +
nvl(p_verification_network, 0) +
nvl(p_verification_cable, 0) +
nvl(hrf.verification_amounts, 0),
hrf.verification_no = v_verification_no
where hrf.receipt_objects = p_staff_no;
end verification_insert_update;
--插入核销事务表
procedure insert_payment_verification(v_verification_id number,
v_verification_no varchar2,
v_contract_no varchar2,
v_creditor_project varchar2,
v_verification_date varchar2,
v_source_type varchar2,
v_source_object varchar2,
v_receipt_no varchar2,
v_currency varchar2,
v_message varchar2,
v_verification_fee number) is
begin
insert into hls_payment_verification
(verification_id,
verification_no,
contract_no,
creditor_project,
verification_date,
source_type,
source_object,
receipt_no,
currency,
message,
verification_fee)
values
(v_verification_id,
v_verification_no,
v_contract_no,
v_creditor_project,
v_verification_date,
v_source_type,
v_source_object,
v_receipt_no,
v_currency,
v_message,
v_verification_fee);
end insert_payment_verification;
end hls_rent_pkg;
/
begin
--清除function-service关系和function-bm关系
--sys_function_assign_pkg.func_clear('func_code');
--页面注册(页面路径,页面名称,三个权限)
sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkin1.screen','新人员入住',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkin2.screen','入住详情',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkout.screen','人员退房',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkin_save.svc','人员入住SVC',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkout_save.svc','人员退房SVC',0,0,0);
--功能定义
sys_function_assign_pkg.func_load('RENT4001','新人员入住','','F','modules/hls_rent/RENT400/checkin1.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT4001','新人员入住','','F','modules/hls_rent/RENT400/checkin1.screen','1','US');
sys_function_assign_pkg.func_load('RENT4002','人员退房','','F','modules/hls_rent/RENT400/checkout.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT4002','人员退房','','F','modules/hls_rent/RENT400/checkout.screen','1','US');
--功能分配角色
--sys_function_assign_pkg.role_func_load('role_code','func_code');
--分配页面
sys_function_assign_pkg.func_service_load('RENT4001','modules/hls_rent/RENT400/checkin1.screen');
sys_function_assign_pkg.func_service_load('RENT4001','modules/hls_rent/RENT400/checkin2.screen');
sys_function_assign_pkg.func_service_load('RENT4002','modules/hls_rent/RENT400/checkout.screen');
sys_function_assign_pkg.func_service_load('RENT4002','modules/hls_rent/RENT500/Search_detial.screen');
--分配bm, bm位置:WEB-INF/classes/
sys_function_assign_pkg.func_bm_load('RENT4001','hls_rent.RENT400.checkin_save');
sys_function_assign_pkg.func_bm_load('RENT4001','hls_rent.RENT500.HLS_room_contract_info');
sys_function_assign_pkg.func_bm_load('RENT4001','hls_rent.RENT400.hls_hsm_info');
sys_function_assign_pkg.func_bm_load('RENT4001','hls_rent.RENT400.HLS_checkedIn_people_info');
sys_function_assign_pkg.func_bm_load('RENT4002','hls_rent.RENT400.checkout');
sys_function_assign_pkg.func_bm_load('RENT4002','hls_rent.RENT400.check_out_save');
--菜单定义,参数:p_function_group_code菜单code
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT4000',p_function_code=>'RENT4001',p_enabled_flag=>'Y',P_USER_ID=>-1);
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT4000',p_function_code=>'RENT4002',p_enabled_flag=>'Y',P_USER_ID=>-1);
end;
--注意:最后再更新一下缓存
/
commit;
\ No newline at end of file
begin
--清除function-service关系和function-bm关系
--sys_function_assign_pkg.func_clear('func_code');
--页面注册(页面路径,页面名称,三个权限)
sys_function_assign_pkg.service_load('modules/hls_rent/RENT500/Create_contract.screen','租房合同新增',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT500/modification.screen','租房合同修改',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT500/search_contract.screen','租房合同',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT500/Search_detial.screen','租房合同详情',0,0,0);
--功能定义
sys_function_assign_pkg.func_load('RENT5001','租房合同新增与维护','','F','modules/hls_rent/RENT500/search_contract.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT5001','租房合同新增与维护','','F','modules/hls_rent/RENT500/search_contract.screen','1','US');
--功能分配角色
--sys_function_assign_pkg.role_func_load('role_code','func_code');
--分配页面
sys_function_assign_pkg.func_service_load('RENT5001','modules/hls_rent/RENT500/Create_contract.screen');
sys_function_assign_pkg.func_service_load('RENT5001','modules/hls_rent/RENT500/modification.screen');
sys_function_assign_pkg.func_service_load('RENT5001','modules/hls_rent/RENT500/search_contract.screen');
sys_function_assign_pkg.func_service_load('RENT5001','modules/hls_rent/RENT500/Search_detial.screen');
--分配bm, bm位置:WEB-INF/classes/
sys_function_assign_pkg.func_bm_load('RENT5001','hls_rent.RENT500.HLS_Contract_info');
sys_function_assign_pkg.func_bm_load('RENT5001','hls_rent.RENT500.HLS_room_contract_info');
sys_function_assign_pkg.func_bm_load('RENT5001','hls_rent.RENT500.HLS_room_info');
sys_function_assign_pkg.func_bm_load('RENT5001','hls_rent.RENT500.modification_contract');
sys_function_assign_pkg.func_bm_load('RENT5001','hls_rent.RENT500.contract_condition');
--菜单定义,参数:p_function_group_code菜单code
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT5000',p_function_code=>'RENT5001',p_enabled_flag=>'Y',P_USER_ID=>-1);
end;
--注意:最后再更新一下缓存
/
commit;
\ No newline at end of file
begin
--清除function-service关系和function-bm关系
--sys_function_assign_pkg.func_clear('func_code');
--页面注册(页面路径,页面名称,三个权限)
sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_receipt_fee.screen','收款事物查询',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_manual_receipt.screen','手工收款新增',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_receipt_verification.screen','收款核销事务查询',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/manual_verification.screen','手工核销',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_fee_add.screen','费用新增',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_fee_information.screen','费用查询',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_manual_verification.screen','收款核销',0,0,0);
--功能定义
sys_function_assign_pkg.func_load('RENT3003','收款核销事务查询','','F','modules/hls_rent/RENT300/rent_receipt_verification.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT3003','收款核销事务查询','','F','modules/hls_rent/RENT300/rent_receipt_verification.screen','1','US');
sys_function_assign_pkg.func_load('RENT3004','收款事物查询','','F','modules/hls_rent/RENT300/rent_receipt_fee.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT3004','收款事物查询','','F','modules/hls_rent/RENT300/rent_receipt_fee.screen','1','US');
sys_function_assign_pkg.func_load('RENT3005','手工收款新增','','F','modules/hls_rent/RENT300/rent_manual_receipt.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT3005','手工收款新增','','F','modules/hls_rent/RENT300/rent_manual_receipt.screen','1','US');
sys_function_assign_pkg.func_load('RENT3001','费用信息查询','','F','modules/hls_rent/RENT300/rent_fee_information.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT3001','费用信息查询','','F','modules/hls_rent/RENT300/rent_fee_information.screen','1','US');
sys_function_assign_pkg.func_load('RENT3006','核销页面','','F','modules/hls_rent/RENT300/manual_verification.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT3006','核销页面','','F','modules/hls_rent/RENT300/manual_verification.screen','1','US');
--功能分配角色
--sys_function_assign_pkg.role_func_load('role_code','func_code');
--分配页面
sys_function_assign_pkg.func_service_load('RENT3003','modules/hls_rent/RENT300/rent_receipt_verification.screen');
sys_function_assign_pkg.func_service_load('RENT3004','modules/hls_rent/RENT300/rent_receipt_fee.screen');
sys_function_assign_pkg.func_service_load('RENT3005','modules/hls_rent/RENT300/rent_manual_receipt.screen');
sys_function_assign_pkg.func_service_load('RENT3001','modules/hls_rent/RENT300/rent_fee_information.screen');
sys_function_assign_pkg.func_service_load('RENT3001','modules/hls_rent/RENT300/rent_fee_add.screen');
sys_function_assign_pkg.func_service_load('RENT3006','modules/hls_rent/RENT300/manual_verification.screen');
sys_function_assign_pkg.func_service_load('RENT3006','modules/hls_rent/RENT300/rent_manual_verification.screen');
--分配bm, bm位置:WEB-INF/classes/
sys_function_assign_pkg.func_bm_load('RENT3003','hls_rent.RENT300.rent_fee_currency');
sys_function_assign_pkg.func_bm_load('RENT3003','hls_rent.RENT300.rent_source_object');
sys_function_assign_pkg.func_bm_load('RENT3003','hls_rent.RENT300.rent_ver_search');
sys_function_assign_pkg.func_bm_load('RENT3004','hls_rent.RENT300.rent_source_object');
sys_function_assign_pkg.func_bm_load('RENT3004','hls_rent.RENT300.rent_receipt_fee');
sys_function_assign_pkg.func_bm_load('RENT3005','hls_rent.RENT300.rent_source_object');
sys_function_assign_pkg.func_bm_load('RENT3005','hls_rent.RENT300.rent_fee_currency');
sys_function_assign_pkg.func_bm_load('RENT3001','hls_rent.RENT300.rent_fee_add');
sys_function_assign_pkg.func_bm_load('RENT3001','hls_rent.RENT300.rent_fee_currency');
sys_function_assign_pkg.func_bm_load('RENT3001','hls_rent.RENT300.rent_fee_objects');
sys_function_assign_pkg.func_bm_load('RENT3001','hls_rent.RENT300.rent_fee_query');
sys_function_assign_pkg.func_bm_load('RENT3006','hls_rent.RENT300.rent_fee_add');
sys_function_assign_pkg.func_bm_load('RENT3006','hls_rent.RENT300.manual_verification_submit');
sys_function_assign_pkg.func_bm_load('RENT3006','hls_rent.RENT300.rent_fee_currency');
sys_function_assign_pkg.func_bm_load('RENT3006','hls_rent.RENT300.rent_manual_query');
sys_function_assign_pkg.func_bm_load('RENT3006','hls_rent.RENT300.rent_source_object');
--菜单定义,参数:p_function_group_code菜单code(二级菜单绑定功能)
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT3000',p_function_code=>'RENT3003',p_enabled_flag=>'Y',P_USER_ID=>-1);
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT3000',p_function_code=>'RENT3004',p_enabled_flag=>'Y',P_USER_ID=>-1);
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT3000',p_function_code=>'RENT3005',p_enabled_flag=>'Y',P_USER_ID=>-1);
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT3000',p_function_code=>'RENT3001',p_enabled_flag=>'Y',P_USER_ID=>-1);
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT3000',p_function_code=>'RENT3006',p_enabled_flag=>'Y',P_USER_ID=>-1);
end;
--注意:一级菜单分配二级菜单仍然去系统里的菜单分配
--注意:最后再更新一下缓存,刷新一下页面
--注意:在sql窗口运行完之后记得commit
/
commit;
\ No newline at end of file
begin
--清除function-service关系和function-bm关系
--sys_function_assign_pkg.func_clear('func_code');
--页面注册(页面路径,页面名称,三个权限)
sys_function_assign_pkg.service_load('modules/hls_rent/RENT100/room_info_input.screen','房屋信息新增与维护',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT100/room_info_edit.screen','修改房屋信息',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT100/room_info_new.screen','新增住房信息',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT100/room_info_search.screen','房屋信息查询',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT100/room_info_search_result.screen','房屋信息查询结果',0,0,0);
--功能定义
sys_function_assign_pkg.func_load('RENT1001','房屋信息新增与维护','','F','modules/hls_rent/RENT100/room_info_input.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT1001','房屋信息新增与维护','','F','modules/hls_rent/RENT100/room_info_input.screen','1','US');
sys_function_assign_pkg.func_load('RENT1003','房屋信息查询','','F','modules/hls_rent/RENT100/room_info_search.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT1003','房屋信息查询','','F','modules/hls_rent/RENT100/room_info_search.screen','1','US');
--功能分配角色
--sys_function_assign_pkg.role_func_load('role_code','func_code');
--分配页面
sys_function_assign_pkg.func_service_load('RENT1001','modules/hls_rent/RENT100/room_info_input.screen');
sys_function_assign_pkg.func_service_load('RENT1001','modules/hls_rent/RENT100/room_info_new.screen');
sys_function_assign_pkg.func_service_load('RENT1003','modules/hls_rent/RENT100/room_info_search.screen');
--分配bm, bm位置:WEB-INF/classes/
sys_function_assign_pkg.func_bm_load('RENT1001','hls_rent.RENT100.hls_room_info');
sys_function_assign_pkg.func_bm_load('RENT1001','hls_rent.RENT100.fnd_province');
sys_function_assign_pkg.func_bm_load('RENT1001','hls_rent.RENT100.fnd_country');
sys_function_assign_pkg.func_bm_load('RENT1001','hls_rent.RENT100.fnd_city');
sys_function_assign_pkg.func_bm_load('RENT1003','hls_rent.RENT100.hls_room_info');--不需要.bm
--菜单定义,参数:p_function_group_code菜单code
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT1000',p_function_code=>'RENT1001',p_enabled_flag=>'Y',P_USER_ID=>-1);
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT1000',p_function_code=>'RENT1003',p_enabled_flag=>'Y',P_USER_ID=>-1);
end;
--注意:最后再更新一下缓存
/
commit;
\ No newline at end of file
begin
--清除function-service关系和function-bm关系
--sys_function_assign_pkg.func_clear('func_code');
--页面注册(页面路径,页面名称,三个权限)
sys_function_assign_pkg.service_load('modules/hls_rent/RENT200/hls_hrms_hsm1.screen','入住人员信息新增与维护',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT200/hls_hrms_hsm2.screen','入住人员信息查询',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT200/hls_hrms_hsm_staff_info.screen','入住人员信息查看',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_alter.screen','入住人员信息修改',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_editor.screen','入住人员信息新增',0,0,0);
--功能定义
sys_function_assign_pkg.func_load('RENT2001','入住人员信息新增与维护','','F','modules/hls_rent/RENT200/hls_hrms_hsm1.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT2001','入住人员信息新增与维护','','F','modules/hls_rent/RENT200/hls_hrms_hsm1.screen','1','US');
sys_function_assign_pkg.func_load('RENT2002','入住人员信息查询','','F','modules/hls_rent/RENT200/hls_hrms_hsm2.screen','1','ZHS');
sys_function_assign_pkg.func_load('RENT2002','入住人员信息查询','','F','modules/hls_rent/RENT200/hls_hrms_hsm2.screen','1','US');
--功能分配角色
--sys_function_assign_pkg.role_func_load('role_code','func_code');
--分配页面
sys_function_assign_pkg.func_service_load('RENT2001','modules/hls_rent/RENT200/hls_hrms_hsm1.screen');
sys_function_assign_pkg.func_service_load('RENT2001','modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_editor.screen');
sys_function_assign_pkg.func_service_load('RENT2001','modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_alter.screen');
sys_function_assign_pkg.func_service_load('RENT2002','modules/hls_rent/RENT200/hls_hrms_hsm2.screen');
sys_function_assign_pkg.func_service_load('RENT2002','modules/hls_rent/RENT200/hls_hrms_hsm_staff_info.screen');
--分配bm, bm位置:WEB-INF/classes/
sys_function_assign_pkg.func_bm_load('RENT2001','hls_rent.RENT200.hls_staff_info_search');
sys_function_assign_pkg.func_bm_load('RENT2002','hls_rent.RENT200.hls_staff_info_search');
--菜单定义,参数:p_function_group_code菜单code(二级菜单绑定功能)
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT2000',p_function_code=>'RENT2001',p_enabled_flag=>'Y',P_USER_ID=>-1);
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'RENT2000',p_function_code=>'RENT2002',p_enabled_flag=>'Y',P_USER_ID=>-1);
end;
--注意:一级菜单分配二级菜单仍然去系统里的菜单分配
--注意:最后再更新一下缓存,刷新一下页面
--注意:在sql窗口运行完之后记得commit
/
commit;
\ No newline at end of file
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_contract_info.log
prompt
prompt Creating table hls_Contract_info
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_Contract_info;
whenever sqlerror exit failure rollback
-- Create table
Create Table HLS_Contract_info
(contract_ID Number Not Null,
h_contract_number varchar2(30),
contract_start_date date Not Null,
contract_finish_date date Not Null,
room_id number Not Null,
contract_condition varchar2(30) Not Null,
month_rent_price number(30) Not Null,
tenancy_term number(30) Not Null,
agency_fee number(30) Not null,
Contract_invoice_tax number(30) not null,
sum_price number(30),
currency varchar2(30),
remark varchar2(30),
contract_remark varchar2(30),
/*MACHINE_NUMBER Varchar2(4000) Not Null,*/
CREATION_DATE DATE default sysdate not null,
CREATED_BY NUMBER default -1 not null,
LAST_UPDATED_BY NUMBER default -1 not null,
LAST_UPDATE_DATE DATE default sysdate not null
);
comment on table HLS_Contract_info is '租房合同信息表';
comment on column HLS_Contract_info.contract_ID is '房屋合同ID';
comment on column HLS_Contract_info.h_contract_number is '房屋合同编号';
comment on column HLS_Contract_info.contract_start_date is '合同开始日期';
comment on column HLS_Contract_info.contract_finish_date is '合同结束日期';
comment on column HLS_Contract_info.room_id is '房屋ID';
comment on column HLS_Contract_info.contract_condition is '房屋合同状态';
comment on column HLS_Contract_info.month_rent_price is '月租金';
comment on column HLS_Contract_info.tenancy_term is '租期';
comment on column HLS_Contract_info.agency_fee is '中介费';
comment on column HLS_Contract_info.Contract_invoice_tax is '合同发票税费';
comment on column HLS_Contract_info.sum_price is '总租金';
comment on column HLS_Contract_info.currency is '币种';
comment on column HLS_Contract_info.remark is '备注';
comment on column HLS_Contract_info.contract_remark is '合同备注';
comment on column HLS_Contract_info.CREATION_DATE is '创建日期';
comment on column HLS_Contract_info.CREATED_BY is '创建人';
comment on column HLS_Contract_info.LAST_UPDATE_DATE is'最后修改日期';
comment on column HLS_Contract_info.LAST_UPDATED_BY is '最后修改人';
-- create/recreate primary, unique and foreign key constraints
alter table hls_contract_info
add constraint hls_contract_info_pk primary key (contract_id);
create index hls_contract_info_n1 on hls_contract_info(contract_id,h_contract_number);
spool off
exit
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_fee_detail.log
prompt
prompt Creating table hls_fee_detail
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_fee_detail;
whenever sqlerror exit failure rollback
-- Create table
create table hls_fee_detail
(
fee_detail_id number not null,
periods varchar2(30),
staff_no varchar(30) not null,
apportion_rental number(7,2),
apportion_water number(7,2),
apportion_electric number(7,2),
apportion_network number(7,2),
apportion_cable number(7,2),
fee_currency varchar2(10) default 'CNY' not null,
created_by number default 1 not null,
creation_date date default sysdate not null,
last_updated_by number default -1 not null,
last_update_date date default sysdate not null
);
comment on table hls_fee_detail is '费用数据信息表';
comment on column hls_fee_detail.fee_detail_id is '明细id';
comment on column hls_fee_detail.periods is '期数';
comment on column hls_fee_detail.staff_no is '编号';
comment on column hls_fee_detail.apportion_rental is '分摊租金';
comment on column hls_fee_detail.apportion_water is '分摊水费';
comment on column hls_fee_detail.apportion_electric is '分摊电费';
comment on column hls_fee_detail.apportion_network is '分摊宽带网络费用';
comment on column hls_fee_detail.apportion_cable is '分摊有线电视费用';
comment on column hls_fee_detail.fee_currency is '币种(人民币)';
comment on column hls_fee_detail.created_by is '默认';
comment on column hls_fee_detail.creation_date is '默认';
comment on column hls_fee_detail.last_updated_by is '默认';
comment on column hls_fee_detail.last_update_date is '默认';
-- create/recreate primary, unique and foreign key constraints
alter table hls_fee_detail
add constraint hls_fee_detail_pk primary key (fee_detail_id);
spool off
exit
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_hsm.log
prompt
prompt Creating table hls_hsm
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_hsm;
whenever sqlerror exit failure rollback
-- Create table
create table hls_hsm
(
people_id number not null,
personnel_no varchar2(200) not null,
staff_no varchar2(200) not null,
name varchar2(200) not null,
gender varchar2(20) not null,
department varchar2(20) not null,
base_in varchar2(20) not null,
phone_number varchar2(100) not null,
people_status varchar2(20) not null,
email varchar2(100) not null,
message varchar2(500) ,
contract_no varchar2(30),
leaving_date date,
live_start_date date,
created_by number,
creation_date date,
last_updated_by number,
last_update_date date
);
comment on table hls_hsm is '入住人员信息表';
comment on column hls_hsm.people_id is '入住人员ID';
comment on column hls_hsm.personnel_no is '入住人员编号';
comment on column hls_hsm.staff_no is '入住人员工号';
comment on column hls_hsm.name is '入住人员姓名';
comment on column hls_hsm.gender is '入住人员性别';
comment on column hls_hsm.department is '所在部门';
comment on column hls_hsm.base_in is 'base地';
comment on column hls_hsm.phone_number is '联系电话';
comment on column hls_hsm.people_status is '入住人员状态';
comment on column hls_hsm.email is '邮箱地址';
comment on column hls_hsm.message is '备注';
comment on column hls_hsm.contract_no is '房屋合同编号';
comment on column hls_hsm.leaving_date is '欲入住至(时间)';
comment on column hls_hsm.live_start_date is '入住起始日期(已入住)';
comment on column hls_hsm.created_by is '默认';
comment on column hls_hsm.creation_date is '默认';
comment on column hls_hsm.last_updated_by is '默认';
comment on column hls_hsm.last_update_date is '退房日期(已退房)';
-- create/recreate primary, unique and foreign key constraints
alter table hls_hsm
add constraint hls_hsm_pk primary key (people_id);
create index hls_hsm_n1 on hls_hsm(people_id,personnel_no);
spool off
exit
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_payment_verification.log
prompt
prompt Creating table hls_payment_verification
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_payment_verification;
whenever sqlerror exit failure rollback
-- Create table
create table hls_payment_verification
(
verification_id number not null,
verification_no varchar2(30),
contract_no varchar2(30),
creditor_project varchar2(30),
verification_date date,
source_type varchar2(30),
source_object varchar2(30),
receipt_no varchar230),
currency varchar2(30),
message varchar2(30),
verification_fee varchar2(30),
machine_number varchar2(4000) not null,
creation_date date default sysdate not null,
created_by number default -1 not null,
last_updated_by number default -1 not null,
last_update_date date default sysdate not null
);
comment on table hls_payment_verification is '收款核销事务表';
comment on column hls_payment_verification.verification_id is '列描述';
comment on column hls_payment_verification.verification_no is '核销编号';
comment on column hls_payment_verification.contract_no is '房屋合同编号';
comment on column hls_payment_verification.creditor_project is '债权项(水电等)';
comment on column hls_payment_verification.verification_date is '核销日期';
comment on column hls_payment_verification.source_type is '来源类型(入住人员)';
comment on column hls_payment_verification.source_object is '来源对象(入住人员信息)';
comment on column hls_payment_verification.receipt_no is '来源单号(收款事务编号)';
comment on column hls_payment_verification.currency is '币种';
comment on column hls_payment_verification.message is '备注';
comment on column hls_payment_verification.verification_fee is '核销金额';
comment on column hls_payment_verification.creation_date is '创建日期';
comment on column hls_payment_verification.created_by is '创建人';
comment on column hls_payment_verification.last_updated_by is '最后修改人';
comment on column hls_payment_verification.last_update_date is '最后修改日期';
-- create/recreate primary, unique and foreign key constraints
alter table hls_payment_verification
add constraint hls_payment_verification_pk primary key (verification_id);
create index hls_payment_verification_n1 on hls_payment_verification(verification_id,verification_no);
spool off
exit
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_rent_fee_info.log
prompt
prompt Creating table hls_rent_fee_info
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_rent_fee_info;
whenever sqlerror exit failure rollback
-- Create table
create table hls_rent_fee_info
(
fee_id number not null,
fee_no varchar2(30) not null,
fee_add_date date not null,
fee_first_date date not null,
fee_last_date date not null,
fee_items varchar2(30) not null,
fee_sources varchar2(30) not null,
fee_objects varchar2(30) not null,
fee_amounts varchar2(30) not null,
fee_currency varchar2(10) default 'CNY' not null,
message varchar2(1000),
created_by number,
creation_date date,
last_updated_by number,
last_update_date date
);
comment on table hls_rent_fee_info is '费用数据信息表';
comment on column hls_rent_fee_info.fee_id is 'FEE_ID';
comment on column hls_rent_fee_info.fee_no is '费用单编号';
comment on column hls_rent_fee_info.fee_add_date is '新增日期';
comment on column hls_rent_fee_info.fee_first_date is '费用开始日期';
comment on column hls_rent_fee_info.fee_last_date is '费用结束日期';
comment on column hls_rent_fee_info.fee_items is '费用项目(电费、水费、宽带网络费、有线电视费)';
comment on column hls_rent_fee_info.fee_sources is '费用来源(房屋)';
comment on column hls_rent_fee_info.fee_objects is '费用对象';
comment on column hls_rent_fee_info.fee_amounts is '费用金额';
comment on column hls_rent_fee_info.fee_currency is '币种(人民币)';
comment on column hls_rent_fee_info.message is '备注';
comment on column hls_rent_fee_info.created_by is '默认';
comment on column hls_rent_fee_info.creation_date is '默认';
comment on column hls_rent_fee_info.last_updated_by is '默认';
comment on column hls_rent_fee_info.last_update_date is '默认';
-- create/recreate primary, unique and foreign key constraints
alter table hls_rent_fee_info
add constraint hls_rent_fee_info_pk primary key (fee_id);
create index hls_rent_fee_info_n1 on hls_rent_fee_info(fee_id,fee_no);
spool off
exit
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_rent_receipt_fee.log
prompt
prompt Creating table hls_rent_receipt_fee
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_rent_receipt_fee;
whenever sqlerror exit failure rollback
-- Create table
create table hls_rent_receipt_fee
(
receipt_id number not null,
receipt_no varchar2(30) not null,
receipt_sources varchar2(30) not null,
receipt_objects varchar2(30) not null,
receipt_ways varchar2(30) not null,
receipt_date date not null,
receipt_amounts varchar2(30) not null,
verification_amounts varchar2(30) not null,
currency varchar2(10) default 'CNY' not null,
contract_no varchar2(30) not null,
verification_no varchar2(30),
message varchar2(1000),
created_by number,
creation_date date,
last_updated_by number,
last_update_date date
);
comment on table hls_rent_receipt_fee is '收款事务表';
comment on column hls_rent_receipt_fee.receipt_id is 'RECEIPT_ID';
comment on column hls_rent_receipt_fee.receipt_no is '收款编号';
comment on column hls_rent_receipt_fee.receipt_sources is '收款来源(入住人员,其他)';
comment on column hls_rent_receipt_fee.receipt_objects is '收款对象(入住人员信息)';
comment on column hls_rent_receipt_fee.receipt_ways is '收款方式(现金or转账)';
comment on column hls_rent_receipt_fee.receipt_date is '收款日期';
comment on column hls_rent_receipt_fee.receipt_amounts is '收款金额';
comment on column hls_rent_receipt_fee.verification_amounts is '核销金额';
comment on column hls_rent_receipt_fee.currency is '币种';
comment on column hls_rent_receipt_fee.contract_no is '合同编号';
comment on column hls_rent_receipt_fee.verification_no is '核销编号';
comment on column hls_rent_receipt_fee.message is '备注';
comment on column hls_rent_receipt_fee.created_by is '默认';
comment on column hls_rent_receipt_fee.creation_date is '默认';
comment on column hls_rent_receipt_fee.last_updated_by is '默认';
comment on column hls_rent_receipt_fee.last_update_date is '默认';
-- create/recreate primary, unique and foreign key constraints
alter table hls_rent_receipt_fee
add constraint hls_rent_receipt_fee_pk primary key (receipt_id);
create index hls_rent_receipt_fee_n1 on hls_rent_receipt_fee(receipt_id,receipt_no);
spool off
exit
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_room_info.log
prompt
prompt Creating table hls_room_info
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_room_info;
whenever sqlerror exit failure rollback
-- Create table
create table hls_room_info
(room_id number not null ,
room_no varchar2(30) not null,
room_abbr varchar2(30) not null,
room_type varchar2(30) not null,
room_area varchar2(30) not null,
bed number not NUll,
bed_used number not null,
bed_free number not null,
landlord_name varchar2(30) not null,
landlord_tel varchar2(30) not null,
intermediary varchar2(30) not null,
intermediary_name varchar2(30) not null,
intermediary_tel varchar2(30) not null,
message varchar2(1000),
room_addr_country varchar2(200) not null,
room_addr_province varchar2(200) not null,
room_addr_city varchar2(200) not null,
room_status varchar2(2000) not null,
creation_date date default sysdate not null,
created_by number default -1 not null,
last_updated_by number default -1 not null,
last_update_date date default sysdate not null
);
comment on table hls_room_info is '房屋信息表';
comment on column hls_room_info.room_id is '房屋ID';
comment on column hls_room_info.room_no is '房屋编号';
comment on column hls_room_info.room_abbr is '房屋简称';
comment on column hls_room_info.room_type is '房屋类型';
comment on column hls_room_info.room_area is '房屋面积';
comment on column hls_room_info.bed is '床位';
comment on column hls_room_info.bed_used is '已用床位';
comment on column hls_room_info.bed_free is '剩余床位';
comment on column hls_room_info.landlord_name is '房东姓名';
comment on column hls_room_info.landlord_tel is '联系电话';
comment on column hls_room_info.intermediary is '中介名称';
comment on column hls_room_info.intermediary_name is '中介联系人';
comment on column hls_room_info.intermediary_tel is '中介联系电话';
comment on column hls_room_info.message is '备注';
comment on column hls_room_info.room_addr_country is '国家';
comment on column hls_room_info.room_addr_province is '省';
comment on column hls_room_info.room_addr_city is '市';
comment on column hls_room_info.room_status is '房屋状态';
comment on column hls_room_info.creation_date is '创建日期';
comment on column hls_room_info.created_by is '创建人';
comment on column hls_room_info.last_update_date is'最后修改日期';
comment on column hls_room_info.last_updated_by is '最后修改人';
-- create/recreate primary, unique and foreign key constraints
alter table hls_room_info
add constraint hls_room_info_pk primary key (room_id);
create index hls_room_info_n1 on hls_room_info(room_id,room_no);
spool off
exit
--房屋信息ID序列
create sequence hls_room_info_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--房屋信息编号序列
create sequence hls_room_info_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--手工收款ID序列
create sequence hls_rent_receipt_fee_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--手工收款编号序列
create sequence hls_rent_receipt_fee_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--入住人员ID序列
create sequence hls_people_info_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--入住人员编号序列
create sequence hls_people_info_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--房屋合同ID序列
create sequence HLS_Contract_info_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--房屋合同编号序列
create sequence HLS_Contract_info_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--费用序列
create sequence hls_rent_fee_info_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--费用明细序列
create sequence hls_fee_detail_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--核销序列
create sequence hls_payment_verification_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--房屋信息ID序列
create sequence hls_room_info_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--房屋信息编号序列
create sequence hls_room_info_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--手工收款ID序列
create sequence hls_rent_receipt_fee_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--手工收款编号序列
create sequence hls_rent_receipt_fee_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--入住人员ID序列
create sequence hls_people_info_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--入住人员编号序列
create sequence hls_people_info_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--房屋合同ID序列
create sequence HLS_Contract_info_s
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
--房屋合同编号序列
create sequence HLS_Contract_info_s1
minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
nocache;
把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)
更新缓存
刷新页面
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