Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
e16de89e
Commit
e16de89e
authored
Nov 06, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有单据添加排序导出和更多条件
parent
4b6cf6a8
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
874 additions
and
53 deletions
+874
-53
Iplat4jTools.java
src/main/java/com/baosight/hggp/core/tools/Iplat4jTools.java
+11
-1
HGSC007.java
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC007.java
+2
-2
HGSC008.java
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC008.java
+1
-1
ServiceHGSC002.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC002.java
+1
-1
ServiceHGSC005.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC005.java
+12
-0
ServiceHGSC005A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
+16
-12
ServiceHGSC006.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC006.java
+14
-3
ServiceHGSC006A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC006A.java
+15
-4
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+19
-1
ServiceHGSC008.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC008.java
+20
-1
HGSC005.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC005.xml
+98
-0
HGSC006.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC006.xml
+84
-0
HGSC006A.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC006A.xml
+162
-0
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+188
-0
HGSC008.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC008.xml
+15
-3
HGSC005.js
src/main/webapp/HG/SC/HGSC005.js
+28
-0
HGSC005.jsp
src/main/webapp/HG/SC/HGSC005.jsp
+2
-2
HGSC005A.js
src/main/webapp/HG/SC/HGSC005A.js
+28
-0
HGSC005A.jsp
src/main/webapp/HG/SC/HGSC005A.jsp
+1
-1
HGSC006.js
src/main/webapp/HG/SC/HGSC006.js
+28
-0
HGSC006.jsp
src/main/webapp/HG/SC/HGSC006.jsp
+1
-1
HGSC006A.js
src/main/webapp/HG/SC/HGSC006A.js
+28
-0
HGSC006A.jsp
src/main/webapp/HG/SC/HGSC006A.jsp
+1
-1
HGSC007.js
src/main/webapp/HG/SC/HGSC007.js
+31
-0
HGSC007.jsp
src/main/webapp/HG/SC/HGSC007.jsp
+18
-10
HGSC008.js
src/main/webapp/HG/SC/HGSC008.js
+30
-6
HGSC008.jsp
src/main/webapp/HG/SC/HGSC008.jsp
+20
-3
No files found.
src/main/java/com/baosight/hggp/core/tools/Iplat4jTools.java
View file @
e16de89e
...
...
@@ -66,7 +66,17 @@ public class Iplat4jTools {
}
return
results
;
}
public
static
List
<
Map
<
String
,
Object
>>
getByCodesetMap
(
String
condition
)
{
AssertUtils
.
isEmpty
(
condition
,
"代码分类编码不能为空!"
);
Map
<
String
,
String
>
paramMap
=
new
HashMap
();
paramMap
.
put
(
"condition"
,
condition
);
List
<
Map
<
String
,
Object
>>
results
=
DaoBase
.
getInstance
().
query
(
"EDCM01.queryByCodesetMap"
,
paramMap
);
if
(
CollectionUtils
.
isEmpty
(
results
))
{
throw
new
PlatException
(
"分类编码["
+
condition
+
"]未配置代码明细!"
);
}
return
results
;
}
}
...
...
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC007.java
View file @
e16de89e
...
...
@@ -354,7 +354,7 @@ public class HGSC007 extends DaoEPBase {
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_created_time
);
eiColumn
.
setDescName
(
"
创建时间
"
);
eiColumn
.
setDescName
(
"
生产任务日期
"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_updated_by
);
...
...
@@ -374,7 +374,7 @@ public class HGSC007 extends DaoEPBase {
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_length
);
eiColumn
.
setType
(
"N"
);
//
eiColumn.setType("N");
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"长"
);
...
...
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC008.java
View file @
e16de89e
...
...
@@ -414,7 +414,7 @@ public class HGSC008 extends DaoEPBase {
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_length
);
eiColumn
.
setType
(
"N"
);
//
eiColumn.setType("N");
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
12
);
eiColumn
.
setDescName
(
"长"
);
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC002.java
View file @
e16de89e
...
...
@@ -138,7 +138,7 @@ 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
));
Map
params
=
HGXSUtils
.
setAuthParam
(
"HGSC002."
+
ACConstants
.
SQL_
QUERY
,
EiInfoUtils
.
getFirstRow
(
inEiInfo
));
final
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
"companyName"
,
"projCode"
,
"projName"
,
"personDepName"
,
"personName"
,
"personPhone"
,
"personIdCard"
,
"createdName"
,
"createdTime"
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC005.java
View file @
e16de89e
...
...
@@ -4,10 +4,13 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.sc.domain.HGSC004
;
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.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
;
...
...
@@ -86,6 +89,15 @@ public class ServiceHGSC005 extends ServiceBase {
}
@OperationLogAnnotation
(
operModul
=
"生产计划"
,
operType
=
"导出"
,
operDesc
=
"导出记录"
)
public
EiInfo
export
(
EiInfo
inEiInfo
)
{
Map
params
=
HGXSUtils
.
setAuthParam
(
"HGSC005."
+
ACConstants
.
SQL_EXPORT
,
EiInfoUtils
.
getFirstRow
(
inEiInfo
));
final
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
"companyCode"
,
"companyName"
,
"projCode"
,
"projName"
,
"createdTime"
,
"planCode"
,
"finishDate"
,
"finishRate"
,
"commitStatus"
));
return
ExcelUtils
.
exportToExcel
(
ACConstants
.
SQL_COUNT
,
ACConstants
.
SQL_EXPORT
,
params
,
list
,
new
HGSC005
());
}
}
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC005A.java
View file @
e16de89e
...
...
@@ -8,22 +8,15 @@ import com.baosight.hggp.hg.sc.constant.HgScSqlConstant;
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.DateUtil
;
import
com.baosight.hggp.util.EiInfoUtils
;
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.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.*
;
/**
* @Author wwl
...
...
@@ -180,5 +173,16 @@ public class ServiceHGSC005A extends ServiceBase {
String
.
format
(
"生产计划已提交,不允许操作"
));
// AssertUtils.isEquals(hgsc005.getIsSchedule(), CommonConstant.YesNo.YES_1, "当前计划已排产,请手动调整计划!");
}
@OperationLogAnnotation
(
operModul
=
"生产计划"
,
operType
=
"导出"
,
operDesc
=
"导出记录"
)
public
EiInfo
export
(
EiInfo
inEiInfo
)
{
Map
params
=
HGXSUtils
.
setAuthParam
(
"HGSC005A."
+
ACConstants
.
SQL_QUERY
,
EiInfoUtils
.
getFirstRow
(
inEiInfo
));
final
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
"companyCode"
,
"companyName"
,
"projCode"
,
"projName"
,
"productCode"
,
"productName"
,
"processName"
,
"finishDate"
,
"planStartDate"
,
"planEndDate"
,
"singleWeight"
,
"totalWeight"
,
"finishWeight"
,
"unfinishWeight"
,
"quantity"
,
"finishQuantity"
,
"unfinishQuantity"
));
return
ExcelUtils
.
exportToExcel
(
ACConstants
.
SQL_COUNT
,
ACConstants
.
SQL_QUERY
,
params
,
list
,
new
HGSC005A
());
}
}
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC006.java
View file @
e16de89e
package
com
.
baosight
.
hggp
.
hg
.
sc
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.hg.sc.domain.HGSC005
;
import
com.baosight.hggp.hg.sc.domain.HGSC006
;
import
com.baosight.hggp.hg.xs.utils.HGXSUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.ExcelUtils
;
import
com.baosight.hggp.util.LogUtils
;
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
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
...
...
@@ -41,6 +44,14 @@ public class ServiceHGSC006 extends ServiceBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"生产订单"
,
operType
=
"导出"
,
operDesc
=
"导出记录"
)
public
EiInfo
export
(
EiInfo
inEiInfo
)
{
Map
params
=
HGXSUtils
.
setAuthParam
(
"HGSC006."
+
ACConstants
.
SQL_EXPORT
,
EiInfoUtils
.
getFirstRow
(
inEiInfo
));
final
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
"companyCode"
,
"companyName"
,
"projCode"
,
"projName"
,
"createdTime"
,
"orderCode"
,
"assignStatus"
));
return
ExcelUtils
.
exportToExcel
(
ACConstants
.
SQL_COUNT
,
ACConstants
.
SQL_EXPORT
,
params
,
list
,
new
HGSC006
());
}
}
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC006A.java
View file @
e16de89e
...
...
@@ -13,7 +13,9 @@ import com.baosight.hggp.hg.sc.domain.HGSC007;
import
com.baosight.hggp.hg.sc.domain.HGSC008
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.sc.util.HgScUtils
;
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
;
...
...
@@ -21,10 +23,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.math.BigDecimal
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -312,5 +311,17 @@ public class ServiceHGSC006A extends ServiceBase {
inInfo
.
set
(
"assignStatus"
,
assignStatus
);
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"生产订单"
,
operType
=
"导出"
,
operDesc
=
"导出记录"
)
public
EiInfo
export
(
EiInfo
inEiInfo
)
{
Map
params
=
HGXSUtils
.
setAuthParam
(
"HGSC006A."
+
ACConstants
.
SQL_EXPORT
,
EiInfoUtils
.
getFirstRow
(
inEiInfo
));
final
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
"companyCode"
,
"companyName"
,
"projCode"
,
"projName"
,
"createdTime"
,
"orderCode"
,
"productCode"
,
"productName"
,
"processName"
,
"planStartDate"
,
"planEndDate"
,
"singleWeight"
,
"totalWeight"
,
"assignWeight"
,
"unassignWeight"
,
"quantity"
,
"assignQuantity"
,
"unassignQuantity"
,
"assignStatus"
));
return
ExcelUtils
.
exportToExcel
(
ACConstants
.
SQL_COUNT
,
ACConstants
.
SQL_EXPORT
,
params
,
list
,
new
HGSC006A
());
}
}
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
e16de89e
...
...
@@ -2,18 +2,22 @@ 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.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.enums.OrgTypeEnum
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.tools.Iplat4jTools
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sc.constant.HgScSqlConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC006
;
import
com.baosight.hggp.hg.sc.domain.HGSC007
;
import
com.baosight.hggp.hg.sc.util.HgScUtils
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Factory
;
import
com.baosight.hggp.hg.xs.domain.Org
;
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
;
...
...
@@ -21,6 +25,7 @@ import com.baosight.iplat4j.core.ei.EiConstant;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.service.soa.XServiceManager
;
import
com.baosight.xservices.xs.util.LoginUserDetails
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
...
...
@@ -69,6 +74,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
* @return
*/
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"查询"
,
operDesc
=
"初始化页面"
)
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
));
...
...
@@ -412,5 +418,16 @@ public class ServiceHGSC007 extends ServiceEPBase {
return
inInfo
;
}
}
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"导出"
,
operDesc
=
"导出记录"
)
public
EiInfo
export
(
EiInfo
inEiInfo
)
{
Map
params
=
HGXSUtils
.
setAuthParam
(
"HGSC007."
+
ACConstants
.
SQL_EXPORT
,
EiInfoUtils
.
getFirstRow
(
inEiInfo
));
final
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
"companyCode"
,
"companyName"
,
"projCode"
,
"projName"
,
"createdTime"
,
"taskCode"
,
"productCode"
,
"productName"
,
"processName"
,
"groupName"
,
"spec"
,
"length"
,
"singleWeight"
,
"totalWeight"
,
"finishWeight"
,
"unfinishWeight"
,
"quantity"
,
"finishQuantity"
,
"unfinishQuantity"
,
"registerNum"
,
"status"
));
return
ExcelUtils
.
exportToExcel
(
ACConstants
.
SQL_COUNT
,
ACConstants
.
SQL_EXPORT
,
params
,
list
,
new
HGSC007
());
}
}
\ No newline at end of file
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC008.java
View file @
e16de89e
...
...
@@ -2,16 +2,24 @@ package com.baosight.hggp.hg.sc.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.tools.Iplat4jTools
;
import
com.baosight.hggp.core.utils.Iplat4jUtils
;
import
com.baosight.hggp.hg.sc.domain.HGSC002
;
import
com.baosight.hggp.hg.sc.domain.HGSC006
;
import
com.baosight.hggp.hg.sc.domain.HGSC007
;
import
com.baosight.hggp.hg.sc.domain.HGSC008
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.sc.util.HgScUtils
;
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
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -88,7 +96,7 @@ public class ServiceHGSC008 extends ServiceEPBase {
HGSC008
hgsc008
=
new
HGSC008
();
hgsc008
.
fromMap
(
resultRow
);
AssertUtils
.
isNull
(
hgsc008
.
getId
(),
"报工单id不能为空"
);
DaoUtils
.
update
(
hgsc
008
.
UPDATE
,
hgsc008
);
DaoUtils
.
update
(
HGSC
008
.
UPDATE
,
hgsc008
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
@@ -98,6 +106,17 @@ public class ServiceHGSC008 extends ServiceEPBase {
}
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"生产报工单"
,
operType
=
"导出"
,
operDesc
=
"导出记录"
)
public
EiInfo
export
(
EiInfo
inEiInfo
)
{
Map
params
=
HGXSUtils
.
setAuthParam
(
"HGSC008."
+
ACConstants
.
SQL_EXPORT
,
EiInfoUtils
.
getFirstRow
(
inEiInfo
));
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
"companyCode"
,
"companyName"
,
"projCode"
,
"projName"
,
"workCode"
,
"registerDate"
,
"planEndDate"
,
"productCode"
,
"productName"
,
"processName"
,
"groupName"
,
"spec"
,
"length"
,
"quantity"
,
"singleWeight"
,
"totalWeight"
,
"exceedReason"
));
return
ExcelUtils
.
exportToExcel
(
ACConstants
.
SQL_COUNT
,
ACConstants
.
SQL_EXPORT
,
params
,
list
,
new
HGSC008
());
}
}
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC005.xml
View file @
e16de89e
...
...
@@ -24,6 +24,29 @@
updated_time as "updatedTime"
<!-- 更新时间 -->
</sql>
<sql
id=
"columnExport"
>
A.id as "id",
A.mat_id as "matId",
<!-- 物料清单ID -->
A.company_code as "companyCode",
<!-- 公司编码 -->
A.company_name as "companyName",
<!-- 公司名称 -->
A.proj_code as "projCode",
<!-- 项目编码 -->
A.proj_name as "projName",
<!-- 项目名称 -->
A.plan_code as "planCode",
<!-- 计划编码 -->
C.ITEM_CNAME as "commitStatus",
<!-- 提交状态 0:未提交;2:已提交 -->
A.is_schedule as "isSchedule",
<!-- 是否排产 0:否;1:是 -->
A.finish_date as "finishDate",
<!-- 完工日期 -->
A.account_code as "accountCode",
<!-- 帐套 -->
A.dep_code as "depCode",
<!-- 部门编码 -->
A.dep_name as "depName",
<!-- 部门名称 -->
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"
<!-- 更新时间 -->
</sql>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
...
...
@@ -89,6 +112,71 @@
</isNotEmpty>
</sql>
<sql
id=
"conditionExport"
>
<include
refid=
"HGXSDataAuth.authConditionA"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
A.id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"matId"
>
A.mat_id = #matId#
</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=
"projCode"
>
A.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
A.proj_name like ('%$projName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planCode"
>
A.plan_code like ('%$planCode$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"commitStatus"
>
A.commit_status = #commitStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"finishDate"
>
A.finish_date = #finishDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"isSchedule"
>
A.is_schedule = #isSchedule#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.account_code = #accountCode#
</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=
"createdBy"
>
A.created_by = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
A.created_name = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
A.date_format(created_time,'%Y-%m-%d') = #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=
"matIds"
>
A.mat_id NOT IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"matIds"
>
#matIds[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"orderBy"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
...
...
@@ -188,4 +276,14 @@
id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</update>
<select
id=
"export"
resultClass=
"java.util.HashMap"
>
SELECT
<include
refid=
"columnExport"
/>
FROM ${hggpSchema}.HGSC005 A
LEFT JOIN ${platSchema}.TEDCM01 C ON A.material_status = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.commitStatus'
WHERE 1=1
<include
refid=
"conditionExport"
/>
ORDER BY A.id desc
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC006.xml
View file @
e16de89e
...
...
@@ -83,6 +83,64 @@
</isNotEmpty>
</sql>
<sql
id=
"conditionExport"
>
<include
refid=
"HGXSDataAuth.authConditionA"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
A.id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"matId"
>
A.mat_id = #matId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planId"
>
A.plan_id = #planId#
</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=
"projCode"
>
A.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
A.proj_name like ('%$projName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orderCode"
>
A.order_code like ('%$orderCode$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"assignStatus"
>
A.assign_status = #assignStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
A.account_code = #accountCode#
</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=
"createdBy"
>
A.created_by = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
A.created_name = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
A.date_format(created_time,'%Y-%m-%d') = #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.HGSC006"
>
SELECT
...
...
@@ -243,5 +301,31 @@
WHERE order_code = #orderCode#
</update>
<select
id=
"export"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
A.id as "id",
A.mat_id as "matId",
<!-- 物料清单ID -->
A.plan_id as "planId",
<!-- 生产计划ID -->
A.company_code as "companyCode",
<!-- 公司编码 -->
A.company_name as "companyName",
<!-- 公司名称 -->
A.proj_code as "projCode",
<!-- 项目编码 -->
A.proj_name as "projName",
<!-- 项目名称 -->
A.order_code as "orderCode",
<!-- 订单编码 -->
C.ITEM_CNAME as "assignStatus",
<!-- 派工状态 0:未派工;1:部分派工;2:已派工 -->
A.account_code as "accountCode",
<!-- 帐套 -->
A.dep_code as "depCode",
<!-- 部门编码 -->
A.dep_name as "depName",
<!-- 部门名称 -->
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}.HGSC006 A
LEFT JOIN ${platSchema}.TEDCM01 C ON A.assign_status = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.assignStatus'
WHERE 1=1
<include
refid=
"conditionExport"
/>
ORDER BY A.id desc
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC006A.xml
View file @
e16de89e
...
...
@@ -158,6 +158,124 @@
</isNotEmpty>
</sql>
<sql
id=
"conditionExport"
>
<include
refid=
"HGXSDataAuth.authConditionA"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
A.id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planId"
>
A.plan_id = #planId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planDetailId"
>
A.plan_detail_id = #planDetailId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowId"
>
A.tech_flow_id = #techFlowId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowName"
>
A.tech_flow_name = #techFlowName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventProcessId"
>
A.invent_process_id = #inventProcessId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processCode"
>
A.process_code = #processCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processName"
>
A.process_name = #processName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processOrder"
>
A.process_order = #processOrder#
</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 like ('%$projName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orderCode"
>
A.order_code = #orderCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productType"
>
A.product_type = #productType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productCode"
>
A.product_code LIKE CONCAT('%', #productCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productName"
>
A.product_name like ('%$productName$%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"assignDate"
>
A.assign_date = #assignDate#
</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=
"quantity"
>
A.quantity = #quantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"assignQuantity"
>
A.assign_quantity = #assignQuantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unassignQuantity"
>
A.unassign_quantity = #unassignQuantity#
</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=
"assignWeight"
>
A.assign_weight = #assignWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unassignWeight"
>
A.unassign_weight = #unassignWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"assignStatus"
>
A.assign_status = #assignStatus#
</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.date_format(created_time,'%Y-%m-%d') = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
A.updated_by = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
updated_name = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
A.updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"ids"
>
A.id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</isNotEmpty>
</sql>
<select
id=
"query_other"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.sc.domain.HGSC006A"
>
SELECT
...
...
@@ -505,4 +623,48 @@
ORDER BY process_name
</select>
<select
id=
"export"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
A.id as "id",
A.plan_id as "planId",
<!-- 生产计划ID -->
A.plan_detail_id as "planDetailId",
<!-- 生产计划明细ID -->
A.tech_flow_id as "techFlowId",
<!-- 工艺流程ID -->
A.tech_flow_name as "techFlowName",
<!-- 工艺流程名称 -->
A.invent_process_id as "inventProcessId",
<!-- 存货工序ID,对应HGPZ005A.id -->
A.process_code as "processCode",
<!-- 工序编码 -->
A.process_name as "processName",
<!-- 工序名称 -->
A.process_order as "processOrder",
<!-- 加工顺序 -->
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.order_code as "orderCode",
<!-- 订单编码 -->
A.product_type as "productType",
<!-- 产品类型 -->
A.product_code as "productCode",
<!-- 产品编号 -->
A.product_name as "productName",
<!-- 产品名称 -->
A.plan_start_date as "planStartDate",
<!-- 计划开始日期 -->
A.plan_end_date as "planEndDate",
<!-- 计划结束日期 -->
A.quantity as "quantity",
<!-- 数量 -->
A.assign_quantity as "assignQuantity",
<!-- 派工数量 -->
A.unassign_quantity as "unassignQuantity",
<!-- 未派工数量 -->
A.single_weight as "singleWeight",
<!-- 单重 -->
A.total_weight as "totalWeight",
<!-- 总重 -->
A.assign_weight as "assignWeight",
<!-- 派工重量 -->
A.unassign_weight as "unassignWeight",
<!-- 未派工重量 -->
C.ITEM_CNAME as "assignStatus",
<!-- 派工状态 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}.HGSC006A A
LEFT JOIN ${platSchema}.TEDCM01 C ON A.assign_status = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.assignStatus'
WHERE 1=1
<include
refid=
"condition"
/>
ORDER BY A.product_type asc, A.product_name, A.process_order desc
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
e16de89e
...
...
@@ -50,6 +50,54 @@
REGISTER_NUM as "registerNum"
</sql>
<sql
id=
"columnExport"
>
A.id as "id",
A.mat_id as "matId",
<!-- 物料清单ID -->
A.order_id as "orderId",
<!-- 生产计划ID -->
A.order_detail_id as "orderDetailId",
<!-- 生产计划明细ID -->
A.tech_flow_id as "techFlowId",
<!-- 工艺流程ID -->
A.tech_flow_name as "techFlowName",
<!-- 工艺流程名称 -->
A.invent_process_id as "inventProcessId",
<!-- 存货工序ID,对应HGPZ005A.id -->
A.process_code as "processCode",
<!-- 工序编码 -->
A.process_name as "processName",
<!-- 工序名称 -->
A.process_order as "processOrder",
<!-- 加工顺序 -->
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.task_code as "taskCode",
<!-- 任务编码 -->
A.product_type as "productType",
<!-- 产品类型 -->
A.product_code as "productCode",
<!-- 产品编号 -->
A.product_name as "productName",
<!-- 产品名称 -->
A.plan_start_date as "planStartDate",
<!-- 计划开始日期 -->
A.plan_end_date as "planEndDate",
<!-- 计划结束日期 -->
A.factory_code as "factoryCode",
<!-- 工厂编号 -->
A.factory_name as "factoryName",
<!-- 工厂名称 -->
A.group_code as "groupCode",
<!-- 工作组编号 -->
A.group_name as "groupName",
<!-- 工作组名称 -->
A.complete_date as "completeDate",
<!-- 完工日期 -->
A.quantity as "quantity",
<!-- 数量 -->
A.finish_quantity as "finishQuantity",
<!-- 完工数量 -->
A.unfinish_quantity as "unfinishQuantity",
<!-- 未完工数量 -->
A.single_weight as "singleWeight",
<!-- 单重 -->
A.total_weight as "totalWeight",
<!-- 总重 -->
A.finish_weight as "finishWeight",
<!-- 完工重量 -->
A.unfinish_weight as "unfinishWeight",
<!-- 未完工重量 -->
A.account_code as "accountCode",
<!-- 帐套 -->
A.created_by as "createdBy",
<!-- 创建人 -->
A.created_name as "createdName",
<!-- 创建人名称 -->
left(A.created_time,8) as "createdTime",
<!-- 创建时间 -->
A.updated_by as "updatedBy",
<!-- 更新人 -->
A.updated_name as "updatedName",
<!-- 修改人名称 -->
A.updated_time as "updatedTime",
<!-- 更新时间 -->
A.LENGTH as "length",
<!-- 长 -->
A.SPEC as "spec",
<!-- 规格 -->
C.ITEM_CNAME as "status",
A.REGISTER_NUM as "registerNum"
</sql>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
...
...
@@ -180,6 +228,136 @@
</isNotEmpty>
</sql>
<sql
id=
"conditionExport"
>
<include
refid=
"HGXSDataAuth.authConditionA"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
A.id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"matId"
>
A.mat_id = #matId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orderId"
>
A.order_id = #orderId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orderDetailId"
>
A.order_detail_id = #orderDetailId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowId"
>
A.tech_flow_id = #techFlowId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"techFlowName"
>
A.tech_flow_name = #techFlowName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventProcessId"
>
A.invent_process_id = #inventProcessId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processCode"
>
A.process_code = #processCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processName"
>
A.process_name = #processName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processOrder"
>
A.process_order = #processOrder#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
A.company_code = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
A.company_name LIKE CONCAT('%', #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 LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"taskCode"
>
A.task_code LIKE CONCAT('%', #taskCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productType"
>
A.product_type = #productType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productCode"
>
A.product_code LIKE CONCAT('%', #productCode#, '%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productName"
>
A.product_name LIKE CONCAT('%', #productName#, '%')
</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=
"factoryCode"
>
A.factory_code = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryName"
>
A.factory_name = #factoryName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"groupCode"
>
A.group_code = #groupCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"groupName"
>
A.group_name LIKE CONCAT('%', #groupName# ,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"completeDate"
>
A.complete_date = #completeDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"quantity"
>
A.quantity = #quantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"finishQuantity"
>
A.finish_quantity = #finishQuantity#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unfinishQuantity"
>
A.unfinish_quantity = #unfinishQuantity#
</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=
"finishWeight"
>
A.finish_weight = #finishWeight#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"unfinishWeight"
>
A.unfinish_weight = #unfinishWeight#
</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 LIKE CONCAT('%', #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=
"status"
>
A.STATUS = #status#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"registerNum"
>
A.REGISTER_NUM = #registerNum#
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
<include
refid=
"condition"
/>
<isNotEmpty
prepend=
" AND "
property=
"ids"
>
...
...
@@ -825,6 +1003,16 @@
</isNotEmpty>
</update>
<select
id=
"export"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
<include
refid=
"columnExport"
/>
FROM ${hggpSchema}.HGSC007 A
LEFT JOIN ${platSchema}.TEDCM01 C ON A.STATUS = C.ITEM_CODE AND C.CODESET_CODE = 'hggp.hgsc.status'
WHERE 1=1
<include
refid=
"conditionExport"
/>
order by A.ID DESC, A.PRODUCT_TYPE ASC, A.PRODUCT_NAME, A.PROCESS_ORDER DESC
</select>
<!--查询累计完成重量-->
<select
id=
"querySumWt"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC008.xml
View file @
e16de89e
...
...
@@ -71,7 +71,7 @@
process_code = #processCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processName"
>
process_name
= #processName#
process_name
LIKE CONCAT('%',#processName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"processOrder"
>
process_order = #processOrder#
...
...
@@ -92,7 +92,7 @@
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
proj_name
= #projName#
proj_name
LIKE CONCAT('%',#projName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"workCode"
>
work_code like ('%$workCode$%')
...
...
@@ -104,7 +104,7 @@
product_code = #productCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productName"
>
product_name
= #productName#
product_name
LIKE CONCAT('%',#productName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planStartDate"
>
plan_start_date = #planStartDate#
...
...
@@ -157,6 +157,9 @@
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
updated_time = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"spec"
>
spec LIKE CONCAT('%',#spec#,'%')
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
...
...
@@ -310,4 +313,13 @@
id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</delete>
<select
id=
"export"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGSC008
WHERE 1=1
<include
refid=
"condition"
/>
order by register_date desc, id desc
</select>
</sqlMap>
src/main/webapp/HG/SC/HGSC005.js
View file @
e16de89e
...
...
@@ -22,6 +22,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
:
"HGSC005"
,
exportMethodName
:
"export"
,
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
//提交
$
(
"#BNT_COMMIT"
).
on
(
"click"
,
commit
);
...
...
src/main/webapp/HG/SC/HGSC005.jsp
View file @
e16de89e
...
...
@@ -27,12 +27,12 @@
</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=
"matId"
cname=
"物料清单ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyCode"
cname=
"公司编码"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"true"
width=
"160"
align=
"center"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"true"
width=
"160"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
enable=
"true"
align=
"center"
readOnly=
"true"
/>
...
...
src/main/webapp/HG/SC/HGSC005A.js
View file @
e16de89e
...
...
@@ -19,6 +19,34 @@ $(function () {
},
columns
:
[
],
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
:
"HGSC005A"
,
exportMethodName
:
"export"
,
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
},
onSuccess
:
function
(
e
)
{
...
...
src/main/webapp/HG/SC/HGSC005A.jsp
View file @
e16de89e
...
...
@@ -31,7 +31,7 @@
</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=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"120"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"120"
align=
"center"
readonly=
"true"
/>
...
...
src/main/webapp/HG/SC/HGSC006.js
View file @
e16de89e
...
...
@@ -21,6 +21,34 @@ $(function () {
return
template
;
}
}],
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
:
"HGSC006"
,
exportMethodName
:
"export"
,
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
},
onSuccess
:
function
(
e
)
{
...
...
src/main/webapp/HG/SC/HGSC006.jsp
View file @
e16de89e
...
...
@@ -25,7 +25,7 @@
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
showCount=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
showCount=
"true"
sort=
"all"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"true"
width=
"200"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
...
...
src/main/webapp/HG/SC/HGSC006A.js
View file @
e16de89e
...
...
@@ -23,6 +23,34 @@ $(function () {
return
template
;
}
}],
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
:
"HGSC006A"
,
exportMethodName
:
"export"
,
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
// 批量分派
$
(
"#BNT_ASSIGN"
).
on
(
"click"
,
assign
);
...
...
src/main/webapp/HG/SC/HGSC006A.jsp
View file @
e16de89e
...
...
@@ -38,7 +38,7 @@
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
showCount=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
showCount=
"true"
sort=
"all"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"160"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"true"
width=
"120"
align=
"center"
readOnly=
"true"
/>
...
...
src/main/webapp/HG/SC/HGSC007.js
View file @
e16de89e
...
...
@@ -4,6 +4,9 @@ $(function () {
resultGrid
.
dataSource
.
page
(
1
);
});
$
(
"#QUERY_MORE"
).
on
(
"click"
,
function
(){
grush
.
queryMore
(
34
)
})
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
...
...
@@ -33,6 +36,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
:
"HGSC007"
,
exportMethodName
:
"export"
,
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
loadComplete
:
function
(
grid
)
{
},
onSuccess
:
function
(
e
)
{
...
...
src/main/webapp/HG/SC/HGSC007.jsp
View file @
e16de89e
...
...
@@ -8,11 +8,23 @@
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"loginName"
value=
"<%=loginName%>"
/>
<style
type=
"text/css"
>
#more
{
height
:
0
;
overflow
:
hidden
;
transition
:
height
0.5s
ease-in-out
;
}
</style>
<EF:EFPage
title=
"生产任务"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"inqu_status-0-orderDetailId"
cname=
"订单详情ID"
type=
"hidden"
/>
<EF:EFInput
ename=
"inqu_status-0-companyName"
cname=
"公司名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-projName"
cname=
"项目名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-taskCode"
cname=
"生产任务单号"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"报工状态"
ename=
"status"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
filter=
"contains"
>
<EF:EFCodeOption
codeName=
"hggp.hgsc.status"
/>
</EF:EFSelect>
<EF:EFInput
ename=
"inqu_status-0-productCode"
cname=
"产品编码"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"productName"
cname=
"产品名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
row=
"0"
ename=
"createdTime"
cname=
"生产任务日期"
role=
"date"
...
...
@@ -20,23 +32,19 @@
<EF:EFDatePicker
blockId=
"inqu_status"
row=
"0"
ename=
"completeDate"
cname=
"生产完工日期"
role=
"date"
format=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
colWidth=
"3"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"groupName"
cname=
"班组名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"工序"
ename=
"processCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
filter=
"contains"
>
<div
class=
"row"
id=
"more"
>
<EF:EFSelect
cname=
"工序"
ename=
"processCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
filter=
"contains"
>
<EF:EFOptions
blockId=
"processCode_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFSelect
cname=
"报工状态"
ename=
"status"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
filter=
"contains"
>
<EF:EFCodeOption
codeName=
"hggp.hgsc.status"
/>
</EF:EFSelect>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"groupName"
cname=
"班组名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
sort=
"all"
>
<EF:EFColumn
ename=
"id"
primaryKey=
"true"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"accountCode"
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:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"true"
width=
"180"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"true"
width=
"140"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"生产任务日期"
width=
"120"
enable=
"true"
readonly=
"false"
align=
"center"
editType=
"date"
...
...
src/main/webapp/HG/SC/HGSC008.js
View file @
e16de89e
...
...
@@ -4,6 +4,9 @@ $(function () {
resultGrid
.
dataSource
.
page
(
1
);
});
$
(
"#QUERY_MORE"
).
on
(
"click"
,
function
(){
grush
.
queryMore
(
34
)
})
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
...
...
@@ -29,12 +32,33 @@ $(function () {
return
options
.
length
==
0
?
"-"
:
options
.
length
;
}
}],
loadComplete
:
function
(
grid
)
{
},
onSuccess
:
function
(
e
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'save'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
){
query
();
}
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
:
"HGSC008"
,
exportMethodName
:
"export"
,
exportFileType
:
"xls"
,
// 默认值是xls,可选值为pdf[规划中]
exportBlockId
:
"result"
,
// 默认值和blockId相同,导出的EiInfo中的指定数据块被导出
},
onSave
:
function
(
e
)
{
// 阻止后台保存请求,使用自定义保存
...
...
src/main/webapp/HG/SC/HGSC008.jsp
View file @
e16de89e
...
...
@@ -8,21 +8,38 @@
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"loginName"
value=
"<%=loginName%>"
/>
<style
type=
"text/css"
>
#more
{
height
:
0
;
overflow
:
hidden
;
transition
:
height
0.5s
ease-in-out
;
}
</style>
<EF:EFPage
title=
"生产报工单"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"companyName"
cname=
"公司名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"projName"
cname=
"项目名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
row=
"0"
ename=
"registerDate"
cname=
"报工日期"
role=
"date"
format=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
colWidth=
"3"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
row=
"0"
ename=
"planEndDate"
cname=
"计划完工日期"
role=
"date"
format=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
colWidth=
"3"
/>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"productCode"
cname=
"产品编码"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"productName"
cname=
"产品名称"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"workCode"
cname=
"报工单号"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"processName"
cname=
"工序"
placeholder=
"模糊查询"
colWidth=
"3"
/>
</div>
<div
class=
"row"
id=
"more"
>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"groupName"
cname=
"生产组"
placeholder=
"模糊查询"
colWidth=
"3"
/>
<EF:EFInput
blockId=
"inqu_status"
row=
"0"
ename=
"spec"
cname=
"规格"
placeholder=
"模糊查询"
colWidth=
"3"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
sort=
"all"
>
<EF:EFColumn
ename=
"id"
primaryKey=
"true"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"accountCode"
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:EFColumn
ename=
"companyName"
cname=
"公司名称"
enable=
"false"
width=
"180"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"120"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"workCode"
cname=
"报工单号"
width=
"130"
enable=
"false"
readonly=
"true"
align=
"center"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment