diff --git a/WebContent/Tenwa/Comm/Document/LBDocumentInfo.jsp b/WebContent/Tenwa/Comm/Document/LBDocumentInfo.jsp index 2342d7182..b8f7ae60e 100644 --- a/WebContent/Tenwa/Comm/Document/LBDocumentInfo.jsp +++ b/WebContent/Tenwa/Comm/Document/LBDocumentInfo.jsp @@ -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"); }); diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentInfo.jsp new file mode 100644 index 000000000..ec4362360 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentInfo.jsp @@ -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 = "资产转出登记信息"; // 浏览器窗口标题 PG_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=定义按钮事件;]~*/%> + +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%> + +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%> + +<%/*~END~*/%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentList.jsp new file mode 100644 index 000000000..7d9b5906a --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LBEquipmentList.jsp @@ -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 = "资产转出登记"; // 浏览器窗口标题 PG_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=定义按钮事件;]~*/%> + +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%> + +<%/*~END~*/%> + + + + +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%> + +<%/*~END~*/%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/AssetTransferRegistration.java b/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/AssetTransferRegistration.java new file mode 100644 index 000000000..3100dd1c3 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/AssetTransferRegistration.java @@ -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"; + } +}