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
48e2a1b2
Commit
48e2a1b2
authored
Jul 03, 2024
by
13420
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售开票,采购收票bug调整
parent
fc0fe11a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
411 additions
and
58 deletions
+411
-58
HGCW012B.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW012B.java
+0
-0
ServiceHGCW012A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
+4
-6
HGCW012A.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
+144
-11
HGCW012B.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012B.xml
+245
-0
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+7
-0
HGCW010.js
src/main/webapp/HG/CW/HGCW010.js
+1
-1
HGCW010A.js
src/main/webapp/HG/CW/HGCW010A.js
+2
-1
HGCW012A.js
src/main/webapp/HG/CW/HGCW012A.js
+8
-39
No files found.
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW012B.java
0 → 100644
View file @
48e2a1b2
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
View file @
48e2a1b2
package
com
.
baosight
.
hggp
.
hg
.
cw
.
service
;
package
com
.
baosight
.
hggp
.
hg
.
cw
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.hg.cw.domain.HGCW002
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cw.domain.HGCW006
;
import
com.baosight.hggp.hg.cw.domain.HGCW012B
;
import
com.baosight.hggp.hg.cw.domain.HGCW010A
;
import
com.baosight.hggp.hg.cw.domain.*
;
import
com.baosight.hggp.hg.cw.domain.HGCW012A
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -46,8 +45,7 @@ public class ServiceHGCW012A extends ServiceBase {
...
@@ -46,8 +45,7 @@ public class ServiceHGCW012A extends ServiceBase {
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW002
.
FIELD_CONTRACT_TYPE
,
2
);
inInfo
=
super
.
query
(
inInfo
,
HGCW012B
.
QUERY_A
,
new
HGCG003
());
inInfo
=
super
.
query
(
inInfo
,
HGCW012A
.
QUERY
,
new
HGCW012A
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
View file @
48e2a1b2
...
@@ -185,7 +185,106 @@
...
@@ -185,7 +185,106 @@
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
</isNotEmpty>
</sql>
</sql>
<sql
id=
"column1"
>
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
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-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
RECEIVE_DATE as "receiveDate",
<!-- 收货日期 -->
RECEIVE_NO as "receiveNo",
<!-- 收货单号 -->
PLAN_NO as "planNo",
<!-- 计划单号 -->
CONTRACT_NO as "contractNo",
<!-- 合同号 -->
SUP_CODE as "supCode",
<!-- 供应商编码 -->
SUP_NAME as "supName",
<!-- 供应商名称 -->
PUR_USER_ID as "purUserId",
<!-- 采购员 -->
PUR_USER_NAME as "purUserName",
<!-- 采购员名称 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
MATERIAL as "material",
<!-- 材质 -->
UNIT as "unit",
<!-- 单位 -->
LENGTH as "length",
<!-- 长度 -->
WIDTH as "width",
<!-- 宽度 -->
THICK as "thick",
<!-- 厚度 -->
RECEIVE_QTY as "receiveQty",
<!-- 收货数量 -->
DELIVER_QTY as "deliverQty",
<!-- 退货数量 -->
DEPOSIT_QTY as "depositQty",
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT as "receiveUnitWeight",
<!-- 收货单重 -->
RECEIVE_WEIGHT as "receiveWeight",
<!-- 收货重量 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STATUS as "status"
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
</sql>
<sql
id=
"condition1"
>
AND DELETE_FLAG = 0
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"idCondition"
/>
<include
refid=
"customCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveDate"
>
RECEIVE_DATE = #receiveDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planNo"
>
PLAN_NO = #planNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNo"
>
CONTRACT_NO = #contractNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supCode"
>
SUP_CODE = #supCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
SUP_NAME = #supName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserId"
>
PUR_USER_ID = #purUserId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserName"
>
PUR_USER_NAME = #purUserName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"material"
>
MATERIAL = #material#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"price"
>
PRICE = #price#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
SELECT
SELECT
...
@@ -212,23 +311,57 @@
...
@@ -212,23 +311,57 @@
SELECT COUNT(*) FROM ${hggpSchema}.HGCW008 WHERE 1=1 AND B.CONTRACT_TYPE = '2'
SELECT COUNT(*) FROM ${hggpSchema}.HGCW008 WHERE 1=1 AND B.CONTRACT_TYPE = '2'
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<select
id=
"queryA"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003"
>
<select
id=
"queryB"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column1"
/>
FROM ${hggpSchema}.HGCW008 T1 LEFT JOIN
FROM ${hggpSchema}.HGCG003 WHERE 1=1
${hggpSchema}.HGCW006 B
<include
refid=
"condition1"
/>
ON T1.PROJ_CODE = B.PROJ_CODE
<include
refid=
"orderBy"
/>
AND T1.CONTRACT_NUMBER = B.CONTRACT_NUMBER
</select>
AND T1.COMPANY_CODE = B.COMPANY_CODE
<select
id=
"queryB"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW006"
>
WHERE 1=1 AND B.CONTRACT_STATUS = 2
SELECT
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
PROJ_CODE as "projCode",
<!-- 项目编码 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
CONTRACT_NUMBER as "contractNumber",
<!-- 合同号 -->
CONTRACT_NAME as "contractName",
<!-- 合同名称 -->
PARTY_A as "partyA",
<!-- 甲方名称 -->
PARTY_B as "partyB",
<!-- 乙方名称 -->
SIGNING_DATE as "signingDate",
<!-- 签约日期 -->
TOTAL_QUANTITY as "totalQuantity",
<!-- 总数量 -->
PARTY_A_NAME as "partyAName",
<!-- 甲方联系人姓名 -->
PARTY_A_PHONE_NUMBER as "partyAPhoneNumber",
<!-- 甲方联系人电话 -->
ALREADY_NAME as "alreadyName",
<!-- 已方联系人姓名 -->
ALREADY_PHONE_NUMBER as "alreadyPhoneNumber",
<!-- 已方联系人电话 -->
CONTRACT_STATUS as "contractStatus",
<!-- 合同状态;1草签2签约 -->
LEASE_START_DATE as "leaseStartDate",
<!-- 租赁开始日期 -->
LEASE_END_DATE as "leaseEndDate",
<!-- 租赁结束日期 -->
PAYMENT_METHOD as "paymentMethod",
<!-- 付款方式;1一次性付款2分期付款 -->
PRICING_METHOD as "pricingMethod",
<!-- 计价方式;1固定单价合同2固定总价合同 -->
TAX_POINTS as "taxPoints",
<!-- 税点 -->
TOTAL_CONTRACT_PRICE_EXCLUDING as "totalContractPriceExcluding",
<!-- 合同总价(不含税) -->
VALUE_ADDED_TAX as "valueAddedTax",
<!-- 增值税 -->
TOTAL_CONTRACT_PRICE_INCLUDING as "totalContractPriceIncluding",
<!-- 合同总价(含税) -->
REMAINING_AMOUNT as "remainingAmount",
<!-- 剩余金额 -->
REVIEW_STATUS as "reviewStatus",
<!-- 审核状态 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
DEP_CODE as "depCode"
<!-- 部门编码 -->
FROM ${hggpSchema}.HGCW006 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
T1.
ID asc
ID asc
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</select>
</select>
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012B.xml
0 → 100644
View file @
48e2a1b2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HGCW012B"
>
<sql
id=
"column"
>
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
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-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
RECEIVE_DATE as "receiveDate",
<!-- 收货日期 -->
RECEIVE_NO as "receiveNo",
<!-- 收货单号 -->
PLAN_NO as "planNo",
<!-- 计划单号 -->
CONTRACT_NO as "contractNo",
<!-- 合同号 -->
SUP_CODE as "supCode",
<!-- 供应商编码 -->
SUP_NAME as "supName",
<!-- 供应商名称 -->
PUR_USER_ID as "purUserId",
<!-- 采购员 -->
PUR_USER_NAME as "purUserName",
<!-- 采购员名称 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
MATERIAL as "material",
<!-- 材质 -->
UNIT as "unit",
<!-- 单位 -->
LENGTH as "length",
<!-- 长度 -->
WIDTH as "width",
<!-- 宽度 -->
THICK as "thick",
<!-- 厚度 -->
RECEIVE_QTY as "receiveQty",
<!-- 收货数量 -->
DELIVER_QTY as "deliverQty",
<!-- 退货数量 -->
DEPOSIT_QTY as "depositQty",
<!-- 入库数量 -->
RECEIVE_UNIT_WEIGHT as "receiveUnitWeight",
<!-- 收货单重 -->
RECEIVE_WEIGHT as "receiveWeight",
<!-- 收货重量 -->
PRICE as "price",
<!-- 单价 -->
AMOUNT as "amount",
<!-- 金额 -->
STATUS as "status"
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"idCondition"
/>
<include
refid=
"customCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveDate"
>
RECEIVE_DATE = #receiveDate#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planNo"
>
PLAN_NO = #planNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"contractNo"
>
CONTRACT_NO = #contractNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supCode"
>
SUP_CODE = #supCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
SUP_NAME = #supName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserId"
>
PUR_USER_ID = #purUserId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserName"
>
PUR_USER_NAME = #purUserName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"material"
>
MATERIAL = #material#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"price"
>
PRICE = #price#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"amount"
>
AMOUNT = #amount#
</isNotEmpty>
</sql>
<sql
id=
"idCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveNo"
>
RECEIVE_NO = #receiveNo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"receiveNos"
>
RECEIVE_NO IN
<iterate
open=
"("
close=
")"
conjunction=
","
property=
"receiveNos"
>
#receiveNos[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"customCondition"
>
<include
refid=
"BaseCondition.specCondition"
/>
<include
refid=
"BaseCondition.createdTimeCondition"
/>
</sql>
<!-- 公共修改字段 -->
<sql
id=
"updateRevise"
>
UPDATED_BY = #updatedBy#,
UPDATED_NAME = #updatedName#,
UPDATED_TIME = #updatedTime#
</sql>
<sql
id=
"orderBy"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID DESC
</isEmpty>
</dynamic>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.cg.domain.HGCG003"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCG003 WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"orderBy"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGCG003 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGCG003 (
ACCOUNT_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
DELETE_FLAG,
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE,
<!-- 公司编码 -->
COMPANY_NAME,
<!-- 公司名称 -->
RECEIVE_DATE,
<!-- 收货日期 -->
RECEIVE_NO,
<!-- 收货单号 -->
PLAN_NO,
<!-- 计划单号 -->
CONTRACT_NO,
<!-- 合同号 -->
SUP_CODE,
<!-- 供应商编码 -->
SUP_NAME,
<!-- 供应商名称 -->
PUR_USER_ID,
<!-- 采购员 -->
PUR_USER_NAME,
<!-- 采购员名称 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC_ID,
<!-- 规格ID -->
SPEC,
<!-- 规格 -->
MATERIAL,
<!-- 材质 -->
UNIT,
<!-- 单位 -->
LENGTH,
<!-- 长度 -->
WIDTH,
<!-- 宽度 -->
THICK,
<!-- 厚度 -->
RECEIVE_QTY,
<!-- 收货数量 -->
RECEIVE_UNIT_WEIGHT,
<!-- 收货单重 -->
RECEIVE_WEIGHT,
<!-- 收货重量 -->
PRICE,
<!-- 单价 -->
AMOUNT,
<!-- 金额 -->
STATUS
<!-- 状态:0-已收货,1-已入库,2-部分入库,3-退货 -->
) VALUES (
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#deleteFlag#, #companyCode#, #companyName#, #receiveDate#, #receiveNo#,
#planNo#, #contractNo#, #supCode#, #supName#, #purUserId#, #purUserName#,
#inventType#, #inventCode#, #inventName#, #specId#, #spec#, #material#,
#unit#, #length#, #width#, #thick#, #receiveQty#, #receiveUnitWeight#,
#receiveWeight#,#price#, #amount#, #status#
)
</insert>
<delete
id=
"delete"
>
UPDATE ${hggpSchema}.HGCG003
SET
DELETE_FLAG = #deleteFlag#,
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</delete>
<!-- 行锁 -->
<update
id=
"lock"
>
UPDATE ${hggpSchema}.HGCG003
SET CREATED_TIME = CREATED_TIME
WHERE 1=1
<include
refid=
"idCondition"
/>
</update>
<!-- 修改状态 -->
<update
id=
"updateStatus"
>
UPDATE ${hggpSchema}.HGCG003
SET
STATUS = #status#,
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</update>
<!-- 修改数量 -->
<update
id=
"updateQty"
>
UPDATE ${hggpSchema}.HGCG003
SET
RECEIVE_QTY = #receiveQty#,
<!-- 收货数量 -->
RECEIVE_WEIGHT = #receiveWeight#,
<!-- 收货重量 -->
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</update>
<!-- 修改确认 -->
<update
id=
"updateConfirm"
>
UPDATE ${hggpSchema}.HGCG003
SET
STATUS = #status#,
DELIVER_QTY = #deliverQty#,
<!-- 退货数量 -->
DEPOSIT_QTY = #depositQty#,
<!-- 入库数量 -->
<include
refid=
"updateRevise"
/>
WHERE RECEIVE_NO = #receiveNo#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
48e2a1b2
...
@@ -400,8 +400,15 @@ public class HGCWTools {
...
@@ -400,8 +400,15 @@ public class HGCWTools {
HGCW011
.
fromMap
(
row
);
HGCW011
.
fromMap
(
row
);
String
settlementNumber
=
row
.
get
(
"settlementNumber"
).
toString
();
String
settlementNumber
=
row
.
get
(
"settlementNumber"
).
toString
();
String
remainingAmount
=
row
.
get
(
"thisAmount"
).
toString
();
String
remainingAmount
=
row
.
get
(
"thisAmount"
).
toString
();
BigDecimal
taxPoints
=
new
BigDecimal
(
row
.
get
(
"taxPoints"
).
toString
());
// 假设这是以整数形式给出的税率,比如17表示17%
BigDecimal
thisAmount
=
new
BigDecimal
(
row
.
get
(
"thisAmount"
).
toString
());
BigDecimal
taxRateAsDecimal
=
taxPoints
.
divide
(
new
BigDecimal
(
"100"
));
// 将税率转换为小数形式
BigDecimal
thisSettlementTax
=
thisAmount
.
multiply
(
taxRateAsDecimal
);
// 计算税额
BigDecimal
thisSettlementAmount
=
thisAmount
.
subtract
(
thisSettlementTax
);
HGCW011
.
setTotalContractPriceIncluding
(
new
BigDecimal
(
remainingAmount
));
HGCW011
.
setTotalContractPriceIncluding
(
new
BigDecimal
(
remainingAmount
));
HGCW011
.
setSettlementNumber
(
settlementNumber
);
HGCW011
.
setSettlementNumber
(
settlementNumber
);
HGCW011
.
setThisSettlementTax
(
thisSettlementTax
.
toString
());
HGCW011
.
setThisSettlementAmount
(
thisSettlementAmount
.
toString
());
if
(
mainId
!=
null
)
{
if
(
mainId
!=
null
)
{
HGCW011
.
setMainId
(
mainId
);
HGCW011
.
setMainId
(
mainId
);
}
}
...
...
src/main/webapp/HG/CW/HGCW010.js
View file @
48e2a1b2
...
@@ -37,7 +37,7 @@ $(function() {
...
@@ -37,7 +37,7 @@ $(function() {
resultGrid
.
setCellValue
(
item
,
'thisSettlementTax'
,
thisSettlementTax
)
resultGrid
.
setCellValue
(
item
,
'thisSettlementTax'
,
thisSettlementTax
)
}
}
if
(
item
.
thisSettlementTax
&&
item
.
totalContractPriceIncluding
){
if
(
item
.
thisSettlementTax
&&
item
.
totalContractPriceIncluding
){
let
thisSettlementAmount
=
item
.
totalContractPriceIncluding
+
item
.
thisSettlementTax
;
let
thisSettlementAmount
=
item
.
totalContractPriceIncluding
-
item
.
thisSettlementTax
;
resultGrid
.
setCellValue
(
item
,
'thisSettlementAmount'
,
thisSettlementAmount
)
resultGrid
.
setCellValue
(
item
,
'thisSettlementAmount'
,
thisSettlementAmount
)
}
}
loadChange
(
grid
,
e
,
"price"
);
loadChange
(
grid
,
e
,
"price"
);
...
...
src/main/webapp/HG/CW/HGCW010A.js
View file @
48e2a1b2
...
@@ -68,7 +68,8 @@ function saveFunc() {
...
@@ -68,7 +68,8 @@ function saveFunc() {
ok
:
function
()
{
ok
:
function
()
{
var
info
=
new
EiInfo
();
var
info
=
new
EiInfo
();
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
EiCommunicator
.
send
(
"HGCW010"
,
"save"
,
info
,
{
info
.
set
(
"inqu_status-0-mainId"
,
$
(
"#inqu_status-0-mainId"
).
val
())
EiCommunicator
.
send
(
"HGCW010"
,
"select"
,
info
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
try
{
...
...
src/main/webapp/HG/CW/HGCW012A.js
View file @
48e2a1b2
...
@@ -137,26 +137,13 @@ $(function () {
...
@@ -137,26 +137,13 @@ $(function () {
"result"
:
{
"result"
:
{
columns
:
[
columns
:
[
{
{
field
:
"projCode"
,
field
:
"receiveNo"
,
title
:
"项目编号"
,
headerTemplate
:
"<span style='color: '>项目编号 </span>"
,
width
:
200
,
locked
:
true
},
{
field
:
"projName"
,
title
:
"项目名称"
,
headerTemplate
:
"<span style='color: '>项目名称 </span>"
,
locked
:
false
},
{
field
:
"settlementNumber"
,
title
:
"结算编号"
,
title
:
"结算编号"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
locked
:
false
locked
:
false
},
},
{
{
field
:
"
contract
Date"
,
field
:
"
receive
Date"
,
title
:
"结算日期"
,
title
:
"结算日期"
,
headerTemplate
:
"<span style='color: '>结算日期 </span>"
,
headerTemplate
:
"<span style='color: '>结算日期 </span>"
,
locked
:
false
locked
:
false
...
@@ -168,25 +155,7 @@ $(function () {
...
@@ -168,25 +155,7 @@ $(function () {
locked
:
false
locked
:
false
},
},
{
{
field
:
"taxPoints"
,
field
:
"amount"
,
title
:
"税率(%)"
,
headerTemplate
:
"<span style='color: '>税率(%) </span>"
,
locked
:
false
},
{
field
:
"thisPriceTax"
,
title
:
"结算价税合计金额"
,
headerTemplate
:
"<span style='color: '>结算价税合计金额 </span>"
,
locked
:
false
},
{
field
:
"thisSettlementTax"
,
title
:
"结算税金"
,
headerTemplate
:
"<span style='color: '>结算税金 </span>"
,
locked
:
false
},
{
field
:
"thisSettlementAmount"
,
title
:
"结算金额"
,
title
:
"结算金额"
,
headerTemplate
:
"<span style='color: '>结算金额 </span>"
,
headerTemplate
:
"<span style='color: '>结算金额 </span>"
,
locked
:
false
locked
:
false
...
@@ -318,13 +287,13 @@ $(function () {
...
@@ -318,13 +287,13 @@ $(function () {
locked
:
false
locked
:
false
},
},
{
{
field
:
"
settlemen
tNumber"
,
field
:
"
contrac
tNumber"
,
title
:
"结算编号"
,
title
:
"结算编号"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
locked
:
false
locked
:
false
},
},
{
{
field
:
"
contract
Date"
,
field
:
"
signing
Date"
,
title
:
"结算日期"
,
title
:
"结算日期"
,
headerTemplate
:
"<span style='color: '>结算日期 </span>"
,
headerTemplate
:
"<span style='color: '>结算日期 </span>"
,
locked
:
false
locked
:
false
...
@@ -342,19 +311,19 @@ $(function () {
...
@@ -342,19 +311,19 @@ $(function () {
locked
:
false
locked
:
false
},
},
{
{
field
:
"t
hisPriceTax
"
,
field
:
"t
otalContractPriceIncluding
"
,
title
:
"结算价税合计金额"
,
title
:
"结算价税合计金额"
,
headerTemplate
:
"<span style='color: '>结算价税合计金额 </span>"
,
headerTemplate
:
"<span style='color: '>结算价税合计金额 </span>"
,
locked
:
false
locked
:
false
},
},
{
{
field
:
"
thisSettlement
Tax"
,
field
:
"
valueAdded
Tax"
,
title
:
"结算税金"
,
title
:
"结算税金"
,
headerTemplate
:
"<span style='color: '>结算税金 </span>"
,
headerTemplate
:
"<span style='color: '>结算税金 </span>"
,
locked
:
false
locked
:
false
},
},
{
{
field
:
"t
hisSettlementAmount
"
,
field
:
"t
otalContractPriceExcluding
"
,
title
:
"结算金额"
,
title
:
"结算金额"
,
headerTemplate
:
"<span style='color: '>结算金额 </span>"
,
headerTemplate
:
"<span style='color: '>结算金额 </span>"
,
locked
:
false
locked
:
false
...
...
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