付款申请添加发票信息和Gps供应商

This commit is contained in:
tangfutang 2020-03-16 19:32:33 +08:00
parent 9ff872d386
commit 1390d9df20
9 changed files with 419 additions and 6 deletions

View File

@ -0,0 +1,42 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2020-03-16
Content: 示例详情页面
History Log:
*/
//String sPrevUrl = CurPage.getParameter("PrevUrl");
String ContractId = CurPage.getParameter("ContractId");
String flowunid = CurPage.getParameter("flowunid");
String sTempletNo = "LB_INVOICE_INFO_TEMP";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
//doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ContractId"));
String sButtons[][] = {
{"false","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{"false","All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function save(HAS_GPS){
setItemValue(0,0,"contract_id", "<%=ContractId%>");
setItemValue(0,0,"flow_unid", "<%=flowunid%>");
as_save(0,"alert('数据保存成功');");
if(HAS_GPS=="Y"||HAS_GPS=="N"){
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.check.ContractInfoCheck","saveGps","contractid=<%=ContractId%>,hasGps="+HAS_GPS);
};
}
$(function(){
//setItemReadOnly(0,0,"INVOICE_DATE",true);
document.getElementById("INVOICE_DATE").readOnly=true;
})
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -18,11 +18,11 @@
return;
}
sReturn = sReturn.split("@");
/*var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.check.ContractInfoCheck","ProjectSignStatus","projectid="+sReturn[1]);
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.check.ContractInfoCheck","ProjectSignStatus","projectid="+sReturn[1]);
if("error"==sReturnInfo){
alert("请提醒客户查看手机短信,首先完成扣款卡的签约验证!");
return;
} */
}
var contract_id = sReturn[0];
var proj_id = sReturn[1];
var productId = sReturn[2];

View File

