1.网银收款重新提交

This commit is contained in:
zhangbb 2020-08-24 17:18:02 +08:00
parent 5bc0cd8397
commit ad2af37453
3 changed files with 256 additions and 212 deletions

View File

@ -1,51 +1,51 @@
<%@ 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(){
var apply = "<%=CurPage.getParameter("ApplyType")%>";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var twoParam = "";
var businessType="";
if(orgId=="8009010"){
businessType="传统";
twoParam = "空白";
}else if(orgId=="8009011"){
if(apply=="FundCollectionApply"){
businessType="汽车";
}else if(apply=="TFundCollectionApply"){
businessType = "汽车类传统";
}
twoParam = "空白";
}else{
alert("当前用户不能发起申请!");
return;
}
AsDialog.OpenSelector("SelectEbankData","businessType,"+businessType+",twoParam,"+twoParam,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
var id = sReturn[0];
var ebank_sn = sReturn[1];
var result = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckEbankID.jsp","EBANKID="+id);
if("FALSE" == result){
alert("此笔网银已发起收款流程!");
return;
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.EbankFlowStartAction",
"initFLow","ebank_number="+id+",FlowKey="+ebank_sn+",ProjectName=<%=StringFunction.getToday()+CurUser.getUserName()+"发起网银收款"%>,applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>");
var sReturnInfos=sReturnInfo.split("@");
if(sReturnInfos[0]=="success"){
var objectNo=sReturnInfos[1];
FlowFunction.openStartFlowPage(objectNo);
}else{
var mes=sReturnInfos[1];
}
reloadSelf();
},"请选择收款网银");
}
</script>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>
<%@ 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(){
var apply = "<%=CurPage.getParameter("ApplyType")%>";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var twoParam = "";
var businessType="";
if(orgId=="8009010"){
businessType="传统";
twoParam = "空白";
}else if(orgId=="8009011"){
if(apply=="FundCollectionApply"||apply=="CapitalCollectionApply"){
businessType="汽车";
}else if(apply=="TFundCollectionApply"){
businessType = "汽车类传统";
}
twoParam = "空白";
}else{
alert("当前用户不能发起申请!");
return;
}
AsDialog.OpenSelector("SelectEbankData","businessType,"+businessType+",twoParam,"+twoParam,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
var id = sReturn[0];
var ebank_sn = sReturn[1];
var result = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckEbankID.jsp","EBANKID="+id);
if("FALSE" == result){
alert("此笔网银已发起收款流程!");
return;
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.EbankFlowStartAction",
"initFLow","ebank_number="+id+",FlowKey="+ebank_sn+",ProjectName=<%=StringFunction.getToday()+CurUser.getUserName()+"发起网银收款"%>,applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>");
var sReturnInfos=sReturnInfo.split("@");
if(sReturnInfos[0]=="success"){
var objectNo=sReturnInfos[1];
FlowFunction.openStartFlowPage(objectNo);
}else{
var mes=sReturnInfos[1];
}
reloadSelf();
},"请选择收款网银");
}
</script>
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>

View File

