冻结备注

main
userName 2024-12-18 17:15:17 +08:00
parent 85162aa45b
commit d694e3c161
9 changed files with 56 additions and 26 deletions

View File

@ -76,8 +76,17 @@ public class Inventory extends VersionalEntity {
/** 处理数量 */
private double handleQuantity;
private String moveStatus;//移动工作站
/** 备注 */
private String description;
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getMoveStatus() {
return moveStatus;

View File

@ -57,8 +57,15 @@ public class InventoryView extends Entity{
private String lts_name;//库位属性
private String strExtend3;//标准价
private String strExtend2;//币种
private String invDes;//冻结备注
public String getInvDes() {
return invDes;
}
public void setInvDes(String invDes) {
this.invDes = invDes;
}
public Double getWeight() {
return weight;
}

View File

@ -67,7 +67,8 @@
<property name="counPlan" column="coun_Plan" type="string" />
<property name="beAdjust" column="beAdjust" type="boolean" />
<property name="handleQuantity" type="double" column="handleQuantity" />
<property name="moveStatus" column="moveStatus" type="string" />
<property name="moveStatus" column="moveStatus" type="string" length="50"/>
<property name="description" column="description" type="string" length="200"/>
</class>
<query name="getAllInventoryByWarehouseCompany">

View File

@ -53,5 +53,6 @@
<property name="lts_name" column="lts_name" type="string" length="50" />
<property name="strExtend2" column="STR_EXTEND2" type="string" length="50" />
<property name="strExtend3" column="STR_EXTEND3" type="string" length="50" />
<property name="invDes" column="invDes" type="string" length="50" />
</class>
</hibernate-mapping>

View File

@ -392,7 +392,7 @@ public interface InventoryManager extends BaseManager{
//冻结库存
@Transactional
void frozenInv(List<Long> ids);
void frozenInv(List<Long> ids,String des);
//解冻库存
@Transactional

View File

@ -3124,12 +3124,13 @@ public class DefaultInventoryManager extends DefaultBaseManager implements Inven
}
}
@Override
public void frozenInv(List<Long> ids) {
public void frozenInv(List<Long> ids,String des) {
for(long id:ids){
List<Inventory> inventories = selectInventory1(id);
for (Inventory inv : inventories) {
// inv.setStatuss(inv.getStatus());
inv.setStatus("冻结");
inv.setDescription(des);
commonDao.store(inv);
addInventoryLog(InventoryLogType.FROZEN, 1, "", inv.getLocation(), null, inv.getItemKey(),
inv.getStorageDate(), inv.getSOI(), inv.getQuantity(), null, inv.getStatus(), inv.getId(), "冻结", null,0,inv.getBarCode(),null,null);
@ -3145,9 +3146,10 @@ public class DefaultInventoryManager extends DefaultBaseManager implements Inven
for (Inventory inv : inventories) {
inv.setStatus("已入库");
// inv.setStatuss("");
inv.setDescription(null);
commonDao.store(inv);
addInventoryLog(InventoryLogType.FROZEN, 1, "", inv.getLocation(), null, inv.getItemKey(),
inv.getStorageDate(), inv.getSOI(), inv.getQuantity(), null, inv.getStatus(), inv.getId(), "移位", null,0,inv.getBarCode(),null,null);
inv.getStorageDate(), inv.getSOI(), inv.getQuantity(), null, inv.getStatus(), inv.getId(), "解冻", null,0,inv.getBarCode(),null,null);
}
}
}

View File

@ -386,4 +386,9 @@ GO
----------20241211
ALTER TABLE RECEIVED_RECORD add sap_Status varchar(20) COLLATE Chinese_PRC_CI_AS NULL;
GO
---------20241218
ALTER TABLE INVENTORY add description varchar(200) COLLATE Chinese_PRC_CI_AS NULL;
GO

View File

@ -6,19 +6,19 @@
height="130">
<inputUIs>
<hidden id="inventory.id" reserve="false" />
<text id="inventory.status" title="qualityCode" row="3" col="1"
readOnly="false" required="false" reserve="false" forceOverride="false"
<text id="inventory.description" title="备注" row="3" col="1"
readOnly="false" required="true" reserve="false" forceOverride="false"
inVisible="false" trimSpace="false" />
</inputUIs>
<buttons>
<commit id="save" title="save" enableType="single" invisible="false">
<mappings>
<mapping id="parentIds" className="list" />
<mapping id="inventory.status" className="string" />
<mapping id="inventory.description" className="string" />
</mappings>
<actions>
<action managerName="inventoryManager" methodName="editInventoryStatus"
parameter="parentIds,inventory.status" />
<action managerName="inventoryManager" methodName="frozenInv"
parameter="parentIds,inventory.description" />
</actions>
<forwards>
<forward name="refreshWindow" newEnabled="true"

View File

@ -119,6 +119,7 @@
inventory.singleItem,
inventory.validity,
inventory.storageDate,
inventory.invDes,
inventory.propC7,
inventory.lock
FROM InventoryView inventory
@ -173,25 +174,29 @@
<column id="inventory.validity" title="是否有效期管理" visible="true"
horizonAlign="center" format="booleanFormat"/>
<column id="inventory.storageDate" title="存货日期" visible="true" horizonAlign="center" format="dateFormatter"/>
<column id="inventory.invDes" title="冻结备注" visible="true" horizonAlign="center" />
<column id="inventory.propC7" title="归属人" visible="true" horizonAlign="center" />
<column id="inventory.lock" title="盘点锁定" visible="true" horizonAlign="center" format="booleanFormat"/>
</columns>
<buttons>
<commit id="frozenInv" title="冻结库存"
enableType="multi" invisible="false" confirmMessage="确认是否冻结库存?">
<enableExpression><![CDATA[(${inventory.status}=='已入库'&&${inventory.queuedQuantity}<=0)]]></enableExpression>
<mappings>
<mapping id="ids" className="list" />
</mappings>
<actions>
<action managerName="inventoryManager" methodName="frozenInv"
parameter="ids" />
</actions>
<forwards>
<forward name="refreshWindow" newEnabled="true"
editEnabled="true" />
</forwards>
</commit>
<popup id="editInventoryStatus" title="冻结库存" enableType="single" invisible="false" containId="true" pageId="editInventoryStatus">
<enableExpression><![CDATA[(${inventory.status}=='已入库'&&${inventory.queuedQuantity}<=0)]]></enableExpression>
</popup>
<!-- <commit id="frozenInv" title="冻结库存" -->
<!-- enableType="multi" invisible="false" confirmMessage="确认是否冻结库存?"> -->
<!-- <enableExpression><![CDATA[(${inventory.status}=='已入库'&&${inventory.queuedQuantity}<=0)]]></enableExpression> -->
<!-- <mappings> -->
<!-- <mapping id="ids" className="list" /> -->
<!-- </mappings> -->
<!-- <actions> -->
<!-- <action managerName="inventoryManager" methodName="frozenInv" -->
<!-- parameter="ids" /> -->
<!-- </actions> -->
<!-- <forwards> -->
<!-- <forward name="refreshWindow" newEnabled="true" -->
<!-- editEnabled="true" /> -->
<!-- </forwards> -->
<!-- </commit> -->
<commit id="frozenInvs" title="解冻库存"
enableType="multi" invisible="false" confirmMessage="确认是否冻结库存?">
<enableExpression><![CDATA[(${inventory.status}=='冻结')]]></enableExpression>