Skip to content

Commit a5908d2

Browse files
author
Philip Zhang
committed
Add contract to prject
1 parent 5adf9dd commit a5908d2

File tree

112 files changed

+3993
-3051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+3993
-3051
lines changed

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/RetailscmCandidatesUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class RetailscmCandidatesUtil extends BaseCandidatesUtil{
4949
_for("transport_fleet").usedIn("transport_truck").withRole("owner");
5050
_for("transport_fleet").usedIn("transport_task").withRole("belongs_to");
5151
_for("transport_fleet").isTree("false");
52-
_for("transport_fleet").hasFields(";id;name;contact_number;last_update_time;version;");
52+
_for("transport_fleet").hasFields(";id;name;contact_number;contract;last_update_time;version;");
5353
_for("transport_fleet").targetType("transport_fleet");
5454
_for("transport_fleet").anchorColumn("owner");
5555
_for("retail_store_decoration").usedIn("retail_store").withRole("decoration");
@@ -257,7 +257,7 @@ public class RetailscmCandidatesUtil extends BaseCandidatesUtil{
257257
_for("warehouse").usedIn("smart_pallet").withRole("warehouse");
258258
_for("warehouse").usedIn("receiving_space").withRole("warehouse");
259259
_for("warehouse").isTree("false");
260-
_for("warehouse").hasFields(";id;location;contact_number;total_area;latitude;longitude;last_update_time;version;");
260+
_for("warehouse").hasFields(";id;location;contact_number;total_area;latitude;longitude;contract;last_update_time;version;");
261261
_for("warehouse").targetType("warehouse");
262262
_for("warehouse").anchorColumn("owner");
263263
_for("retail_store_order").referTo("retail_store_country_center").withRole("seller");
@@ -267,7 +267,7 @@ public class RetailscmCandidatesUtil extends BaseCandidatesUtil{
267267
_for("retail_store_order").usedIn("retail_store_order_shipping_group").withRole("biz_order");
268268
_for("retail_store_order").usedIn("goods").withRole("retail_store_order");
269269
_for("retail_store_order").isTree("false");
270-
_for("retail_store_order").hasFields(";id;title;total_amount;last_update_time;version;");
270+
_for("retail_store_order").hasFields(";id;title;total_amount;contract;last_update_time;version;");
271271
_for("retail_store_order").targetType("retail_store_order");
272272
_for("retail_store_order").anchorColumn("buyer");
273273
_for("goods_supplier").referTo("retail_store_country_center").withRole("belong_to");
@@ -463,7 +463,7 @@ public class RetailscmCandidatesUtil extends BaseCandidatesUtil{
463463
_for("supply_order").usedIn("supply_order_payment_group").withRole("biz_order");
464464
_for("supply_order").usedIn("goods").withRole("biz_order");
465465
_for("supply_order").isTree("false");
466-
_for("supply_order").hasFields(";id;title;total_amount;last_update_time;version;");
466+
_for("supply_order").hasFields(";id;title;contract;total_amount;last_update_time;version;");
467467
_for("supply_order").targetType("supply_order");
468468
_for("supply_order").anchorColumn("buyer");
469469
_for("public_key_type").referTo("user_domain").withRole("domain");

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/RetailscmChecker.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1967,6 +1967,14 @@ public RetailscmChecker checkTitleOfSupplyOrder(String title)
19671967
return this;
19681968
}
19691969

1970+
public static final String CONTRACT_OF_SUPPLY_ORDER ="supply_order.contract";
1971+
public RetailscmChecker checkContractOfSupplyOrder(String contract)
1972+
{
1973+
checkDocument(contract,0, 1024,CONTRACT_OF_SUPPLY_ORDER );
1974+
1975+
return this;
1976+
}
1977+
19701978
public static final String TOTAL_AMOUNT_OF_SUPPLY_ORDER ="supply_order.total_amount";
19711979
public RetailscmChecker checkTotalAmountOfSupplyOrder(BigDecimal totalAmount)
19721980
{
@@ -2167,6 +2175,14 @@ public RetailscmChecker checkTotalAmountOfRetailStoreOrder(BigDecimal totalAmoun
21672175
return this;
21682176
}
21692177

2178+
public static final String CONTRACT_OF_RETAIL_STORE_ORDER ="retail_store_order.contract";
2179+
public RetailscmChecker checkContractOfRetailStoreOrder(String contract)
2180+
{
2181+
checkDocument(contract,0, 1024,CONTRACT_OF_RETAIL_STORE_ORDER );
2182+
2183+
return this;
2184+
}
2185+
21702186
public static final String VERSION_OF_RETAIL_STORE_ORDER ="retail_store_order.version";
21712187
public RetailscmChecker checkVersionOfRetailStoreOrder(int version)
21722188
{
@@ -2375,6 +2391,14 @@ public RetailscmChecker checkLongitudeOfWarehouse(BigDecimal longitude)
23752391
return this;
23762392
}
23772393

2394+
public static final String CONTRACT_OF_WAREHOUSE ="warehouse.contract";
2395+
public RetailscmChecker checkContractOfWarehouse(String contract)
2396+
{
2397+
checkDocument(contract,0, 1024,CONTRACT_OF_WAREHOUSE );
2398+
2399+
return this;
2400+
}
2401+
23782402
public static final String VERSION_OF_WAREHOUSE ="warehouse.version";
23792403
public RetailscmChecker checkVersionOfWarehouse(int version)
23802404
{
@@ -3263,6 +3287,14 @@ public RetailscmChecker checkOwnerIdOfTransportFleet(String ownerId)
32633287
return this;
32643288
}
32653289

3290+
public static final String CONTRACT_OF_TRANSPORT_FLEET ="transport_fleet.contract";
3291+
public RetailscmChecker checkContractOfTransportFleet(String contract)
3292+
{
3293+
checkDocument(contract,0, 1024,CONTRACT_OF_TRANSPORT_FLEET );
3294+
3295+
return this;
3296+
}
3297+
32663298
public static final String VERSION_OF_TRANSPORT_FLEET ="transport_fleet.version";
32673299
public RetailscmChecker checkVersionOfTransportFleet(int version)
32683300
{

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/RetailscmObjectChecker.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ public RetailscmObjectChecker checkAndFixSupplyOrder(BaseEntity supplyOrderAsBas
865865
commonObjectPropertyCheck(supplyOrderAsBaseEntity,"buyer",this::checkBuyerOfSupplyOrder);
866866
commonObjectPropertyCheck(supplyOrderAsBaseEntity,"seller",this::checkSellerOfSupplyOrder);
867867
commonObjectPropertyCheck(supplyOrderAsBaseEntity,"title",this::checkTitleOfSupplyOrder);
868+
commonObjectPropertyCheck(supplyOrderAsBaseEntity,"contract",this::checkContractOfSupplyOrder);
868869
commonObjectPropertyCheck(supplyOrderAsBaseEntity,"totalAmount",this::checkTotalAmountOfSupplyOrder);
869870
commonObjectPropertyAssign(supplyOrderAsBaseEntity,"lastUpdateTime",this::assignLastUpdateTimeOfSupplyOrder);
870871
commonObjectPropertyCheck(supplyOrderAsBaseEntity,"version",this::checkVersionOfSupplyOrder);
@@ -935,6 +936,7 @@ public RetailscmObjectChecker checkAndFixRetailStoreOrder(BaseEntity retailStore
935936
commonObjectPropertyCheck(retailStoreOrderAsBaseEntity,"seller",this::checkSellerOfRetailStoreOrder);
936937
commonObjectPropertyCheck(retailStoreOrderAsBaseEntity,"title",this::checkTitleOfRetailStoreOrder);
937938
commonObjectPropertyCheck(retailStoreOrderAsBaseEntity,"totalAmount",this::checkTotalAmountOfRetailStoreOrder);
939+
commonObjectPropertyCheck(retailStoreOrderAsBaseEntity,"contract",this::checkContractOfRetailStoreOrder);
938940
commonObjectPropertyAssign(retailStoreOrderAsBaseEntity,"lastUpdateTime",this::assignLastUpdateTimeOfRetailStoreOrder);
939941
commonObjectPropertyCheck(retailStoreOrderAsBaseEntity,"version",this::checkVersionOfRetailStoreOrder);
940942
commonObjectPropertyCheck(retailStoreOrderAsBaseEntity,"retailStoreOrderLineItemList",this::checkRetailStoreOrderLineItemListOfRetailStoreOrder);
@@ -1006,6 +1008,7 @@ public RetailscmObjectChecker checkAndFixWarehouse(BaseEntity warehouseAsBaseEnt
10061008
commonObjectPropertyCheck(warehouseAsBaseEntity,"owner",this::checkOwnerOfWarehouse);
10071009
commonObjectPropertyCheck(warehouseAsBaseEntity,"latitude",this::checkLatitudeOfWarehouse);
10081010
commonObjectPropertyCheck(warehouseAsBaseEntity,"longitude",this::checkLongitudeOfWarehouse);
1011+
commonObjectPropertyCheck(warehouseAsBaseEntity,"contract",this::checkContractOfWarehouse);
10091012
commonObjectPropertyAssign(warehouseAsBaseEntity,"lastUpdateTime",this::assignLastUpdateTimeOfWarehouse);
10101013
commonObjectPropertyCheck(warehouseAsBaseEntity,"version",this::checkVersionOfWarehouse);
10111014
commonObjectPropertyCheck(warehouseAsBaseEntity,"storageSpaceList",this::checkStorageSpaceListOfWarehouse);
@@ -1284,6 +1287,7 @@ public RetailscmObjectChecker checkAndFixTransportFleet(BaseEntity transportFlee
12841287
commonObjectPropertyCheck(transportFleetAsBaseEntity,"name",this::checkNameOfTransportFleet);
12851288
commonObjectPropertyCheck(transportFleetAsBaseEntity,"contactNumber",this::checkContactNumberOfTransportFleet);
12861289
commonObjectPropertyCheck(transportFleetAsBaseEntity,"owner",this::checkOwnerOfTransportFleet);
1290+
commonObjectPropertyCheck(transportFleetAsBaseEntity,"contract",this::checkContractOfTransportFleet);
12871291
commonObjectPropertyAssign(transportFleetAsBaseEntity,"lastUpdateTime",this::assignLastUpdateTimeOfTransportFleet);
12881292
commonObjectPropertyCheck(transportFleetAsBaseEntity,"version",this::checkVersionOfTransportFleet);
12891293
commonObjectPropertyCheck(transportFleetAsBaseEntity,"transportTruckList",this::checkTransportTruckListOfTransportFleet);

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/RetailscmResources_en_US.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ supply_order.transfer_to_buyer=Transfer to Another Retail Store Country Center
683683
supply_order.seller=Seller
684684
supply_order.transfer_to_seller=Transfer to Another Goods Supplier
685685
supply_order.title=Title
686+
supply_order.contract=Contract
686687
supply_order.total_amount=Total Amount
687688
supply_order.last_update_time=Last Update Time
688689
supply_order.version=Version
@@ -738,6 +739,7 @@ retail_store_order.seller=Seller
738739
retail_store_order.transfer_to_seller=Transfer to Another Retail Store Country Center
739740
retail_store_order.title=Title
740741
retail_store_order.total_amount=Total Amount
742+
retail_store_order.contract=Contract
741743
retail_store_order.last_update_time=Last Update Time
742744
retail_store_order.version=Version
743745
retail_store_order.addRetailStoreOrderLineItem=Add Retail Store Order Line Item
@@ -793,6 +795,7 @@ warehouse.owner=Owner
793795
warehouse.transfer_to_owner=Transfer to Another Retail Store Country Center
794796
warehouse.latitude=Latitude
795797
warehouse.longitude=Longitude
798+
warehouse.contract=Contract
796799
warehouse.last_update_time=Last Update Time
797800
warehouse.version=Version
798801
warehouse.addStorageSpace=Add Storage Space
@@ -1037,6 +1040,7 @@ transport_fleet.name=Name
10371040
transport_fleet.contact_number=Contact Number
10381041
transport_fleet.owner=Owner
10391042
transport_fleet.transfer_to_owner=Transfer to Another Retail Store Country Center
1043+
transport_fleet.contract=Contract
10401044
transport_fleet.last_update_time=Last Update Time
10411045
transport_fleet.version=Version
10421046
transport_fleet.addTransportTruck=Add Transport Truck

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/RetailscmResources_zh_CN.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,8 @@ supply_order.buyer=\u4E70\u65B9
756756
supply_order.transfer_to_buyer=\u8F6C\u79FB\u5230\u4E70\u65B9
757757
supply_order.seller=\u5356\u65B9
758758
supply_order.transfer_to_seller=\u8F6C\u79FB\u5230\u5356\u65B9
759-
supply_order.title=\u5934\u8854
759+
supply_order.title=\u6807\u9898
760+
supply_order.contract=\u5408\u540C
760761
supply_order.total_amount=\u603B\u91D1\u989D
761762
supply_order.last_update_time=\u66F4\u65B0\u4E8E
762763
supply_order.version=\u7248\u672C
@@ -816,6 +817,7 @@ retail_store_order.seller=\u5356\u65B9
816817
retail_store_order.transfer_to_seller=\u8F6C\u79FB\u5230\u5356\u65B9
817818
retail_store_order.title=\u5934\u8854
818819
retail_store_order.total_amount=\u603B\u91D1\u989D
820+
retail_store_order.contract=\u5408\u540C
819821
retail_store_order.last_update_time=\u66F4\u65B0\u4E8E
820822
retail_store_order.version=\u7248\u672C
821823
retail_store_order.addRetailStoreOrderLineItem=\u65B0\u589E\u96F6\u552E\u95E8\u5E97\u8BA2\u5355\u884C\u9879\u76EE\u5217\u8868
@@ -875,6 +877,7 @@ warehouse.owner=\u4E1A\u4E3B
875877
warehouse.transfer_to_owner=\u8F6C\u5230\u8001\u677F
876878
warehouse.latitude=\u7EAC\u5EA6
877879
warehouse.longitude=\u7ECF\u5EA6
880+
warehouse.contract=\u5408\u540C
878881
warehouse.last_update_time=\u66F4\u65B0\u4E8E
879882
warehouse.version=\u7248\u672C
880883
warehouse.addStorageSpace=\u65B0\u589E\u5B58\u50A8\u7A7A\u95F4\u5217\u8868
@@ -1137,6 +1140,7 @@ transport_fleet.name=\u540D\u79F0
11371140
transport_fleet.contact_number=\u8054\u7CFB\u7535\u8BDD
11381141
transport_fleet.owner=\u4E1A\u4E3B
11391142
transport_fleet.transfer_to_owner=\u8F6C\u5230\u8001\u677F
1143+
transport_fleet.contract=\u5408\u540C
11401144
transport_fleet.last_update_time=\u66F4\u65B0\u4E8E
11411145
transport_fleet.version=\u7248\u672C
11421146
transport_fleet.addTransportTruck=\u65B0\u589E\u8FD0\u8F93\u5361\u8F66\u5217\u8868

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/damagespace/DamageSpaceManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,9 +1001,9 @@ public Object wxappview(RetailscmUserContext userContext, String damageSpaceId)
10011001
MapUtil.put("id", "7-warehouse")
10021002
.put("fieldName", "warehouse")
10031003
.put("label", "仓库")
1004-
.put("type", "auto")
1004+
.put("type", "document")
10051005
.put("linkToUrl", "warehouseManager/wxappview/:id/")
1006-
.put("displayMode", "{\"brief\":\"contact_number\",\"imageUrl\":\"\",\"name\":\"auto\",\"title\":\"location\",\"imageList\":\"\"}")
1006+
.put("displayMode", "{\"brief\":\"contact_number\",\"imageUrl\":\"\",\"name\":\"document\",\"title\":\"location\",\"imageList\":\"\"}")
10071007
.into_map()
10081008
);
10091009
result.put("warehouse", merchantObj.getWarehouse());

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/goods/GoodsManagerImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,9 +1889,9 @@ public Object wxappview(RetailscmUserContext userContext, String goodsId) throws
18891889
MapUtil.put("id", "14-bizOrder")
18901890
.put("fieldName", "bizOrder")
18911891
.put("label", "订单")
1892-
.put("type", "auto")
1892+
.put("type", "document")
18931893
.put("linkToUrl", "supplyOrderManager/wxappview/:id/")
1894-
.put("displayMode", "{\"brief\":\"total_amount\",\"imageUrl\":\"\",\"name\":\"auto\",\"title\":\"title\",\"imageList\":\"\"}")
1894+
.put("displayMode", "{\"brief\":\"total_amount\",\"imageUrl\":\"\",\"name\":\"document\",\"title\":\"title\",\"imageList\":\"\"}")
18951895
.into_map()
18961896
);
18971897
result.put("bizOrder", merchantObj.getBizOrder());
@@ -1900,9 +1900,9 @@ public Object wxappview(RetailscmUserContext userContext, String goodsId) throws
19001900
MapUtil.put("id", "15-retailStoreOrder")
19011901
.put("fieldName", "retailStoreOrder")
19021902
.put("label", "生超的订单")
1903-
.put("type", "auto")
1903+
.put("type", "document")
19041904
.put("linkToUrl", "retailStoreOrderManager/wxappview/:id/")
1905-
.put("displayMode", "{\"brief\":\"total_amount\",\"imageUrl\":\"\",\"name\":\"auto\",\"title\":\"title\",\"imageList\":\"\"}")
1905+
.put("displayMode", "{\"brief\":\"total_amount\",\"imageUrl\":\"\",\"name\":\"document\",\"title\":\"title\",\"imageList\":\"\"}")
19061906
.into_map()
19071907
);
19081908
result.put("retailStoreOrder", merchantObj.getRetailStoreOrder());

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/goodssupplier/GoodsSupplierGridViewGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected void throwExceptionIfListNotFount(String listName) {
2323
return new String[]{"id","product_name","product_description","product_unit","supplier","version"};
2424
}
2525
if(GoodsSupplier.SUPPLY_ORDER_LIST.equals(listName)){
26-
return new String[]{"id","buyer","seller","title","total_amount","last_update_time","version"};
26+
return new String[]{"id","buyer","seller","title","contract","total_amount","last_update_time","version"};
2727
}
2828
if(GoodsSupplier.ACCOUNT_SET_LIST.equals(listName)){
2929
return new String[]{"id","name","year_set","effective_date","accounting_system","domestic_currency_code","domestic_currency_name","opening_bank","account_number","country_center","retail_store","goods_supplier","last_update_time","version"};

bizcore/WEB-INF/retailscm_core_src/com/doublechaintech/retailscm/goodssupplier/GoodsSupplierManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public interface GoodsSupplierManager extends BaseManager{
4949
5050
*/
5151

52-
//public SupplyOrderManager getSupplyOrderManager(RetailscmUserContext userContext, String goodsSupplierId, String buyerId, String title, BigDecimal totalAmount ,String [] tokensExpr) throws Exception;
52+
//public SupplyOrderManager getSupplyOrderManager(RetailscmUserContext userContext, String goodsSupplierId, String buyerId, String title, String contract, BigDecimal totalAmount ,String [] tokensExpr) throws Exception;
5353

54-
public GoodsSupplier addSupplyOrder(RetailscmUserContext userContext, String goodsSupplierId, String buyerId, String title, BigDecimal totalAmount , String [] tokensExpr) throws Exception;
54+
public GoodsSupplier addSupplyOrder(RetailscmUserContext userContext, String goodsSupplierId, String buyerId, String title, String contract, BigDecimal totalAmount , String [] tokensExpr) throws Exception;
5555
public GoodsSupplier removeSupplyOrder(RetailscmUserContext userContext, String goodsSupplierId, String supplyOrderId, int supplyOrderVersion,String [] tokensExpr) throws Exception;
5656
public GoodsSupplier updateSupplyOrder(RetailscmUserContext userContext, String goodsSupplierId, String supplyOrderId, int supplyOrderVersion, String property, String newValueExpr,String [] tokensExpr) throws Exception;
5757

0 commit comments

Comments
 (0)