Commit 6c0add7d by 宋祥

Merge remote-tracking branch 'origin/dev' into dev

parents 54182c7d 8c2b9ef0
package com.baosight.hpjx.core.enums; package com.baosight.hpjx.core.enums;
import com.baosight.hpjx.hp.sc.domain.HPSC002; import com.baosight.hpjx.hp.sc.domain.HPSC002;
import com.baosight.hpjx.hp.sc.domain.HPSC006; import com.baosight.hpjx.hp.sc.domain.HPSC006;
import com.baosight.hpjx.hp.sc.domain.HPSC102; import com.baosight.hpjx.hp.sc.domain.HPSC102;
...@@ -9,18 +10,22 @@ import com.baosight.hpjx.hp.sc.domain.HPSC102; ...@@ -9,18 +10,22 @@ import com.baosight.hpjx.hp.sc.domain.HPSC102;
* @date:2022/9/23,14:51 * @date:2022/9/23,14:51
*/ */
public enum DocRouteEnum { public enum DocRouteEnum {
HPSC002("route_001", "", 1, "HPSC002", "importData", HPSC002.class), HPSC002("route_001", "", 1, "HPSC002", "importData", HPSC002.class),
HPSC006("route_002", "", 1, "HPSC006", "importData", HPSC006.class), HPSC006("route_002", "", 1, "HPSC006", "importData", HPSC006.class),
HPSC102("route_003", "", 1, "HPSC102", "importData", HPSC102.class), HPSC102("route_003", "",1,"HPSC102", "importData", HPSC102.class)
; ;
/**
* 唯一标识
*/
private String id; private String id;
/** /**
* 模版文件的地址,模版文件路径必须在META-INF.resources下面 * 模版文件的地址,模版文件路径必须在META-INF.resources下面
*/ */
private String templateUrl; private String templateUrl;
/** /**
* 数据从excel的第几行开始,起始0 * 数据从excel的第几行开始,起始0
*/ */
...@@ -40,7 +45,7 @@ public enum DocRouteEnum { ...@@ -40,7 +45,7 @@ public enum DocRouteEnum {
* 数据转换后的实体类 * 数据转换后的实体类
*/ */
private Class clazz; private Class clazz;
<T> DocRouteEnum(String id, String templateUrl, int startRow, String serviceNme, String methodName, <T> DocRouteEnum(String id, String templateUrl, int startRow, String serviceNme, String methodName,
Class<T> clazz) { Class<T> clazz) {
this.id = id; this.id = id;
...@@ -50,7 +55,7 @@ public enum DocRouteEnum { ...@@ -50,7 +55,7 @@ public enum DocRouteEnum {
this.methodName = methodName; this.methodName = methodName;
this.clazz = clazz; this.clazz = clazz;
} }
/** /**
* 根据ID获取枚举 * 根据ID获取枚举
* *
...@@ -65,11 +70,11 @@ public enum DocRouteEnum { ...@@ -65,11 +70,11 @@ public enum DocRouteEnum {
} }
return null; return null;
} }
public String getId() { public String getId() {
return id; return id;
} }
public String getTemplateUrl() { public String getTemplateUrl() {
return templateUrl; return templateUrl;
} }
...@@ -81,11 +86,11 @@ public enum DocRouteEnum { ...@@ -81,11 +86,11 @@ public enum DocRouteEnum {
public String getServiceNme() { public String getServiceNme() {
return serviceNme; return serviceNme;
} }
public String getMethodName() { public String getMethodName() {
return methodName; return methodName;
} }
public Class getClazz() { public Class getClazz() {
return clazz; return clazz;
} }
......
...@@ -21,7 +21,7 @@ import java.util.Map; ...@@ -21,7 +21,7 @@ import java.util.Map;
*/ */
public class ServiceHPSC106 extends ServiceEPBase { public class ServiceHPSC106 extends ServiceEPBase {
@OperationLogAnnotation(operModul = "生产报工", operType = "查询", operDesc = "初始化页面") @OperationLogAnnotation(operModul = "生产报工", operType = "查询", operDesc = "初始化页面")
@Override @Override
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
...@@ -35,7 +35,7 @@ public class ServiceHPSC106 extends ServiceEPBase { ...@@ -35,7 +35,7 @@ public class ServiceHPSC106 extends ServiceEPBase {
/* /*
* 查询*/ * 查询*/
@OperationLogAnnotation(operModul = "生产报工", operType = "查询", operDesc = "查询") @OperationLogAnnotation(operModul = "生产报工", operType = "查询", operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -47,7 +47,7 @@ public class ServiceHPSC106 extends ServiceEPBase { ...@@ -47,7 +47,7 @@ public class ServiceHPSC106 extends ServiceEPBase {
} }
@Override @Override
@OperationLogAnnotation(operModul = "生产报工", operType = "删除", operDesc = "删除") @OperationLogAnnotation(operModul = "生产报工", operType = "删除", operDesc = "删除")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<c:set var="ctx" value="${pageContext.request.contextPath}"/> <c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="loginName" value="<%=loginName%>" /> <c:set var="loginName" value="<%=loginName%>" />
<EF:EFPage title="生产报工"> <EF:EFPage title="生产报工">
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
<div class="row"> <div class="row">
<EF:EFInput blockId="inqu_status" row="0" ename="factoryName" cname="工厂区" placeholder="模糊查询" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="factoryName" cname="工厂区" placeholder="模糊查询" colWidth="3"/>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<EF:EFColumn ename="productName" cname="产品名称" width="100" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="productName" cname="产品名称" width="100" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="groupName" cname="生产组" width="100" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="groupName" cname="生产组" width="100" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="quantity" cname="数量" width="100" enable="false" format="{0:0}%" readonly="true" align="center"/> <EF:EFColumn ename="quantity" cname="数量" width="100" enable="false" format="{0:0}%" readonly="true" align="center"/>
<EF:EFColumn ename="totalWeight" cname="任务总重(KG)" width="100" enable="false" format="{0:n2}" readonly="true" align="center"/> <EF:EFColumn ename="totalWeight" cname="重量" width="100" enable="false" format="{0:n2}" readonly="true" align="center"/>
</EF:EFGrid> </EF:EFGrid>
</EF:EFRegion> </EF:EFRegion>
</EF:EFPage> </EF:EFPage>
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