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
3737f775
Commit
3737f775
authored
Jul 05, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
f75cfaeb
50191afd
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
123 additions
and
58 deletions
+123
-58
ServiceHGKC008.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
+4
-7
ServiceHGPZ005.java
.../java/com/baosight/hggp/hg/pz/service/ServiceHGPZ005.java
+20
-0
ServiceHGSC009.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC009.java
+23
-2
ServiceHGSC009A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC009A.java
+1
-1
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+17
-4
HGCG002.js
src/main/webapp/HG/CG/HGCG002.js
+43
-26
HGCG002.jsp
src/main/webapp/HG/CG/HGCG002.jsp
+2
-0
HGKC008.js
src/main/webapp/HG/KC/HGKC008.js
+8
-7
HGSC009.js
src/main/webapp/HG/SC/HGSC009.js
+3
-3
HGSC009.jsp
src/main/webapp/HG/SC/HGSC009.jsp
+1
-1
HGSC009A.js
src/main/webapp/HG/SC/HGSC009A.js
+1
-7
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
View file @
3737f775
...
@@ -8,6 +8,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC008;
...
@@ -8,6 +8,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC008;
import
com.baosight.hggp.hg.kc.domain.HGKC008A
;
import
com.baosight.hggp.hg.kc.domain.HGKC008A
;
import
com.baosight.hggp.hg.kc.tools.HGKCTools
;
import
com.baosight.hggp.hg.kc.tools.HGKCTools
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.*
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -34,9 +35,10 @@ public class ServiceHGKC008 extends ServiceBase {
...
@@ -34,9 +35,10 @@ public class ServiceHGKC008 extends ServiceBase {
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
HGKC008
.
FIELD_ACCOUNT_CODE
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGKC008
.
FIELD_ACCOUNT_CODE
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BOX_BLOCK_ID
),
map
,
false
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_B
Y_ROLE_B
LOCK_ID
,
DdynamicEnum
.
WH_RECORD_BOX_BLOCK_ID
),
map
,
false
);
);
}
catch
(
PlatException
e
)
{
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
...
@@ -45,11 +47,6 @@ public class ServiceHGKC008 extends ServiceBase {
...
@@ -45,11 +47,6 @@ public class ServiceHGKC008 extends ServiceBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGKC008
.
QUERY
,
new
HGKC008
());
inInfo
=
super
.
query
(
inInfo
,
HGKC008
.
QUERY
,
new
HGKC008
());
Map
map
=
new
HashMap
();
map
.
put
(
HGKC008
.
FIELD_ACCOUNT_CODE
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BOX_BLOCK_ID
),
map
,
false
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/hggp/hg/pz/service/ServiceHGPZ005.java
View file @
3737f775
...
@@ -279,6 +279,26 @@ public class ServiceHGPZ005 extends ServiceBase {
...
@@ -279,6 +279,26 @@ public class ServiceHGPZ005 extends ServiceBase {
}
}
/**
/**
* 下拉框 (不默认状态)
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"存货档案"
,
operType
=
"查询"
,
operDesc
=
"下拉框(原料、零件、耗材)"
)
public
EiInfo
queryInventCodeProdTypeFourBox
(
EiInfo
inInfo
)
{
try
{
List
<
DdynamicEnum
>
list
=
new
ArrayList
<>();
list
.
add
(
DdynamicEnum
.
INVENT_RECORD_BOX_BLOCK_ID
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGPZ004
.
FIELD_INVENT_TYPE_DETAILS
,
InventTypeDetailEnum
.
getInentTypeThree
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGPZ005
.
FIELD_STATUS
,
1
);
CommonMethod
.
initBlock
(
inInfo
,
list
,
EiInfoUtils
.
getFirstRow
(
inInfo
),
false
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询规格失败"
);
}
return
inInfo
;
}
/**
* 下拉框
* 下拉框
*
*
* @param inInfo
* @param inInfo
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC009.java
View file @
3737f775
...
@@ -4,9 +4,13 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
...
@@ -4,9 +4,13 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cg.domain.HGCG001
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC009
;
import
com.baosight.hggp.hg.sc.domain.HGSC009
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sc.domain.HGSC009A
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
...
@@ -20,6 +24,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
...
@@ -20,6 +24,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
/**
* @author ZhangJiHui
* @author ZhangJiHui
...
@@ -41,7 +46,7 @@ public class ServiceHGSC009 extends ServiceEPBase {
...
@@ -41,7 +46,7 @@ public class ServiceHGSC009 extends ServiceEPBase {
Map
userCompany
=
HGSBTools
.
getUserCompany
();
Map
userCompany
=
HGSBTools
.
getUserCompany
();
qarma
.
put
(
HGSC009
.
FIELD_COMPANY_CODE
,
userCompany
.
get
(
HGSC009
.
FIELD_COMPANY_CODE
));
qarma
.
put
(
HGSC009
.
FIELD_COMPANY_CODE
,
userCompany
.
get
(
HGSC009
.
FIELD_COMPANY_CODE
));
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
qarma
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_B
Y_ROLE_B
LOCK_ID
),
qarma
);
qarma
.
clear
();
qarma
.
clear
();
List
<
String
>
orgIds
=
HGSBTools
.
getRoleCompanyCode
();
List
<
String
>
orgIds
=
HGSBTools
.
getRoleCompanyCode
();
...
@@ -143,6 +148,9 @@ public class ServiceHGSC009 extends ServiceEPBase {
...
@@ -143,6 +148,9 @@ public class ServiceHGSC009 extends ServiceEPBase {
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hgsc009
.
fromMap
(
map
);
hgsc009
.
fromMap
(
map
);
// 数据校验
this
.
checkUpdateStatusData
(
hgsc009
);
DaoUtils
.
update
(
HGSC009
.
UPDATE_BLUEPRINT_STATUS
,
hgsc009
);
DaoUtils
.
update
(
HGSC009
.
UPDATE_BLUEPRINT_STATUS
,
hgsc009
);
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
@@ -157,7 +165,20 @@ public class ServiceHGSC009 extends ServiceEPBase {
...
@@ -157,7 +165,20 @@ public class ServiceHGSC009 extends ServiceEPBase {
return
inInfo
;
return
inInfo
;
}
}
/**
* 校验提交数据
* @param hgsc009
*/
private
void
checkUpdateStatusData
(
HGSC009
hgsc009
)
{
hgsc009
=
HGSCTools
.
THGSC009
.
getById
(
hgsc009
.
getId
());
List
<
HGSC009A
>
hgsc009AList
=
HGSCTools
.
THGSC009
.
getByPlanMaterialCode
(
hgsc009
.
getPlanMaterialCode
());
List
<
Long
>
materialPlanIds
=
hgsc009AList
.
stream
().
map
(
HGSC009A:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
HGCG001
>
hgcg001List
=
HGCGTools
.
HgCg001
.
listByMaterialPlanIds
(
materialPlanIds
);
hgsc009AList
.
forEach
(
o
->{
HGCG001
hgcg001
=
hgcg001List
.
stream
().
filter
(
c
->
c
.
getMaterialPlanId
().
intValue
()
==
o
.
getId
()).
findAny
().
orElse
(
null
);
AssertUtils
.
isTrue
(
Objects
.
nonNull
(
hgcg001
),
String
.
format
(
"材料计划[%s]已生成采购计划"
,
o
.
getPlanMaterialCode
()));
});
}
}
}
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC009A.java
View file @
3737f775
...
@@ -217,7 +217,7 @@ public class ServiceHGSC009A extends ServiceBase {
...
@@ -217,7 +217,7 @@ public class ServiceHGSC009A extends ServiceBase {
public
EiInfo
insertcg
(
EiInfo
inInfo
)
{
public
EiInfo
insertcg
(
EiInfo
inInfo
)
{
try
{
try
{
String
[]
orderDetailIds
=
inInfo
.
getString
(
"planMaterialCodes"
).
split
(
","
);
String
[]
orderDetailIds
=
inInfo
.
getString
(
"planMaterialCodes"
).
split
(
","
);
List
<
HGSC009A
>
hgsc009AList
=
HGSCTools
.
HGSC009
.
getById
(
orderDetailIds
);
List
<
HGSC009A
>
hgsc009AList
=
HGSCTools
.
THGSC009
.
getByPlanMaterialCodes
(
orderDetailIds
);
List
<
String
>
inventCodes
=
Optional
.
ofNullable
(
hgsc009AList
).
orElse
(
new
ArrayList
<>()).
stream
().
map
(
HGSC009A:
:
getInventCode
).
collect
(
Collectors
.
toList
());
List
<
String
>
inventCodes
=
Optional
.
ofNullable
(
hgsc009AList
).
orElse
(
new
ArrayList
<>()).
stream
().
map
(
HGSC009A:
:
getInventCode
).
collect
(
Collectors
.
toList
());
Map
<
String
,
String
>
inventUnitMap
=
new
HashMap
<>();
Map
<
String
,
String
>
inventUnitMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
inventCodes
)){
if
(
CollectionUtils
.
isNotEmpty
(
inventCodes
)){
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
3737f775
...
@@ -1185,7 +1185,7 @@ public class HGSCTools {
...
@@ -1185,7 +1185,7 @@ public class HGSCTools {
}
}
public
static
class
HGSC009
{
public
static
class
T
HGSC009
{
/* public static void generatorOrder(List<HGSC005> hgsc005List, List<HGSC005A> hgsc005AList){
/* public static void generatorOrder(List<HGSC005> hgsc005List, List<HGSC005A> hgsc005AList){
Map<String, Optional<HGSC005>> hgsc005Map = hgsc005List.stream().collect(Collectors.groupingBy(HGSC005::getPlanCode,Collectors.maxBy(
Map<String, Optional<HGSC005>> hgsc005Map = hgsc005List.stream().collect(Collectors.groupingBy(HGSC005::getPlanCode,Collectors.maxBy(
Comparator.comparingLong(HGSC005::getId))));
Comparator.comparingLong(HGSC005::getId))));
...
@@ -1211,11 +1211,24 @@ public class HGSCTools {
...
@@ -1211,11 +1211,24 @@ public class HGSCTools {
hgsc006.setAssignStatus(UNASSIGN.getCode());
hgsc006.setAssignStatus(UNASSIGN.getCode());
return hgsc006;
return hgsc006;
}*/
}*/
public
static
HGSC009
getById
(
Long
taskId
){
AssertUtils
.
isTrue
(
Objects
.
isNull
(
taskId
)||
taskId
<=
0
,
"材料计划ID不能为空!"
);
HGSC009
results
=
(
HGSC009
)
DaoBase
.
getInstance
().
get
(
HGSC009
.
QUERY
,
HGSC009
.
FIELD_ID
,
taskId
);
return
results
;
}
public
static
List
<
HGSC009A
>
getByPlanMaterialCodes
(
String
[]
planMaterialCodes
){
AssertUtils
.
isTrue
(
Objects
.
isNull
(
planMaterialCodes
)||
planMaterialCodes
.
length
<=
0
,
"材料计划编码不能为空!"
);
Map
map
=
new
HashMap
<>();
map
.
put
(
"planMaterialCodes"
,
planMaterialCodes
);
List
<
HGSC009A
>
results
=
DaoBase
.
getInstance
().
query
(
HGSC009A
.
QUERYList
,
map
);
AssertUtils
.
isEmpty
(
results
,
"材料明细不能为空!"
);
return
results
;
}
public
static
List
<
HGSC009A
>
getBy
Id
(
String
[]
orderDetailId
){
public
static
List
<
HGSC009A
>
getBy
PlanMaterialCode
(
String
planMaterialCode
){
AssertUtils
.
isTrue
(
Objects
.
isNull
(
orderDetailId
)||
orderDetailId
.
length
<=
0
,
"订单明细ID
不能为空!"
);
AssertUtils
.
isTrue
(
StringUtils
.
isBlank
(
planMaterialCode
),
"材料计划编码
不能为空!"
);
Map
map
=
new
HashMap
<>();
Map
map
=
new
HashMap
<>();
map
.
put
(
"planMaterialCode
s"
,
orderDetailId
);
map
.
put
(
"planMaterialCode
"
,
planMaterialCode
);
List
<
HGSC009A
>
results
=
DaoBase
.
getInstance
().
query
(
HGSC009A
.
QUERYList
,
map
);
List
<
HGSC009A
>
results
=
DaoBase
.
getInstance
().
query
(
HGSC009A
.
QUERYList
,
map
);
AssertUtils
.
isEmpty
(
results
,
"材料明细不能为空!"
);
AssertUtils
.
isEmpty
(
results
,
"材料明细不能为空!"
);
return
results
;
return
results
;
...
...
src/main/webapp/HG/CG/HGCG002.js
View file @
3737f775
...
@@ -64,34 +64,10 @@ $(function () {
...
@@ -64,34 +64,10 @@ $(function () {
supCodeChange
(
e
);
supCodeChange
(
e
);
var
item
=
e
.
items
[
0
];
var
item
=
e
.
items
[
0
];
if
(
e
.
field
==
"price"
)
{
if
(
e
.
field
==
"price"
)
{
if
(
item
.
purQty
&&
item
.
price
&&
item
.
taxRate
){
calAmount
(
item
);
// 数量*单价金额
let
totalAmount
=
item
.
purQty
*
item
.
price
;
//税额
let
taxAmount
=
totalAmount
*
item
.
taxRate
/
100
;
//不含税金额
let
amount
=
totalAmount
-
taxAmount
;
//含税金额
let
taxIncludeAmount
=
amount
+
taxAmount
;
resultGrid
.
setCellValue
(
item
,
'taxAmount'
,
taxAmount
)
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
)
resultGrid
.
setCellValue
(
item
,
'taxIncludeAmount'
,
taxIncludeAmount
)
}
}
}
if
(
e
.
field
==
"taxRate"
)
{
if
(
e
.
field
==
"taxRate"
)
{
if
(
item
.
purQty
&&
item
.
price
&&
item
.
taxRate
){
calAmount
(
item
);
// 数量*单价金额
let
totalAmount
=
item
.
purQty
*
item
.
price
;
//税额
let
taxAmount
=
totalAmount
*
item
.
taxRate
/
100
;
//不含税金额
let
amount
=
totalAmount
-
taxAmount
;
//含税金额
let
taxIncludeAmount
=
amount
+
taxAmount
;
resultGrid
.
setCellValue
(
item
,
'taxAmount'
,
taxAmount
)
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
)
resultGrid
.
setCellValue
(
item
,
'taxIncludeAmount'
,
taxIncludeAmount
)
}
}
}
});
});
},
},
...
@@ -115,6 +91,47 @@ $(function () {
...
@@ -115,6 +91,47 @@ $(function () {
downKeyUp
();
downKeyUp
();
});
});
/**
* 计算金额
* @param item
* @param length
* @param width
* @param thick
* @param coefficient
*/
let
calAmount
=
function
(
item
)
{
//原材料
if
(
item
.
inventTypeDetail
===
'3'
){
if
(
item
.
purWeight
&&
item
.
price
&&
item
.
taxRate
){
// 重量*单价金额
let
totalAmount
=
item
.
purWeight
*
item
.
price
;
//不含税金额
let
amount
=
totalAmount
/
(
1
+
item
.
taxRate
/
100
);
//税额
let
taxAmount
=
totalAmount
-
amount
;
//含税金额
let
taxIncludeAmount
=
totalAmount
;
resultGrid
.
setCellValue
(
item
,
'taxAmount'
,
taxAmount
)
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
)
resultGrid
.
setCellValue
(
item
,
'taxIncludeAmount'
,
taxIncludeAmount
)
}
}
else
{
if
(
item
.
purQty
&&
item
.
price
&&
item
.
taxRate
){
// 数量*单价金额
let
totalAmount
=
item
.
purQty
*
item
.
price
;
//不含税金额
let
amount
=
totalAmount
/
(
1
+
item
.
taxRate
/
100
);
//税额
let
taxAmount
=
totalAmount
-
amount
;
//含税金额
let
taxIncludeAmount
=
totalAmount
;
resultGrid
.
setCellValue
(
item
,
'taxAmount'
,
taxAmount
)
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
)
resultGrid
.
setCellValue
(
item
,
'taxIncludeAmount'
,
taxIncludeAmount
)
}
}
}
/**
/**
* 页面加载时执行
* 页面加载时执行
...
...
src/main/webapp/HG/CG/HGCG002.jsp
View file @
3737f775
...
@@ -83,6 +83,8 @@
...
@@ -83,6 +83,8 @@
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
<EF:EFColumn
ename=
"inventTypeDetail"
cname=
"存货类型明细"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HG/KC/HGKC008.js
View file @
3737f775
$
(
function
(){
$
(
function
(){
var
companyCodes
=
__eiInfo
.
getBlock
(
"
companyBox_block_id
"
).
getMappedRows
();
var
companyCodes
=
__eiInfo
.
getBlock
(
"
roleCompany
"
).
getMappedRows
();
var
projCodes
=
__eiInfo
.
getBlock
(
"proj
_record
_block_id"
).
getMappedRows
();
var
projCodes
=
__eiInfo
.
getBlock
(
"proj
RecordByRole
_block_id"
).
getMappedRows
();
var
whRecordBoxBlocks
=
__eiInfo
.
getBlock
(
"wh_record_box_block_id"
).
getMappedRows
();
var
whRecordBoxBlocks
=
__eiInfo
.
getBlock
(
"wh_record_box_block_id"
).
getMappedRows
();
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
...
@@ -42,8 +42,9 @@ $(function (){
...
@@ -42,8 +42,9 @@ $(function (){
field
:
"companyCode"
,
field
:
"companyCode"
,
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodes
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
companyCodes
.
length
;
i
++
)
{
if
(
companyCodes
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
]){
if
(
companyCodes
[
i
][
'companyCode'
]
===
dataItem
[
'companyCode'
]){
return
companyCodes
[
i
][
'textField'
];
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'companyName'
]
return
companyCodes
[
i
][
'companyName'
];
}
}
}
}
return
dataItem
[
"companyCode"
];
return
dataItem
[
"companyCode"
];
...
@@ -59,7 +60,7 @@ $(function (){
...
@@ -59,7 +60,7 @@ $(function (){
}
}
}
}
}
}
return
templat
e
;
return
item
.
projCod
e
;
},
},
editor
:
function
(
container
,
options
)
{
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
let
inInfo
=
new
EiInfo
();
...
@@ -69,7 +70,7 @@ $(function (){
...
@@ -69,7 +70,7 @@ $(function (){
let
dataSource
;
let
dataSource
;
EiCommunicator
.
send
(
"HGSC003"
,
"projComboBox"
,
inInfo
,
{
EiCommunicator
.
send
(
"HGSC003"
,
"projComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
dataSource
=
ei
.
getBlock
(
"proj
_record
_block_id"
).
getMappedRows
();
dataSource
=
ei
.
getBlock
(
"proj
RecordByRole
_block_id"
).
getMappedRows
();
},
},
onFail
:
function
(
ei
)
{
onFail
:
function
(
ei
)
{
}
}
...
@@ -100,7 +101,7 @@ $(function (){
...
@@ -100,7 +101,7 @@ $(function (){
}
}
}
}
}
}
return
templat
e
;
return
item
.
whCod
e
;
},
},
editor
:
function
(
container
,
options
)
{
editor
:
function
(
container
,
options
)
{
var
input
=
$
(
'<input />'
);
var
input
=
$
(
'<input />'
);
...
...
src/main/webapp/HG/SC/HGSC009.js
View file @
3737f775
$
(
function
()
{
$
(
function
()
{
var
companyCodeBox
=
__eiInfo
.
getBlock
(
"roleCompany"
).
getMappedRows
();
var
companyCodeBox
=
__eiInfo
.
getBlock
(
"roleCompany"
).
getMappedRows
();
var
groupCodeBox
=
__eiInfo
.
getBlock
(
"proj
_record
_block_id"
).
getMappedRows
();
var
groupCodeBox
=
__eiInfo
.
getBlock
(
"proj
RecordByRole
_block_id"
).
getMappedRows
();
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
resultGrid
.
dataSource
.
page
(
1
);
...
@@ -65,7 +65,7 @@ $(function () {
...
@@ -65,7 +65,7 @@ $(function () {
let
dataSource
;
let
dataSource
;
EiCommunicator
.
send
(
"HGSC003"
,
"projComboBox"
,
inInfo
,
{
EiCommunicator
.
send
(
"HGSC003"
,
"projComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
dataSource
=
ei
.
getBlock
(
"proj
_record
_block_id"
).
getMappedRows
();
dataSource
=
ei
.
getBlock
(
"proj
RecordByRole
_block_id"
).
getMappedRows
();
},
},
onFail
:
function
(
ei
)
{
onFail
:
function
(
ei
)
{
}
}
...
@@ -232,7 +232,7 @@ function INSERTCG() {
...
@@ -232,7 +232,7 @@ function INSERTCG() {
});
});
if
(
flag
)
{
if
(
flag
)
{
inEiInfo
.
set
(
"planMaterialCodes"
,
ids
.
join
(
','
));
inEiInfo
.
set
(
"planMaterialCodes"
,
ids
.
join
(
','
));
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
生成采购计划
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
EiCommunicator
.
send
(
'HGSC009A'
,
'insertcg'
,
inEiInfo
,
{
EiCommunicator
.
send
(
'HGSC009A'
,
'insertcg'
,
inEiInfo
,
{
onSuccess
(
response
)
{
onSuccess
(
response
)
{
...
...
src/main/webapp/HG/SC/HGSC009.jsp
View file @
3737f775
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息">
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true"
checkMode="row"
>
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="150" align="center"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="150" align="center"/>
<EF:EFComboColumn ename="companyCode" cname="公司编码"
<EF:EFComboColumn ename="companyCode" cname="公司编码"
...
...
src/main/webapp/HG/SC/HGSC009A.js
View file @
3737f775
...
@@ -11,11 +11,6 @@ $(function () {
...
@@ -11,11 +11,6 @@ $(function () {
},
},
columns
:
[{
columns
:
[{
field
:
"inventCode"
,
field
:
"inventCode"
,
filter
:
function
(
options
)
{
return
_
.
filter
(
inventAllBlockId
,
function
(
item
)
{
return
item
[
"param1Field"
]
==
"true"
;
})
},
template
:
function
(
item
)
{
template
:
function
(
item
)
{
let
template
=
""
;
let
template
=
""
;
if
(
item
.
inventCode
){
if
(
item
.
inventCode
){
...
@@ -31,10 +26,9 @@ $(function () {
...
@@ -31,10 +26,9 @@ $(function () {
},
},
editor
:
function
(
container
,
options
)
{
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-isSplicingSymbol"
,
true
);
inInfo
.
set
(
"field"
,
options
.
field
);
inInfo
.
set
(
"field"
,
options
.
field
);
let
dataSource
=
inventRecordBoxBlockId
;
let
dataSource
=
inventRecordBoxBlockId
;
EiCommunicator
.
send
(
"HGPZ005"
,
"queryInventCodeBox"
,
inInfo
,
{
EiCommunicator
.
send
(
"HGPZ005"
,
"queryInventCode
ProdTypeFour
Box"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
dataSource
=
ei
.
getBlock
(
"invent_record_box_block_id"
).
getMappedRows
();
dataSource
=
ei
.
getBlock
(
"invent_record_box_block_id"
).
getMappedRows
();
},
},
...
...
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