Commit 7886979e authored by lijingjing's avatar lijingjing

this is the first version

parents
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: xin.J
$Date: 2017-8-10 下午11:17:46
$Revision: 1.0
$Purpose: 总账凭证信息录入svc
-->
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" checkSessionLock="true" lockKey="${/session/@session_id}" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-delete model="hrms/HRMS1020/hrms_house_delete"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: niujiaqing1265 $
$Date: 2010/11/18 08:23:24 $
$Revision: 1.2 $
$Purpose: 页面注册
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application">
<a:view>
<a:link id="add_rental_fee_link" url="${/request/@context_path}/modules/hrms/HRMS1020/hrms_house_save.screen"/>
<a:link id="add_house_link" url="${/request/@context_path}/modules/hrms/HRMS1010/hrms_house_show.screen"/>
<a:link id="hrms_house_delete_link" url="${/request/@context_path}/modules/hrms/HRMS1010/hrms_house_delete.svc"/>
<script><![CDATA[
function add_house_infos(value, record, name){
if (record.get('house_number')) {
url = $('add_house_link').getUrl() + '?house_number=' + record.get('house_number');
return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>';
}
}
function openWindow(url) {
new Aurora.Window({
id:"add_new_page_show",
url: url,
fullScreen: true
});
}
function hrms_house_query(){
$('hrms_house_result_ds').query()
}
function add_rental_house(){
new Aurora.Window({
id: 'add_house_fee_window',
url: $('add_rental_fee_link').getUrl(),
fullScreen: true
});
}
function deleteFunction() {
var recordsData = $('hrms_house_result_ds').getJsonData(true);
if (recordsData.length < 1) {
Aurora.showInfoMessage('提示', '${l:PROMPT.PLEASE_SELECT_ONE}', null, 250, 100);
return;
}else{
var house_status=recordsData[0].house_status;
if(house_status=='已租住'){
Aurora.showInfoMessage('提示', '已租住,不能删除房屋信息', null, 250, 100);
return;
}else{
var msgBox = Aurora.showConfirm('提示', '确认删除该条记录', function() {
processDeleteFunction();
msgBox.close();
}, null, 250, 100);
}
}
}
function processDeleteFunction() {
var recordsData = $('hrms_house_result_ds').getJsonData(true);
Aurora.request({
url: $('hrms_house_delete_link').getUrl(),
para: recordsData,
success: function() {
history.go(0);
},
scope: this
});
}
]]></script>
<a:dataSets>
<a:dataSet id="hrms_house_type" lookupCode="HOUSE_TYPES"/>
<a:dataSet id="hrms_house_status" lookupCode="HOUSE_STATUSS"/>
<a:dataSet id="hrms_house_query_ds">
<a:fields>
<a:field name="house_type" options="hrms_house_type" displayField="code_value_name" valueField="code_value" returnField="code_value"/>
<a:field name="house_status" options="hrms_house_status" displayField="code_value_name" valueField="code_value" returnField="code_value"/>
</a:fields>
</a:dataSet>
<a:dataSet id="hrms_house_result_ds" loadData="true" model="hrms.HRMS1020.hrms_house_update" selectable="true" selectionModel="single" queryDataSet="hrms_house_query_ds">
</a:dataSet>
</a:dataSets>
<a:screenBody >
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton text="HLS.QUERY" click="hrms_house_query"/>
<a:gridButton text="新增" click="add_rental_house"/>
</a:screenTopToolbar>
<a:form column="4" title="查询条件" style="width:100%" bindTarget="hrms_house_query_ds">
<a:textField prompt="房屋简称" bindTarget="hrms_house_query_ds" name="house_name"/>
<a:comboBox prompt="房屋类型" bindTarget="hrms_house_query_ds" name="house_type" />
<a:comboBox prompt="房屋状态" bindTarget="hrms_house_query_ds" name="house_status"/>
<a:textField prompt="房东姓名" bindTarget="hrms_house_query_ds" name="owner_name"/>
<a:textField prompt="联系电话" bindTarget="hrms_house_query_ds" name="owner_telephone"/>
<a:datePicker prompt="创建日期从" bindTarget="hrms_house_query_ds" name="create_date_from"/>
<a:datePicker prompt="创建日期到" bindTarget="hrms_house_query_ds" name="create_date_to"/>
</a:form>
<a:grid marginHeight="121" marginWidth="45" bindTarget="hrms_house_result_ds" navBar="true">
<a:toolBar>
<!-- <a:button click="add_rental_house" text="HAP_NEW"/>-->
<a:button text="PROMPT.DELETE" click="deleteFunction"/>
</a:toolBar>
<a:columns>
<a:column prompt="房屋编号" name="house_number" width="105" renderer="add_house_infos"/>
<a:column prompt="房屋简称" name="house_name" width="105"/>
<a:column prompt="房屋类型" name="house_type" width="105"/>
<a:column prompt="床位" name="house_beds" width="105"/>
<a:column prompt="房东姓名" name="owner_name" width="105"/>
<a:column prompt="联系电话" name="owner_telephone" width="105"/>
<a:column prompt="中介名称" name="agent_name" width="105"/>
<a:column prompt="房屋地址(省)" name="house_country" width="105"/>
<a:column prompt="房屋地址(市)" name="house_province" width="105"/>
<a:column prompt="房屋地址(区)" name="house_city" width="105"/>
<a:column prompt="创建日期" name="create_date" width="105" renderer="Aurora.formatDate"/>
<a:column prompt="备注" name="house_description" width="105"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-5-9 下午03:19:57
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application" >
<a:init-procedure>
<a:model-query defaultWhereClause="a.house_number=${/parameter/@house_number}" model="hrms.HRMS1020.hrms_house_update" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
function onCategoryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_id'){
$('hrms_house_fnd_province').setQueryParameter('country_id', value);
$('hrms_house_fnd_province').query();
}else if(name == 'province_id'){
$('hrms_house_fnd_city').setQueryParameter('province_id', value);
$('hrms_house_fnd_city').query();
}
}
function close_page(){
$('add_new_page_show').close()
}
function hrms_house_update(){
//数据提交
$('house_info_query_ds').setSubmitUrl("${/request/@context_path}/modules/hrms/HRMS1020/hrms_house_update.svc");
$('house_info_query_ds').submit();
saveFlag = true;
}
function closes(){
$('add_new_page_show').close();
}
function phoneValidate(record,name,value){
var re = /^1\d{10}$/;
if(re.test(value)){
return true;
}else{
Aurora.showWarningMessage('提示', '电话号码格式不正确', null, 250, 100);
}
}
]]></script>
<a:dataSets>
<a:dataSet id="house_info_query_ds_house_type" lookupCode="HOUSE_TYPES"/>
<a:dataSet id="house_info_query_ds_house_beds" lookupCode="HOUSE_BEDS"/>
<a:dataSet id="house_info_query_ds_house_area" lookupCode="HOUSE_AREAS"/>
<a:dataSet id="hrms_house_find_country" model="hrms.HRMS1020.fnd_country" loadData="true"/>
<a:dataSet id="hrms_house_fnd_province" model="hrms.HRMS1020.fnd_province"/>
<a:dataSet id="hrms_house_fnd_city" model="hrms.HRMS1020.fnd_city"/>
<a:dataSet id="house_info_query_ds">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="house_number"/>
<a:field name="house_type" options="house_info_query_ds_house_type" displayField="code_value_name" valueField="code_value_name" returnField="house_type" required="true"/>
<a:field name="house_beds" options="house_info_query_ds_house_beds" displayField="code_value_name" valueField="code_value_name" returnField="house_beds" required="true"/>
<a:field name="house_area" options="house_info_query_ds_house_area" displayField="code_value_name" valueField="code_value_name" returnField="house_area" required="true"/>
<a:field name="house_country" options="hrms_house_find_country" displayField="description" valueField="country_id" returnField="country_id" required="true"/>
<a:field name="house_province" options="hrms_house_fnd_province" displayField="description" valueField="province_id" returnField="province_id" required="true"/>
<a:field name="house_city" options="hrms_house_fnd_city" displayField="description" valueField="city_id" returnField="city_id" required="true" />
<a:field name="agent_name"/>
<a:field name="agent_contacts"/>
<a:field name="agent_phone" validator="phoneValidate"/>
<a:field name="house_description"/>
<a:field name="owner_telephone" validator="phoneValidate"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCategoryUpdate"/>
<a:event name="submitsuccess" handler="closes"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:toolbarButton text="修改" width="80" click="hrms_house_update"/>
<a:toolbarButton text="HAP_CLOSE" width="80" click="close_page"/>
</a:screenTopToolbar>
<a:form style="width:100%" bindTarget="house_info_query_ds" >
<a:box column="4">
<a:textField name="house_number" readOnly="true" prompt="合同编号" bindTarget="house_info_query_ds"/>
<a:comboBox name="house_type" prompt="房屋类型" bindTarget="house_info_query_ds"/>
<a:comboBox name="house_area" prompt="房屋面积" bindTarget="house_info_query_ds"/>
<a:comboBox name="house_beds" prompt="床位" bindTarget="house_info_query_ds"/>
</a:box>
<a:box column="4">
<a:comboBox bindTarget="house_info_query_ds" prompt="国家" name="house_country" />
<a:comboBox bindTarget="house_info_query_ds" prompt="省" name="house_province"/>
<a:comboBox bindTarget="house_info_query_ds" prompt="区" name="house_city" />
<a:textField bindTarget="house_info_query_ds" prompt="房屋简称" name="house_name"/>
</a:box>
<a:box column="4">
<a:textField name="owner_name" bindTarget="house_info_query_ds" prompt="房东姓名" />
<a:textField name="owner_telephone" bindTarget="house_info_query_ds" prompt="联系电话"/>
<a:textField name="agent_name" bindTarget="house_info_query_ds" prompt="中介名称" />
<a:textField name="agent_contacts" bindTarget="house_info_query_ds" prompt="中介联系人" />
</a:box>
<a:box column="2">
<a:textField name="agent_phone" bindTarget="house_info_query_ds" prompt="中介联系电话" />
<a:textField name="house_description" bindTarget="house_info_query_ds" prompt="备注" width="610"/>
</a:box>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-5-9 下午03:19:57
$Revision: 1.0
$Purpose: 房屋信息保存页面
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application" >
<a:view>
<script><![CDATA[
<!--点击保存按钮进行数据的提交-->
function hrms_house_save(){
//数据提交
$('hrms_house_save_type').setSubmitUrl("${/request/@context_path}/modules/hrms/HRMS1020/hrms_house_save.svc");
$('hrms_house_save_type').submit();
saveFlag = true;
}
<!--三级联动-->
function onCategoryUpdate(ds,record,name,value,oldvalue){
if(name == 'country_id'){
record.set('province_id',null);
record.set('description1',null);
$('hrms_house_fnd_province').setQueryParameter('country_id', value);
$('hrms_house_fnd_province').query();
}else if(name == 'province_id'){
record.set('city_id',null);
record.set('description2',null);
$('hrms_house_fnd_city').setQueryParameter('province_id', value);
$('hrms_house_fnd_city').query();
}
}
<!--关闭房屋信息新增页面-->
function hrms_house_exit(){
$('add_house_fee_window').close();
}
function phoneValidate(record,name,value){
var re = /^1\d{10}$/;
if(re.test(value)){
return true;
}else{
Aurora.showWarningMessage('提示', '电话号码格式不正确', null, 250, 100);
}
}
function resets() {
$('hrms_house_save_type').removeAll();
}
]]></script>
<a:dataSets>
<a:dataSet id="hrms_house_save_type_ha" lookupCode="HOUSE_AREAS"/>
<a:dataSet id="hrms_house_save_type_ht" lookupCode="HOUSE_TYPES"/>
<a:dataSet id="hrms_house_save_type_bs" lookupCode="HOUSE_BEDS"/>
<a:dataSet id="hrms_house_find_country" model="hrms.HRMS1020.fnd_country" loadData="true"/>
<a:dataSet id="hrms_house_fnd_province" model="hrms.HRMS1020.fnd_province"/>
<a:dataSet id="hrms_house_fnd_city" model="hrms.HRMS1020.fnd_city" />
<a:dataSet id="hrms_house_save_type">
<a:fields>
<a:field name="house_area" options="hrms_house_save_type_ha" displayField="code_value_name" valueField="code_value_name" returnField="house_area" required="true"/>
<a:field name="house_type" options="hrms_house_save_type_ht" displayField="code_value_name" valueField="code_value_name" returnField="house_type" required="true"/>
<a:field name="house_beds" options="hrms_house_save_type_bs" displayField="code_value_name" valueField="code_value_name" returnField="house_beds" required="true"/>
<a:field name="description" options="hrms_house_find_country" displayField="description" valueField="country_id" returnField="country_id" required="true"/>
<a:field name="description1" options="hrms_house_fnd_province" displayField="description" valueField="province_id" returnField="province_id" required="true"/>
<a:field name="description2" options="hrms_house_fnd_city" displayField="description" valueField="city_id" returnField="city_id" required="true"/>
<a:field name="owner_name" />
<a:field name="create_date"/>
<a:field name="owner_telephone" validator="phoneValidate"/>
<a:field name="house_name"/>
<a:field name="agent_name"/>
<a:field name="agent_contacts"/>
<a:field name="agent_phone" validator="phoneValidate"/>
<a:field name="house_description"/>
</a:fields>
<a:events>
<a:event name="update" handler="onCategoryUpdate"/>
<a:event name="submitsuccess" handler="resets" />
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody >
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton text="HLS.SAVE" click="hrms_house_save"/>
<a:gridButton text="HLS.EXIT" click="hrms_house_exit"/>
</a:screenTopToolbar>
<a:form title="房屋信息" bindTarget="hrms_house_save_type">
<a:box column="4">
<a:comboBox name="house_type" bindTarget="hrms_house_save_type" prompt="房屋类型"/>
<a:comboBox name="house_area" bindTarget="hrms_house_save_type" prompt="房屋面积"/>
<a:comboBox name="house_beds" bindTarget="hrms_house_save_type" prompt="床位"/>
<a:textField name="owner_name" bindTarget="hrms_house_save_type" prompt="房东姓名" />
</a:box>
<a:box column="4">
<a:textField name="owner_telephone" bindTarget="hrms_house_save_type" prompt="联系电话" />
<a:comboBox bindTarget="hrms_house_save_type" prompt="国家" name="description"/>
<a:comboBox bindTarget="hrms_house_save_type" prompt="省" name="description1"/>
<a:comboBox bindTarget="hrms_house_save_type" prompt="区" name="description2" />
</a:box>
<a:box column="4">
<a:textField name="house_name" bindTarget="hrms_house_save_type" prompt="房屋简称"/>
<a:textField name="agent_name" bindTarget="hrms_house_save_type" prompt="中介名称"/>
<a:textField name="agent_contacts" bindTarget="hrms_house_save_type" prompt="中介联系人"/>
<a:textField name="agent_phone" bindTarget="hrms_house_save_type" prompt="中介联系电话"/>
</a:box>
<a:box column="1">
<a:textField name="house_description" bindTarget="hrms_house_save_type" prompt="备注" width="840"/>
</a:box>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: xin.J
$Date: 2017-8-10 下午11:17:46
$Revision: 1.0
$Purpose: 总账凭证信息录入svc
-->
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" checkSessionLock="true" lockKey="${/session/@session_id}" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-insert model="hrms/HRMS1020/hrms_house_update"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: niujiaqing1265 $
$Date: 2010/11/18 08:23:24 $
$Revision: 1.2 $
$Purpose: 房屋信息跟新
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application">
<a:view>
<a:link id="add_rental_fee_link" url="${/request/@context_path}/modules/hrms/HRMS1020/hrms_house_save.screen"/>
<script><![CDATA[
function add_rental_house(){
new Aurora.Window({
id: 'add_house_fee_window',
url: $('add_rental_fee_link').getUrl(),
fullScreen: true
});
}
]]></script>
<a:dataSets>
<a:dataSet id="ht" lookupCode="HOUSE_TYPE"/>
<a:dataSet id="hs" lookupCode="HOUSE_STATUS"/>
<a:dataSet id="hrms_house_update_type">
<a:fields>
<a:field name="house_type" options="ht" required="true" displayField="code_value_name" valueField="code_value_name" returnField="house_type"/>
<a:field name="house_status" options="hs" required="true" displayField="code_value_name" valueField="code_value_name" returnField="house_status"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody >
<a:screenTopToolbar>
<a:gridButton text="HLS.SAVE" />
<a:gridButton text="HLS.RESET"/>
</a:screenTopToolbar>
<a:form column="4" title="查询条件" style="width:100%" bindTarget="hrms_house_update_type">
<a:textField prompt="房屋简称"/>
<a:comboBox prompt="房屋类型" bindTarget="hrms_house_update_type" name="house_type"/>
<a:comboBox prompt="房屋状态" bindTarget="hrms_house_update_type" name="house_status"/>
<a:textField prompt="房东姓名"/>
<a:textField prompt="联系电话"/>
<a:datePicker prompt="创建日期从"/>
<a:datePicker prompt="创建日期到"/>
</a:form>
<a:grid marginHeight="121" marginWidth="45">
<a:toolBar>
<a:button click="add_rental_house" text="HAP_NEW"/>
<a:button text="删除" type="delete"/>
</a:toolBar>
<a:columns>
<a:column prompt="房屋编号"/>
<a:column prompt="房屋简称"/>
<a:column prompt="房屋类型"/>
<a:column prompt="床位"/>
<a:column prompt="房东姓名"/>
<a:column prompt="联系电话"/>
<a:column prompt="中介名称"/>
<a:column prompt="房屋地址"/>
<a:column prompt="创建日期"/>
<a:column prompt="备注"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: xin.J
$Date: 2017-8-10 下午11:17:46
$Revision: 1.0
$Purpose: 总账凭证信息录入svc
-->
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" checkSessionLock="true" lockKey="${/session/@session_id}" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-update model="hrms/HRMS1020/hrms_house_update"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-5-9 下午03:19:57
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application" >
<a:view>
<script><![CDATA[
function add_cost_info(){
var recordsData=$('hrms_cost_infos_project_ds').getJsonData();
var date1=recordsData[0].bill_start_date.getTime();
var date2=recordsData[0].bill_end_date.getTime();
if(date1>date2){
Aurora.showInfoMessage('错误', '费用开始日期不能大于结束日期,请重新输入', null, 250, 100);
return;
}
if(recordsData[0].bill_sum<0){
Aurora.showInfoMessage('提示', '费用费用金额不能为负数,请重新输入', null, 250, 100);
return;
}
//数据提交
$('hrms_cost_infos_project_ds').setSubmitUrl("${/request/@context_path}/modules/hrms/HRMS1300/hrms_cost_save.svc");
$('hrms_cost_infos_project_ds').submit();
saveFlag = true;
}
function reset_page(){
$('hrms_cost_infos_project_ds').removeAll();
}
]]></script>
<a:dataSets>
<a:dataSet id="cost_infos_project_ds" lookupCode="COST_PROJECTS"/>
<a:dataSet id="cost_infos_sources_ds" lookupCode="COST_SOURCE"/>
<a:dataSet id="cost_infos_currency_ds" lookupCode="CURRENCY"/>
<a:dataSet id="hrms_cost_infos_project_ds">
<a:fields>
<a:field name="bill_type" options="cost_infos_project_ds" displayField="code_value_name" valueField="code_value_name" returnField="bill_type" required="true"/>
<a:field name="bill_resource" options="cost_infos_sources_ds" displayField="code_value_name" valueField="code_value_name" returnField="bill_resource" required="true"/>
<a:field name="currency_name" options="cost_infos_currency_ds" displayField="code_value_name" valueField="code_value_name" returnField="currency_name" required="true"/>
<a:field name="bill_object" required="true" lovService="hrms.HRMS1300.cost_infos_add_lov" prompt="费用对象">
<a:mapping>
<a:map from="house_name" to="bill_object"/>
<a:map from="house_type" to="house_type"/>
<a:map from="house_id" to="house_id"/>
</a:mapping>
</a:field>
<a:field name="house_id"/>
<a:field name="house_type"/>
<a:field name="house_name"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="reset_page"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton id="emp_save_id" text="HLS.SAVE" click="add_cost_info"/>
</a:screenTopToolbar>
<a:form bindTarget="hrms_cost_infos_project_ds">
<a:box column="3">
<a:textField prompt="费用单编号" name="bill_number" readOnly="true" bindTarget="hrms_cost_infos_project_ds"/>
<a:datePicker prompt="新增日期" name="bill_create_date" bindTarget="hrms_cost_infos_project_ds"/>
<a:datePicker prompt="费用开始日" name="bill_start_date" bindTarget="hrms_cost_infos_project_ds"/>
</a:box>
<a:box column="3">
<a:datePicker prompt="费用结束日" name="bill_end_date" bindTarget="hrms_cost_infos_project_ds"/>
<a:comboBox prompt="费用项目" name="bill_type" bindTarget="hrms_cost_infos_project_ds"/>
<a:comboBox prompt="费用来源" name="bill_resource" bindTarget="hrms_cost_infos_project_ds"/>
</a:box>
<a:box column="3">
<a:lov prompt="费用对象" name="bill_object" bindTarget="hrms_cost_infos_project_ds"/>
<a:numberField prompt="费用金额" name="bill_sum" bindTarget="hrms_cost_infos_project_ds"/>
<a:comboBox prompt="币种" name="currency_name" bindTarget="hrms_cost_infos_project_ds"/>
</a:box>
<a:box column="1">
<a:textField width="610" prompt="备注" name="bill_description" bindTarget="hrms_cost_infos_project_ds"/>
</a:box>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: xin.J
$Date: 2017-8-10 下午11:17:46
$Revision: 1.0
$Purpose: 总账凭证信息录入svc
-->
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" checkSessionLock="true" lockKey="${/session/@session_id}" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-insert model="hrms/HRMS1300/hrms_cost_save"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: niujiaqing1265 $
$Date: 2010/11/18 08:23:24 $
$Revision: 1.2 $
$Purpose: 页面注册
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application">
<a:view>
<a:link id="add_cost_link" url="${/request/@context_path}/modules/hrms/HRMS1310/hrms_cost_show.screen"/>
<script><![CDATA[
function add_costs_infos_show(value, record, name){
if (record.get('bill_number')) {
url = $('add_cost_link').getUrl() + '?bill_number=' + record.get('bill_number');
return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>';
}
}
function openWindow(url) {
new Aurora.Window({
id:"cost_new_page_show",
url: url,
fullScreen: true
});
}
function hrms_cost_infos_query(){
$('hrms_cost_result_ds').query();
}
]]></script>
<a:dataSets>
<a:dataSet id="cost_infos_project_ds" lookupCode="COST_PROJECTS"/>
<a:dataSet id="cost_infos_sources_ds" lookupCode="COST_SOURCE"/>
<a:dataSet id="cost_infos_currency_ds" lookupCode="CURRENCY"/>
<a:dataSet id="hrms_cost_infos_query_ds">
<a:fields>
<a:field name="bill_type" options="cost_infos_project_ds" displayField="code_value_name" valueField="code_value" returnField="code_value"/>
<a:field name="bill_resource" options="cost_infos_sources_ds" displayField="code_value_name" valueField="code_value" returnField="code_value"/>
<a:field name="currency_name" options="cost_infos_currency_ds" displayField="code_value_name" valueField="code_value" returnField="code_value"/>
<a:field name="bill_object" lovService="hrms.HRMS1300.cost_infos_add_lov">
<a:mapping>
<a:map from="house_name" to="bill_object"/>
<a:map from="house_type" to="house_type"/>
<a:map from="house_id" to="house_id"/>
</a:mapping>
</a:field>
<a:field name="create_start_date"/>
<a:field name="create_end_date"/>
<a:field name="bill_create_date"/>
<a:field name="bill_start_date_from"/>
<a:field name="bill_end_date_to"/>
<a:field name="bill_start_date"/>
<a:field name="bill_end_date"/>
</a:fields>
</a:dataSet>
<a:dataSet id="hrms_cost_result_ds" loadData="true" model="hrms.HRMS1310.hrms_cost_search" queryDataSet="hrms_cost_infos_query_ds" selectable="true" selectionModel="single">
</a:dataSet>
</a:dataSets>
<a:screenBody style="width:100%">
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton text="HLS.QUERY" click="hrms_cost_infos_query"/>
</a:screenTopToolbar>
<a:form column="3" title="查询条件" style="width:100%" bindTarget="hrms_cost_infos_query_ds">
<a:textField name="bill_number" prompt="费用单编号" bindTarget="hrms_cost_infos_query_ds"/>
<a:comboBox name="bill_type" prompt="费用项目" bindTarget="hrms_cost_infos_query_ds"/>
<a:comboBox name="bill_resource" prompt="费用来源" bindTarget="hrms_cost_infos_query_ds"/>
<a:lov name="bill_object" prompt="费用对象" bindTarget="hrms_cost_infos_query_ds"/>
<a:datePicker name="create_start_date" prompt="新增日期从" bindTarget="hrms_cost_infos_query_ds"/>
<a:datePicker name="create_end_date" prompt="新增日期到" bindTarget="hrms_cost_infos_query_ds"/>
<a:datePicker name="bill_start_date_from" prompt="费用发生日从" bindTarget="hrms_cost_infos_query_ds"/>
<a:datePicker name="bill_end_date_to" prompt="费用结束日到" bindTarget="hrms_cost_infos_query_ds"/>
</a:form>
<a:grid marginHeight="121" marginWidth="45" bindTarget="hrms_cost_result_ds">
<a:columns>
<a:column prompt="费用单编号" width="160" name="bill_number" renderer="add_costs_infos_show"/>
<a:column prompt="费用项目" width="160" name="bill_type"/>
<a:column prompt="费用来源" width="160" name="bill_resource"/>
<a:column prompt="费用对象" width="160" name="bill_object"/>
<a:column prompt="费用发生日" width="160" name="bill_start_date" renderer="Aurora.formatDate"/>
<a:column prompt="费用结束日" width="160" name="bill_end_date" renderer="Aurora.formatDate"/>
<a:column prompt="费用金额" width="160" name="bill_sum"/>
<a:column prompt="新增日期" width="160" name="bill_create_date" renderer="Aurora.formatDate"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gaoyang
$Date: 2013-5-9 下午03:19:57
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application" >
<a:init-procedure>
<a:model-query defaultWhereClause="hci.bill_number=${/parameter/@bill_number}" model="hrms.HRMS1310.hrms_cost_search" rootPath="link_path" />
</a:init-procedure>
<a:view>
<script><![CDATA[
function close_cost_infos(){
$('cost_new_page_show').close()
}
function update_cost_infos(){
//数据提交
$('hrms_cost_infos_show_ds').setSubmitUrl("${/request/@context_path}/modules/hrms/HRMS1310/hrms_cost_update.svc");
$('hrms_cost_infos_show_ds').submit();
saveFlag = true;
}
function handler_close(){
$('cost_new_page_show').close();
}
]]></script>
<a:dataSets>
<a:dataSet id="cost_infos_show_project" lookupCode="COST_PROJECTS"/>
<a:dataSet id="cost_infos_show_sources" lookupCode="COST_SOURCE"/>
<a:dataSet id="cost_infos_show_currency" lookupCode="CURRENCY"/>
<a:dataSet id="hrms_cost_infos_show_ds">
<a:datas dataSource="/model/link_path"/>
<a:fields>
<a:field name="bill_type" options="cost_infos_show_project" displayField="code_value_name" valueField="code_value_name" returnField="bill_type"/>
<a:field name="bill_resource" options="cost_infos_show_sources" displayField="code_value_name" valueField="code_value_name" returnField="bill_resource"/>
<a:field name="currency_name" options="cost_infos_show_currency" displayField="code_value_name" valueField="code_value_name" returnField="currency_name"/>
<a:field name="bill_object" required="true" lovService="hrms.HRMS1300.cost_infos_add_lov">
<a:mapping>
<a:map from="house_name" to="bill_object"/>
<a:map from="house_type" to="house_type"/>
<a:map from="house_id" to="house_id"/>
</a:mapping>
</a:field>
<a:field name="house_id"/>
</a:fields>
<a:events>
<a:event name="submitsuccess" handler="handler_close" />
</a:events>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton id="emp_save_id" click="update_cost_infos" text="修改"/>
<a:gridButton id="emp_back_id" click="close_cost_infos" text="HLS.EXIT" />
</a:screenTopToolbar>
<a:form bindTarget="hrms_cost_infos_show_ds">
<a:box column="3">
<a:textField prompt="费用单编号" name="bill_number" readOnly="true" bindTarget="hrms_cost_infos_show_ds"/>
<a:datePicker prompt="新增日期" name="bill_create_date" bindTarget="hrms_cost_infos_show_ds" renderer="Aurora.formatDate"/>
<a:datePicker prompt="费用开始日" name="bill_start_date" bindTarget="hrms_cost_infos_show_ds" renderer="Aurora.formatDate"/>
</a:box>
<a:box column="3">
<a:datePicker prompt="费用结束日" name="bill_end_date" bindTarget="hrms_cost_infos_show_ds" renderer="Aurora.formatDate"/>
<a:comboBox prompt="费用项目" name="bill_type" bindTarget="hrms_cost_infos_show_ds"/>
<a:comboBox prompt="费用来源" name="bill_resource" bindTarget="hrms_cost_infos_show_ds"/>
</a:box>
<a:box column="3">
<a:lov prompt="费用对象" name="bill_object" bindTarget="hrms_cost_infos_show_ds"/>
<a:textField prompt="费用金额" name="bill_sum" bindTarget="hrms_cost_infos_show_ds"/>
<a:comboBox prompt="币种" name="currency_name" bindTarget="hrms_cost_infos_show_ds"/>
</a:box>
<a:box column="1">
<a:textField width="610" prompt="备注" name="bill_description" bindTarget="hrms_cost_infos_show_ds"/>
</a:box>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: xin.J
$Date: 2017-8-10 下午11:17:46
$Revision: 1.0
$Purpose: 总账凭证信息录入svc
-->
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:p="uncertain.proc" checkSessionLock="true" lockKey="${/session/@session_id}" trace="true">
<a:init-procedure>
<a:batch-apply sourcepath="/parameter">
<a:model-update model="hrms/HRMS1310/hrms_cost_search"/>
</a:batch-apply>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment