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>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_room_info_edit" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_edit.screen"/>
<a:link id="pageLink_room_info_new" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_new.screen"/>
<script><![CDATA[
//新增按钮
function RENT100_roomInfoAdd(){
new Aurora.Window({
id:'room_info_new_window',
url:$('pageLink_room_info_new').getUrl(),
title:'新增房屋信息',
height:400,
width:800
})
}
//删除按钮
function RENT100_roomInfoRemove(){
//console.log($('RENT100_room_info_result_grid'));
//debugger;
if(hls_houses_remove_confirm()){
$('RENT100_room_info_result_grid').remove();
}
return;
}
//判断选中记录是否有效
function hls_houses_remove_confirm(){
if($('RENT100_room_info_result_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}else{
var records=$('RENT100_room_info_result_ds').getSelected();
for(i=0;i<records.length;i++){
if(records[i].get('room_status')=='已租住'){
Aurora.showErrorMessage( 'ERROR', '房屋状态为已租住,不能删除!!',null, 200, 100 );
return false;
}
}
}
return true;
}
//查询按钮
function RENT100_roomInfoSearch(){
//console.log('1');
$('RENT100_room_info_result_ds').query();
}
//
function getNowFormatDate() {
var date = new Date();
var seperator1 = "-";
var year = date.getFullYear();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = year + seperator1 + month + seperator1 + strDate;
return currentdate;
}
//grid渲染函数
function RENT100_room_info_result_ds_grid(value, record, name){
//debugger;
if(!record.isNew)
{
var room_no = record.get('room_no');
var rlt = '<a href="javascript:RENT100_roomInfoEdit(\'' + room_no + '\');">'+room_no+'</a>'
if(name=='room_no')
{
return rlt;
}
}
return '';
}
//编辑窗口
function RENT100_roomInfoEdit(room_no){
new Aurora.Window({
id:'room_info_search_result_window',
url:$('pageLink_room_info_edit').getUrl(),
params:{
room_no:room_no
},
title:'修改房屋信息',
height:500,
width:830
});
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
//debugger;
//console.log(name);
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
//console.log(start_date);
var end_date = record.get('creation_date_to');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
//判断电话号码是否有效
function validate_telNumber(record, name, value){
if(name == 'landlord_tel'){
var landlord_tel = record.get('landlord_tel');
if(typeof(landlord_tel) != 'undefined' && !Ext.isEmpty(landlord_tel)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(landlord_tel))){
return '请输入正确的手机号码';
}
}
return true;
}
if(name == 'intermediary_tel'){
var intermediary_tel = record.get('intermediary_tel');
if(typeof(intermediary_tel) != 'undefined' && !Ext.isEmpty(intermediary_tel)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(intermediary_tel))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs1" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋状态-->
<a:dataSet id="RENT100_roomStatusDs" lookupCode="HLS_HOUSE_STATUS"/>
<!-- 查询集-->
<a:dataSet id="RENT100_room_info_query" autoCreate="true">
<a:fields>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel" validator="validate_telNumber"/>
<a:field name="room_type" displayField="code_value_name" options="RENT100_roomTypeDs1" returnField="room_type_code" valueField="code_value"/>
<a:field name="creation_date_from" />
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="room_status" displayField="code_value_name" options="RENT100_roomStatusDs" returnField="room_status_code" valueField="code_value"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="RENT100_room_info_result_ds" autoQuery="true" model="hls_rent.RENT100.hls_room_info" queryDataSet="RENT100_room_info_query" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:form id="" 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: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:form>
<a:grid id="RENT100_room_info_result_grid" bindTarget="RENT100_room_info_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="room_no" editor="" prompt="房屋编号" renderer="RENT100_room_info_result_ds_grid" width="120" />
<a:column name="room_abbr" align="center" editor="" prompt="房屋简称" width="100"/>
<a:column name="room_type" align="center" editor="" prompt="房屋类型" width="100"/>
<a:column name="bed_free" align="center" editor="" prompt="床位" width="80"/>
<a:column name="landlord_name" align="center" editor="" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" align="center" editor="" prompt="联系电话" width="120"/>
<a:column name="intermediary" align="center" editor="" prompt="中介名称" width="120"/>
<a:column name="room_addr_province" align="center" editor="" prompt="房屋地址省" width="100"/>
<a:column name="room_addr_city" align="center" editor="" prompt="房屋地址市" width="100"/>
<a:column name="room_status" align="center" editor="" prompt="房屋状态" width="80"/>
<a:column name="create_date" align="center" editor="" prompt="创建日期" width="120" />
<a:column name="message" editor="" prompt="备注" width="120"/>
</a:columns>
<!--<a:datePicker name="" prompt="退房日期"/>-->
<a:toolBar>
<!--<a:link id="room_info_new" url="${/request/@context_path}/room_info_new.screen">-->
<a:button click="RENT100_roomInfoRemove" text="删除" iconAlign="right" width="80" />
<a:button click="RENT100_roomInfoAdd" text="新增" iconAlign="right" width="80" />
<!--</a:link>-->
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<script><![CDATA[
//二级联动
function onCountryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_code'){
console.log(name);
console.log(value);
$('RENT100_provinceDs').setQueryParameter('country_code', value);
$('RENT100_provinceDs').query();
}
else if(name == 'province_code'){
console.log(name);
console.log(value);
$('RENT100_cityDs').setQueryParameter('province_code', value);
$('RENT100_cityDs').query();
}
}
//保存
function RENT100_saveRoomInfo() {
//console.log("fuck");
//数据提交
$('RENT100_room_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT100.hls_room_info/batch_update");
$('RENT100_room_info_input_ds').submit();
//$('room_info_new_window').close();
//$('RENT100_room_info_input_ds').reset();
// alert("????");
}
//提交成功之后触发此函数
function onSubmitSuccess_roomInfoInputDs(){
//$('RENT100_room_info_input_ds').reset();
$('room_info_new_window').close();
RENT100_roomInfoSearch();
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋面积-->
<a:dataSet id="RENT100_roomAreaDs" lookupCode="HLS_HOUSE_AREA"/>
<!-- 床位数量-->
<a:dataSet id="RENT100_bedNumberDs" lookupCode="HLS_BED_NUMBER"/>
<!-- 房屋地址三级联动-->
<a:dataSet id="RENT100_countryDs" loadData="true" model="hls_rent.RENT100.fnd_country"/>
<a:dataSet id="RENT100_provinceDs" model="hls_rent.RENT100.fnd_province" fetchAll="true"/>
<a:dataSet id="RENT100_cityDs" model="hls_rent.RENT100.fnd_city" fetchAll="true"/>
<!-- 房屋信息-->
<a:dataSet id="RENT100_room_info_input_ds" autoCreate="true">
<a:fields>
<a:field name="room_type" required="true" displayField="code_value_name" options="RENT100_roomTypeDs" returnField="room_type_code" valueField="code_value"/>
<a:field name="room_area" required="true" displayField="code_value_name" options="RENT100_roomAreaDs" returnField="room_area_code" valueField="code_value"/>
<a:field name="bed_free" required="true" displayField="code_value_name" options="RENT100_bedNumberDs" returnField="bed_free_code" valueField="code_value"/>
<a:field name="landlord_name" displayField="period_name" options="" required="true" returnField="period_name" valueField="period_name"/>
<a:field name="landlord_tel" required="true" validator="validate_telNumber"/>
<a:field name="room_addr_country" required="true" displayField="country_code_description" options="RENT100_countryDs" returnField="country_code" valueField="country_code"/>
<a:field name="room_addr_province" required="true" displayField="province_code_description" options="RENT100_provinceDs" returnField="province_code" valueField="province_code"/>
<a:field name="room_addr_city" required="true" displayField="city_code_description" options="RENT100_cityDs" returnField="city_code" valueField="city_code"/>
<a:field name="room_abbr" displayField="currency_desc" options="" required="true" returnField="currency_code" valueField="currency_code"/>
<a:field name="intermediary" required="true"/>
<a:field name="intermediary_name" displayField="type_name" options="" required="true" returnField="exchange_rate_type" valueField="type_code"/>
<a:field name="intermediary_tel" required="true" validator="validate_telNumber"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCountryUpdate"/>
<a:event name="submitsuccess" handler="onSubmitSuccess_roomInfoInputDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="新增房屋信息">
<a:box id="" column="3" style="width:100%">
<a:comboBox name="room_type" bindtarget="RENT100_room_info_input_ds" prompt="房屋类型"/>
<a:comboBox name="room_area" bindtarget="RENT100_room_info_input_ds" prompt="房屋面积"/>
<a:comboBox name="bed_free" bindtarget="RENT100_room_info_input_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_input_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_input_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:comboBox name="room_addr_country" bindtarget="RENT100_room_info_input_ds" prompt="房屋地址:国家"/>
<a:comboBox name="room_addr_province" bindtarget="RENT100_room_info_input_ds" prompt="省"/>
<a:comboBox name="room_addr_city" bindtarget="RENT100_room_info_input_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_input_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_input_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_input_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_input_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_saveRoomInfo" text="保存" width="80"/>
<!--<a:toolbarButton click="" text="关闭" width="80"/>-->
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="pageLink_room_info_new" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_new.screen"/>
<a:link id="pageLink_room_info_search_result" url="${/request/@context_path}/modules/hls_rent/RENT100/room_info_search_result.screen"/>
<script><![CDATA[
//新增按钮
function RENT100_roomInfoAdd(){
new Aurora.Window({
id:'room_info_new_window',
url:$('pageLink_room_info_new').getUrl(),
title:'新增房屋信息',
height:400,
width:800
})
}
//查询按钮
function RENT100_roomInfoSearch(){
console.log('1');
$('RENT100_room_info_result_ds').query();
}
//grid渲染函数
function RENT100_room_info_result_ds_grid(value, record, name){
//debugger;
if(!record.isNew)
{
var room_no = record.get('room_no');
var rlt = '<a href="javascript:RENT100_roomInfoSearchResult(\'' + room_no + '\');">'+room_no+'</a>'
if(name=='room_no')
{
return rlt;
}
}
return '';
}
//查询结果显示框
function RENT100_roomInfoSearchResult(room_no){
new Aurora.Window({
id:'room_info_search_result_window',
url:$('pageLink_room_info_search_result').getUrl(),
params:{
room_no:room_no
},
title:'查询结果显示',
height:400,
width:830
});
}
//比较日期
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
//判断日期是否有效
function validate_date(record, name, value){
//debugger;
//console.log(name);
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
//console.log(start_date);
var end_date = record.get('creation_date_to');
//console.log(end_date);
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
//判断电话号码是否有效
function validate_telNumber(record, name, value){
if(name == 'landlord_tel'){
var landlord_tel = record.get('landlord_tel');
if(typeof(landlord_tel) != 'undefined' && !Ext.isEmpty(landlord_tel)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(landlord_tel))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 房屋类型-->
<a:dataSet id="RENT100_roomTypeDs1" lookupCode="HLS_HOUSE_TYPE"/>
<!-- 房屋状态-->
<a:dataSet id="RENT100_roomStatusDs" lookupCode="HLS_HOUSE_STATUS"/>
<!-- 查询集-->
<a:dataSet id="RENT100_room_info_query" autoCreate="true">
<a:fields>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel" validator="validate_telNumber"/>
<a:field name="room_type" displayField="code_value_name" options="RENT100_roomTypeDs1" returnField="room_type_code" valueField="code_value"/>
<a:field name="creation_date_from"/>
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="room_status" displayField="code_value_name" options="RENT100_roomStatusDs" returnField="room_status_code" valueField="code_value"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="RENT100_room_info_result_ds" autoQuery="true" model="hls_rent.RENT100.hls_room_info" queryDataSet="RENT100_room_info_query"/>
</a:dataSets>
<a:screenBody>
<a:form id="" title="查询条件">
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_query" prompt="房屋简称"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_query" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_query" prompt="联系电话"/>
<a:comboBox name="room_type" bindtarget="RENT100_room_info_query" prompt="房屋类型"/>
<a:datePicker name="creation_date_from" bindtarget="RENT100_room_info_query" prompt="创建日期从"/>
<a:datePicker name="creation_date_to" bindtarget="RENT100_room_info_query" prompt="创建日期到"/>
<a:comboBox name="room_status" bindtarget="RENT100_room_info_query" prompt="房屋状态"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="RENT100_roomInfoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
</a:form>
<a:grid id="RENT100_room_info_result_ds_grid" bindTarget="RENT100_room_info_result_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="room_no" align="center" editor="" prompt="房屋编号" renderer="RENT100_room_info_result_ds_grid" width="120" />
<a:column name="room_abbr" align="center" editor="" prompt="房屋简称" width="100"/>
<a:column name="room_type" align="center" editor="" prompt="房屋类型" width="100"/>
<a:column name="bed_free" align="center" editor="" prompt="床位" width="80"/>
<a:column name="landlord_name" align="center" editor="" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" align="center" editor="" prompt="联系电话" width="120"/>
<a:column name="intermediary" align="center" editor="" prompt="中介名称" width="120"/>
<a:column name="room_addr_province" align="center" editor="" prompt="房屋地址省" width="100"/>
<a:column name="room_addr_city" align="center" editor="" prompt="房屋地址市" width="100"/>
<a:column name="room_status" align="center" editor="" prompt="房屋状态" width="80"/>
<a:column name="create_date" align="center" editor="" prompt="创建日期" width="120" />
<a:column name="message" editor="" prompt="备注" width="120"/>
</a:columns>
<!--<a:datePicker name="" prompt="退房日期"/>-->
<a:toolBar>
<!--<a:link id="room_info_new" url="${/request/@context_path}/room_info_new.screen">-->
<!--<a:button click="RENT100_roomInfoAdd" text="新增" iconAlign="right" width="80" />-->
<!--</a:link>-->
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="room_no=${/parameter/@room_no}" model="hls_rent.RENT100.hls_room_info" rootPath="link_path" />
</a:init-procedure>
<a:view>
<a:dataSets>
<a:dataSet id="RENT100_room_info_search_result_ds" model="hls_rent.RENT100.hls_room_info" autoCreate="true">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="room_type" readOnly="true" />
<a:field name="room_area" readOnly="true" />
<a:field name="bed_free" readOnly="true"/>
<a:field name="landlord_name" readOnly="true"/>
<a:field name="landlord_tel" readOnly="true"/>
<a:field name="room_addr_country" readOnly="true"/>
<a:field name="room_addr_province" readOnly="true"/>
<a:field name="room_addr_city" readOnly="true"/>
<a:field name="room_abbr" readOnly="true"/>
<a:field name="intermediary" readOnly="true"/>
<a:field name="intermediary_name" readOnly="true"/>
<a:field name="intermediary_tel" readOnly="true"/>
<a:field name="message" readOnly="true"/>
</a:fields>
<!--<a:events>-->
<!--<a:event name="update" handler="onCountryUpdate"/>-->
<!--</a:events>-->
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="">
<a:box id="" column="3" style="width:100%">
<a:textField name="room_type" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋面积"/>
<a:textField name="bed_free" bindtarget="RENT100_room_info_search_result_ds" prompt="床位"/>
<a:textField name="landlord_name" bindtarget="RENT100_room_info_search_result_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="RENT100_room_info_search_result_ds" prompt="联系电话"/>
<!--<a:textField name="" bindtarget="" prompt="房屋地址"/>-->
</a:box>
<a:box id="" column="4" style="width:100%">
<a:textField name="room_addr_country" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋地址:国家"/>
<a:textField name="room_addr_province" bindtarget="RENT100_room_info_search_result_ds" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="RENT100_room_info_search_result_ds" prompt="市"/>
</a:box>
<a:box id="" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="RENT100_room_info_search_result_ds" prompt="房屋简称"/>
<a:textField name="intermediary" bindtarget="RENT100_room_info_search_result_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="RENT100_room_info_search_result_ds" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="RENT100_room_info_search_result_ds" prompt="中介联系电话"/>
<a:textField name="message" bindtarget="RENT100_room_info_search_result_ds" prompt="备注"/>
</a:box>
<!--<a:screenTopToolbar>-->
<!--<a:toolbarButton click="RENT100_saveRoomInfo" text="保存" width="80"/>-->
<!--</a:screenTopToolbar>-->
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<a:link id="pageLink_create_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_editor.screen"/>
<a:link id="pageLink_alter_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_alter.screen"/>
<script><![CDATA[
<!--新增用户-->
function winOpen_create_user(){
new Aurora.Window({
id:'hls_hrms_hsm_staff_info_editor',
url:$('pageLink_create_user').getUrl(),
title:'${l:新增用户}',
height:500,
width:1000
});
}
<!--删除用户-->
function grid_delete_user(){
if(hls_staff_delete_confirm()){
$('HLS_staff_info_result_grid').remove();
}
return;
}
<!--判断选中记录是否有效-->
function hls_staff_delete_confirm(){
if($('HLS_staff_info_input').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}else{
var records=$('HLS_staff_info_input').getSelected();
for(i=0;i<records.length;i++){
if(records[i].get('people_status')=='已入住'){
Aurora.showErrorMessage( 'ERROR', '入住人员状态为正在租住,不能删除!',null, 200, 100 );
return false;
}
}
}
return true;
}
<!--&lt;!&ndash;删除确认&ndash;&gt;-->
<!--function openWindow1(){-->
<!--Aurora.showOkCancelWindow('确认', '是否确认删除');-->
<!--}-->
<!--grid渲染函数-->
function HLS_staff_info_result_grid_ds(value, record, name){
//debugger;
console.log("渲染");
if(!record.isNew)
{
var personnel_no = record.get('personnel_no');
var perNo = '<a href="javascript:winOpen_edit_user(\'' + personnel_no + '\');">'+personnel_no+'</a>'
if(name=='personnel_no')
{
return perNo;
}
}
return '';
}
<!--编辑用户-->
function winOpen_edit_user(personnel_no){
new Aurora.Window({
id:'hls_hrms_hsm_staff_info_alter',
url:$('pageLink_alter_user').getUrl(),
params:{
personnel_no:personnel_no
},
title:'${l:修改用户}',
height:500,
width:1000
});
}
<!--查询按钮-->
function HLS_staff_infoSearch(){
console.log('查询');
$('HLS_staff_info_input').query();
}
<!--比较日期-->
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
<!--判断日期是否有效-->
function validate_date(record, name, value){
console.log('panduan');
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
console.log('start_date有了');
var end_date = record.get('creation_date_to');
console.log('end_date有了');
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds1" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds1" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds1" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员状态-->
<a:dataSet id="HLS_status_Ds1" lookupCode="HLS_STAFF_STATUS"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds1" autoCreate="true">
<a:fields>
<a:field name="staff_no" />
<!--<a:field name="name" required="true"/>-->
<a:field name="name" />
<a:field name="gender_code" />
<a:field name="gender" displayField="code_value_name" options="HLS_gender_Ds1" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" displayField="code_value_name" options="HLS_dept_Ds1" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" displayField="code_value_name" options="HLS_base_Ds1" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" validator="validate_telNumber"/>
<a:field name="creation_date_from"/>
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="people_status_code" />
<a:field name="people_status" displayField="code_value_name" options="HLS_status_Ds1" returnField="people_status_code" valueField="code_value_name"/>
</a:fields>
<!-- <a:events>
<a:event name="submitsuccess" handler="GLD5010_headerSubmitSuccess"/>
</a:events>-->
</a:dataSet>
<!--结果集-->
<a:dataSet id="HLS_staff_info_input" autoQuery="true" model="hls_rent.RENT200.hls_staff_info_search" queryDataSet="HLS_staff_info_input_ds1" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="查询条件">
<a:screenTopToolbar>
<a:toolbarButton click="HLS_staff_infoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
<a:box id="" column="3" style="width:100%">
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds1" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds1" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds1" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds1" prompt="联系电话"/>
<a:datePicker name="creation_date_from" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期从"/>
<a:datePicker name="creation_date_to" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期到"/>
<a:comboBox name="people_status" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员状态"/>
</a:box>
</a:form>
<a:grid id="HLS_staff_info_result_grid" bindTarget="HLS_staff_info_input" marginHeight="121" marginWidth="45" navBar="true">
<a:toolBar>
<a:button click="grid_delete_user" text="删除" width="80" iconAlign="left"/>
<a:button click="winOpen_create_user" text="新增" width="80" iconAlign="left"/>
</a:toolBar>
<a:columns>
<a:column name="personnel_no" editor="" prompt="入住人员编号" renderer="HLS_staff_info_result_grid_ds" width="100" />
<a:column name="staff_no" editor="" prompt="入住人员工号" width="100" />
<a:column name="name" editor="" prompt="入住人员姓名" width="100"/>
<a:column name="gender" editor="" prompt="性别" width="100"/>
<a:column name="department" editor="" prompt="所在部门" width="80"/>
<a:column name="base_in" editor="" prompt="base地" width="80"/>
<a:column name="phone_number" editor="" prompt="联系电话" width="80"/>
<a:column name="email" editor="" prompt="邮箱地址" width="80"/>
<a:column name="message" editor="" prompt="备注" width="120"/>
<!--<a:column name="creation_date" editor="" prompt="创建日期" width="120"/>-->
<a:column name="created_date" editor="" prompt="创建的日期" width="120"/>
<a:column name="people_status" editor="" prompt="入住人员状态" width="80"/>
</a:columns>
<!--<a:editors>-->
<!--<a:textField id="tra_voucher_tf"/>-->
<!--<a:numberField id="tra_voucher_nf"/>-->
<!--<a:lov id="tra_voucher_lv"/>-->
<!--</a:editors>-->
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<a:link id="pageLink_create_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info_editor.screen"/>
<a:link id="pageLink_alter_user" url="${/request/@context_path}/modules/hls_rent/RENT200/hls_hrms_hsm_staff_info.screen"/>
<script><![CDATA[
<!--grid渲染函数-->
function HLS_staff_info_result_grid_ds(value, record, name){
//debugger;
console.log("33");
if(!record.isNew)
{
var personnel_no = record.get('personnel_no');
var perNo = '<a href="javascript:winOpen_edit_user(\'' + personnel_no + '\');">'+personnel_no+'</a>'
if(name=='personnel_no')
{
return perNo;
}
}
return '';
}
<!--显示入住人员信息-->
function winOpen_edit_user(personnel_no){
new Aurora.Window({
id:'hls_hrms_hsm_staff_info',
url:$('pageLink_alter_user').getUrl(),
params:{
personnel_no:personnel_no
},
title:'${l:查看用户}',
height:500,
width:1000
});
}
<!--查询按钮-->
function HLS_staff_infoSearch(){
console.log('1');
$('HLS_staff_info_input').query();
}
<!--比较日期-->
function compareDate(start, end){
if(start > end){
return false;
}
return true;
}
<!--判断日期是否有效-->
function validate_date(record, name, value){
console.log('panduan');
if(name == 'creation_date_from' || name == 'creation_date_to'){
var start_date = record.get('creation_date_from');
console.log('start_date有了');
var end_date = record.get('creation_date_to');
console.log('end_date有了');
if(typeof(end_date) != 'undefined' && !Ext.isEmpty(end_date) && typeof(start_date) != 'undefined' && !Ext.isEmpty(start_date)){
if(!compareDate(start_date, end_date)){
return '${l:START_GREATER_THAN_END}';
}
}
return true;
}
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds1" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds1" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds1" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员状态-->
<a:dataSet id="HLS_status_Ds1" lookupCode="HLS_STAFF_STATUS"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds1" autoCreate="true">
<a:fields>
<a:field name="staff_no" />
<a:field name="name" />
<a:field name="gender_code" />
<a:field name="gender" displayField="code_value_name" options="HLS_gender_Ds1" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" displayField="code_value_name" options="HLS_dept_Ds1" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" displayField="code_value_name" options="HLS_base_Ds1" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" validator="validate_telNumber"/>
<a:field name="creation_date_from"/>
<a:field name="creation_date_to" validator="validate_date"/>
<a:field name="people_status_code" />
<a:field name="people_status" displayField="code_value_name" options="HLS_status_Ds1" returnField="people_status_code" valueField="code_value_name"/>
</a:fields>
<!-- <a:events>
<a:event name="submitsuccess" handler="GLD5010_headerSubmitSuccess"/>
</a:events>-->
</a:dataSet>
<a:dataSet id="HLS_staff_info_input" autoQuery="true" model="hls_rent.RENT200.hls_staff_info_search" queryDataSet="HLS_staff_info_input_ds1" selectable="true"/>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="查询条件">
<a:screenTopToolbar>
<a:toolbarButton click="HLS_staff_infoSearch" text="查询" width="80"/>
</a:screenTopToolbar>
<a:box id="" column="3" style="width:100%">
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds1" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds1" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds1" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds1" prompt="联系电话"/>
<a:datePicker name="creation_date_from" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期从"/>
<a:datePicker name="creation_date_to" bindTarget="HLS_staff_info_input_ds1" prompt="创建日期到"/>
<a:comboBox name="people_status" bindTarget="HLS_staff_info_input_ds1" prompt="入住人员状态"/>
</a:box>
</a:form>
<a:grid id="HLS_staff_info_result_grid" bindTarget="HLS_staff_info_input" marginHeight="121" marginWidth="45" navBar="true">
<!--<a:toolBar>-->
<!--<a:button click="grid_delete_user" text="删除" width="80" iconAlign="left"/>-->
<!--<a:button click="winOpen_create_user" text="新增" width="80" iconAlign="left"/>-->
<!--</a:toolBar>-->
<a:columns>
<a:column name="personnel_no" editor="" prompt="入住人员编号" renderer="HLS_staff_info_result_grid_ds" width="100" />
<a:column name="staff_no" editor="" prompt="入住人员工号" width="100" />
<a:column name="name" editor="" prompt="入住人员姓名" width="100"/>
<a:column name="gender" editor="" prompt="性别" width="100"/>
<a:column name="department" editor="" prompt="所在部门" width="80"/>
<a:column name="base_in" editor="" prompt="base地" width="80"/>
<a:column name="phone_number" editor="" prompt="联系电话" width="80"/>
<a:column name="email" editor="" prompt="邮箱地址" width="80"/>
<a:column name="message" editor="" prompt="备注" width="120"/>
<!--<a:column name="creation_date" editor="" prompt="创建日期" width="120"/>-->
<a:column name="created_date" editor="" prompt="创建的日期" width="120"/>
<a:column name="people_status" editor="" prompt="入住人员状态" width="80"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="personnel_no=${/parameter/@personnel_no}" model="hls_rent.RENT200.hls_staff_info_search" rootPath="alter_model"/>
</a:init-procedure>
<a:view>
<script><![CDATA[
<!--页面关闭-->
function alterScreen_close(){
$('hls_hrms_hsm_staff_info').close();
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_staff_info_input_ds" model="hls_rent.RENT200.hls_staff_info_search" autoCreate="true">
<a:datas dataSource="/model/alter_model"/>
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" readOnly="true"/>
<a:field name="name" readOnly="true"/>
<a:field name="gender_code" readOnly="true"/>
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds1" returnField="gender_code" valueField="code_value_name"/>
<a:field name="department_code" readOnly="true"/>
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds1" returnField="department_code" valueField="code_value_name"/>
<a:field name="base_in_code" readOnly="true"/>
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds1" returnField="base_in_code" valueField="code_value_name"/>
<a:field name="phone_number" readOnly="true"/>
<a:field name="email" readOnly="true"/>
<a:field name="message" readOnly="true"/>
</a:fields>
<!-- <a:events>
<a:event name="submitsuccess" handler="GLD5010_headerSubmitSuccess"/>
</a:events> -->
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form style="width:100%" title="入住人员信息:${/parameter/@personnel_no}">
<a:box column="3" style="width:100%">
<a:textField name="personnel_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindTarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindTarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="alterScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="personnel_no=${/parameter/@personnel_no}" model="hls_rent.RENT200.hls_staff_info_search" rootPath="alter_model"/>
</a:init-procedure>
<a:view>
<script><![CDATA[
<!--修改页面关闭-->
function alterScreen_close() {
$('hls_hrms_hsm_staff_info_alter').close();
}
<!--修改按钮-->
function updateDs_alter(){
//debugger;
var personnel_no = '${/parameter/@personnel_no}';
console.log(personnel_no);
$('HLS_staff_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT200.hls_staff_info_search/batch_update"+'?personnel_no='+personnel_no);
$('HLS_staff_info_input_ds').submit();
}
<!--修改成功后处理-->
function onSubmitSuccess_alterDs(dataSet, datas, res){
HLS_staff_infoSearch();
alterScreen_close();
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds" model="hls_rent.RENT200.hls_staff_info_search" autoCreate="true">
<a:datas dataSource="/model/alter_model"/>
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" required="true"/>
<a:field name="name" required="true"/>
<a:field name="gender_code" />
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" validator="validate_telNumber"/>
<a:field name="email"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_alterDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form style="width:100%" title="入住人员信息:${/parameter/@personnel_no}">
<a:box column="3" style="width:100%">
<a:textField name="personnel_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindTarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindTarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindTarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindTarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindTarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindTarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindTarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindTarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="updateDs_alter" text="修改" width="80"/>
<a:toolbarButton click="alterScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<script><![CDATA[
<!--页面关闭-->
function createScreen_close(){
$('hls_hrms_hsm_staff_info_editor').close();
}
<!--页面保存-->
function createDs_save() {
console.log("hello");
//数据提交
$('HLS_staff_info_input_ds').setSubmitUrl("${/request/@context_path}/autocrud/hls_rent.RENT200.hls_staff_info_search/batch_update");
$('HLS_staff_info_input_ds').submit();
}
<!--新增成功后处理-->
function onSubmitSuccess_createDs(dataSet, datas, res){
HLS_staff_infoSearch();
createScreen_close();
}
<!--判断电话号码是否有效-->
function validate_telNumber(record, name, value){
if(name == 'phone_number'){
var phone_number = record.get('phone_number');
if(typeof(phone_number) != 'undefined' && !Ext.isEmpty(phone_number)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(phone_number))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<!-- 性别-->
<a:dataSet id="HLS_gender_Ds" lookupCode="HLS211_GENDER"/>
<!-- 所在部门-->
<a:dataSet id="HLS_dept_Ds" lookupCode="HLS_DEPT_TYPE"/>
<!-- base地-->
<a:dataSet id="HLS_base_Ds" lookupCode="HLS_BASE_TYPE"/>
<!-- 入住人员信息-->
<a:dataSet id="HLS_staff_info_input_ds" autoCreate="true">
<a:fields>
<a:field name="personnel_no" readOnly="true"/>
<a:field name="staff_no" required="true"/>
<!--<a:field name="name" required="true"/>-->
<a:field name="name" required="true"/>
<a:field name="gender_code" />
<a:field name="gender" required="true" displayField="code_value_name" options="HLS_gender_Ds" returnField="gender_code" valueField="code_value"/>
<a:field name="department_code" />
<a:field name="department" required="true" displayField="code_value_name" options="HLS_dept_Ds" returnField="department_code" valueField="code_value"/>
<a:field name="base_in_code" />
<a:field name="base_in" required="true" displayField="code_value_name" options="HLS_base_Ds" returnField="base_in_code" valueField="code_value"/>
<a:field name="phone_number" required="true" validator="validate_telNumber"/>
<a:field name="email" required="true"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_createDs"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form id="" style="width:100%" title="入住人员信息">
<a:box id="" column="3" style="width:100%">
<a:textField name="personnel_no" bindtarget="HLS_staff_info_input_ds" prompt="入住人员编号"/>
<a:textField name="staff_no" bindtarget="HLS_staff_info_input_ds" prompt="入住人员工号"/>
<a:textField name="name" bindtarget="HLS_staff_info_input_ds" prompt="入住人员姓名"/>
<a:comboBox name="gender" bindtarget="HLS_staff_info_input_ds" prompt="性别"/>
<a:comboBox name="department" bindtarget="HLS_staff_info_input_ds" prompt="所在部门"/>
<a:comboBox name="base_in" bindtarget="HLS_staff_info_input_ds" prompt="base地"/>
<a:textField name="phone_number" bindtarget="HLS_staff_info_input_ds" prompt="联系电话"/>
<a:textField name="email" bindtarget="HLS_staff_info_input_ds" prompt="邮箱地址"/>
<a:textField name="message" bindtarget="HLS_staff_info_input_ds" prompt="备注"/>
</a:box>
<a:screenTopToolbar>
<a:toolbarButton click="createDs_save" text="保存" width="80"/>
<a:toolbarButton click="createScreen_close" text="关闭" width="80"/>
</a:screenTopToolbar>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
...@@ -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>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="return_verification" url="${/request/@context_path}/modules/hls_rent/RENT300/rent_manual_verification.screen"/>
<script><![CDATA[
function before_click(){
//debugger;
var 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 staff_no = record_query.get('source_object');
var contract_no_field = $('RENT1030_contract_no_ds').getCurrentRecord().getMeta().getField('contract_no');
url = "hls_rent.RENT300.contract_room_no?staff_no="+staff_no+"&receipt_no="+receipt_no;
contract_no_field.setLovService(url);
}
function value_change(){
//debugger;
var total_receipt = $('RENT1030_manual_result_ds').getCurrentRecord().get('verification_amounts_n');
total_receipt = Number(total_receipt);
var RENT1030_contract_no_ds_record = $('RENT1030_contract_no_ds').getCurrentRecord();
var apportion_rental = RENT1030_contract_no_ds_record.get('apportion_rental');
apportion_rental = Number(apportion_rental);
var apportion_water = RENT1030_contract_no_ds_record.get('apportion_water');
apportion_water = Number(apportion_water);
var apportion_electric = RENT1030_contract_no_ds_record.get('apportion_electric');
apportion_electric = Number(apportion_electric);
var apportion_network = RENT1030_contract_no_ds_record.get('apportion_network');
apportion_network = Number(apportion_network);
var apportion_cable = RENT1030_contract_no_ds_record.get('apportion_cable');
apportion_cable = Number(apportion_cable);
if(total_receipt > apportion_rental){
RENT1030_contract_no_ds_record.set('verification_rental', apportion_rental);
var remain_receipt_1 = total_receipt - apportion_rental;
if(remain_receipt_1 > apportion_water){
RENT1030_contract_no_ds_record.set('verification_water', apportion_water);
var remain_receipt_2 = remain_receipt_1 - apportion_water;
if(remain_receipt_2 > apportion_electric){
RENT1030_contract_no_ds_record.set('verification_electric', apportion_electric);
var remain_receipt_3 = remain_receipt_2 - apportion_electric;
if(remain_receipt_3 > apportion_network){
RENT1030_contract_no_ds_record.set('verification_network', apportion_network);
remain_receipt_4 = remain_receipt_3 - apportion_network;
if(remain_receipt_4 > apportion_cable){
RENT1030_contract_no_ds_record.set('verification_cable', apportion_cable);
}else{
RENT1030_contract_no_ds_record.set('verification_cable', remain_receipt_4);
}
}else{
RENT1030_contract_no_ds_record.set('verification_network', remain_receipt_3);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}else{
RENT1030_contract_no_ds_record.set('verification_electric', remain_receipt_2);
RENT1030_contract_no_ds_record.set('verification_network', 0);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}else{
RENT1030_contract_no_ds_record.set('verification_water', remain_receipt_1);
RENT1030_contract_no_ds_record.set('verification_electric', 0);
RENT1030_contract_no_ds_record.set('verification_network', 0);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}else{
RENT1030_contract_no_ds_record.set('verification_rental', total_receipt);
RENT1030_contract_no_ds_record.set('verification_water', 0);
RENT1030_contract_no_ds_record.set('verification_electric', 0);
RENT1030_contract_no_ds_record.set('verification_network', 0);
RENT1030_contract_no_ds_record.set('verification_cable', 0);
}
}
function verification_submit(){
Aurora.showConfirm('提交', '是否确认提交?', payment_verification_submit, null, 200, 100 );
}
function payment_verification_submit(){
$('RENT1030_contract_no_ds').submit();
}
function payment_verification_submitSuccess(ds,res){
location.href = $('return_verification').getUrl();
parent.shMenu('show');
}
]]></script>
<a:dataSets>
<a:dataSet id="RENT1030_contract_no_ds" autoCreate="true" submitUrl="${/request/@context_path}/autocrud/hls_rent.RENT300.manual_verification_submit/batch_update">
<a:fields>
<a:field name="contract_no" lovGridHeight="320" lovHeight="480" lovWidth="600" title="费用对象" >
<a:mapping>
<a:map from="contract_no" to="contract_no"/>
<a:map from="apportion_rental" to="apportion_rental"/>
<a:map from="apportion_water" to="apportion_water"/>
<a:map from="apportion_electric" to="apportion_electric"/>
<a:map from="apportion_network" to="apportion_network"/>
<a:map from="apportion_cable" to="apportion_cable"/>
<a:map from="staff_no" to="staff_no"/>
<a:map from="receipt_no" to="receipt_no"/>
<a:map from="receipt_sources" to="receipt_sources"/>
<a:map from="message" to="message"/>
</a:mapping>
</a:field>
<a:field name="apportion_rental"/>
<a:field name="verification_rental"/>
<a:field name="apportion_water"/>
<a:field name="verification_water"/>
<a:field name="apportion_electric"/>
<a:field name="verification_electric"/>
<a:field name="apportion_network"/>
<a:field name="verification_network"/>
<a:field name="apportion_cable"/>
<a:field name="verification_cable"/>
<a:field name="staff_no"/>
<a:field name="receipt_no"/>
<a:field name="receipt_sources"/>
<a:field name="message"/>
</a:fields>
<a:events>
<a:event name="submitSuccess" handler="payment_verification_submitSuccess"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:form title="收款核销" style="width:100%; border:none" >
<a:button text="HLS.SUBMIT" click="verification_submit"/>
<a:box column="1" style="width:100%">
<a:lov name="contract_no" prompt="房屋合同编号" bindTarget="RENT1030_contract_no_ds">
<a:events>
<a:event name="commit" handler="value_change"/>
<a:event name="beforetriggerclick" handler="before_click"/>
</a:events>
</a:lov>
</a:box>
</a:form>
<a:grid marginHeight="121" marginWidth="45" bindTarget="RENT1030_contract_no_ds">
<a:columns>
<a:column prompt="应付租金">
<a:column prompt="剩余债权" name="apportion_rental" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_rental" renderer="Aurora.formatMoney" align="center"/>
</a:column>
<a:column prompt="应付水费">
<a:column prompt="剩余债权" name="apportion_water" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_water" renderer="Aurora.formatMoney" align="center"/>
</a:column>
<a:column prompt="应付电费">
<a:column prompt="剩余债权" name="apportion_electric" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_electric" renderer="Aurora.formatMoney" align="center"/>
</a:column>
<a:column prompt="应付宽带网络费">
<a:column prompt="剩余债权" name="apportion_network" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_network" renderer="Aurora.formatMoney" align="center"/>
</a:column>
<a:column prompt="应付有线电视费">
<a:column prompt="剩余债权" name="apportion_cable" renderer="Aurora.formatMoney" align="center"/>
<a:column prompt="本次核销" name="verification_cable" renderer="Aurora.formatMoney" align="center"/>
</a:column>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
...@@ -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>
<?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:fields> <bm:fields>
<bm:field name="verification_id" databaseType="NUMBER" datatype="java.lang.Long"/> <bm:field name="verification_no"/>
<bm:field name="verification_no" databaseType="VARCHAR2" datatype="java.lang.String"/> <bm:field name="verification_date"/>
<bm:field name="verification_date" datatype="java.lang.String" /> <bm:field name="contract_no"/>
<bm:field name="contract_no" databaseType="VARCHAR2" datatype="java.lang.String" /> <bm:field name="fee_item"/>
<bm:field name="creditor_project" databaseType="VARCHAR2" datatype="java.lang.String" /> <bm:field name="verification_fee"/>
<bm:field name="verification_fee" databaseType="VARCHAR2" datatype="java.lang.String" /> <bm:field name="source_type_name"/>
<bm:field name="source_type" databaseType="VARCHAR2" datatype="java.lang.String" /> <bm:field name="source_object_name"/>
<bm:field name="source_object" databaseType="VARCHAR2" datatype="java.lang.String" /> <bm:field name="receipt_no"/>
<bm:field name="receipt_no" databaseType="VARCHAR2" datatype="java.lang.String" /> <bm:field name="currency_name"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" /> <bm:field name="message"/>
<bm:field name="message" databaseType="VARCHAR2" datatype="java.lang.String" />
</bm:fields> </bm:fields>
<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:update-sql><![CDATA[ <bm:query-sql><![CDATA[
select SELECT *
verification_id , FROM (SELECT hvt.verification_no,
verification_no , to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
contract_no , hvt.contract_no,
nvl((sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS', creditor_project)), '租金') creditor_project , (SELECT 'fee_items_1' FROM dual) fee_items,
to_char(creation_date, 'yyyy-mm-dd') verification_date , (sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE', source_type)) source_type , (SELECT 'fee_items_1'
source_object , FROM dual))) fee_item,
receipt_no , hvt.credit_item_rent verification_fee,
currency , hvt.source_type,
message , (sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
verification_fee , hvt.source_type)) source_type_name,
creation_date , hvt.source_object,
created_by , (SELECT hh.name
last_updated_by , FROM hls_hsm hh
last_update_date WHERE hh.staff_no = hvt.source_object) source_object_name,
from hls_payment_verification hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt
UNION
SELECT hvt.verification_no,
to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
hvt.contract_no,
(SELECT 'fee_items_2' FROM dual) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(SELECT 'fee_items_2'
FROM dual))) fee_item,
hvt.credit_item_electric verification_fee,
hvt.source_type,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
hvt.source_type)) source_type_name,
hvt.source_object,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hvt.source_object) source_object_name,
hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt
UNION
SELECT hvt.verification_no,
to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
hvt.contract_no,
(SELECT 'fee_items_3' FROM dual) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(SELECT 'fee_items_3'
FROM dual))) fee_item,
hvt.credit_item_network verification_fee,
hvt.source_type,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
hvt.source_type)) source_type_name,
hvt.source_object,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hvt.source_object) source_object_name,
hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt
UNION
SELECT hvt.verification_no,
to_char(hvt.verification_date, 'yyyy-mm-dd') verification_date,
hvt.contract_no,
(SELECT 'fee_items_4' from dual) fee_items,
(sys_code_pkg.get_sys_code_value_name('HLS_FEE_ITEMS',
(SELECT 'fee_items_4'
FROM dual))) fee_item,
hvt.credit_item_cable verification_fee,
hvt.source_type,
(sys_code_pkg.get_sys_code_value_name('HLS_SOURCE_TYPE',
hvt.source_type)) source_type_name,
hvt.source_object,
(SELECT hh.name
FROM hls_hsm hh
WHERE hh.staff_no = hvt.source_object) source_object_name,
hvt.receipt_no,
hvt.currency,
(SELECT gcv.CURRENCY_NAME
FROM gld_currency_vl gcv
WHERE gcv.CURRENCY_CODE = hvt.currency) currency_name,
hvt.message
FROM hls_verification_tab hvt) t
#WHERE_CLAUSE# #WHERE_CLAUSE#
]]></bm:update-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
<bm:query-fields> <bm:query-fields>
<!--查询页面用--> <bm:query-field name="contract_no" queryExpression="t.contract_no like &apos;%&apos;||${@contract_no}||&apos;%&apos;"/>
<bm:query-field name="verification_no" queryExpression="verification_no = ${@verification_no}"/> <bm:query-field name="fee_items" queryExpression="t.fee_items = ${@fee_items_code}"/>
<bm:query-field name="contract_no" queryExpression="contract_no = ${@contract_no}"/> <bm:query-field name="verification_start_date" queryExpression="to_date(t.verification_date, 'yyyy-mm-dd') &gt;= to_date(${@verification_start_date},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="creditor_project" queryExpression="creditor_project = ${@creditor_project_code}"/> <bm:query-field name="verification_end_date" queryExpression="to_date(t.verification_date, 'yyyy-mm-dd') &lt;= to_date(${@verification_end_date},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="source_type" queryExpression="t.source_type = ${@source_type_code}"/>
<bm:query-field name="verification_start_date" queryExpression="to_char(creation_date, 'yyyy-mm-dd') >= ${@verification_start_date}"/> <bm:query-field name="source_object" queryExpression="t.source_object = ${@source_object}"/>
<bm:query-field name="verification_end_date" queryExpression=" ${@verification_end_date} >= to_char(creation_date, 'yyyy-mm-dd')"/>
<bm:query-field name="source_type" queryExpression="source_type = ${@source_type_code}"/>
<bm:query-field name="source_object" queryExpression="source_object = ${@source_object}"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<!--<a:link id="hls_house_contract_link" url="${/request/@context_path}/modules/train/TRA1010/Search_detial.screen"/>-->
<!--<a:link id="hls_house_contract_add" url="${/request/@context_path}/modules/train/TRA1010/Create_contract.screen"/>-->
<!--<a:link id="hls_house_contract_modification" url="${/request/@context_path}/modules/train/TRA1010/modification.screen"/>-->
<a:link id="hls_checkin_detial_link" url="${/request/@context_path}/modules/hls_rent/RENT400/checkin2.screen"/>
<a:screenBody>
<script><![CDATA[
function hls_house_query() {
$('hls_search_line_ds').query();
}
function checkin_detial(){
if($('hls_search_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请选择一条记录!',null, 200, 100 );
return false;
}else if($('hls_search_line_ds').getSelected().length>1){
Aurora.showErrorMessage( 'ERROR', '只能选择一条记录!',null, 200, 100 );
return false;
}else{
var recordno=$('hls_search_line_ds').getSelected()[0];
var h_contract_number=recordno.get('h_contract_number');
var record = $('hls_search_line_ds').getCurrentRecord();
console.log(recordno);
furl = $('hls_checkin_detial_link').getUrl() + '?h_contract_number=' + h_contract_number;
//Aurora.go(furl)
new Aurora.Window({
id: 'checkin_detial_window',
url: furl,
title: '入住人员详细信息',
params: {
record: recordno,
winId: 'checkin_detial_window'
},
fullScreen:true
});
}
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_HOUSE_TYPE_ds" lookupCode="HLS_HOUSE_TYPE"/>
<!--<a:dataSet id="contract_condition_ds" lookupCode="CONTRACT_CONDITION"/>-->
<a:dataSet id="hls_search_contract_ds">
<a:datas>
<a:record contract_condition="合同确认状态"/>
</a:datas>
<a:fields>
<a:field name="h_contract_number"/>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel"/>
<a:field name="room_type" displayField="code_value_name" options="HLS_HOUSE_TYPE_ds" returnField="code_value_name" valueField="code_value"/>
<a:field name="intermediary"/>
<a:field name="intermediary_name"/>
<a:field name="contract_start_date"/>
<a:field name="contract_finish_date"/>
<!--<a:field name="contract_condition" displayField="code_value_name" options="contract_condition_ds" returnField="code_value_name" valueField="code_value"/>-->
</a:fields>
</a:dataSet>
<a:dataSet id="hls_search_line_ds" queryDataSet="hls_search_contract_ds" model="hls_rent.RENT500.HLS_room_contract_info" selectable="true" autoPageSize="true" autoCreate="true">
<a:field name="h_contract_number"/>
<a:field name="contract_condition"/>
<a:field name="room_id"/>
</a:dataSet>
</a:dataSets>
<a:screenTopToolbar>
<a:gridButton click="hls_house_query" text="查询" width="80"/>
<!--<a:gridButton click="addWindow" text="新增" width="80"/>-->
<!--<a:gridButton click="modificationWindow" text="修改" width="80"/>-->
</a:screenTopToolbar>
<a:form id="search_contract_header" style="width:100%" title="查询条件">
<a:box id="search_contract_header_box" column="3" style="width:100%">
<a:textField name="h_contract_number" bindtarget="hls_search_contract_ds" prompt="房屋合同编号"/>
<a:textField name="room_abbr" bindtarget="hls_search_contract_ds" prompt="房屋简称"/>
<a:comboBox name="room_type" bindtarget="hls_search_contract_ds" prompt="房屋类型"/>
<a:textField name="landlord_name" bindtarget="hls_search_contract_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="hls_search_contract_ds" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="hls_search_contract_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="hls_search_contract_ds" prompt="中介联系人"/>
<a:datePicker name="contract_start_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期从"/>
<a:datePicker name="contract_finish_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期到"/>
<!--<a:comboBox name="contract_condition" bindtarget="hls_search_contract_ds" prompt="租房合同状态"/>-->
</a:box>
</a:form>
<a:grid id="search_line_grid" bindTarget="hls_search_line_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:columns>
<a:column name="h_contract_number" prompt="房屋合同编号" width="140" />
<a:column name="room_abbr" prompt="房屋简称" width="80"/>
<a:column name="room_type" prompt="房屋类型" width="80"/>
<a:column name="landlord_name" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" prompt="联系电话" width="120"/>
<a:column name="intermediary" prompt="中介名称" width="80"/>
<a:column name="bed" prompt="床位" width="80"/>
<a:column name="bed_used" prompt="已住床位" width="80"/>
<a:column name="bed_free" prompt="剩余床位" width="80"/>
<a:column name="contract_start_date" prompt="合同开始日期" width="100"/>
<a:column name="contract_finish_date" prompt="合同到期日期" width="100"/>
<a:column name="contract_condition" prompt="房屋合同状态" width="120"/>
<!--<a:column name="contract_remark" prompt="合同备注" width="80"/>-->
</a:columns>
<a:toolBar>
<a:button click="checkin_detial" text="入住" width="80"/>
</a:toolBar>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="h_contract_number=${/parameter/@h_contract_number}" model="hls_rent.RENT500.HLS_room_contract_info" rootPath="link_path" />
</a:init-procedure>
<!--<a:link id="hls_checkin1" url="${/request/@context_path}/modules/train/TRA1010/checkin1.screen"/>-->
<a:view>
<script><![CDATA[
//格式化日期
function formatDate(value,record,name){
return value.substring(0,10);
}
//新增一条记录
function new_hsm(){
var bed_free = $('checkin_detial_window').params.record.data['bed_free'];
var undetermined_beds = $('HLS_create_people_info_ds').getAll().length;
console.log(bed_free);
console.log(undetermined_beds);
if ( undetermined_beds < bed_free) {
var ds=$('HLS_create_people_info_ds');
ds.create();
}else {
Aurora.showInfoMessage('入住提示','床位已满!',null,null,null);
}
}
function openWindow() {
history.go(0);
}
//保存记录
function record_save(){
var h_contract_number = $('Hls_hsm_ds').getAll()[0].data.h_contract_number;
var room_id = $('Hls_hsm_ds').getAll()[0].data.room_id;
var records = $('HLS_create_people_info_ds').getAll();
var createPeopleInfoRecord = $('HLS_create_people_info_ds');
//console.log(records.data);
var staffArray = []; //保存员工编号
for(var i =0;i<createPeopleInfoRecord.data.length;i++){
staffArray.push(createPeopleInfoRecord.data[i].get('staff_no'))
}
//判断员工编号是否重复
for(var m=0;m<staffArray.length;m++){
for(var n=m+1;n<staffArray.length;n++){
if(staffArray[m]==staffArray[n]){
Aurora.showErrorMessage('错误','人员重复');
return;
}
}
}
console.log(staffArray);
//给每条记录增加合同编号和房屋编号
for ( var i = 0; i < records.length ; i++) {
records[i].set("h_contract_number", h_contract_number);
records[i].set("room_id", room_id);
}
$('HLS_create_people_info_ds').setSubmitUrl("${/request/@context_path}/modules/hls_rent/RENT400/checkin_save.svc");
$('HLS_create_people_info_ds').submit();
}
//保存成功触发函数
function onSubmitSuccess_record_save(){
$('checkin_detial_window').close();
hls_house_query();
}
//新增一条记录
function HLS1050_add_record(){
var ds = $('HLS1050_renter_info_ds');
var total_beds = $('arrangement_confirm').params.record.data['house_beds'];
var used_beds = $('HLS1050_arranged_renters_ds').getAll().length;
var undetermined_beds = $('HLS1050_renter_info_ds').getAll().length;
if ((used_beds + undetermined_beds) < total_beds) {
ds.create();//创建一个空的ds,即增加新的住户
} else {
Aurora.showInfoMessage('入住提示','床位已满!',null,null,null);
}
}
//删除一条记录
function HLS1050_record_clear(){
$('checkin_det').clear();
}
]]></script>
<a:dataSets>
<!--新增入住人员信息-->
<a:dataSet id="HLS_create_people_info_ds" selectable="true" model="hls_rent.RENT400.checkin_save">
<a:fields>
<a:field name="staff_no" lovGridHeight="300" lovHeight="500" lovService="hls_rent.RENT400.hls_hsm_info" lovWidth="600" required="true" title="入住人员信息">
<a:mapping>
<a:map from="staff_no" to="staff_no"/>
<a:map from="name" to="name"/>
<a:map from="gender" to="gender"/>
<a:map from="department" to="department"/>
<a:map from="base_in" to="base_in"/>
<a:map from="phone_number" to="phone_number"/>
<a:map from="email" to="email"/>
<a:map from="people_id" to="people_id"/>
<!--<a:map from="leaving_date" to="leaving_date"/>-->
</a:mapping>
</a:field>
<a:field name="leaving_date" required="true" />
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_record_save"/>
</a:events>
</a:dataSet>
<!--根据房屋合同编号查询已入住人员信息-->
<a:dataSet id="HLS_checkin_people_info_query_ds" selectable="true">
<a:datas>
<a:record h_contract_number="${/parameter/@h_contract_number}"/>
</a:datas>
</a:dataSet>
<!--已入住人员信息结果集-->
<a:dataSet id="HLS_checkin_people_info_ds" autoQuery="true" queryDataSet="HLS_checkin_people_info_query_ds" model="hls_rent.RENT400.HLS_checkedIn_people_info">
</a:dataSet>
<!--房屋信息,合同信息,租金信息-->
<a:dataSet id="Hls_hsm_ds" selectable="true" submitUrl="${/request/@context_path}/modules/hls_rent/RENT400/checkin_save.svc">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="leaving_date"/>
<a:field name="h_contract_number" />
<a:field name="contract_start_date" />
<a:field name="contract_finish_date" />
<a:field name="contract_ID" />
<a:field name="month_rent_price"/>
<a:field name="tenancy_term"/>
<a:field name="agency_fee"/>
<a:field name="contract_invoice_tax"/>
<a:field name="sum_price"/>
<a:field name="contract_condition"/>
<a:field name="contract_remark" readOnly="true"/>
<a:field name="room_id" />
<a:field name="room_abbr" />
<a:field name="room_type"/>
<a:field name="room_area" />
<a:field name="landlord_name" />
<a:field name="landlord_tel" />
<a:field name="intermediary" />
<a:field name="intermediary_name"/>
<a:field name="intermediary_tel"/>
<a:field name="room_addr_country"/>
<a:field name="room_addr_province" />
<a:field name="room_addr_city" />
<!--<a:field name="people_id"/>-->
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:box id="head_form" column="3" style="width:100%" >
<a:textField name="h_contract_number" bindtarget="Hls_hsm_ds" editable="false" renderer="getValue" prompt="房屋合同编号"/>
<a:datePicker name="contract_start_date" bindtarget="Hls_hsm_ds" editable="false" readOnly="true" prompt="合同开始日期" renderer="getFormatDateValue"/>
<a:datePicker name="contract_finish_date" bindtarget="Hls_hsm_ds" editable="false" readOnly="true" prompt="合同结束日期" renderer="getFormatDateValue"/>
</a:box>
<a:grid id="HLS_checkin_people_info_ds_grid" style="width:100%" bindtarget="HLS_checkin_people_info_ds" showRowNumber="true" marginHeight="300" marginWidth="370" title="已入住人员信息">
<a:columns>
<a:column name="staff_no" prompt="已入住人员工号" width="100" />
<a:column name="name" prompt="入住人员姓名" width="100"/>
<a:column name="gender" prompt="性别" width="100"/>
<a:column name="department" prompt="所在部门" width="80"/>
<a:column name="base_in" prompt="base地" width="80"/>
<a:column name="phone_number" prompt="联系电话" width="80"/>
<a:column name="email" prompt="邮箱地址" width="80"/>
<a:column name="leaving_date" prompt="预计入住时间至" renderer="Aurora.formatDate" width="120"/>
</a:columns>
</a:grid>
<a:grid id="checkin_det" style="width:100%" bindtarget="HLS_create_people_info_ds" navBar="true" showRowNumber="true" height="300" selectable="true" title="新增入住人员">
<a:toolBar>
<a:button text="保存" click="record_save" width="80" />
<a:button text="新增" click="new_hsm" width="80" />
<a:button text="删除" type="delete" width="80" />
</a:toolBar>
<a:columns>
<a:column name="staff_no" editor="hls_hsm_lv" prompt="入住人员工号" width="100" />
<a:column name="name" prompt="入住人员姓名" width="100"/>
<a:column name="gender" prompt="性别" width="100"/>
<a:column name="department" prompt="所在部门" width="80"/>
<a:column name="base_in" prompt="base地" width="80"/>
<a:column name="phone_number" prompt="联系电话" width="80"/>
<a:column name="email" prompt="邮箱地址" width="80"/>
<a:column name="leaving_date" editor="hls_hsm_date" bindtarget="Hls_hsm_ds" prompt="预计入住时间至" width="120"/>
</a:columns>
<a:editors>
<a:datePicker id="hls_hsm_date"/>
<a:lov id="hls_hsm_lv"/>
</a:editors>
</a:grid>
<a:form id="search_room_info" style="width:100%" title="房屋信息">
<a:box column="3">
<a:textField name="room_abbr" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋选择"/>
<a:textField name="room_type" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋类型"/>
<a:textField name="room_area" bindtarget="Hls_hsm_ds" editable="false" prompt="房屋面积"/>
<a:textField name="bed" bindtarget="Hls_hsm_ds" editable="false" prompt="床位" />
<a:textField name="landlord_name" bindtarget="Hls_hsm_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="Hls_hsm_ds" editable="false" prompt="联系电话"/>
<a:textField name="intermediary" bindtarget="Hls_hsm_ds" editable="false" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="Hls_hsm_ds" editable="false" prompt="中介联系人"/>
<a:textField name="intermediary_tel" bindtarget="Hls_hsm_ds" editable="false" prompt="中介联系电话"/>
<a:textField name="room_addr_country" bindtarget="Hls_hsm_ds" editable="false" prompt="国家"/>
<a:textField name="room_addr_province" bindtarget="Hls_hsm_ds" editable="false" prompt="省"/>
<a:textField name="room_addr_city" bindtarget="Hls_hsm_ds" editable="false" prompt="市"/>
</a:box>
</a:form>
<a:box id="" style="width:100%" >
<a:textField name="message" bindtarget="Hls_hsm_ds" editable="false" width="400" prompt="房屋信息备注"/>
</a:box>
<a:form id="search_contract_info" style="width:100%" title="租金信息">
<a:box column="3">
<a:textField name="month_rent_price" bindtarget="Hls_hsm_ds" editable="false" prompt="月租金"/>
<a:textField name="tenancy_term" bindtarget="Hls_hsm_ds" editable="false" prompt="租期"/>
<a:textField name="agency_fee" bindtarget="Hls_hsm_ds" editable="false" prompt="中介费"/>
<a:textField name="contract_invoice_tax" bindtarget="Hls_hsm_ds" editable="false" prompt="合同发票税" />
<a:textField name="sum_price" bindtarget="Hls_hsm_ds" editable="false" prompt="总金额" />
<a:textField name="remark" bindtarget="Hls_hsm_ds" editable="false" prompt="备注" width="400"/>
</a:box>
<a:box column="1">
<a:textField name="contract_remark" bindtarget="Hls_hsm_ds" prompt="合同备注" width="600"/>
</a:box>
</a:form>
<a:box column="2">
<!--<a:button text="保存" click="record_save" width="80" />-->
<a:button text="返回" click="openWindow" width="80" />
</a:box>
</a:screenBody>
</a:view>
</a:screen>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-update model="hls_rent.RENT400.checkin_save"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:view>
<a:link id="hls_house_contract_link" url="${/request/@context_path}/modules/hls_rent/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
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.aurora-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<a:link id="hls_house_contract_link" url="${/request/@context_path}/modules/hls_rent/RENT500/Search_detial.screen"/>
<a:link id="hls_house_contract_add" url="${/request/@context_path}/modules/hls_rent/RENT500/Create_contract.screen"/>
<a:link id="hls_house_contract_modification" url="${/request/@context_path}/modules/hls_rent/RENT500/modification.screen"/>
<a:screenBody>
<script><![CDATA[
function hls_house_query() {
$('hls_search_line_ds').query();
}
function hls_house_contract_link(value, record, name) {
url = $('hls_house_contract_link').getUrl() + '?h_contract_number=' + record.get('h_contract_number');
return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>';
}
function returnmain(){
history.go(0);
}
function openWindow(url) {
new Aurora.Window({
id: 'information_window',
url: url,
title: '合同信息确认',
height:480,width:820
});
}
function addWindow() {
new Aurora.Window({
id: 'new_information_window',
url: $('hls_house_contract_add').getUrl(),
title: '创建合同信息',
height:480,width:820
});
}
//修改按钮
function modification(){
if($('hls_search_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}else if($('hls_search_line_ds').getSelected().length>1){
Aurora.showErrorMessage( 'ERROR', '只能选择一条记录!',null, 200, 100 );
return false;
}else if($('hls_search_line_ds').getSelected().length==1){
var records=$('hls_search_line_ds').getSelected();
if(records[0].get('contract_condition')=='合同确认状态'){
Aurora.showErrorMessage( 'ERROR', '该合同已确认,不能修改!!',null, 200, 100 );
return false;
}else{
//var record=$('hls_search_line_ds').getSelected()[0];
var h_contract_number=records[0].get('h_contract_number');
furl = $('hls_house_contract_modification').getUrl() + '?h_contract_number=' + h_contract_number;
new Aurora.Window({
id: 'modifi_information_window',
url: furl,
title: '修改合同信息',
height:480,width:820
});
}
}
}
//判断选中记录是否有效
function hls_contract_remove_confirm(){
if($('hls_search_line_ds').getSelected().length==0){
Aurora.showErrorMessage( 'ERROR', '请至少选择一条记录!',null, 200, 100 );
return false;
}else{
var records=$('hls_search_line_ds').getSelected();
for(i=0;i<records.length;i++){
if(records[i].get('contract_condition')=='合同确认状态'){
Aurora.showErrorMessage( 'ERROR', '合同状态已确认,不能删除!!',null, 200, 100 );
return false;
}
}
}
return true;
}
//删除按钮
function hls_contract_remove(){
if(hls_contract_remove_confirm()){
$('search_line_grid').remove();
}
return;
}
//判断电话号码是否有效
function validate_telNumber(record, name, value){
if(name == 'landlord_tel'){
var landlord_tel = record.get('landlord_tel');
if(typeof(landlord_tel) != 'undefined' && !Ext.isEmpty(landlord_tel)){
if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(landlord_tel))){
return '请输入正确的手机号码';
}
}
return true;
}
}
]]></script>
<a:dataSets>
<a:dataSet id="HLS_HOUSE_TYPE_ds" lookupCode="HLS_HOUSE_TYPE"/>
<a:dataSet id="contract_condition_ds" lookupCode="CONTRACT_CONDITION"/>
<!--查询集-->
<a:dataSet id="hls_search_contract_ds">
<a:fields>
<a:field name="room_abbr"/>
<a:field name="landlord_name"/>
<a:field name="landlord_tel" validator="validate_telNumber"/>
<a:field name="room_type" displayField="code_value_name" options="HLS_HOUSE_TYPE_ds" returnField="code_value_name" valueField="code_value"/>
<a:field name="intermediary"/>
<a:field name="intermediary_name"/>
<!--<a:field name="contract_start_date"/>-->
<!--<a:field name="contract_finish_date"/>-->
<a:field name="contract_start_date_begin"/>
<a:field name="contract_finish_date_end"/>
<a:field name="contract_condition" displayField="code_value_name" options="contract_condition_ds" returnField="code_value_name" valueField="code_value"/>
</a:fields>
</a:dataSet>
<!--结果集-->
<a:dataSet id="hls_search_line_ds" autoQuery="true" queryDataSet="hls_search_contract_ds" model="hls_rent.RENT500.HLS_room_contract_info" selectable="true" autoPageSize="true">
<a:field name="h_contract_number"/>
<a:field name="contract_condition"/>
</a:dataSet>
</a:dataSets>
<a:screenTopToolbar>
<a:gridButton click="hls_house_query" text="查询" width="80"/>
<!--<a:gridButton click="addWindow" text="新增" width="80"/>-->
<!--<a:gridButton click="modificationWindow" text="修改" width="80"/>-->
</a:screenTopToolbar>
<a:form id="search_contract_header" style="width:100%" title="查询条件">
<a:box id="search_contract_header_box" column="3" style="width:100%">
<a:textField name="room_abbr" bindtarget="hls_search_contract_ds" prompt="房屋简称"/>
<a:textField name="landlord_name" bindtarget="hls_search_contract_ds" prompt="房东姓名"/>
<a:textField name="landlord_tel" bindtarget="hls_search_contract_ds" prompt="联系电话"/>
<a:comboBox name="room_type" bindtarget="hls_search_contract_ds" prompt="房屋类型"/>
<a:textField name="intermediary" bindtarget="hls_search_contract_ds" prompt="中介名称"/>
<a:textField name="intermediary_name" bindtarget="hls_search_contract_ds" prompt="中介联系人"/>
<!--<a:datePicker name="contract_start_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期从"/>-->
<!--<a:datePicker name="contract_finish_date" bindtarget="hls_search_contract_ds" prompt="合同开始日期到"/>-->
<a:datePicker name="contract_start_date_begin" bindtarget="hls_search_contract_ds" prompt="合同开始日期从"/>
<a:datePicker name="contract_start_date_end" bindtarget="hls_search_contract_ds" prompt="合同开始日期到"/>
<a:comboBox name="contract_condition" bindtarget="hls_search_contract_ds" prompt="租房合同状态"/>
</a:box>
</a:form>
<a:grid id="search_line_grid" bindTarget="hls_search_line_ds" marginHeight="121" marginWidth="45" navBar="true">
<a:toolBar>
<a:button click="addWindow" text="新增" width="80"/>
<a:button click="hls_contract_remove" text="删除" width="80" iconAlign="left"/>
<a:button click="modification" text="修改" width="80"/>
</a:toolBar>
<a:columns>
<a:column name="h_contract_number" renderer="hls_house_contract_link" prompt="房屋合同编号" width="140" />
<a:column name="contract_start_date" prompt="合同开始日期" width="100"/>
<a:column name="contract_finish_date" prompt="合同到期日期" width="100"/>
<a:column name="room_abbr" prompt="房屋简称" width="80"/>
<a:column name="room_type" prompt="房屋类型" width="80"/>
<a:column name="bed" prompt="床位" width="80"/>
<a:column name="bed_used" prompt="已住床位" width="80"/>
<a:column name="bed_free" prompt="剩余床位" width="80"/>
<a:column name="landlord_name" prompt="房东姓名" width="80"/>
<a:column name="landlord_tel" prompt="联系电话" width="120"/>
<a:column name="intermediary" prompt="中介名称" width="80"/>
<a:column name="contract_condition" prompt="房屋合同状态" width="120"/>
<a:column name="contract_remark" prompt="合同备注" width="80"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
...@@ -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="合同发票税" />
......
...@@ -109,6 +109,32 @@ create or replace package hls_rent_pkg is ...@@ -109,6 +109,32 @@ create or replace package hls_rent_pkg is
v_currency varchar2, v_currency varchar2,
v_message varchar2, v_message varchar2,
v_verification_fee number); v_verification_fee number);
--新版手工核销提交
procedure verification_insert(p_contract_no varchar2,
p_receipt_no varchar2,
p_staff_no varchar2,
p_verification_rental number,
p_verification_water number,
p_verification_electric number,
p_verification_network number,
p_verification_cable number,
p_receipt_sources varchar2,
p_message varchar2);
--新版核销事务表插入
procedure insert_verification_tab(v_verification_id number,
v_verification_no varchar2,
v_contract_no varchar2,
v_verification_date date,
v_receipt_sources varchar2,
v_staff_no varchar2,
v_receipt_no varchar2,
v_currency varchar2,
v_message varchar2,
v_verification_rental number,
v_verification_water number,
v_verification_electric number,
v_verification_network number,
v_verification_cable number);
end hls_rent_pkg; end hls_rent_pkg;
/ /
create or replace package body hls_rent_pkg is create or replace package body hls_rent_pkg is
...@@ -452,8 +478,7 @@ create or replace package body hls_rent_pkg is ...@@ -452,8 +478,7 @@ create or replace package body hls_rent_pkg is
from hls_hsm from hls_hsm
where staff_no = p_receipt_objects; where staff_no = p_receipt_objects;
if p_receipt_sources = 'room_people' then if p_receipt_sources = 'room_people' then
/*select count(1)
select count(1)
into v_count into v_count
from hls_rent_receipt_fee hrf from hls_rent_receipt_fee hrf
where hrf.receipt_objects = p_receipt_objects; where hrf.receipt_objects = p_receipt_objects;
...@@ -461,7 +486,7 @@ create or replace package body hls_rent_pkg is ...@@ -461,7 +486,7 @@ create or replace package body hls_rent_pkg is
update hls_rent_receipt_fee hrf update hls_rent_receipt_fee hrf
set hrf.receipt_amounts = hrf.receipt_amounts + p_receipt_amounts set hrf.receipt_amounts = hrf.receipt_amounts + p_receipt_amounts
where hrf.receipt_objects = p_receipt_objects; where hrf.receipt_objects = p_receipt_objects;
else else*/
insert into hls_rent_receipt_fee insert into hls_rent_receipt_fee
(receipt_id, (receipt_id,
receipt_no, receipt_no,
...@@ -492,7 +517,7 @@ create or replace package body hls_rent_pkg is ...@@ -492,7 +517,7 @@ create or replace package body hls_rent_pkg is
1, 1,
-1, -1,
sysdate); sysdate);
end if; /*end if;*/
else else
insert into hls_rent_receipt_fee insert into hls_rent_receipt_fee
(receipt_id, (receipt_id,
...@@ -628,6 +653,7 @@ create or replace package body hls_rent_pkg is ...@@ -628,6 +653,7 @@ create or replace package body hls_rent_pkg is
last_update_date = sysdate last_update_date = sysdate
where personnel_no = p_personnel_no; where personnel_no = p_personnel_no;
end; end;
procedure insert_fee_detail_by_staffno(p_room_id in varchar2, procedure insert_fee_detail_by_staffno(p_room_id in varchar2,
p_fee_items in varchar2, p_fee_items in varchar2,
p_fee_amounts in number, p_fee_amounts in number,
...@@ -635,7 +661,6 @@ create or replace package body hls_rent_pkg is ...@@ -635,7 +661,6 @@ create or replace package body hls_rent_pkg is
p_fee_last_date in date) is p_fee_last_date in date) is
v_every_date date := p_fee_first_date; v_every_date date := p_fee_first_date;
v_fee_detail_id number; v_fee_detail_id number;
v_starff_no varchar2(30);
v_count number; v_count number;
v_room_price number; v_room_price number;
v_water_price number; v_water_price number;
...@@ -776,7 +801,7 @@ create or replace package body hls_rent_pkg is ...@@ -776,7 +801,7 @@ create or replace package body hls_rent_pkg is
p_verification_cable number, p_verification_cable number,
p_receipt_sources varchar2, p_receipt_sources varchar2,
p_message varchar2) is p_message varchar2) is
cursor verification_cursor is /*cursor verification_cursor is
select hpv.creditor_project creditor_project, select hpv.creditor_project creditor_project,
hpv.source_type source_type, hpv.source_type source_type,
hpv.receipt_no receipt_no, hpv.receipt_no receipt_no,
...@@ -784,7 +809,7 @@ create or replace package body hls_rent_pkg is ...@@ -784,7 +809,7 @@ create or replace package body hls_rent_pkg is
hpv.verification_fee verification_fee hpv.verification_fee verification_fee
from hls_payment_verification hpv from hls_payment_verification hpv
where hpv.contract_no = p_contract_no; where hpv.contract_no = p_contract_no;
v_update_insert varchar2(30) := 'insert'; v_update_insert varchar2(30) := 'insert';*/
v_verification_no varchar2(30); v_verification_no varchar2(30);
v_number_contract number; v_number_contract number;
v_number_staff number; v_number_staff number;
...@@ -822,7 +847,7 @@ create or replace package body hls_rent_pkg is ...@@ -822,7 +847,7 @@ create or replace package body hls_rent_pkg is
update hls_payment_verification hpv update hls_payment_verification hpv
set hpv.verification_fee = p_verification_water + set hpv.verification_fee = p_verification_water +
hpv.verification_fee hpv.verification_fee
where hpv.source_object = p_staff_no where hpv.creditor_project = p_staff_no
and hpv.creditor_project = 'fee_items_1'; and hpv.creditor_project = 'fee_items_1';
--电 --电
...@@ -830,7 +855,7 @@ create or replace package body hls_rent_pkg is ...@@ -830,7 +855,7 @@ create or replace package body hls_rent_pkg is
update hls_payment_verification hpv update hls_payment_verification hpv
set hpv.verification_fee = p_verification_electric + set hpv.verification_fee = p_verification_electric +
hpv.verification_fee hpv.verification_fee
where hpv.source_object = p_staff_no where hpv.creditor_project = p_staff_no
and hpv.creditor_project = 'fee_items_2'; and hpv.creditor_project = 'fee_items_2';
--网络 --网络
...@@ -838,7 +863,7 @@ create or replace package body hls_rent_pkg is ...@@ -838,7 +863,7 @@ create or replace package body hls_rent_pkg is
update hls_payment_verification hpv update hls_payment_verification hpv
set hpv.verification_fee = p_verification_rental + set hpv.verification_fee = p_verification_rental +
hpv.verification_fee hpv.verification_fee
where hpv.source_object = p_staff_no where hpv.creditor_project = p_staff_no
and hpv.creditor_project = 'fee_items_3'; and hpv.creditor_project = 'fee_items_3';
--电视 --电视
...@@ -846,7 +871,7 @@ create or replace package body hls_rent_pkg is ...@@ -846,7 +871,7 @@ create or replace package body hls_rent_pkg is
update hls_payment_verification hpv update hls_payment_verification hpv
set hpv.verification_fee = p_verification_rental + set hpv.verification_fee = p_verification_rental +
hpv.verification_fee hpv.verification_fee
where hpv.source_object = p_staff_no where hpv.creditor_project = p_staff_no
and hpv.creditor_project = 'fee_items_4'; and hpv.creditor_project = 'fee_items_4';
else else
--租金 --租金
...@@ -1041,5 +1066,167 @@ create or replace package body hls_rent_pkg is ...@@ -1041,5 +1066,167 @@ create or replace package body hls_rent_pkg is
v_message, v_message,
v_verification_fee); v_verification_fee);
end insert_payment_verification; end insert_payment_verification;
--新版手工核销提交
procedure verification_insert(p_contract_no varchar2,
p_receipt_no varchar2,
p_staff_no varchar2,
p_verification_rental number,
p_verification_water number,
p_verification_electric number,
p_verification_network number,
p_verification_cable number,
p_receipt_sources varchar2,
p_message varchar2) is
v_verification_no varchar2(30);
v_number_contract number;
v_number_staff number;
v_number_receipt number;
begin
select 'SKHX' || to_char(sysdate, 'yyyymmdd') ||
trim(to_char(1000 + hls_payment_verification_s.nextval))
into v_verification_no
from dual;
--如果合同存在,游标不为空,则根据员工号更新数据
--如果该合同下的员工存在,则更新
--不存在,则插入
select count(1)
into v_number_contract
from hls_verification_tab hvt
where hvt.contract_no = p_contract_no;
if v_number_contract != 0 then
select count(1)
into v_number_staff
from hls_verification_tab hvt
where hvt.source_object = p_staff_no;
if v_number_staff != 0 then
select count(1)
into v_number_receipt
from hls_verification_tab hvt
where hvt.receipt_no = p_receipt_no;
--更新
if v_number_receipt != 0 then
update hls_verification_tab hvt
set hvt.credit_item_rent = p_verification_rental +
nvl(hvt.credit_item_rent, 0),
hvt.credit_item_water = p_verification_water +
nvl(hvt.credit_item_water, 0),
hvt.credit_item_electric = p_verification_electric +
nvl(hvt.credit_item_electric, 0),
hvt.credit_item_network = p_verification_network +
nvl(hvt.credit_item_network, 0),
hvt.credit_item_cable = p_verification_cable +
nvl(hvt.credit_item_cable, 0)
where hvt.receipt_no = p_receipt_no;
else
insert_verification_tab(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_rental,
p_verification_water,
p_verification_electric,
p_verification_network,
p_verification_cable);
end if;
else
--insert
insert_verification_tab(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_rental,
p_verification_water,
p_verification_electric,
p_verification_network,
p_verification_cable);
end if;
else
insert_verification_tab(hls_payment_verification_s.nextval,
v_verification_no,
p_contract_no,
sysdate,
p_receipt_sources,
p_staff_no,
p_receipt_no,
'CNY',
p_message,
p_verification_rental,
p_verification_water,
p_verification_electric,
p_verification_network,
p_verification_cable);
end if;
update hls_rent_receipt_fee hrf
set hrf.verification_amounts = nvl(p_verification_rental, 0) +
nvl(p_verification_water, 0) +
nvl(p_verification_electric, 0) +
nvl(p_verification_network, 0) +
nvl(p_verification_cable, 0) +
nvl(hrf.verification_amounts, 0),
hrf.verification_no = v_verification_no
where hrf.receipt_objects = p_staff_no
and hrf.receipt_no = p_receipt_no;
end verification_insert;
--新版核销事务表插入
procedure insert_verification_tab(v_verification_id number,
v_verification_no varchar2,
v_contract_no varchar2,
v_verification_date date,
v_receipt_sources varchar2,
v_staff_no varchar2,
v_receipt_no varchar2,
v_currency varchar2,
v_message varchar2,
v_verification_rental number,
v_verification_water number,
v_verification_electric number,
v_verification_network number,
v_verification_cable number) is
begin
insert into hls_verification_tab
(verification_id,
verification_no,
contract_no,
verification_date,
source_type,
source_object,
receipt_no,
currency,
message,
credit_item_rent,
credit_item_water,
credit_item_electric,
credit_item_network,
credit_item_cable)
values
(v_verification_id,
v_verification_no,
v_contract_no,
v_verification_date,
v_receipt_sources,
v_staff_no,
v_receipt_no,
v_currency,
v_message,
v_verification_rental,
v_verification_water,
v_verification_electric,
v_verification_network,
v_verification_cable);
end insert_verification_tab;
end hls_rent_pkg; end hls_rent_pkg;
/ /
...@@ -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