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
2df80332
Commit
2df80332
authored
Jul 03, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
2ca0a8e7
8559207f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
64 changed files
with
772 additions
and
285 deletions
+772
-285
DdynamicEnum.java
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
+7
-1
ServiceHGCG001.java
.../java/com/baosight/hggp/hg/cg/service/ServiceHGCG001.java
+16
-14
ServiceHGCG002.java
.../java/com/baosight/hggp/hg/cg/service/ServiceHGCG002.java
+2
-0
ServiceHGCG002A.java
...java/com/baosight/hggp/hg/cg/service/ServiceHGCG002A.java
+2
-0
ServiceHGCG003.java
.../java/com/baosight/hggp/hg/cg/service/ServiceHGCG003.java
+16
-13
HGCW007.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW007.java
+41
-0
HGCW051.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW051.java
+12
-12
HGCW052.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW052.java
+10
-10
ServiceHGCW002.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
+22
-11
ServiceHGCW003.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW003.java
+3
-3
ServiceHGCW004.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW004.java
+12
-4
ServiceHGCW005.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW005.java
+12
-4
ServiceHGCW006.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW006.java
+18
-11
ServiceHGCW007.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW007.java
+0
-3
HGCW007.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW007.xml
+13
-1
HGCW012.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
+12
-3
HGCW051.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW051.xml
+5
-5
HGCW052.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW052.xml
+6
-6
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+6
-6
ServiceHGKC001.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC001.java
+4
-1
ServiceHGKC006.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
+3
-1
ServiceHGKC007.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC007.java
+3
-1
ServiceHGKC010.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC010.java
+3
-1
HGPZ007.java
src/main/java/com/baosight/hggp/hg/pz/domain/HGPZ007.java
+1
-0
HGPZ007.xml
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ007.xml
+45
-14
HGPZTools.java
src/main/java/com/baosight/hggp/hg/pz/tools/HGPZTools.java
+1
-1
ServiceHGSC003.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC003.java
+4
-7
ServiceHGSC004.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC004.java
+8
-10
ServiceHGSC004A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC004A.java
+0
-0
HGSC001.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
+13
-0
HGSC003.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC003.xml
+1
-0
HGSC004A.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC004A.xml
+6
-6
HGSC009.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC009.xml
+2
-22
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+11
-3
HGXSTools.java
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
+1
-1
ServiceHGZL001.java
.../java/com/baosight/hggp/hg/zl/service/ServiceHGZL001.java
+3
-0
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+1
-1
HGCG001.jsp
src/main/webapp/HG/CG/HGCG001.jsp
+2
-2
HGCG002.js
src/main/webapp/HG/CG/HGCG002.js
+1
-1
HGCG002.jsp
src/main/webapp/HG/CG/HGCG002.jsp
+1
-1
HGCG002A.jsp
src/main/webapp/HG/CG/HGCG002A.jsp
+2
-2
HGCG003.jsp
src/main/webapp/HG/CG/HGCG003.jsp
+2
-2
HGCW002A.js
src/main/webapp/HG/CW/HGCW002A.js
+109
-6
HGCW002A.jsp
src/main/webapp/HG/CW/HGCW002A.jsp
+2
-2
HGCW002B.js
src/main/webapp/HG/CW/HGCW002B.js
+113
-9
HGCW002B.jsp
src/main/webapp/HG/CW/HGCW002B.jsp
+2
-2
HGCW006A.js
src/main/webapp/HG/CW/HGCW006A.js
+129
-19
HGCW006A.jsp
src/main/webapp/HG/CW/HGCW006A.jsp
+4
-1
HGCW014.js
src/main/webapp/HG/CW/HGCW014.js
+4
-4
HGCW016.js
src/main/webapp/HG/CW/HGCW016.js
+4
-4
HGCW016A.jsp
src/main/webapp/HG/CW/HGCW016A.jsp
+5
-4
HGKC001.jsp
src/main/webapp/HG/KC/HGKC001.jsp
+2
-2
HGKC006.js
src/main/webapp/HG/KC/HGKC006.js
+4
-4
HGKC006.jsp
src/main/webapp/HG/KC/HGKC006.jsp
+2
-2
HGKC007.js
src/main/webapp/HG/KC/HGKC007.js
+4
-4
HGKC007.jsp
src/main/webapp/HG/KC/HGKC007.jsp
+2
-2
HGKC010.jsp
src/main/webapp/HG/KC/HGKC010.jsp
+2
-2
HGSC003.js
src/main/webapp/HG/SC/HGSC003.js
+2
-2
HGSC004.js
src/main/webapp/HG/SC/HGSC004.js
+10
-11
HGSC004.jsp
src/main/webapp/HG/SC/HGSC004.jsp
+4
-4
HGSC004A.js
src/main/webapp/HG/SC/HGSC004A.js
+29
-11
HGSC004A.jsp
src/main/webapp/HG/SC/HGSC004A.jsp
+1
-1
HGSC009.jsp
src/main/webapp/HG/SC/HGSC009.jsp
+1
-1
HGZL001.jsp
src/main/webapp/HG/ZL/HGZL001.jsp
+4
-4
No files found.
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
View file @
2df80332
...
@@ -92,7 +92,7 @@ public enum DdynamicEnum {
...
@@ -92,7 +92,7 @@ public enum DdynamicEnum {
* 用途:存货档案下拉框 (不默认状态)
* 用途:存货档案下拉框 (不默认状态)
* 编写:
* 编写:
*/
*/
INVENT_RECORD_BOX_BLOCK_ID
(
"invent_record_box_block_id"
,
"inventCode"
,
"inventName"
,
"inventTypeDetail"
,
"id"
,
"inventType"
,
"spec"
,
"material"
,
"unit"
,
"length"
,
"width"
,
"thick"
,
"
COEFFICIENT
"
,
"HGPZ005.queryInventCodeBox"
),
INVENT_RECORD_BOX_BLOCK_ID
(
"invent_record_box_block_id"
,
"inventCode"
,
"inventName"
,
"inventTypeDetail"
,
"id"
,
"inventType"
,
"spec"
,
"material"
,
"unit"
,
"length"
,
"width"
,
"thick"
,
"
coefficient
"
,
"HGPZ005.queryInventCodeBox"
),
/**
/**
* 模块:存货档案
* 模块:存货档案
...
@@ -348,6 +348,12 @@ public enum DdynamicEnum {
...
@@ -348,6 +348,12 @@ public enum DdynamicEnum {
* 编写: ly
* 编写: ly
*/
*/
DELIVERY_CODE_BOX_BLOCK_ID
(
"deliveryCodeBox_block_id"
,
"deliveryCode"
,
"projName"
,
"id"
,
"HGYX001.queryReturnCodeBox"
),
DELIVERY_CODE_BOX_BLOCK_ID
(
"deliveryCodeBox_block_id"
,
"deliveryCode"
,
"projName"
,
"id"
,
"HGYX001.queryReturnCodeBox"
),
/**
* 项目下拉框根据权限查
*/
PROJ_RECORD_BY_ROLE_BLOCK_ID
(
"projRecordByRole_block_id"
,
"projCode"
,
"projName"
,
"companyCode"
,
"companyName"
,
"HGSC001.queryProjectByRoleBox"
),
;
;
...
...
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG001.java
View file @
2df80332
...
@@ -10,6 +10,7 @@ import com.baosight.hggp.hg.cg.tools.HGCGTools;
...
@@ -10,6 +10,7 @@ import com.baosight.hggp.hg.cg.tools.HGCGTools;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
...
@@ -33,7 +34,7 @@ import java.util.Map;
...
@@ -33,7 +34,7 @@ import java.util.Map;
* @date:2024/5/9,11:04
* @date:2024/5/9,11:04
*/
*/
public
class
ServiceHGCG001
extends
ServiceBase
{
public
class
ServiceHGCG001
extends
ServiceBase
{
/**
/**
* 画面初始化
* 画面初始化
*
*
...
@@ -50,14 +51,15 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -50,14 +51,15 @@ public class ServiceHGCG001 extends ServiceBase {
CommonMethod
.
distinctTextField
(
inInfo
,
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
.
getBlockId
());
CommonMethod
.
distinctTextField
(
inInfo
,
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
.
getBlockId
());
CommonMethod
.
objConvertComboBox
(
resultList
,
inInfo
,
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
.
getBlockId
(),
HGCG001
.
FIELD_SPEC
,
HGCG001
.
FIELD_SPEC
);
CommonMethod
.
objConvertComboBox
(
resultList
,
inInfo
,
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
.
getBlockId
(),
HGCG001
.
FIELD_SPEC
,
HGCG001
.
FIELD_SPEC
);
CommonMethod
.
distinctTextField
(
inInfo
,
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
.
getBlockId
());
CommonMethod
.
distinctTextField
(
inInfo
,
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
.
getBlockId
());
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG001
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG001
().
eiMetadata
);
}
catch
(
Plat
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 查询操作
* 查询操作
*
*
...
@@ -76,7 +78,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -76,7 +78,7 @@ public class ServiceHGCG001 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 保存操作.
* 保存操作.
*
*
...
@@ -101,7 +103,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -101,7 +103,7 @@ public class ServiceHGCG001 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 数据校验
* 数据校验
*
*
...
@@ -119,7 +121,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -119,7 +121,7 @@ public class ServiceHGCG001 extends ServiceBase {
AssertUtils
.
isGe
(
BigDecimal
.
ZERO
,
fCg001
.
getPurWeight
(),
String
.
format
(
"计划[%s]采购重量必须大于0"
,
planNo
));
AssertUtils
.
isGe
(
BigDecimal
.
ZERO
,
fCg001
.
getPurWeight
(),
String
.
format
(
"计划[%s]采购重量必须大于0"
,
planNo
));
}
}
}
}
/**
/**
* 数据保存
* 数据保存
*
*
...
@@ -131,7 +133,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -131,7 +133,7 @@ public class ServiceHGCG001 extends ServiceBase {
DaoUtils
.
update
(
HGSqlConstant
.
HgCg001
.
UPDATE_PUR
,
fCg001
);
DaoUtils
.
update
(
HGSqlConstant
.
HgCg001
.
UPDATE_PUR
,
fCg001
);
}
}
}
}
/**
/**
* 删除操作.
* 删除操作.
*
*
...
@@ -156,7 +158,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -156,7 +158,7 @@ public class ServiceHGCG001 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 数据校验
* 数据校验
*
*
...
@@ -172,7 +174,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -172,7 +174,7 @@ public class ServiceHGCG001 extends ServiceBase {
String
.
format
(
"计划[%s]状态不是\"待审核\",不允许操作"
,
planNo
));
String
.
format
(
"计划[%s]状态不是\"待审核\",不允许操作"
,
planNo
));
}
}
}
}
/**
/**
* 数据保存
* 数据保存
*
*
...
@@ -184,7 +186,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -184,7 +186,7 @@ public class ServiceHGCG001 extends ServiceBase {
DaoUtils
.
update
(
HGCG001
.
DELETE
,
fCg001
);
DaoUtils
.
update
(
HGCG001
.
DELETE
,
fCg001
);
}
}
}
}
/**
/**
* 提交操作.
* 提交操作.
*
*
...
@@ -209,7 +211,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -209,7 +211,7 @@ public class ServiceHGCG001 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 数据校验
* 数据校验
*
*
...
@@ -227,8 +229,8 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -227,8 +229,8 @@ public class ServiceHGCG001 extends ServiceBase {
AssertUtils
.
isGe
(
BigDecimal
.
ZERO
,
dbCg001
.
getPurWeight
(),
String
.
format
(
"计划[%s]采购重量必须大于0"
,
planNo
));
AssertUtils
.
isGe
(
BigDecimal
.
ZERO
,
dbCg001
.
getPurWeight
(),
String
.
format
(
"计划[%s]采购重量必须大于0"
,
planNo
));
}
}
}
}
/**
/**
* 提交数据
* 提交数据
*
*
...
@@ -244,7 +246,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -244,7 +246,7 @@ public class ServiceHGCG001 extends ServiceBase {
DaoUtils
.
update
(
HGSqlConstant
.
HgCg001
.
UPDATE_AUDIT
,
fCg001
);
DaoUtils
.
update
(
HGSqlConstant
.
HgCg001
.
UPDATE_AUDIT
,
fCg001
);
}
}
}
}
/**
/**
* 锁并且获取数据
* 锁并且获取数据
*
*
...
...
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG002.java
View file @
2df80332
...
@@ -11,6 +11,7 @@ import com.baosight.hggp.hg.cg.tools.HGCGTools;
...
@@ -11,6 +11,7 @@ import com.baosight.hggp.hg.cg.tools.HGCGTools;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
...
@@ -48,6 +49,7 @@ public class ServiceHGCG002 extends ServiceBase {
...
@@ -48,6 +49,7 @@ public class ServiceHGCG002 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"userByCompany"
,
UserSessionUtils
.
getUserByCompany
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"userByCompany"
,
UserSessionUtils
.
getUserByCompany
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG002
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG002
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG002A.java
View file @
2df80332
...
@@ -11,6 +11,7 @@ import com.baosight.hggp.hg.cg.tools.HGCGTools;
...
@@ -11,6 +11,7 @@ import com.baosight.hggp.hg.cg.tools.HGCGTools;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.BeanUtils
;
import
com.baosight.hggp.util.BeanUtils
;
...
@@ -51,6 +52,7 @@ public class ServiceHGCG002A extends ServiceBase {
...
@@ -51,6 +52,7 @@ public class ServiceHGCG002A extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
EiInfoUtils
.
addBlock
(
inInfo
,
"userByCompany"
,
UserSessionUtils
.
getUserByCompany
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"userByCompany"
,
UserSessionUtils
.
getUserByCompany
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG001
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG001
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
...
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG003.java
View file @
2df80332
...
@@ -4,12 +4,14 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
...
@@ -4,12 +4,14 @@ 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.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cg.domain.HGCG002A
;
import
com.baosight.hggp.hg.cg.domain.HGCG002A
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.cg.utils.HGCGUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
...
@@ -31,7 +33,7 @@ import java.util.Map;
...
@@ -31,7 +33,7 @@ import java.util.Map;
* @date:2024/5/9,11:04
* @date:2024/5/9,11:04
*/
*/
public
class
ServiceHGCG003
extends
ServiceBase
{
public
class
ServiceHGCG003
extends
ServiceBase
{
/**
/**
* 画面初始化
* 画面初始化
*
*
...
@@ -46,13 +48,14 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -46,13 +48,14 @@ public class ServiceHGCG003 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SUP_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG003
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCG003
().
eiMetadata
);
}
catch
(
Plat
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 查询操作
* 查询操作
*
*
...
@@ -71,7 +74,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -71,7 +74,7 @@ public class ServiceHGCG003 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 保存操作.
* 保存操作.
*
*
...
@@ -99,7 +102,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -99,7 +102,7 @@ public class ServiceHGCG003 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 数据校验
* 数据校验
*
*
...
@@ -128,7 +131,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -128,7 +131,7 @@ public class ServiceHGCG003 extends ServiceBase {
}
}
}
}
}
}
/**
/**
* 数据保存
* 数据保存
*
*
...
@@ -149,7 +152,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -149,7 +152,7 @@ public class ServiceHGCG003 extends ServiceBase {
HGCGTools
.
HgCg002
.
updateReceive
(
dbCg002AMap
.
get
(
contractNo
),
diffQty
);
HGCGTools
.
HgCg002
.
updateReceive
(
dbCg002AMap
.
get
(
contractNo
),
diffQty
);
}
}
}
}
/**
/**
* 删除操作.
* 删除操作.
*
*
...
@@ -177,7 +180,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -177,7 +180,7 @@ public class ServiceHGCG003 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 数据校验
* 数据校验
*
*
...
@@ -193,7 +196,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -193,7 +196,7 @@ public class ServiceHGCG003 extends ServiceBase {
String
.
format
(
"收货单[%s]状态不是\"待确认\",不允许操作"
,
receiveNo
));
String
.
format
(
"收货单[%s]状态不是\"待确认\",不允许操作"
,
receiveNo
));
}
}
}
}
/**
/**
* 数据保存
* 数据保存
*
*
...
@@ -212,7 +215,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -212,7 +215,7 @@ public class ServiceHGCG003 extends ServiceBase {
HGCGTools
.
HgCg002
.
updateReceive
(
dbCg002AMap
.
get
(
contractNo
),
dbCg003
.
getReceiveQty
().
negate
());
HGCGTools
.
HgCg002
.
updateReceive
(
dbCg002AMap
.
get
(
contractNo
),
dbCg003
.
getReceiveQty
().
negate
());
}
}
}
}
/**
/**
* 确认操作.
* 确认操作.
*
*
...
@@ -237,7 +240,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -237,7 +240,7 @@ public class ServiceHGCG003 extends ServiceBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 数据校验
* 数据校验
*
*
...
@@ -258,7 +261,7 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -258,7 +261,7 @@ public class ServiceHGCG003 extends ServiceBase {
fCg003
.
getDeliverQty
(),
fCg003
.
getDepositQty
(),
dbCg003
.
getReceiveQty
()));
fCg003
.
getDeliverQty
(),
fCg003
.
getDepositQty
(),
dbCg003
.
getReceiveQty
()));
}
}
}
}
/**
/**
* 确认数据
* 确认数据
*
*
...
@@ -270,5 +273,5 @@ public class ServiceHGCG003 extends ServiceBase {
...
@@ -270,5 +273,5 @@ public class ServiceHGCG003 extends ServiceBase {
DaoUtils
.
update
(
HGSqlConstant
.
HgCg003
.
UPDATE_CONFIRM
,
fCg003
);
DaoUtils
.
update
(
HGSqlConstant
.
HgCg003
.
UPDATE_CONFIRM
,
fCg003
);
}
}
}
}
}
}
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW007.java
View file @
2df80332
...
@@ -32,6 +32,9 @@ public class HGCW007 extends DaoEPBase {
...
@@ -32,6 +32,9 @@ public class HGCW007 extends DaoEPBase {
public
static
final
String
FIELD_UNIT_PRICE
=
"unitPrice"
;
/* 单价*/
public
static
final
String
FIELD_UNIT_PRICE
=
"unitPrice"
;
/* 单价*/
public
static
final
String
FIELD_DAY_NUMBER
=
"dayNumber"
;
/* 天数*/
public
static
final
String
FIELD_DAY_NUMBER
=
"dayNumber"
;
/* 天数*/
public
static
final
String
FIELD_TOTAL_PRICE
=
"totalPrice"
;
/* 总价*/
public
static
final
String
FIELD_TOTAL_PRICE
=
"totalPrice"
;
/* 总价*/
public
static
final
String
FIELD_TAX_AMOUNT
=
"taxAmount"
;
/* 税额*/
public
static
final
String
FIELD_TOTAL_PRICE_INCLUDING
=
"totalPriceIncluding"
;
/* 含税总价*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
...
@@ -51,6 +54,8 @@ public class HGCW007 extends DaoEPBase {
...
@@ -51,6 +54,8 @@ public class HGCW007 extends DaoEPBase {
public
static
final
String
COL_UNIT_PRICE
=
"UNIT_PRICE"
;
/* 单价*/
public
static
final
String
COL_UNIT_PRICE
=
"UNIT_PRICE"
;
/* 单价*/
public
static
final
String
COL_DAY_NUMBER
=
"DAY_NUMBER"
;
/* 天数*/
public
static
final
String
COL_DAY_NUMBER
=
"DAY_NUMBER"
;
/* 天数*/
public
static
final
String
COL_TOTAL_PRICE
=
"TOTAL_PRICE"
;
/* 总价*/
public
static
final
String
COL_TOTAL_PRICE
=
"TOTAL_PRICE"
;
/* 总价*/
public
static
final
String
COL_TAX_AMOUNT
=
"TAX_AMOUNT"
;
/* 税额*/
public
static
final
String
COL_TOTAL_PRICE_INCLUDING
=
"TOTAL_PRICE_INCLUDING"
;
/* 含税总价*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
...
@@ -75,6 +80,8 @@ public class HGCW007 extends DaoEPBase {
...
@@ -75,6 +80,8 @@ public class HGCW007 extends DaoEPBase {
private
BigDecimal
unitPrice
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
unitPrice
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
dayNumber
=
new
BigDecimal
(
"0"
);
/* 天数*/
private
BigDecimal
dayNumber
=
new
BigDecimal
(
"0"
);
/* 天数*/
private
BigDecimal
totalPrice
=
new
BigDecimal
(
"0"
);
/* 总价*/
private
BigDecimal
totalPrice
=
new
BigDecimal
(
"0"
);
/* 总价*/
private
BigDecimal
taxAmount
=
new
BigDecimal
(
"0"
);
/* 税额*/
private
BigDecimal
totalPriceIncluding
=
new
BigDecimal
(
"0"
);
/* 含税总价*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
...
@@ -142,6 +149,20 @@ public class HGCW007 extends DaoEPBase {
...
@@ -142,6 +149,20 @@ public class HGCW007 extends DaoEPBase {
eiColumn
.
setDescName
(
"总价"
);
eiColumn
.
setDescName
(
"总价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TAX_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"税额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_TOTAL_PRICE_INCLUDING
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
3
);
eiColumn
.
setFieldLength
(
15
);
eiColumn
.
setDescName
(
"含税总价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -470,6 +491,8 @@ public class HGCW007 extends DaoEPBase {
...
@@ -470,6 +491,8 @@ public class HGCW007 extends DaoEPBase {
setUnitPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT_PRICE
)),
unitPrice
));
setUnitPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT_PRICE
)),
unitPrice
));
setDayNumber
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DAY_NUMBER
)),
dayNumber
));
setDayNumber
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DAY_NUMBER
)),
dayNumber
));
setTotalPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TOTAL_PRICE
)),
totalPrice
));
setTotalPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TOTAL_PRICE
)),
totalPrice
));
setTaxAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TAX_AMOUNT
)),
taxAmount
));
setTotalPriceIncluding
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_TOTAL_PRICE_INCLUDING
)),
totalPriceIncluding
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
...
@@ -496,6 +519,8 @@ public class HGCW007 extends DaoEPBase {
...
@@ -496,6 +519,8 @@ public class HGCW007 extends DaoEPBase {
map
.
put
(
FIELD_UNIT_PRICE
,
StringUtils
.
toString
(
unitPrice
,
eiMetadata
.
getMeta
(
FIELD_UNIT_PRICE
)));
map
.
put
(
FIELD_UNIT_PRICE
,
StringUtils
.
toString
(
unitPrice
,
eiMetadata
.
getMeta
(
FIELD_UNIT_PRICE
)));
map
.
put
(
FIELD_DAY_NUMBER
,
StringUtils
.
toString
(
dayNumber
,
eiMetadata
.
getMeta
(
FIELD_DAY_NUMBER
)));
map
.
put
(
FIELD_DAY_NUMBER
,
StringUtils
.
toString
(
dayNumber
,
eiMetadata
.
getMeta
(
FIELD_DAY_NUMBER
)));
map
.
put
(
FIELD_TOTAL_PRICE
,
StringUtils
.
toString
(
totalPrice
,
eiMetadata
.
getMeta
(
FIELD_TOTAL_PRICE
)));
map
.
put
(
FIELD_TOTAL_PRICE
,
StringUtils
.
toString
(
totalPrice
,
eiMetadata
.
getMeta
(
FIELD_TOTAL_PRICE
)));
map
.
put
(
FIELD_TAX_AMOUNT
,
StringUtils
.
toString
(
taxAmount
,
eiMetadata
.
getMeta
(
FIELD_TAX_AMOUNT
)));
map
.
put
(
FIELD_TOTAL_PRICE_INCLUDING
,
StringUtils
.
toString
(
totalPriceIncluding
,
eiMetadata
.
getMeta
(
FIELD_TOTAL_PRICE_INCLUDING
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
...
@@ -506,4 +531,20 @@ public class HGCW007 extends DaoEPBase {
...
@@ -506,4 +531,20 @@ public class HGCW007 extends DaoEPBase {
return
map
;
return
map
;
}
}
public
BigDecimal
getTaxAmount
()
{
return
taxAmount
;
}
public
void
setTaxAmount
(
BigDecimal
taxAmount
)
{
this
.
taxAmount
=
taxAmount
;
}
public
BigDecimal
getTotalPriceIncluding
()
{
return
totalPriceIncluding
;
}
public
void
setTotalPriceIncluding
(
BigDecimal
totalPriceIncluding
)
{
this
.
totalPriceIncluding
=
totalPriceIncluding
;
}
}
}
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW051.java
View file @
2df80332
...
@@ -35,7 +35,7 @@ public class HGCW051 extends DaoEPBase {
...
@@ -35,7 +35,7 @@ public class HGCW051 extends DaoEPBase {
public
static
final
String
FIELD_YEAR
=
"year"
;
/* 年份*/
public
static
final
String
FIELD_YEAR
=
"year"
;
/* 年份*/
public
static
final
String
FIELD_MONTH
=
"month"
;
/* 月份*/
public
static
final
String
FIELD_MONTH
=
"month"
;
/* 月份*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 费用金额*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 费用金额*/
public
static
final
String
FIELD_ACCOUNT
=
"account
"
;
/* 企业编码*/
public
static
final
String
FIELD_ACCOUNT
_CODE
=
"accountCode
"
;
/* 企业编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ID
=
"ID"
;
...
@@ -51,7 +51,7 @@ public class HGCW051 extends DaoEPBase {
...
@@ -51,7 +51,7 @@ public class HGCW051 extends DaoEPBase {
public
static
final
String
COL_YEAR
=
"YEAR"
;
/* 年份*/
public
static
final
String
COL_YEAR
=
"YEAR"
;
/* 年份*/
public
static
final
String
COL_MONTH
=
"MONTH"
;
/* 月份*/
public
static
final
String
COL_MONTH
=
"MONTH"
;
/* 月份*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 费用金额*/
public
static
final
String
COL_AMOUNT
=
"AMOUNT"
;
/* 费用金额*/
public
static
final
String
COL_ACCOUNT
=
"ACCOUNT
"
;
/* 企业编码*/
public
static
final
String
COL_ACCOUNT
_CODE
=
"ACCOUNT_CODE
"
;
/* 企业编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
QUERY
=
"HGCW051.query"
;
public
static
final
String
QUERY
=
"HGCW051.query"
;
...
@@ -73,7 +73,7 @@ public class HGCW051 extends DaoEPBase {
...
@@ -73,7 +73,7 @@ public class HGCW051 extends DaoEPBase {
private
String
year
=
" "
;
/* 年份*/
private
String
year
=
" "
;
/* 年份*/
private
String
month
=
" "
;
/* 月份*/
private
String
month
=
" "
;
/* 月份*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 费用金额*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 费用金额*/
private
String
account
=
" "
;
/* 企业编码*/
private
String
account
Code
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
/**
/**
...
@@ -138,7 +138,7 @@ public class HGCW051 extends DaoEPBase {
...
@@ -138,7 +138,7 @@ public class HGCW051 extends DaoEPBase {
eiColumn
.
setDescName
(
"费用金额"
);
eiColumn
.
setDescName
(
"费用金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT
_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -368,17 +368,17 @@ public class HGCW051 extends DaoEPBase {
...
@@ -368,17 +368,17 @@ public class HGCW051 extends DaoEPBase {
* get the account - 企业编码.
* get the account - 企业编码.
* @return the account
* @return the account
*/
*/
public
String
getAccount
()
{
public
String
getAccount
Code
()
{
return
this
.
account
;
return
this
.
account
Code
;
}
}
/**
/**
* set the account - 企业编码.
* set the account
Code
- 企业编码.
*
*
* @param account - 企业编码
* @param account
Code
- 企业编码
*/
*/
public
void
setAccount
(
String
account
)
{
public
void
setAccount
Code
(
String
accountCode
)
{
this
.
account
=
account
;
this
.
account
Code
=
accountCode
;
}
}
/**
/**
* get the depCode - 部门编码.
* get the depCode - 部门编码.
...
@@ -417,7 +417,7 @@ public class HGCW051 extends DaoEPBase {
...
@@ -417,7 +417,7 @@ public class HGCW051 extends DaoEPBase {
setYear
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_YEAR
)),
year
));
setYear
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_YEAR
)),
year
));
setMonth
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MONTH
)),
month
));
setMonth
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_MONTH
)),
month
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setAccount
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT
)),
account
));
setAccount
Code
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
}
}
...
@@ -441,7 +441,7 @@ public class HGCW051 extends DaoEPBase {
...
@@ -441,7 +441,7 @@ public class HGCW051 extends DaoEPBase {
map
.
put
(
FIELD_YEAR
,
StringUtils
.
toString
(
year
,
eiMetadata
.
getMeta
(
FIELD_YEAR
)));
map
.
put
(
FIELD_YEAR
,
StringUtils
.
toString
(
year
,
eiMetadata
.
getMeta
(
FIELD_YEAR
)));
map
.
put
(
FIELD_MONTH
,
StringUtils
.
toString
(
month
,
eiMetadata
.
getMeta
(
FIELD_MONTH
)));
map
.
put
(
FIELD_MONTH
,
StringUtils
.
toString
(
month
,
eiMetadata
.
getMeta
(
FIELD_MONTH
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_ACCOUNT
,
StringUtils
.
toString
(
account
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT
)));
map
.
put
(
FIELD_ACCOUNT
_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
return
map
;
return
map
;
...
...
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW052.java
View file @
2df80332
...
@@ -41,7 +41,7 @@ public class HGCW052 extends DaoEPBase {
...
@@ -41,7 +41,7 @@ public class HGCW052 extends DaoEPBase {
public
static
final
String
FIELD_ITEM_NAME
=
"itemName"
;
/* 项目名称*/
public
static
final
String
FIELD_ITEM_NAME
=
"itemName"
;
/* 项目名称*/
public
static
final
String
FIELD_ITEM_CODE
=
"itemCode"
;
/* 项目编号*/
public
static
final
String
FIELD_ITEM_CODE
=
"itemCode"
;
/* 项目编号*/
public
static
final
String
FIELD_IS_SHARE
=
"isShare"
;
/* 是否分摊费用*/
public
static
final
String
FIELD_IS_SHARE
=
"isShare"
;
/* 是否分摊费用*/
public
static
final
String
FIELD_ACCOUNT
=
"account
"
;
/* 企业编码*/
public
static
final
String
FIELD_ACCOUNT
_CODE
=
"accountCode
"
;
/* 企业编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
COL_ID
=
"ID"
;
public
static
final
String
COL_ID
=
"ID"
;
...
@@ -63,7 +63,7 @@ public class HGCW052 extends DaoEPBase {
...
@@ -63,7 +63,7 @@ public class HGCW052 extends DaoEPBase {
public
static
final
String
COL_ITEM_NAME
=
"ITEM_NAME"
;
/* 项目名称*/
public
static
final
String
COL_ITEM_NAME
=
"ITEM_NAME"
;
/* 项目名称*/
public
static
final
String
COL_ITEM_CODE
=
"ITEM_CODE"
;
/* 项目编号*/
public
static
final
String
COL_ITEM_CODE
=
"ITEM_CODE"
;
/* 项目编号*/
public
static
final
String
COL_IS_SHARE
=
"IS_SHARE"
;
/* 是否分摊费用*/
public
static
final
String
COL_IS_SHARE
=
"IS_SHARE"
;
/* 是否分摊费用*/
public
static
final
String
COL_ACCOUNT
=
"ACCOUNT
"
;
/* 企业编码*/
public
static
final
String
COL_ACCOUNT
_CODE
=
"ACCOUNT_CODE
"
;
/* 企业编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
COL_DEP_CODE
=
"DEP_CODE"
;
/* 部门编码*/
public
static
final
String
QUERY
=
"HGCW052.query"
;
public
static
final
String
QUERY
=
"HGCW052.query"
;
...
@@ -91,7 +91,7 @@ public class HGCW052 extends DaoEPBase {
...
@@ -91,7 +91,7 @@ public class HGCW052 extends DaoEPBase {
private
String
itemName
=
" "
;
/* 项目名称*/
private
String
itemName
=
" "
;
/* 项目名称*/
private
String
itemCode
=
" "
;
/* 项目编号*/
private
String
itemCode
=
" "
;
/* 项目编号*/
private
String
isShare
=
" "
;
/* 是否分摊费用*/
private
String
isShare
=
" "
;
/* 是否分摊费用*/
private
String
account
=
" "
;
/* 企业编码*/
private
String
account
Code
=
" "
;
/* 企业编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
depCode
=
" "
;
/* 部门编码*/
/**
/**
...
@@ -180,7 +180,7 @@ public class HGCW052 extends DaoEPBase {
...
@@ -180,7 +180,7 @@ public class HGCW052 extends DaoEPBase {
eiColumn
.
setDescName
(
"是否分摊费用"
);
eiColumn
.
setDescName
(
"是否分摊费用"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT
);
eiColumn
=
new
EiColumn
(
FIELD_ACCOUNT
_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -506,8 +506,8 @@ public class HGCW052 extends DaoEPBase {
...
@@ -506,8 +506,8 @@ public class HGCW052 extends DaoEPBase {
* get the account - 企业编码.
* get the account - 企业编码.
* @return the account
* @return the account
*/
*/
public
String
getAccount
()
{
public
String
getAccount
Code
()
{
return
this
.
account
;
return
this
.
account
Code
;
}
}
/**
/**
...
@@ -515,8 +515,8 @@ public class HGCW052 extends DaoEPBase {
...
@@ -515,8 +515,8 @@ public class HGCW052 extends DaoEPBase {
*
*
* @param account - 企业编码
* @param account - 企业编码
*/
*/
public
void
setAccount
(
String
account
)
{
public
void
setAccount
Code
(
String
account
)
{
this
.
account
=
account
;
this
.
account
Code
=
account
;
}
}
/**
/**
* get the depCode - 部门编码.
* get the depCode - 部门编码.
...
@@ -561,7 +561,7 @@ public class HGCW052 extends DaoEPBase {
...
@@ -561,7 +561,7 @@ public class HGCW052 extends DaoEPBase {
setItemName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ITEM_NAME
)),
itemName
));
setItemName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ITEM_NAME
)),
itemName
));
setItemCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ITEM_CODE
)),
itemCode
));
setItemCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ITEM_CODE
)),
itemCode
));
setIsShare
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_SHARE
)),
isShare
));
setIsShare
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_IS_SHARE
)),
isShare
));
setAccount
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT
)),
account
));
setAccount
Code
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
}
}
...
@@ -591,7 +591,7 @@ public class HGCW052 extends DaoEPBase {
...
@@ -591,7 +591,7 @@ public class HGCW052 extends DaoEPBase {
map
.
put
(
FIELD_ITEM_NAME
,
StringUtils
.
toString
(
itemName
,
eiMetadata
.
getMeta
(
FIELD_ITEM_NAME
)));
map
.
put
(
FIELD_ITEM_NAME
,
StringUtils
.
toString
(
itemName
,
eiMetadata
.
getMeta
(
FIELD_ITEM_NAME
)));
map
.
put
(
FIELD_ITEM_CODE
,
StringUtils
.
toString
(
itemCode
,
eiMetadata
.
getMeta
(
FIELD_ITEM_CODE
)));
map
.
put
(
FIELD_ITEM_CODE
,
StringUtils
.
toString
(
itemCode
,
eiMetadata
.
getMeta
(
FIELD_ITEM_CODE
)));
map
.
put
(
FIELD_IS_SHARE
,
StringUtils
.
toString
(
isShare
,
eiMetadata
.
getMeta
(
FIELD_IS_SHARE
)));
map
.
put
(
FIELD_IS_SHARE
,
StringUtils
.
toString
(
isShare
,
eiMetadata
.
getMeta
(
FIELD_IS_SHARE
)));
map
.
put
(
FIELD_ACCOUNT
,
StringUtils
.
toString
(
account
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT
)));
map
.
put
(
FIELD_ACCOUNT
_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
return
map
;
return
map
;
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002.java
View file @
2df80332
...
@@ -12,6 +12,8 @@ import com.baosight.hggp.hg.cw.domain.HGCW999;
...
@@ -12,6 +12,8 @@ import com.baosight.hggp.hg.cw.domain.HGCW999;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
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.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
...
@@ -100,28 +102,33 @@ public class ServiceHGCW002 extends ServiceBase {
...
@@ -100,28 +102,33 @@ public class ServiceHGCW002 extends ServiceBase {
if
(
CollectionUtils
.
isNotEmpty
(
resultRows
))
{
if
(
CollectionUtils
.
isNotEmpty
(
resultRows
))
{
HGCW002
HGCW002
=
new
HGCW002
();
HGCW002
HGCW002
=
new
HGCW002
();
HGCW002
.
fromMap
(
resultRows
.
get
(
0
));
HGCW002
.
fromMap
(
resultRows
.
get
(
0
));
//获取项目所属公司
String
projCode
=
HGCW002
.
getProjCode
();
HGSC001
HGSC001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
projCode
);
if
(
HGSC001
!=
null
)
{
HGCW002
.
setCompanyCode
(
HGSC001
.
getCompanyCode
());
HGCW002
.
setCompanyName
(
HGSC001
.
getCompanyName
());
}
else
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!项目编码:["
+
projCode
+
"]未找到对应的项目信息!"
);
}
HGCW002
.
setPlanStartDate
(
DateUtils
.
formatShort
(
HGCW002
.
getPlanStartDate
()));
HGCW002
.
setPlanEndDate
(
DateUtils
.
formatShort
(
HGCW002
.
getPlanEndDate
()));
HGCW002
.
setSigningDate
(
DateUtils
.
formatShort
(
HGCW002
.
getSigningDate
()));
if
(
HGCW002
.
getId
()
==
null
||
HGCW002
.
getId
()
==
0
)
{
if
(
HGCW002
.
getId
()
==
null
||
HGCW002
.
getId
()
==
0
)
{
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
String
contractNumber
=
HGCW002
.
getCompanyCode
()
+
String
contractNumber
=
userVO
.
getUsercode
()
+
HGCW002
.
getContractType
()
+
HGCW002
.
getContractType
()
+
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
CW_CONTRACT_NO
);
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
CW_CONTRACT_NO
);
HGCW002
.
setCompanyCode
(
userVO
.
getUsercode
());
HGCW002
.
setCompanyName
(
userVO
.
getUsername
());
HGCW002
.
setContractNumber
(
contractNumber
);
HGCW002
.
setContractNumber
(
contractNumber
);
HGCW002
.
setReviewStatus
(
0
);
HGCW002
.
setReviewStatus
(
0
);
HGCW002
.
setBalanceStatus
(
1
);
HGCW002
.
setBalanceStatus
(
1
);
HGCW002
.
setPlanStartDate
(
DateUtils
.
formatShort
(
HGCW002
.
getPlanStartDate
()));
HGCW002
.
setPlanEndDate
(
DateUtils
.
formatShort
(
HGCW002
.
getPlanEndDate
()));
HGCW002
.
setSigningDate
(
DateUtils
.
formatShort
(
HGCW002
.
getSigningDate
()));
this
.
add
(
HGCW002
);
this
.
add
(
HGCW002
);
// 写入其他数据
// 写入其他数据
HGCWTools
.
HgCw003
.
save
(
detail1Rows
,
contractNumber
,
userVO
);
HGCWTools
.
HgCw003
.
save
(
detail1Rows
,
contractNumber
,
HGCW002
);
HGCWTools
.
HgCw999
.
batchUpdate
(
detail2Rows
,
HGCW002
.
getId
());
HGCWTools
.
HgCw999
.
batchUpdate
(
detail2Rows
,
HGCW002
.
getId
());
}
else
{
}
else
{
HGCW002
.
setPlanStartDate
(
DateUtils
.
formatShort
(
HGCW002
.
getPlanStartDate
()));
HGCW002
.
setPlanEndDate
(
DateUtils
.
formatShort
(
HGCW002
.
getPlanEndDate
()));
HGCW002
.
setSigningDate
(
DateUtils
.
formatShort
(
HGCW002
.
getSigningDate
()));
BigDecimal
totalContractPriceExcluding
=
new
BigDecimal
(
0
);
BigDecimal
totalContractPriceExcluding
=
new
BigDecimal
(
0
);
BigDecimal
totalContractPriceIncluding
=
new
BigDecimal
(
0
);
BigDecimal
totalContractPriceIncluding
=
new
BigDecimal
(
0
);
BigDecimal
valueAddedTax
=
new
BigDecimal
(
0
);
BigDecimal
valueAddedTax
=
new
BigDecimal
(
0
);
...
@@ -244,6 +251,10 @@ public class ServiceHGCW002 extends ServiceBase {
...
@@ -244,6 +251,10 @@ public class ServiceHGCW002 extends ServiceBase {
}
}
map
.
put
(
"contractTyps"
,
contractTypArray
);
map
.
put
(
"contractTyps"
,
contractTypArray
);
}
}
//增加根据当前登录人所属公司进行过滤
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
map
.
put
(
"companyCode"
,
userVO
.
getUsercode
());
List
<
HGCW002
>
HGCW002List
=
dao
.
query
(
"HGCW002.queryProjectComboBox"
,
map
);
List
<
HGCW002
>
HGCW002List
=
dao
.
query
(
"HGCW002.queryProjectComboBox"
,
map
);
inInfo
.
addBlock
(
"projcet_combo_box"
).
setRows
(
HGCW002List
);
inInfo
.
addBlock
(
"projcet_combo_box"
).
setRows
(
HGCW002List
);
return
inInfo
;
return
inInfo
;
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW003.java
View file @
2df80332
...
@@ -96,9 +96,9 @@ public class ServiceHGCW003 extends ServiceBase {
...
@@ -96,9 +96,9 @@ public class ServiceHGCW003 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW003
HGCW003
=
new
HGCW003
();
HGCW003
HGCW003
=
new
HGCW003
();
HGCW003
.
fromMap
(
resultRows
.
get
(
i
));
HGCW003
.
fromMap
(
resultRows
.
get
(
i
));
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
//
UserVO userVO = HGCWTools.HgCw002.getUserCompany();
HGCW003
.
setCompanyCode
(
userVO
.
getUsercode
());
//
HGCW003.setCompanyCode(userVO.getUsercode());
HGCW003
.
setCompanyName
(
userVO
.
getUsername
());
//
HGCW003.setCompanyName(userVO.getUsername());
contractNumber
=
HGCW003
.
getContractNumber
();
contractNumber
=
HGCW003
.
getContractNumber
();
if
(
HGCW003
.
getId
()
==
null
||
HGCW003
.
getId
()
==
0
)
{
if
(
HGCW003
.
getId
()
==
null
||
HGCW003
.
getId
()
==
0
)
{
this
.
add
(
HGCW003
);
this
.
add
(
HGCW003
);
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW004.java
View file @
2df80332
...
@@ -12,6 +12,8 @@ import com.baosight.hggp.hg.cw.tools.HGCWTools;
...
@@ -12,6 +12,8 @@ import com.baosight.hggp.hg.cw.tools.HGCWTools;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.sb.domain.HGSB003
;
import
com.baosight.hggp.hg.sb.domain.HGSB003
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
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.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
...
@@ -100,10 +102,16 @@ public class ServiceHGCW004 extends ServiceBase {
...
@@ -100,10 +102,16 @@ public class ServiceHGCW004 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW004
HGCW004
=
new
HGCW004
();
HGCW004
HGCW004
=
new
HGCW004
();
HGCW004
.
fromMap
(
resultRows
.
get
(
i
));
HGCW004
.
fromMap
(
resultRows
.
get
(
i
));
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
//获取项目所属公司
HGCW004
.
setCompanyCode
(
userVO
.
getUsercode
());
String
projCode
=
HGCW004
.
getProjCode
();
HGCW004
.
setCompanyName
(
userVO
.
getUsername
());
HGSC001
HGSC001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
projCode
);
HGCW004
.
setContractName
(
userVO
.
getUsername
());
if
(
HGSC001
!=
null
)
{
HGCW004
.
setCompanyCode
(
HGSC001
.
getCompanyCode
());
HGCW004
.
setCompanyName
(
HGSC001
.
getCompanyName
());
}
else
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!项目编码:["
+
projCode
+
"]未找到对应的项目信息!"
);
}
if
(
HGCW004
.
getId
()
==
null
||
HGCW004
.
getId
()
==
0
)
{
if
(
HGCW004
.
getId
()
==
null
||
HGCW004
.
getId
()
==
0
)
{
this
.
add
(
HGCW004
);
this
.
add
(
HGCW004
);
}
else
{
}
else
{
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW005.java
View file @
2df80332
...
@@ -10,6 +10,8 @@ import com.baosight.hggp.hg.cw.domain.HGCW005;
...
@@ -10,6 +10,8 @@ import com.baosight.hggp.hg.cw.domain.HGCW005;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
import
com.baosight.hggp.hg.sb.tools.HGSBTools
;
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.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
...
@@ -99,10 +101,16 @@ public class ServiceHGCW005 extends ServiceBase {
...
@@ -99,10 +101,16 @@ public class ServiceHGCW005 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW005
HGCW005
=
new
HGCW005
();
HGCW005
HGCW005
=
new
HGCW005
();
HGCW005
.
fromMap
(
resultRows
.
get
(
i
));
HGCW005
.
fromMap
(
resultRows
.
get
(
i
));
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
//获取项目所属公司
HGCW005
.
setCompanyCode
(
userVO
.
getUsercode
());
String
projCode
=
HGCW005
.
getProjCode
();
HGCW005
.
setCompanyName
(
userVO
.
getUsername
());
HGSC001
HGSC001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
projCode
);
HGCW005
.
setContractName
(
userVO
.
getUsername
());
if
(
HGSC001
!=
null
)
{
HGCW005
.
setCompanyCode
(
HGSC001
.
getCompanyCode
());
HGCW005
.
setCompanyName
(
HGSC001
.
getCompanyName
());
}
else
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!项目编码:["
+
projCode
+
"]未找到对应的项目信息!"
);
}
if
(
HGCW005
.
getId
()
==
null
||
HGCW005
.
getId
()
==
0
)
{
if
(
HGCW005
.
getId
()
==
null
||
HGCW005
.
getId
()
==
0
)
{
this
.
add
(
HGCW005
);
this
.
add
(
HGCW005
);
}
else
{
}
else
{
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW006.java
View file @
2df80332
...
@@ -9,6 +9,8 @@ import com.baosight.hggp.hg.cw.domain.HGCW003;
...
@@ -9,6 +9,8 @@ import com.baosight.hggp.hg.cw.domain.HGCW003;
import
com.baosight.hggp.hg.cw.domain.HGCW007
;
import
com.baosight.hggp.hg.cw.domain.HGCW007
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.LogUtils
;
...
@@ -83,28 +85,33 @@ public class ServiceHGCW006 extends ServiceBase {
...
@@ -83,28 +85,33 @@ public class ServiceHGCW006 extends ServiceBase {
if
(
CollectionUtils
.
isNotEmpty
(
resultRows
))
{
if
(
CollectionUtils
.
isNotEmpty
(
resultRows
))
{
HGCW006
HGCW006
=
new
HGCW006
();
HGCW006
HGCW006
=
new
HGCW006
();
HGCW006
.
fromMap
(
resultRows
.
get
(
0
));
HGCW006
.
fromMap
(
resultRows
.
get
(
0
));
//获取项目所属公司
String
projCode
=
HGCW006
.
getProjCode
();
HGSC001
HGSC001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
projCode
);
if
(
HGSC001
!=
null
)
{
HGCW006
.
setCompanyCode
(
HGSC001
.
getCompanyCode
());
HGCW006
.
setCompanyName
(
HGSC001
.
getCompanyName
());
}
else
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!项目编码:["
+
projCode
+
"]未找到对应的项目信息!"
);
}
HGCW006
.
setLeaseStartDate
(
DateUtils
.
formatShort
(
HGCW006
.
getLeaseStartDate
()));
HGCW006
.
setLeaseEndDate
(
DateUtils
.
formatShort
(
HGCW006
.
getLeaseEndDate
()));
HGCW006
.
setSigningDate
(
DateUtils
.
formatShort
(
HGCW006
.
getSigningDate
()));
if
(
HGCW006
.
getId
()
==
null
||
HGCW006
.
getId
()
==
0
)
{
if
(
HGCW006
.
getId
()
==
null
||
HGCW006
.
getId
()
==
0
)
{
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
String
contractNumber
=
HGCW006
.
getCompanyCode
()
+
String
contractNumber
=
userVO
.
getUsercode
()
+
"5"
+
"5"
+
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
CW_CONTRACT_NO
);
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
CW_CONTRACT_NO
);
HGCW006
.
setCompanyCode
(
userVO
.
getUsercode
());
HGCW006
.
setCompanyName
(
userVO
.
getUsername
());
HGCW006
.
setContractNumber
(
contractNumber
);
HGCW006
.
setContractNumber
(
contractNumber
);
HGCW006
.
setReviewStatus
(
0
);
HGCW006
.
setReviewStatus
(
0
);
HGCW006
.
setLeaseStartDate
(
DateUtils
.
formatShort
(
HGCW006
.
getLeaseStartDate
()));
HGCW006
.
setLeaseEndDate
(
DateUtils
.
formatShort
(
HGCW006
.
getLeaseEndDate
()));
HGCW006
.
setSigningDate
(
DateUtils
.
formatShort
(
HGCW006
.
getSigningDate
()));
this
.
add
(
HGCW006
);
this
.
add
(
HGCW006
);
// 写入其他数据
// 写入其他数据
HGCWTools
.
HgCw007
.
save
(
detail1Rows
,
contractNumber
,
userVO
);
HGCWTools
.
HgCw007
.
save
(
detail1Rows
,
contractNumber
,
HGCW006
);
HGCWTools
.
HgCw999
.
batchUpdate
(
detail2Rows
,
HGCW006
.
getId
());
HGCWTools
.
HgCw999
.
batchUpdate
(
detail2Rows
,
HGCW006
.
getId
());
}
else
{
}
else
{
HGCW006
.
setLeaseStartDate
(
DateUtils
.
formatShort
(
HGCW006
.
getLeaseStartDate
()));
HGCW006
.
setLeaseEndDate
(
DateUtils
.
formatShort
(
HGCW006
.
getLeaseEndDate
()));
HGCW006
.
setSigningDate
(
DateUtils
.
formatShort
(
HGCW006
.
getSigningDate
()));
BigDecimal
totalContractPriceExcluding
=
new
BigDecimal
(
0
);
BigDecimal
totalContractPriceExcluding
=
new
BigDecimal
(
0
);
BigDecimal
totalContractPriceIncluding
=
new
BigDecimal
(
0
);
BigDecimal
totalContractPriceIncluding
=
new
BigDecimal
(
0
);
BigDecimal
valueAddedTax
=
new
BigDecimal
(
0
);
BigDecimal
valueAddedTax
=
new
BigDecimal
(
0
);
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW007.java
View file @
2df80332
...
@@ -73,9 +73,6 @@ public class ServiceHGCW007 extends ServiceBase {
...
@@ -73,9 +73,6 @@ public class ServiceHGCW007 extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW007
HGCW007
=
new
HGCW007
();
HGCW007
HGCW007
=
new
HGCW007
();
HGCW007
.
fromMap
(
resultRows
.
get
(
i
));
HGCW007
.
fromMap
(
resultRows
.
get
(
i
));
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
HGCW007
.
setCompanyCode
(
userVO
.
getUsercode
());
HGCW007
.
setCompanyName
(
userVO
.
getUsername
());
contractNumber
=
HGCW007
.
getContractNumber
();
contractNumber
=
HGCW007
.
getContractNumber
();
if
(
HGCW007
.
getId
()
==
null
||
HGCW007
.
getId
()
==
0
)
{
if
(
HGCW007
.
getId
()
==
null
||
HGCW007
.
getId
()
==
0
)
{
this
.
add
(
HGCW007
);
this
.
add
(
HGCW007
);
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW007.xml
View file @
2df80332
...
@@ -56,6 +56,12 @@
...
@@ -56,6 +56,12 @@
<isNotEmpty
prepend=
" AND "
property=
"totalPrice"
>
<isNotEmpty
prepend=
" AND "
property=
"totalPrice"
>
TOTAL_PRICE = #totalPrice#
TOTAL_PRICE = #totalPrice#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"taxAmount"
>
TAX_AMOUNT = #taxAmount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"totalPriceIncluding"
>
TOTAL_PRICE_INCLUDING = #totalPriceIncluding#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
CREATED_BY = #createdBy#
</isNotEmpty>
</isNotEmpty>
...
@@ -95,6 +101,8 @@
...
@@ -95,6 +101,8 @@
UNIT_PRICE as "unitPrice",
<!-- 单价 -->
UNIT_PRICE as "unitPrice",
<!-- 单价 -->
DAY_NUMBER as "dayNumber",
<!-- 天数 -->
DAY_NUMBER as "dayNumber",
<!-- 天数 -->
TOTAL_PRICE as "totalPrice",
<!-- 总价 -->
TOTAL_PRICE as "totalPrice",
<!-- 总价 -->
TAX_AMOUNT as "taxAmount",
TOTAL_PRICE_INCLUDING as "totalPriceIncluding",
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
...
@@ -185,6 +193,8 @@
...
@@ -185,6 +193,8 @@
UNIT_PRICE,
<!-- 单价 -->
UNIT_PRICE,
<!-- 单价 -->
DAY_NUMBER,
<!-- 天数 -->
DAY_NUMBER,
<!-- 天数 -->
TOTAL_PRICE,
<!-- 总价 -->
TOTAL_PRICE,
<!-- 总价 -->
TAX_AMOUNT,
TOTAL_PRICE_INCLUDING,
CREATED_BY,
<!-- 记录创建者 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
CREATED_TIME,
<!-- 记录创建时间 -->
...
@@ -193,7 +203,7 @@
...
@@ -193,7 +203,7 @@
UPDATED_TIME,
<!-- 记录修改时间 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
DEP_CODE
<!-- 部门编码 -->
DEP_CODE
<!-- 部门编码 -->
)
)
VALUES (#id#, #accountCode#, #companyCode#, #companyName#, #contractNumber#, #deviceName#, #deviceNumber#, #unitPrice#, #dayNumber#, #totalPrice#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #depCode#)
VALUES (#id#, #accountCode#, #companyCode#, #companyName#, #contractNumber#, #deviceName#, #deviceNumber#, #unitPrice#, #dayNumber#, #totalPrice#, #
taxAmount#, #totalPriceIncluding#, #
createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #depCode#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -213,6 +223,8 @@
...
@@ -213,6 +223,8 @@
UNIT_PRICE = #unitPrice#,
<!-- 单价 -->
UNIT_PRICE = #unitPrice#,
<!-- 单价 -->
DAY_NUMBER = #dayNumber#,
<!-- 天数 -->
DAY_NUMBER = #dayNumber#,
<!-- 天数 -->
TOTAL_PRICE = #totalPrice#,
<!-- 总价 -->
TOTAL_PRICE = #totalPrice#,
<!-- 总价 -->
TAX_AMOUNT = #taxAmount#
TOTAL_PRICE_INCLUDING = #totalPriceIncluding#,
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
View file @
2df80332
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
COMPANY_CODE = #companyCode#
COMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME
= #companyName#
COMPANY_NAME
like ('%$companyName$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"settlementNumber"
>
<isNotEmpty
prepend=
" AND "
property=
"settlementNumber"
>
SETTLEMENT_NUMBER = #settlementNumber#
SETTLEMENT_NUMBER = #settlementNumber#
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
BILL_TYBE = #billTybe#
BILL_TYBE = #billTybe#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"billNumber"
>
<isNotEmpty
prepend=
" AND "
property=
"billNumber"
>
BILL_NUMBER
= #billNumber#
BILL_NUMBER
like ('%$billNumber$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"billState"
>
<isNotEmpty
prepend=
" AND "
property=
"billState"
>
BILL_STATE = #billState#
BILL_STATE = #billState#
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
SIGNING_DATE = #signingDate#
SIGNING_DATE = #signingDate#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"partyA"
>
<isNotEmpty
prepend=
" AND "
property=
"partyA"
>
PARTY_A
= #partyA#
PARTY_A
like ('%$partyA$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"reviewStatus"
>
<isNotEmpty
prepend=
" AND "
property=
"reviewStatus"
>
REVIEW_STATUS = #reviewStatus#
REVIEW_STATUS = #reviewStatus#
...
@@ -135,6 +135,15 @@
...
@@ -135,6 +135,15 @@
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"hiddenConditions"
>
REMAINING_AMOUNT > 0
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateFrom"
>
SIGNING_DATE
>
= REPLACE(#signingDateFrom#, '-', '')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateTo"
>
SIGNING_DATE
<
= REPLACE(#signingDateTo#, '-', '')
</isNotEmpty>
</sql>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW051.xml
View file @
2df80332
...
@@ -62,8 +62,8 @@
...
@@ -62,8 +62,8 @@
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
AMOUNT = #amount#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"account"
>
<isNotEmpty
prepend=
" AND "
property=
"account
Code
"
>
ACCOUNT
= #account
#
ACCOUNT
_CODE = #accountCode
#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
DEP_CODE = #depCode#
...
@@ -159,10 +159,10 @@
...
@@ -159,10 +159,10 @@
YEAR,
<!-- 年份 -->
YEAR,
<!-- 年份 -->
MONTH,
<!-- 月份 -->
MONTH,
<!-- 月份 -->
AMOUNT,
<!-- 费用金额 -->
AMOUNT,
<!-- 费用金额 -->
ACCOUNT,
<!-- 企业编码 -->
ACCOUNT
_CODE
,
<!-- 企业编码 -->
DEP_CODE
<!-- 部门编码 -->
DEP_CODE
<!-- 部门编码 -->
)
)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #account#, #depCode#)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #account
Code
#, #depCode#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
YEAR = #year#,
<!-- 年份 -->
YEAR = #year#,
<!-- 年份 -->
MONTH = #month#,
<!-- 月份 -->
MONTH = #month#,
<!-- 月份 -->
AMOUNT = #amount#,
<!-- 费用金额 -->
AMOUNT = #amount#,
<!-- 费用金额 -->
ACCOUNT
= #account
#,
<!-- 企业编码 -->
ACCOUNT
_CODE = #accountCode
#,
<!-- 企业编码 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
WHERE
WHERE
ID = #id#
ID = #id#
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW052.xml
View file @
2df80332
...
@@ -86,8 +86,8 @@
...
@@ -86,8 +86,8 @@
<isNotEmpty
prepend=
" AND "
property=
"isShare"
>
<isNotEmpty
prepend=
" AND "
property=
"isShare"
>
IS_SHARE = #isShare#
IS_SHARE = #isShare#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"account"
>
<isNotEmpty
prepend=
" AND "
property=
"account
Code
"
>
ACCOUNT
= #account
#
ACCOUNT
_CODE = #accountCode
#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
DEP_CODE = #depCode#
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
ITEM_NAME as "itemName",
<!-- 项目名称 -->
ITEM_NAME as "itemName",
<!-- 项目名称 -->
ITEM_CODE as "itemCode",
<!-- 项目编号 -->
ITEM_CODE as "itemCode",
<!-- 项目编号 -->
IS_SHARE as "isShare",
<!-- 是否分摊费用 -->
IS_SHARE as "isShare",
<!-- 是否分摊费用 -->
ACCOUNT
as "account
",
<!-- 企业编码 -->
ACCOUNT
_CODE as "accountCode
",
<!-- 企业编码 -->
DEP_CODE as "depCode"
<!-- 部门编码 -->
DEP_CODE as "depCode"
<!-- 部门编码 -->
FROM ${hggpSchema}.HGCW052 WHERE 1=1
FROM ${hggpSchema}.HGCW052 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
...
@@ -239,10 +239,10 @@
...
@@ -239,10 +239,10 @@
ITEM_NAME,
<!-- 项目名称 -->
ITEM_NAME,
<!-- 项目名称 -->
ITEM_CODE,
<!-- 项目编号 -->
ITEM_CODE,
<!-- 项目编号 -->
IS_SHARE,
<!-- 是否分摊费用 -->
IS_SHARE,
<!-- 是否分摊费用 -->
ACCOUNT,
<!-- 企业编码 -->
ACCOUNT
_CODE
,
<!-- 企业编码 -->
DEP_CODE
<!-- 部门编码 -->
DEP_CODE
<!-- 部门编码 -->
)
)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #hgcw051Id#, #costType#, #costItem#, #itemName#, #itemCode#, #isShare#, #account#, #depCode#)
VALUES (#id#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #companyCode#, #companyName#, #year#, #month#, #amount#, #hgcw051Id#, #costType#, #costItem#, #itemName#, #itemCode#, #isShare#, #account
Code
#, #depCode#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -271,7 +271,7 @@
...
@@ -271,7 +271,7 @@
ITEM_NAME = #itemName#,
<!-- 项目名称 -->
ITEM_NAME = #itemName#,
<!-- 项目名称 -->
ITEM_CODE = #itemCode#,
<!-- 项目编号 -->
ITEM_CODE = #itemCode#,
<!-- 项目编号 -->
IS_SHARE = #isShare#,
<!-- 是否分摊费用 -->
IS_SHARE = #isShare#,
<!-- 是否分摊费用 -->
ACCOUNT
= #account
#,
<!-- 企业编码 -->
ACCOUNT
_CODE = #accountCode
#,
<!-- 企业编码 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
WHERE
WHERE
ID = #id#
ID = #id#
...
...
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
2df80332
...
@@ -102,13 +102,13 @@ public class HGCWTools {
...
@@ -102,13 +102,13 @@ public class HGCWTools {
}
}
public
static
class
HgCw003
{
public
static
class
HgCw003
{
public
static
void
save
(
List
<
Map
>
rows
,
String
contractNumber
,
UserVO
userVO
)
{
public
static
void
save
(
List
<
Map
>
rows
,
String
contractNumber
,
HGCW002
HGCW002
)
{
AssertUtils
.
isNull
(
contractNumber
,
"合同号不能为空!"
);
AssertUtils
.
isNull
(
contractNumber
,
"合同号不能为空!"
);
rows
.
forEach
(
row
->
{
rows
.
forEach
(
row
->
{
HGCW003
HGCW003
=
new
HGCW003
();
HGCW003
HGCW003
=
new
HGCW003
();
HGCW003
.
fromMap
(
row
);
HGCW003
.
fromMap
(
row
);
HGCW003
.
setCompanyCode
(
userVO
.
getUserc
ode
());
HGCW003
.
setCompanyCode
(
HGCW002
.
getCompanyC
ode
());
HGCW003
.
setCompanyName
(
userVO
.
getUsern
ame
());
HGCW003
.
setCompanyName
(
HGCW002
.
getCompanyN
ame
());
HGCW003
.
setContractNumber
(
contractNumber
);
HGCW003
.
setContractNumber
(
contractNumber
);
DaoUtils
.
insert
(
HGCW003
.
INSERT
,
HGCW003
);
DaoUtils
.
insert
(
HGCW003
.
INSERT
,
HGCW003
);
});
});
...
@@ -140,13 +140,13 @@ public class HGCWTools {
...
@@ -140,13 +140,13 @@ public class HGCWTools {
}
}
public
static
class
HgCw007
{
public
static
class
HgCw007
{
public
static
void
save
(
List
<
Map
>
rows
,
String
contractNumber
,
UserVO
userVO
)
{
public
static
void
save
(
List
<
Map
>
rows
,
String
contractNumber
,
HGCW006
HGCW006
)
{
AssertUtils
.
isNull
(
contractNumber
,
"合同号不能为空!"
);
AssertUtils
.
isNull
(
contractNumber
,
"合同号不能为空!"
);
rows
.
forEach
(
row
->
{
rows
.
forEach
(
row
->
{
HGCW007
hgcw007
=
new
HGCW007
();
HGCW007
hgcw007
=
new
HGCW007
();
hgcw007
.
fromMap
(
row
);
hgcw007
.
fromMap
(
row
);
hgcw007
.
setCompanyCode
(
userVO
.
getUserc
ode
());
hgcw007
.
setCompanyCode
(
HGCW006
.
getCompanyC
ode
());
hgcw007
.
setCompanyName
(
userVO
.
getUsern
ame
());
hgcw007
.
setCompanyName
(
HGCW006
.
getCompanyN
ame
());
hgcw007
.
setContractNumber
(
contractNumber
);
hgcw007
.
setContractNumber
(
contractNumber
);
DaoUtils
.
insert
(
HGCW007
.
INSERT
,
hgcw007
);
DaoUtils
.
insert
(
HGCW007
.
INSERT
,
hgcw007
);
});
});
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC001.java
View file @
2df80332
...
@@ -4,12 +4,14 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
...
@@ -4,12 +4,14 @@ 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.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
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.kc.domain.HGKC001
;
import
com.baosight.hggp.hg.kc.domain.HGKC001
;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
import
com.baosight.hggp.hg.kc.domain.HGKC003
;
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
;
...
@@ -43,8 +45,9 @@ public class ServiceHGKC001 extends ServiceBase {
...
@@ -43,8 +45,9 @@ public class ServiceHGKC001 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC001
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC001
().
eiMetadata
);
}
catch
(
Plat
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
View file @
2df80332
...
@@ -14,6 +14,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC006;
...
@@ -14,6 +14,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC006;
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.utils.HGUtils
;
import
com.baosight.hggp.hg.utils.HGUtils
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.*
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
...
@@ -50,8 +51,9 @@ public class ServiceHGKC006 extends ServiceBase {
...
@@ -50,8 +51,9 @@ public class ServiceHGKC006 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
map
,
false
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
map
,
false
);
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC006
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC006
().
eiMetadata
);
}
catch
(
Plat
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC007.java
View file @
2df80332
...
@@ -15,6 +15,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC007;
...
@@ -15,6 +15,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC007;
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.utils.HGUtils
;
import
com.baosight.hggp.hg.utils.HGUtils
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.*
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
...
@@ -54,8 +55,9 @@ public class ServiceHGKC007 extends ServiceBase {
...
@@ -54,8 +55,9 @@ public class ServiceHGKC007 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
map
,
false
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
map
,
false
);
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC007
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC007
().
eiMetadata
);
}
catch
(
Plat
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC010.java
View file @
2df80332
...
@@ -8,6 +8,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC010;
...
@@ -8,6 +8,7 @@ import com.baosight.hggp.hg.kc.domain.HGKC010;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ007
;
import
com.baosight.hggp.hg.pz.domain.HGPZ007
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.LogUtils
;
...
@@ -46,8 +47,9 @@ public class ServiceHGKC010 extends ServiceBase {
...
@@ -46,8 +47,9 @@ public class ServiceHGKC010 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
));
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC010
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC010
().
eiMetadata
);
}
catch
(
Plat
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
...
...
src/main/java/com/baosight/hggp/hg/pz/domain/HGPZ007.java
View file @
2df80332
...
@@ -54,6 +54,7 @@ public class HGPZ007 extends DaoEPBase {
...
@@ -54,6 +54,7 @@ public class HGPZ007 extends DaoEPBase {
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 是否删除0.否1.是*/
public
static
final
String
COL_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 是否删除0.否1.是*/
public
static
final
String
QUERY
=
"HGPZ007.query"
;
public
static
final
String
QUERY
=
"HGPZ007.query"
;
public
static
final
String
QUERY_NOT_BY_ROLE
=
"HGPZ007.queryNotByRole"
;
public
static
final
String
COUNT
=
"HGPZ007.count"
;
public
static
final
String
COUNT
=
"HGPZ007.count"
;
public
static
final
String
INSERT
=
"HGPZ007.insert"
;
public
static
final
String
INSERT
=
"HGPZ007.insert"
;
public
static
final
String
UPDATE
=
"HGPZ007.update"
;
public
static
final
String
UPDATE
=
"HGPZ007.update"
;
...
...
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ007.xml
View file @
2df80332
...
@@ -4,20 +4,20 @@
...
@@ -4,20 +4,20 @@
Version : 1.0
Version : 1.0
schema : hggp
schema : hggp
tableName : HGPZ007
tableName : HGPZ007
ID BIGINT NOT NULL primarykey,
ID BIGINT NOT NULL primarykey,
ACCOUNT_CODE VARCHAR,
ACCOUNT_CODE VARCHAR,
DEP_CODE VARCHAR,
DEP_CODE VARCHAR,
WH_TYPE VARCHAR,
WH_TYPE VARCHAR,
WH_CODE VARCHAR,
WH_CODE VARCHAR,
WH_NAME VARCHAR,
WH_NAME VARCHAR,
PRINC VARCHAR,
PRINC VARCHAR,
STATUS TINYINT,
STATUS TINYINT,
CREATED_BY VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT
DELETE_FLAG TINYINT
-->
-->
<sqlMap
namespace=
"HGPZ007"
>
<sqlMap
namespace=
"HGPZ007"
>
...
@@ -126,6 +126,37 @@
...
@@ -126,6 +126,37 @@
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<select
id=
"queryNotByRole"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.pz.domain.HGPZ007"
>
SELECT
ID as "id",
<!-- 主键ID -->
ACCOUNT_CODE as "accountCode",
<!-- 帐套编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
WH_TYPE as "whType",
<!-- 仓库类型 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
PRINC as "princ",
<!-- 负责人 -->
STATUS as "status",
<!-- 状态 0停用 1启用 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 修改人 -->
UPDATED_NAME as "updatedName",
<!-- 修改人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 修改时间 -->
DELETE_FLAG as "deleteFlag"
<!-- 是否删除0.否1.是 -->
FROM ${hggpSchema}.HGPZ007 WHERE 1=1 AND DELETE_FLAG = 0
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME desc
</isEmpty>
</dynamic>
</select>
<!--
<!--
<isNotEmpty prepend=" AND " property="id">
<isNotEmpty prepend=" AND " property="id">
ID = #id#
ID = #id#
...
...
src/main/java/com/baosight/hggp/hg/pz/tools/HGPZTools.java
View file @
2df80332
...
@@ -154,7 +154,7 @@ public class HGPZTools {
...
@@ -154,7 +154,7 @@ public class HGPZTools {
AssertUtils
.
isEmpty
(
whCode
,
"仓库编码不能为空"
);
AssertUtils
.
isEmpty
(
whCode
,
"仓库编码不能为空"
);
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"whCode"
,
whCode
);
queryMap
.
put
(
"whCode"
,
whCode
);
List
<
HGPZ007
>
results
=
DaoBase
.
getInstance
().
query
(
HGPZ007
.
QUERY
,
queryMap
);
List
<
HGPZ007
>
results
=
DaoBase
.
getInstance
().
query
(
HGPZ007
.
QUERY
_NOT_BY_ROLE
,
queryMap
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
}
}
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC003.java
View file @
2df80332
...
@@ -32,7 +32,7 @@ public class ServiceHGSC003 extends ServiceBase {
...
@@ -32,7 +32,7 @@ public class ServiceHGSC003 extends ServiceBase {
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
HGSC003
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC003
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
map
,
false
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_B
Y_ROLE_B
LOCK_ID
),
map
,
false
);
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
@@ -43,11 +43,6 @@ public class ServiceHGSC003 extends ServiceBase {
...
@@ -43,11 +43,6 @@ public class ServiceHGSC003 extends ServiceBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGSC003
.
QUERY
,
new
HGSC003
());
inInfo
=
super
.
query
(
inInfo
,
HGSC003
.
QUERY
,
new
HGSC003
());
Map
map
=
new
HashMap
();
map
.
put
(
HGSC003
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_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
,
"查询失败"
);
...
@@ -178,7 +173,7 @@ public class ServiceHGSC003 extends ServiceBase {
...
@@ -178,7 +173,7 @@ public class ServiceHGSC003 extends ServiceBase {
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_company_code
,
companyCode
);
map
.
put
(
HGSC001
.
FIELD_company_code
,
companyCode
);
map
.
put
(
HGSC001
.
FIELD_approval_status
,
approvalStatus
);
map
.
put
(
HGSC001
.
FIELD_approval_status
,
approvalStatus
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_B
Y_ROLE_B
LOCK_ID
),
map
,
false
);
return
inInfo
;
return
inInfo
;
}
}
...
@@ -192,10 +187,12 @@ public class ServiceHGSC003 extends ServiceBase {
...
@@ -192,10 +187,12 @@ public class ServiceHGSC003 extends ServiceBase {
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
companyCode
=
MapUtils
.
getString
(
queryMap
,
HGSC003
.
FIELD_company_code
);
String
companyCode
=
MapUtils
.
getString
(
queryMap
,
HGSC003
.
FIELD_company_code
);
String
blueprintStatus
=
MapUtils
.
getString
(
queryMap
,
HGSC003
.
FIELD_blueprint_status
);
String
blueprintStatus
=
MapUtils
.
getString
(
queryMap
,
HGSC003
.
FIELD_blueprint_status
);
String
projCode
=
MapUtils
.
getString
(
queryMap
,
HGSC003
.
FIELD_proj_code
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
HGSC003
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC003
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC003
.
FIELD_company_code
,
companyCode
);
map
.
put
(
HGSC003
.
FIELD_company_code
,
companyCode
);
map
.
put
(
HGSC003
.
FIELD_blueprint_status
,
blueprintStatus
);
map
.
put
(
HGSC003
.
FIELD_blueprint_status
,
blueprintStatus
);
map
.
put
(
HGSC003
.
FIELD_proj_code
,
projCode
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
BLUEPRINT_BOX_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
BLUEPRINT_BOX_BLOCK_ID
),
map
,
false
);
return
inInfo
;
return
inInfo
;
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC004.java
View file @
2df80332
...
@@ -8,6 +8,8 @@ import com.baosight.hggp.hg.constant.HGConstant;
...
@@ -8,6 +8,8 @@ import com.baosight.hggp.hg.constant.HGConstant;
import
com.baosight.hggp.hg.sc.domain.HGSC003
;
import
com.baosight.hggp.hg.sc.domain.HGSC003
;
import
com.baosight.hggp.hg.sc.domain.HGSC004
;
import
com.baosight.hggp.hg.sc.domain.HGSC004
;
import
com.baosight.hggp.hg.sc.domain.HGSC004A
;
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.util.*
;
import
com.baosight.hggp.util.*
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
...
@@ -28,13 +30,14 @@ public class ServiceHGSC004 extends ServiceBase {
...
@@ -28,13 +30,14 @@ public class ServiceHGSC004 extends ServiceBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGSC004
.
QUERY
,
new
HGSC004
());
inInfo
=
super
.
query
(
inInfo
,
HGSC004
.
QUERY
,
new
HGSC004
());
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
HGSC004
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC004
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC003
.
FIELD_blueprint_status
,
HGConstant
.
EnablingStatus
.
QY
);
map
.
put
(
HGSC003
.
FIELD_blueprint_status
,
HGConstant
.
EnablingStatus
.
QY
);
CommonMethod
.
initBlock
(
inInfo
,
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
,
DdynamicEnum
.
BLUEPRINT_BOX_BLOCK_ID
),
map
,
false
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_B
Y_ROLE_B
LOCK_ID
,
DdynamicEnum
.
BLUEPRINT_BOX_BLOCK_ID
),
map
,
false
);
);
}
catch
(
Plat
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
return
inInfo
;
return
inInfo
;
...
@@ -43,12 +46,6 @@ public class ServiceHGSC004 extends ServiceBase {
...
@@ -43,12 +46,6 @@ public class ServiceHGSC004 extends ServiceBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGSC004
.
QUERY
,
new
HGSC004
());
inInfo
=
super
.
query
(
inInfo
,
HGSC004
.
QUERY
,
new
HGSC004
());
Map
map
=
new
HashMap
();
map
.
put
(
HGSC004
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC003
.
FIELD_blueprint_status
,
HGConstant
.
EnablingStatus
.
QY
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
,
DdynamicEnum
.
BLUEPRINT_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
,
"查询失败"
);
...
@@ -96,9 +93,9 @@ public class ServiceHGSC004 extends ServiceBase {
...
@@ -96,9 +93,9 @@ public class ServiceHGSC004 extends ServiceBase {
Map
resultMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
Map
resultMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
HGSC004
hgsc004
=
new
HGSC004
();
HGSC004
hgsc004
=
new
HGSC004
();
hgsc004
.
fromMap
(
resultMap
);
hgsc004
.
fromMap
(
resultMap
);
HGSC003
hgsc003
=
(
HGSC003
)
super
.
dao
.
get
(
HGSC003
.
QUERY
,
HGSC004
.
FIELD_blueprint_code
,
hgsc004
.
getBlueprintCode
());
HGSC003
hgsc003
=
HGSCTools
.
Hgsc003
.
getByBlueprintCode
(
hgsc004
.
getBlueprintCode
());
hgsc004
.
setBlueprintId
(
hgsc003
.
getId
());
this
.
checkSaveData
(
hgsc004
,
hgsc003
);
this
.
checkSaveData
(
hgsc004
,
hgsc003
);
hgsc004
.
setBlueprintId
(
hgsc003
.
getId
());
if
(
Objects
.
nonNull
(
hgsc004
.
getId
())&&
hgsc004
.
getId
()!=
0
){
if
(
Objects
.
nonNull
(
hgsc004
.
getId
())&&
hgsc004
.
getId
()!=
0
){
DaoUtils
.
update
(
HGSC004
.
UPDATE
,
hgsc004
);
DaoUtils
.
update
(
HGSC004
.
UPDATE
,
hgsc004
);
//变更清单里面的公司、项目信息
//变更清单里面的公司、项目信息
...
@@ -139,6 +136,7 @@ public class ServiceHGSC004 extends ServiceBase {
...
@@ -139,6 +136,7 @@ public class ServiceHGSC004 extends ServiceBase {
AssertUtils
.
isTrue
(
hgsc004
.
getMaterialStatus
().
compareTo
(
HGConstant
.
MaterialStatus
.
WTJ
)
>
0
,
"非未提交不可修改!"
);
AssertUtils
.
isTrue
(
hgsc004
.
getMaterialStatus
().
compareTo
(
HGConstant
.
MaterialStatus
.
WTJ
)
>
0
,
"非未提交不可修改!"
);
AssertUtils
.
isTrue
(
hgsc003
.
getBlueprintStatus
().
compareTo
(
HGConstant
.
EnablingStatus
.
TY
)
==
0
,
"蓝图已停用不可修改!"
);
AssertUtils
.
isTrue
(
hgsc003
.
getBlueprintStatus
().
compareTo
(
HGConstant
.
EnablingStatus
.
TY
)
==
0
,
"蓝图已停用不可修改!"
);
}
}
AssertUtils
.
isTrue
(
Objects
.
isNull
(
hgsc003
),
"未获取到蓝图信息!"
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"projCode"
,
hgsc004
.
getProjCode
());
map
.
put
(
"projCode"
,
hgsc004
.
getProjCode
());
List
<
HGSC004
>
hgsc004List
=
this
.
dao
.
query
(
HGSC004
.
QUERY
,
map
);
List
<
HGSC004
>
hgsc004List
=
this
.
dao
.
query
(
HGSC004
.
QUERY
,
map
);
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC004A.java
View file @
2df80332
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
View file @
2df80332
...
@@ -390,4 +390,17 @@
...
@@ -390,4 +390,17 @@
FROM ${hggpSchema}.HGSC001 WHERE approval_status = 2 and proj_status = 0
FROM ${hggpSchema}.HGSC001 WHERE approval_status = 2 and proj_status = 0
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<select
id=
"queryProjectByRoleBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
PROJ_CODE as "projCode",
PROJ_NAME as "projName",
company_code as "companyCode",
<!-- 公司编码 -->
company_name as "companyName"
<!-- 公司名称 -->
FROM ${hggpSchema}.HGSC001
WHERE 1=1
<include
refid=
"condition"
/>
ORDER BY PROJ_CODE desc
</select>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC003.xml
View file @
2df80332
...
@@ -179,6 +179,7 @@
...
@@ -179,6 +179,7 @@
BLUEPRINT_NAME as "blueprintName"
<!-- 蓝图名称 -->
BLUEPRINT_NAME as "blueprintName"
<!-- 蓝图名称 -->
FROM ${hggpSchema}.HGSC003
FROM ${hggpSchema}.HGSC003
WHERE 1=1
WHERE 1=1
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC004A.xml
View file @
2df80332
...
@@ -160,6 +160,12 @@
...
@@ -160,6 +160,12 @@
</dynamic>
</dynamic>
</select>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGSC004A WHERE 1=1
AND lv NOT IN (1,2)
<include
refid=
"condition"
/>
</select>
<select
id=
"queryAll"
parameterClass=
"java.util.HashMap"
<select
id=
"queryAll"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.sc.domain.HGSC004A"
>
resultClass=
"com.baosight.hggp.hg.sc.domain.HGSC004A"
>
SELECT
SELECT
...
@@ -257,12 +263,6 @@
...
@@ -257,12 +263,6 @@
</select>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGSC004A WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGSC004A (id,
<!-- 主键 -->
INSERT INTO ${hggpSchema}.HGSC004A (id,
<!-- 主键 -->
company_code,
<!-- 公司编码(预留) -->
company_code,
<!-- 公司编码(预留) -->
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC009.xml
View file @
2df80332
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
Generate time : 2024-05-28 11:47:21
Version : 1.0
schema : hggp
tableName : HGSC009
ID BIGINT NOT NULL primarykey,
ACCOUNT_CODE VARCHAR,
DEP_CODE VARCHAR,
COMPANY_CODE VARCHAR,
COMPANY_NAME VARCHAR,
PROJ_CODE VARCHAR,
PROJ_NAME VARCHAR,
PLAN_MATERIAL_CODE VARCHAR,
PLAN_MATERIAL_NAME VARCHAR,
STATUS TINYINT,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR
-->
<sqlMap
namespace=
"HGSC009"
>
<sqlMap
namespace=
"HGSC009"
>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
2df80332
...
@@ -196,6 +196,14 @@ public class HGSCTools {
...
@@ -196,6 +196,14 @@ public class HGSCTools {
}
}
}
}
public
static
class
Hgsc003
{
public
static
HGSC003
getByBlueprintCode
(
String
blueprintCode
){
AssertUtils
.
isTrue
(
StringUtils
.
isBlank
(
blueprintCode
),
"蓝图编号不能为空!"
);
HGSC003
results
=
(
HGSC003
)
DaoBase
.
getInstance
().
get
(
HGSC003
.
QUERY
,
HGSC003
.
FIELD_blueprint_code
,
blueprintCode
);
return
results
;
}
}
public
static
class
THGSC001A
{
public
static
class
THGSC001A
{
/**
/**
...
@@ -1074,9 +1082,9 @@ public class HGSCTools {
...
@@ -1074,9 +1082,9 @@ public class HGSCTools {
private
static
void
checkAddDate
(
HGSC008
hgsc008
){
private
static
void
checkAddDate
(
HGSC008
hgsc008
){
List
<
String
>
orgIdList
=
UserSessionUtils
.
getOrgId
();
//
List<String> orgIdList = UserSessionUtils.getOrgId();
AssertUtils
.
isEmpty
(
hgsc008
.
getGroupCode
(),
"生产任务班组信息异常,请联系管理员!"
);
//
AssertUtils.isEmpty(hgsc008.getGroupCode(),"生产任务班组信息异常,请联系管理员!");
AssertUtils
.
isTrue
(!
orgIdList
.
contains
(
hgsc008
.
getGroupCode
()),
"非当前任务生产组用户,无法报工此任务!"
);
//
AssertUtils.isTrue(!orgIdList.contains(hgsc008.getGroupCode()),"非当前任务生产组用户,无法报工此任务!");
AssertUtils
.
isNull
(
hgsc008
.
getQuantity
(),
"报工数量不能为空!"
);
AssertUtils
.
isNull
(
hgsc008
.
getQuantity
(),
"报工数量不能为空!"
);
}
}
...
...
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
View file @
2df80332
...
@@ -312,7 +312,7 @@ public class HGXSTools {
...
@@ -312,7 +312,7 @@ public class HGXSTools {
queryMap
.
put
(
"orgId"
,
orgId
);
queryMap
.
put
(
"orgId"
,
orgId
);
queryMap
.
put
(
"orgType"
,
OrgTypeEnum
.
COMPANY
.
getCode
());
queryMap
.
put
(
"orgType"
,
OrgTypeEnum
.
COMPANY
.
getCode
());
List
<
Org
>
results
=
DaoBase
.
getInstance
().
query
(
HGSqlConstant
.
HgXsOrg
.
QUERY_PARENT
,
queryMap
);
List
<
Org
>
results
=
DaoBase
.
getInstance
().
query
(
HGSqlConstant
.
HgXsOrg
.
QUERY_PARENT
,
queryMap
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
results
.
size
()
-
1
);
return
CollectionUtils
.
isEmpty
(
results
)
?
null
:
results
.
get
(
0
);
}
}
/**
/**
...
...
src/main/java/com/baosight/hggp/hg/zl/service/ServiceHGZL001.java
View file @
2df80332
...
@@ -5,9 +5,11 @@ import com.baosight.hggp.common.DdynamicEnum;
...
@@ -5,9 +5,11 @@ import com.baosight.hggp.common.DdynamicEnum;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.enums.DeleteFlagEnum
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
import
com.baosight.hggp.hg.cg.tools.HGCGTools
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.constant.HGSqlConstant
;
import
com.baosight.hggp.hg.kc.tools.HGKCTools
;
import
com.baosight.hggp.hg.kc.tools.HGKCTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.zl.domain.HGZL001
;
import
com.baosight.hggp.hg.zl.domain.HGZL001
;
import
com.baosight.hggp.hg.zl.utils.HGZLUtils
;
import
com.baosight.hggp.hg.zl.utils.HGZLUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
...
@@ -43,6 +45,7 @@ public class ServiceHGZL001 extends ServiceBase {
...
@@ -43,6 +45,7 @@ public class ServiceHGZL001 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_CODE_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_CODE_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_RECORD_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
));
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGZL001
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGZL001
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
...
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
2df80332
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC006A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC006A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC007.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC007.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC008.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC008.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC009.xml"
/>
<!-- 財務 -->
<!-- 財務 -->
<sqlMap
resource=
"com/baosight/hggp/hg/cw/sql/HGCW001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/cw/sql/HGCW001.xml"
/>
...
...
src/main/webapp/HG/CG/HGCG001.jsp
View file @
2df80332
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFInput
cname=
"计划单号"
blockId=
"inqu_status"
ename=
"planNo"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"计划单号"
blockId=
"inqu_status"
ename=
"planNo"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"
company_code_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
valueField=
"companyCode"
textField=
"companyName
"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"状态"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
<EF:EFSelect
cname=
"状态"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
defultValue=
""
>
defultValue=
""
>
...
...
src/main/webapp/HG/CG/HGCG002.js
View file @
2df80332
...
@@ -68,7 +68,7 @@ $(function () {
...
@@ -68,7 +68,7 @@ $(function () {
// 数量*单价金额
// 数量*单价金额
let
totalAmount
=
item
.
purQty
*
item
.
price
;
let
totalAmount
=
item
.
purQty
*
item
.
price
;
//税额
//税额
let
taxAmount
=
totalAmount
*
item
.
taxRate
/
100
;
let
taxAmount
=
totalAmount
*
item
.
taxRate
/
100
;
//不含税金额
//不含税金额
let
amount
=
totalAmount
-
taxAmount
;
let
amount
=
totalAmount
-
taxAmount
;
//含税金额
//含税金额
...
...
src/main/webapp/HG/CG/HGCG002.jsp
View file @
2df80332
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"
company_code_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
valueField=
"companyCode"
textField=
"companyName
"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"供应商名称"
blockId=
"inqu_status"
ename=
"supCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"供应商名称"
blockId=
"inqu_status"
ename=
"supCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
...
...
src/main/webapp/HG/CG/HGCG002A.jsp
View file @
2df80332
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFInput
cname=
"计划单号"
blockId=
"inqu_status"
ename=
"planNo"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"计划单号"
blockId=
"inqu_status"
ename=
"planNo"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"
company_code_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
valueField=
"companyCode"
textField=
"companyName
"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
...
...
src/main/webapp/HG/CG/HGCG003.jsp
View file @
2df80332
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"
company_code_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
valueField=
"companyCode"
textField=
"companyName
"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"供应商名称"
blockId=
"inqu_status"
ename=
"supCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"供应商名称"
blockId=
"inqu_status"
ename=
"supCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
...
...
src/main/webapp/HG/CW/HGCW002A.js
View file @
2df80332
...
@@ -12,6 +12,24 @@ $(function() {
...
@@ -12,6 +12,24 @@ $(function() {
pageSize
:
20
,
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
},
},
beforeEdit
:
function
(
e
)
{
console
.
log
(
"正准备编辑第"
+
e
.
row
+
"行数据"
);
//编辑unitPriceExcludingTax totalPriceIncluding 判断计价方式result-0-pricingMethod
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
if
(
e
.
field
===
"totalPriceIncluding"
)
{
// 判断单元格 field 禁止编辑
e
.
preventDefault
();
}
}
else
if
(
pricingMethod
==
2
){
if
(
e
.
field
===
"unitPriceExcludingTax"
)
{
// 判断单元格 field 禁止编辑
e
.
preventDefault
();
}
}
else
{
}
},
columns
:
[
columns
:
[
],
],
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
...
@@ -20,7 +38,14 @@ $(function() {
...
@@ -20,7 +38,14 @@ $(function() {
var
tr
,
index
;
var
tr
,
index
;
// 获取此model元素信息
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
var
item
=
e
.
items
[
0
];
calculateAmount
(
item
);
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
calculateAmount
(
item
);
}
else
if
(
pricingMethod
==
2
)
{
calculateUnitAmount
(
item
);
}
else
{
}
}
}
});
});
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
...
@@ -28,7 +53,29 @@ $(function() {
...
@@ -28,7 +53,29 @@ $(function() {
var
tr
,
index
;
var
tr
,
index
;
// 获取此model元素信息
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
var
item
=
e
.
items
[
0
];
calculateAmount
(
item
);
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
calculateAmount
(
item
);
}
else
if
(
pricingMethod
==
2
)
{
calculateUnitAmount
(
item
);
}
else
{
}
}
});
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
if
(
e
.
field
==
"totalPriceIncluding"
)
{
var
tr
,
index
;
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
calculateAmount
(
item
);
}
else
if
(
pricingMethod
==
2
)
{
calculateUnitAmount
(
item
);
}
else
{
}
}
}
});
});
},
},
...
@@ -42,6 +89,13 @@ $(function() {
...
@@ -42,6 +89,13 @@ $(function() {
e
.
preventDefault
();
e
.
preventDefault
();
deleteResult1Func
();
deleteResult1Func
();
},
},
beforeAdd
:
function
(
e
)
{
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
!
pricingMethod
)
{
e
.
preventDefault
();
message
(
"请先选择计价方式!"
);
}
}
}
}
$
(
"#UPLOAD_FILE"
).
on
(
"click"
,
function
()
{
$
(
"#UPLOAD_FILE"
).
on
(
"click"
,
function
()
{
...
@@ -377,6 +431,14 @@ function deleteResult1Func() {
...
@@ -377,6 +431,14 @@ function deleteResult1Func() {
detail1Grid
.
removeRows
([
rows
.
rowNo
]);
// 刷新行号
detail1Grid
.
removeRows
([
rows
.
rowNo
]);
// 刷新行号
})
})
refreshRowNo
();
refreshRowNo
();
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
calculateAmount
(
null
);
}
else
if
(
pricingMethod
==
2
){
calculateUnitAmount
(
null
);
}
else
{
}
}
}
let
refreshRowNo
=
function
()
{
let
refreshRowNo
=
function
()
{
...
@@ -432,16 +494,57 @@ function fieldValidation() {
...
@@ -432,16 +494,57 @@ function fieldValidation() {
}
}
}
}
/**
* 根据单价数量计算总金额
* @param item
*/
function
calculateAmount
(
item
)
{
function
calculateAmount
(
item
)
{
// 计算总金额
// 计算总金额
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
var
provisionalQuantity
=
item
.
provisionalQuantity
||
0
;
var
provisionalQuantity
=
item
!=
null
?
item
.
provisionalQuantity
||
0
:
0
;
var
unitPriceExcludingTax
=
item
.
unitPriceExcludingTax
||
0
;
var
unitPriceExcludingTax
=
item
!=
null
?
item
.
unitPriceExcludingTax
||
0
:
0
;
var
totalPriceExcluding
=
provisionalQuantity
*
unitPriceExcludingTax
;
var
totalPriceExcluding
=
provisionalQuantity
*
unitPriceExcludingTax
;
var
totalPriceIncluding
=
totalPriceExcluding
*
(
1
+
parseFloat
(
taxPoints
));
var
totalPriceIncluding
=
totalPriceExcluding
*
(
1
+
parseFloat
(
taxPoints
));
detail1Grid
.
setCellValue
(
item
,
'totalPriceExcluding'
,
totalPriceExcluding
);
if
(
item
!=
null
)
{
detail1Grid
.
setCellValue
(
item
,
'totalPriceIncluding'
,
totalPriceIncluding
);
detail1Grid
.
setCellValue
(
item
,
'totalPriceExcluding'
,
totalPriceExcluding
);
detail1Grid
.
setCellValue
(
item
,
'totalPriceIncluding'
,
totalPriceIncluding
);
}
var
allRows
=
detail1Grid
.
getDataItems
();
var
totalPriceExcluding
=
0
;
var
totalPriceIncluding
=
0
;
var
valueAddedTax
=
0
;
allRows
.
forEach
(
function
(
row
,
index
)
{
totalPriceExcluding
+=
parseFloat
(
row
.
totalPriceExcluding
);
totalPriceIncluding
+=
parseFloat
(
row
.
totalPriceIncluding
);
});
valueAddedTax
=
parseFloat
(
totalPriceIncluding
)
-
parseFloat
(
totalPriceExcluding
);
$
(
"#result-0-totalContractPriceExcluding"
).
val
(
totalPriceExcluding
.
toFixed
(
3
))
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
totalPriceIncluding
.
toFixed
(
3
))
$
(
"#result-0-valueAddedTax"
).
val
(
valueAddedTax
.
toFixed
(
3
))
}
/**
* 根据总金额数量算单价
* @param item
*/
function
calculateUnitAmount
(
item
)
{
// 计算总金额
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
// 含税总金额
var
totalPriceIncluding
=
item
!=
null
?
item
.
totalPriceIncluding
||
0
:
0
;
// 数量
var
provisionalQuantity
=
item
!=
null
?
item
.
provisionalQuantity
||
0
:
0
;
//不含税
var
totalPriceExcluding
=
totalPriceIncluding
/
(
1
+
parseFloat
(
taxPoints
));
// 单价
var
unitPriceExcludingTax
=
provisionalQuantity
==
0
?
0
:
totalPriceExcluding
/
provisionalQuantity
;
if
(
item
!=
null
)
{
detail1Grid
.
setCellValue
(
item
,
'totalPriceExcluding'
,
totalPriceExcluding
);
detail1Grid
.
setCellValue
(
item
,
'unitPriceExcludingTax'
,
unitPriceExcludingTax
);
}
var
allRows
=
detail1Grid
.
getDataItems
();
var
allRows
=
detail1Grid
.
getDataItems
();
var
totalPriceExcluding
=
0
;
var
totalPriceExcluding
=
0
;
var
totalPriceIncluding
=
0
;
var
totalPriceIncluding
=
0
;
...
...
src/main/webapp/HG/CW/HGCW002A.jsp
View file @
2df80332
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.paymentMethod"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.paymentMethod"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"计价方式"
ename=
"result-0-pricingMethod"
colWidth=
"4"
filter=
"contains"
>
<EF:EFSelect
cname=
"计价方式"
ename=
"result-0-pricingMethod"
colWidth=
"4"
filter=
"contains"
required=
"true"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
</EF:EFSelect>
</EF:EFSelect>
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
<EF:EFColumn
ename=
"supplyMethod"
cname=
"材料供应方式"
align=
"center"
/>
<EF:EFColumn
ename=
"supplyMethod"
cname=
"材料供应方式"
align=
"center"
/>
<EF:EFColumn
ename=
"unitPriceExcludingTax"
cname=
"除税单价/元"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"unitPriceExcludingTax"
cname=
"除税单价/元"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceExcluding"
cname=
"不含税总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceExcluding"
cname=
"不含税总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceIncluding"
cname=
"含税总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceIncluding"
cname=
"含税总价"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"laborCosts"
cname=
"其中人工费、元"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"laborCosts"
cname=
"其中人工费、元"
format=
"{0:N3}"
align=
"center"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HG/CW/HGCW002B.js
View file @
2df80332
...
@@ -13,6 +13,24 @@ $(function() {
...
@@ -13,6 +13,24 @@ $(function() {
pageSize
:
20
,
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
},
},
beforeEdit
:
function
(
e
)
{
console
.
log
(
"正准备编辑第"
+
e
.
row
+
"行数据"
);
//编辑unitPriceExcludingTax totalPriceIncluding 判断计价方式result-0-pricingMethod
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
if
(
e
.
field
===
"totalPriceIncluding"
)
{
// 判断单元格 field 禁止编辑
e
.
preventDefault
();
}
}
else
if
(
pricingMethod
==
2
){
if
(
e
.
field
===
"unitPriceExcludingTax"
)
{
// 判断单元格 field 禁止编辑
e
.
preventDefault
();
}
}
else
{
}
},
columns
:
[
columns
:
[
],
],
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
...
@@ -21,13 +39,44 @@ $(function() {
...
@@ -21,13 +39,44 @@ $(function() {
var
tr
,
index
;
var
tr
,
index
;
// 获取此model元素信息
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
var
item
=
e
.
items
[
0
];
// 计算总金额
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
if
(
pricingMethod
==
1
)
{
var
totalPriceExcluding
=
item
.
provisionalQuantity
*
item
.
unitPriceExcludingTax
;
calculateAmount
(
item
);
var
totalPriceIncluding
=
totalPriceExcluding
*
(
1
+
parseFloat
(
taxPoints
));
}
else
if
(
pricingMethod
==
2
)
{
detail1Grid
.
setCellValue
(
item
,
'totalPriceExcluding'
,
totalPriceExcluding
);
calculateUnitAmount
(
item
);
detail1Grid
.
setCellValue
(
item
,
'totalPriceIncluding'
,
totalPriceIncluding
);
}
else
{
calculateAmount
();
}
}
});
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
if
(
e
.
field
==
"provisionalQuantity"
)
{
var
tr
,
index
;
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
calculateAmount
(
item
);
}
else
if
(
pricingMethod
==
2
)
{
calculateUnitAmount
(
item
);
}
else
{
}
}
});
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
if
(
e
.
field
==
"totalPriceIncluding"
)
{
var
tr
,
index
;
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
calculateAmount
(
item
);
}
else
if
(
pricingMethod
==
2
)
{
calculateUnitAmount
(
item
);
}
else
{
}
}
}
});
});
setTimeout
(
function
()
{
setTimeout
(
function
()
{
...
@@ -53,6 +102,13 @@ $(function() {
...
@@ -53,6 +102,13 @@ $(function() {
e
.
preventDefault
();
e
.
preventDefault
();
deleteResult1Func
();
deleteResult1Func
();
},
},
beforeAdd
:
function
(
e
)
{
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
!
pricingMethod
)
{
e
.
preventDefault
();
message
(
"请先选择计价方式!"
);
}
}
}
}
$
(
"#UPLOAD_FILE"
).
on
(
"click"
,
function
()
{
$
(
"#UPLOAD_FILE"
).
on
(
"click"
,
function
()
{
...
@@ -486,7 +542,7 @@ function deleteResult1Func() {
...
@@ -486,7 +542,7 @@ function deleteResult1Func() {
}
}
if
(
IPLAT
.
isAvailable
(
"detail1"
))
{
if
(
IPLAT
.
isAvailable
(
"detail1"
))
{
window
[
'detail1Grid'
].
setEiInfo
(
ei
);
window
[
'detail1Grid'
].
setEiInfo
(
ei
);
calculateAmount
();
calculateAmount
(
null
);
}
}
if
(
ei
.
getStatus
()
==
0
)
{
if
(
ei
.
getStatus
()
==
0
)
{
NotificationUtil
(
ei
,
'warning'
);
NotificationUtil
(
ei
,
'warning'
);
...
@@ -507,8 +563,56 @@ function deleteResult1Func() {
...
@@ -507,8 +563,56 @@ function deleteResult1Func() {
});
});
}
}
function
calculateAmount
()
{
/**
* 根据单价数量计算总金额
* @param item
*/
function
calculateAmount
(
item
)
{
// 计算总金额
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
var
provisionalQuantity
=
item
!=
null
?
item
.
provisionalQuantity
||
0
:
0
;
var
unitPriceExcludingTax
=
item
!=
null
?
item
.
unitPriceExcludingTax
||
0
:
0
;
var
totalPriceExcluding
=
provisionalQuantity
*
unitPriceExcludingTax
;
var
totalPriceIncluding
=
totalPriceExcluding
*
(
1
+
parseFloat
(
taxPoints
));
if
(
item
!=
null
)
{
detail1Grid
.
setCellValue
(
item
,
'totalPriceExcluding'
,
totalPriceExcluding
);
detail1Grid
.
setCellValue
(
item
,
'totalPriceIncluding'
,
totalPriceIncluding
);
}
var
allRows
=
detail1Grid
.
getDataItems
();
var
totalPriceExcluding
=
0
;
var
totalPriceIncluding
=
0
;
var
valueAddedTax
=
0
;
allRows
.
forEach
(
function
(
row
,
index
)
{
totalPriceExcluding
+=
parseFloat
(
row
.
totalPriceExcluding
);
totalPriceIncluding
+=
parseFloat
(
row
.
totalPriceIncluding
);
});
valueAddedTax
=
parseFloat
(
totalPriceIncluding
)
-
parseFloat
(
totalPriceExcluding
);
$
(
"#result-0-totalContractPriceExcluding"
).
val
(
totalPriceExcluding
.
toFixed
(
3
))
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
totalPriceIncluding
.
toFixed
(
3
))
$
(
"#result-0-valueAddedTax"
).
val
(
valueAddedTax
.
toFixed
(
3
))
}
/**
* 根据总金额数量算单价
* @param item
*/
function
calculateUnitAmount
(
item
)
{
// 计算总金额
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
// 含税总金额
var
totalPriceIncluding
=
item
!=
null
?
item
.
totalPriceIncluding
||
0
:
0
;
// 数量
var
provisionalQuantity
=
item
!=
null
?
item
.
provisionalQuantity
||
0
:
0
;
//不含税
var
totalPriceExcluding
=
totalPriceIncluding
/
(
1
+
parseFloat
(
taxPoints
));
// 单价
var
unitPriceExcludingTax
=
provisionalQuantity
==
0
?
0
:
totalPriceExcluding
/
provisionalQuantity
;
if
(
item
!=
null
)
{
detail1Grid
.
setCellValue
(
item
,
'totalPriceExcluding'
,
totalPriceExcluding
);
detail1Grid
.
setCellValue
(
item
,
'unitPriceExcludingTax'
,
unitPriceExcludingTax
);
}
var
allRows
=
detail1Grid
.
getDataItems
();
var
allRows
=
detail1Grid
.
getDataItems
();
var
totalPriceExcluding
=
0
;
var
totalPriceExcluding
=
0
;
var
totalPriceIncluding
=
0
;
var
totalPriceIncluding
=
0
;
...
...
src/main/webapp/HG/CW/HGCW002B.jsp
View file @
2df80332
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.paymentMethod"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.paymentMethod"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"计价方式"
ename=
"result-0-pricingMethod"
colWidth=
"4"
filter=
"contains"
>
<EF:EFSelect
cname=
"计价方式"
ename=
"result-0-pricingMethod"
colWidth=
"4"
filter=
"contains"
required=
"true"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
</EF:EFSelect>
</EF:EFSelect>
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
<EF:EFColumn
ename=
"supplyMethod"
cname=
"材料供应方式"
align=
"center"
/>
<EF:EFColumn
ename=
"supplyMethod"
cname=
"材料供应方式"
align=
"center"
/>
<EF:EFColumn
ename=
"unitPriceExcludingTax"
cname=
"除税单价/元"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"unitPriceExcludingTax"
cname=
"除税单价/元"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceExcluding"
cname=
"不含税总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceExcluding"
cname=
"不含税总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceIncluding"
cname=
"含税总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceIncluding"
cname=
"含税总价"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"laborCosts"
cname=
"其中人工费、元"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"laborCosts"
cname=
"其中人工费、元"
format=
"{0:N3}"
align=
"center"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HG/CW/HGCW006A.js
View file @
2df80332
...
@@ -14,15 +14,45 @@ $(function() {
...
@@ -14,15 +14,45 @@ $(function() {
},
},
columns
:
[
columns
:
[
],
],
beforeAdd
:
function
(
e
)
{
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
!
pricingMethod
)
{
e
.
preventDefault
();
message
(
"请先选择计价方式!"
);
}
},
beforeEdit
:
function
(
e
)
{
console
.
log
(
"正准备编辑第"
+
e
.
row
+
"行数据"
);
//编辑unitPriceExcludingTax totalPriceIncluding 判断计价方式result-0-pricingMethod
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
if
(
e
.
field
===
"totalPrice"
)
{
// 判断单元格 field 禁止编辑
e
.
preventDefault
();
}
}
else
if
(
pricingMethod
==
2
){
if
(
e
.
field
===
"unitPrice"
)
{
// 判断单元格 field 禁止编辑
e
.
preventDefault
();
}
}
else
{
}
},
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
if
(
e
.
field
==
"d
ayNumber"
||
e
.
field
==
"unitPrice"
||
e
.
field
==
"dayNumber
"
)
{
if
(
e
.
field
==
"d
eviceNumber"
||
e
.
field
==
"unitPrice"
||
e
.
field
==
"dayNumber"
||
e
.
field
==
"totalPrice
"
)
{
var
tr
,
index
;
var
tr
,
index
;
// 获取此model元素信息
// 获取此model元素信息
var
item
=
e
.
items
[
0
];
var
item
=
e
.
items
[
0
];
// 计算总金额
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
calculateAmount
(
item
);
if
(
pricingMethod
==
1
)
{
calculateAmount
(
item
);
}
else
if
(
pricingMethod
==
2
)
{
calculateUnitAmount
(
item
);
}
else
{
}
}
}
});
});
},
},
...
@@ -78,18 +108,39 @@ $(function() {
...
@@ -78,18 +108,39 @@ $(function() {
"result-0-taxPoints"
:
{
"result-0-taxPoints"
:
{
// 点击下拉选项时触发
// 点击下拉选项时触发
select
:
function
(
e
)
{
//获取勾选值
select
:
function
(
e
)
{
//获取勾选值
var
dataItem
=
e
.
dataItem
;
var
allRows
=
detail1Grid
.
getDataItems
();
var
valueField
=
dataItem
[
'valueField'
];
if
(
allRows
.
length
>
0
)
{
if
(
valueField
)
{
var
dataItem
=
e
.
dataItem
;
var
taxPoints
=
valueField
/
100
;
var
valueField
=
dataItem
[
'valueField'
];
var
totalContractPriceExcluding
=
$
(
"#result-0-totalContractPriceExcluding"
).
val
();
if
(
valueField
)
{
var
totalContractPriceIncluding
=
totalContractPriceExcluding
*
(
1
+
taxPoints
);
var
taxPoints
=
valueField
/
100
;
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
totalContractPriceIncluding
.
toFixed
(
3
))
var
totalContractPriceIncluding
=
0
;
$
(
"#result-0-valueAddedTax"
).
val
((
totalContractPriceIncluding
-
totalContractPriceExcluding
).
toFixed
(
3
))
var
valueAddedTax
=
0
;
}
else
{
//更新表格含税金额
var
totalContractPriceExcluding
=
parseFloat
(
$
(
"#result-0-totalContractPriceExcluding"
).
val
());
for
(
var
i
=
0
;
i
<
allRows
.
length
;
i
++
)
{
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
totalContractPriceExcluding
.
toFixed
(
3
))
var
row
=
allRows
[
i
];
$
(
"#result-0-valueAddedTax"
).
val
(
0
)
var
totalPriceIncluding
=
row
.
totalPrice
*
(
1
+
parseFloat
(
taxPoints
));
var
taxAmount
=
totalPriceIncluding
-
row
.
totalPrice
;
detail1Grid
.
setCellValue
(
row
,
'totalPriceIncluding'
,
parseFloat
(
totalPriceIncluding
).
toFixed
(
3
));
detail1Grid
.
setCellValue
(
row
,
'taxAmount'
,
parseFloat
(
taxAmount
).
toFixed
(
3
));
totalContractPriceIncluding
+=
totalPriceIncluding
;
}
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
totalContractPriceIncluding
.
toFixed
(
3
))
var
totalPriceExcluding
=
$
(
"#result-0-totalContractPriceExcluding"
).
val
();
valueAddedTax
=
parseFloat
(
totalContractPriceIncluding
.
toFixed
(
3
))
-
parseFloat
(
totalPriceExcluding
);
$
(
"#result-0-valueAddedTax"
).
val
(
valueAddedTax
.
toFixed
(
3
))
}
else
{
var
totalContractPriceExcluding
=
0
;
var
valueAddedTax
=
0
;
for
(
var
i
=
0
;
i
<
allRows
.
length
;
i
++
)
{
var
row
=
allRows
[
i
];
detail1Grid
.
setCellValue
(
row
,
'totalPriceIncluding'
,
row
.
totalPrice
);
detail1Grid
.
setCellValue
(
row
,
'taxAmount'
,
0
);
totalContractPriceExcluding
+=
parseFloat
(
row
.
totalPrice
);
}
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
totalContractPriceExcluding
.
toFixed
(
3
))
$
(
"#result-0-valueAddedTax"
).
val
(
valueAddedTax
.
toFixed
(
3
))
}
}
}
}
}
},
},
...
@@ -261,6 +312,14 @@ function deleteResult1Func() {
...
@@ -261,6 +312,14 @@ function deleteResult1Func() {
detail1Grid
.
removeRows
([
rows
.
rowNo
]);
// 刷新行号
detail1Grid
.
removeRows
([
rows
.
rowNo
]);
// 刷新行号
})
})
refreshRowNo
();
refreshRowNo
();
var
pricingMethod
=
$
(
"#result-0-pricingMethod"
).
val
();
if
(
pricingMethod
==
1
)
{
calculateAmount
(
null
);
}
else
if
(
pricingMethod
==
2
){
calculateUnitAmount
(
null
);
}
else
{
}
}
}
let
refreshRowNo
=
function
()
{
let
refreshRowNo
=
function
()
{
...
@@ -301,13 +360,26 @@ $(window).load(function () {
...
@@ -301,13 +360,26 @@ $(window).load(function () {
refreshRowNo
();
refreshRowNo
();
});
});
/**
* 计算总价
* @param item
*/
function
calculateAmount
(
item
)
{
function
calculateAmount
(
item
)
{
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
var
deviceNumber
=
parseFloat
(
item
.
deviceNumber
)
||
0
;
var
deviceNumber
=
item
!=
null
?
parseFloat
(
item
.
deviceNumber
)
||
0
:
0
;
var
unitPrice
=
parseFloat
(
item
.
unitPrice
)
||
0
;
var
unitPrice
=
item
!=
null
?
parseFloat
(
item
.
unitPrice
)
||
0
:
0
;
var
dayNumber
=
parseFloat
(
item
.
dayNumber
)
||
0
;
var
dayNumber
=
item
!=
null
?
parseFloat
(
item
.
dayNumber
)
||
0
:
0
;
var
totalPrice
=
deviceNumber
*
unitPrice
*
dayNumber
;
var
totalPrice
=
deviceNumber
*
unitPrice
*
dayNumber
;
detail1Grid
.
setCellValue
(
item
,
'totalPrice'
,
parseFloat
(
totalPrice
));
var
totalPriceIncluding
=
totalPrice
*
(
1
+
parseFloat
(
taxPoints
));
var
taxAmount
=
totalPriceIncluding
-
totalPrice
if
(
item
)
{
detail1Grid
.
setCellValue
(
item
,
'totalPrice'
,
parseFloat
(
totalPrice
));
detail1Grid
.
setCellValue
(
item
,
'totalPriceIncluding'
,
parseFloat
(
totalPriceIncluding
));
detail1Grid
.
setCellValue
(
item
,
'taxAmount'
,
parseFloat
(
taxAmount
));
}
var
allRows
=
detail1Grid
.
getDataItems
();
var
allRows
=
detail1Grid
.
getDataItems
();
var
totalPriceExcluding
=
0
;
var
totalPriceExcluding
=
0
;
var
totalPriceIncluding
=
0
;
var
totalPriceIncluding
=
0
;
...
@@ -320,6 +392,7 @@ function calculateAmount(item) {
...
@@ -320,6 +392,7 @@ function calculateAmount(item) {
});
});
totalPriceExcluding
=
totalPrice
;
totalPriceExcluding
=
totalPrice
;
totalPriceIncluding
=
totalPriceExcluding
*
(
1
+
parseFloat
(
taxPoints
));
totalPriceIncluding
=
totalPriceExcluding
*
(
1
+
parseFloat
(
taxPoints
));
valueAddedTax
=
parseFloat
(
totalPriceIncluding
)
-
parseFloat
(
totalPriceExcluding
);
valueAddedTax
=
parseFloat
(
totalPriceIncluding
)
-
parseFloat
(
totalPriceExcluding
);
$
(
"#result-0-totalContractPriceExcluding"
).
val
(
parseFloat
(
totalPriceExcluding
).
toFixed
(
3
))
$
(
"#result-0-totalContractPriceExcluding"
).
val
(
parseFloat
(
totalPriceExcluding
).
toFixed
(
3
))
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
parseFloat
(
totalPriceIncluding
).
toFixed
(
3
))
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
parseFloat
(
totalPriceIncluding
).
toFixed
(
3
))
...
@@ -327,4 +400,41 @@ function calculateAmount(item) {
...
@@ -327,4 +400,41 @@ function calculateAmount(item) {
$
(
"#result-0-totalQuantity"
).
val
(
parseFloat
(
deviceNumber
).
toFixed
(
3
))
$
(
"#result-0-totalQuantity"
).
val
(
parseFloat
(
deviceNumber
).
toFixed
(
3
))
}
}
/**
* 计算单价
*/
function
calculateUnitAmount
(
item
)
{
var
taxPoints
=
$
(
"#result-0-taxPoints"
).
val
()
?
$
(
"#result-0-taxPoints"
).
val
()
/
100
:
0
;
var
deviceNumber
=
item
!=
null
?
parseFloat
(
item
.
deviceNumber
)
||
0
:
0
;
var
dayNumber
=
item
!=
null
?
parseFloat
(
item
.
dayNumber
)
||
0
:
0
;
var
totalPrice
=
item
!=
null
?
parseFloat
(
item
.
totalPrice
)
||
0
:
0
;
var
unitPrice
=
totalPrice
/
(
deviceNumber
*
dayNumber
);
var
totalPriceIncluding
=
totalPrice
*
(
1
+
parseFloat
(
taxPoints
));
var
taxAmount
=
totalPriceIncluding
-
totalPrice
if
(
item
)
{
detail1Grid
.
setCellValue
(
item
,
'unitPrice'
,
parseFloat
(
unitPrice
));
detail1Grid
.
setCellValue
(
item
,
'totalPriceIncluding'
,
parseFloat
(
totalPriceIncluding
));
detail1Grid
.
setCellValue
(
item
,
'taxAmount'
,
parseFloat
(
taxAmount
));
}
var
allRows
=
detail1Grid
.
getDataItems
();
var
totalPriceExcluding
=
0
;
var
totalPriceIncluding
=
0
;
var
valueAddedTax
=
0
;
totalPrice
=
0
;
deviceNumber
=
0
allRows
.
forEach
(
function
(
row
,
index
)
{
totalPrice
+=
parseFloat
(
row
.
totalPrice
);
deviceNumber
+=
parseFloat
(
row
.
deviceNumber
);
});
totalPriceExcluding
=
totalPrice
;
totalPriceIncluding
=
totalPriceExcluding
*
(
1
+
parseFloat
(
taxPoints
));
valueAddedTax
=
parseFloat
(
totalPriceIncluding
)
-
parseFloat
(
totalPriceExcluding
);
$
(
"#result-0-totalContractPriceExcluding"
).
val
(
parseFloat
(
totalPriceExcluding
).
toFixed
(
3
))
$
(
"#result-0-totalContractPriceIncluding"
).
val
(
parseFloat
(
totalPriceIncluding
).
toFixed
(
3
))
$
(
"#result-0-valueAddedTax"
).
val
(
parseFloat
(
valueAddedTax
).
toFixed
(
3
))
$
(
"#result-0-totalQuantity"
).
val
(
parseFloat
(
deviceNumber
).
toFixed
(
3
))
}
src/main/webapp/HG/CW/HGCW006A.jsp
View file @
2df80332
...
@@ -95,7 +95,10 @@
...
@@ -95,7 +95,10 @@
<EF:EFColumn
ename=
"deviceNumber"
cname=
"数量"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"deviceNumber"
cname=
"数量"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"unitPrice"
cname=
"单价"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"unitPrice"
cname=
"单价"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"dayNumber"
cname=
"天数"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"dayNumber"
cname=
"天数"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPrice"
cname=
"总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPrice"
cname=
"总价"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"taxAmount"
cname=
"税额"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalPriceIncluding"
cname=
"含税总价"
enable=
"false"
format=
"{0:N3}"
align=
"center"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
<EF:EFRegion
id=
"detail2"
title=
"附件信息"
>
<EF:EFRegion
id=
"detail2"
title=
"附件信息"
>
...
...
src/main/webapp/HG/CW/HGCW014.js
View file @
2df80332
...
@@ -165,8 +165,8 @@ function windowCallback() {
...
@@ -165,8 +165,8 @@ function windowCallback() {
function
submitFunc
()
{
function
submitFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
if
(
rows
.
length
<
1
)
{
message
(
"请选择一条数据"
);
message
(
"请
至少
选择一条数据"
);
return
;
return
;
}
}
var
flag
=
true
;
var
flag
=
true
;
...
@@ -218,8 +218,8 @@ function submitFunc() {
...
@@ -218,8 +218,8 @@ function submitFunc() {
function
writeoffFunc
()
{
function
writeoffFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
if
(
rows
.
length
<
1
)
{
message
(
"请选择一条数据"
);
message
(
"请
至少
选择一条数据"
);
return
;
return
;
}
}
var
flag
=
true
;
var
flag
=
true
;
...
...
src/main/webapp/HG/CW/HGCW016.js
View file @
2df80332
...
@@ -164,8 +164,8 @@ function windowCallback() {
...
@@ -164,8 +164,8 @@ function windowCallback() {
function
submitFunc
()
{
function
submitFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
if
(
rows
.
length
<
1
)
{
message
(
"请选择一条数据"
);
message
(
"请
至少
选择一条数据"
);
return
;
return
;
}
}
var
flag
=
true
;
var
flag
=
true
;
...
@@ -217,8 +217,8 @@ function submitFunc() {
...
@@ -217,8 +217,8 @@ function submitFunc() {
function
writeoffFunc
()
{
function
writeoffFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
if
(
rows
.
length
<
1
)
{
message
(
"请选择一条数据"
);
message
(
"请
至少
选择一条数据"
);
return
;
return
;
}
}
var
flag
=
true
;
var
flag
=
true
;
...
...
src/main/webapp/HG/CW/HGCW016A.jsp
View file @
2df80332
...
@@ -10,14 +10,15 @@
...
@@ -10,14 +10,15 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"隐藏条件"
ename=
"partyA"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"隐藏条件"
ename=
"hiddenConditions"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"隐藏条件"
ename=
"billState"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"隐藏条件"
ename=
"mainId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"隐藏条件"
ename=
"mainId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFDateSpan
startCname=
"付款日期(从)"
endCname=
"至"
blockId=
"inqu_status"
<EF:EFDateSpan
startCname=
"付款日期(从)"
endCname=
"至"
blockId=
"inqu_status"
startName=
"signingDateFrom"
endName=
"signingDateTo"
row=
"0"
role=
"date"
startName=
"signingDateFrom"
endName=
"signingDateTo"
row=
"0"
role=
"date"
format=
"yyyy-MM-dd"
ratio=
"3:3"
satrtRatio=
"4:8"
endRatio=
"4:8"
readonly=
"true"
>
format=
"yyyy-MM-dd"
ratio=
"3:3"
satrtRatio=
"4:8"
endRatio=
"4:8"
readonly=
"true"
>
</EF:EFDateSpan>
</EF:EFDateSpan>
<EF:EFInput
cname=
"
客户
名称"
ename=
"partyA"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"
供应商
名称"
ename=
"partyA"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"票据类型"
ename=
"inqu_status-0-billTybe"
colWidth=
"3"
filter=
"contains"
>
<EF:EFSelect
cname=
"票据类型"
ename=
"inqu_status-0-billTybe"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.billTybe"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.billTybe"
/>
...
@@ -31,7 +32,7 @@
...
@@ -31,7 +32,7 @@
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"thisAmount"
cname=
"本次付款金额"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"thisAmount"
cname=
"本次付款金额"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"remainingAmount"
cname=
"剩余付款金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"remainingAmount"
cname=
"剩余付款金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
cname=
"
客户
名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
cname=
"
供应商
名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"来源单号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"来源单号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFComboColumn
ename=
"billTybe"
cname=
"票据类型"
width=
"100"
align=
"center"
<EF:EFComboColumn
ename=
"billTybe"
cname=
"票据类型"
width=
"100"
align=
"center"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"false"
>
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"false"
>
...
@@ -42,7 +43,7 @@
...
@@ -42,7 +43,7 @@
<EF:EFColumn
ename=
"taxPoints"
cname=
"税率(%)"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"taxPoints"
cname=
"税率(%)"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"税额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"税额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
付款
总额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
发票
总额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HG/KC/HGKC001.jsp
View file @
2df80332
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"
company_code_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
valueField=
"companyCode"
textField=
"companyName
"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"供应商名称"
blockId=
"inqu_status"
ename=
"supCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"供应商名称"
blockId=
"inqu_status"
ename=
"supCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
...
...
src/main/webapp/HG/KC/HGKC006.js
View file @
2df80332
let
WhNameGlobalData
=
[];
let
WhNameGlobalData
=
[];
$
(
function
()
{
$
(
function
()
{
var
companyCodes
=
__eiInfo
.
getBlock
(
"
companyBox_block_id
"
).
getMappedRows
();
var
companyCodes
=
__eiInfo
.
getBlock
(
"
roleCompany
"
).
getMappedRows
();
IPLATUI
.
EFGrid
.
result
=
{
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageable
:
{
pageSize
:
20
,
pageSize
:
20
,
...
@@ -28,9 +28,9 @@ $(function () {
...
@@ -28,9 +28,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'
]){
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'
textField
'
]
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'
companyName
'
]
return
companyCodes
[
i
][
'
textField
'
];
return
companyCodes
[
i
][
'
companyName
'
];
}
}
}
}
return
dataItem
[
"companyCode"
];
return
dataItem
[
"companyCode"
];
...
...
src/main/webapp/HG/KC/HGKC006.jsp
View file @
2df80332
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
width=
"12
0"
required=
"true"
maxLength=
"16"
readonly=
"false"
width=
"20
0"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"
companyBox_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
textField=
"companyName"
valueField=
"companyCode
"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"otherEnterDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"otherEnterDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
...
...
src/main/webapp/HG/KC/HGKC007.js
View file @
2df80332
let
whNameGlobalData
=
[];
let
whNameGlobalData
=
[];
$
(
function
()
{
$
(
function
()
{
var
companyCodes
=
__eiInfo
.
getBlock
(
"
companyBox_block_id
"
).
getMappedRows
();
var
companyCodes
=
__eiInfo
.
getBlock
(
"
roleCompany
"
).
getMappedRows
();
IPLATUI
.
EFGrid
.
result
=
{
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageable
:
{
pageSize
:
20
,
pageSize
:
20
,
...
@@ -28,9 +28,9 @@ $(function () {
...
@@ -28,9 +28,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'
]){
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'
textField
'
]
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'
companyName
'
]
return
companyCodes
[
i
][
'
textField
'
];
return
companyCodes
[
i
][
'
companyName
'
];
}
}
}
}
return
dataItem
[
"companyCode"
];
return
dataItem
[
"companyCode"
];
...
...
src/main/webapp/HG/KC/HGKC007.jsp
View file @
2df80332
...
@@ -42,9 +42,9 @@
...
@@ -42,9 +42,9 @@
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
width=
"12
0"
required=
"true"
maxLength=
"16"
readonly=
"false"
width=
"20
0"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"
companyBox_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
textField=
"companyName"
valueField=
"companyCode
"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"otherOutDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"otherOutDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
...
...
src/main/webapp/HG/KC/HGKC010.jsp
View file @
2df80332
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
defultValue=
""
filter=
"contains
"
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
"
"
>
<EF:EFOptions
blockId=
"
company_code_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
valueField=
"companyCode"
textField=
"companyName
"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"仓库名称"
blockId=
"inqu_status"
ename=
"whCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"仓库名称"
blockId=
"inqu_status"
ename=
"whCode"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
defultValue=
""
filter=
"contains"
>
optionLabel=
"全部"
defultValue=
""
filter=
"contains"
>
...
...
src/main/webapp/HG/SC/HGSC003.js
View file @
2df80332
...
@@ -2,7 +2,7 @@ $(function (){
...
@@ -2,7 +2,7 @@ $(function (){
var
companyCodes
=
__eiInfo
.
getBlock
(
"roleCompany"
).
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
();
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
...
@@ -76,7 +76,7 @@ $(function (){
...
@@ -76,7 +76,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
)
{
}
}
...
...
src/main/webapp/HG/SC/HGSC004.js
View file @
2df80332
$
(
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
blueprintCodes
=
__eiInfo
.
getBlock
(
"blueprint_box_block_id"
).
getMappedRows
();
var
blueprintCodes
=
__eiInfo
.
getBlock
(
"blueprint_box_block_id"
).
getMappedRows
();
...
@@ -43,9 +43,9 @@ $(function (){
...
@@ -43,9 +43,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'
]){
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'
textField
'
]
dataItem
[
'companyName'
]
=
companyCodes
[
i
][
'
companyName
'
]
return
companyCodes
[
i
][
'
textField
'
];
return
companyCodes
[
i
][
'
companyName
'
];
}
}
}
}
return
dataItem
[
"companyCode"
];
return
dataItem
[
"companyCode"
];
...
@@ -62,7 +62,7 @@ $(function (){
...
@@ -62,7 +62,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
();
...
@@ -72,7 +72,7 @@ $(function (){
...
@@ -72,7 +72,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
)
{
}
}
...
@@ -104,7 +104,7 @@ $(function (){
...
@@ -104,7 +104,7 @@ $(function (){
}
}
}
}
}
}
return
templat
e
;
return
item
.
blueprintCod
e
;
},
},
editor
:
function
(
container
,
options
)
{
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
let
inInfo
=
new
EiInfo
();
...
@@ -112,10 +112,9 @@ $(function (){
...
@@ -112,10 +112,9 @@ $(function (){
inInfo
.
set
(
"inqu_status-0-blueprintStatus"
,
1
);
inInfo
.
set
(
"inqu_status-0-blueprintStatus"
,
1
);
inInfo
.
set
(
"inqu_status-0-projCode"
,
options
.
model
[
"projCode"
]);
inInfo
.
set
(
"inqu_status-0-projCode"
,
options
.
model
[
"projCode"
]);
inInfo
.
set
(
"field"
,
options
.
field
);
inInfo
.
set
(
"field"
,
options
.
field
);
let
dataSource
;
EiCommunicator
.
send
(
"HGSC003"
,
"blueprintComboBox"
,
inInfo
,
{
EiCommunicator
.
send
(
"HGSC003"
,
"blueprintComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
dataSource
=
ei
.
getBlock
(
"blueprint_box_block_id"
).
getMappedRows
();
blueprintCodes
=
ei
.
getBlock
(
"blueprint_box_block_id"
).
getMappedRows
();
},
},
onFail
:
function
(
ei
)
{
onFail
:
function
(
ei
)
{
}
}
...
@@ -125,7 +124,7 @@ $(function (){
...
@@ -125,7 +124,7 @@ $(function (){
input
.
attr
(
"id"
,
options
.
field
);
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
input
.
appendTo
(
container
);
input
.
kendoDropDownList
({
input
.
kendoDropDownList
({
dataSource
:
dataSource
,
dataSource
:
blueprintCodes
,
minLength
:
0
,
minLength
:
0
,
dataTextField
:
"textField"
,
dataTextField
:
"textField"
,
dataValueField
:
"valueField"
,
dataValueField
:
"valueField"
,
...
...
src/main/webapp/HG/SC/HGSC004.jsp
View file @
2df80332
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
isFloat=
"true"
copyToAdd=
"false"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
isFloat=
"true"
copyToAdd=
"false"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<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"
/>
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司
名称
"
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司
编码
"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
width=
"12
0"
required=
"true"
maxLength=
"16"
readonly=
"false"
width=
"10
0"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"
companyBox_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"
roleCompany"
textField=
"companyName"
valueField=
"companyCode
"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"120"
align=
"center"
enable=
"false"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"true"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"true"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
align=
"center"
enable=
"false"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
align=
"center"
enable=
"false"
/>
<EF:EFColumn
ename=
"blueprintCode"
cname=
"蓝图编码"
enable=
"true"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"blueprintCode"
cname=
"蓝图编码"
enable=
"true"
width=
"120"
align=
"center"
required=
"true"
/>
...
...
src/main/webapp/HG/SC/HGSC004A.js
View file @
2df80332
...
@@ -612,6 +612,7 @@ let save = function (btnNode) {
...
@@ -612,6 +612,7 @@ let save = function (btnNode) {
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGSC004A"
,
"save"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HGSC004A"
,
"save"
,
true
);
btnNode
.
attr
(
"disabled"
,
false
);
btnNode
.
attr
(
"disabled"
,
false
);
refreshTree
();
}
}
});
});
}
}
...
@@ -644,7 +645,7 @@ function showDetail(id) {
...
@@ -644,7 +645,7 @@ function showDetail(id) {
}
}
function
updateProductStatus
(
id
,
status
)
{
function
updateProductStatus
(
id
,
status
)
{
JSUtils
.
confirm
(
"确定是否
\"
删除
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定是否
\"
提交
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
let
inEiInfo
=
new
EiInfo
();
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-id"
,
id
);
...
@@ -652,9 +653,13 @@ function updateProductStatus(id,status) {
...
@@ -652,9 +653,13 @@ function updateProductStatus(id,status) {
inEiInfo
.
set
(
"result-0-materialId"
,
$
(
"#inqu_status-0-materialId"
).
val
());
inEiInfo
.
set
(
"result-0-materialId"
,
$
(
"#inqu_status-0-materialId"
).
val
());
EiCommunicator
.
send
(
'HGSC004A'
,
'updateProductStatus'
,
inEiInfo
,
{
EiCommunicator
.
send
(
'HGSC004A'
,
'updateProductStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
if
(
response
.
status
==
1
){
query
();
NotificationUtil
(
response
.
msg
);
refreshTree
();
query
();
refreshTree
();
}
else
{
NotificationUtil
(
response
.
msg
,
"error"
);
}
},
},
onFail
(
errorMessage
,
status
,
e
)
{
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
NotificationUtil
(
"执行失败!"
,
"error"
);
...
@@ -673,9 +678,13 @@ function saveDetail() {
...
@@ -673,9 +678,13 @@ function saveDetail() {
inEiInfo
.
setByNode
(
"result"
);
inEiInfo
.
setByNode
(
"result"
);
EiCommunicator
.
send
(
'HGSC004A'
,
'save'
,
inEiInfo
,
{
EiCommunicator
.
send
(
'HGSC004A'
,
'save'
,
inEiInfo
,
{
onSuccess
(
response
)
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
if
(
response
.
status
==
1
){
query
();
NotificationUtil
(
response
.
msg
);
refreshTree
();
query
();
refreshTree
();
}
else
{
NotificationUtil
(
response
.
msg
,
"error"
);
}
},
},
onFail
(
errorMessage
,
status
,
e
)
{
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
NotificationUtil
(
"执行失败!"
,
"error"
);
...
@@ -699,9 +708,13 @@ function deteleDetail(id) {
...
@@ -699,9 +708,13 @@ function deteleDetail(id) {
inEiInfo
.
set
(
"result-0-materialId"
,
$
(
"#inqu_status-0-materialId"
).
val
());
inEiInfo
.
set
(
"result-0-materialId"
,
$
(
"#inqu_status-0-materialId"
).
val
());
EiCommunicator
.
send
(
'HGSC004A'
,
'delete'
,
inEiInfo
,
{
EiCommunicator
.
send
(
'HGSC004A'
,
'delete'
,
inEiInfo
,
{
onSuccess
(
response
)
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
if
(
response
.
status
==
1
){
query
();
NotificationUtil
(
response
.
msg
);
refreshTree
();
query
();
refreshTree
();
}
else
{
NotificationUtil
(
response
.
msg
,
"error"
);
}
},
},
onFail
(
errorMessage
,
status
,
e
)
{
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
NotificationUtil
(
"执行失败!"
,
"error"
);
...
@@ -737,7 +750,12 @@ let batchSubmit = function () {
...
@@ -737,7 +750,12 @@ let batchSubmit = function () {
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做提交操作吗? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做提交操作吗? "
,
{
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGSC004A"
,
"updateProductStatus"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HGSC004A"
,
"updateProductStatus"
,
true
,
function
(
e
)
{
var
status
=
e
.
getStatus
();
if
(
status
!==
-
1
)
{
query
();
}
});
}
}
});
});
}
}
...
...
src/main/webapp/HG/SC/HGSC004A.jsp
View file @
2df80332
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
enable=
"false"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
enable=
"false"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
enable=
"false"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
enable=
"false"
/>
<EF:EFColumn
ename=
"quantity"
required=
"true"
cname=
"数量"
/>
<EF:EFColumn
ename=
"quantity"
required=
"true"
cname=
"数量"
/>
<EF:EFColumn
ename=
"singleWeight"
cname=
"单重(kg)"
width=
"100"
enable=
"true"
readonly=
"true"
format=
"{0:N3}"
editType=
"text"
<EF:EFColumn
ename=
"singleWeight"
cname=
"单重(kg)"
width=
"100"
enable=
"true"
format=
"{0:N3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
maxLength=
"17"
required=
"true"
defaultValue=
"0"
displayType=
"0.000"
sort=
"true"
align=
"right"
maxLength=
"17"
required=
"true"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
...
...
src/main/webapp/HG/SC/HGSC009.jsp
View file @
2df80332
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<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="公司
编码
"
columnTemplate="#=companyName#" itemTemplate="#=companyName#"
columnTemplate="#=companyName#" itemTemplate="#=companyName#"
textField="companyName" valueField="companyCode"
textField="companyName" valueField="companyCode"
maxLength="16" readonly="false" width="100" required="true"
maxLength="16" readonly="false" width="100" required="true"
...
...
src/main/webapp/HG/ZL/HGZL001.jsp
View file @
2df80332
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFDatePicker
cname=
"单据日期"
ename=
"receiptDate"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
<EF:EFDatePicker
cname=
"单据日期"
ename=
"receiptDate"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"公司名称"
blockId=
"inqu_status"
ename=
"companyCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"company_code_block_id"
textField=
"textField"
valueField=
"valueField
"
/>
<EF:EFOptions
blockId=
"roleCompany"
valueField=
"companyCode"
textField=
"companyName
"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
filter=
"contains"
optionLabel=
"全部"
defultValue=
""
>
<EF:EFOptions
blockId=
"invent_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"invent_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
...
...
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