83 lines
22 KiB
SQL
83 lines
22 KiB
SQL
-- 添加字段
|
|
ALTER TABLE prd_specific_library ADD COLUMN ManySubject VARCHAR(32) NULL COMMENT '主体' AFTER GPS_VENDOR;
|
|
ALTER TABLE lb_project_info ADD COLUMN SUBJECTNAME VARCHAR(100) NULL COMMENT '主体名称' AFTER SUBJECTID;
|
|
ALTER TABLE lb_project_info_temp ADD COLUMN SUBJECTNAME VARCHAR(100) NULL COMMENT '主体名称' AFTER SUBJECTID;
|
|
ALTER TABLE lb_contract_info ADD COLUMN SUBJECTNAME VARCHAR(100) NULL COMMENT '主体名称' AFTER SUBJECTID;
|
|
ALTER TABLE lb_contract_info_temp ADD COLUMN SUBJECTNAME VARCHAR(100) NULL COMMENT '主体名称' AFTER SUBJECTID;
|
|
ALTER TABLE lb_contract_info_his ADD COLUMN SUBJECTNAME VARCHAR(100) NULL COMMENT '主体名称' AFTER SUBJECTID;
|
|
|
|
-- 产品中添加主体维护
|
|
delete from awe_do_library where dono='PRD_ProductSpecificInfo01' and colindex='12460';
|
|
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 ('PRD_ProductSpecificInfo01','12460','2029','1','O','ManySubject','ManySubject','String','','主体','','1','Select','1','1','Code','ManySubject','','32','1','0','0','1','0',0,'','','','SYS_Designer','2019/11/28 17:41:11','SYS_Designer','2019/11/28 19:42:54','0','','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 ('selectManySubject','Sql','选择多主体','app_conf_functional_file','','Grid','','itemno,bankno','SELECT itemno,itemname,bankno FROM CODE_LIBRARY WHERE codeno=''ManySubject''','主体ID,主体名称,主体编码','itemname@style={width:300px;}','itemno@itemname@bankno','','1','Single','','','','','','SYS_Designer','','2019/11/28 20:31:45','SYS_Designer','2019/12/12 16:58:03','');
|
|
|
|
-- 汽车业务申请选择产品返回主体信息
|
|
delete from SELECT_CATALOG where selname='selectProductVersionInfo';
|
|
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 ('selectProductVersionInfo','Sql','查询产品名称及版本','business_type','typeno','Grid','String carAttributes,String leasehold,String modelid,String CurOrgID,String YesNo','typeno,sortno,PRODUCTID,VERSIONID,id,distributor_name,modelid,modelname,equip_type,LeasForm,operationType,ManySubject','SELECT t.typeno,t.sortno,t.typename,t.PRODUCTID,t.VERSIONID,t.id,t.distributor_name,t.modelid,t.modelname,t.equip_type,t.LeasForm,t.operationType,t.ManySubject FROM (
|
|
SELECT * FROM vi_product v1
|
|
WHERE v1.IS_ALL_DEALER = ''Y'' AND v1.IS_ALL_CAR = ''Y''
|
|
AND v1.attribute2 = ''#attribute2''
|
|
UNION ALL
|
|
SELECT * FROM vi_product v1
|
|
WHERE v1.IS_ALL_DEALER = ''Y'' AND v1.IS_ALL_CAR = ''N''
|
|
AND v1.attribute2 = ''#attribute2''
|
|
AND v1.modelid = ''#modelid''
|
|
UNION ALL
|
|
SELECT * FROM vi_product v1
|
|
WHERE v1.IS_ALL_DEALER = ''N'' AND v1.IS_ALL_CAR = ''Y''
|
|
AND v1.attribute2 = ''#attribute2''
|
|
AND v1.orgid = ''#CurOrgID''
|
|
UNION ALL
|
|
SELECT * FROM vi_product v1
|
|
WHERE v1.IS_ALL_DEALER = ''N'' AND v1.IS_ALL_CAR = ''N''
|
|
AND v1.attribute2 = ''#attribute2''
|
|
AND v1.orgid = ''#CurOrgID'' AND v1.modelid = ''#modelid''
|
|
|
|
) t GROUP BY t.productid','产品编号,产品排序号,产品名称,产品ID,版本ID,经销商ID,经销商名称,车型ID,车型名称,车辆属性,租赁方式,业务模式,主体编码','typename@style={width:350px}','typeno@sortno@typename@PRODUCTID@VERSIONID@id@distributor_name@modelid@modelname@equip_type@LeasForm@operationType@ManySubject','typename','1','Single','','','','','','SYS_Designer','','2018/06/16 17:17:43','SYS_Designer','2019/11/28 19:29:45','');
|
|
|
|
-- 业务申请页面添加主题名称字段
|
|
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 ('VI_PROJECTINFO_APPROVAL','1280','1280','1','O','subjectname','subjectname','String','','主体名称','','1','Text','1','1','','','style={width:78%}','20','1','1','0','1','0',0,'','0009','','SYS_Designer','2019/12/06 15:23:39','SYS_Designer','2019/12/06 15:26:41','0','','1','','','','');
|
|
|
|
-- 业务申请变更添加主题
|
|
delete from SELECT_CATALOG where selname='selectBusinessRecreditProject';
|
|
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 ('selectBusinessRecreditProject','Sql','查询汽车业务复议项目','','','Grid','String userid','id,product_id,project_name,customertype,car_type,leas_form,operationType,certtype,custkind,subjectid,subjectname','SELECT lpi.id,lpi.product_id,lpi.project_no,lpi.project_name,ci.customername,getItemName(''CertType'',ci.certtype) certtype,ci.certid,getItemName(''cust_kind'',lpi.project_industry) as custkind,getUserName(project_manage) as project_manage_name,getOrgName(lpi.project_dept) project_dept,lcs.status_name,ci.customertype,lpi.car_type,lpi.leas_form,psl.operationType,ci.certtype,lpi.subjectid,lpi.subjectname FROM LB_PROJECT_INFO lpi left join lb_contract_status lcs on lpi.project_status=lcs.status_code LEFT JOIN LB_UNION_LESSEE lult on lpi.id=lult.project_id and lult.is_main=''y'' and( lult.contract_id is null or lult.contract_id='''') LEFT JOIN CUSTOMER_INFO ci on lult.customer_id=ci.customerid left join PRD_SPECIFIC_LIBRARY psl on psl.productid=lpi.product_id where lpi.project_status=''13'' and (SELECT COUNT(id) FROM lb_contract_info_temp WHERE project_id=lpi.ID)=0 and lpi.businesstype=''1'' {lpi,proj} and lpi.project_manage=''#userid'' order by lpi.project_no desc','id,产品编号,申请编号,项目名称,客户名称,证件类别,证件号码,内部行业,项目经理,出单部门,项目状态,客户类型,车辆车型,租赁方式,主体id,主体名称','','id@product_id@project_no@project_name@customertype@car_type@leas_form@operationType@certtype@subjectid@subjectname','project_no,customername,project_name,certid','1','Single','','','','','','SYS_Designer','','2018/01/31 16:24:16','SYS_Designer','2019/12/06 16:24:46','');
|
|
|
|
-- 修改合同制作选择对话框
|
|
DELETE FROM SELECT_CATALOG WHERE selname='SelectProjectForContract_Car';
|
|
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 ('SelectProjectForContract_Car','Sql','合同制作时项目查询-汽车业务','','','Grid','String userid,String businessType','id,product_id,customertype,leas_form,CAR_TYPE,IS_NETCAR,operationType,signType,sealType,subjectid,subjectname','SELECT lpi.id, lpi.product_id, lpi.project_no, lpi.project_name, ci.customername, getItemName (''CertType'', ci.certtype) certtype, ci.certid, getUserName (lpi.project_manage) AS project_manage, getOrgLevelName (lpi.project_dept) project_dept, ci.customertype,lpi.leas_form,lpi.CAR_TYPE,lpi.IS_NETCAR,psl.operationType,psl.signType,psl.sealType,lpi.subjectid,lpi.subjectname FROM LB_PROJECT_INFO lpi LEFT JOIN LC_PROJ_CONDITION lpc ON lpi.id=lpc.project_id LEFT JOIN LB_CONTRACT_INFO lci ON lpi.id=lci.project_id LEFT JOIN LC_CONTRACT_CONDITION lcc ON lci.id=lcc.contract_id LEFT JOIN LB_UNION_LESSEE lult ON lpi.id = lult.project_id AND (lult.contract_id = '''' OR lult.contract_id IS NULL) LEFT JOIN CUSTOMER_INFO ci ON lult.customer_id = ci.customerid LEFT JOIN PRD_SPECIFIC_LIBRARY psl ON psl.productid=lpi.product_id WHERE lult.is_main = ''y'' AND lpi.project_status = ''13'' AND((lci.contract_status = ''21'' AND lpc.equip_amt>lcc.equip_amt) OR ((lult.CONTRACT_ID="" OR lult.CONTRACT_ID IS NULL)AND (SELECT COUNT(*) FROM lb_contract_info WHERE project_id=lpi.id)=0)) and lpi.PROJECT_MANAGE=''#userid'' and lpi.businesstype=''#businessType'' ORDER BY lpi.END_DATE desc','id,产品编号,申请编号,业务名称,客户名称,证件类别,证件号码,业务经理,经销商渠道/名称,业务类型,租赁方式,汽车类型,是否网约车,所属渠道,签约方式,盖章方式,主体ID,主体名称','project_name@style={width:350px;}','id@product_id@project_no@project_name@customertype@leas_form@CAR_TYPE@IS_NETCAR@operationType@signType@sealType@subjectid@subjectname','project_no,project_name,customername,certid','1','Single','','','','','project_no@ @ @EqualsString,Contains@customername@ @ @EqualsString,Contains@project_name@ @ @EqualsString,Contains@certid@ @ @EqualsString,Contains','SYS_Designer','','2018/03/08 14:37:12','SYS_Designer','2019/12/02 14:12:24','');
|
|
|
|
DELETE FROM SELECT_CATALOG WHERE selname='SelectProjectForContract_Car_KE';
|
|
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 ('SelectProjectForContract_Car_KE','Sql','合同制作时项目查询-汽车业务-卡尔','','','Grid','String orgid,String businessType','id,product_id,customertype,leas_form,CAR_TYPE,IS_NETCAR,operationType,signType,sealType,subjectid,subjectname','SELECT lpi.id, lpi.product_id, lpi.project_no, lpi.project_name, ci.customername, getItemName (''CertType'', ci.certtype) certtype, ci.certid, getUserName (lpi.project_manage) AS project_manage, getOrgLevelName (lpi.project_dept) project_dept, ci.customertype,lpi.leas_form,lpi.CAR_TYPE,lpi.IS_NETCAR,psl.operationType,psl.signType,psl.sealType,lpi.subjectid,lpi.subjectname FROM LB_PROJECT_INFO lpi LEFT JOIN LC_PROJ_CONDITION lpc ON lpi.id=lpc.project_id LEFT JOIN LB_CONTRACT_INFO lci ON lpi.id=lci.project_id LEFT JOIN LC_CONTRACT_CONDITION lcc ON lci.id=lcc.contract_id LEFT JOIN LB_UNION_LESSEE lult ON lpi.id = lult.project_id AND (lult.contract_id = '''' OR lult.contract_id IS NULL) LEFT JOIN CUSTOMER_INFO ci ON lult.customer_id = ci.customerid LEFT JOIN PRD_SPECIFIC_LIBRARY psl ON psl.productid=lpi.product_id WHERE lult.is_main = ''y'' AND lpi.project_status = ''13'' AND((lci.contract_status = ''21'' AND lpc.equip_amt>lcc.equip_amt) OR ((lult.CONTRACT_ID="" OR lult.CONTRACT_ID IS NULL)AND (SELECT COUNT(*) FROM lb_contract_info WHERE project_id=lpi.id)=0)) AND lpi.INPUTORGID=''#orgid'' and lpi.businesstype=''#businessType'' ORDER BY lpi.END_DATE desc','id,产品编号,申请编号,业务名称,客户名称,证件类别,证件号码,业务经理,经销商渠道/名称,业务类型,租赁方式,汽车类型,是否网约车,所属渠道,签约方式,盖章方式,主体id,主体名称','project_name@style={width:350px;}','id@product_id@project_no@project_name@customertype@leas_form@CAR_TYPE@IS_NETCAR@operationType@signType@sealType@subjectid@subjectname','project_no,project_name,customername,certid','1','Single','','','','','project_no@ @ @EqualsString,Contains@customername@ @ @EqualsString,Contains@project_name@ @ @EqualsString,Contains@certid@ @ @EqualsString,Contains','SYS_Designer','','2019/05/16 14:25:34','SYS_Designer','2019/12/02 14:14:49','');
|
|
|
|
-- 合同变更流程发起添加主体信息
|
|
delete from SELECT_CATALOG where selname='SelectContractCar';
|
|
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 ('SelectContractCar','Sql','合同查询(汽车业务)','','','Grid','','id,project_id,product_id,contract_no,custkind,customertype,leas_form,CAR_TYPE,IS_NETCAR,operationType,sealType,signType,subjectid,subjectname','SELECT lci.id,lult.project_id ,lci.product_id,lci.contract_no,lci.contract_number,lci.project_name,ci.customername,getItemName(''CertType'',ci.certtype) certtype,ci.certid,getItemName(''cust_kind'',lci.project_industry) as custkind,getUserName(lci.project_manage) as project_manage,getOrgLevelName(lci.project_dept) project_dept,ci.customertype,lci.leas_form,lpi.CAR_TYPE,lpi.IS_NETCAR,psl.operationType,psl.sealType,psl.signType,lci.subjectid,lci.subjectname FROM LB_CONTRACT_INFO lci LEFT JOIN LB_PROJECT_INFO lpi ON lpi.id = lci.project_id LEFT JOIN LB_UNION_LESSEE lult on lci.id=lult.contract_id LEFT JOIN CUSTOMER_INFO ci on lult.customer_id=ci.customerid LEFT JOIN PRD_SPECIFIC_LIBRARY psl ON psl.productid = lpi.product_id where lult.is_main=''y'' and lci.businesstype=''1'' and not EXISTS (select 1 from LC_CALC_CONDITION_STATUS ccs where ccs.contract_id=lci.id) and contract_status=''21'' and lci.inputuserid=''#userid'' {lci,contract} order by lci.contract_number desc','合同id,项目id,产品编号,合同编号,业务合同编号,项目名称,客户名称,证件类别,证件号码,内部行业,业务经理,经销商渠道/名称,客户类型,租赁方式,新车二手车,是否是网约车,产品类型,盖章模式,签约模式,主体id,主体名称','project_name@style={width:350px;}','id@project_id@product_id@contract_number@project_name@customername@customertype@leas_form@CAR_TYPE@IS_NETCAR@operationType@sealType@signType@subjectid@subjectname','project_name,customername,contract_number,certid','1','Single','','','','','','SYS_Designer','','2018/02/01 16:04:28','SYS_Designer','2019/12/06 16:41:56','');
|
|
|
|
delete from SELECT_CATALOG where selname='SelectContractCar_KE';
|
|
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 ('SelectContractCar_KE','Sql','合同查询(汽车业务)--卡尔','','','Grid','String orgid','id,project_id,product_id,contract_no,custkind,customertype,leas_form,CAR_TYPE,IS_NETCAR,operationType,sealType,signType,subjectid,subjectname','SELECT lci.id,lult.project_id ,lci.product_id,lci.contract_no,lci.contract_number,lci.project_name,ci.customername,getItemName(''CertType'',ci.certtype) certtype,ci.certid,getItemName(''cust_kind'',lci.project_industry) as custkind,getUserName(lci.project_manage) as project_manage,getOrgLevelName(lci.project_dept) project_dept,ci.customertype,lci.leas_form,lpi.CAR_TYPE,lpi.IS_NETCAR,psl.operationType,psl.sealType,psl.signType,lci.subjectid,lci.subjectname FROM LB_CONTRACT_INFO lci LEFT JOIN LB_PROJECT_INFO lpi ON lpi.id = lci.project_id LEFT JOIN LB_UNION_LESSEE lult on lci.id=lult.contract_id LEFT JOIN CUSTOMER_INFO ci on lult.customer_id=ci.customerid LEFT JOIN PRD_SPECIFIC_LIBRARY psl ON psl.productid = lpi.product_id where lult.is_main=''y'' and lci.businesstype=''1'' and not EXISTS (select 1 from LC_CALC_CONDITION_STATUS ccs where ccs.contract_id=lci.id) and contract_status=''21'' and lci.inputorgid=''#orgid'' order by lci.contract_number desc','合同id,项目id,产品编号,合同编号,业务合同编号,项目名称,客户名称,证件类别,证件号码,内部行业,业务经理,经销商渠道/名称,客户类型,租赁方式,新车二手车,是否是网约车,产品类型,盖章模式,签约模式,主体id,主体名称','project_name@style={width:350px;}','id@project_id@product_id@contract_number@project_name@customername@customertype@leas_form@CAR_TYPE@IS_NETCAR@operationType@sealType@signType@subjectid@subjectname','project_name,customername','1','Single','','','','','','SYS_Designer','','2019/05/16 14:31:20','SYS_Designer','2019/12/06 16:51:13','');
|
|
|
|
|
|
-- 传统和汽车类传统业务申请选择产品返回主体信息
|
|
DELETE FROM SELECT_CATALOG WHERE selname='SelectProjectForContract';
|
|
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('SelectProjectForContract','Sql','合同审批时项目查询-一般设备','','','Grid','String userid,String businessType','id,product_id,customertype,ManySubject','SELECT lpi.id, lpi.product_id, lpi.project_no, lpi.project_name, ci.customername, getItemName (\'CertType\', ci.certtype) certtype, ci.certid, getUserName (lpi.project_manage) AS project_manage, getOrgLevelName (lpi.project_dept) project_dept, ci.customertype,psl.ManySubject FROM LB_PROJECT_INFO lpi LEFT JOIN LC_PROJ_CONDITION lpc ON lpi.id=lpc.project_id LEFT JOIN (SELECT SUM(equip_price) AS equip_price, PROJECT_ID FROM LB_EQUIPMENT GROUP BY PROJECT_ID) le ON le.PROJECT_ID = lpi.id LEFT JOIN LB_CONTRACT_INFO lci ON lpi.id=lci.project_id LEFT JOIN LC_CONTRACT_CONDITION lcc ON lci.id=lcc.contract_id LEFT JOIN LB_UNION_LESSEE lult ON lpi.id = lult.project_id AND (lult.contract_id = \'\' OR lult.contract_id IS NULL) LEFT JOIN CUSTOMER_INFO ci ON lult.customer_id = ci.customerid LEFT JOIN PRD_SPECIFIC_LIBRARY psl ON psl.productid=lpi.product_id WHERE lpi.businesstype=\'#businessType\' AND lpi.project_manage=\'#userid\' AND lult.is_main = \'y\' AND LEFT(lpi.project_no,1) IN (\'T\') AND lpi.project_status = \'13\' AND((lci.contract_status = \'21\' AND le.equip_price>lcc.equip_amt) OR ((lult.CONTRACT_ID=\"\" OR lult.CONTRACT_ID IS NULL)AND (SELECT COUNT(*) FROM lb_contract_info WHERE project_id=lpi.id)=0)) GROUP BY lpi.project_no ORDER BY lpi.project_no DESC','id,产品编号,项目编号,项目名称,客户名称,证件类别,证件号码,项目经理,出单部门,主体ID','project_name@style={width:350px;}','id@product_id@project_no@project_name@customertype@ManySubject','project_no,project_name,customername,certid','1','Single','','','','','project_no@ @ @EqualsString,Contains@customername@ @ @EqualsString,Contains@project_name@ @ @EqualsString,Contains@certid@ @ @EqualsString,Contains','SYS_Designer','','2017/06/15 11:15:23','SYS_Designer','2019/11/29 19:50:35','');
|
|
|
|
|
|
-- 传统和汽车类传统页面添加主体字段
|
|
delete from awe_do_library where dono='LBContractInfoTemp' and colindex='1560';
|
|
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 ('LBContractInfoTemp','1560','1560','1','O','SUBJECTID','SUBJECTID','String','','主体id','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/10/31 19:10:42','SYS_Designer','2019/11/29 19:20:50','0','','1','','','','');
|
|
delete from awe_do_library where dono='LBContractInfoTemp' and colindex='1580';
|
|
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 ('LBContractInfoTemp','1580','1580','1','O','SUBJECTNAME','SUBJECTNAME','String','','主体名称','','1','Text','1','1','','','style={width:780px;}','100','1','1','0','1','0',0,'','0010','','SYS_Designer','2019/11/29 19:17:52','SYS_Designer','2019/11/29 19:18:51','0','','1','','','selectManySubject()','');
|
|
|
|
-- 合同审批流程 传统添加添加多主体风险预警
|
|
Insert Into SCENARIO_MODEL (scenarioid,modelid,sortno,modelname,modeldescribe,modeltype,subtypeno,runcondition,status,nopassdeal,passdeal,passmessage,nopassmessage,executescript,remark,inputuser,inputorg,inputtime,updateuser,updatetime,groupid,modelkind,bizviewer) Values ('合同审批流程','09007','09007','是否选择主体','','20','','','1','10',null,'主体已选择','请选择主体','select case when length(subjectid)=32 then ''true'' else ''false'' end from LB_CONTRACT_INFO_TEMP where flowunid=''#{ObjectNo}''','',null,null,null,null,null,null,null,null);
|
|
Insert Into SCENARIO_RELATIVE (scenarioid,groupid,modelid) Values ('合同审批流程','0010','09007');
|
|
|
|
-- 合同变更流程(传统)
|
|
Insert Into SCENARIO_MODEL (scenarioid,modelid,sortno,modelname,modeldescribe,modeltype,subtypeno,runcondition,status,nopassdeal,passdeal,passmessage,nopassmessage,executescript,remark,inputuser,inputorg,inputtime,updateuser,updatetime,groupid,modelkind,bizviewer) Values ('合同变更流程(传统)','8017','8017','是否选择主体','','20','','','1','10',null,'主体已选择','请选择主体','SELECT CASE WHEN LENGTH(subjectid)=32 THEN ''true'' ELSE ''false'' END FROM LB_CONTRACT_INFO_TEMP WHERE flowunid=''#{ObjectNo}''','',null,null,null,null,null,null,null,null);
|
|
Insert Into SCENARIO_RELATIVE (scenarioid,groupid,modelid) Values ('合同变更流程(传统)','0010','8017');
|
|
|
|
-- C段付款申请添加主体名称
|
|
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','2400','2400','1','O','SUBJECTNAME','SUBJECTNAME','String','','主体名称','','1','Text','1','1','','','style={width:300px}','100','1','1','0','1','0',0,'','0010','','SYS_Designer','2019/12/16 14:36:47','SYS_Designer','2019/12/16 14:38:38','0','','1','','','','');
|