This commit is contained in:
xiezhiwen 2018-09-28 09:39:15 +08:00
commit 4ae0dd501c
29 changed files with 2974 additions and 98 deletions

View File

@ -15,6 +15,7 @@
String ProductId = CurPage.getParameter("ProductId");
String sRightType= CurPage.getParameter("RightType");
String taskno = CurPage.getParameter("TaskNo");
String flowNo = CurPage.getParameter("FlowNo");
String settleMethod="";
String rentOrRate="";
BizObject condition=null;
@ -76,8 +77,13 @@
dwTemp.setAttr("spanWidth","107");
dwTemp.genHTMLObjectWindow(flowunid);
String compClientID = request.getParameter("CompClientID");
dwTemp.replaceColumn("pay_condition", "<iframe type='iframe' id='pay_condition' name=\"pay_condition\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation_change/LoanBasicInfo.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+sRightType+"&calType="+calType+"&TaskNo="+taskno+"\"></iframe>", CurPage.getObjectWindowOutput());
String url="";
if("ContractOnhireCarChangeFlow".equals(flowNo)){
url="/Accounting/LoanSimulation_change/LoanBasicInfo.jsp";
}else{
url="/Accounting/LoanSimulation_change/LoanBasicInfoBusiness.jsp";
}
dwTemp.replaceColumn("pay_condition", "<iframe type='iframe' id='pay_condition' name=\"pay_condition\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+url+"?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+sRightType+"&calType="+calType+"&TaskNo="+taskno+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","","Button","租金变更","租金变更","saveRecord()","","","","btn_icon_rentchange"},
{"true","","Button","变更撤销","变更撤销","cancelChange()","","","","btn_icon_delete"}
@ -120,10 +126,10 @@ $(function(){
//保存数据
function saveRecord(sPostEvents)
{
if(!cheackFinalPayment()){
/* if(!cheackFinalPayment()){
AsDebug.alert("提示","只有尾款的的项目并且大于还租次数才能展期变更!");
return;
}
} */
//检查是否进行过变更
as_save("myiframe0","run()");

File diff suppressed because it is too large Load Diff

View File

@ -28,12 +28,12 @@
String sButtons[][] =null;
sButtons=new String[][] {
{"false","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"false","","Button","修改","修改","viewAndEdit()","","","","btn_icon_detail",""},
{"false","","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
{"false","","Button","更新现金流","更新现金流","updateFlow()","","","","btn_icon_detail",""},
{"false","","Button","导入租金计划","导入租金计划","importRentPlan()","","","","btn_icon_detail",""},
{"false","","Button","模板下载","模板下载","downloadTemplate()","","","","btn_icon_set",""},
{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
{"true","","Button","更新现金流","更新现金流","updateFlow()","","","","btn_icon_detail",""},
{"true","","Button","导入租金计划","导入租金计划","importRentPlan()","","","","btn_icon_detail",""},
{"true","","Button","模板下载","模板下载","downloadTemplate()","","","","btn_icon_set",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">

View File

@ -0,0 +1,62 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-08-09
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("InvoiceRentInterestPrint");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.MultiSelect=true;
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
//{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
{"true","","Button","申请开票","申请开票","ApplyInvoice()","","","","btn_icon_add",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function ApplyInvoice(){
if(confirm('确实要执行申请操作吗?')){
var sParm = getItemValueArray(0,"plan_id");
if(typeof(sParm) == "undefined" || sParm.length == 0 )
{
alert("请选择查询开票数据!");
return;
}
var planIds = "";
for(var i = 0;i < sParm.length; i++){
planIds += sParm[i] +"@";
}
//alert(planIds);
planIds = planIds.substr(0,planIds.length-1);
//alert(planIds);
spara = "planIds="+planIds+",CurUserID=<%=CurUser.getUserID()%>";
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","selectApplyConfirm",spara);
alert(returnValue);
reloadSelf();
}
}
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,84 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-09-03
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("InvoiceRentConfirmPrint");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
//{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
{"true","","Button","退回","退回","gobackInvoice()","","","","btn_icon_return",""},
{"true","","Button","确认提交","确认提交","submitInvoice()","","","","btn_icon_submit",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function submitInvoice(){
//debugger;
var sParm = getItemValueArray(0,"id");
if(typeof(sParm) == "undefined" || sParm.length == 0 )
{
alert("请选择开票数据!");
return;
}
var ids = "";
for(var i = 0;i < sParm.length; i++){
ids += sParm[i] +"@";
}
ids = ids.substr(0,ids.length-1);
spara = "ids="+ids+",CurUserID=<%=CurUser.getUserID()%>";
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","invoiceConfirmSubmit",spara);
alert(returnValue);
reloadSelf();
}
function gobackInvoice(){
var sParm = getItemValueArray(0,"id");
if(typeof(sParm) == "undefined" || sParm.length == 0 )
{
alert("请选择开票数据!");
return;
}
var ids = "";
for(var i = 0;i < sParm.length; i++){
if(ids.length == 0){
ids += sParm[i] +"@";
}else{
ids += sParm[i] +"@";
}
}
spara = "ids="+ids+",CurUserID=<%=CurUser.getUserID()%>";
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.rentPlanInvoiceManager","backInvoice",spara);
alert(returnValue);
reloadSelf();
}
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -40,7 +40,7 @@
var docList="<%=docList%>";
myleft.width=1;
if("SingleRow"=="<%=type%>"){
if("FundPaymentCarFlow"=="<%=sFlowNo%>"||"BusinessApplyFlow"=="<%=sFlowNo%>"||"MortgageFileFlow"=="<%=sFlowNo%>"||"ContractSupportFlow"=="<%=sFlowNo%>"||"ProjectSupportFlow"=="<%=sFlowNo%>"||"ProjectApprovalFlow"=="<%=sFlowNo%>"||"FundPaymentFlow"=="<%=sFlowNo%>"||"ProjectCancelFlow"=="<%=sFlowNo%>"){
if("FundPaymentCarFlow"=="<%=sFlowNo%>"||"BusinessApplyFlow"=="<%=sFlowNo%>"||"MortgageFileFlow"=="<%=sFlowNo%>"||"ContractSupportFlow"=="<%=sFlowNo%>"||"ProjectSupportFlow"=="<%=sFlowNo%>"||"ProjectApprovalFlow"=="<%=sFlowNo%>"||"FundPaymentFlow"=="<%=sFlowNo%>"||"ProjectCancelFlow"=="<%=sFlowNo%>"||"Mortgage2FileFlow"=="<%=sFlowNo%>"){
AsControl.OpenView("/Tenwa/Comm/DocList/PayDocList.jsp","docList="+docList,"right","");
}else if("ProjectCreditFlow"=="<%=sFlowNo%>"||"ContractApprovalFlow"=="<%=sFlowNo%>"||"ProjectRecreditFlow"=="<%=sFlowNo%>"){
AsControl.OpenView("/Tenwa/Comm/DocList/PayDocListTradition.jsp","docList="+docList,"right","");

View File

@ -17,9 +17,11 @@
String ContractNumber = CurPage.getParameter("FlowKey");
String framenumber = Sqlca.getString("select FRAME_NUMBER from lb_equipment_car where contract_id ='"+ContractId+"'");
String license_plate_number = Sqlca.getString("select license_plate_number from lb_equipment_car where contract_id ='"+ContractId+"'");
//System.out.print(framenumber);
String sTempletNo = "LbCarLicensePlateInfoTemp";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("plate_number", license_plate_number);
//doTemp.setColTips("", "²âÊÔ");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform

View File

@ -31,7 +31,7 @@
if(sTempletNo==null){
sTempletNo="FlowPayDocList";
}
String docClassItemno="013";
String docClassItemno="013002";
String[] itemnos=docClassItemno.split(",");
String s="";

View File

@ -0,0 +1,96 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-08-06
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("InvoiceConfirmPrintList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.MultiSelect=true;
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","查询","查询","selectInvoice()","","","","",""},
{"true","","Button","发票打印申请","发票打印申请","printInvoice()","","","","",""},
//{"true","","Button","批量下载","批量下载","lotdown()","","","","btn_icon_transfer",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function selectInvoice(){
var sid = getItemValueArray(0,"sid");
if(typeof(sid) == "undefined" || sid.length == 0 )
{
alert("请选择查询数据!");
return;
}
//alert(sid);
var sids = "";
for(var i = 0;i < sid.length; i++){
sids += sid[i] +"@";
}
sids = sids.substr(0,sids.length-1);
//alert(sids);
spara = "sid="+sids+",CurUserID=<%=CurUser.getUserID()%>";
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","selectConfirm",spara);
alert(returnValue);
reloadSelf();
}
function printInvoice(){
var sid = getItemValueArray(0,"sid");
if(typeof(sid) == "undefined" || sid.length == 0 )
{
alert("请选择查询数据!");
return;
}
//alert(sid);
var sids = "";
for(var i = 0;i < sid.length; i++){
sids += sid[i] +"@";
}
sids = sids.substr(0,sids.length-1);
//alert(sids);
spara = "sid="+sids+",CurUserID=<%=CurUser.getUserID()%>";
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","printInvoice",spara);
alert(returnValue);
reloadSelf();
}
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmDetailList.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'invoice_confirm_id=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,65 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-09-27
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("InvoicePrintResultList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","打印","打印","print()","","","","",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function print(){
var newSid = getItemValueArray(0,"new_sid");
if(typeof(newSid) == "undefined" || newSid.length == 0 )
{
alert("请选择打印数据!");
return;
}
alert(newSid);
var newSids = "";
for(var i = 0;i < newSid.length; i++){
newSids += newSid[i] +"@";
}
newSids = newSids.substr(0,newSids.length-1);
//alert(newSids);
spara = "newSids="+newSids+",CurUserID=<%=CurUser.getUserID()%>";
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.rentPlanInvoiceDirectManager","print",spara);
alert(returnValue);
reloadSelf();
}
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,65 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-09-27
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("InvoicePrintResultListBack");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","打印","打印","print()","","","","",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function print(){
var newSid = getItemValueArray(0,"new_sid");
if(typeof(newSid) == "undefined" || newSid.length == 0 )
{
alert("请选择打印数据!");
return;
}
alert(newSid);
var newSids = "";
for(var i = 0;i < newSid.length; i++){
newSids += newSid[i] +"@";
}
newSids = newSids.substr(0,newSids.length-1);
//alert(newSids);
spara = "newSids="+newSids+",CurUserID=<%=CurUser.getUserID()%>";
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","print",spara);
alert(returnValue);
reloadSelf();
}
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -18,8 +18,8 @@
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","查询","查询","selectInvoice()","","","","",""},
{"true","","Button","打印发票","打印发票","printInvoice()","","","","",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
{"true","","Button","发票打印申请","发票打印申请","printInvoice()","","","","",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">

View File

@ -106,7 +106,7 @@
if(typeof(tax_no) != undefined && tax_no != ""){
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.invoice.CustomerInvoiceController","checkTax_no","tax_no="+tax_no+",customer_id="+"<%=customer_id%>");
if(sReturnInfo != "true"){
alert("纳税人识别号已存在");
alert("统一社会信用代码已存在");
return false;
}
}
@ -114,7 +114,7 @@
if(typeof(tax_no) != undefined && tax_no != "" ){
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.invoice.CustomerInvoiceController","editCheckTax_no","tax_no="+tax_no+",id="+id+",customer_id="+"<%=customer_id%>");
if(sReturnInfo != "true"){
alert("纳税人识别号已存在");
alert("统一社会信用代码已存在");
return false;
}
}

View File

@ -16,6 +16,7 @@
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
}
doTemp.setDefaultValue("FLOWUNID", sFlowUnid);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
CurPage.getCurComp().setAttribute("RightType", null);
dwTemp.Style = "2";//

View File

@ -105,10 +105,25 @@
isAll="";
}
String sButtons[][] =null;
sButtons= new String[][]{
// 原版的
sButtons= new String[][]{
{"true",isAll,"Button","保存","保存所有修改","saveRecord()","","","",""}
};
//改动如下 如有问题可删除恢复
/* if(!"ContractApprovalFlow".equals(FlowNo)||!"ContractChangeFlow".equals(FlowNo)){
sButtons= new String[][]{
//{"true",isAll,"Button","保存","保存所有修改","saveRecord()","","","",""}
};
}else{
sButtons= new String[][]{
{"true",isAll,"Button","保存","保存所有修改","saveRecord()","","","",""}
};
} */
%>
<%/*~END~*/%>

View File

@ -13,12 +13,12 @@
doTemp.setColTips("", "");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
//{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
//{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
//sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>

View File

@ -7,7 +7,11 @@
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String inputuserid = CurUser.getUserID();
String inputusername = CurUser.getUserName();
String inputorgid = CurOrg.getOrgID();
String inputorgname = CurOrg.getOrgName();
String sTempletNo = "LbFileArchivingInfoTemp";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "");
@ -23,6 +27,20 @@
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function(){
setItemValue(0,getRow(),"INPUTUSERID","<%=inputusername%>");
setItemValue(0,getRow(),"UPDATEUSERID","<%=inputusername%>");
setItemValue(0,getRow(),"INPUTORGID","<%=inputorgname%>");
setItemValue(0,getRow(),"UPDATEORGID","<%=inputorgname%>");
var date = new Date();
var updatetime = date.toJSON().substring(0,10).replace(/-/g,"/");//+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
var inputtime = date.toJSON().substring(0,10).replace(/-/g,"/");//+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
var inputtimes = getItemValue(0,getRow(),"INPUTTIME");
if(inputtimes==null||inputtimes==""){
setItemValue(0,getRow(),"INPUTTIME",inputtime);
}
setItemValue(0,getRow(),"UPDATETIME",updatetime);
});
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}

View File

@ -4,7 +4,14 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
AsDialog.OpenSelector("SelectFundReback","","dialogWidth=" + parseInt(window.screen.width * 0.9) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
var O_name="<%=CurUser.getOrgName()%>";
if (O_name=="业务一部") {
var Select="SelectFundReback_CT1";
}else{
var Select="SelectFundReback_CT2";
}
AsDialog.OpenSelector(Select,"","dialogWidth=" + parseInt(window.screen.width * 0.9) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
var info=sReturn||"";
if(info.length>0 && info.indexOf("_CANCEL_")<0){
sReturn = sReturn.split("@");

View File

@ -0,0 +1,36 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListStart.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
AsDialog.OpenSelector("SelectFundReback","","dialogWidth=" + parseInt(window.screen.width * 0.9) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
var info=sReturn||"";
if(info.length>0 && info.indexOf("_CANCEL_")<0){
sReturn = sReturn.split("@");
var contract_id = sReturn[0];
var project_id = sReturn[1];
var project_name= sReturn[2];
var contract_number = sReturn[3];
var product_id = sReturn[4];
sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
sParams =sParams+",ProjectId="+project_id+",ContractId="+contract_id+",ProjectName="+project_name+",FlowKey="+contract_number+",ProductId="+product_id;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
if(sReturnInfos[0]=="success")
{
var objectNo=sReturnInfos[1];
FlowFunction.openStartFlowPage(objectNo);
}
else
{
var mes=sReturnInfos[1];
alert(mes);
}
reloadSelf();
}
},"请选择合同");
}
</script>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>

View File

@ -25,7 +25,7 @@
if("ReadOnly".equals(rightType)){
dwTemp.MultiSelect = false;
}
dwTemp.setPageSize(10);
dwTemp.setPageSize(50);
ASDataObject ado = dwTemp.getDataObject();
ado.setLockCount(4);
ado.setReadOnly("PAYMENT_NUMBER", true);
@ -58,6 +58,13 @@
<script type="text/javascript">
$(function(){
setColRequired();
var sumethod6 = 0.0;
for(var i=0;i<getRowCount(0);i++){
if("settlemethod6"==getItemValue(0,i,"SETTLE_METHOD")){
sumethod6 += parseFloat(getItemValue(0,i,'FACT_MONEY'));
}
}
$('.list_gridCell_standard.list_div_pagecount').text(ormatKNumber(sumethod6,2));
})
function setColRequired(){

View File

@ -64,27 +64,22 @@
}
function selectCustomer(){
var flowno="<%=CurPage.getParameter("ApplyType")%>";
var flowno="<%=CurPage.getParameter("FlowNo")%>";
var selname="";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var businessType="";
var businessType1="";
if(flowno=="RiskAlertFlow"){
businessType=" lci.businesstype='1'";
businessType="1";
businessType1="1";
}else{
businessType=" (lci.businesstype='2' OR lci.businesstype='3')";
/* if(orgId=="8009010"){
businessType="2";
}else if(orgId=="8009011"){
businessType="3";
}else{
alert("当前用户不能发起!");
return;
} */
businessType="2";
businessType1="3";
}
var userid="<%=CurUser.getUserID()%>";
AsDialog.OpenSelector("SelectCustomerForRiskAlert","userid,"+userid+",businessType,"+businessType,"",function(sReturn){
AsDialog.OpenSelector("SelectCustomerForRiskAlert","userid,"+userid+",businessType,"+businessType+",businessType1,"+businessType1,"",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_" || sReturn=="_NONE_"){
return;
}

View File

@ -3756,11 +3756,13 @@
</class>
<class name="LI_INVOICE_PRINT_RESULT" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="fpdm" label="发票代码" type="STRING" length="8"/>
<attribute name="fphm" label="发票号码" type="STRING" length="12"/>
<attribute name="returncode" label="返回代码" type="STRING" length="50"/>
<attribute name="returnmsg" label="返回信息" type="STRING" length="11"/>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="ghdwmc" label="购货单位名称" type="STRING" length="32"/>
<attribute name="new_sid" label="新sid" type="STRING" length="100"/>
<attribute name="fpdm" label="发票代码" type="STRING" length="20"/>
<attribute name="fphm" label="发票号码" type="STRING" length="8"/>
<attribute name="returncode" label="返回代码" type="STRING" length="8"/>
<attribute name="returnmsg" label="返回信息" type="STRING" length="256"/>
<attribute name="INPUTUSERID" label="INPUTUSERID" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="INPUTORGID" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="INPUTTIME" type="STRING" length="32"/>
@ -3776,5 +3778,30 @@
</managerProperties>
</manager>
</class>
<class name="VI_INVOICE_RENT_CONFIRM_PRINT" label="" keyAttributes="id">
<attributes>
<attribute name="id" label="标识" type="STRING"/>
<attribute name="contract_id" label="合同id" type="STRING"/>
<attribute name="CONTRACT_NO" label="业务合同号" type="STRING"/>
<attribute name="PAYMENT_NUMBER" label="投放编号" type="STRING"/>
<attribute name="CUSTOMER_ID" label="客户id" type="STRING"/>
<attribute name="customer_name" label="客户名称" type="STRING"/>
<attribute name="plan_list" label="计划期次" type="STRING"/>
<attribute name="plan_date" label="计划日期" type="STRING"/>
<attribute name="plan_money" label="计划金额" type="STRING"/>
<attribute name="invoice_money" label="开票金额" type="STRING"/>
<attribute name="TAX_TYPE" label="金额类型" type="STRING"/>
<attribute name="TAX_REG_CODE" label="纳税人识别号" type="STRING"/>
<attribute name="TAX_BANK" label="开户行" type="STRING"/>
<attribute name="TAX_ACC" label="开户账号" type="STRING"/>
<attribute name="invoice_status" label="状态" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="vi_invoice_rent_confirm_print" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
</jbo>

View File

@ -25,6 +25,7 @@ import jbo.app.tenwa.calc.LC_RENT_INCOME;
import jbo.app.tenwa.calc.LC_RENT_PLAN;
import jbo.app.tenwa.calc.LI_INVOICE_CONFIRM;
import jbo.app.tenwa.calc.LI_INVOICE_CONFIRM_DETAIL;
import jbo.app.tenwa.calc.LI_INVOICE_PRINT_RESULT;
import jbo.app.tenwa.calc.LI_INVOICE_RESULT;
import jbo.app.tenwa.calc.VI_INVOICE_RENT_INCOME_CONFIRM;
import jbo.app.tenwa.calc.VI_INVOICE_RENT_PLAN_CONFIRM;
@ -69,7 +70,15 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
private String ids;
private String moneyTypes;
private String sid;
private String newSids;
public String getNewSids() {
return newSids;
}
public void setNewSids(String newSids) {
this.newSids = newSids;
}
public String getPlanIds() {
return planIds;
}
@ -317,8 +326,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
confirmDetailBizObject.setAttributeValue("slbs", "");
confirmDetailBizObject.setAttributeValue("zzstsgl", "");
confirmDetailBizObject = this
.initTabeUserInfo(confirmDetailBizObject);
confirmDetailBizObject = this.initTabeUserInfo(confirmDetailBizObject);
confirmDetailManager.saveObject(confirmDetailBizObject);
confirmDetailList.add(confirmDetailBizObject);
@ -388,7 +396,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
PasswordGenerateUtil.getRandom(64,
PasswordGenerateUtil.TYPE.LETTER_CAPITAL));
confirmBizObject.setAttributeValue("yylxdm", "1");
confirmBizObject.setAttributeValue("fplxdm", "007");
confirmBizObject.setAttributeValue("fplxdm", "004");
confirmBizObject.setAttributeValue("kplx", "0");
confirmBizObject.setAttributeValue("tspz", "00");
confirmBizObject.setAttributeValue("xhdwdzdh", xhdwdzdh);
@ -425,8 +433,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
InvoiceRequest invoiceRequest = new InvoiceRequest();
ResultPojo result = invoiceRequest.send(confirmBizObject,
confirmDetailList);
ResultPojo result = invoiceRequest.send(confirmBizObject,confirmDetailList);
if (result.getCode() == 0) {
InvoiceRequestBase responseBase = (InvoiceRequestBase) result.getData();
String returncode = responseBase.getBody().getReturncode();
@ -438,18 +445,9 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
System.out.println("[OK][SUCCESS]");
for (BizObject confirmDetailBizObject : confirmDetailList) {
String invoiceId = confirmDetailBizObject.getAttribute("invoice_id").toString();
// String invoice_type =
// confirmDetailBizObject.getAttribute("invoice_type").toString();
/**
*
invoiceRentManager.createQuery(
* "update o set INVOICE_STATUS=:invoicestatus where ID=:id "
* ).setParameter("id",invoiceId).setParameter(
* "invoicestatus","3").executeUpdate();
*/
invoiceRentManager.createQuery("update o set INVOICE_STATUS=:invoicestatus where ID=:id ")
.setParameter("id",invoiceId).setParameter("invoicestatus","3").executeUpdate();
}
// return "开票申请成功";
} else {
return returnmsg;
}
@ -463,7 +461,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
}
// ===================================================
}
return "开票成功";
return "开票确认成功";
}
/**
* 退回申请开票
@ -581,8 +579,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
if (confirmResult == null) {
BizObject confirmResultNew = confirmResultManager
.newObject();
BizObject confirmResultNew = confirmResultManager.newObject();
confirmResultNew.setAttributeValue("ID", id);
confirmResultNew.setAttributeValue("sid", sid);
confirmResultNew.setAttributeValue("fplxdm", fplxdm);
@ -656,7 +653,6 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
invoiceRentManager.createQuery("update o set INVOICE_STATUS=:invoicestatus where ID=:id ").setParameter("id", invoiceId)
.setParameter("invoicestatus", "5").executeUpdate();
// return "开票申请成功";
} else {
return returnmsg;
}
@ -750,7 +746,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
}
}
/**
* 打印发票
* 直租租金打印发票申请
* @return
*/
public String printInvoice(JBOTransaction tx){
@ -768,13 +764,17 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
String sid = "";
String fpdm = "";
String fphm = "";
String newSid ="";
String invoice_confirm_id = "";
String ghdwmc = "";
String invoice_type = "direct_rent";
for (int i = 0; i < sids.length; i++) {
sid = sids[i];
BizObject invoiceResult;
try {
invoiceResult = JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LI_INVOICE_RESULT", "sid=:sid").setParameter("sid", sid).getSingleResult(false);
if(invoiceResult==null){
return "请选择已查询的发票!";
}else{
@ -785,7 +785,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
e.printStackTrace();
}
newSid = PasswordGenerateUtil.getRandom(64,PasswordGenerateUtil.TYPE.LETTER_CAPITAL);
InvoiceRequestBase invoiceRequestBase = new InvoiceRequestBase();
InvoiceRequestHead invoiceRequestHead = new InvoiceRequestHead();
@ -793,9 +793,9 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
InvoiceRequestInput invoiceRequestInput = new InvoiceRequestInput();
invoiceRequestHead.setAppid(appId);
invoiceRequestHead.setSid(PasswordGenerateUtil.getRandom(64,PasswordGenerateUtil.TYPE.LETTER_CAPITAL));
invoiceRequestHead.setSid(newSid);
invoiceRequestInput.setFplxdm("007");
invoiceRequestInput.setFplxdm("004");
invoiceRequestInput.setFpdm(fpdm);
invoiceRequestInput.setFphm(fphm);
invoiceRequestInput.setDylx("9");
@ -820,6 +820,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
confirmManager = JBOFactory.getBizObjectManager(LI_INVOICE_CONFIRM.CLASS_NAME);
BizObject confirm = confirmManager.createQuery("sid=:sid").setParameter("sid", sid).getSingleResult(false);
invoice_confirm_id = confirm.getAttribute("id").toString();
ghdwmc = confirm.getAttribute("ghdwmc").toString();//购货单位名称
} catch (JBOException e) {
e.printStackTrace();
}
@ -833,10 +834,28 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
System.out.println("[OK][returncode]=>>>" + returncode);
System.out.println("[OK][returnmsg]=>>>" + returnmsg);
if ("0".equals(returncode)) {
// System.out.println("[OK][SUCCESS]");
// 修改租金发票信息表的状态
BizObjectManager confirmDetailManager;
BizObjectManager invoicePrintResultManager;
try {
//发票打印请求成功,将数据插入到li_invoice_print_result
invoicePrintResultManager = JBOFactory.getBizObjectManager(LI_INVOICE_PRINT_RESULT.CLASS_NAME, tx);
BizObject invoicePrintResult = invoicePrintResultManager.newObject();
invoicePrintResult.setAttributeValue("ID", id);
invoicePrintResult.setAttributeValue("fpdm", fpdm);
invoicePrintResult.setAttributeValue("fphm", fphm);
invoicePrintResult.setAttributeValue("ghdwmc", ghdwmc);
invoicePrintResult.setAttributeValue("new_sid", newSid);
invoicePrintResult.setAttributeValue("invoice_type", invoice_type);
try {
invoicePrintResult = this.initTabeUserInfo(invoicePrintResult);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
invoicePrintResultManager.saveObject(invoicePrintResult);
//获取li_rent_invoice_info的id并修改其状态
confirmDetailManager = JBOFactory.getBizObjectManager(LI_INVOICE_CONFIRM_DETAIL.CLASS_NAME);
BizObject confirmDetail = confirmDetailManager.createQuery("invoice_confirm_id=:invoice_confirm_id")
@ -846,11 +865,9 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
BizObjectManager invoiceRentManager = JBOFactory.getBizObjectManager(LI_RENT_INVOICE_INFO.CLASS_NAME, tx);
invoiceRentManager.createQuery("update o set INVOICE_STATUS=:invoicestatus where ID=:id ")
.setParameter("id", invoiceId)
.setParameter("invoicestatus", "5").executeUpdate();
.setParameter("invoicestatus", "7").executeUpdate();
// return "开票申请成功";
} catch (JBOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} else {
@ -863,5 +880,72 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
}
return "打印请求成功!";
}
public String print(JBOTransaction tx){
Configure config = Configure.getInstance();
String appId = "";
try {
//获取配置文件中appid
appId = config.getConfigure("INVOICE_APPID");
} catch (Exception e) {
e.printStackTrace();
return "a3web->[INVOICE_LOCAL_PATH]不存在";
}
String[] newSids = this.newSids.split("@");
String newSid ="";
//String invoice_confirm_id = "";
//循环遍历选中的sid
for (int i = 0; i < newSids.length; i++) {
newSid = newSids[i];
//拼xml
InvoiceRequestBase invoiceRequestBase = new InvoiceRequestBase();
InvoiceRequestHead invoiceRequestHead = new InvoiceRequestHead();
invoiceRequestHead.setAppid(appId);
invoiceRequestHead.setSid(newSid);
invoiceRequestBase.setHead(invoiceRequestHead);
invoiceRequestBase.setComment("查询结果");
invoiceRequestBase.setId("CXJG");
invoiceRequestBase.setVersion("1.0");
String xml = JaxbUtil.convertToXml(invoiceRequestBase);
System.out.println(xml);
ResultPojo result = doPostPrint(xml);
//获取返回的xml结果
if (result.getCode() == 0) {
InvoiceRequestBase responseBase = (InvoiceRequestBase) result.getData();
String returncode = responseBase.getBody().getReturncode();
String returnmsg = responseBase.getBody().getReturnmsg();
System.out.println("[OK][returncode]=>>>" + returncode);
System.out.println("[OK][returnmsg]=>>>" + returnmsg);
if ("0".equals(returncode)) {
BizObjectManager invoicePrintResultManager;
try {
//发票打印请求成功,更新数据插入到li_invoice_print_result
invoicePrintResultManager = JBOFactory.getBizObjectManager(LI_INVOICE_PRINT_RESULT.CLASS_NAME, tx);
invoicePrintResultManager.createQuery("update O set returncode=:returncode,returnmsg=:returnmsg where new_sid=:new_sid and invoice_type='direct_rent'")
.setParameter("returncode", returncode).setParameter("returnmsg", returnmsg)
.setParameter("new_sid", newSid).executeUpdate();
} catch (JBOException e) {
e.printStackTrace();
}
} else {
return returnmsg;
}
} else {
System.out.println("[FAIL]=>>>" + result.getMsg());
return result.getMsg();
}
}
return "打印成功!";
}
}

View File

@ -0,0 +1,19 @@
package com.tenwa.customer.cache;
import jbo.awe.USER_INFO;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO_TEMP;
import jbo.sys.ORG_INFO;
import com.amarsoft.dict.als.cache.NameCache;
import com.amarsoft.dict.als.manage.NameManager;
public class Get_PROJECT_MANAGEName extends NameManager {
//ÏîÄ¿³öµ¥²¿ÃÅ
public static String getPROJECT_DEPT(String sPROJECT_DEPT)throws Exception{
return NameCache.getName(ORG_INFO.CLASS_NAME, "orgname", "orgid", sPROJECT_DEPT);
}
//ÏîÄ¿¾­Àí
public static String getPROJECT_MANAGE(String sPROJECT_MANAGE)throws Exception{
return NameCache.getName(USER_INFO.CLASS_NAME, "username", "userid", sPROJECT_MANAGE);
}
}

View File

@ -20,6 +20,8 @@ public class CustomerInvoiceHandler extends CommonHandler{
if(CUSTOMER_INFO != null)
{
bo.setAttributeValue("tax_object", CUSTOMER_INFO.getAttribute("customername").getString());
bo.setAttributeValue("tax_no", CUSTOMER_INFO.getAttribute("customerid").getString());
}
//³õʼ»¯customer_id
bo.setAttributeValue("customer_id", customer_id);

View File

@ -6,45 +6,44 @@ import java.util.Map;
import jbo.app.tenwa.calc.LC_FUND_INCOME;
import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP;
import jbo.app.tenwa.calc.LC_RENT_INCOME;
import jbo.app.tenwa.calc.LC_RENT_INCOME_TEMP;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.util.StringFunction;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.biz.bizlet.Bizlet;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
/**
* 拷贝资金付款数据到正式表(实际付款通过)
* 保证金抵扣拷贝收付数据临时表到正式表
* @author zhulh
*
*/
public class CopyFundIncomeTempToFormal extends BaseBussiness{
public class CopyFundIncomeTempToFormal extends Bizlet{
public Object run(Transaction Sqlca) throws Exception{
this.initBussinessParam(Sqlca.getTransaction());
String sFlowUnid = (String)this.getAttribute("ObjectNo");
BizObjectManager bomLFIT = JBOFactory.getBizObjectManager(LC_FUND_INCOME_TEMP.CLASS_NAME);
Sqlca.join(bomLFIT);
bomLFIT.createQuery("update O set is_flowing='1' where flowunid=:FLOWUNID").setParameter("FLOWUNID", sFlowUnid).executeUpdate();
List<BizObject> bos = bomLFIT.createQuery("flowunid=:flowunid").setParameter("flowunid", sFlowUnid).getResultList(false);
if(bos.size() > 0){
for(BizObject bo:bos){
Map<String,String> fromCondition = new HashMap<String,String>();
fromCondition.put("INCOME_ID", bo.getAttribute("INCOME_ID").getString());
Map<String,String> toCondition = new HashMap<String,String>();
toCondition.put("ID", bo.getAttribute("INCOME_ID").getString());
Map<String,String> otherProperty = new HashMap<String,String>();
otherProperty.put("FLOWUNID", "");
String payType = bo.getAttribute("PAY_TYPE").getString();
if("pay_type_out".equals(payType)){
otherProperty.put("PAY_STATUS", "have_paid");
}else{
otherProperty.put("PAY_STATUS", "");
otherProperty.put("ROLL_BACK", "0");
}
DataOperatorUtil.copySingleJBO(LC_FUND_INCOME_TEMP.CLASS_NAME, fromCondition,LC_FUND_INCOME.CLASS_NAME, toCondition, otherProperty,Sqlca.getTransaction());
}
String flowunid = (String)this.getAttribute("ObjectNo");
SqlObject so = new SqlObject("update lc_rent_income_temp set is_flowing='1' where flowunid='"+flowunid+"'");
Sqlca.executeSQL(so);
so = new SqlObject("update lc_fund_income_temp set is_flowing='1' where flowunid='"+flowunid+"'");
Sqlca.executeSQL(so);
List<BizObject> bos = JBOFactory.getBizObjectManager(LC_FUND_INCOME_TEMP.CLASS_NAME).createQuery("flowunid=:flowunid").setParameter("flowunid", flowunid).getResultList(false);
for(BizObject bo:bos){
Map<String,String> fromCondition = new HashMap<String,String>();
fromCondition.put("ID", bo.getAttribute("ID").getString());
Map<String,String> otherProperty = new HashMap<String,String>();
otherProperty.put("FLOWUNID", "");
otherProperty.put("PAY_STATUS", "have_paid");
String deductionID = DataOperatorUtil.copySingleJBO(LC_FUND_INCOME_TEMP.CLASS_NAME, fromCondition,LC_FUND_INCOME.CLASS_NAME, null, otherProperty,Sqlca.getTransaction());
fromCondition.clear();
otherProperty.clear();
fromCondition.put("DEDUCTION_ID", bo.getAttribute("ID").getString());
otherProperty.put("DEDUCTION_ID", deductionID);
DataOperatorUtil.copySingleJBO(LC_RENT_INCOME_TEMP.CLASS_NAME, fromCondition,LC_RENT_INCOME.CLASS_NAME, null, otherProperty,Sqlca.getTransaction());
}
String sMessage="true";
return sMessage;

View File

@ -32,7 +32,9 @@ public class FileViewServlet extends javax.servlet.http.HttpServlet{
String sViewType = "view";
sFileName = DataConvert.toString(request.getParameter("filename"));
sFileName = new String(sFileName.getBytes("iso-8859-1"));
System.out.println("解码前:"+sFileName);
sFileName = new String(sFileName.getBytes("iso-8859-1"),"GBK");
System.out.println("解码后:"+sFileName);
sContentType = DataConvert.toString(request
.getParameter("contenttype"));
sViewType = DataConvert.toString(request.getParameter("viewtype"));