@ -1,162 +1,162 @@
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@page import="jbo.sys.CODE_LIBRARY"%>
<%@page import="jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT"%>
<%@ page import="com.tenwa.flow.lease.check.contract.IsNullCheck" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String flowunid = CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
String applytype = CurPage.getParameter("ApplyType");
BizObject boLET = JBOFactory.createBizObjectQuery(LC_EBANK_TEMP.CLASS_NAME, "flowunid=:flowunid")
.setParameter("flowunid", flowunid).getSingleResult(false);
String ownNumber = boLET.getAttribute("ownacc_number").getString();
BizObject boOA = JBOFactory.createBizObjectQuery(OWN_ACCOUNT.CLASS_NAME, "acc_number=:ownNumber")
.setParameter("ownNumber", ownNumber).getSingleResult(false);
String ownId = boOA.getAttribute("own_id").getString();
BizObject boCL = JBOFactory.createBizObjectQuery(CODE_LIBRARY.CLASS_NAME, "CODENO='ManySubject' and bankno=:ownId")
.setParameter("ownId", ownId).getSingleResult(false);
String subjectId = boCL.getAttribute("itemno").getString();
//判断业务类型
String businessType="";
String orgId=CurUser.getOrgID().substring(0,7);
if("FundCollectionApply".equals(applytype)){
businessType="1";
}else{
if("8009010".equals(orgId)){
businessType="2";
}else if("8009011".equals(orgId)){
businessType="3";
}else{
businessType="2,3";
}
}
ASObjectModel doTemp = new ASObjectModel("VILCFundPlanListtradition");
//检验客户名称是否为经销商
IsNullCheck inc = new IsNullCheck();
inc.setFlowUnid(flowunid);
String resultTemp = inc.CustomerIdIsNullCheckTemp();
if(resultTemp.startsWith("DSTB")){
doTemp.appendJboWhere(" O.distributor_id='"+resultTemp+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
if(!"ReadOnly".equals(rightType)){
dwTemp.MultiSelect = true;
}
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(businessType+","+subjectId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","生成本次资金收款","生成本次资金收款","createFundIncome()","","","","btn_icon_add",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
var portionCollectionID = "";
var portionMoney = 0;
var mayopeMoney = 0;
$(function(){
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
TableFactory.afterSearch = function(){
setCheckBoxEvent();//搜索页面和排序后执行
}
setCheckBoxEvent();
})
function setCheckBoxEvent(){
/* if($("#DW_CheckAll_myiframe0")){
$("#DW_CheckAll_myiframe0").hide();
} */
var checkInput = $("input[name='check_S_myiframe0']");
for(var i=0;i<checkInput.length;i++){
$(checkInput[i]).attr("onclick","checkInputData("+i+")");
};
}
function checkInputData(i){
TableBuilder.iCurrentRow['myiframe0'] = i;
TableBuilder.displaySelectedRows('myiframe0');
var thisRowMoney = removeFomatedNumber(getItemValue(0,i,"overmoney"));//最后一次选中的收款金额
var overmoneys = getItemValueArray(0,"overmoney");
var otherPageMoneys = TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);//获取所有除当前页面外的其他页面
var prepareIncomeMoney = 0;
for(var j=0;j<overmoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ removeFomatedNumber(overmoneys[j]));
}
for(var j=0;j<otherPageMoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ otherPageMoneys[j]);
}
if(prepareIncomeMoney-thisRowMoney>=mayopeMoney){
alert("操作失败网银可核销金额已为0。");
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
}else if(mayopeMoney-(prepareIncomeMoney-thisRowMoney)>0 && mayopeMoney-(prepareIncomeMoney-thisRowMoney)<thisRowMoney){
portionCollectionID = getItemValue(0,i,"ID");
portionMoney = mayopeMoney-(prepareIncomeMoney-thisRowMoney);
alert("网银余额只能核销部分此笔资金!");
}
}
function createFundIncome(){
var id = getItemValueArray(0,"id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("id",s_c_p[0]);
if("," == id){
alert("请先选择需要收款的资金计划");
return;
}
id = id.replace(/,/ig,"@");
var overMoneys = getItemValueArray(0,"overmoney")+","+TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);
overMoneys = overMoneys.replace(/,/ig,"@");
var sReturn = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckPlanOverMoney.jsp","planIDs="+id+"&overMoneys="+overMoneys+"&flowunid=<%=flowunid%>&mayopeMoney="+mayopeMoney);
var message = "";
var flag = false;
if(sReturn == "ERROR@SUCCESS"){
message = "您选中项中存在资金余额发生变化的计划,是否由系统按最新的余额自动生成?";
}else if(sReturn == "SUCCESS@ERROR"){
message = "您此笔网银的可核销金额已产生变化,是否由系统按最新的可核销金额自动生成?";
}else if(sReturn == "ERROR@ERROR"){
message = "您此笔网银的可核销金额已产生变化,选中项中存在资金余额发生变化的计划,是否由系统按最新的可核销金额和余额自动生成?";
}else{
flag = true;
}
if(!flag){
if(confirm(message)){
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,isChanged=Y");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}else{
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}
}else{
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,overMoneys="+overMoneys+",balance="+mayopeMoney+",portionCollectionID="+portionCollectionID+",portionMoney="+portionMoney+",isChanged=N");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}
}
</script>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_PROCESS"%>
<%@page import="jbo.app.tenwa.calc.LC_EBANK_TEMP"%>
<%@page import="jbo.sys.CODE_LIBRARY"%>
<%@page import="jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT"%>
<%@ page import="com.tenwa.flow.lease.check.contract.IsNullCheck" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String flowunid = CurPage.getParameter("FlowUnid");
String rightType = CurPage.getParameter("RightType");
String applytype = CurPage.getParameter("ApplyType");
BizObject boLET = JBOFactory.createBizObjectQuery(LC_EBANK_TEMP.CLASS_NAME, "flowunid=:flowunid")
.setParameter("flowunid", flowunid).getSingleResult(false);
String ownNumber = boLET.getAttribute("ownacc_number").getString();
BizObject boOA = JBOFactory.createBizObjectQuery(OWN_ACCOUNT.CLASS_NAME, "acc_number=:ownNumber")
.setParameter("ownNumber", ownNumber).getSingleResult(false);
String ownId = boOA.getAttribute("own_id").getString();
BizObject boCL = JBOFactory.createBizObjectQuery(CODE_LIBRARY.CLASS_NAME, "CODENO='ManySubject' and bankno=:ownId")
.setParameter("ownId", ownId).getSingleResult(false);
String subjectId = boCL.getAttribute("itemno").getString();
//判断业务类型
String businessType="";
String orgId=CurUser.getOrgID().substring(0,7);
if("FundCollectionApply".equals(applytype)||"CapitalCollectionApply".equals(applytype)){
businessType="1";
}else{
if("8009010".equals(orgId)){
businessType="2";
}else if("8009011".equals(orgId)){
businessType="3";
}else{
businessType="2,3";
}
}
ASObjectModel doTemp = new ASObjectModel("VILCFundPlanListtradition");
//检验客户名称是否为经销商
IsNullCheck inc = new IsNullCheck();
inc.setFlowUnid(flowunid);
String resultTemp = inc.CustomerIdIsNullCheckTemp();
if(resultTemp.startsWith("DSTB")){
doTemp.appendJboWhere(" O.distributor_id='"+resultTemp+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
if(!"ReadOnly".equals(rightType)){
dwTemp.MultiSelect = true;
}
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(businessType+","+subjectId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","生成本次资金收款","生成本次资金收款","createFundIncome()","","","","btn_icon_add",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
var portionCollectionID = "";
var portionMoney = 0;
var mayopeMoney = 0;
$(function(){
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
TableFactory.afterSearch = function(){
setCheckBoxEvent();//搜索页面和排序后执行
}
setCheckBoxEvent();
})
function setCheckBoxEvent(){
/* if($("#DW_CheckAll_myiframe0")){
$("#DW_CheckAll_myiframe0").hide();
} */
var checkInput = $("input[name='check_S_myiframe0']");
for(var i=0;i<checkInput.length;i++){
$(checkInput[i]).attr("onclick","checkInputData("+i+")");
};
}
function checkInputData(i){
TableBuilder.iCurrentRow['myiframe0'] = i;
TableBuilder.displaySelectedRows('myiframe0');
var thisRowMoney = removeFomatedNumber(getItemValue(0,i,"overmoney"));//最后一次选中的收款金额
var overmoneys = getItemValueArray(0,"overmoney");
var otherPageMoneys = TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);//获取所有除当前页面外的其他页面
var prepareIncomeMoney = 0;
for(var j=0;j<overmoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ removeFomatedNumber(overmoneys[j]));
}
for(var j=0;j<otherPageMoneys.length;j++){
prepareIncomeMoney = eval(prepareIncomeMoney +"+"+ otherPageMoneys[j]);
}
if(prepareIncomeMoney-thisRowMoney>=mayopeMoney){
alert("操作失败网银可核销金额已为0。");
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
}else if(mayopeMoney-(prepareIncomeMoney-thisRowMoney)>0 && mayopeMoney-(prepareIncomeMoney-thisRowMoney)<thisRowMoney){
portionCollectionID = getItemValue(0,i,"ID");
portionMoney = mayopeMoney-(prepareIncomeMoney-thisRowMoney);
alert("网银余额只能核销部分此笔资金!");
}
}
function createFundIncome(){
var id = getItemValueArray(0,"id")+","+TablePage.getCheckedItemValueArrayWithOtherPage("id",s_c_p[0]);
if("," == id){
alert("请先选择需要收款的资金计划");
return;
}
id = id.replace(/,/ig,"@");
var overMoneys = getItemValueArray(0,"overmoney")+","+TablePage.getCheckedItemValueArrayWithOtherPage("overmoney",s_c_p[0]);
overMoneys = overMoneys.replace(/,/ig,"@");
var sReturn = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/CheckPlanOverMoney.jsp","planIDs="+id+"&overMoneys="+overMoneys+"&flowunid=<%=flowunid%>&mayopeMoney="+mayopeMoney);
var message = "";
var flag = false;
if(sReturn == "ERROR@SUCCESS"){
message = "您选中项中存在资金余额发生变化的计划,是否由系统按最新的余额自动生成?";
}else if(sReturn == "SUCCESS@ERROR"){
message = "您此笔网银的可核销金额已产生变化,是否由系统按最新的可核销金额自动生成?";
}else if(sReturn == "ERROR@ERROR"){
message = "您此笔网银的可核销金额已产生变化,选中项中存在资金余额发生变化的计划,是否由系统按最新的可核销金额和余额自动生成?";
}else{
flag = true;
}
if(!flag){
if(confirm(message)){
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,isChanged=Y");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}else{
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}
}else{
var sResult = RunJavaMethodTrans("com.tenwa.flow.fund.fundcollection.FundIncomeMethod","setFundDataToFundIncome",
"planIDs="+id+",flowunid=<%=flowunid%>,overMoneys="+overMoneys+",balance="+mayopeMoney+",portionCollectionID="+portionCollectionID+",portionMoney="+portionMoney+",isChanged=N");
if("SUCCESS" == sResult){
alert("操作成功,请到本次收款明细中查看!");
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
reloadSelf();
setCheckBoxEvent();
TablePage.pageCheckedData = {};
TablePage.pageUncheckedData = {};
}else if("ERROR" == sResult){
alert("操作失败");
}
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -1,3 +1,4 @@
-- 创建手动卡扣表
create table lc_collect_manual_info (
id varchar (32),
@ -171,6 +172,11 @@ Insert Into AWE_Role_Menu (roleid,menuid) Values ('299','3000100181');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('399','3000100181');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('401','3000100181');
-- 关联公司选择产品
Insert Into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('selectProductCompany','Sql','选择公司关联产品','business_type','typeno','Grid','String product_id','','select typeno,typename from business_type where attribute2=''car_product'' and (typeno not in (select product_id from lb_productToCompany_info) or typeno=''#product_id'')','产品编号,产品名称','typename@style={width:200px;}@typeno@style={width:200px;}','typeno@typename','typeno,typename','1','Single','','','','','','SYS_Designer','','2020/08/07 17:09:40','SYS_Designer','2020/08/07 17:42:51','');
-- 资金计划表新增字段
ALTER TABLE LC_FUND_INCOME_TEMP ADD isCompany VARCHAR(2) COMMENT '是否关联公司';
ALTER TABLE LC_FUND_INCOME ADD isCompany VARCHAR(2) COMMENT '是否关联公司';
@ -278,4 +284,42 @@ DELIMITER ;
delete from SELECT_CATALOG where selname='SelectCustomerByType';
insert into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('SelectCustomerByType','Sql','查询承租人名称by客户类型','customer_info','customerid','Grid','','customerid','select customerid,customer_num,customername,itemname from (select ci.customerid,ci.customer_num,ci.customername,cl.itemname from CUSTOMER_INFO ci left join CUSTOMER_TYPE ct on ci.customerid=ct.customerid left join code_library cl on cl.itemno=ci.customertype and cl.codeno=''CustomerType'' where ct.custtype = ''cust_type.cust'' and ct.custstatus=''status02'' union all select di.distributor_no as customerid,di.distributor_coding as customer_num,di.distributor_name as customername,''经销商'' as itemname FROM DISTRIBUTOR_INFO di) O where 1=1','客户ID,客户编号,客户名称,客户类型','','customerid@customername','customername','1','Single','','','','','O.customername@ @ @Contains','SYS_Designer','','2019/12/02 15:03:00','SYS_Designer','2020/08/18 10:37:53','');
-- 资金网银收款菜单
Insert Into AWE_MENU_INFO (menuid,menuname,displayname,sortno,url,urlparam,target,style,isinuse,remark,inputorgid,inputuserid,inputtime,updateorgid,updateuserid,updatetime,accesstype,icon,appicon) Values ('3000100065','资金网银核销','资金网银核销','3000100065','/Common/WorkFlow/ApplyMain.jsp','ComponentName=资金网银收款申请&ComponentType=MainWindow&ApplyType=CapitalCollectionApply&isCache=false',null,null,'1','','','','','','','','10','','');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('099','3000100065');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('299','3000100065');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('399','3000100065');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('800R00000057','3000100065');
-- 资金网银收款流程拷贝
insert into `flow_catalog` (`flowno`, `flowname`, `flowtype`, `flowdescribe`, `initphase`, `aaenabled`, `aapolicy`, `viewfile`, `viewfilelength`, `grouptitles`, `metaflowno`, `isinuse`, `version`, `baseflowno`, `baseflowname`, `graphjsondata`, `flowstate`) values('CapitalCollectionFlow','资金网银收款','CapitalCollectionApply','用于资金回款的网银收款','0010',NULL,NULL,NULL,NULL,NULL,NULL,'1','1','CapitalCollectionFlow',NULL,'{states:{rect1:{type:\'start\',text:{text:\'\'}, attr:{ x:489, y:17, width:50, height:50}, props:{text:{value:\'\'},key:{value:\'3585427ffa97cb4d9688df39aec2673b\'},position:{value:\'0000\'}}},rect2:{type:\'task\',text:{text:\'\'}, attr:{ x:466, y:236, width:100, height:50}, props:{text:{value:\'\'},key:{value:\'c08c4026a1f45f29d60014cf3a69f16d\'},position:{value:\'0020\'}}},rect3:{type:\'task\',text:{text:\'C端财务复核\'}, attr:{ x:468, y:340, width:100, height:50}, props:{text:{value:\'C端财务复核\'},key:{value:\'b07057c52cc13fd426bcf8675bcc2753\'},position:{value:\'0030\'}}},rect4:{type:\'end\',text:{text:\'\'}, attr:{ x:416, y:457, width:50, height:50}, props:{text:{value:\'\'},key:{value:\'cdd527f25ccb46f76c613219a036c5e2\'},position:{value:\'1000\'}}},rect5:{type:\'reject\',text:{text:\'\'}, attr:{ x:571, y:454, width:50, height:50}, props:{text:{value:\'\'},key:{value:\'8d64cd7ad1f75d2518289507fb55eef7\'},position:{value:\'8000\'}}},rect6:{type:\'task\',text:{text:\'\'}, attr:{ x:467, y:112, width:100, height:50}, props:{text:{value:\'\'},key:{value:\'dc01401694dca4518b6204125cbeadf0\'},position:{value:\'0010\'}}}},paths:{path7:{from:\'rect2\',to:\'rect3\', dots:[],text:{text:\'TO \'},textPos:{x:0,y:-10}, props:{text:{value:\'\'}}},path8:{from:\'rect3\',to:\'rect4\', dots:[],text:{text:\'TO \'},textPos:{x:0,y:-10}, props:{text:{value:\'\'}}},path9:{from:\'rect3\',to:\'rect5\', dots:[],text:{text:\'TO \'},textPos:{x:0,y:-10}, props:{text:{value:\'\'}}},path10:{from:\'rect1\',to:\'rect6\', dots:[],text:{text:\'TO \'},textPos:{x:0,y:-10}, props:{text:{value:\'\'}}},path11:{from:\'rect6\',to:\'rect2\', dots:[],text:{text:\'TO \'},textPos:{x:0,y:-10}, props:{text:{value:\'\'}}}},props:{props:{}}}','publish');
insert into `flow_model` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('CapitalCollectionFlow','0010','1010','回款初审',NULL,NULL,'!基础操作.网银信息正式到临时表(#ObjectNo,#FlowKey)+!基础操作.网银信息正式到过程表(#ObjectNo,#UserID,#OrgID,#FlowKey,#FlowName)','{#UserID}',NULL,'commroute',NULL,'[{usertype:\"指定角色\",userinfo:\"800R00000057,回款初审\"}]','#PhaseOpinion1','closePage,doSubmit,signOpinion,circulate',NULL,'all_except',NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'467','112','100','50','1',NULL,'TASK',NULL,'N',NULL,'CapitalCollection010',NULL,NULL,NULL,NULL,NULL,'TreeView.addDeleteCallBackSql(\"jbo.app.tenwa.calc.LC_EBANK_PROCESS\",\"delete from O where flowunid=:FlowUnid\");\r\nTreeView.addDeleteCallBackSql(\"jbo.com.tenwa.lease.comm.LC_OCCUPY_RENT_LIST\",\"delete from O where flowunid=:FlowUnid\");',NULL,NULL,'复审审核(0020)',NULL,NULL,NULL,NULL,NULL);
insert into `flow_model` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('CapitalCollectionFlow','0020','1020','复审审核',NULL,NULL,NULL,'toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'commroute',NULL,'[{usertype:\"指定角色\",userinfo:\"800R00000058,回款复审\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion,circulate',NULL,'all_except',NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'466','236','100','50','1',NULL,'TASK',NULL,'N',NULL,'CapitalCollection020',NULL,NULL,'backnextstep','回款初审(0010)',NULL,NULL,NULL,NULL,'C端财务复核(0030)',NULL,NULL,NULL,NULL,NULL);
insert into `flow_model` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('CapitalCollectionFlow','0030','1020','C端财务复核',NULL,NULL,NULL,'toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'selectroute',NULL,'[{usertype:\"指定角色\",userinfo:\"800R00000021,C端财务经办\"}]','#PhaseOpinion1','doSubmit,backStep,signOpinion',NULL,NULL,NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'468','340','100','50','1',NULL,'TASK',NULL,'Y','N','CapitalCollection020',NULL,NULL,'backnextstep','复审审核(0020)',NULL,NULL,NULL,NULL,'[{stepno:\"结束(1000)\",stepcondition:\"提交给结束\"},{stepno:\"否决(8000)\",stepcondition:\"提交给否决\"}]',NULL,NULL,NULL,NULL,NULL);
insert into `flow_model` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('CapitalCollectionFlow','1000','1040','结束',NULL,NULL,'!基础操作.网银信息临时表到正式表(#ObjectNo)+!基础操作.资金实收临时表到正式表(#ObjectNo)+!基础操作.租金实收信息临时到正式(#ObjectNo)+!基础操作.流程结束后删除对应租金计划的占用(#ObjectNo)+!基础操作.网银收款租金计划保存状态(#ObjectNo)+!审批流程.凭证输出--回款(#ObjectNo)','{\"system\"}',NULL,'commroute',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'416','457','50','50','1',NULL,'END',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into `flow_model` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('CapitalCollectionFlow','8000','1050','否决',NULL,NULL,NULL,'{\"system\"}',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'571','454','50','50','1',NULL,'END',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
-- 流程页面显示
UPDATE code_library SET isinuse='0' WHERE codeno='FundCollection010' AND itemno='002';
UPDATE code_library SET isinuse='0' WHERE codeno='FundCollection020' AND itemno='002';
insert into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('CapitalCollection010','00100090','流程审批页面','资金网银收款','运营发起','','','SYS_Designer',null,'2020/08/22 18:18:17','SYS_Designer','2020/08/22 18:18:17','');
insert into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('CapitalCollection010','001','网银信息','','001','1','/Tenwa/Lease/Flow/Fund/FundCollection/LCEbankTempInfo.jsp@TempletNo=LCEbankTempInfo','','','','','','','','','','','SYS_Designer',null,'2020/08/22 18:18:17','SYS_Designer','2020/08/22 18:18:17','','');
insert into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('CapitalCollection010','002','资金收款','','003','1','/Tenwa/Lease/Flow/Fund/FundCollection/FundIncome.jsp@TempletNo=LCFundIncomeTempList','','','','','','','','','','','SYS_Designer',null,'2020/08/22 18:18:17','SYS_Designer','2020/08/22 18:18:17','','');
insert into CODE_CATALOG (codeno,sortno,codetypeone,codetypetwo,codename,codedescribe,codeattribute,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('CapitalCollection020','00100100','流程审批页面','资金网银收款','运营发起','','','SYS_Designer',null,'2020/08/22 18:20:26','SYS_Designer','2020/08/22 18:20:26','');
insert into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('CapitalCollection020','001','网银信息','','001','1','/Tenwa/Lease/Flow/Fund/FundCollection/LCEbankTempInfo.jsp@TempletNo=LCEbankTempInfo','','','','','','','','','','','SYS_Designer',null,'2020/08/22 18:20:26','SYS_Designer','2020/08/22 18:20:26','','');
insert into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('CapitalCollection020','002','资金收款','','002','1','/Tenwa/Lease/Flow/Fund/FundCollection/LCFundIncomTempList.jsp@TempletNo=LCFundIncomeTempList','','','','','','','','','','','SYS_Designer',null,'2020/08/22 18:20:27','SYS_Designer','2020/08/22 18:20:27','','');
INSERT INTO `code_library` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('ApplyType','CapitalCollectionApply','资金网银申请',NULL,NULL,'1','CapitalCollectionApplyMain','FlowDefaultObject',NULL,NULL,'CapitalCollectionFlow',NULL,NULL,'ButtonSetFlow',NULL,NULL,'/Tenwa/Lease/Flow/Fund/FundCollection/FundCollectionApplyList.jsp',NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `CODE_CATALOG` (`codeno`, `sortno`, `codetypeone`, `codetypetwo`, `codename`, `codedescribe`, `codeattribute`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) VALUES('CapitalCollectionApplyMain',NULL,'申请主树图',NULL,'CapitalCollection申请主树图',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApplyMain','1010','我的草稿',NULL,'1010','1','newApply,cancelApply,doSubmit,viewTab,viewFlowGraph','001',NULL,' and O.ObjectType = \'#ObjectType\' and O.PhaseType=\'#PhaseType\' and O.ApplyType=\'#ApplyType\' ',' and O.UserID=\'#UserID\' ',NULL,'FundCollectionFlowStart','/Tenwa/Lease/Flow/Fund/FundCollection/FundCollectionApplyList.jsp@FundCollectionFlowStart',NULL,NULL,NULL,NULL,NULL,NULL,'administrator','2020/08/22 18:44:34','ObjectWindow',NULL);
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApplyMain','1020','审查审批中的申请',NULL,'1020','1','viewTab,viewFlowGraph','001',NULL,' and O.ObjectType = \'#ObjectType\' and O.PhaseType=\'#PhaseType\' and O.ApplyType=\'#ApplyType\' ',' and O.UserID=\'#UserID\' ',NULL,'FundCollectionFlowStart','/Tenwa/Lease/Flow/Fund/FundCollection/FundCollectionApplyList.jsp@FundCollectionFlowStart',NULL,NULL,NULL,NULL,NULL,NULL,'administrator','2020/08/22 18:44:43','ObjectWindow',NULL);
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApplyMain','1040','审批通过的申请',NULL,'1040','1','viewTab,viewFlowGraph','001',NULL,' and O.ObjectType = \'#ObjectType\' and O.PhaseType=\'#PhaseType\' and O.ApplyType=\'#ApplyType\' ',' and O.UserID=\'#UserID\' ',NULL,'FundCollectionFlowStart','/Tenwa/Lease/Flow/Fund/FundCollection/FundCollectionApplyList.jsp@FundCollectionFlowStart',NULL,NULL,NULL,NULL,NULL,NULL,'administrator','2020/08/22 18:44:48','ObjectWindow',NULL);
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApplyMain','1050','被否决的申请',NULL,'1050','1','viewTab,viewFlowGraph','001',NULL,' and O.ObjectType = \'#ObjectType\' and O.PhaseType=\'#PhaseType\' and O.ApplyType=\'#ApplyType\' ',' and O.UserID=\'#UserID\' ',NULL,'FundCollectionFlowStart','/Tenwa/Lease/Flow/Fund/FundCollection/FundCollectionApplyList.jsp@FundCollectionFlowStart',NULL,NULL,NULL,NULL,NULL,NULL,'administrator','2020/08/22 18:44:56','ObjectWindow',NULL);
INSERT INTO `code_library` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('ApproveType','CapitalCollectionApprove','资金网银审批',NULL,NULL,'1','CapitalCollectionApproveMain','FlowDefaultObject',NULL,NULL,'CapitalCollectionFlow',NULL,NULL,'ButtonSetFlow',NULL,NULL,'/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApprovalList.jsp',NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `CODE_CATALOG` (`codeno`, `sortno`, `codetypeone`, `codetypetwo`, `codename`, `codedescribe`, `codeattribute`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) VALUES('CapitalCollectionApproveMain',NULL,'审批主树图',NULL,'CapitalCollection审批主树图',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApproveMain','N','当前工作',NULL,'0010','1',NULL,'001',NULL,' and O.ObjectType = \'#ObjectType\' and O.FlowNo=\'#FlowNo\' and O.PhaseNo=\'#PhaseNo\' and O.UserID=\'#UserID\' and (O.FlowState<>\'INPOOL\' or O.FlowState is null) AND (O.FlowState <> \'NOTSELECT\' or O.FlowState is null) ',' and (O.EndTime is null or O.EndTime = \'\') ',NULL,'FundCollectionFlowApproval','/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApprovalList.jsp@FundCollectionFlowApproval',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ObjectWindow',NULL);
INSERT INTO `CODE_LIBRARY` (`codeno`, `itemno`, `itemname`, `bankno`, `sortno`, `isinuse`, `itemdescribe`, `itemattribute`, `relativecode`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`, `helptext`) VALUES('CapitalCollectionApproveMain','Y','已完成工作',NULL,'0020','1',NULL,'001',NULL,' and O.ObjectType = \'#ObjectType\' and O.FlowNo=\'#FlowNo\' and O.PhaseNo=\'#PhaseNo\' and O.UserID=\'#UserID\' ',' and O.EndTime is not null and O.EndTime <> \'\' ',NULL,'FundCollectionFlowApproval','/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApprovalList.jsp@FundCollectionFlowApproval',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ObjectWindow',NULL);
--