资产转出登记
附件一览默认OA
This commit is contained in:
parent
a4d34c70da
commit
791e000789
@ -62,7 +62,7 @@
|
||||
setItemValue(0,0,"InputOrg","<%=CurUser.getOrgName()%>");
|
||||
setItemValue(0,0,"InputTime","<%=StringFunction.getToday()%>");
|
||||
$('#DOC_NAME option').removeAttr('selected');
|
||||
$('#DOC_NAME option[value=a3b93ef4a257453cad72d7464f2bbf55]').attr('selected','selected');
|
||||
$('#DOC_NAME option[value=65f458c3e9f945d59fa378973b0853c6]').attr('selected','selected');
|
||||
// cleanSelect(2);
|
||||
hideItem(0,"CUST_ID");
|
||||
});
|
||||
|
||||
@ -0,0 +1,126 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
|
||||
<%
|
||||
/*
|
||||
Author:guosl 2017-05-05
|
||||
Tester:
|
||||
Content: 项目基本信息-租赁物件列表页面
|
||||
Input Param:
|
||||
Output param:
|
||||
History Log:
|
||||
*/
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
|
||||
<%
|
||||
String PG_TITLE = "资产转出登记信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
|
||||
<%
|
||||
String ids= CurPage.getParameter("ids");//ID
|
||||
String sTempletNo="AssetTransferRegistrationinfo";
|
||||
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
|
||||
<%
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
%>
|
||||
|
||||
<%
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
|
||||
<%
|
||||
String sButtons[][] = {
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
{"true","All","Button","确定","保存所有修改","saveRecord()","","","","btn_icon_save"},
|
||||
{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
|
||||
};
|
||||
sButtonPosition = "north";
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
|
||||
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
|
||||
|
||||
function saveRecord(){
|
||||
debugger;
|
||||
var ids="<%=ids%>";
|
||||
ids=ids.replace(/,/ig,"@");
|
||||
var ASSETTRANSFERER=getItemValue(0,getRow(0),"ASSETTRANSFERER");
|
||||
var TRANSFERDATE=getItemValue(0,getRow(0),"TRANSFERDATE");
|
||||
var TURNOUTREMARKS=getItemValue(0,getRow(0),"TURNOUTREMARKS");
|
||||
var Return = RunJavaMethodTrans("com.tenwa.lease.flow.contract.commbusiness.AssetTransferRegistration","XiuGai","ids="+ids+",ASSETTRANSFERER="+ASSETTRANSFERER+",TRANSFERDATE="+TRANSFERDATE+",TURNOUTREMARKS="+TURNOUTREMARKS);
|
||||
if(Return=="success"){
|
||||
parent.AsDialog.ClosePage("success");
|
||||
}
|
||||
|
||||
}
|
||||
/*~[Describe=返回列表页面;InputParam=无;OutPutParam=无;]~*/
|
||||
function goBack(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentList.jsp";
|
||||
|
||||
AsControl.OpenView(sUrl,"","_self","");
|
||||
}
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,119 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
|
||||
<%
|
||||
/*
|
||||
Author:guosl 2017-05-05
|
||||
Tester:
|
||||
Content: 项目基本信息-租赁物件列表页面
|
||||
Input Param:
|
||||
Output param:
|
||||
History Log:
|
||||
*/
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
|
||||
<%
|
||||
String PG_TITLE = "资产转出登记"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
|
||||
<%
|
||||
String sTempletNo="AssetTransferRegistration";
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
|
||||
<%
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
|
||||
%>
|
||||
|
||||
<%
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style = "1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.MultiSelect = true;
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
|
||||
<%
|
||||
String sButtons[][] =null;
|
||||
|
||||
sButtons=new String[][]{
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
{"true","","Button","修改","修改资产转出信息","viewAndEdit()","","","","btn_icon_edit"},
|
||||
};
|
||||
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
|
||||
<script type="text/javascript">
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentInfo.jsp";
|
||||
var IDs = getItemValueArray(0,'ID')+","+TablePage.getCheckedItemValueArrayWithOtherPage("ID",s_c_p[0]);
|
||||
if(typeof(IDs) == "undefined" || IDs.length == 0 ){alert("请选择一条信息!");return ;}
|
||||
var sParam = "ids="+IDs;
|
||||
AsDialog.PopView(sUrl,sParam,
|
||||
"dialogWidth=500px;dialogHeight=300px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sReturnInfo){
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
if("success"==sReturnInfo){
|
||||
alert("修改成功");
|
||||
}
|
||||
reloadSelf();
|
||||
|
||||
},"资产转出登记修改");
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,76 @@
|
||||
package com.tenwa.lease.flow.contract.commbusiness;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.BizObjectQuery;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
|
||||
public class AssetTransferRegistration {
|
||||
|
||||
|
||||
|
||||
|
||||
private String ids;
|
||||
public String ASSETTRANSFERER;
|
||||
public String TRANSFERDATE;
|
||||
public String TURNOUTREMARKS;
|
||||
|
||||
|
||||
|
||||
public String getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
|
||||
public void setIds(String ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
|
||||
public String getASSETTRANSFERER() {
|
||||
return ASSETTRANSFERER;
|
||||
}
|
||||
|
||||
|
||||
public void setASSETTRANSFERER(String aSSETTRANSFERER) {
|
||||
ASSETTRANSFERER = aSSETTRANSFERER;
|
||||
}
|
||||
|
||||
|
||||
public String getTRANSFERDATE() {
|
||||
return TRANSFERDATE;
|
||||
}
|
||||
|
||||
|
||||
public void setTRANSFERDATE(String tRANSFERDATE) {
|
||||
TRANSFERDATE = tRANSFERDATE;
|
||||
}
|
||||
|
||||
|
||||
public String getTURNOUTREMARKS() {
|
||||
return TURNOUTREMARKS;
|
||||
}
|
||||
|
||||
|
||||
public void setTURNOUTREMARKS(String tURNOUTREMARKS) {
|
||||
TURNOUTREMARKS = tURNOUTREMARKS;
|
||||
}
|
||||
|
||||
|
||||
public String XiuGai(JBOTransaction tx)throws Exception{
|
||||
BizObjectManager bo=JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME);
|
||||
tx.join(bo);
|
||||
String[] lists=this.getIds().toString().split("@");
|
||||
for(String Id : lists){
|
||||
BizObjectQuery bq=bo.createQuery("update O set ASSETTRANSFERER=:ASSETTRANSFERER,TRANSFERDATE=:TRANSFERDATE,TURNOUTREMARKS=:TURNOUTREMARKS where id='"+Id+"'").setParameter("ASSETTRANSFERER",ASSETTRANSFERER).setParameter("TRANSFERDATE", TRANSFERDATE).setParameter("TURNOUTREMARKS", TURNOUTREMARKS);
|
||||
bq.executeUpdate();
|
||||
}
|
||||
|
||||
|
||||
return "success";
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user