@ -5,14 +5,19 @@
Content: 示例详情页面
History Log:
*/
String orgId = CurUser.getOrgID();
String ishistory = CurPage.getParameter("IsHistory");
String flowunid = CurPage.getParameter("FlowUnid");
String contractId = CurPage.getParameter("ContractId");
String compClientID = CurPage.getParameter("CompClientID");
String phaseNo = CurPage.getParameter("PhaseNo");
String ProductId = CurPage.getParameter("ProductId");
String productid = Sqlca.getString("select PRODUCT_ID from LB_CONTRACT_INFO_TEMP where flowunid = '"+flowunid+"'");
String gpsVendor = Sqlca.getString("select cl.itemname from PRD_SPECIFIC_LIBRARY psl left join code_library cl on cl.itemno=psl.GPS_VENDOR and cl.codeno='gpsVendor' where productid='"+ProductId+"'");
String sTempletNo = "LB_CONTRACT_INFO_PAY";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
/* if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
} */
@ -22,14 +27,32 @@
dwTemp.genHTMLObjectWindow(contractId);
String url="/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitListForContract.jsp?CompClientID=";
dwTemp.replaceColumn("GUARANTEE_LIST", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+url+compClientID+"&ContractId="+contractId+"&RightType=ReadOnly\"></iframe>", CurPage.getObjectWindowOutput());
//dwTemp.replaceColumn("INVOICEINFO", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"\Tenwa\Core\InvoiceManager\FundPaymentInvoice\LbInvoiceInfoTemp.jsp\"+compClientID+"&ContractId="+contractId+"&RightType=ReadOnly\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("INVOICEINFO", "<iframe type='iframei' id='frame_listi' name=\"frame_listi\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Core/InvoiceManager/FundPaymentInvoice/LbInvoiceInfoTemp.jsp?CompClientID="+compClientID+"&ContractId="+contractId+"&flowunid="+flowunid+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","as_save(0)","","","","btn_icon_save"},
{"true","","Button","±£´æ","±£´æËùÓÐÐÞ¸Ä","save()","","","","btn_icon_save"},
};
//sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function save(){
var orgid= "<%=orgId%>".substring(0,4);
if("FundPaymentCarFlow"=="<%=CurPage.getParameter("FlowNo")%>" && "<%=phaseNo%>"!="0010" && orgid != "8006" ){
var HAS_GPS = getItemValue(0,getRow(0),"HAS_GPS");
frame_listi.window.save(HAS_GPS);
}else{
as_save(0);
}
}
window.onload = function(){
setItemValue(0,0,"CERTTYPE_CF","Ind01");
var gps = "<%=gpsVendor%>";
if("null" != gps && gps.length >0){
setItemValue(0,0,"GPS", gps);
}
setItemValue(0,0,"CERTTYPE_CF","Ind01");
var type = getItemValue(0,0,"customertype");
if(type=="03"||type==""||type==null){
hideItem(0,"CERTTYPE_CC");
@ -49,6 +72,11 @@ window.onload = function(){
setItemReadOnly(0,0,"has_gps", false);
}
}
var orgid= "<%=orgId%>".substring(0,4);
if(!("FundPaymentCarFlow"=="<%=CurPage.getParameter("FlowNo")%>" && "<%=phaseNo%>"!="0010" && orgid != "8006")){
$("#A_Group_0070").attr("style","display:none;");//Òþ²Ø
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -1223,6 +1223,59 @@
</managerProperties>
</manager>
</class>
<class name="LB_INVOICE_INFO" label="发票信息正式表" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="Invoice_code" label="发票代码" type="STRING" length="32"/>
<attribute name="Invoice_number" label="发票号码" type="STRING" length="32"/>
<attribute name="Invoice_date" label="开票日期" type="STRING" length="100"/>
<attribute name="Invoice_money" label="开票金额" type="STRING" length="20"/>
<attribute name="tax_due" label="税金" type="STRING" length="20"/>
<attribute name="remarks" label="备注" type="STRING" length="100"/>
<attribute name="standby" label="备用" type="STRING" length="100"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_invoice_info" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LB_INVOICE_INFO_TEMP" label="发票信息临时表" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
<attribute name="Invoice_code" label="发票代码" type="STRING" length="32"/>
<attribute name="Invoice_number" label="发票号码" type="STRING" length="32"/>
<attribute name="Invoice_date" label="开票日期" type="STRING" length="100"/>
<attribute name="Invoice_money" label="开票金额" type="STRING" length="20"/>
<attribute name="tax_due" label="税金" type="STRING" length="20"/>
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
<attribute name="remarks" label="备注" type="STRING" length="100"/>
<attribute name="standby" label="备用" type="STRING" length="100"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_invoice_info_temp" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
<package name="jbo.com.tenwa.entity.comm.insurance" >
<class name="VI_INSURANCE_INFO" label="保险信息" keyAttributes="">

View File

@ -0,0 +1,80 @@
package jbo.com.tenwa.entity.comm.invoice;
import java.lang.String;
/**
* 发票信息正式表 - JBO命名常量类<br><br>
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
*/
public interface LB_INVOICE_INFO{
/**
* 发票信息正式表<br><br>
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.invoice.LB_INVOICE_INFO";
/**
* 唯一标识 STRING(32)<br>
*/
public static final String id = "id";
/**
* 项目id STRING(32)<br>
*/
public static final String project_id = "project_id";
/**
* 合同id STRING(32)<br>
*/
public static final String contract_id = "contract_id";
/**
* 发票代码 STRING(32)<br>
*/
public static final String Invoice_code = "Invoice_code";
/**
* 发票号码 STRING(32)<br>
*/
public static final String Invoice_number = "Invoice_number";
/**
* 开票日期 STRING(100)<br>
*/
public static final String Invoice_date = "Invoice_date";
/**
* 开票金额 STRING(20)<br>
*/
public static final String Invoice_money = "Invoice_money";
/**
* 税金 STRING(20)<br>
*/
public static final String tax_due = "tax_due";
/**
* 备注 STRING(100)<br>
*/
public static final String remarks = "remarks";
/**
* 备用 STRING(100)<br>
*/
public static final String standby = "standby";
/**
* 登记人 STRING(100)<br>
*/
public static final String inputuserid = "inputuserid";
/**
* 登记部门 STRING(100)<br>
*/
public static final String inputorgid = "inputorgid";
/**
* 登记时间 STRING(100)<br>
*/
public static final String inputtime = "inputtime";
/**
* 更新人 STRING(100)<br>
*/
public static final String updateuserid = "updateuserid";
/**
* 更新部门 STRING(100)<br>
*/
public static final String updateorgid = "updateorgid";
/**
* 更新时间 STRING(100)<br>
*/
public static final String updatetime = "updatetime";
}

View File

@ -0,0 +1,84 @@
package jbo.com.tenwa.entity.comm.invoice;
import java.lang.String;
/**
* 发票信息临时表 - JBO命名常量类<br><br>
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
*/
public interface LB_INVOICE_INFO_TEMP{
/**
* 发票信息临时表<br><br>
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.invoice.LB_INVOICE_INFO_TEMP";
/**
* 唯一标识 STRING(32)<br>
*/
public static final String id = "id";
/**
* 项目id STRING(32)<br>
*/
public static final String project_id = "project_id";
/**
* 合同id STRING(32)<br>
*/
public static final String contract_id = "contract_id";
/**
* 发票代码 STRING(32)<br>
*/
public static final String Invoice_code = "Invoice_code";
/**
* 发票号码 STRING(32)<br>
*/
public static final String Invoice_number = "Invoice_number";
/**
* 开票日期 STRING(100)<br>
*/
public static final String Invoice_date = "Invoice_date";
/**
* 开票金额 STRING(20)<br>
*/
public static final String Invoice_money = "Invoice_money";
/**
* 税金 STRING(20)<br>
*/
public static final String tax_due = "tax_due";
/**
* 流程id STRING(32)<br>
*/
public static final String flow_unid = "flow_unid";
/**
* 备注 STRING(100)<br>
*/
public static final String remarks = "remarks";
/**
* 备用 STRING(100)<br>
*/
public static final String standby = "standby";
/**
* 登记人 STRING(100)<br>
*/
public static final String inputuserid = "inputuserid";
/**
* 登记部门 STRING(100)<br>
*/
public static final String inputorgid = "inputorgid";
/**
* 登记时间 STRING(100)<br>
*/
public static final String inputtime = "inputtime";
/**
* 更新人 STRING(100)<br>
*/
public static final String updateuserid = "updateuserid";
/**
* 更新部门 STRING(100)<br>
*/
public static final String updateorgid = "updateorgid";
/**
* 更新时间 STRING(100)<br>
*/
public static final String updatetime = "updatetime";
}

View File

@ -76,9 +76,85 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BusinessApplyUserinfoList','1140','1140','1','O','updatetime','updatetime','String','','更新时间','','1','Date','3','2','','','','100','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/13 08:58:10','SYS_Designer','2020/03/13 11:40:42','','','1','','','','');
-- 添加选择对话框
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 ('selectUserInfo','Sql','用户信息查询','user_info','userid','Grid','','userid','SELECT userid,username FROM user_info WHERE LEFT(userid,4)<>''8006'' and LENGTH(TRIM(userid))>0','用户id,用户名','username@style={width:250px;}','userid@username','username','1','Single','','','','','','SYS_Designer','','2020/03/13 10:16:31','SYS_Designer','2020/03/13 10:45:52','');
DELETE FROM SELECT_CATALOG WHERE selname='selectUserInfo';
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 ('selectUserInfo','Sql','用户信息查询','user_info','userid','Grid','','userid','SELECT ui.userid,ui.username,ri.rolename FROM user_info ui LEFT JOIN USER_ROLE ur ON ur.USERID =ui.USERID LEFT JOIN ROLE_INFO ri ON ri.roleid=ur.roleid LEFT JOIN USER_TASK_INFO uti ON uti.userid=ui.userid WHERE ur.roleid=''800R00000013'' AND uti.INDUCTION_STATE=''induction_state01''','用户id,用户名,角色名称','username@style={width:250px;}','userid@username','username','1','Single','','','','','','SYS_Designer','','2020/03/13 10:16:31','SYS_Designer','2020/03/13 19:45:55','');
-- 添加菜单
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 ('2000100070','业务申请初审','业务申请初审','2000100070','/Tenwa/Lease/Flow/BusinessApplyUserinfo/BusinessApplyUserinfoList.jsp','isCache=false','_self','','1','',null,'SYS_Designer','2020/03/13 09:42:40',null,'SYS_Designer','2020/03/13 09:42:40','10','','');
Insert Into AWE_Role_Menu (roleid,menuid) Values ('099','2000100070');
-- 创建发票信息表
-- 临时表
CREATE TABLE lb_Invoice_info_temp (
id VARCHAR(32) NOT NULL COMMENT '唯一标识',
project_id VARCHAR(32) DEFAULT NULL COMMENT '项目id',
contract_id VARCHAR(32) DEFAULT NULL COMMENT '合同id',
Invoice_code VARCHAR(32) DEFAULT NULL COMMENT '发票代码',
Invoice_number VARCHAR(32) DEFAULT NULL COMMENT '发票号码',
Invoice_date VARCHAR(100) DEFAULT NULL COMMENT '开票日期',
Invoice_money VARCHAR(20) DEFAULT NULL COMMENT '开票金额',
tax_due VARCHAR(20) DEFAULT NULL COMMENT '税金',
flow_unid VARCHAR(32) DEFAULT NULL COMMENT '流程id',
remarks VARCHAR(100) DEFAULT NULL COMMENT '备注',
standby VARCHAR(100) DEFAULT NULL COMMENT '备用',
inputuserid VARCHAR(100) DEFAULT NULL COMMENT '登记人',
inputorgid VARCHAR(100) DEFAULT NULL COMMENT '登记部门',
inputtime varchar(100) DEFAULT NULL COMMENT '登记时间',
updateuserid varchar(100) DEFAULT NULL COMMENT '更新人',
updateorgid varchar(100) DEFAULT NULL COMMENT '更新部门',
updatetime varchar(100) DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=gbk;
-- 正式表
CREATE TABLE lb_Invoice_info (
id VARCHAR(32) NOT NULL COMMENT '唯一标识',
project_id VARCHAR(32) DEFAULT NULL COMMENT '项目id',
contract_id VARCHAR(32) DEFAULT NULL COMMENT '合同id',
Invoice_code VARCHAR(32) DEFAULT NULL COMMENT '发票代码',
Invoice_number VARCHAR(32) DEFAULT NULL COMMENT '发票号码',
Invoice_date VARCHAR(100) DEFAULT NULL COMMENT '开票日期',
Invoice_money VARCHAR(20) DEFAULT NULL COMMENT '开票金额',
tax_due VARCHAR(20) DEFAULT NULL COMMENT '税金',
remarks VARCHAR(100) DEFAULT NULL COMMENT '备注',
standby VARCHAR(100) DEFAULT NULL COMMENT '备用',
inputuserid VARCHAR(100) DEFAULT NULL COMMENT '登记人',
inputorgid VARCHAR(100) DEFAULT NULL COMMENT '登记部门',
inputtime VARCHAR(100) DEFAULT NULL COMMENT '登记时间',
updateuserid VARCHAR(100) DEFAULT NULL COMMENT '更新人',
updateorgid VARCHAR(100) DEFAULT NULL COMMENT '更新部门',
updatetime VARCHAR(100) DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=gbk;
-- 添加发票信息模板
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('LB_INVOICE_INFO_TEMP','发票信息临时表',null,'30',null,'1','2','default','jbo.com.tenwa.entity.comm.invoice.LB_INVOICE_INFO_TEMP','O','contract_id=:id ','','','com.amarsoft.awe.dw.handler.impl.CommonHandler','','SYS_Designer','2020/03/16 11:42:16','SYS_Designer','2020/03/16 18:07:11','','1','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1000','1000','1','O','id','id','String','','唯一标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','0','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1010','1010','1','O','project_id','project_id','String','','项目id','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1020','1020','1','O','contract_id','contract_id','String','','合同id','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1030','1030','1','O','Invoice_code','Invoice_code','String','','发票代码','','1','Text','1','1','','','','32','1','0','1','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1040','1040','1','O','Invoice_number','Invoice_number','String','','发票号码','','1','Text','1','1','','','','32','1','0','1','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1050','1050','1','O','Invoice_date','Invoice_date','String','','开票日期','','1','Date','3','2','','','','100','1','0','1','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','0','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1060','1060','1','O','Invoice_money','Invoice_money','String','','开票金额','','1','Text','2','1','','','','20','1','0','1','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','0','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1070','1070','1','O','tax_due','tax_due','String','','税金','','1','Text','2','1','','','','20','1','0','1','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','0','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1080','1080','1','O','flow_unid','flow_unid','String','','流程id','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1110','1110','1','O','inputuserid','inputuserid','String','','登记人','','1','Text','1','1','','','','100','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1120','1120','1','O','inputorgid','inputorgid','String','','登记部门','','1','Text','1','1','','','','100','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1130','1130','1','O','inputtime','inputtime','String','','登记时间','','1','Date','3','2','','','','100','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1140','1140','1','O','updateuserid','updateuserid','String','','更新人','','1','Text','1','1','','','','100','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1150','1150','1','O','updateorgid','updateorgid','String','','更新部门','','1','Text','1','1','','','','100','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1160','1160','1','O','updatetime','updatetime','String','','更新时间','','1','Date','3','2','','','','100','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/03/16 18:07:11','','','1','','','','');
-- 付款申请页面添加发票信息字段
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_CONTRACT_INFO_PAY','2500','2500','1','','''''','INVOICEINFO','String','','发票信息','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','0070','','SYS_Designer','2020/03/16 14:45:14','SYS_Designer','2020/03/16 14:47:25','','','1','','','','');
Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('LB_CONTRACT_INFO_PAY','0070','发票信息','SYS_Designer','2020/03/16 14:47:23','SYS_Designer','2020/03/16 14:47:23','','0070','','','',2,'','','','');
-- 付款申请页面添加经销商信息
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_CONTRACT_INFO_PAY','2600','2600','1','','''''','GPS','String','','GPS供应商','','1','Text','1','1','','','',null,'1','0','0','1','0',0,'','0020','','SYS_Designer','2020/03/16 15:53:56','SYS_Designer','2020/03/16 15:54:14','0','','1','','','','');
-- 添加发票信息考表方法
insert into `class_method` (`classname`, `methodname`, `methodtype`, `methoddescribe`, `returntype`, `methodargs`, `methodcode`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) values('审批流程','发票信息表从临时到正式表','Bizlet','发票信息表从临时到正式表','String','String ObjectNo','com.tenwa.lease.flow.project.commbusiness.LbInvoiceInfoTempToFormal','','','','','','');
-- 付款申请结束添加考表操作
delete from FLOW_MODEL where FlowNo='FundPaymentCarFlow' AND PhaseNo='1000';
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('FundPaymentCarFlow','1000','1040','通过',NULL,NULL,'!基础操作.投放层资金付款临时到正式表(#ObjectNo)+!基础操作.合同基本信息从临时到正式(#ObjectNo)+!通用流程操作.保存项目进度状态(#ObjectNo,21)+!基础操作.接口平台业务通过审批意见推送入表(#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,'287','472','50','50','1',NULL,'END',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

View File

@ -3,6 +3,7 @@ package com.tenwa.lease.flow.contract.check;
import java.util.List;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
@ -14,6 +15,7 @@ public class ContractInfoCheck {
private String contractid;
private String projectid;
private String hasGps;
public String getContractid() {
return contractid;
@ -28,6 +30,13 @@ public class ContractInfoCheck {
this.projectid = projectid;
}
public String getHasGps() {
return hasGps;
}
public void setHasGps(String hasGps) {
this.hasGps = hasGps;
}
//检查该项目是否进行过签约验证
public String ProjectSignStatus(JBOTransaction tx) throws Exception{
BizObjectManager caManage = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME, tx);
@ -42,4 +51,19 @@ public class ContractInfoCheck {
return falg;
}
//保存付款申请GPS是否安装状态
public void saveGps(JBOTransaction tx){
try {
BizObjectManager lciManage = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME, tx);
BizObject lci = lciManage.createQuery(" id=:contract_id ").setParameter("contract_id", contractid).getSingleResult(true);
if(lci != null ){
lci.setAttributeValue("has_gps", hasGps);
lciManage.saveObject(lci);
}
} catch (JBOException e) {
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,26 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.Map;
import jbo.com.tenwa.entity.comm.invoice.LB_INVOICE_INFO;
import jbo.com.tenwa.entity.comm.invoice.LB_INVOICE_INFO_TEMP;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class LbInvoiceInfoTempToFormal extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("ObjectNo").toString();
Map<String,String> fromCondtion = new HashMap<String, String>();
fromCondtion.put("flow_unid", flowunid);
DataOperatorUtil.copySingleJBO(LB_INVOICE_INFO_TEMP.CLASS_NAME, fromCondtion, LB_INVOICE_INFO.CLASS_NAME, null, null, Sqlca);
String sMessage="true";
return sMessage;
}
}