Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls_rent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
congweijing
hls_rent
Commits
35f306df
Commit
35f306df
authored
Aug 24, 2018
by
congweijing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
员工编号不能重复
parent
edfc3f32
Changes
30
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
60 additions
and
3245 deletions
+60
-3245
room_info_edit.screen
hls_rent(bm)/RENT100/room_info_edit.screen
+0
-104
room_info_input.screen
hls_rent(bm)/RENT100/room_info_input.screen
+0
-201
room_info_new.screen
hls_rent(bm)/RENT100/room_info_new.screen
+0
-104
room_info_search.screen
hls_rent(bm)/RENT100/room_info_search.screen
+0
-148
room_info_search_result.screen
hls_rent(bm)/RENT100/room_info_search_result.screen
+0
-60
hls_hrms_hsm1.screen
hls_rent(bm)/RENT200/hls_hrms_hsm1.screen
+0
-214
hls_hrms_hsm2.screen
hls_rent(bm)/RENT200/hls_hrms_hsm2.screen
+0
-166
hls_hrms_hsm_staff_info.screen
hls_rent(bm)/RENT200/hls_hrms_hsm_staff_info.screen
+0
-55
hls_hrms_hsm_staff_info_alter.screen
hls_rent(bm)/RENT200/hls_hrms_hsm_staff_info_alter.screen
+0
-102
hls_hrms_hsm_staff_info_editor.screen
hls_rent(bm)/RENT200/hls_hrms_hsm_staff_info_editor.screen
+0
-99
hls_staff_no_search.bm
hls_rent(bm)/RENT200/hls_staff_no_search.bm
+18
-0
manual_verification.screen
hls_rent(bm)/RENT300/manual_verification.screen
+0
-172
rent_fee_add.screen
hls_rent(bm)/RENT300/rent_fee_add.screen
+0
-90
rent_fee_information.screen
hls_rent(bm)/RENT300/rent_fee_information.screen
+0
-91
rent_manual_receipt.screen
hls_rent(bm)/RENT300/rent_manual_receipt.screen
+0
-105
rent_manual_verification.screen
hls_rent(bm)/RENT300/rent_manual_verification.screen
+0
-142
rent_receipt_fee.screen
hls_rent(bm)/RENT300/rent_receipt_fee.screen
+0
-113
rent_receipt_verification.screen
hls_rent(bm)/RENT300/rent_receipt_verification.screen
+0
-78
checkin1.screen
hls_rent(bm)/RENT400/checkin1.screen
+0
-111
checkin2.screen
hls_rent(bm)/RENT400/checkin2.screen
+0
-223
checkin_save.svc
hls_rent(bm)/RENT400/checkin_save.svc
+0
-11
checkout.screen
hls_rent(bm)/RENT400/checkout.screen
+0
-153
checkout_save.svc
hls_rent(bm)/RENT400/checkout_save.svc
+0
-11
contract_detial.screen
hls_rent(bm)/RENT400/contract_detial.screen
+0
-121
Create_contract.screen
hls_rent(bm)/RENT500/Create_contract.screen
+0
-138
Search_detial.screen
hls_rent(bm)/RENT500/Search_detial.screen
+0
-123
modification.screen
hls_rent(bm)/RENT500/modification.screen
+0
-137
search_contract.screen
hls_rent(bm)/RENT500/search_contract.screen
+0
-171
hls_hrms_hsm_staff_info_editor.screen
...ent(screen)/RENT200/hls_hrms_hsm_staff_info_editor.screen
+41
-2
staff_info_manage.sql
room_info_manage(页面注册)/staff_info_manage.sql
+1
-0
No files found.
hls_rent(bm)/RENT100/room_info_edit.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT100/room_info_input.screen
deleted
100644 → 0
View file @
edfc3f32
This diff is collapsed.
Click to expand it.
hls_rent(bm)/RENT100/room_info_new.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT100/room_info_search.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT100/room_info_search_result.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT200/hls_hrms_hsm1.screen
deleted
100644 → 0
View file @
edfc3f32
This diff is collapsed.
Click to expand it.
hls_rent(bm)/RENT200/hls_hrms_hsm2.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT200/hls_hrms_hsm_staff_info.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT200/hls_hrms_hsm_staff_info_alter.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT200/hls_hrms_hsm_staff_info_editor.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT200/hls_staff_no_search.bm
0 → 100644
View file @
35f306df
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.aurora-framework.org/schema/bm"
needAccessControl=
"flase"
>
<bm:fields>
<bm:field
name=
"staff_no"
datatype=
"java.lang.String"
physicalName=
"staff_no"
/>
</bm:fields>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT
staff_no
FROM
hls_hsm
WHERE
staff_no = ${@p_staff_no}
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
hls_rent(bm)/RENT300/manual_verification.screen
deleted
100644 → 0
View file @
edfc3f32
This diff is collapsed.
Click to expand it.
hls_rent(bm)/RENT300/rent_fee_add.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT300/rent_fee_information.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT300/rent_manual_receipt.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT300/rent_manual_verification.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT300/rent_receipt_fee.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT300/rent_receipt_verification.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT400/checkin1.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT400/checkin2.screen
deleted
100644 → 0
View file @
edfc3f32
This diff is collapsed.
Click to expand it.
hls_rent(bm)/RENT400/checkin_save.svc
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT400/checkout.screen
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT400/checkout_save.svc
deleted
100644 → 0
View file @
edfc3f32
<?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>
hls_rent(bm)/RENT400/contract_detial.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT500/Create_contract.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT500/Search_detial.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT500/modification.screen
deleted
100644 → 0
View file @
edfc3f32
<?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
hls_rent(bm)/RENT500/search_contract.screen
deleted
100644 → 0
View file @
edfc3f32
This diff is collapsed.
Click to expand it.
hls_rent(screen)/RENT200/hls_hrms_hsm_staff_info_editor.screen
View file @
35f306df
...
...
@@ -2,6 +2,9 @@
<a:screen
xmlns:a=
"http://www.aurora-framework.org/application"
trace=
"true"
>
<a:init-procedure/>
<a:view>
<a:link
id=
"RENT300_get_staff_no_link"
model=
"hls_rent.RENT200.hls_staff_no_search"
modelaction=
"query"
/>
<script>
<![CDATA[
<!--页面关闭-->
...
...
@@ -11,10 +14,20 @@
<!--页面保存-->
function createDs_save() {
console.log("hello");
console.log("lalala");
//获取工号
staff_no = $('HLS_staff_info_input_ds').getAt(0).getObject().staff_no;
// 验证工号唯一性
if (!RENT200_validate_staff_no(staff_no)) {
Aurora.showErrorMessage('${l:PROMPT}', '此员工已经创建,不能重复创建!', null, 250, 100);
return;
}
//数据提交
$('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();
}
<!--新增成功后处理-->
...
...
@@ -36,6 +49,32 @@
}
}
// 验证工号的唯一性
function RENT200_validate_staff_no(staff_no) {
var verified = true;
Aurora.request({
lockMessage: '${l:HAP_WAITING}',
lockMessage: '${l:HAP_WAITING}',
url: $('RENT300_get_staff_no_link').getUrl(),
para: {
p_staff_no: staff_no
},
sync: true,
success: function(res) {
if (res) {
console.log("res");
if (res.result.hasOwnProperty('record')) {
verified = false;
}
}else {
alert('Error');
}
},
scope: this
});
return verified;
}
]]>
</script>
<a:dataSets>
...
...
@@ -50,7 +89,7 @@
<a:fields>
<a:field
name=
"personnel_no"
readOnly=
"true"
/>
<a:field
name=
"staff_no"
required=
"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"
/>
...
...
room_info_manage(页面注册)/staff_info_manage.sql
View file @
35f306df
...
...
@@ -28,6 +28,7 @@ sys_function_assign_pkg.func_service_load('RENT2002','modules/hls_rent/RENT200/h
--分配bm, bm位置:WEB-INF/classes/
sys_function_assign_pkg
.
func_bm_load
(
'RENT2001'
,
'hls_rent.RENT200.hls_staff_info_search'
);
sys_function_assign_pkg
.
func_bm_load
(
'RENT2001'
,
'hls_rent.RENT200.hls_staff_no_search'
);
sys_function_assign_pkg
.
func_bm_load
(
'RENT2002'
,
'hls_rent.RENT200.hls_staff_info_search'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment