Commit ca452f7b authored by congweijing's avatar congweijing

租房信息管理系统1.1

parent 32bdf966
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="room_no=${/parameter/@room_no}" model="hls_rent.RENT100.hls_room_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
//二级联动
function onCountryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_code'){
console.log(name);
console.log(value);
$('RENT100_provinceDs').setQueryParameter('country_code', value);
$('RENT100_provinceDs').query();
}
else if(name == 'province_code'){
console.log(name);
console.log(value);
$('RENT100_cityDs').setQueryParameter('province_code', value);
$('RENT100_cityDs').query();
}
}
//修改按钮
function RENT100_updateRoomInfo(){
//debugger;
var room_no = '${/parameter/@room_no}';
console.log(room_no);
$('RENT100_room_info_edit_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT100.hls_room_info/batch_update"+'?room_no='+room_no);
$('RENT100_room_info_edit_ds').submit();
}
//提交成功之后触发此函数
function onSubmitSuccess_roomInfoEditDs(){
//console.log("444");
//$('RENT100_room_info_input_ds').reset();
$('room_info_search_result_window').close();
RENT100_roomInfoSearch();
}
]]></script>
<a:dataSets>
<!-- 房屋面积-->
<a:dataSet id="RENT100_roomAreaDs" lookupCode="HLS_HOUSE_AREA"/>
<!-- 床位数量-->
<a:dataSet id="RENT100_bedNumberDs" lookupCode="HLS_BED_NUMBER"/>
<!-- 房屋地址三级联动-->
<a:dataSet id="RENT100_countryDs" loadData="true" model="hls_rent.RENT100.fnd_country"/>
<a:dataSet id="RENT100_provinceDs" model="hls_rent.RENT100.fnd_province"/>
<a:dataSet id="RENT100_cityDs" model="hls_rent.RENT100.fnd_city"/>
<a:dataSet id="RENT100_room_info_edit_ds" model="hls_rent.RENT100.hls_room_info" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="room_type" required="true" displayField="code_value_name" options="RENT100_roomTypeDs1" returnField="room_type_code" valueField="code_value"/>
<a:field name="room_area" required="true" displayField="code_value_name" options="RENT100_roomAreaDs" returnField="room_area_code" valueField="code_value"/>
<a:field name="bed_free" required="true" displayField="code_value_name" options="RENT100_bedNumberDs" returnField="bed_free_code" valueField="code_value"/>
<a:field name="landlord_name" displayField="period_name" options="" required="true" returnField="period_name" valueField="period_name"/>
<a:field name="landlord_tel" required="true"/>
<a:field name="room_addr_country" required="true" displayField="country_code_description" options="RENT100_countryDs" returnField="country_code" valueField="country_code"/>
<a:field name="room_addr_province" required="true" displayField="province_code_description" options="RENT100_provinceDs" returnField="province_code" valueField="province_code"/>
<a:field name="room_addr_city" required="true" displayField="city_code_description" options="RENT100_cityDs" returnField="city_code" valueField="city_code"/>
<a:field name="room_abbr" displayField="currency_desc" options="" required="true" returnField="currency_code" valueField="currency_code"/>
<a:field name="intermediary" required="true"/>
<a:field name="intermediary_name" displayField="type_name" options="" required="true" returnField="exchange_rate_type" valueField="type_code"/>
<a:field name="intermediary_tel" required="true"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCountryUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_roomInfoEditDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="房屋编号:${/parameter/@room_no}">
<a:box id="" column="3" style="width:100%">
<a:comboBox name="room_type" bindtarget="RENT100_room_info_edit_ds" prompt="房屋类型"/>
<a:comboBox name="room_area" bindtarget="RENT100_room_info_edit_ds" prompt="房屋面积"/>
<a:comboBox name="bed_free" bindtarget="RENT100_room_info_edit_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_edit_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_edit_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:comboBox name="room_addr_country" bindtarget="RENT100_room_info_edit_ds" prompt="房屋地址:国家"/>
<a:comboBox name="room_addr_province" bindtarget="RENT100_room_info_edit_ds" prompt="省"/>
<a:comboBox name="room_addr_city" bindtarget="RENT100_room_info_edit_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_edit_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_edit_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_edit_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_edit_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_edit_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_updateRoomInfo" text="修改" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
//二级联动
function onCountryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_code'){
console.log(name);
console.log(value);
$('RENT100_provinceDs').setQueryParameter('country_code', value);
$('RENT100_provinceDs').query();
}
else if(name == 'province_code'){
console.log(name);
console.log(value);
$('RENT100_cityDs').setQueryParameter('province_code', value);
$('RENT100_cityDs').query();
}
}
//保存
function RENT100_saveRoomInfo() {
//console.log("fuck");
//数据提交
$('RENT100_room_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT100.hls_room_info/batch_update");
$('RENT100_room_info_input_ds').submit();
//$('room_info_new_window').close();
//$('RENT100_room_info_input_ds').reset();
// alert("????");
}
//提交成功之后触发此函数
function onSubmitSuccess_roomInfoInputDs(){
//$('RENT100_room_info_input_ds').reset();
$('room_info_new_window').close();
RENT100_roomInfoSearch();
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋面积-->
<a:dataSet id="RENT100_roomAreaDs" lookupCode="HLS_HOUSE_AREA"/>
<!-- 床位数量-->
<a:dataSet id="RENT100_bedNumberDs" lookupCode="HLS_BED_NUMBER"/>
<!-- 房屋地址三级联动-->
<a:dataSet id="RENT100_countryDs" loadData="true" model="hls_rent.RENT100.fnd_country"/>
<a:dataSet id="RENT100_provinceDs" model="hls_rent.RENT100.fnd_province" fetchAll="true"/>
<a:dataSet id="RENT100_cityDs" model="hls_rent.RENT100.fnd_city" fetchAll="true"/>
<!-- 房屋信息-->
<a:dataSet id="RENT100_room_info_input_ds" autoCreate="true">
<a:fields>
<a:field name="room_type" required="true" displayField="code_value_name" options="RENT100_roomTypeDs" returnField="room_type_code" valueField="code_value"/>
<a:field name="room_area" required="true" displayField="code_value_name" options="RENT100_roomAreaDs" returnField="room_area_code" valueField="code_value"/>
<a:field name="bed_free" required="true" displayField="code_value_name" options="RENT100_bedNumberDs" returnField="bed_free_code" valueField="code_value"/>
<a:field name="landlord_name" displayField="period_name" options="" required="true" returnField="period_name" valueField="period_name"/>
<a:field name="landlord_tel" required="true" validator="validate_telNumber"/>
<a:field name="room_addr_country" required="true" displayField="country_code_description" options="RENT100_countryDs" returnField="country_code" valueField="country_code"/>
<a:field name="room_addr_province" required="true" displayField="province_code_description" options="RENT100_provinceDs" returnField="province_code" valueField="province_code"/>
<a:field name="room_addr_city" required="true" displayField="city_code_description" options="RENT100_cityDs" returnField="city_code" valueField="city_code"/>
<a:field name="room_abbr" displayField="currency_desc" options="" required="true" returnField="currency_code" valueField="currency_code"/>
<a:field name="intermediary" required="true"/>
<a:field name="intermediary_name" displayField="type_name" options="" required="true" returnField="exchange_rate_type" valueField="type_code"/>
<a:field name="intermediary_tel" required="true" validator="validate_telNumber"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCountryUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_roomInfoInputDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="新增房屋信息">
<a:box id="" column="3" style="width:100%">
<a:comboBox name="room_type" bindtarget="RENT100_room_info_input_ds" prompt="房屋类型"/>
<a:comboBox name="room_area" bindtarget="RENT100_room_info_input_ds" prompt="房屋面积"/>
<a:comboBox name="bed_free" bindtarget="RENT100_room_info_input_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_input_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_input_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:comboBox name="room_addr_country" bindtarget="RENT100_room_info_input_ds" prompt="房屋地址:国家"/>
<a:comboBox name="room_addr_province" bindtarget="RENT100_room_info_input_ds" prompt="省"/>
<a:comboBox name="room_addr_city" bindtarget="RENT100_room_info_input_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_input_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_input_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_input_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_input_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_saveRoomInfo" text="保存" width="80"/>
<!--<a:toolbarButton click="" text="关闭" width="80"/>-->
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_room_info_new" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_new.screen"/>
<a:link id="pageLink_room_info_search_result" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_search_result.screen"/>
<script><![CDATA[
//新增按钮
function RENT100_roomInfoAdd(){
new Aurora.Window({
id:'room_info_new_window',
url:$('pageLink_room_info_new').getUrl(),
title:'新增房屋信息',
height:400,
width:800
})
}
//查询按钮
function RENT100_roomInfoSearch(){
console.log('1');
$('RENT100_room_info_result_ds').query();
}
//grid渲染函数
function RENT100_room_info_result_ds_grid(value, record, name){
//debugger;
if(!record.isNew)
{
var room_no = record.get('room_no');
var rlt = '<a href="javascript:RENT100_roomInfoSearchResult(\'' + room_no + '\');">'+room_no+'</a>'
if(name=='room_no')
{
return rlt;
}
}
return '';
}
//查询结果显示框
function RENT100_roomInfoSearchResult(room_no){
new Aurora.Window({
id:'room_info_search_result_window',
url:$('pageLink_room_info_search_result').getUrl(),
params:{
room_no:room_no
},
title:'查询结果显示',
height:400,
width:830
});
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
//debugger;
//console.log(name);
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
//console.log(start_date);
var end_date = record.get('creation_date_to');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
//判断电话号码是否有效
function validate_telNumber(record, name, value){
if(name == 'landlord_tel'){
var landlord_tel = record.get('landlord_tel');
if(typeof(landlord_tel) != 'undefined' && !Ext.isEmpty(landlord_tel)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(landlord_tel))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs1" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋状态-->
<a:dataSet id="RENT100_roomStatusDs" lookupCode="HLS_HOUSE_STATUS"/>
<!-- 查询集-->
<a:dataSet id="RENT100_room_info_query" autoCreate="true">
<a:fields>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel" validator="validate_telNumber"/>
<a:field name="room_type" displayField="code_value_name" options="RENT100_roomTypeDs1" returnField="room_type_code" valueField="code_value"/>
<a:field name="creation_date_from"/>
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="room_status" displayField="code_value_name" options="RENT100_roomStatusDs" returnField="room_status_code" valueField="code_value"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="RENT100_room_info_result_ds" autoQuery="true" model="hls_rent.RENT100.hls_room_info" queryDataSet="RENT100_room_info_query"/>
</a:dataSets>
<a:screenBody>
<a:form id="" title="查询条件">
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_query" prompt="房屋简称"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_query" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_query" prompt="联系电话"/>
<a:comboBox name="room_type" bindtarget="RENT100_room_info_query" prompt="房屋类型"/>
<a:datePicker name="creation_date_from" bindtarget="RENT100_room_info_query" prompt="创建日期从"/>
<a:datePicker name="creation_date_to" bindtarget="RENT100_room_info_query" prompt="创建日期到"/>
<a:comboBox name="room_status" bindtarget="RENT100_room_info_query" prompt="房屋状态"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_roomInfoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
</a:form>
<a:grid id="RENT100_room_info_result_ds_grid" bindTarget="RENT100_room_info_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="room_no" align="center" editor="" prompt="房屋编号" renderer="RENT100_room_info_result_ds_grid" width="120" />
<a:column name="room_abbr" align="center" editor="" prompt="房屋简称" width="100"/>
<a:column name="room_type" align="center" editor="" prompt="房屋类型" width="100"/>
<a:column name="bed_free" align="center" editor="" prompt="床位" width="80"/>
<a:column name="landlord_name" align="center" editor="" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" align="center" editor="" prompt="联系电话" width="120"/>
<a:column name="intermediary" align="center" editor="" prompt="中介名称" width="120"/>
<a:column name="room_addr_province" align="center" editor="" prompt="房屋地址省" width="100"/>
<a:column name="room_addr_city" align="center" editor="" prompt="房屋地址市" width="100"/>
<a:column name="room_status" align="center" editor="" prompt="房屋状态" width="80"/>
<a:column name="create_date" align="center" editor="" prompt="创建日期" width="120" />
<a:column name="message" editor="" prompt="备注" width="120"/>
</a:columns>
<!--<a:datePicker name="" prompt="退房日期"/>-->
<a:toolBar>
<!--<a:link id="room_info_new" url="${/request/@context_path}/room_info_new.screen">-->
<!--<a:button click="RENT100_roomInfoAdd" text="新增" iconAlign="right" width="80" />-->
<!--</a:link>-->
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="room_no=${/parameter/@room_no}" model="hls_rent.RENT100.hls_room_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<a:dataSets>
<a:dataSet id="RENT100_room_info_search_result_ds" model="hls_rent.RENT100.hls_room_info" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="room_type" readOnly="true" />
<a:field name="room_area" readOnly="true" />
<a:field name="bed_free" readOnly="true"/>
<a:field name="landlord_name" readOnly="true"/>
<a:field name="landlord_tel" readOnly="true"/>
<a:field name="room_addr_country" readOnly="true"/>
<a:field name="room_addr_province" readOnly="true"/>
<a:field name="room_addr_city" readOnly="true"/>
<a:field name="room_abbr" readOnly="true"/>
<a:field name="intermediary" readOnly="true"/>
<a:field name="intermediary_name" readOnly="true"/>
<a:field name="intermediary_tel" readOnly="true"/>
<a:field name="message" readOnly="true"/>
</a:fields>
<!--<a:events>-->
<!--<a:event name="update" handler="onCountryUpdate"/>-->
<!--</a:events>-->
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="">
<a:box id="" column="3" style="width:100%">
<a:textField name="room_type" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋面积"/>
<a:textField name="bed_free" bindtarget="RENT100_room_info_search_result_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_search_result_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_search_result_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:textField name="room_addr_country" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋地址:国家"/>
<a:textField name="room_addr_province" bindtarget="RENT100_room_info_search_result_ds" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="RENT100_room_info_search_result_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_search_result_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_search_result_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_search_result_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_search_result_ds" prompt="备注"/>
</a:box>
<!--<a:screenTopToolbar>-->
<!--<a:toolbarButton click="RENT100_saveRoomInfo" text="保存" width="80"/>-->
<!--</a:screenTopToolbar>-->
</a:form>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<a:link id="pageLink_create_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_editor.screen"/>
<a:link id="pageLink_alter_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info.screen"/>
<script><![CDATA[
<!--grid渲染函数-->
function HLS_staff_info_result_grid_ds(value, record, name){
//debugger;
console.log("33");
if(!record.isNew)
{
var personnel_no = record.get('personnel_no');
var perNo = '<a href="javascript:winOpen_edit_user(\'' + personnel_no + '\');">'+personnel_no+'</a>'
if(name=='personnel_no')
{
return perNo;
}
}
return '';
}
<!--显示入住人员信息-->
function winOpen_edit_user(personnel_no){
new Aurora.Window({
id:'hls_hrms_hsm_staff_info',
url:$('pageLink_alter_user').getUrl(),
params:{
personnel_no:personnel_no
},
title:'${l:查看用户}',
height:500,
width:1000
});
}
<!--查询按钮-->
function HLS_staff_infoSearch(){
console.log('1');
$('HLS_staff_info_input').query();
}
<!--比较日期-->
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
<!--判断日期是否有效-->
function validate_date(record, name, value){
console.log('panduan');
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
console.log('start_date有了');
var end_date = record.get('creation_date_to');
console.log('end_date有了');
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds1" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds1" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds1" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员状态-->
<a:dataSet id="HLS_status_Ds1" lookupCode="HLS_STAFF_STATUS"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds1" autoCreate="true">
<a:fields>
<a:field name="staff_no" />
<a:field name="name" />
<a:field name="gender_code" />
<a:field name="gender" displayField="code_value_name" options="HLS_gender_Ds1" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" displayField="code_value_name" options="HLS_dept_Ds1" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" displayField="code_value_name" options="HLS_base_Ds1" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" validator="validate_telNumber"/>
<a:field name="creation_date_from"/>
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="people_status_code" />
<a:field name="people_status" displayField="code_value_name" options="HLS_status_Ds1" returnField="people_status_code" valueField="code_value_name"/>
</a:fields>
<!-- <a:events>
<a:event name="submitsuccess" handler="GLD5010_headerSubmitSuccess"/>
</a:events>-->
</a:dataSet>
<a:dataSet id="HLS_staff_info_input" autoQuery="true" model="hls_rent.RENT200.hls_staff_info_search" queryDataSet="HLS_staff_info_input_ds1" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="查询条件">
<a:screenTopToolbar>
<a:toolbarButton click="HLS_staff_infoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
<a:box id="" column="3" style="width:100%">
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds1" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds1" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds1" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds1" prompt="联系电话"/>
<a:datePicker name="creation_date_from" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期从"/>
<a:datePicker name="creation_date_to" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期到"/>
<a:comboBox name="people_status" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员状态"/>
</a:box>
</a:form>
<a:grid id="HLS_staff_info_result_grid" bindTarget="HLS_staff_info_input" marginHeight="121" marginWidth="45" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="grid_delete_user" text="删除" width="80" iconAlign="left"/>-->
<!--<a:button click="winOpen_create_user" text="新增" width="80" iconAlign="left"/>-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="personnel_no" editor="" prompt="入住人员编号" renderer="HLS_staff_info_result_grid_ds" width="100" />
<a:column name="staff_no" editor="" prompt="入住人员工号" width="100" />
<a:column name="name" editor="" prompt="入住人员姓名" width="100"/>
<a:column name="gender" editor="" prompt="性别" width="100"/>
<a:column name="department" editor="" prompt="所在部门" width="80"/>
<a:column name="base_in" editor="" prompt="base地" width="80"/>
<a:column name="phone_number" editor="" prompt="联系电话" width="80"/>
<a:column name="email" editor="" prompt="邮箱地址" width="80"/>
<a:column name="message" editor="" prompt="备注" width="120"/>
<!--<a:column name="creation_date" editor="" prompt="创建日期" width="120"/>-->
<a:column name="created_date" editor="" prompt="创建的日期" width="120"/>
<a:column name="people_status" editor="" prompt="入住人员状态" width="80"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="personnel_no=${/parameter/@personnel_no}" model="hls_rent.RENT200.hls_staff_info_search" rootPath="alter_model"/>
</a:init-procedure>
<a:view>
<script><![CDATA[
<!--页面关闭-->
function alterScreen_close(){
$('hls_hrms_hsm_staff_info').close();
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_staff_info_input_ds" model="hls_rent.RENT200.hls_staff_info_search" autoCreate="true">
<a:datas dataSource="/model/alter_model"/>
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" readOnly="true"/>
<a:field name="name" readOnly="true"/>
<a:field name="gender_code" readOnly="true"/>
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds1" returnField="gender_code" valueField="code_value_name"/>
<a:field name="department_code" readOnly="true"/>
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds1" returnField="department_code" valueField="code_value_name"/>
<a:field name="base_in_code" readOnly="true"/>
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds1" returnField="base_in_code" valueField="code_value_name"/>
<a:field name="phone_number" readOnly="true"/>
<a:field name="email" readOnly="true"/>
<a:field name="message" readOnly="true"/>
</a:fields>
<!-- <a:events>
<a:event name="submitsuccess" handler="GLD5010_headerSubmitSuccess"/>
</a:events> -->
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form style="width:100%" title="入住人员信息:${/parameter/@personnel_no}">
<a:box column="3" style="width:100%">
<a:textField name="personnel_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindTarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindTarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="alterScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="personnel_no=${/parameter/@personnel_no}" model="hls_rent.RENT200.hls_staff_info_search" rootPath="alter_model"/>
</a:init-procedure>
<a:view>
<script><![CDATA[
<!--修改页面关闭-->
function alterScreen_close() {
$('hls_hrms_hsm_staff_info_alter').close();
}
<!--修改按钮-->
function updateDs_alter(){
//debugger;
var personnel_no = '${/parameter/@personnel_no}';
console.log(personnel_no);
$('HLS_staff_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT200.hls_staff_info_search/batch_update"+'?personnel_no='+personnel_no);
$('HLS_staff_info_input_ds').submit();
}
<!--修改成功后处理-->
function onSubmitSuccess_alterDs(dataSet, datas, res){
HLS_staff_infoSearch();
alterScreen_close();
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds" model="hls_rent.RENT200.hls_staff_info_search" autoCreate="true">
<a:datas dataSource="/model/alter_model"/>
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" required="true"/>
<a:field name="name" required="true"/>
<a:field name="gender_code" />
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" validator="validate_telNumber"/>
<a:field name="email"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_alterDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form style="width:100%" title="入住人员信息:${/parameter/@personnel_no}">
<a:box column="3" style="width:100%">
<a:textField name="personnel_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindTarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindTarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="updateDs_alter" text="修改" width="80"/>
<a:toolbarButton click="alterScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<script><![CDATA[
<!--页面关闭-->
function createScreen_close(){
$('hls_hrms_hsm_staff_info_editor').close();
}
<!--页面保存-->
function createDs_save() {
console.log("hello");
//数据提交
$('HLS_staff_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT200.hls_staff_info_search/batch_update");
$('HLS_staff_info_input_ds').submit();
}
<!--新增成功后处理-->
function onSubmitSuccess_createDs(dataSet, datas, res){
HLS_staff_infoSearch();
createScreen_close();
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds" autoCreate="true">
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" required="true"/>
<!--<a:field name="name" required="true"/>-->
<a:field name="name" required="true"/>
<a:field name="gender_code" />
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" required="true" validator="validate_telNumber"/>
<a:field name="email" required="true"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_createDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="入住人员信息">
<a:box id="" column="3" style="width:100%">
<a:textField name="personnel_no" bindtarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindtarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindtarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindtarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindtarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindtarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindtarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindtarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindtarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="createDs_save" text="保存" width="80"/>
<a:toolbarButton click="createScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
...@@ -57,9 +57,6 @@ ...@@ -57,9 +57,6 @@
end;]]></bm:update-sql> end;]]></bm:update-sql>
</bm:operation> </bm:operation>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
SELECT people_id,personnel_no, SELECT people_id,personnel_no,
......
...@@ -6,51 +6,37 @@ ...@@ -6,51 +6,37 @@
SELECT * FROM ( SELECT * FROM (
SELECT hci.h_contract_number contract_no, SELECT hci.h_contract_number contract_no,
hri.room_abbr room_abbr, hri.room_abbr room_abbr,
hri.room_type room_type,
hri.landlord_name landlord_name, hri.landlord_name landlord_name,
hri.landlord_tel landlord_tel,
nvl(sum(hfd.apportion_rental), 0) - nvl(sum(hfd.apportion_rental), 0) -
nvl((select hpv.verification_fee nvl((select hvt.credit_item_rent
from hls_payment_verification hpv from hls_verification_tab hvt
where hpv.creditor_project not in where hvt.source_object = hfd.staff_no
('fee_items_1', and hvt.receipt_no = hrf.receipt_no),
'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, 0) apportion_rental,
nvl(sum(hfd.apportion_water), 0) - nvl(sum(hfd.apportion_water), 0) -
nvl((select hpv.verification_fee nvl((select hvt.credit_item_water
from hls_payment_verification hpv from hls_verification_tab hvt
where hpv.creditor_project = 'fee_items_1' where hvt.source_object = hfd.staff_no
and hpv.contract_no = hci.h_contract_number and hvt.receipt_no = hrf.receipt_no),
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_water, 0) apportion_water,
nvl(sum(hfd.apportion_electric), 0) - nvl(sum(hfd.apportion_electric), 0) -
nvl((select hpv.verification_fee nvl((select hvt.credit_item_electric
from hls_payment_verification hpv from hls_verification_tab hvt
where hpv.creditor_project = 'fee_items_2' where hvt.source_object = hfd.staff_no
and hpv.contract_no = hci.h_contract_number and hvt.receipt_no = hrf.receipt_no),
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_electric, 0) apportion_electric,
nvl(sum(hfd.apportion_network), 0) - nvl(sum(hfd.apportion_network), 0) -
nvl((select hpv.verification_fee nvl((select hvt.credit_item_network
from hls_payment_verification hpv from hls_verification_tab hvt
where hpv.creditor_project = 'fee_items_3' where hvt.source_object = hfd.staff_no
and hpv.contract_no = hci.h_contract_number and hvt.receipt_no = hrf.receipt_no),
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_network, 0) apportion_network,
nvl(sum(hfd.apportion_cable), 0) - nvl(sum(hfd.apportion_cable), 0) -
nvl((select hpv.verification_fee nvl((select hvt.credit_item_cable
from hls_payment_verification hpv from hls_verification_tab hvt
where hpv.creditor_project = 'fee_items_4' where hvt.source_object = hfd.staff_no
and hpv.contract_no = hci.h_contract_number and hvt.receipt_no = hrf.receipt_no),
and hpv.source_object = hfd.staff_no
and rownum <= 1),
0) apportion_cable, 0) apportion_cable,
hfd.staff_no staff_no, hfd.staff_no staff_no,
hrf.receipt_no receipt_no, hrf.receipt_no receipt_no,
...@@ -66,10 +52,11 @@ ...@@ -66,10 +52,11 @@
AND hh.staff_no = hrf.receipt_objects AND hh.staff_no = hrf.receipt_objects
AND hrf.receipt_objects = hfd.staff_no AND hrf.receipt_objects = hfd.staff_no
AND hfd.staff_no = ${@staff_no} AND hfd.staff_no = ${@staff_no}
AND hrf.receipt_no = ${@receipt_no}
GROUP BY hci.h_contract_number, GROUP BY hci.h_contract_number,
hri.room_abbr, hri.room_abbr,
hri.landlord_name, hri.landlord_name,
hri.landlord_tel, hri.room_type,
hfd.staff_no, hfd.staff_no,
hrf.receipt_no, hrf.receipt_no,
hrf.receipt_sources, hrf.receipt_sources,
...@@ -81,8 +68,8 @@ ...@@ -81,8 +68,8 @@
<bm:fields> <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="contract_no" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="true" forQuery="false" physicalName="H_CONTRACT_NUMBER" prompt="合同编号"/>
<bm:field name="room_abbr" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="false" forQuery="true" physicalName="ROOM_ABBR" prompt="房屋简称"/> <bm:field name="room_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="room_type" 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="landlord_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="LANDLORD_NAME" prompt="房东姓名"/>
<bm:field name="apportion_rental" datatype="java.lang.String"/> <bm:field name="apportion_rental" datatype="java.lang.String"/>
<bm:field name="apportion_water" 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_electric" datatype="java.lang.String"/>
...@@ -97,6 +84,6 @@ ...@@ -97,6 +84,6 @@
<bm:query-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_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-field field="landlord_name" queryOperator="="/> <bm:query-field field="room_type" queryOperator="="/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
This diff is collapsed.
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<bm:operation name="insert"> <bm:operation name="insert">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
BEGIN BEGIN
hls_rent_pkg.verification_insert_update(p_contract_no => ${@contract_no} , hls_rent_pkg.verification_insert(p_contract_no => ${@contract_no} ,
p_receipt_no => ${@receipt_no} , p_receipt_no => ${@receipt_no} ,
p_staff_no => ${@staff_no} , p_staff_no => ${@staff_no} ,
p_verification_rental => ${@verification_rental} , p_verification_rental => ${@verification_rental} ,
......
<?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();
}
function RENT1030_back(){
history.go(-1);
}
]]>
</script>
<a:dataSets>
<a:dataSet id="RENT1030_fee_items_ds" lookupCode="HLS_FEE_ITEMS" loadData="true"/>
<a:dataSet id="RENT1030_fee_sources_ds" lookupCode="HLS_FEE_SOURCES" loadData="true"/>
<a:dataSet id="RENT1030_fee_info_query_ds">
<a:fields>
<a:field name="fee_no"/>
<a:field name="fee_objects"/>
<a:field name="fee_items" displayField="code_value_name" valueField="code_value" returnField="fee_items_code" options="RENT1030_fee_items_ds"/>
<a:field name="fee_sources" displayField="code_value_name" valueField="code_value" returnField="fee_sources_code" options="RENT1030_fee_sources_ds"/>
<a:field name="fee_objects_display" lovGridHeight="320" lovHeight="480" lovService="hls_rent.RENT300.rent_fee_objects" lovWidth="600" title="费用对象">
<a:mapping>
<a:map from="room_abbr" to="fee_objects_display"/>
<a:map from="room_id" to="fee_objects"/>
</a:mapping>
</a:field>
<a:field name="date_begin"/>
<a:field name="date_end"/>
<a:field name="first_date"/>
<a:field name="last_date"/>
</a:fields>
</a:dataSet>
<a:dataSet id="RENT1030_fee_info_result_ds" queryDataSet="RENT1030_fee_info_query_ds" model="hls_rent.RENT300.rent_fee_query" autoQuery="true">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="RENT1030_back" text="HLS.BACK"/>
<a:gridButton click="RENT1030_queryFeeInfo" text="HLS.QUERY"/>
</a:screenTopToolbar>
<a:form bindTarget="RENT1030_fee_info_query_ds" style="width:100%;border:none" title="查询条件" >
<a:box id="RENT1030_fee_query_box" column="3" style="width:100%">
<a:textField name="fee_no" bindTarget="RENT1030_fee_info_query_ds" prompt="费用单编号"/>
<a:comboBox name="fee_items" bindTarget="RENT1030_fee_info_query_ds" prompt="费用项目"/>
<a:comboBox name="fee_sources" bindTarget="RENT1030_fee_info_query_ds" prompt="费用来源"/>
<a:lov name="fee_objects_display" bindTarget="RENT1030_fee_info_query_ds" prompt="费用对象"/>
<a:datePicker name="date_begin" bindTarget="RENT1030_fee_info_query_ds" prompt="新增日期从"/>
<a:datePicker name="date_end" bindTarget="RENT1030_fee_info_query_ds" prompt="新增日期到"/>
<a:datePicker name="first_date" bindTarget="RENT1030_fee_info_query_ds" prompt="费用发生日从"/>
<a:datePicker name="last_date" bindTarget="RENT1030_fee_info_query_ds" prompt="费用发生日到"/>
</a:box>
</a:form>
<a:grid id="RENT1030_fee_info_result_grid" bindTarget="RENT1030_fee_info_result_ds" marginHeight="81" marginWidth="45" navBar="true">
<a:toolBar>
<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>
</a:toolBar>
<a:columns>
<a:column name="fee_no" prompt="费用单编号" width="160" align="center"/>
<a:column name="fee_items" prompt="费用项目" width="160" align="center"/>
<a:column name="fee_sources" prompt="费用来源" width="160" align="center"/>
<a:column name="fee_objects" prompt="费用对象" width="160" align="center"/>
<a:column name="fee_first_date" prompt="费用发生日" width="160" align="center"/>
<a:column name="fee_last_date" prompt="费用结束日" width="160" align="center"/>
<a:column name="fee_amounts" prompt="费用金额" width="160" align="center"/>
<a:column name="fee_add_date" prompt="新增日期" width="160" align="center"/>
</a:columns>
<!--<a:editors>-->
<!--<a:textField id="TEST1020_voucher_audit_tf"/>-->
<!--<a:numberField id="TEST1020_voucher_audit_nf"/>-->
<!--<a:lov id="TEST1020_voucher_audit_lv"/>-->
<!--</a:editors>-->
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
//收款方式改变触发函数
function onReceiptWayUpdate(ds,record,name,value,oldvalue){
if(name == 'receipt_sources_code'){
console.log(name);
console.log(value);
//console.log($('RENT1030_receipt_sources_objects').getValue() );
}
}
//保存
function saveReceiptFee() {
//数据提交
$('RENT1030_manual_receipt_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT300.rent_receipt_fee/batch_update");
$('RENT1030_manual_receipt_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_saveReceiptFee(){
history.go(0);
// $('RENT1030_manual_receipt_ds').reset();
}
//保存确认框
function payment_enquiry_save(){
var ds = $('RENT1030_manual_receipt_ds');
if (!ds.validate()) {
return;
}
Aurora.showConfirm('保存', '是否确认保存?', saveReceiptFee, null, 200, 100 );
}
//暂时没有用到此函数
function changeValue(comboBox, newValue, oldValue){
//debugger;
var objectVal = $('RENT1030_manual_receipt_ds').getCurrentRecord().getMeta().getField('receipt_objects_display');
if(newValue == '入住人员'){
objectVal.setRequired(true);
objectVal.setReadOnly(false);
}else{
objectVal.setRequired(false);
objectVal.setReadOnly(true);
}
}
]]></script>
<a:dataSets>
<!--收款方式-->
<!--<a:dataSet id="RENT1030_receipt_ways_ds" lookupCode="HLS_RECEIPT_WAY"/>-->
<!--收款来源-->
<!--<a:dataSet id="RENT1030_receipt_sources_ds" lookupCode="HLS_SOURCE_TYPE"/>-->
<!--币种类型-->
<a:dataSet id="RENT1030_currency_ds" model="hls_rent.RENT300.rent_fee_currency" loadData="true"/>
<a:dataSet id="RENT1030_manual_receipt_ds" autoCreate="true" model="hls_rent.RENT300.rent_receipt_fee">
<a:fields>
<a:field name="receipt_objects" required="true"/>
<a:field name="receipt_objects_display" required="true" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<a:mapping>
<a:map from="name" to="receipt_objects_display"/>
<a:map from="staff_no" to="receipt_objects"/>
</a:mapping>
</a:field>
<!--<a:field name="receipt_no"/>-->
<a:field name="receipt_date" required="true" />
<a:field name="receipt_ways" required="true" displayField="code_value_name" valueField="code_value" returnField="receipt_ways_code" options="RENT1030_receipt_ways_ds"/>
<a:field name="receipt_sources" required="true" displayField="code_value_name" valueField="code_value" returnField="receipt_sources_code" options="RENT1030_receipt_sources_ds"/>
<a:field name="receipt_amounts" required="true" />
<a:field name="currency" required="true" displayField="currency_name" options="RENT1030_currency_ds" returnField="fee_currency_code" valueField="currency_code" />
<a:field name="message" />
</a:fields>
<a:events>
<a:event name="update" handler="onReceiptWayUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_saveReceiptFee"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="RENT1030_manual_receipt_ds_form" style="width:100%;border:none" bindTarget="RENT1030_manual_receipt_ds" title ="收款新增">
<a:box column="3" >
<!--<a:textField name="receipt_no" bindTarget="RENT1030_manual_receipt_ds" prompt="收款编号" readOnly="true"/>-->
<a:datePicker name="receipt_date" bindTarget="RENT1030_manual_receipt_ds" prompt="收款日期"/>
<a:comboBox name="receipt_ways" bindTarget="RENT1030_manual_receipt_ds" prompt="收款方式"/>
</a:box>
<a:box id="RENT1030_receipt_sources_objects" column="2">
<a:comboBox name="receipt_sources" bindTarget="RENT1030_manual_receipt_ds" prompt="收款来源">
<!--<a:events>-->
<!--<a:event name="change" handler="changeValue"/>-->
<!--</a:events>-->
</a:comboBox>
<a:lov name="receipt_objects_display" bindTarget="RENT1030_manual_receipt_ds" prompt="收款对象"/>
</a:box>
<a:box column="2">
<a:numberField name="receipt_amounts" allowNegative="false" bindTarget="RENT1030_manual_receipt_ds" prompt="收款金额"/>
<a:comboBox name="currency" bindTarget="RENT1030_manual_receipt_ds" prompt="币种"/>
</a:box>
<a:box column="1">
<a:textArea name="message" bindTarget="RENT1030_manual_receipt_ds" prompt="备注" width="383"/>
</a:box>
<a:screenTopToolbar>
<a:gridButton id="csh511_receipt_save_id" click="payment_enquiry_save" text="HLS.SAVE"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_manual_verification_edit" url="${/request/@context_path}/modules/hls_rent/RENT300/manual_verification.screen"/>
<script><![CDATA[
function Warning(receipt_no) {
Aurora.showInfoMessage('警告','未核销金额不足!',null,300,100);
}
function RENT_manual_verification_grid(value, record, name){
<!--if(!record.isNew)-->
<!--{-->
<!--var receipt_no = record.get('receipt_no');-->
<!--var rlt = '<a href="javascript:RENT100_verificationInfoEdit(\'' + receipt_no + '\');">'+receipt_no+'</a>'-->
<!--if(name=='receipt_no')-->
<!--{-->
<!--return rlt;-->
<!--}-->
<!--}-->
<!--return '';-->
var receipt_no = value;
var verification_amounts_n = record.get('verification_amounts_n');
var rlt = '<a href="javascript:RENT100_verificationInfoEdit(\'' + receipt_no + '\');">'+receipt_no+'</a>'
if (verification_amounts_n > 0) {
return rlt;
} else {
return '<a href="javascript:Warning(\'' + receipt_no + '\');">'+receipt_no+'</a>'
}
}
function RENT100_verificationInfoEdit(receipt_no){
<!--debugger;-->
<!--var record_result = $('RENT1030_manual_result_ds').getCurrentRecord();-->
<!--var record_query = $('RENT1030_manual_query_ds').getCurrentRecord();-->
<!--var verification_amounts_n = record_result.get('verification_amounts_n');-->
<!--if(verification_amounts_n > 0){-->
new Aurora.Window({
id:'verification_result_window',
url:$('pageLink_manual_verification_edit').getUrl(),
params:{
receipt_no:receipt_no
<!--record_result:record_result,-->
<!--record_query:record_query-->
},
title:'手工核销',
height:500,
width:1030
});
<!--}else{-->
<!--//Aurora.showConfirm('警告','未核销金额不足',null,null,300,100);-->
<!--Aurora.showInfoMessage('警告','未核销金额不足!',null,300,100);-->
<!--}-->
}
function verificationQuery(){
$('RENT1030_manual_result_ds').query();
}
function changeValue(radio, newValue, oldValue){
<!--debugger;-->
var objectVal = $('RENT1030_manual_query_ds').getCurrentRecord().getMeta().getField('source_object_display');
if(newValue == 'room_people'){
objectVal.setRequired(true);
objectVal.setReadOnly(false);
}else{
<!--debugger;-->
objectVal.setRequired(false);
objectVal.setReadOnly(true);
var sourceObject = $('RENT1030_manual_query_ds').data[0].get('source_object_display');
var source_type = $('RENT1030_manual_query_ds').getCurrentRecord().get('source_type');
console.log(source_type);
if(sourceObject != null){
$('RENT1030_manual_query_ds').reset();
}
}
}
]]></script>
<a:dataSets>
<a:dataSet id="RENT1030_source_type_ds" lookupCode="HLS_SOURCE_TYPE"/>
<a:dataSet id="RENT1030_currency_ds" model="hls_rent.RENT300.rent_fee_currency" loadData="true"/>
<a:dataSet id="RENT1030_manual_query_ds" >
<a:fields>
<a:field name="source_type" displayField="code_value_name" valueField="code_value" returnField="source_code" options="RENT1030_source_type_ds" required="true"/>
<a:field name="verification_date"/>
<a:field name="source_object"/>
<a:field name="source_object_display" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象" readOnly="true">
<a:mapping>
<a:map from="name" to="source_object_display"/>
<a:map from="staff_no" to="source_object"/>
</a:mapping>
</a:field>
<a:field name="currency" displayField="currency_name" options="RENT1030_currency_ds" returnField="currency_code" valueField="currency_code" defaultValue="人民币"/>
<a:field name="verification_no"/>
</a:fields>
</a:dataSet>
<a:dataSet id="RENT1030_manual_result_ds" queryDataSet="RENT1030_manual_query_ds" model="hls_rent.RENT300.rent_manual_query">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form title="收款核销来源选择" style="width:100%; border:none">
<a:button text="确认" click="verificationQuery"/>
<a:box column="1" style="width:100%">
<a:radio name="source_type" prompt="收款来源于" bindTarget="RENT1030_manual_query_ds">
<a:items>
<a:item label="入住人员" value="room_people"/>
<a:item label="其他" value="others"/>
</a:items>
<a:events>
<a:event name="change" handler="changeValue"/>
</a:events>
</a:radio>
</a:box>
<a:box column="4" style="width:100%">
<a:datePicker name="verification_date" prompt="核销日期" bindTarget="RENT1030_manual_query_ds"/>
<a:lov name="source_object_display" prompt="来源对象" bindTarget="RENT1030_manual_query_ds"/>
<a:comboBox name="currency" prompt="核销币种" bindTarget="RENT1030_manual_query_ds"/>
<a:textField name="verification_no" readOnly="true" prompt="核销编号" bindTarget="RENT1030_manual_query_ds"/>
</a:box>
</a:form>
<a:grid bindTarget="RENT1030_manual_result_ds" navBar="true" marginHeight="81" marginWidth="45" >
<a:columns>
<a:column name="receipt_no" prompt="收款编号" renderer="RENT_manual_verification_grid" width="160" align="center"/>
<a:column name="receipt_date" prompt="收款日期" width="160" align="center"/>
<a:column name="receipt_ways" prompt="收款方式" width="160" align="center"/>
<a:column name="receipt_objects" prompt="收款对象" width="160" align="center"/>
<a:column name="receipt_amounts" prompt="收款金额" width="160" align="center"/>
<a:column name="verification_amounts_y" prompt="已核销金额" width="160" align="center"/>
<a:column name="verification_amounts_n" prompt="未核销金额" width="160" align="center"/>
<a:column name="message" prompt="备注" width="160" align="center"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_manual_receipt_add" url="${/request/@context_path}/modules/hls_rent/RENT300/rent_manual_receipt.screen"/>
<script><![CDATA[
//查询按钮
function receiptFeeSearch(){
$('RENT1030_receipt_result_ds').query();
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
//debugger;
//console.log(name);
if(name == 'receipt_date_begin' || name == 'receipt_date_end'){
var start_date = record.get('receipt_date_begin');
//console.log(start_date);
var end_date = record.get('receipt_date_end');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
//手工收款新增
function manualReceiptAdd(){
new Aurora.Window({
id:'manual_receipt_add_window',
url:$('pageLink_manual_receipt_add').getUrl(),
title:'新增房屋信息',
height:400,
width:800
})
}
function RENT1030_back(){
history.go(-1);
}
]]></script>
<a:dataSets>
<!--收款来源-->
<a:dataSet id="RENT1030_receipt_sources_ds" lookupCode="HLS_SOURCE_TYPE"/>
<!--收款方式-->
<a:dataSet id="RENT1030_receipt_ways_ds" lookupCode="HLS_RECEIPT_WAY"/>
<!--查询集-->
<a:dataSet id="RENT1030_receipt_query_ds">
<a:fields>
<a:field name="receipt_no"/>
<a:field name="receipt_sources" displayField="code_value_name" valueField="code_value" returnField="receipt_sources_code" options="RENT1030_receipt_sources_ds"/>
<a:field name="receipt_objects" />
<a:field name="receipt_objects_display" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<a:mapping>
<a:map from="name" to="receipt_objects_display"/>
<a:map from="staff_no" to="receipt_objects"/>
</a:mapping>
</a:field>
<a:field name="receipt_ways" displayField="code_value_name" valueField="code_value" returnField="receipt_ways_code" options="RENT1030_receipt_ways_ds"/>
<a:field name="receipt_date_begin"/>
<a:field name="receipt_date_end" validator="validate_date"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="RENT1030_receipt_result_ds" autoQuery="true" model="hls_rent.RENT300.rent_receipt_fee" queryDataSet="RENT1030_receipt_query_ds"/>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:toolbarButton click="RENT1030_back" text="HLS.BACK"/>
<a:toolbarButton click="receiptFeeSearch" text="HLS.QUERY"/>
</a:screenTopToolbar>
<a:form bindTarget="RENT1030_receipt_query_ds" style="width:100%;border:none" title="查询条件" >
<a:box id="RENT1030_receipt_query_box" column="3" style="width:100%">
<a:textField name="receipt_no" bindTarget="RENT1030_receipt_query_ds" prompt="收款编号"/>
<a:comboBox name="receipt_sources" bindTarget="RENT1030_receipt_query_ds" prompt="收款来源"/>
<a:lov name="receipt_objects_display" bindTarget="RENT1030_receipt_query_ds" prompt="收款对象"/>
<a:comboBox name="receipt_ways" bindTarget="RENT1030_receipt_query_ds" prompt="收款方式"/>
<a:datePicker name="receipt_date_begin" bindTarget="RENT1030_receipt_query_ds" prompt="收款日期从"/>
<a:datePicker name="receipt_date_end" bindTarget="RENT1030_receipt_query_ds" prompt="收款日期到"/>
</a:box>
</a:form>
<a:grid id="" bindTarget="RENT1030_receipt_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>-->
<!--<a:button text="删除" type="delete"/>-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="receipt_no" align="center" prompt="收款编号" width="160" />
<a:column name="receipt_date" align="center" prompt="收款日期" width="130"/>
<a:column name="receipt_sources" align="center" prompt="收款来源" width="130"/>
<a:column name="receipt_objects" align="center" prompt="收款对象" width="130"/>
<a:column name="receipt_ways" align="center" prompt="收款方式" width="130"/>
<a:column name="receipt_amounts" align="center" prompt="收款金额" width="130"/>
<a:column name="verification_amounts" align="center" prompt="核销金额" width="130"/>
<a:column name="currency" align="center" prompt="币种" width="130"/>
<a:column name="message" prompt="备注" width="180" align="center"/>
</a:columns>
<a:toolBar>
<a:button click="manualReceiptAdd" text="新增" iconAlign="right" width="80" />
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
function RENT1030_verification_query(){
<!--debugger;-->
$('RENT1030_verification_result_ds').query();
}
function RENT1030_back(){
history.go(-1);
}
]]></script>
<a:dataSets>
<a:dataSet id="RENT1030_creditor_project_ds" lookupCode="HLS_FEE_ITEMS"/>
<a:dataSet id="RENT1030_source_type_ds" lookupCode="HLS_SOURCE_TYPE"/>
<a:dataSet id="RENT1030_verification_query_ds" >
<a:fields>
<a:field name="verification_no"/>
<a:field name="contract_no"/>
<a:field name="fee_items" displayField="code_value_name" valueField="code_value" returnField="fee_items_code" options="RENT1030_creditor_project_ds"/>
<a:field name="verification_start_date"/>
<a:field name="verification_end_date"/>
<a:field name="source_type" displayField="code_value_name" valueField="code_value" returnField="source_type_code" options="RENT1030_source_type_ds"/>
<a:field name="source_object_name" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<a:mapping>
<a:map from="name" to="source_object_name"/>
<a:map from="staff_no" to="source_object"/>
</a:mapping>
</a:field>
<a:field name="source_object"/>
</a:fields>
</a:dataSet>
<a:dataSet id="RENT1030_verification_result_ds" model="hls_rent.RENT300.rent_ver_search" autoQuery="true" queryDataSet="RENT1030_verification_query_ds">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton click="RENT1030_back" text="HLS.BACK"/>
<a:gridButton click="RENT1030_verification_query" text="HLS.QUERY"/>
</a:screenTopToolbar>
<a:form bindTarget="RENT1030_verification_query_ds" style="width:100%;border:none" title="查询条件" >
<a:box id="RENT1030_verification_query_box" column="3" style="width:100%">
<a:textField name="verification_no" bindTarget="RENT1030_verification_query_ds" prompt="核销编号"/>
<a:textField name="contract_no" bindTarget="RENT1030_verification_query_ds" prompt="合同编号"/>
<a:comboBox name="fee_items" bindTarget="RENT1030_verification_query_ds" prompt="债权项"/>
<a:datePicker name="verification_start_date" bindTarget="RENT1030_verification_query_ds" prompt="核销日期从"/>
<a:datePicker name="verification_end_date" bindTarget="RENT1030_verification_query_ds" prompt="核销日期到"/>
<a:comboBox name="source_type" bindTarget="RENT1030_verification_query_ds" prompt="来源类别"/>
<a:lov name="source_object_name" bindTarget="RENT1030_verification_query_ds" prompt="来源对象"/>
</a:box>
</a:form>
<a:grid id="RENT1030_verification_grid" bindTarget="RENT1030_verification_result_ds" marginHeight="80" marginWidth="45" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>-->
<!--<a:button text="删除" type="delete"/>-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="verification_no" prompt="核销编号" width="160" align="center"/>
<a:column name="verification_date" prompt="核销日期" width="160" align="center"/>
<a:column name="contract_no" prompt="合同编号" width="160" align="center"/>
<a:column name="fee_item" prompt="债权项" width="160" align="center"/>
<a:column name="verification_fee" prompt="核销金额" width="160" align="center"/>
<a:column name="source_type_name" prompt="来源类别" width="160" align="center"/>
<a:column name="source_object_name" prompt="来源对象" width="160" align="center"/>
<a:column name="receipt_no" prompt="来源单号" width="160" align="center"/>
<a:column name="currency_name" prompt="币种" width="160" align="center"/>
<a:column name="message" prompt="备注" width="165" align="center"/>
</a:columns>
<!--<a:editors>-->
<!--<a:textField id="TEST1020_voucher_audit_tf"/>-->
<!--<a:numberField id="TEST1020_voucher_audit_nf"/>-->
<!--<a:lov id="TEST1020_voucher_audit_lv"/>-->
<!--</a:editors>-->
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm"> <bm:model xmlns:f="aurora.database.features" xmlns:bm="http://www.aurora-framework.org/schema/bm">
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
</bm:features> </bm:features>
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
SELECT hh.name,hh.staff_no,hh.phone_number FROM hls_hsm hh WHERE hh.people_status IN ('type2','type3') select * from(SELECT hh.name,hh.staff_no,hh.phone_number FROM hls_hsm hh WHERE hh.people_status IN ('type2','type3'))t #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
...@@ -17,8 +16,8 @@ ...@@ -17,8 +16,8 @@
<bm:field name="phone_number" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="false" forQuery="true" physicalName="PHONE_NUMBER" 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:fields>
<bm:query-fields> <bm:query-fields>
<bm:query-field field="name" queryExpression="hh.name like &apos;%&apos; || ${@name} || &apos;%&apos;"/> <bm:query-field field="name" queryExpression="t.name like &apos;%&apos; || ${@name} || &apos;%&apos;"/>
<bm:query-field field="staff_no" queryExpression="hh.staff_no =${@staff_no} "/> <bm:query-field field="staff_no" queryExpression="t.staff_no =${@staff_no} "/>
<bm:query-field field="phone_number" queryOperator="="/> <bm:query-field field="phone_number" queryOperator="="/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<!--<a:link id="hls_house_contract_link" url="${/request/@context_path}/modules/train/TRA1010/Search_detial.screen"/>-->
<!--<a:link id="hls_house_contract_add" url="${/request/@context_path}/modules/train/TRA1010/Create_contract.screen"/>-->
<!--<a:link id="hls_house_contract_modification" url="${/request/@context_path}/modules/train/TRA1010/modification.screen"/>-->
<a:link id="hls_checkin_detial_link" url="${/request/@context_path}/modules/hls_rent/RENT400/checkin2.screen"/>
<a:screenBody>
<script><![CDATA[
function hls_house_query() {
$('hls_search_line_ds').query();
}
function checkin_detial(){
if($('hls_search_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请选择一条记录!',null, 200, 100 );
return false;
}else if($('hls_search_line_ds').getSelected().length>1){
Aurora.showErrorMessage( 'ERROR', '只能选择一条记录!',null, 200, 100 );
return false;
}else{
var recordno=$('hls_search_line_ds').getSelected()[0];
var h_contract_number=recordno.get('h_contract_number');
var record = $('hls_search_line_ds').getCurrentRecord();
console.log(recordno);
furl = $('hls_checkin_detial_link').getUrl() + '?h_contract_number=' + h_contract_number;
//Aurora.go(furl)
new Aurora.Window({
id: 'checkin_detial_window',
url: furl,
title: '入住人员详细信息',
params: {
record: recordno,
winId: 'checkin_detial_window'
},
fullScreen:true
});
}
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_HOUSE_TYPE_ds" lookupCode="HLS_HOUSE_TYPE"/>
<!--<a:dataSet id="contract_condition_ds" lookupCode="CONTRACT_CONDITION"/>-->
<a:dataSet id="hls_search_contract_ds">
<a:datas>
<a:record contract_condition="合同确认状态"/>
</a:datas>
<a:fields>
<a:field name="h_contract_number"/>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel"/>
<a:field name="room_type" displayField="code_value_name" options="HLS_HOUSE_TYPE_ds" returnField="code_value_name" valueField="code_value"/>
<a:field name="intermediary"/>
<a:field name="intermediary_name"/>
<a:field name="contract_start_date"/>
<a:field name="contract_finish_date"/>
<!--<a:field name="contract_condition" displayField="code_value_name" options="contract_condition_ds" returnField="code_value_name" valueField="code_value"/>-->
</a:fields>
</a:dataSet>
<a:dataSet id="hls_search_line_ds" queryDataSet="hls_search_contract_ds" model="hls_rent.RENT500.HLS_room_contract_info" selectable="true" autoPageSize="true" autoCreate="true">
<a:field name="h_contract_number"/>
<a:field name="contract_condition"/>
<a:field name="room_id"/>
</a:dataSet>
</a:dataSets>
<a:screenTopToolbar>
<a:gridButton click="hls_house_query" text="查询" width="80"/>
<!--<a:gridButton click="addWindow" text="新增" width="80"/>-->
<!--<a:gridButton click="modificationWindow" text="修改" width="80"/>-->
</a:screenTopToolbar>
<a:form id="search_contract_header" style="width:100%" title="查询条件">
<a:box id="search_contract_header_box" column="3" style="width:100%">
<a:textField name="h_contract_number" bindtarget="hls_search_contract_ds" prompt="房屋合同编号"/>
<a:textField name="room_abbr" bindtarget="hls_search_contract_ds" prompt="房屋简称"/>
<a:comboBox name="room_type" bindtarget="hls_search_contract_ds" prompt="房屋类型"/>
<a:textField name="landlord_name" bindtarget="hls_search_contract_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="hls_search_contract_ds" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="hls_search_contract_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="hls_search_contract_ds" prompt="中介联系人"/>
<a:datePicker name="contract_start_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期从"/>
<a:datePicker name="contract_finish_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期到"/>
<!--<a:comboBox name="contract_condition" bindtarget="hls_search_contract_ds" prompt="租房合同状态"/>-->
</a:box>
</a:form>
<a:grid id="search_line_grid" bindTarget="hls_search_line_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="h_contract_number" prompt="房屋合同编号" width="140" />
<a:column name="room_abbr" prompt="房屋简称" width="80"/>
<a:column name="room_type" prompt="房屋类型" width="80"/>
<a:column name="landlord_name" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" prompt="联系电话" width="120"/>
<a:column name="intermediary" prompt="中介名称" width="80"/>
<a:column name="bed" prompt="床位" width="80"/>
<a:column name="bed_used" prompt="已住床位" width="80"/>
<a:column name="bed_free" prompt="剩余床位" width="80"/>
<a:column name="contract_start_date" prompt="合同开始日期" width="100"/>
<a:column name="contract_finish_date" prompt="合同到期日期" width="100"/>
<a:column name="contract_condition" prompt="房屋合同状态" width="120"/>
<!--<a:column name="contract_remark" prompt="合同备注" width="80"/>-->
</a:columns>
<a:toolBar>
<a:button click="checkin_detial" text="入住" width="80"/>
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<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/RENT400/contract_detial.screen"/>
<script><![CDATA[
function formatDate(value,record,name){
return value.substring(0,10);
}
function hls_house_query() {
//debugger;
$('hls_check_out_line_ds').query();
}
function hls_house_contract_link(value, record, name) {
url = $('hls_house_contract_link').getUrl() + '?h_contract_number=' + record.get('contract_no');
return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>';
}
function returnmain(){
history.go(0);
}
function openWindow(url) {
new Aurora.Window({
id: 'information_window',
url: url,
title: '合同信息详情',
height:480,width:820
});
}
function check_out(){
if($('hls_check_out_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}
if ($('HLS_check_out_date_ds').data.length == 0){
Aurora.showInfoMessage('退房日期确认','退房日期不能为空',null,300,100);
return;
}
else {
var check_out_date = $('HLS_check_out_date_ds').getCurrentRecord().get('check_out_date');
}
var ds = $('hls_check_out_line_ds').getSelected();
for (var i=0;i<ds.length;i++){
var live_start_date = ds[i].data.live_start_date;
console.log(live_start_date);
if(live_start_date>check_out_date){
Aurora.showInfoMessage('退房日期确认','退房日期不能早于入住日期!',null,300,100);
return;
}
ds[i].data.check_out_date = check_out_date;
}
console.log(ds);
Aurora.showConfirm('退房确认','是否退房?',checkoutfunction,null,300,100);
}
function checkoutfunction(){
var record=$('hls_check_out_line_ds').getSelected();
$('hls_check_out_line_ds').submitSelected();
}
//保存成功触发函数
function onSubmitSuccess_checkoutSave(){
console.log("保存成功")
hls_house_query();
}
]]></script>
<a:screenBody>
<a:dataSets>
<a:dataSet id="HLS_DEPT_TYPE_ds" lookupCode="HLS_DEPT_TYPE"/>
<a:dataSet id="HLS_SEX_ds" lookupCode="HLS211_GENDER"/>
<a:dataSet id="HLS_BASE_TYPE_DS" lookupCode="HLS_BASE_TYPE"/>
<a:dataSet id="HLS_check_out_date_ds">
<a:field name="check_out_date"/>
</a:dataSet>
<!--查询集-->
<a:dataSet id="checkout_head_ds" autoCreate="true">
<a:fields>
<a:field name="staff_no"/>
<a:field name="name"/>
<a:field name="gender" displayField="code_value_name" options="HLS_SEX_ds" returnField="code_value" valueField="code_value"/>
<a:field name="department" displayField="code_value_name" options="HLS_DEPT_TYPE_ds" returnField="code_value" valueField="code_value"/>
<a:field name="base_in" displayField="code_value_name" options="HLS_BASE_TYPE_DS" returnField="code_value" valueField="code_value"/>
<a:field name="phone_number" />
<a:field name="room_abbr"/>
<a:field name="live_start_date"/>
<a:field name="leaving_date"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="hls_check_out_line_ds" autoQuery="true" queryDataSet="checkout_head_ds" model="hls_rent.RENT400.checkout" selectable="true" submitUrl="${/request/@context_path}/modules/hls_rent/RENT400/checkout_save.svc" >
<a:fields>
<a:field name="contract_no"/>
<a:field name="room_id"/>
<a:field name="room_type"/>
<a:field name="live_start_date" />
<a:field name="rent_dates"/>
<a:field name="check_out_date"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_checkoutSave"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:form id="" style="width:100%" title="查询条件">
<a:screenTopToolbar>
<a:toolbarButton click="hls_house_query" text="查询" width="80"/>
</a:screenTopToolbar>
<a:box id="" column="3" style="width:100%">
<a:textField name="staff_no" bindtarget="checkout_head_ds" prompt="入住人员工号"/>
<a:textField name="name" bindtarget="checkout_head_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindtarget="checkout_head_ds" prompt="性别"/>
<a:comboBox name="department" bindtarget="checkout_head_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindtarget="checkout_head_ds" prompt="base地"/>
<a:textField name="phone_number" bindtarget="checkout_head_ds" prompt="联系电话"/>
<a:textField name="room_abbr" bindtarget="checkout_head_ds" prompt="房屋简称"/>
<a:datePicker name="live_start_date" bindtarget="checkout_head_ds" prompt="入住日期从"/>
<a:datePicker name="leaving_date" bindtarget="checkout_head_ds" prompt="入住日期到"/>
</a:box>
</a:form>
<a:grid id="111" bindTarget="hls_check_out_line_ds" height="200" marginHeight="121" marginWidth="45" title="查询结果" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="checkoutfunction" text="退房" width="80" />-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="contract_no" prompt="房屋合同编号" renderer="hls_house_contract_link" width="120" />
<a:column name="staff_no" prompt="入住人员工号" width="100"/>
<a:column name="name" prompt="入住人员姓名" width="100"/>
<a:column name="gender" prompt="性别" width="80"/>
<a:column name="department" prompt="所在部门" width="80"/>
<a:column name="base_in" prompt="base地" width="80"/>
<a:column name="phone_number" prompt="联系电话" width="100"/>
<a:column name="room_abbr" prompt="房屋简称" width="80"/>
<a:column name="room_type" prompt="房屋类型" width="80"/>
<a:column name="live_start_date" prompt="入住日期" width="160" renderer="Aurora.formatDate"/>
<a:column name="rent_dates" prompt="入住天数" width="80"/>
<a:column name="people_status" prompt="入住人员状态" width="120"/>
</a:columns>
<!--<a:box>-->
<!--<a:datePicker name="check_out_date" />-->
<!--<a:button text="退房" width="80" />-->
<!---->
<!--</a:box>-->
</a:grid>
<a:hBox>
<a:datePicker name="check_out_date" bindTarget="HLS_check_out_date_ds" prompt="退房日期">
</a:datePicker>
<a:toolbarButton click="check_out" text="退房"/>
</a:hBox>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-update model="hls_rent.RENT400.check_out_save"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="h_contract_number=${/parameter/@h_contract_number}" model="hls_rent.RENT500.HLS_room_contract_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
function formatDate(value,record,name){
return value.substring(0,10);
}
function chage_condition(){
var records = $('HLS_Contract_info_Sure_ds').getAll();
for ( var i = 0; i < records.length ; i++) {
records[i].set("h_contract_number", "${/parameter/@h_contract_number}");
}
console.log('records');
//var h_contract_number='${/parameter/@h_contract_number}';
//$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update"+'?h_contract_number='+h_contract_number);
$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update");
$('HLS_Contract_info_Sure_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_sureContractDs(){
//alert("?");
$('information_window').close();
hls_house_query();
}
]]></script>
<a:dataSets>
<!--<a:dataSet id="contract_condition_ds" model="train.contract_condition"/>-->
<!--确认操作DS-->
<a:dataSet id="HLS_Contract_info_Sure_ds" autoCreate="true">
<a:datas>
<!--<a:record h_contract_number="${/parameter/@h_contract_number}"/>-->
<a:record />
</a:datas>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
<!--合同详细信息-->
<a:dataSet id="HLS_Contract_info_ds" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="contract_ID" readOnly="true"/>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="month_rent_price" readOnly="true"/>
<a:field name="tenancy_term" readOnly="true"/>
<a:field name="agency_fee" readOnly="true"/>
<a:field name="contract_invoice_tax" readOnly="true"/>
<a:field name="sum_price" readOnly="true"/>
<a:field name="contract_condition" readOnly="true"/>
<a:field name="remark" readOnly="true"/>
<a:field name="contract_remark" readOnly="true"/>
<a:field name="currency" readOnly="true"/>
<a:field name="room_id" readOnly="true" lovHeight="460" lovService="hls_rent.RENT500.HLS_room_info" lovWidth="600" title="房屋选择">
<a:mapping>
<a:map from="room_area" to="room_area"/>
<a:map from="room_abbr" to="room_abbr"/>
<a:map from="room_type" to="room_type"/>
<a:map from="bed" to="bed"/>
<a:map from="room_id" to="room_id"/>
<a:map from="landlord_name" to="landlord_name"/>
<a:map from="landlord_tel" to="landlord_tel"/>
<a:map from="intermediary" to="intermediary"/>
<a:map from="intermediary_name" to="intermediary_name"/>
<a:map from="intermediary_tel" to="intermediary_tel"/>
<a:map from="message" to="message"/>
<a:map from="room_addr_country" to="room_addr_country"/>
<a:map from="room_addr_province" to="room_addr_province"/>
<a:map from="room_addr_city" to="room_addr_city"/>
</a:mapping>
</a:field>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:box id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="HLS_Contract_info_ds" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="HLS_Contract_info_ds" prompt="合同开始日期" renderer="formatDate"/>
<a:datePicker name="contract_finish_date" bindtarget="HLS_Contract_info_ds" prompt="合同结束日期" renderer="formatDate"/>
</a:box>
<a:box column="4">
<a:textField name="room_id" bindtarget="HLS_Contract_info_ds" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="HLS_Contract_info_ds" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="HLS_Contract_info_ds" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="HLS_Contract_info_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="HLS_Contract_info_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系电话"/>
<!--<a:textField name="" bindtarget="" editable="false" prompt="房屋地址"/>-->
<a:textField name="room_addr_country" bindtarget="HLS_Contract_info_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="HLS_Contract_info_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="HLS_Contract_info_ds" editable="false" prompt="市"/>
</a:box>
<a:box column="3">
<a:textField name="month_rent_price" bindtarget="HLS_Contract_info_ds" prompt="月租金"/>
<a:textField name="tenancy_term" bindtarget="HLS_Contract_info_ds" prompt="租期"/>
<a:textField name="agency_fee" bindtarget="HLS_Contract_info_ds" prompt="中介费"/>
<a:textField name="contract_invoice_tax" bindtarget="HLS_Contract_info_ds" prompt="合同发票税" />
<a:textField name="sum_price" bindtarget="HLS_Contract_info_ds" prompt="总金额" />
<a:textField name="currency" bindtarget="HLS_Contract_info_ds" editable="false" prompt="币种" />
</a:box>
<a:box column="1">
<a:textField name="remark" bindtarget="HLS_Contract_info_ds" prompt="备注" width="400"/>
<a:textField name="contract_remark" bindtarget="HLS_Contract_info_ds" prompt="合同备注" width="600"/>
</a:box>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:screenBody>
<a:script><![CDATA[
function v_sum_price(){
var record = $('hls_room_info_ds').getAt(0);
var sum_price = record.get('month_rent_price')*record.get('tenancy_term')+record.get('agency_fee')+record.get('Contract_invoice_tax');
record.set('sum_price',sum_price);
}
function saveContract(){
$('hls_room_info_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.HLS_Contract_info/batch_update");
$('hls_room_info_ds').submit();
//Aurora.showConfirm('提示:', '保存成功!',null,450, 300);
}
function returnmain(){
history.go(0);
}
//保存成功触发函数
function onSubmitSuccess_saveContractDs(){
$('new_information_window').close();
hls_house_query();
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
if(name == 'contract_start_date' || name == 'contract_finish_date'){
var start_date = record.get('contract_start_date');
//console.log(start_date);
var end_date = record.get('contract_finish_date');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
]]></a:script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs1" lookupCode="HLS_HOUSE_TYPE"/>
<!--合同新增DS-->
<a:dataSet id="hls_room_info_ds" model="hls_rent.RENT500.HLS_Contract_info" autoCreate="true">
<a:fields>
<a:field name="room_id" required="true" lovHeight="460" lovService="hls_rent.RENT500.HLS_room_info" lovWidth="600" title="房屋选择">
<a:mapping>
<a:map from="room_id" to="room_id" />
<a:map from="room_area" to="room_area"/>
<a:map from="room_abbr" to="room_abbr"/>
<a:map from="room_type" to="room_type"/>
<a:map from="bed" to="bed"/>
<a:map from="landlord_name" to="landlord_name"/>
<a:map from="landlord_tel" to="landlord_tel"/>
<a:map from="intermediary" to="intermediary"/>
<a:map from="intermediary_name" to="intermediary_name"/>
<a:map from="intermediary_tel" to="intermediary_tel"/>
<a:map from="message" to="message"/>
<a:map from="room_addr_country" to="room_addr_country"/>
<a:map from="room_addr_province" to="room_addr_province"/>
<a:map from="room_addr_city" to="room_addr_city"/>
</a:mapping>
</a:field>
<a:field name="h_contract_number" />
<a:field name="contract_start_date" required="true"/>
<a:field name="contract_finish_date" required="true"/>
<a:field name="contract_ID" />
<a:field name="h_contract_number" />
<a:field name="contract_start_date"/>
<a:field name="contract_finish_date" validator="validate_date"/>
<a:field name="month_rent_price" required="true"/>
<a:field name="tenancy_term" required="true"/>
<a:field name="agency_fee" required="true"/>
<a:field name="contract_invoice_tax" />
<a:field name="sum_price"/>
<a:field name="contract_condition"/>
<a:field name="contract_remark"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_saveContractDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<!--<a:screenTopToolbar>-->
<!--<a:gridbutton text="保存" click="saveContract" width="80" />-->
<!--</a:screenTopToolbar>-->
<a:form id="c_form" style="width:100%" title="">
<a:form id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="hls_room_info_ds" editable="false" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="hls_room_info_ds" prompt="合同开始日期"/>
<a:datePicker name="contract_finish_date" bindtarget="hls_room_info_ds" prompt="合同结束日期"/>
</a:form>
<a:form id="room_form" column="3" style="width:100%" title="房屋信息" >
<a:lov name="room_id" bindtarget="hls_room_info_ds" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="hls_room_info_ds" editable="false" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="hls_room_info_ds" editable="false" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="hls_room_info_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="hls_room_info_ds" editable="false" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="hls_room_info_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="hls_room_info_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="hls_room_info_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="hls_room_info_ds" editable="false" prompt="中介联系电话"/>
<a:textField name="" bindtarget="" editable="false" prompt="房屋地址"/>
<a:textField name="room_addr_country" bindtarget="hls_room_info_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="hls_room_info_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="hls_room_info_ds" editable="false" prompt="市"/>
</a:form>
<a:form id="" style="width:100%" >
<a:textField name="message" bindtarget="hls_room_info_ds" editable="false" width="400"/>
</a:form>
<a:form id="contract_form" column="2" style="width:100%" title="租金信息">
<a:numberField name="month_rent_price" allowNegative="false" bindtarget="hls_room_info_ds" prompt="月租金"/>
<a:numberField name="tenancy_term" bindtarget="hls_room_info_ds" prompt="租期"/>
<a:numberField name="agency_fee" bindtarget="hls_room_info_ds" prompt=" "/>
<a:numberField name="Contract_invoice_tax" bindtarget="hls_room_info_ds" prompt="合同发票税" />
<a:button click="v_sum_price" text="计算" width="80"/>
<a:numberField name="sum_price" bindtarget="hls_room_info_ds" editable="false" prompt="总金额" />
<a:textField name="remark" bindtarget="hls_room_info_ds" prompt="备注" width="400"/>
</a:form>
<a:form id="contract_remark_form" column="1" style="width:100%" >
<a:textField name="contract_remark" bindtarget="hls_room_info_ds" prompt="合同备注" width="600"/>
</a:form>
<a:form column="2">
<a:button text="保存" click="saveContract" width="80" />
<a:button text="返回" click="returnmain" width="80" />
</a:form>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<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
This diff is collapsed.
...@@ -157,7 +157,10 @@ ...@@ -157,7 +157,10 @@
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:form id="" title="查询条件"> <a:form id="" style="width:100%" title="查询条件">
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_roomInfoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
<a:box id="" column="3" style="width:100%"> <a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_query" prompt="房屋简称"/> <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_name" bindtarget="RENT100_room_info_query" prompt="房东姓名"/>
...@@ -167,9 +170,7 @@ ...@@ -167,9 +170,7 @@
<a:datePicker name="creation_date_to" 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:comboBox name="room_status" bindtarget="RENT100_room_info_query" prompt="房屋状态"/>
</a:box> </a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_roomInfoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
</a:form> </a:form>
<a:grid id="RENT100_room_info_result_grid" bindTarget="RENT100_room_info_result_ds" marginHeight="121" marginWidth="45" navBar="true"> <a:grid id="RENT100_room_info_result_grid" bindTarget="RENT100_room_info_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns> <a:columns>
......
...@@ -5,28 +5,40 @@ ...@@ -5,28 +5,40 @@
<script><![CDATA[ <script><![CDATA[
function before_click(){ function before_click(){
//debugger; //debugger;
var record_result = $('RENT1030_manual_result_ds').getCurrentRecord();
var record_query = $('RENT1030_manual_query_ds').getCurrentRecord();
<!--console.log('record_result',record_result);-->
<!--console.log('record_query',record_query);-->
var receipt_no = $('verification_result_window').params.receipt_no; var receipt_no = $('verification_result_window').params.receipt_no;
var staff_no = $('verification_result_window').params.record_query.get('source_object'); var staff_no = 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'); var contract_no_field = $('RENT1030_contract_no_ds').getCurrentRecord().getMeta().getField('contract_no');
url = "hls_rent.RENT300.contract_room_no?staff_no="+staff_no; url = "hls_rent.RENT300.contract_room_no?staff_no="+staff_no+"&receipt_no="+receipt_no;
contract_no_field.setLovService(url); contract_no_field.setLovService(url);
} }
function value_change(){ function value_change(){
//debugger; //debugger;
var total_receipt = $('verification_result_window').params.record_result.get('verification_amounts_n'); var total_receipt = $('RENT1030_manual_result_ds').getCurrentRecord().get('verification_amounts_n');
total_receipt = Number(total_receipt); total_receipt = Number(total_receipt);
var RENT1030_contract_no_ds_record = $('RENT1030_contract_no_ds').getCurrentRecord(); var RENT1030_contract_no_ds_record = $('RENT1030_contract_no_ds').getCurrentRecord();
var apportion_rental = RENT1030_contract_no_ds_record.get('apportion_rental'); var apportion_rental = RENT1030_contract_no_ds_record.get('apportion_rental');
apportion_rental = Number(apportion_rental); apportion_rental = Number(apportion_rental);
var apportion_water = RENT1030_contract_no_ds_record.get('apportion_water'); var apportion_water = RENT1030_contract_no_ds_record.get('apportion_water');
apportion_water = Number(apportion_water); apportion_water = Number(apportion_water);
var apportion_electric = RENT1030_contract_no_ds_record.get('apportion_electric'); var apportion_electric = RENT1030_contract_no_ds_record.get('apportion_electric');
apportion_electric = Number(apportion_electric); apportion_electric = Number(apportion_electric);
var apportion_network = RENT1030_contract_no_ds_record.get('apportion_network'); var apportion_network = RENT1030_contract_no_ds_record.get('apportion_network');
apportion_network = Number(apportion_network) apportion_network = Number(apportion_network);
var apportion_cable = RENT1030_contract_no_ds_record.get('apportion_cable'); var apportion_cable = RENT1030_contract_no_ds_record.get('apportion_cable');
apportion_cable = Number(apportion_cable); apportion_cable = Number(apportion_cable);
if(total_receipt > apportion_rental){ if(total_receipt > apportion_rental){
RENT1030_contract_no_ds_record.set('verification_rental', apportion_rental); RENT1030_contract_no_ds_record.set('verification_rental', apportion_rental);
var remain_receipt_1 = total_receipt - apportion_rental; var remain_receipt_1 = total_receipt - apportion_rental;
...@@ -132,24 +144,24 @@ ...@@ -132,24 +144,24 @@
<a:grid marginHeight="121" marginWidth="45" bindTarget="RENT1030_contract_no_ds"> <a:grid marginHeight="121" marginWidth="45" bindTarget="RENT1030_contract_no_ds">
<a:columns> <a:columns>
<a:column prompt="应付租金"> <a:column prompt="应付租金">
<a:column prompt="剩余债权" name="apportion_rental" renderer="Aurora.formatMoney"/> <a:column prompt="剩余债权" name="apportion_rental" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_rental" renderer="Aurora.formatMoney"/> <a:column prompt="本次核销" name="verification_rental" renderer="Aurora.formatMoney" align="center"/>
</a:column> </a:column>
<a:column prompt="应付水费"> <a:column prompt="应付水费">
<a:column prompt="剩余债权" name="apportion_water" renderer="Aurora.formatMoney"/> <a:column prompt="剩余债权" name="apportion_water" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_water" renderer="Aurora.formatMoney"/> <a:column prompt="本次核销" name="verification_water" renderer="Aurora.formatMoney" align="center"/>
</a:column> </a:column>
<a:column prompt="应付电费"> <a:column prompt="应付电费">
<a:column prompt="剩余债权" name="apportion_electric" renderer="Aurora.formatMoney"/> <a:column prompt="剩余债权" name="apportion_electric" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_electric" renderer="Aurora.formatMoney"/> <a:column prompt="本次核销" name="verification_electric" renderer="Aurora.formatMoney" align="center"/>
</a:column> </a:column>
<a:column prompt="应付宽带网络费"> <a:column prompt="应付宽带网络费">
<a:column prompt="剩余债权" name="apportion_network" renderer="Aurora.formatMoney"/> <a:column prompt="剩余债权" name="apportion_network" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_network" renderer="Aurora.formatMoney"/> <a:column prompt="本次核销" name="verification_network" renderer="Aurora.formatMoney" align="center"/>
</a:column> </a:column>
<a:column prompt="应付有线电视费"> <a:column prompt="应付有线电视费">
<a:column prompt="剩余债权" name="apportion_cable" renderer="Aurora.formatMoney"/> <a:column prompt="剩余债权" name="apportion_cable" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_cable" renderer="Aurora.formatMoney"/> <a:column prompt="本次核销" name="verification_cable" renderer="Aurora.formatMoney" align="center"/>
</a:column> </a:column>
</a:columns> </a:columns>
</a:grid> </a:grid>
......
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
<!--debugger;--> <!--debugger;-->
$('RENT1030_fee_info_result_ds').query(); $('RENT1030_fee_info_result_ds').query();
} }
function RENT1030_back(){
history.go(-1);
}
]]> ]]>
</script> </script>
...@@ -42,12 +45,12 @@ ...@@ -42,12 +45,12 @@
</a:fields> </a:fields>
</a:dataSet> </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 id="RENT1030_fee_info_result_ds" queryDataSet="RENT1030_fee_info_query_ds" model="hls_rent.RENT300.rent_fee_query" autoQuery="true">
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton click="" text="HLS.BACK"/> <a:gridButton click="RENT1030_back" text="HLS.BACK"/>
<a:gridButton click="RENT1030_queryFeeInfo" text="HLS.QUERY"/> <a:gridButton click="RENT1030_queryFeeInfo" text="HLS.QUERY"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form bindTarget="RENT1030_fee_info_query_ds" style="width:100%;border:none" title="查询条件" > <a:form bindTarget="RENT1030_fee_info_query_ds" style="width:100%;border:none" title="查询条件" >
...@@ -63,19 +66,19 @@ ...@@ -63,19 +66,19 @@
</a:box> </a:box>
</a:form> </a:form>
<a:grid id="RENT1030_fee_info_result_grid" bindTarget="RENT1030_fee_info_result_ds" marginHeight="121" marginWidth="45" navBar="true"> <a:grid id="RENT1030_fee_info_result_grid" bindTarget="RENT1030_fee_info_result_ds" marginHeight="81" marginWidth="45" navBar="true">
<a:toolBar> <a:toolBar>
<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/> <a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>
</a:toolBar> </a:toolBar>
<a:columns> <a:columns>
<a:column name="fee_no" editor="TEST1020_voucher_audit_tf" prompt="费用单编号" width="150"/> <a:column name="fee_no" prompt="费用单编号" width="160" align="center"/>
<a:column name="fee_items" editor="TEST1020_voucher_audit_lv" prompt="费用项目" width="150"/> <a:column name="fee_items" prompt="费用项目" width="160" align="center"/>
<a:column name="fee_sources" editor="" prompt="费用来源" width="150"/> <a:column name="fee_sources" prompt="费用来源" width="160" align="center"/>
<a:column name="fee_objects" editor="TEST1020_voucher_audit_tf" prompt="费用对象" width="150"/> <a:column name="fee_objects" prompt="费用对象" width="160" align="center"/>
<a:column name="fee_first_date" editor="TEST1020_voucher_audit_nf" prompt="费用发生日" width="150"/> <a:column name="fee_first_date" prompt="费用发生日" width="160" align="center"/>
<a:column name="fee_last_date" editor="TEST1020_voucher_audit_nf" prompt="费用结束日" width="150"/> <a:column name="fee_last_date" prompt="费用结束日" width="160" align="center"/>
<a:column name="fee_amounts" editor="TEST1020_voucher_audit_tf" prompt="费用金额" width="150"/> <a:column name="fee_amounts" prompt="费用金额" width="160" align="center"/>
<a:column name="fee_add_date" editor="TEST1020_voucher_audit_tf" prompt="新增日期" width="150"/> <a:column name="fee_add_date" prompt="新增日期" width="160" align="center"/>
</a:columns> </a:columns>
<!--<a:editors>--> <!--<a:editors>-->
<!--<a:textField id="TEST1020_voucher_audit_tf"/>--> <!--<a:textField id="TEST1020_voucher_audit_tf"/>-->
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
} }
Aurora.showConfirm('保存', '是否确认保存?', saveReceiptFee, null, 200, 100 ); Aurora.showConfirm('保存', '是否确认保存?', saveReceiptFee, null, 200, 100 );
} }
//暂时没有用到此函数
function changeValue(comboBox, newValue, oldValue){ function changeValue(comboBox, newValue, oldValue){
//debugger; //debugger;
var objectVal = $('RENT1030_manual_receipt_ds').getCurrentRecord().getMeta().getField('receipt_objects_display'); var objectVal = $('RENT1030_manual_receipt_ds').getCurrentRecord().getMeta().getField('receipt_objects_display');
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<!--收款方式--> <!--收款方式-->
<a:dataSet id="RENT1030_receipt_ways_ds" lookupCode="HLS_RECEIPT_WAY"/> <!--<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_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_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:dataSet id="RENT1030_manual_receipt_ds" autoCreate="true" model="hls_rent.RENT300.rent_receipt_fee">
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<a:lov name="receipt_objects_display" bindTarget="RENT1030_manual_receipt_ds" prompt="收款对象"/> <a:lov name="receipt_objects_display" bindTarget="RENT1030_manual_receipt_ds" prompt="收款对象"/>
</a:box> </a:box>
<a:box column="2"> <a:box column="2">
<a:numberField name="receipt_amounts" bindTarget="RENT1030_manual_receipt_ds" prompt="收款金额"/> <a:numberField name="receipt_amounts" allowNegative="false" bindTarget="RENT1030_manual_receipt_ds" prompt="收款金额"/>
<a:comboBox name="currency" bindTarget="RENT1030_manual_receipt_ds" prompt="币种"/> <a:comboBox name="currency" bindTarget="RENT1030_manual_receipt_ds" prompt="币种"/>
</a:box> </a:box>
<a:box column="1"> <a:box column="1">
...@@ -98,7 +98,6 @@ ...@@ -98,7 +98,6 @@
</a:box> </a:box>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton id="csh511_receipt_save_id" click="payment_enquiry_save" text="HLS.SAVE"/> <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:screenTopToolbar>
</a:form> </a:form>
</a:screenBody> </a:screenBody>
......
...@@ -3,60 +3,79 @@ ...@@ -3,60 +3,79 @@
<a:view> <a:view>
<a:link id="pageLink_manual_verification_edit" url="${/request/@context_path}/modules/hls_rent/RENT300/manual_verification.screen"/> <a:link id="pageLink_manual_verification_edit" url="${/request/@context_path}/modules/hls_rent/RENT300/manual_verification.screen"/>
<script><![CDATA[ <script><![CDATA[
function Warning(receipt_no) {
Aurora.showInfoMessage('警告','未核销金额不足!',null,300,100);
}
function RENT_manual_verification_grid(value, record, name){ function RENT_manual_verification_grid(value, record, name){
if(!record.isNew) <!--if(!record.isNew)-->
{ <!--{-->
var receipt_no = record.get('receipt_no'); <!--var receipt_no = record.get('receipt_no');-->
<!--var rlt = '<a href="javascript:RENT100_verificationInfoEdit(\'' + receipt_no + '\');">'+receipt_no+'</a>'-->
<!--if(name=='receipt_no')-->
<!--{-->
<!--return rlt;-->
<!--}-->
<!--}-->
<!--return '';-->
var receipt_no = value;
var verification_amounts_n = record.get('verification_amounts_n');
var rlt = '<a href="javascript:RENT100_verificationInfoEdit(\'' + receipt_no + '\');">'+receipt_no+'</a>' var rlt = '<a href="javascript:RENT100_verificationInfoEdit(\'' + receipt_no + '\');">'+receipt_no+'</a>'
if(name=='receipt_no') if (verification_amounts_n > 0) {
{
return rlt; return rlt;
} else {
return '<a href="javascript:Warning(\'' + receipt_no + '\');">'+receipt_no+'</a>'
} }
}
return '';
} }
function RENT100_verificationInfoEdit(receipt_no){ function RENT100_verificationInfoEdit(receipt_no){
var record_result = $('RENT1030_manual_result_ds').getCurrentRecord(); <!--debugger;-->
var record_query = $('RENT1030_manual_query_ds').getCurrentRecord(); <!--var record_result = $('RENT1030_manual_result_ds').getCurrentRecord();-->
<!--var record_query = $('RENT1030_manual_query_ds').getCurrentRecord();-->
<!--var verification_amounts_n = record_result.get('verification_amounts_n');-->
<!--if(verification_amounts_n > 0){-->
new Aurora.Window({ new Aurora.Window({
id:'verification_result_window', id:'verification_result_window',
url:$('pageLink_manual_verification_edit').getUrl(), url:$('pageLink_manual_verification_edit').getUrl(),
params:{ params:{
receipt_no:receipt_no, receipt_no:receipt_no
record_result:record_result, <!--record_result:record_result,-->
record_query:record_query <!--record_query:record_query-->
}, },
title:'手工核销', title:'手工核销',
height:500, height:500,
width:1030 width:1030
}); });
<!--}else{-->
<!--//Aurora.showConfirm('警告','未核销金额不足',null,null,300,100);-->
<!--Aurora.showInfoMessage('警告','未核销金额不足!',null,300,100);-->
<!--}-->
} }
function verificationQuery(){ function verificationQuery(){
$('RENT1030_manual_result_ds').query(); $('RENT1030_manual_result_ds').query();
} }
function changeValue(radio, newValue, oldValue){ function changeValue(radio, newValue, oldValue){
// debugger; <!--debugger;-->
var objectVal = $('RENT1030_manual_query_ds').getCurrentRecord().getMeta().getField('source_object_display'); var objectVal = $('RENT1030_manual_query_ds').getCurrentRecord().getMeta().getField('source_object_display');
if(newValue == 'room_people'){ if(newValue == 'room_people'){
objectVal.setRequired(true); objectVal.setRequired(true);
objectVal.setReadOnly(false); objectVal.setReadOnly(false);
}else{ }else{
//debugger; <!--debugger;-->
objectVal.setRequired(false); objectVal.setRequired(false);
objectVal.setReadOnly(true); objectVal.setReadOnly(true);
var sourceObject = $('RENT1030_manual_query_ds').data[0].get('source_object_display'); var sourceObject = $('RENT1030_manual_query_ds').data[0].get('source_object_display');
var source_type = $('RENT1030_manual_query_ds').getCurrentRecord().get('source_type'); var source_type = $('RENT1030_manual_query_ds').getCurrentRecord().get('source_type');
console.log(source_type); console.log(source_type);
if(sourceObject != null){ if(sourceObject != null){
// Aurora.showInfoMessage('${1:PROMPT}', '警告', null, 250, 100);
$('RENT1030_manual_query_ds').reset(); $('RENT1030_manual_query_ds').reset();
} }
} }
} }
//function click(){
// }
]]></script> ]]></script>
...@@ -68,17 +87,17 @@ ...@@ -68,17 +87,17 @@
<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="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="verification_date"/>
<a:field name="source_object"/> <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:field name="source_object_display" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象" readOnly="true">
<a:mapping> <a:mapping>
<a:map from="name" to="source_object_display"/> <a:map from="name" to="source_object_display"/>
<a:map from="staff_no" to="source_object"/> <a:map from="staff_no" to="source_object"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="currency" displayField="currency_name" options="RENT1030_currency_ds" returnField="currency_code" valueField="currency_code" defaultValue=""/> <a:field name="currency" displayField="currency_name" options="RENT1030_currency_ds" returnField="currency_code" valueField="currency_code" defaultValue="人民币"/>
<a:field name="verification_no"/> <a:field name="verification_no"/>
</a:fields> </a:fields>
</a:dataSet> </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 id="RENT1030_manual_result_ds" queryDataSet="RENT1030_manual_query_ds" model="hls_rent.RENT300.rent_manual_query">
</a:dataSet> </a:dataSet>
</a:dataSets> </a:dataSets>
...@@ -103,16 +122,16 @@ ...@@ -103,16 +122,16 @@
<a:textField name="verification_no" readOnly="true" prompt="核销编号" bindTarget="RENT1030_manual_query_ds"/> <a:textField name="verification_no" readOnly="true" prompt="核销编号" bindTarget="RENT1030_manual_query_ds"/>
</a:box> </a:box>
</a:form> </a:form>
<a:grid bindTarget="RENT1030_manual_result_ds" navBar="true" marginHeight="121" marginWidth="45" > <a:grid bindTarget="RENT1030_manual_result_ds" navBar="true" marginHeight="81" marginWidth="45" >
<a:columns> <a:columns>
<a:column name="receipt_no" prompt="收款编号" renderer="RENT_manual_verification_grid" width="150"/> <a:column name="receipt_no" prompt="收款编号" renderer="RENT_manual_verification_grid" width="160" align="center"/>
<a:column name="receipt_date" prompt="收款日期" width="160"/> <a:column name="receipt_date" prompt="收款日期" width="160" align="center"/>
<a:column name="receipt_ways" prompt="收款方式" width="160"/> <a:column name="receipt_ways" prompt="收款方式" width="160" align="center"/>
<a:column name="receipt_objects" prompt="收款对象" width="160"/> <a:column name="receipt_objects" prompt="收款对象" width="160" align="center"/>
<a:column name="receipt_amounts" prompt="收款金额" width="160"/> <a:column name="receipt_amounts" prompt="收款金额" width="160" align="center"/>
<a:column name="verification_amounts_y" prompt="已核销金额" width="160"/> <a:column name="verification_amounts_y" prompt="已核销金额" width="160" align="center"/>
<a:column name="verification_amounts_n" prompt="未核销金额" width="160"/> <a:column name="verification_amounts_n" prompt="未核销金额" width="160" align="center"/>
<a:column name="message" prompt="备注"/> <a:column name="message" prompt="备注" width="160" align="center"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true"> <a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view> <a:view>
<a:link id="pageLink_manual_receipt_add" url="${/request/@context_path}/modules/hls_rent/RENT300/rent_manual_receipt.screen"/>
<script><![CDATA[ <script><![CDATA[
//查询按钮 //查询按钮
function receiptFeeSearch(){ function receiptFeeSearch(){
...@@ -31,7 +32,19 @@ ...@@ -31,7 +32,19 @@
return true; return true;
} }
} }
//手工收款新增
function manualReceiptAdd(){
new Aurora.Window({
id:'manual_receipt_add_window',
url:$('pageLink_manual_receipt_add').getUrl(),
title:'新增房屋信息',
height:400,
width:800
})
}
function RENT1030_back(){
history.go(-1);
}
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<!--收款来源--> <!--收款来源-->
...@@ -62,7 +75,7 @@ ...@@ -62,7 +75,7 @@
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:screenTitle/> <a:screenTitle/>
<a:toolbarButton click="" text="HLS.BACK"/> <a:toolbarButton click="RENT1030_back" text="HLS.BACK"/>
<a:toolbarButton click="receiptFeeSearch" text="HLS.QUERY"/> <a:toolbarButton click="receiptFeeSearch" text="HLS.QUERY"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form bindTarget="RENT1030_receipt_query_ds" style="width:100%;border:none" title="查询条件" > <a:form bindTarget="RENT1030_receipt_query_ds" style="width:100%;border:none" title="查询条件" >
...@@ -81,21 +94,19 @@ ...@@ -81,21 +94,19 @@
<!--<a:button text="删除" type="delete"/>--> <!--<a:button text="删除" type="delete"/>-->
<!--</a:toolBar>--> <!--</a:toolBar>-->
<a:columns> <a:columns>
<a:column name="receipt_no" align="center" editor="TEST1020_voucher_audit_tf" prompt="收款编号" width="120"/> <a:column name="receipt_no" align="center" prompt="收款编号" width="160" />
<a:column name="receipt_date" align="center" editor="TEST1020_voucher_audit_lv" prompt="收款日期" width="120"/> <a:column name="receipt_date" align="center" prompt="收款日期" width="130"/>
<a:column name="receipt_sources" align="center" editor="" prompt="收款来源" width="120"/> <a:column name="receipt_sources" align="center" prompt="收款来源" width="130"/>
<a:column name="receipt_objects" align="center" editor="TEST1020_voucher_audit_tf" prompt="收款对象" width="120"/> <a:column name="receipt_objects" align="center" prompt="收款对象" width="130"/>
<a:column name="receipt_ways" align="center" editor="TEST1020_voucher_audit_nf" prompt="收款方式" width="80"/> <a:column name="receipt_ways" align="center" prompt="收款方式" width="130"/>
<a:column name="receipt_amounts" align="center" editor="TEST1020_voucher_audit_nf" prompt="收款金额" width="80"/> <a:column name="receipt_amounts" align="center" prompt="收款金额" width="130"/>
<a:column name="verification_amounts" align="center" editor="TEST1020_voucher_audit_tf" prompt="核销金额" width="120"/> <a:column name="verification_amounts" align="center" prompt="核销金额" width="130"/>
<a:column name="currency" align="center" editor="TEST1020_voucher_audit_tf" prompt="币种" width="120"/> <a:column name="currency" align="center" prompt="币种" width="130"/>
<a:column name="message" editor="TEST1020_voucher_audit_tf" prompt="备注" width="120"/> <a:column name="message" prompt="备注" width="180" align="center"/>
</a:columns> </a:columns>
<a:editors> <a:toolBar>
<a:textField id="TEST1020_voucher_audit_tf"/> <a:button click="manualReceiptAdd" text="新增" iconAlign="right" width="80" />
<a:numberField id="TEST1020_voucher_audit_nf"/> </a:toolBar>
<a:lov id="TEST1020_voucher_audit_lv"/>
</a:editors>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
</a:view> </a:view>
......
...@@ -2,112 +2,76 @@ ...@@ -2,112 +2,76 @@
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true"> <a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view> <a:view>
<script><![CDATA[ <script><![CDATA[
function RENT1030_verification_query(){
<!--debugger;-->
<!--查询按钮--> $('RENT1030_verification_result_ds').query();
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}';
} }
function RENT1030_back(){
history.go(-1);
} }
return true;
}
}
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<!--费用项目-->
<a:dataSet id="RENT1030_creditor_project_ds" lookupCode="HLS_FEE_ITEMS"/> <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_source_type_ds" lookupCode="HLS_SOURCE_TYPE"/>
<!--币种类型--> <a:dataSet id="RENT1030_verification_query_ds" >
<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:fields>
<a:field name="verification_no"/> <a:field name="verification_no"/>
<a:field name="contract_no"/> <a:field name="contract_no"/>
<a:field name="creditor_project_code"/> <a:field name="fee_items" displayField="code_value_name" valueField="code_value" returnField="fee_items_code" options="RENT1030_creditor_project_ds"/>
<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_start_date"/>
<a:field name="verification_end_date" validator="validate_date"/> <a:field name="verification_end_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_type" displayField="code_value_name" valueField="code_value" returnField="source_type_code" options="RENT1030_source_type_ds"/>
<a:field name="source_object_name" lovGridHeight="360" lovHeight="480" lovService="hls_rent.RENT300.rent_source_object" lovWidth="680" title="来源对象">
<!--<a: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:mapping>
<a:map from="name" to="source_object"/> <a:map from="name" to="source_object_name"/>
<!--<a:map from="staff_no" to="source_object"/>--> <a:map from="staff_no" to="source_object"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="source_object"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<!--结果集--> <a:dataSet id="RENT1030_verification_result_ds" model="hls_rent.RENT300.rent_ver_search" autoQuery="true" queryDataSet="RENT1030_verification_query_ds">
<a:dataSet id="RENT1030_verification_query" autoQuery="true" model="hls_rent.RENT300.rent_ver_search" queryDataSet="RENT1030_verification_query_ds" selectable="true"/> </a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
<a:screenTitle/> <a:gridButton click="RENT1030_back" text="HLS.BACK"/>
<a:gridButton click="" text="HLS.BACK"/> <a:gridButton click="RENT1030_verification_query" text="HLS.QUERY"/>
<a:gridButton click="HLS_staff_infoSearch" text="HLS.QUERY"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form bindTarget="RENT1030_verification_query_ds" style="width:100%;border:none" title="查询条件" > <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: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="verification_no" bindTarget="RENT1030_verification_query_ds" prompt="核销编号"/>
<a:textField name="contract_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:comboBox name="fee_items" bindTarget="RENT1030_verification_query_ds" prompt="债权项"/>
<a:datePicker name="verification_start_date" bindTarget="RENT1030_verification_query_ds" prompt="核销日期从"/> <a:datePicker name="verification_start_date" bindTarget="RENT1030_verification_query_ds" prompt="核销日期从"/>
<a:datePicker name="verification_end_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:comboBox name="source_type" bindTarget="RENT1030_verification_query_ds" prompt="来源类别"/>
<a:lov name="source_object" bindTarget="RENT1030_verification_query_ds" prompt="来源对象"/> <a:lov name="source_object_name" bindTarget="RENT1030_verification_query_ds" prompt="来源对象"/>
</a:box> </a:box>
</a:form> </a:form>
<a:grid id="" bindTarget="RENT1030_verification_query" marginHeight="121" marginWidth="45" navBar="true"> <a:grid id="RENT1030_verification_grid" bindTarget="RENT1030_verification_result_ds" marginHeight="80" marginWidth="45" navBar="true">
<!--<a:toolBar>--> <!--<a:toolBar>-->
<!--<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>--> <!--<a:button click="RENT1030_addFeeInfo" icon="${/request/@context_path}/images/add.gif" text="HLS.NEW"/>-->
<!--<a:button text="删除" type="delete"/>--> <!--<a:button text="删除" type="delete"/>-->
<!--</a:toolBar>--> <!--</a:toolBar>-->
<a:columns> <a:columns>
<a:column name="verification_no" editor="TEST1020_voucher_audit_tf" prompt="核销编号" width="160"/> <a:column name="verification_no" prompt="核销编号" width="160" align="center"/>
<a:column name="verification_date" editor="TEST1020_voucher_audit_lv" prompt="核销日期" width="160"/> <a:column name="verification_date" prompt="核销日期" width="160" align="center"/>
<a:column name="contract_no" editor="" prompt="合同编号" width="160"/> <a:column name="contract_no" prompt="合同编号" width="160" align="center"/>
<a:column name="creditor_project" editor="TEST1020_voucher_audit_tf" prompt="债权项" width="160"/> <a:column name="fee_item" prompt="债权项" width="160" align="center"/>
<a:column name="verification_fee" editor="TEST1020_voucher_audit_nf" prompt="核销金额" width="160"/> <a:column name="verification_fee" prompt="核销金额" width="160" align="center"/>
<a:column name="source_type" editor="TEST1020_voucher_audit_nf" prompt="来源类别" width="160"/> <a:column name="source_type_name" prompt="来源类别" width="160" align="center"/>
<a:column name="source_object" editor="TEST1020_voucher_audit_tf" prompt="来源对象" width="160"/> <a:column name="source_object_name" prompt="来源对象" width="160" align="center"/>
<a:column name="receipt_no" editor="TEST1020_voucher_audit_tf" prompt="来源单号" width="160"/> <a:column name="receipt_no" prompt="来源单号" width="160" align="center"/>
<a:column name="currency" editor="TEST1020_voucher_audit_tf" prompt="币种" width="160"/> <a:column name="currency_name" prompt="币种" width="160" align="center"/>
<a:column name="message" editor="TEST1020_voucher_audit_tf" prompt="备注" width="160"/> <a:column name="message" prompt="备注" width="165" align="center"/>
</a:columns> </a:columns>
<a:editors> <!--<a:editors>-->
<a:textField id="TEST1020_voucher_audit_tf"/> <!--<a:textField id="TEST1020_voucher_audit_tf"/>-->
<a:numberField id="TEST1020_voucher_audit_nf"/> <!--<a:numberField id="TEST1020_voucher_audit_nf"/>-->
<a:lov id="TEST1020_voucher_audit_lv"/> <!--<a:lov id="TEST1020_voucher_audit_lv"/>-->
</a:editors> <!--</a:editors>-->
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
</a:view> </a:view>
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
var record = $('hls_search_line_ds').getCurrentRecord(); var record = $('hls_search_line_ds').getCurrentRecord();
console.log(recordno); console.log(recordno);
furl = $('hls_checkin_detial_link').getUrl() + '?h_contract_number=' + h_contract_number; furl = $('hls_checkin_detial_link').getUrl() + '?h_contract_number=' + h_contract_number;
//Aurora.go(furl)
new Aurora.Window({ new Aurora.Window({
id: 'checkin_detial_window', id: 'checkin_detial_window',
url: furl, url: furl,
...@@ -35,7 +36,7 @@ ...@@ -35,7 +36,7 @@
record: recordno, record: recordno,
winId: 'checkin_detial_window' winId: 'checkin_detial_window'
}, },
height:480,width:820 fullScreen:true
}); });
} }
} }
......
...@@ -80,9 +80,6 @@ ...@@ -80,9 +80,6 @@
<a:dataSets> <a:dataSets>
<!--新增入住人员信息--> <!--新增入住人员信息-->
<a:dataSet id="HLS_create_people_info_ds" selectable="true" model="hls_rent.RENT400.checkin_save"> <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:fields>
<a:field name="staff_no" lovGridHeight="300" lovHeight="500" lovService="hls_rent.RENT400.hls_hsm_info" lovWidth="600" required="true" title="入住人员信息"> <a:field name="staff_no" lovGridHeight="300" lovHeight="500" lovService="hls_rent.RENT400.hls_hsm_info" lovWidth="600" required="true" title="入住人员信息">
<a:mapping> <a:mapping>
...@@ -102,7 +99,6 @@ ...@@ -102,7 +99,6 @@
<a:events> <a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_record_save"/> <a:event name="submitsuccess" handler="onSubmitSuccess_record_save"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<!--根据房屋合同编号查询已入住人员信息--> <!--根据房屋合同编号查询已入住人员信息-->
<a:dataSet id="HLS_checkin_people_info_query_ds" selectable="true"> <a:dataSet id="HLS_checkin_people_info_query_ds" selectable="true">
...@@ -128,8 +124,9 @@ ...@@ -128,8 +124,9 @@
<a:field name="contract_invoice_tax"/> <a:field name="contract_invoice_tax"/>
<a:field name="sum_price"/> <a:field name="sum_price"/>
<a:field name="contract_condition"/> <a:field name="contract_condition"/>
<a:field name="contract_remark"/> <a:field name="contract_remark" readOnly="true"/>
<a:field name="room_id" /> <a:field name="room_id" />
<a:field name="room_abbr" />
<a:field name="room_type"/> <a:field name="room_type"/>
<a:field name="room_area" /> <a:field name="room_area" />
<a:field name="landlord_name" /> <a:field name="landlord_name" />
...@@ -159,7 +156,7 @@ ...@@ -159,7 +156,7 @@
<a:column name="base_in" prompt="base地" width="80"/> <a:column name="base_in" prompt="base地" width="80"/>
<a:column name="phone_number" prompt="联系电话" width="80"/> <a:column name="phone_number" prompt="联系电话" width="80"/>
<a:column name="email" prompt="邮箱地址" width="80"/> <a:column name="email" prompt="邮箱地址" width="80"/>
<a:column name="leaving_date" prompt="预计入住时间至" width="120"/> <a:column name="leaving_date" prompt="预计入住时间至" renderer="Aurora.formatDate" width="120"/>
</a:columns> </a:columns>
</a:grid> </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:grid id="checkin_det" style="width:100%" bindtarget="HLS_create_people_info_ds" navBar="true" showRowNumber="true" height="300" selectable="true" title="新增入住人员">
...@@ -185,7 +182,7 @@ ...@@ -185,7 +182,7 @@
</a:grid> </a:grid>
<a:form id="search_room_info" style="width:100%" title="房屋信息"> <a:form id="search_room_info" style="width:100%" title="房屋信息">
<a:box column="3"> <a:box column="3">
<a:textField name="room_id" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋选择"/> <a:textField name="room_abbr" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋选择"/>
<a:textField name="room_type" 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="room_area" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="Hls_hsm_ds" editable="false" prompt="床位" /> <a:textField name="bed" bindtarget="Hls_hsm_ds" editable="false" prompt="床位" />
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true"> <a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view> <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_link" url="${/request/@context_path}/modules/hls_rent/RENT400/contract_detial.screen"/>
<script><![CDATA[ <script><![CDATA[
function formatDate(value,record,name){ function formatDate(value,record,name){
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
new Aurora.Window({ new Aurora.Window({
id: 'information_window', id: 'information_window',
url: url, url: url,
title: '合同信息确认', title: '合同信息详情',
height:480,width:820 height:480,width:820
}); });
} }
...@@ -56,11 +56,8 @@ ...@@ -56,11 +56,8 @@
} }
function checkoutfunction(){ function checkoutfunction(){
var record=$('hls_check_out_line_ds').getSelected(); var record=$('hls_check_out_line_ds').getSelected();
$('hls_check_out_line_ds').submitSelected(); $('hls_check_out_line_ds').submitSelected();
//Aurora.showInfoMessage('${l:PROMPT}', '退房成功!', null, 250, 100);
} }
//保存成功触发函数 //保存成功触发函数
function onSubmitSuccess_checkoutSave(){ function onSubmitSuccess_checkoutSave(){
...@@ -122,7 +119,7 @@ ...@@ -122,7 +119,7 @@
<a:datePicker name="leaving_date" bindtarget="checkout_head_ds" prompt="入住日期到"/> <a:datePicker name="leaving_date" bindtarget="checkout_head_ds" prompt="入住日期到"/>
</a:box> </a:box>
</a:form> </a:form>
<a:grid id="111" bindTarget="hls_check_out_line_ds" marginHeight="121" marginWidth="45" title="查询结果" navBar="true"> <a:grid id="111" bindTarget="hls_check_out_line_ds" height="200" marginHeight="121" marginWidth="45" title="查询结果" navBar="true">
<!--<a:toolBar>--> <!--<a:toolBar>-->
<!--<a:button click="checkoutfunction" text="退房" width="80" />--> <!--<a:button click="checkoutfunction" text="退房" width="80" />-->
<!--</a:toolBar>--> <!--</a:toolBar>-->
...@@ -148,7 +145,6 @@ ...@@ -148,7 +145,6 @@
</a:grid> </a:grid>
<a:hBox> <a:hBox>
<a:datePicker name="check_out_date" bindTarget="HLS_check_out_date_ds" prompt="退房日期"> <a:datePicker name="check_out_date" bindTarget="HLS_check_out_date_ds" prompt="退房日期">
</a:datePicker> </a:datePicker>
<a:toolbarButton click="check_out" text="退房"/> <a:toolbarButton click="check_out" text="退房"/>
</a:hBox> </a:hBox>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="h_contract_number=${/parameter/@h_contract_number}" model="hls_rent.RENT500.HLS_room_contract_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
function formatDate(value,record,name){
return value.substring(0,10);
}
function chage_condition(){
var records = $('HLS_Contract_info_Sure_ds').getAll();
for ( var i = 0; i < records.length ; i++) {
records[i].set("h_contract_number", "${/parameter/@h_contract_number}");
}
console.log('records');
//var h_contract_number='${/parameter/@h_contract_number}';
//$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update"+'?h_contract_number='+h_contract_number);
$('HLS_Contract_info_Sure_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT500.contract_condition/batch_update");
$('HLS_Contract_info_Sure_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_sureContractDs(){
//alert("?");
$('information_window').close();
hls_house_query();
}
]]></script>
<a:dataSets>
<!--<a:dataSet id="contract_condition_ds" model="train.contract_condition"/>-->
<!--确认操作DS-->
<a:dataSet id="HLS_Contract_info_Sure_ds" autoCreate="true">
<a:datas>
<!--<a:record h_contract_number="${/parameter/@h_contract_number}"/>-->
<a:record />
</a:datas>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
<!--合同详细信息-->
<a:dataSet id="HLS_Contract_info_ds" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="contract_ID" readOnly="true"/>
<a:field name="h_contract_number" readOnly="true"/>
<a:field name="contract_start_date" readOnly="true"/>
<a:field name="contract_finish_date" readOnly="true"/>
<a:field name="month_rent_price" readOnly="true"/>
<a:field name="tenancy_term" readOnly="true"/>
<a:field name="agency_fee" readOnly="true"/>
<a:field name="contract_invoice_tax" readOnly="true"/>
<a:field name="sum_price" readOnly="true"/>
<a:field name="contract_condition" readOnly="true"/>
<a:field name="remark" readOnly="true"/>
<a:field name="contract_remark" readOnly="true"/>
<a:field name="currency" readOnly="true"/>
<a:field name="room_id" readOnly="true" lovHeight="460" lovService="hls_rent.RENT500.HLS_room_info" lovWidth="600" title="房屋选择">
<a:mapping>
<a:map from="room_area" to="room_area"/>
<a:map from="room_abbr" to="room_abbr"/>
<a:map from="room_type" to="room_type"/>
<a:map from="bed" to="bed"/>
<a:map from="room_id" to="room_id"/>
<a:map from="landlord_name" to="landlord_name"/>
<a:map from="landlord_tel" to="landlord_tel"/>
<a:map from="intermediary" to="intermediary"/>
<a:map from="intermediary_name" to="intermediary_name"/>
<a:map from="intermediary_tel" to="intermediary_tel"/>
<a:map from="message" to="message"/>
<a:map from="room_addr_country" to="room_addr_country"/>
<a:map from="room_addr_province" to="room_addr_province"/>
<a:map from="room_addr_city" to="room_addr_city"/>
</a:mapping>
</a:field>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_sureContractDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:box id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="HLS_Contract_info_ds" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="HLS_Contract_info_ds" prompt="合同开始日期" renderer="formatDate"/>
<a:datePicker name="contract_finish_date" bindtarget="HLS_Contract_info_ds" prompt="合同结束日期" renderer="formatDate"/>
</a:box>
<a:box column="4">
<a:textField name="room_id" bindtarget="HLS_Contract_info_ds" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="HLS_Contract_info_ds" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="HLS_Contract_info_ds" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="HLS_Contract_info_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="HLS_Contract_info_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="HLS_Contract_info_ds" editable="false" prompt="中介联系电话"/>
<!--<a:textField name="" bindtarget="" editable="false" prompt="房屋地址"/>-->
<a:textField name="room_addr_country" bindtarget="HLS_Contract_info_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="HLS_Contract_info_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="HLS_Contract_info_ds" editable="false" prompt="市"/>
</a:box>
<a:box column="3">
<a:textField name="month_rent_price" bindtarget="HLS_Contract_info_ds" prompt="月租金"/>
<a:textField name="tenancy_term" bindtarget="HLS_Contract_info_ds" prompt="租期"/>
<a:textField name="agency_fee" bindtarget="HLS_Contract_info_ds" prompt="中介费"/>
<a:textField name="contract_invoice_tax" bindtarget="HLS_Contract_info_ds" prompt="合同发票税" />
<a:textField name="sum_price" bindtarget="HLS_Contract_info_ds" prompt="总金额" />
<a:textField name="currency" bindtarget="HLS_Contract_info_ds" editable="false" prompt="币种" />
</a:box>
<a:box column="1">
<a:textField name="remark" bindtarget="HLS_Contract_info_ds" prompt="备注" width="400"/>
<a:textField name="contract_remark" bindtarget="HLS_Contract_info_ds" prompt="合同备注" width="600"/>
</a:box>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<a:textField name="message" bindtarget="hls_room_info_ds" editable="false" width="400"/> <a:textField name="message" bindtarget="hls_room_info_ds" editable="false" width="400"/>
</a:form> </a:form>
<a:form id="contract_form" column="2" style="width:100%" title="租金信息"> <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="month_rent_price" allowNegative="false" bindtarget="hls_room_info_ds" prompt="月租金"/>
<a:numberField name="tenancy_term" bindtarget="hls_room_info_ds" prompt="租期"/> <a:numberField name="tenancy_term" bindtarget="hls_room_info_ds" prompt="租期"/>
<a:numberField name="agency_fee" 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:numberField name="Contract_invoice_tax" bindtarget="hls_room_info_ds" prompt="合同发票税" />
......
This diff is collapsed.
...@@ -7,7 +7,7 @@ sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkin1.screen', ...@@ -7,7 +7,7 @@ sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkin1.screen',
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/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/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/checkin_save.svc','人员入住SVC',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/contract_detial.screen','合同详情',0,0,0);
sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkout_save.svc','人员退房SVC',0,0,0); sys_function_assign_pkg.service_load('modules/hls_rent/RENT400/checkout_save.svc','人员退房SVC',0,0,0);
...@@ -24,7 +24,8 @@ sys_function_assign_pkg.func_load('RENT4002','人员退房','','F','modules/hls_ ...@@ -24,7 +24,8 @@ sys_function_assign_pkg.func_load('RENT4002','人员退房','','F','modules/hls_
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/checkin1.screen');
sys_function_assign_pkg.func_service_load('RENT4001','modules/hls_rent/RENT400/checkin2.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/RENT400/checkout.screen');
sys_function_assign_pkg.func_service_load('RENT4002','modules/hls_rent/RENT500/Search_detial.screen'); sys_function_assign_pkg.func_service_load('RENT4002','modules/hls_rent/RENT400/contract_detial.screen');
--分配bm, bm位置:WEB-INF/classes/ --分配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.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.RENT500.HLS_room_contract_info');
......
...@@ -14,15 +14,15 @@ sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_manual_verif ...@@ -14,15 +14,15 @@ sys_function_assign_pkg.service_load('modules/hls_rent/RENT300/rent_manual_verif
--功能定义 --功能定义
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','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('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','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('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','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('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','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('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','ZHS');
sys_function_assign_pkg.func_load('RENT3006','核销页面','','F','modules/hls_rent/RENT300/manual_verification.screen','1','US'); sys_function_assign_pkg.func_load('RENT3006','核销页面','','F','modules/hls_rent/RENT300/manual_verification.screen','1','US');
...@@ -64,7 +64,7 @@ sys_function_assign_pkg.func_bm_load('RENT3006','hls_rent.RENT300.rent_source_ob ...@@ -64,7 +64,7 @@ sys_function_assign_pkg.func_bm_load('RENT3006','hls_rent.RENT300.rent_source_ob
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=>'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=>'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=>'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=>'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); 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);
......
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool hls_verification_tab.log
prompt
prompt Creating table hls_verification_tab
prompt ===========================
prompt
whenever sqlerror continue
drop table hls_verification_tab;
whenever sqlerror exit failure rollback
-- Create table
create table hls_verification_tab
(
verification_id number not null,
verification_no varchar2(30),
contract_no varchar2(30),
verification_date date,
source_type varchar2(30),
source_object varchar2(30),
receipt_no varchar230),
currency varchar2(30),
message varchar2(30),
credit_item_rent varchar2(30),
credit_item_water varchar2(30),
credit_item_electric varchar2(30),
credit_item_network varchar2(30),
credit_item_cable varchar2(30),
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_verification_tab is '收款核销事务表';
comment on column hls_verification_tab.verification_id is '列描述';
comment on column hls_verification_tab.verification_no is '核销编号';
comment on column hls_verification_tab.contract_no is '房屋合同编号';
comment on column hls_verification_tab.verification_date is '核销日期';
comment on column hls_verification_tab.source_type is '来源类型(入住人员)';
comment on column hls_verification_tab.source_object is '来源对象(入住人员信息)';
comment on column hls_verification_tab.receipt_no is '来源单号(收款事务编号)';
comment on column hls_verification_tab.currency is '币种';
comment on column hls_verification_tab.message is '备注';
comment on column hls_verification_tab.credit_item_rent is '债权项(租金)';
comment on column hls_verification_tab.credit_item_water is '债权项(水费)';
comment on column hls_verification_tab.credit_item_electric is '债权项(电费)';
comment on column hls_verification_tab.credit_item_network is '债权项(网络费)';
comment on column hls_verification_tab.credit_item_cable is '债权项(有线费)';
comment on column hls_verification_tab.creation_date is '创建日期';
comment on column hls_verification_tab.created_by is '创建人';
comment on column hls_verification_tab.last_updated_by is '最后修改人';
comment on column hls_verification_tab.last_update_date is '最后修改日期';
-- create/recreate primary, unique and foreign key constraints
alter table hls_verification_tab
add constraint hls_verification_tab_pk primary key (verification_id);
create index hls_verification_tab_n1 on hls_verification_tab(verification_id,verification_no);
spool off
exit
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