Merge branch 'develop' of http://git2.tenwa.com.cn/ApzlDev/apzl_leasing.git into zhangbb_apzl

This commit is contained in:
zhangbb 2019-10-28 18:25:44 +08:00
commit 7faa598660
3 changed files with 89 additions and 1 deletions

View File

@ -0,0 +1,28 @@
<%@page import="com.itextpdf.text.log.SysoCounter"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/Frame/resources/include/include_begin_info.jspf"%><%
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/MoreThemeMaintenanceList.jsp";
String sTempletNo = "LB_MANY_SUBJECT_INFO";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "0";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function goBack(){
parent.AsDialog.ClosePage();
}
function saveRecord(sPostEvents) {
as_save("myiframe0", "goBack()");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,52 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String PG_TITLE = "多主体维护"; // 浏览器窗口标题 <title> PG_TITLE </title>
ASObjectModel doTemp = new ASObjectModel("LB_MANY_SUBJECT_LIST");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
String PROJECT_NO = CurPage.getParameter("PROJECT_NO");
String BUSINESSTYPE = Sqlca.getString("select BUSINESSTYPE from LB_PROJECT_INFO_temp WHERE PROJECT_NO='"+PROJECT_NO+"'");
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(30);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
var Id;
var contractNoArray;
var batchNoArray;
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/MoreThemeMaintenanceInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){
reloadSelf();},"新增信息");
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/MoreThemeMaintenanceInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
}
function deleteRecord(){
var ownNumber = getItemValue(0,getRow(),'subject_name');
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
alert("请选择一条信息!");
return ;
}
if(confirm('确实要删除吗?')){
as_delete(0);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -1,11 +1,13 @@
package com.tenwa.flow.rent.copyrent;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.biz.bizlet.Bizlet;
import com.amarsoft.context.ASUser;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
@ -20,6 +22,9 @@ public class CopyRentIncomeTempToFormal extends BaseBussiness{
public Object run(Transaction Sqlca) throws Exception{
this.initBussinessParam(Sqlca.getTransaction());
String sFlowUnid = (String)this.getAttribute("ObjectNo");
String userId = (String)this.getAttribute("CurUserID");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
ASUser asUser=new ASUser(userId);
String id = (String)this.getAttribute("ebank_number");
SqlObject so = new SqlObject("update lc_rent_income_temp set is_flowing='1' where flowunid='"+sFlowUnid+"'");
Sqlca.executeSQL(so);
@ -29,6 +34,9 @@ public class CopyRentIncomeTempToFormal extends BaseBussiness{
otherProperty.put("FLOWUNID", "");
if(id==null||id.equals("null"))id="";
otherProperty.put("EBANK_NUMBER", id);
otherProperty.put("INPUTUSERID", userId);
otherProperty.put("INPUTORGID", asUser.getOrgID());
otherProperty.put("INPUTTIME", simpleDateFormat.format(new Date()));
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
service.copyRentIncomeInfo(Sqlca, fromCondtion, null , otherProperty, ServiceOperatorEnum.TempToFormal,null);
String sMessage="true";