Commit 721e0f61 by liuyang

所有单据添加排序导出和更多条件

parent 1f7ec1e4
......@@ -199,11 +199,11 @@ public class HGCW002 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CONTRACT_TYPE);
eiColumn.setDescName("合同类型;1销售合同2劳务合同3补充协议4合同外用工");
eiColumn.setDescName("合同类型");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CONTRACT_CATEGORY);
eiColumn.setDescName("合同类别;1支出2收入");
eiColumn.setDescName("合同类别");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PARTY_A);
......@@ -227,7 +227,7 @@ public class HGCW002 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CONTRACT_STATUS);
eiColumn.setDescName("合同状态;1草签2签约");
eiColumn.setDescName("合同状态");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PARTY_A_NAME);
......@@ -267,11 +267,11 @@ public class HGCW002 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PAYMENT_METHOD);
eiColumn.setDescName("付款方式;1一次性付款2分期付款");
eiColumn.setDescName("付款方式");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PRICING_METHOD);
eiColumn.setDescName("计价方式;1固定单价合同2固定总价合同");
eiColumn.setDescName("计价方式");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_TAX_POINTS);
......@@ -304,7 +304,7 @@ public class HGCW002 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_BALANCE_STATUS);
eiColumn.setDescName("结算状态;1未结算2部分结算3最终结算");
eiColumn.setDescName("结算状态");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY);
......
......@@ -18,6 +18,7 @@ import com.baosight.hggp.hg.sc.domain.HGSC001;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.hg.xs.domain.Org;
import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.util.*;
import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock;
......@@ -535,4 +536,15 @@ public class ServiceHGCW002 extends ServiceBase {
}
return inInfo;
}
public EiInfo export(EiInfo inEiInfo) {
Map params = HGXSUtils.setAuthParam("HGCW002."+ACConstants.SQL_EXPORT, EiInfoUtils.getFirstRow(inEiInfo));
final List<String> list = new ArrayList<>(
Arrays.asList("companyCode", "companyName","projCode","projName","signingDate","contractNumber", "contractName","partyA"
,"partyB","branchUnit","mainContractNumber","contractContent","contractType", "contractCategory"
,"contractStatus", "reviewStatus","balanceStatus","totalContractPriceIncluding"
));
return ExcelUtils.exportToExcel(ACConstants.SQL_COUNT, ACConstants.SQL_EXPORT, params, list, new HGCW002());
}
}
......@@ -182,6 +182,136 @@
</isNotEmpty>
</sql>
<sql id="conditionExport">
<include refid="HGXSDataAuth.authConditionA"/>
<isNotEmpty prepend=" AND " property="id">
A.ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractNumber">
A.CONTRACT_NUMBER like ('%$contractNumber$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractName">
A.CONTRACT_NAME like ('%$contractName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractType">
A.CONTRACT_TYPE = #contractType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractCategory">
A.CONTRACT_CATEGORY = #contractCategory#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyB">
A.PARTY_B like ('%$partyB$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyC">
A.PARTY_C = #partyC#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="planStartDate">
A.PLAN_START_DATE = #planStartDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="planEndDate">
A.PLAN_END_DATE = #planEndDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractStatus">
A.CONTRACT_STATUS = #contractStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyAName">
A.PARTY_A_NAME = #partyAName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyAPhoneNumber">
A.PARTY_A_PHONE_NUMBER = #partyAPhoneNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="alreadyName">
A.ALREADY_NAME = #alreadyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="alreadyPhoneNumber">
A.ALREADY_PHONE_NUMBER = #alreadyPhoneNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="engineeringAddress">
A.ENGINEERING_ADDRESS = #engineeringAddress#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="signingDateFrom">
A.SIGNING_DATE &gt;= REPLACE(#signingDateFrom#, '-', '')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="signingDateTo">
A.SIGNING_DATE &lt;= REPLACE(#signingDateTo#, '-', '')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="mainContractNumber">
A.MAIN_CONTRACT_NUMBER like ('%$mainContractNumber$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractContent">
A.CONTRACT_CONTENT = #contractContent#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractingMethod">
A.CONTRACTING_METHOD = #contractingMethod#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="paymentMethod">
A.PAYMENT_METHOD = #paymentMethod#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="pricingMethod">
A.PRICING_METHOD = #pricingMethod#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="taxPoints">
A.TAX_POINTS = #taxPoints#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalContractPriceExcluding">
A.TOTAL_CONTRACT_PRICE_EXCLUDING = #totalContractPriceExcluding#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="valueAddedTax">
A.VALUE_ADDED_TAX = #valueAddedTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalContractPriceIncluding">
A.TOTAL_CONTRACT_PRICE_INCLUDING = #totalContractPriceIncluding#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="reviewStatus">
A.REVIEW_STATUS = #reviewStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="balanceStatus">
A.BALANCE_STATUS = #balanceStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
A.CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
A.CREATED_NAME like ('%$createdName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
A.CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
A.UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
A.UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
A.UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
A.DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCodes">
A.COMPANY_CODE IN <iterate close=")" open="(" conjunction="," property="companyCodes">#companyCodes[]#</iterate>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="branchUnit">
A.BRANCH_UNIT = #branchUnit#
</isNotEmpty>
</sql>
<sql id="customCondition">
<isNotEmpty prepend=" AND " property="contractNumbers">
CONTRACT_NUMBER IN <iterate close=")" open="(" conjunction="," property="contractNumbers">#contractNumbers[]#</iterate>
......@@ -573,4 +703,51 @@
WHERE
ID = #id#
</update>
<select id="export" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT
A.COMPANY_CODE as "companyCode", <!-- 公司编码 -->
A.COMPANY_NAME as "companyName", <!-- 公司名称 -->
A.PROJ_CODE as "projCode", <!-- 项目编码 -->
A.PROJ_NAME as "projName", <!-- 项目名称 -->
A.CONTRACT_NUMBER as "contractNumber", <!-- 合同号 -->
A.CONTRACT_NAME as "contractName", <!-- 合同名称 -->
D.ITEM_CNAME as "contractType", <!-- 合同类型;1销售合同2劳务合同3补充协议4合同外用工 -->
F.ITEM_CNAME as "contractCategory", <!-- 合同类别;1支出2收入 -->
A.PARTY_A as "partyA", <!-- 甲方名称 -->
A.PARTY_B as "partyB", <!-- 乙方名称 -->
A.PARTY_C as "partyC", <!-- 丙方名称 -->
A.PLAN_START_DATE as "planStartDate", <!-- 计划开工日期 -->
A.PLAN_END_DATE as "planEndDate", <!-- 计划竣工日期 -->
C.ITEM_CNAME as "contractStatus", <!-- 合同状态;1草签2签约 -->
A.PARTY_A_NAME as "partyAName", <!-- 甲方联系人姓名 -->
A.PARTY_A_PHONE_NUMBER as "partyAPhoneNumber", <!-- 甲方联系人电话 -->
A.ALREADY_NAME as "alreadyName", <!-- 已方联系人姓名 -->
A.ALREADY_PHONE_NUMBER as "alreadyPhoneNumber", <!-- 已方联系人电话 -->
A.ENGINEERING_ADDRESS as "engineeringAddress", <!-- 工程地址 -->
A.SIGNING_DATE as "signingDate", <!-- 签约日期 -->
B.CONTRACT_NAME as "mainContractNumber", <!-- 主合同号 -->
A.CONTRACT_CONTENT as "contractContent", <!-- 合同内容 -->
A.CONTRACTING_METHOD as "contractingMethod", <!-- 承包方式 -->
A.PAYMENT_METHOD as "paymentMethod", <!-- 付款方式;1一次性付款2分期付款 -->
A.PRICING_METHOD as "pricingMethod", <!-- 计价方式;1固定单价合同2固定总价合同 -->
A.TAX_POINTS as "taxPoints", <!-- 税点 -->
A.TOTAL_CONTRACT_PRICE_EXCLUDING as "totalContractPriceExcluding", <!-- 合同总价(不含税) -->
A.VALUE_ADDED_TAX as "valueAddedTax", <!-- 税点 -->
A.TOTAL_CONTRACT_PRICE_INCLUDING as "totalContractPriceIncluding", <!-- 合同总价(含税) -->
G.ITEM_CNAME as "reviewStatus", <!-- 审核状态 -->
H.ITEM_CNAME as "balanceStatus", <!-- 结算状态;1未结算2部分结算3最终结算 -->
E.CUST_TYPE_NAME as "branchUnit"
FROM ${hggpSchema}.HGCW002 A
LEFT JOIN ${hggpSchema}.HGCW002 B ON A.CONTRACT_NUMBER = B.MAIN_CONTRACT_NUMBER
LEFT JOIN ${platSchema}.TEDCM01 C ON A.CONTRACT_STATUS = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.cw.contractStatus'
LEFT JOIN ${platSchema}.TEDCM01 D ON A.CONTRACT_TYPE = D.ITEM_CODE AND D.CODESET_CODE = 'hggp.cw.contractType'
LEFT JOIN ${hggpSchema}.HGPZ001 E ON A.BRANCH_UNIT = E.CUST_TYPE
LEFT JOIN ${platSchema}.TEDCM01 F ON A.CONTRACT_CATEGORY = F.ITEM_CODE AND F.CODESET_CODE = 'hggp.cw.contractCategory'
LEFT JOIN ${platSchema}.TEDCM01 G ON A.REVIEW_STATUS = G.ITEM_CODE AND G.CODESET_CODE = 'hggp.cw.reviewStatus'
LEFT JOIN ${platSchema}.TEDCM01 H ON A.BALANCE_STATUS = H.ITEM_CODE AND H.CODESET_CODE = 'hggp.cw.balanceStatus'
WHERE 1=1
<include refid="conditionExport"/>
ORDER BY A.ID DESC
</select>
</sqlMap>
......@@ -226,11 +226,11 @@ public class HGSC001 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_proj_status);
eiColumn.setDescName("项目状态 0:在建;1:完工");
eiColumn.setDescName("项目状态");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_approval_status);
eiColumn.setDescName("审批状态 0:待审;1:审核中;2:已审");
eiColumn.setDescName("审批状态");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_permiss_start_date);
......
......@@ -140,7 +140,7 @@ public class HGSC003 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_blueprint_status);
eiColumn.setType("N");
eiColumn.setType("C");
eiColumn.setDescName("蓝图状态 0:停用,1:启用");
eiMetadata.addMeta(eiColumn);
......
......@@ -160,8 +160,8 @@ public class HGSC004 extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_material_status);
eiColumn.setType("N");
eiColumn.setScaleLength(0);
eiColumn.setType("C");
//eiColumn.setScaleLength(0);
eiColumn.setFieldLength(4);
eiColumn.setDescName("物料状态 0:未提交,1:部分提交,2:全部提交");
eiMetadata.addMeta(eiColumn);
......
......@@ -307,7 +307,7 @@ public class HGSC004A extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_product_status);
eiColumn.setType("N");
eiColumn.setType("C");
eiColumn.setScaleLength(0);
eiColumn.setFieldLength(4);
eiColumn.setDescName("产品状态 0:未提交,1:已提交");
......@@ -342,7 +342,7 @@ public class HGSC004A extends DaoEPBase {
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_approval_status);
eiColumn.setType("N");
eiColumn.setType("C");
eiColumn.setScaleLength(0);
eiColumn.setFieldLength(4);
eiColumn.setDescName("审批状态\t0:待审;1:审核中;2:已审");
......
......@@ -6,6 +6,7 @@ import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.dao.DaoBase;
import com.baosight.hggp.core.dao.DaoUtils;
import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.hg.cw.domain.HGCW002;
import com.baosight.hggp.hg.pz.domain.HGPZ001;
import com.baosight.hggp.hg.pz.domain.HGPZ002;
import com.baosight.hggp.hg.sc.constant.HgScSqlConstant;
......@@ -16,7 +17,9 @@ import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.hg.xs.domain.Dept;
import com.baosight.hggp.hg.xs.domain.User;
import com.baosight.hggp.hg.xs.tools.HGXSTools;
import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.util.*;
import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
......@@ -256,5 +259,16 @@ public class ServiceHGSC001 extends ServiceBase {
return inInfo;
}
@OperationLogAnnotation(operModul = "项目立项", operType = "导出", operDesc = "导出记录")
public EiInfo export(EiInfo inEiInfo) {
Map params = HGXSUtils.setAuthParam("HGSC001."+ACConstants.SQL_EXPORT, EiInfoUtils.getFirstRow(inEiInfo));
final List<String> list = new ArrayList<>(
Arrays.asList( "companyName","projCode","projName","subcontract_name","genral_contract_name","branchUnit",
"projType","permissStartDate","startDate","endDate","projStatus","approvalStatus"
));
return ExcelUtils.exportToExcel(ACConstants.SQL_COUNT, ACConstants.SQL_EXPORT, params, list, new HGSC001());
}
}
......@@ -10,7 +10,9 @@ import com.baosight.hggp.hg.sc.domain.HGSC002;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.sc.util.HGSCUtil;
import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.util.*;
import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
......@@ -133,5 +135,16 @@ public class ServiceHGSC002 extends ServiceBase {
}
@OperationLogAnnotation(operModul = "项目立项", operType = "导出", operDesc = "导出记录")
public EiInfo export(EiInfo inEiInfo) {
Map params = HGXSUtils.setAuthParam("HGSC002."+ ACConstants.SQL_EXPORT, EiInfoUtils.getFirstRow(inEiInfo));
final List<String> list = new ArrayList<>(
Arrays.asList( "companyName","projCode","projName","personDepName","personName","personPhone",
"personIdCard","createdName","createdTime"
));
return ExcelUtils.exportToExcel(ACConstants.SQL_COUNT, ACConstants.SQL_QUERY, params, list, new HGSC002());
}
}
package com.baosight.hggp.hg.sc.service;
import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import com.baosight.hggp.common.DdynamicEnum;
import com.baosight.hggp.core.dao.DaoUtils;
import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.hg.constant.HGConstant;
import com.baosight.hggp.hg.sc.domain.HGSC001;
import com.baosight.hggp.hg.sc.domain.HGSC002;
import com.baosight.hggp.hg.sc.domain.HGSC003;
import com.baosight.hggp.hg.sc.domain.HGSC099;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.util.*;
import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
......@@ -203,5 +207,16 @@ public class ServiceHGSC003 extends ServiceBase {
return inInfo;
}
@OperationLogAnnotation(operModul = "蓝图清单", operType = "导出", operDesc = "导出记录")
public EiInfo export(EiInfo inEiInfo) {
Map params = HGXSUtils.setAuthParam("HGSC003."+ ACConstants.SQL_EXPORT, EiInfoUtils.getFirstRow(inEiInfo));
final List<String> list = new ArrayList<>(
Arrays.asList( "companyCode","companyName","blueprintCode","blueprintName","projCode","projName"
,"blueprintStatus","createdName","createdTime"
));
return ExcelUtils.exportToExcel(ACConstants.SQL_COUNT, ACConstants.SQL_EXPORT, params, list, new HGSC003());
}
}
......@@ -13,7 +13,9 @@ import com.baosight.hggp.hg.sc.domain.HGSC004;
import com.baosight.hggp.hg.sc.domain.HGSC004A;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.util.*;
import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
......@@ -209,5 +211,16 @@ public class ServiceHGSC004 extends ServiceBase {
}
return inInfo;
}
@OperationLogAnnotation(operModul = "物料清单", operType = "导出", operDesc = "导出记录")
public EiInfo export(EiInfo inEiInfo) {
Map params = HGXSUtils.setAuthParam("HGSC004."+ ACConstants.SQL_EXPORT, EiInfoUtils.getFirstRow(inEiInfo));
final List<String> list = new ArrayList<>(
Arrays.asList( "companyCode","companyName","projCode","projName","blueprintCode","blueprintName"
,"materialStatus","createdName","createdTime"
));
return ExcelUtils.exportToExcel(ACConstants.SQL_COUNT, ACConstants.SQL_EXPORT, params, list, new HGSC004());
}
}
......@@ -15,12 +15,8 @@ import com.baosight.hggp.hg.sc.domain.HGSC004A;
import com.baosight.hggp.hg.sc.domain.HGSC005;
import com.baosight.hggp.hg.sc.domain.HGSC005A;
import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.util.AssertUtils;
import com.baosight.hggp.util.CommonMethod;
import com.baosight.hggp.util.EiInfoUtils;
import com.baosight.hggp.util.ErrorCodeUtils;
import com.baosight.hggp.util.LogUtils;
import com.baosight.hggp.util.MapUtils;
import com.baosight.hggp.hg.xs.utils.HGXSUtils;
import com.baosight.hggp.util.*;
import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant;
......@@ -702,5 +698,17 @@ public class ServiceHGSC004A extends ServiceBase {
}
return inInfo;
}
@OperationLogAnnotation(operModul = "物料清单详情", operType = "导出", operDesc = "导出记录")
public EiInfo export(EiInfo inEiInfo) {
Map params = HGXSUtils.setAuthParam("HGSC004A."+ ACConstants.SQL_EXPORT, EiInfoUtils.getFirstRow(inEiInfo));
final List<String> list = new ArrayList<>(
Arrays.asList( "companyCode","companyName","projCode","projName","parentProdCode","parentProdName"
,"productCode", "productName","inventSource","spec", "length", "width", "thick", "quantity","singleWeight"
,"totalWeight", "approvalStatus","productStatus"
));
return ExcelUtils.exportToExcel(ACConstants.SQL_COUNT, ACConstants.SQL_EXPORT, params, list, new HGSC004A());
}
}
......@@ -128,6 +128,88 @@
</isNotEmpty>
</sql>
<sql id="conditionExport">
<include refid="HGXSDataAuth.authConditionA"/>
<isNotEmpty prepend=" AND " property="id">
A.id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.company_code = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.company_name like ('%$companyName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="subcontractCode">
A.subcontract_code = #subcontractCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="subcontractName">
A.subcontract_name like ('%$subcontractName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="genralContractCode">
A.genral_contract_code = #genralContractCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="genralContractName">
A.genral_contract_name like ('%$genralContractName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyPmName">
A.party_pm_name = #partyPmName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyPmHpone">
A.party_pm_hpone = #partyPmHpone#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractName">
A.contract_name like ('%$contractName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="contractWorkTxt">
A.contract_work_txt = #contractWorkTxt#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.proj_name like concat('%', #projName#, '%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projectName">
A.proj_name like concat('%', #projectName#, '%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projType">
A.proj_type = #projType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projStatus">
A.proj_status = #projStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="approvalStatus">
A.approval_status = #approvalStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="permissStartDate">
A.permiss_start_date = #permissStartDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="startDate">
A.start_date = #startDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="endDate">
A.end_date = #endDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
A.created_by = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
A.created_name = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
A.updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
A.updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projectSource">
A.project_source = #projectSource#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="branchUnit">
A.branch_unit = #branchUnit#
</isNotEmpty>
</sql>
<sql id="customCondition">
<include refid="condition"/>
<isNotEmpty prepend=" AND " property="projCodes">
......@@ -349,4 +431,36 @@
WHERE PROJ_CODE = #projCode#
</update>
<select id="export" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT
A.COMPANY_CODE as "companyCode", <!-- 公司编码 -->
A.COMPANY_NAME as "companyName", <!-- 公司名称 -->
A.subcontract_code as "subcontractCode", <!-- 分包商编码 -->
A.subcontract_name as "subcontractName", <!-- 分包商名称 -->
A.genral_contract_code as "genralContractCode", <!-- 总包商编码 -->
A.genral_contract_name as "genralContractName", <!-- 总包商名称 -->
A.party_pm_name as "partyPmName", <!-- 甲方项目经理名称 -->
A.party_pm_hpone as "partyPmHpone", <!-- 甲方项目经理联系电话 -->
A.contract_no as "contractNo", <!-- 合同号 -->
A.contract_name as "contractName", <!-- 合同名称 -->
A.contract_work_txt as "contractWorkTxt", <!-- 合同工作量 -->
A.proj_code as "projCode", <!-- 项目编码 -->
A.proj_name as "projName", <!-- 项目名称 -->
B.NAT_NAME as "projType", <!-- 项目性质 -->
C.ITEM_CNAME as "projStatus", <!-- 项目状态 0:在建;1:完工 -->
H.ITEM_CNAME as "approvalStatus", <!-- 审批状态 0:待审;1:审核中;2:已审 -->
A.permiss_start_date as "permissStartDate", <!-- 准许开工日期 -->
A.start_date as "startDate", <!-- 开工日期 -->
A.end_date as "endDate", <!-- 完工日期 -->
E.CUST_TYPE_NAME as "branchUnit" <!-- 分公司 -->
FROM ${hggpSchema}.HGSC001 A
LEFT JOIN ${hggpSchema}.HGPZ001 E ON A.BRANCH_UNIT = E.CUST_TYPE
LEFT JOIN ${hggpSchema}.HGPZ008 B ON A.proj_type = B.NAT_CODE
LEFT JOIN ${platSchema}.TEDCM01 C ON A.proj_status = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.projStatus'
LEFT JOIN ${platSchema}.TEDCM01 H ON A.approval_status = H.ITEM_CODE AND H.CODESET_CODE = 'hggp.commitStatus'
WHERE 1=1
<include refid="conditionExport"/>
ORDER BY A.ID DESC
</select>
</sqlMap>
......@@ -54,6 +54,58 @@
</isNotEmpty>
</sql>
<sql id="conditionExport">
<include refid="HGXSDataAuth.authConditionA"/>
<isNotEmpty prepend=" AND " property="id">
A.id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.company_code = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.company_name like ('%$companyName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="blueprintCode">
A.blueprint_code = #blueprintCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="blueprintName">
A.blueprint_name like ('%$blueprintName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.proj_name like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="blueprintStatus">
A.blueprint_status = #blueprintStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="approvalStatus">
A.approval_status = #approvalStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
A.account_code = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
A.created_by = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
A.created_name = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
A.created_time = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
A.updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
A.updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
A.updated_time = #updatedTime#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hggp.hg.sc.domain.HGSC003">
SELECT
......@@ -199,4 +251,37 @@
</isNotEmpty>
ORDER BY BLUEPRINT_CODE
</select>
<select id="export" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT
A.id as "id", <!-- 主键 -->
A.company_code as "companyCode", <!-- 公司编码 -->
A.company_name as "companyName", <!-- 公司名称 -->
A.dep_code as "depCode", <!-- 部门编码 -->
A.dep_name as "depName", <!-- 部门名称 -->
A.blueprint_code as "blueprintCode", <!-- 蓝图编号 -->
A.blueprint_name as "blueprintName", <!-- 蓝图名称 -->
A.proj_code as "projCode", <!-- 项目编码 -->
A.proj_name as "projName", <!-- 项目名称 -->
B.ITEM_CNAME as "blueprintStatus", <!-- 蓝图状态 0:停用,1:启用 -->
case A.approval_status
when 0 then '待审'
when 1 then '审核中'
when 2 then '已审'
else ''
end as "approvalStatus", <!-- 审批状态 0:待审;1:审核中;2:已审 -->
A.account_code as "accountCode", <!-- 帐套 -->
A.created_by as "createdBy", <!-- 创建人 -->
A.created_name as "createdName", <!-- 创建人名称 -->
A.created_time as "createdTime", <!-- 创建时间 -->
A.updated_by as "updatedBy", <!-- 更新人 -->
A.updated_name as "updatedName", <!-- 修改人名称 -->
A.updated_time as "updatedTime" <!-- 更新时间 -->
FROM ${hggpSchema}.HGSC003 A
LEFT JOIN ${platSchema}.TEDCM01 B ON A.blueprint_status = B.ITEM_CODE AND B.CODESET_CODE = 'hggp.hgsc.enablingStatus'
WHERE 1=1
<include refid="conditionExport" />
ORDER BY A.CREATED_TIME desc
</select>
</sqlMap>
......@@ -69,6 +69,73 @@
</isNotEmpty>
</sql>
<sql id="conditionExport">
<include refid="HGXSDataAuth.authConditionA"/>
<isNotEmpty prepend=" AND " property="id">
A.id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="blueprintId">
blueprint_id = #blueprintId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
company_name like ('%$companyName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depName">
dep_name = #depName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="blueprintCode">
blueprint_code = #blueprintCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="blueprintName">
blueprint_name like ('%$blueprintName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
proj_name like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="materialStatus">
material_status = #materialStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="approvalStatus">
approval_status = #approvalStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
account_code = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
created_by = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
created_name = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
created_time = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="delStatus">
del_status = #delStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="ids">
ID IN <iterate close=")" open="(" conjunction="," property="ids">#ids[]#</iterate>
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hggp.hg.sc.domain.HGSC004">
SELECT
......@@ -235,4 +302,34 @@
<select id="maxId" resultClass="long">
SELECT MAX(ID) AS "id" FROM ${hggpSchema}.HGSC004
</select>
<select id="export" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT
A.id as "id", <!-- 主键 -->
A.blueprint_id as "blueprintId", <!-- 蓝图id -->
A.company_code as "companyCode", <!-- 公司编码 -->
A.company_name as "companyName", <!-- 公司名称 -->
A.dep_code as "depCode", <!-- 部门编号 -->
A.dep_name as "depName", <!-- 部门名称 -->
A.blueprint_code as "blueprintCode", <!-- 蓝图编号 -->
A.blueprint_name as "blueprintName", <!-- 蓝图名称 -->
A.proj_code as "projCode", <!-- 项目编码 -->
A.proj_name as "projName", <!-- 项目名称 -->
C.ITEM_CNAME AS "materialStatus", <!-- 物料状态 0:未提交,1:部分提交,2:全部提交 -->
A.approval_status as "approvalStatus", <!-- 审批状态 0:待审;1:审核中;2:已审 -->
A.del_status as "delStatus", <!-- 数据状态 0:保存,1:删除 -->
A.account_code as "accountCode", <!-- 帐套 -->
A.created_by as "createdBy", <!-- 创建人 -->
A.created_name as "createdName", <!-- 创建人名称 -->
A.created_time as "createdTime", <!-- 创建时间 -->
A.updated_by as "updatedBy", <!-- 更新人 -->
A.updated_name as "updatedName", <!-- 修改人名称 -->
A.updated_time as "updatedTime" <!-- 更新时间 -->
FROM ${hggpSchema}.HGSC004 A
LEFT JOIN ${platSchema}.TEDCM01 C ON A.material_status = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.sc.materialStatus'
WHERE 1=1 AND A.del_status = 0
<include refid="conditionExport" />
ORDER BY A.CREATED_TIME desc
</select>
</sqlMap>
......@@ -151,6 +151,116 @@
</isNotEmpty>
</sql>
<sql id="conditionExport">
<isNotEmpty prepend=" AND " property="id">
A.id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.company_code = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.company_name = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
A.dep_code = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depName">
A.dep_name = #depName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.proj_name = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="parentProdCode">
A.parent_prod_code = #parentProdCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="parentProdName">
A.parent_prod_name LIKE CONCAT('%',#parentProdName#,'%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="materialId">
A.material_id = #materialId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productCode">
A.product_code = #productCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productName">
A.product_name LIKE CONCAT('%',#productName#,'%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productStatus">
A.product_status = #productStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="changeType">
A.change_type = #changeType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventType">
A.invent_type = #inventType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="spec">
A.SPEC = #spec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
A.quantity = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="singleWeight">
A.single_weight = #singleWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalWeight">
A.total_weight = #totalWeight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="approvalStatus">
A.approval_status = #approvalStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
A.account_code = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
A.created_by = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
A.created_name = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
A.created_time = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
A.updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
A.updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
A.updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="materialIds">
A.material_Id IN <iterate close=")" open="(" conjunction="," property="materialIds">#materialIds[]#</iterate>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productId">
A.product_id = #productId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productType">
A.product_type = #productType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="notId">
A.id != #notId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="ids">
A.id IN <iterate close=")" open="(" conjunction="," property="ids">#ids[]#</iterate>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="length">
A.length = #length#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="width">
A.width = #width#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thick">
A.thick = #thick#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventSource">
A.invent_source = #inventSource#
</isNotEmpty>
</sql>
<sql id="authCondition">
<isNotEmpty prepend=" AND " property="companyCode">
......@@ -619,4 +729,52 @@
<include refid="idCondition"/>
</update>
<select id="export" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT
A.id as "id", <!-- 主键 -->
A.company_code as "companyCode", <!-- 公司编码(预留) -->
A.company_name as "companyName", <!-- 公司名称(预留) -->
A.dep_code as "depCode", <!-- 部门编号(预留) -->
A.dep_name as "depName", <!-- 部门名称(预留) -->
A.proj_code as "projCode", <!-- 项目编码(预留) -->
A.proj_name as "projName", <!-- 项目名称(预留) -->
A.parent_prod_code as "parentProdCode", <!-- 父节点-产品编码 -->
A.parent_prod_name as "parentProdName", <!-- 父节点-产品名称 -->
A.material_id as "materialId", <!-- 物料清单id -->
A.product_id as "productId", <!-- 产品id -->
A.product_type as "productType", <!-- 产品类别 -->
A.product_code as "productCode", <!-- 产品编号 -->
A.product_name as "productName", <!-- 产品名称 -->
A.invent_type as "inventType", <!-- 档案类型 -->
C.ITEM_CNAME as "inventSource", <!-- 物料来源 1加工 2外购 -->
A.spec as "spec", <!-- 规格 -->
A.length as "length", <!-- 长 -->
A.width as "width", <!-- 宽 -->
A.thick as "thick", <!-- 厚 -->
E.ITEM_CNAME as "productStatus", <!-- 产品状态 0:未提交,1:已提交 -->
B.ITEM_CNAME as "changeType", <!-- 变更类型:默认0,1:增加,2:替换,3:删除 -->
A.quantity as "quantity", <!-- 数量 -->
A.single_weight as "singleWeight", <!-- 单重 -->
A.total_weight as "totalWeight", <!-- 总重 -->
D.ITEM_CNAME as "approvalStatus", <!-- 审批状态 0:待审;1:审核中;2:已审 -->
A.leaf as "leaf", <!-- 是否有叶子节点 -->
A.sort as "sort", <!-- 排序字段 -->
A.lv as "lv", <!-- 层级 -->
A.account_code as "accountCode", <!-- 帐套 -->
A.created_by as "createdBy", <!-- 创建人 -->
A.created_name as "createdName", <!-- 创建人名称 -->
A.created_time as "createdTime", <!-- 创建时间 -->
A.updated_by as "updatedBy", <!-- 更新人 -->
A.updated_name as "updatedName", <!-- 修改人名称 -->
A.updated_time as "updatedTime" <!-- 更新时间 -->
FROM ${hggpSchema}.HGSC004A A
LEFT JOIN ${platSchema}.TEDCM01 B ON A.change_type = B.ITEM_CODE AND B.CODESET_CODE = 'hggp.sc.changeType'
LEFT JOIN ${platSchema}.TEDCM01 C ON A.invent_source = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.pz.inventSource'
LEFT JOIN ${platSchema}.TEDCM01 D ON A.approval_status = D.ITEM_CODE AND D.CODESET_CODE = 'hggp.hgyx.status'
LEFT JOIN ${platSchema}.TEDCM01 E ON A.product_status = E.ITEM_CODE AND E.CODESET_CODE = 'hggp.sc.productStatus'
WHERE 1=1 AND A.lv NOT IN (1,2)
<include refid="conditionExport" />
ORDER BY A.CREATED_TIME desc
</select>
</sqlMap>
package com.baosight.hggp.hg.xs.utils;
import com.baosight.hggp.common.DataAuthTypeEnum;
import com.baosight.hggp.core.constant.CommonConstant;
import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.core.tools.ThreadLocalTools;
import com.baosight.hggp.hg.pz.domain.HGPZ009;
import com.baosight.hggp.hg.xs.domain.HGXS006;
import com.baosight.hggp.hg.xs.domain.HGXS007;
import com.baosight.hggp.hg.xs.domain.Org;
import com.baosight.hggp.hg.xs.domain.User;
import com.baosight.hggp.hg.xs.domain.UserGroup;
import com.baosight.hggp.hg.xs.tools.HGXSTools;
import com.baosight.hggp.util.AssertUtils;
import com.baosight.hggp.util.MapUtils;
import com.baosight.hggp.util.ObjectUtils;
import com.baosight.hggp.util.StringUtils;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext;
import org.apache.commons.collections.CollectionUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @author:songx
......@@ -231,5 +240,156 @@ public class HGXSUtils {
return HGXSTools.HgXs007.map(ids);
}
}
/**
* 设置权限参数
*
* @param name
* @param parameters
*/
public static Map setAuthParam(String name, Map parameters) {
// 需要过滤部分sql name,否则会形成死循环
if (!name.startsWith("HG")) {
return parameters;
}
Map params = new HashMap<>();
if (parameters != null) {
params.putAll(parameters);
}
// 设置企业信息
setAccountCode(name, params);
// 设置数据查询权限
setDataAuth(name, params);
return params;
}
/**
* 设置企业编码
*
* @param name
* @param parameters
*/
public static void setAccountCode(String name, Map parameters) {
// 需要过滤部分sql name,否则会形成死循环
String[] serviceFilter = {"HGXSUser", "HGPZ009"};
if (StringUtils.startsWithAny(name, serviceFilter)) {
return;
}
// 本来是BUG,避免业务代码改动依然保持原逻辑ADMIN时依然置空
String accountCode = UserSessionUtils.getAccountCode();
if (CommonConstant.Field.ADMIN.equals(accountCode)) {
parameters.put("accountCode", null);
} else if (StringUtils.isBlank(accountCode)) {
parameters.put("accountCode", " ");
} else {
parameters.put("accountCode", accountCode);
}
}
/**
* 设置数据权限
*
* @param name
* @param parameters
*/
public static void setDataAuth(String name, Map parameters) {
// 本次操作不做权限
boolean notAuth = MapUtils.getBooleanValue(parameters, "notAuth");
if (notAuth) {
return;
}
// 需要过滤部分sql name,否则会形成死循环;admin账户不需要校验
String loginName = UserSessionUtils.getLoginName();
String[] serviceFilter = {"HGXSUser", "HGXSOrg", "HGXSUserGroup", "HGPZ009", "HGPZ010.query"};
if (StringUtils.startsWithAny(name, serviceFilter) || "admin".equalsIgnoreCase(loginName)) {
return;
}
// 是否启用数据权限
if (!ThreadLocalTools.DATA_AUTH.get()) {
return;
}
String authEnable = PlatApplicationContext.getProperty("iplat4j.page.auth.enable");
if (StringUtils.isNotBlank(authEnable) && CommonConstant.YesNo.NO_S0.equals(authEnable)) {
return;
}
// 租户是否开启数据权限
HGPZ009 dbPz009 = UserSessionUtils.getAccount();
if (dbPz009 != null && CommonConstant.YesNo.NO_0.equals(dbPz009.getDataAuthFlag())) {
return;
}
// 当前用户所有角色
List<UserGroup> userGroups = UserSessionUtils.getRole();
AssertUtils.isEmpty(userGroups, "当前用户未绑定角色,无法操作数据,请联系管理员!");
// 构建数据权限
buildDataAuth(userGroups, parameters);
}
/**
* 构建部门权限
*
* @param userGroups
* @param parameters
*/
public static void buildDataAuth(List<UserGroup> userGroups, Map parameters) {
List<String> depCodes = new ArrayList<>();
boolean onlyPeople = false;
for (UserGroup userGroup : userGroups) {
String dataAuthType = userGroup.getDataAuthType();
if (DataAuthTypeEnum.ONLY_PEOPLE.getCode().equals(dataAuthType)) {
onlyPeople = true;
} else {
List<String> depAuths = buildDepCondition(userGroup);
if (CollectionUtils.isNotEmpty(depAuths)) {
depCodes.addAll(depAuths);
}
}
}
// 无权限
if (!onlyPeople && CollectionUtils.isEmpty(depCodes)) {
parameters.put("authDepCode", DataAuthTypeEnum.NO_AUTH.getCode());
return;
}
// 组合权限
if (onlyPeople && CollectionUtils.isNotEmpty(depCodes)) {
parameters.put("authCombination", CommonConstant.YesNo.YES_1);
}
// 仅本人
if (onlyPeople) {
parameters.put("authOnlyPeople", UserSessionUtils.getLoginName());
}
// 去除重复数据
if (CollectionUtils.isNotEmpty(depCodes)) {
parameters.put("authDepCodes", depCodes.stream().distinct().collect(Collectors.toList()));
}
}
/**
* 组装 Custom Data Auth Condition
*
* @param userGroup
*/
public static List<String> buildDepCondition(UserGroup userGroup) {
String dataAuthType = userGroup.getDataAuthType();
if (StringUtils.isBlank(dataAuthType)) {
return null;
}
if (DataAuthTypeEnum.ONLY_COMPANY.getCode().equals(dataAuthType)) {
if (StringUtils.isBlank(userGroup.getCompanyCode())) {
return null;
}
return HGXSTools.XsOrg.queryChildren(userGroup.getCompanyCode());
} else if (DataAuthTypeEnum.ONLY_FACTORY.getCode().equals(dataAuthType)) {
if (StringUtils.isBlank(userGroup.getFactoryCode())) {
return null;
}
return HGXSTools.XsOrg.queryChildren(userGroup.getFactoryCode());
} else if (DataAuthTypeEnum.ONLY_DEPT.getCode().equals(dataAuthType)) {
if (StringUtils.isBlank(userGroup.getDepCode())) {
return null;
}
return HGXSTools.XsOrg.queryChildren(userGroup.getDepCode());
}
return null;
}
}
......@@ -131,185 +131,7 @@ module.exports = {
inInfo.set('inqu_status-0-depositDate',this.dataPicker)
IPLAT.EiCommunicator.send('HGSC007', 'getByProjCodeWt', inInfo, {
onSuccess: function (res) {
let list = [
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称项目名称项目名称项目名称项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
},
{
projName:'项目名称',
completeDate:'2024-04-20',
totalWeight:'2000',
finishWeight:'2300',
schedule:'120',
}
]
_this.getByProjCodewtWtList = res.extAttr.result&& res.extAttr.result.length? res.extAttr.result: list;
_this.getByProjCodewtWtList = res.extAttr.result;
_this.$nextTick(() => {
tableContentScroll('tableId1')
})
......
......@@ -4,6 +4,9 @@ $(function() {
$("#QUERY").on("click", function () {
query();
});
$("#QUERY_MORE").on("click",function (){
grush.queryMore(68)
})
IPLATUI.EFGrid.result = {
......@@ -22,6 +25,35 @@ $(function() {
}
}
],
exportGrid: {
beforeExport: function (gridInstance) {
var validator1 = IPLAT.Validator({
id: "inqu"
});
// 点击按钮后校验
if (!validator1.validate()) {
var errorMsg = validator1.errors().toString();
var errs = errorMsg.split(',');
IPLAT.alert({
message: '<b>错误:<br>' + errs.join('<br>') + '</b>',
okFn: function (e) {
},
title: '错误'
});
return false;
}
return true;
},
exportServiceName: "HGCW002", // gridserviceName
exportMethodName: "export", // gridqueryMethod
exportFileName: function (gridInstance) {
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return "合同管理_" + kendo.toString(new Date(), IPLAT.FORMAT.DATE_14_PR);
},
exportFileType: "xls", // 默认值是xls,可选值为pdf[规划中]
exportBlockId: "result", // 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete: function (e) {
$("#BTN_INSERT").on("click",addFunc);
$("#BTN_UPDATE").on("click",updateFunc);
......
......@@ -4,6 +4,13 @@
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<style type="text/css">
#more {
height: 0;
overflow: hidden;
transition: height 0.5s ease-in-out;
}
</style>
<script>
var ctx = "${ctx}";
</script>
......@@ -30,6 +37,8 @@
startName="signingDateFrom" endName="signingDateTo" row="0" role="date"
format="yyyy-MM-dd" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true">
</EF:EFDateSpan>
</div>
<div class="row" id="more">
<EF:EFInput cname="甲方名称" ename="partyA" blockId="inqu_status" row="0" colWidth="3" />
<EF:EFInput cname="乙方名称" ename="partyB" blockId="inqu_status" row="0" colWidth="3" />
<EF:EFSelect cname="分支单位" ename="inqu_status-0-branchUnit" colWidth="3" filter="contains">
......@@ -53,9 +62,9 @@
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" autoBind="false" autoFit="false">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" autoBind="false" autoFit="false" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="200" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="200" align="center" sort="false"/>
<EF:EFColumn ename="companyName" cname="所属公司" align="center" enable="false"/>
<EF:EFColumn ename="projCode" cname="项目编号" align="center" enable="false"/>
<EF:EFColumn ename="projName" cname="项目名称" align="center" enable="false"/>
......
......@@ -5,6 +5,9 @@ $(function () {
resultGrid.dataSource.page(1);
});
$("#QUERY_MORE").on("click",function (){
grush.queryMore(34)
})
IPLATUI.EFGrid.result = {
pageable: {
......@@ -43,6 +46,35 @@ $(function () {
}
}
],
exportGrid: {
beforeExport: function (gridInstance) {
var validator1 = IPLAT.Validator({
id: "inqu"
});
// 点击按钮后校验
if (!validator1.validate()) {
var errorMsg = validator1.errors().toString();
var errs = errorMsg.split(',');
IPLAT.alert({
message: '<b>错误:<br>' + errs.join('<br>') + '</b>',
okFn: function (e) {
},
title: '错误'
});
return false;
}
return true;
},
exportServiceName: "HGSC001",
exportMethodName: "export",
exportFileName: function (gridInstance) {
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return "项目立项_" + kendo.toString(new Date(), IPLAT.FORMAT.DATE_14_PR);
},
exportFileType: "xls", // 默认值是xls,可选值为pdf[规划中]
exportBlockId: "result", // 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete: function(grid){
// 新增
$("#add").click(create);
......
......@@ -4,7 +4,13 @@
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<style type="text/css">
#more {
height: 0;
overflow: hidden;
transition: height 0.5s ease-in-out;
}
</style>
<script>
var ctx = "${ctx}";
</script>
......@@ -29,12 +35,24 @@
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.projStatus" />
</EF:EFSelect>
<EF:EFSelect cname="分支单位" ename="inqu_status-0-branchUnit" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="customer_record_block_id" valueField="valueField" textField="textField"/>
</EF:EFSelect>
</div>
<div class="row" id="more">
<EF:EFDatePicker blockId="inqu_status" row="0" ename="permissStartDate" cname="准许开工日期"
role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFDatePicker blockId="inqu_status" row="0" ename="startDate" cname="开工日期"
role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFDatePicker blockId="inqu_status" row="0" ename="endDate" cname="完工日期"
role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" copyToAdd="false">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" copyToAdd="false" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="100" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="100" align="center" sort="false"/>
<EF:EFColumn ename="companyName" cname="公司名称" enable="false" width="120" align="center"/>
<EF:EFColumn ename="projCode" cname="项目编码" enable="false" width="120" align="center"/>
<EF:EFColumn ename="projName" cname="项目名称" enable="false" width="120" align="center"/>
......
......@@ -112,6 +112,34 @@ $(function () {
}
}
],
exportGrid: {
beforeExport: function (gridInstance) {
var validator1 = IPLAT.Validator({
id: "inqu"
});
// 点击按钮后校验
if (!validator1.validate()) {
var errorMsg = validator1.errors().toString();
var errs = errorMsg.split(',');
IPLAT.alert({
message: '<b>错误:<br>' + errs.join('<br>') + '</b>',
okFn: function (e) {
},
title: '错误'
});
return false;
}
return true;
},
exportFileName: function (gridInstance) {
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return "项目人员_" + kendo.toString(new Date(), IPLAT.FORMAT.DATE_14_PR);
},
exportServiceName: "HGSC002",
exportMethodName: "export",
exportFileType: "xls", // 默认值是xls,可选值为pdf[规划中]
exportBlockId: "result", // 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete: function(grid) {
// 此 grid 对象
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
......
......@@ -4,7 +4,6 @@
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script>
var ctx = "${ctx}";
</script>
......@@ -18,16 +17,17 @@
<EF:EFInput ename="inqu_status-0-personName" cname="姓名" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput ename="inqu_status-0-personIdCard" cname="身份证号" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput ename="inqu_status-0-personPhone" cname="电话" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput ename="inqu_status-0-personDepName" cname="所属部门" placeholder="模糊查询" colWidth="3"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" >
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="createdBy" cname="创建人" hidden="true"/>
<EF:EFColumn ename="updatedBy" cname="修改人" hidden="true"/>
<EF:EFColumn ename="companyName" cname="公司名称" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="true" width="100" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="true" width="100" align="center" sort="false"/>
<EF:EFColumn ename="companyCode" cname="公司名称" enable="true" width="120" align="center" required="true"/>
<EF:EFColumn ename="projCode" cname="项目编码" enable="true" width="160" align="center" required="true"/>
<EF:EFColumn ename="projName" cname="项目名称" enable="false" width="120" align="center" readonly="true"/>
......
......@@ -100,6 +100,34 @@ $(function (){
}
}
],
exportGrid: {
beforeExport: function (gridInstance) {
var validator1 = IPLAT.Validator({
id: "inqu"
});
// 点击按钮后校验
if (!validator1.validate()) {
var errorMsg = validator1.errors().toString();
var errs = errorMsg.split(',');
IPLAT.alert({
message: '<b>错误:<br>' + errs.join('<br>') + '</b>',
okFn: function (e) {
},
title: '错误'
});
return false;
}
return true;
},
exportFileName: function (gridInstance) {
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return "蓝图清单_" + kendo.toString(new Date(), IPLAT.FORMAT.DATE_14_PR);
},
exportServiceName: "HGSC003",
exportMethodName: "export",
exportFileType: "xls", // 默认值是xls,可选值为pdf[规划中]
exportBlockId: "result", // 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete: function(grid) {
// 此 grid 对象
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
......
......@@ -23,9 +23,9 @@
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" copyToAdd="false">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" copyToAdd="false" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="170" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="170" align="center" sort="false"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
......
......@@ -136,6 +136,34 @@ $(function (){
}
}
],
exportGrid: {
beforeExport: function (gridInstance) {
var validator1 = IPLAT.Validator({
id: "inqu"
});
// 点击按钮后校验
if (!validator1.validate()) {
var errorMsg = validator1.errors().toString();
var errs = errorMsg.split(',');
IPLAT.alert({
message: '<b>错误:<br>' + errs.join('<br>') + '</b>',
okFn: function (e) {
},
title: '错误'
});
return false;
}
return true;
},
exportServiceName: "HGSC004",
exportMethodName: "export",
exportFileName: function (gridInstance) {
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return "产品清单" + kendo.toString(new Date(), IPLAT.FORMAT.DATE_14_PR);
},
exportFileType: "xls", // 默认值是xls,可选值为pdf[规划中]
exportBlockId: "result", // 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete: function(grid) {
// 此 grid 对象
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
......
......@@ -4,7 +4,13 @@
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<style type="text/css">
#more {
height: 0;
overflow: hidden;
transition: height 0.5s ease-in-out;
}
</style>
<script>
var ctx = "${ctx}";
</script>
......@@ -23,9 +29,9 @@
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" copyToAdd="false">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" copyToAdd="false" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center" sort="false"/>
<EF:EFComboColumn ename="companyCode" cname="公司编码"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
......
......@@ -364,6 +364,34 @@ $(function () {
}
}
],
exportGrid: {
beforeExport: function (gridInstance) {
var validator1 = IPLAT.Validator({
id: "inqu"
});
// 点击按钮后校验
if (!validator1.validate()) {
var errorMsg = validator1.errors().toString();
var errs = errorMsg.split(',');
IPLAT.alert({
message: '<b>错误:<br>' + errs.join('<br>') + '</b>',
okFn: function (e) {
},
title: '错误'
});
return false;
}
return true;
},
exportFileName: function (gridInstance) {
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return "产品清单详情" + kendo.toString(new Date(), IPLAT.FORMAT.DATE_14_PR);
},
exportServiceName: "HGSC004A",
exportMethodName: "export",
exportFileType: "xls", // 默认值是xls,可选值为pdf[规划中]
exportBlockId: "result", // 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete: function (grid) { // 在Grid加载完成后,才能给Grid上的按钮绑定事件
$("#SC02").on("click", function () {
if (grid.getCheckedBlockData().rows.length === 0) {
......
......@@ -43,7 +43,7 @@
<div id="right-pane" class="i-fit-height" style="width: 80%;float: right">
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="lv" cname="层级" hidden="true"/>
<EF:EFColumn enable="false" ename="parentProdCode" hidden="false" cname="上级产品编号"/>
......@@ -51,8 +51,8 @@
<EF:EFColumn enable="false" ename="productId" hidden="true" cname="产品id"/>
<EF:EFColumn enable="false" ename="productType" hidden="true" cname="产品类型"/>
<EF:EFColumn enable="false" ename="inventType" hidden="true" cname="库存类型"/>
<EF:EFColumn ename="operator" cname="操作" width="140" enable="false" readonly="false"/>
<EF:EFComboColumn cname="变更类型" ename="changeType" width="90" align="center" enable="false" required="false">
<EF:EFColumn ename="operator" cname="操作" width="140" enable="false" readonly="false" sort="false"/>
<EF:EFComboColumn cname="变更类型" ename="changeType" width="90" align="center" enable="false" required="false" sort="false">
<EF:EFCodeOption codeName="hggp.sc.changeType" />
</EF:EFComboColumn>
<EF:EFColumn ename="productCode" required="true" cname="产品编号" />
......@@ -73,7 +73,6 @@
displayType="0.000" sort="true" align="right" maxLength="17" required="false" defaultValue="0"
data-regex="/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt="请输入数字,该值最大可设置17位整数和3位小数!"/>
<EF:EFComboColumn cname="审核状态" ename="approvalStatus" width="90" align="center" required="false" enable="false">
<EF:EFCodeOption codeName="hggp.hgyx.status" />
</EF:EFComboColumn>
......
......@@ -620,6 +620,16 @@ const grush = {
}
return true;
},
queryMore (num) {
let $more = $("#more");
let height = $more.height();
if (height > 0){
$more.css("height",0);
}else{
$more.css("height",num+"px");
}
}
}
function isExcelFile(uploadFileUrl) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment