diff --git a/src_sql/预投SQL/v20210831/yjf20210831.sql b/src_sql/预投SQL/v20210831/yjf20210831.sql index 5ad7f860e..5dc9c5cab 100644 --- a/src_sql/预投SQL/v20210831/yjf20210831.sql +++ b/src_sql/预投SQL/v20210831/yjf20210831.sql @@ -47,6 +47,12 @@ INSERT INTO `apzl`.`code_library` (`codeno`, `itemno`, `itemname`, `isinuse`, `i -- Ìí¼ÓÑ¡Ôñ¿ò INSERT INTO `apzl`.`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 ('SelectOwnAccountPay', 'Sql', '²éѯ±¾·½ÕË»§', '', '', 'Grid', 'String accName', '', 'SELECT acc_number,acc_bank,acc_name FROM own_account WHERE state_=\'0010\' AND acc_type=\'0010\' AND (account_type=\'out_account\' OR account_type=\'inAndOut_account\') and acc_name = \'#accName\'', '¿ª»§ÕʺÅ,¿ª»§ÒøÐÐ,¿ª»§»§Ãû', 'acc_number@style={width:200px;}@acc_name@style={width:400px;}', 'acc_number@acc_bank@acc_name', '', '1', 'Single', '', '', '', '', '', 'SYS_Designer', '', '2021/07/23 09:38:25', 'SYS_Designer', '2021/07/23 09:42:57', ''); +-- Ìí¼Ó×Ö¶Î +INSERT INTO apzl.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 ('LBActualPaymentInfoTemp', '1032', '1032', '1', 'O', 'pay_mode', 'pay_mode', 'String', '', '¸¶¿î·½Ê½', '', '1', 'Select', '1', '1', 'CodeTable', 'cmb,ÕÐÉÌÒøÆó,cgb,¹ã·¢ÒøÆó', '', '10', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '0', '', '1', '', '', '', ''); +INSERT INTO apzl.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 ('LBActualPaymentInfoTemp', '1034', '1034', '1', 'O', 'account', 'account', 'String', '', '±¾·½ÕË»§', '', '1', 'Text', '1', '1', '', '', 'style={color:black}', '200', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '0', '', '1', '', '', 'selectOwnAccount()', ''); +INSERT INTO apzl.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 ('LBActualPaymentInfoTemp', '1036', '1036', '1', 'O', 'acc_number', 'acc_number', 'String', '', '±¾·½ÕʺÅ', '', '1', 'Text', '1', '1', '', '', '', '200', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '', '', '1', '', '', '', ''); +INSERT INTO apzl.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 ('LBActualPaymentInfoTemp', '1038', '1038', '1', 'O', 'bank', 'bank', 'String', '', '±¾·½ÒøÐÐ', '', '1', 'Text', '1', '1', '', '', '', '200', '1', '1', '1', '1', '0', 0, '', '', '', 'SYS_Designer', '2021/07/23 09:12:54', '800901U00000008', '2021/08/25 10:59:42', '', '', '1', '', '', '', ''); + -- Ìí¼Ó¹ã·¢ÒøÆóÈÕÖ¾ CREATE TABLE `lb_cgb_log` ( @@ -63,3 +69,23 @@ CREATE TABLE `lb_cgb_log` ( KEY `idx_no_num` (`batch_no`,`serial_num`) ); + +-- Ìí¼ÓÆ·ÅÆÊÓͼ +create view vi_car_brand as select `apzl`.`lb_cardata_brand`.`brandid` AS `brandid`, + `apzl`.`lb_cardata_brand`.`brandname` AS `brandname`, + '³ËÓóµ' AS `cartype`, + 'CYC' AS `cartypea` + from `apzl`.`lb_cardata_brand` + union all select `apzl`.`lb_cardata_commercial_brand`.`brand_id` AS `brand_id`, + `apzl`.`lb_cardata_commercial_brand`.`brand_name` AS `brand_name`, + 'ÉÌÓóµ' AS `ÉÌÓóµ`, + 'SYC' AS `SYC` + from `apzl`.`lb_cardata_commercial_brand`; + + +-- Ìí¼Ó³µÐÍÑ¡Ôñ¿ò +INSERT INTO apzl.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 ('SelectCardataBrandNew', 'Sql', 'Ñ¡Ôñ³µÆ·ÅÆ', '', 'ID', 'Grid', '', 'brandid,cartypea', 'SELECT brandid,brandname,cartype,cartypea FROM vi_car_brand', 'Æû³µID,Æû³µÆ·ÅÆ,Æû³µÀàÐÍ,Æû³µÀàÐͱêʶ', '', 'brandid@brandname@cartype@cartypea', 'brandname,cartype', '1', 'Single', '', '', '', '', '', 'SYS_Designer', '', '2018/05/30 15:27:26', 'SYS_Designer', '2021/06/01 17:46:54', ''); +INSERT INTO apzl.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 ('SelectCardataSeriesCYC', 'Sql', 'Ñ¡Ôñ³µÏµ', null, 'ID', 'Grid', 'String brandid', 'seriesid', 'select se.seriesid,se.seriesname from lb_cardata_series se WHERE se.seriesname IS NOT NULL AND se.brandid=''#brandid'' ORDER BY se.seriesname DESC', 'ϵÁÐID,Æû³µÏµÁÐ', null, 'seriesid@seriesname', 'seriesname', '1', 'Single', null, null, null, null, 'seriesname@ @ @Contains', 'SYS_Designer', null, '2018/05/31 11:29:51', 'SYS_Designer', '2018/07/23 16:45:04', null); +INSERT INTO apzl.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 ('SelectCardataSeriesSYC', 'Sql', 'Ñ¡Ôñ³µÏµ', null, 'ID', 'Grid', 'String brandid', 'seriesid', 'select se.series_id as seriesid,se.series_name as seriesname from lb_cardata_commercial_series se WHERE se.series_name IS NOT NULL AND se.brand_id=''#brandid'' ORDER BY se.series_name DESC', 'ϵÁÐID,Æû³µÏµÁÐ', null, 'seriesid@seriesname', 'seriesname', '1', 'Single', null, null, null, null, 'seriesname@ @ @Contains', 'SYS_Designer', null, '2018/05/31 11:29:51', 'SYS_Designer', '2018/07/23 16:45:04', null); +INSERT INTO apzl.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 ('SelectCardataModelCYC', 'Sql', 'Ñ¡Ôñ³µÐÍ', null, 'ID', 'Grid', 'String seriesid', 'modelid,price,liter,geartype,cartype,vehicletype,vehiclelevel', 'SELECT mo.modelid,mo.modelname,mo.price,mo.liter,mo.geartype,''³ËÓóµ'' as cartype, '''' as vehicletype, '''' as vehiclelevel FROM lb_cardata_model mo WHERE mo.modelname IS NOT NULL and mo.seriesid=''#seriesid'' ORDER BY mo.modelname DESC', '³µÐÍID,Æû³µÀàÐÍ,Ö¸µ¼¼Û,ÅÅÁ¿,µµÎ»,³µÁ¾ÀàÐÍ,ÉÌÓóµÉ豸ÀàÐÍ,ÉÌÓóµÉ豸¼¶±ð', 'modelname@style={width:450px;}', 'modelid@modelname@price@liter@geartype@cartype@vehicletype@vehiclelevel', 'modelname', '1', 'Single', null, null, null, null, null, 'SYS_Designer', null, '2018/05/31 17:04:29', 'SYS_Designer', '2018/07/23 15:36:09', null); +INSERT INTO apzl.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 ('SelectCardataModelSYC', 'Sql', 'Ñ¡Ôñ³µÐÍ', null, 'ID', 'Grid', 'String seriesid', 'modelid,price,liter,geartype,cartype,vehicletype,vehiclelevel', 'SELECT mo.model_id as modelid,mo.model_name as modelname,mo.price,mo.liter,'''' as geartype, ''ÉÌÓóµ'' cartype,mo.vehicle_type as vehicletype,mo.level as vehiclelevel FROM lb_cardata_commercial_model mo WHERE mo.model_name IS NOT NULL and mo.series_id=''#seriesid'' ORDER BY mo.model_name DESC', '³µÐÍID,Æû³µÀàÐÍ,Ö¸µ¼¼Û,ÅÅÁ¿,µµÎ»,³µÁ¾ÀàÐÍ,ÉÌÓóµÉ豸ÀàÐÍ,ÉÌÓóµÉ豸¼¶±ð', 'modelname@style={width:450px;}', 'modelid@modelname@price@liter@geartype@cartype@vehicletype@vehiclelevel', 'modelname', '1', 'Single', null, null, null, null, null, 'SYS_Designer', null, '2018/05/31 17:04:29', 'SYS_Designer', '2018/07/23 15:36:09', null);