CN110619492A - Method for automatically generating excess and deficiency inventory during drug inventory - Google Patents

Method for automatically generating excess and deficiency inventory during drug inventory Download PDF

Info

Publication number
CN110619492A
CN110619492A CN201810619080.7A CN201810619080A CN110619492A CN 110619492 A CN110619492 A CN 110619492A CN 201810619080 A CN201810619080 A CN 201810619080A CN 110619492 A CN110619492 A CN 110619492A
Authority
CN
China
Prior art keywords
inventory
data
shortage
page
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201810619080.7A
Other languages
Chinese (zh)
Inventor
陈林
庞严冬
张来卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Original Assignee
Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd filed Critical Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Priority to CN201810619080.7A priority Critical patent/CN110619492A/en
Publication of CN110619492A publication Critical patent/CN110619492A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials

Landscapes

  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Quality & Reliability (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the field of pharmacy systems of SSM (simple sequence modeling) frameworks, in particular to a method for automatically generating a sufficient and insufficient inventory receipt during drug inventory. The method comprises the following steps: firstly, creating an inventory list, an inventory excess and inventory deficiency document list and a detail list; secondly, creating an inventory page and an inventory and shortage bill page; introducing checking medicine information into a checking page, filling abnormal quantity, automatically generating profit and loss amount and storing the profit and loss amount in a checking table; after the warehouse staff verify and confirm that the data are correct, reading the data from the inventory list; fifthly, traversing the obtained inventory data, judging whether the inventory data is larger than zero according to the profit and loss quantity, storing the inventory data into an inventory data set, and if the inventory data is smaller than zero, storing the inventory data set into an inventory shortage set; creating a method for generating documents and details, respectively transmitting the documents and the details into a sufficient and insufficient inventory data set, and adding the documents and the details into a database; and seventhly, displaying the data on a page of the inventory shortage and gain balance document. The invention solves the problems that the excess and shortage of the stock cannot be reflected when the pharmacy checks and no history document can be traced.

Description

Method for automatically generating excess and deficiency inventory during drug inventory
Technical Field
The invention relates to the field of pharmacy systems of SSM (simple sequence modeling) frameworks, in particular to a method for automatically generating a sufficient and insufficient inventory receipt during drug inventory.
Background
When the traditional pharmacy system is used for pharmacy checking, historical data in a checking table is cleared firstly, and then data are introduced from a total product inventory table, so that no historical checking data can be checked; in addition, if the product quantity in the stock table is changed due to abnormality and data statistics of inventory shortage and overage are not carried out, the problems of more medicines, more medicines which are lost, more medicines which are increased and more medicines which are lost in the inventory are not known; in order to solve the problems, a method for looking up the inventory historical data and generating the inventory shortage and gain data statistics is needed.
Disclosure of Invention
The invention solves the technical problem of providing a method for automatically generating a sufficient and insufficient inventory receipt during drug inventory; the problem of can't embody the situation of sufficient inventory shortage and no historical document traceable when the pharmacy inventories is solved.
The technical scheme for solving the technical problems is as follows:
firstly, creating an inventory list, an inventory excess and inventory deficiency document list and a detail list; secondly, creating an inventory page and an inventory and shortage bill page; introducing checking medicine information into a checking page, filling abnormal quantity, automatically generating profit and loss amount and storing the profit and loss amount in a checking table; after the warehouse staff verify and confirm that the data are correct, reading the data from the inventory list; fifthly, traversing the obtained inventory data, judging whether the inventory data is larger than zero according to the profit and loss quantity, storing the inventory data into an inventory data set, and if the inventory data is smaller than zero, storing the inventory data set into an inventory shortage set; creating a method for generating documents and details, respectively transmitting the documents and the details into a sufficient and insufficient inventory data set, and adding the documents and the details into a database; and seventhly, displaying the data on a page of the inventory shortage and gain balance document.
The method specifically comprises the following steps:
step one, establishing an inventory list, an inventory excess and inventory deficiency bill list and a detail list;
step two, establishing an inventory page and an inventory shortage and overage document page, wherein the inventory page only has one main form, and the form is provided with function button introduction, audit and the like; the page of the excess and shortage inventory receipt has a main form and a detail form, and when a main form row is clicked, corresponding detail information is loaded;
step three, introducing checking medicine information into a checking page, filling abnormal quantity, automatically generating profit and loss amount and storing the profit and loss amount in a checking table;
checking by warehouse personnel, and reading data from the inventory list after confirming that the data are correct;
step five, traversing the obtained inventory data, judging whether the inventory data is larger than zero according to the profit and loss quantity, storing the inventory data into an inventory data set, and if the inventory data is smaller than zero, storing the inventory data set into an inventory shortage set;
step six, creating a method for generating documents and details, respectively transmitting the documents and the details into a sufficient and insufficient inventory data set, and adding the documents and the details into a database;
and step seven, displaying the data on a page of the inventory shortage and balance excess document.
The invention has the beneficial effects that: the balance and loss bill information is generated according to the amount of the loss and the benefit during the checking, so that the purpose of counting the amount and the sum of the abnormal medicines during the checking is achieved. The problem that the condition of sufficient inventory and shortage of inventory can not be reflected and no history document can be traced when the pharmacy is inventoried is effectively solved.
Drawings
The invention is further described below with reference to the accompanying drawings:
FIG. 1 is a flow chart of the present invention.
Detailed Description
As shown in fig. 1, the present invention employs the following steps:
step one, establishing an inventory list, an inventory excess and inventory deficiency bill list and a detail list; such as:
// checking table
CREATE TABLE `stockCheck` (
`id` varchar(50) NOT NULL,
`checkDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`productId` varchar(50) DEFAULT NULL,
`productCode` varchar(20) DEFAULT NULL,
`productName` varchar(200) DEFAULT NULL,
`batchNo` varchar(30) DEFAULT NULL,
`checkCount` Integer DEFAULT 0,
……
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
I/disc filling and disc loss table, which is distinguished by field type, disc filling when type =0, and disc filling and disc loss when type =1
CREATE TABLE `stockProfitLoss` (
`id` varchar(50) NOT NULL,
`type` int(2) DEFAULT 0,
`profitLossNo` varchar(50) DEFAULT NULL,
`billDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`billMoney` decimal(18,2) DEFAULT NULL,
`auditState` int(11) DEFAULT NULL,
`auditUserId` varchar(30) DEFAULT NULL,
`auditUser` varchar(30) DEFAULT NULL,
……
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
// disc filling and disc depletion particulars
CREATE TABLE `stockProfitLossDetail` (
`id` varchar(50) NOT NULL,
`profitLossNo` varchar(50) DEFAULT NULL,
`productId` varchar(50) DEFAULT NULL,
`productCode` varchar(20) DEFAULT NULL,
`productName` varchar(200) DEFAULT NULL,
`genericName` varchar(200) DEFAULT NULL,
`price` decimal(18,2) DEFAULT NULL,
`amount` decimal(18,2) DEFAULT NULL,
……
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Step two, establishing an inventory page and an inventory shortage and overage document page, wherein the inventory page only has one main form, and the form is provided with function button introduction, audit and the like; the page of the excess and shortage inventory receipt has a main form and a detail form, and when a main form row is clicked, corresponding detail information is loaded;
step three, introducing checking medicine information into a checking page, filling abnormal quantity, automatically generating profit and loss amount and storing the profit and loss amount in a checking table; such as:
// introduction
$("#btnImport ").click(function () {
msgDialog.call(this, '${ctx}/stock/check/import.action','#table',{
title: 'introduction',
url:'${ctx}/views/stock/check/import.jsp',
width: 960,
buttons:[{
text, 'determining',
class: 'button bSuccess',
icon: 'icon-baocun',
handler: function (event) {
var data = $("#table").bootstrapTable("getData");
if (data.length == 0) {
msgAlert ("prompt", "currently No data!", "error");
return;
}
var filters = getFiltersByForm("#searchFormIntroduce");
var modal = event.data.modal;
$("#" + modal.id).iziModal('close');
createProgress(10)
$.ajax({
url: "${ctx}/stock/check/import.action",
type: "POST",
data:JSON.stringify(filters),
contentType:'application/json;charset=utf-8',
success: function (json) {
json = json || {};
clearProgress()
if (json.statusCode == 200) {
// close the bullet frame
$("#table").bootstrapTable('refresh');
} else if (json.msg) {
msgAlert ("error", json. msg, "error");
}
}
});
}
}]
});
});
checking by warehouse personnel, and reading data from the inventory list after confirming that the data are correct; such as:
// audit import data
@Override
@Transactional
public Integer audit(LocalUser localUser) {
Date now = DateUtil.getCurrDateTime();
List<Condition> whereList = new ArrayList<Condition>();
whereList.add(Condition.createEq("auditState", AuditStatus.UNAUDIT.getValue()));
whereList.add(Condition.createEq("storeId", localUser.getStoreId()));
Map<String, Object> map = new HashMap<String, Object>();
map.put("whereList", whereList);
// obtaining data
List<StockCheck> list = stockTakingDAO.listByParam(map);
}
Step five, traversing the obtained inventory data, judging whether the inventory data is larger than zero according to the profit and loss quantity, storing the inventory data into an inventory data set, and if the inventory data is smaller than zero, storing the inventory data set into an inventory shortage set; such as:
// generating different sets
for(StockCheck sc : list){
// adding inventory data if (stock taking. getProfitAtLossCount (). doubleValue () > 0) ready pocket
addStockings.add(stockTaking);
}
// Add discloser data
if(stockTaking.getProfitAndLossCount().doubleValue() < 0){
reduceStockings.add(stockTaking);
}
}
Step six, creating a method for generating documents and details, respectively transmitting the documents and the details into a sufficient and insufficient inventory data set, and adding the documents and the details into a database; such as:
method for creating and generating document
public void saveProfitLoss(LocalUser localUser, Date now, List<StockCheck> list, Integer type) {
StockProfitLoss profitLoss = new StockProfitLoss();
profitLoss.setId(StringUtil.getUUID());
profitLoss.setAuditState(1);
profitLoss.setCreateUserId(localUser.getUserId());
profitLoss.setCreateUserName(localUser.getUserName());
profitLoss.setCreateDate(now);
profitLoss.setModifyDate(now);
profitLoss.setBillDate(now);
profitLoss.setAuditUser(localUser.getUserName());
profitLoss.setBillMoney(BigDecimal.ZERO);
Setemark ("data from inventory");
profitLoss.setType (type);
for(StockCheck sc : list){
try {
StockProfitLossDetail detail = new StockProfitLossDetail();
BeanUtils.copyProperties(detail, stockTaking); detail.setId(StringUtil.getUUID());
detail.setPrice(stockTaking.getPrice());
detail.setAmount(stockTaking.getCount());
……
stockProfitLossDetailDAO.insert(detail);
} catch (Exception e) {
e.printStackTrace();
}
}
stockProfitLossDAO.insert(profitLoss);
}
// Add to database
if(addStockings != null && addStockings.size() > 0){
Generating inventory shortage and overage main document
saveProfitLoss(localUser, now, addStockings, 0);
}
// generating disc defect data
if(reduceStockings != null && reduceStockings.size() > 0){
saveProfitLoss(localUser, now, reduceStockings, 1);
}
And step seven, displaying the data on a page of the inventory shortage and balance excess document.

Claims (2)

1. The utility model provides a method for automatic generation is sufficient to check and is owed document when medicine is checked which characterized in that: firstly, creating an inventory list, an inventory excess and inventory deficiency document list and a detail list; secondly, creating an inventory page and an inventory and shortage bill page; introducing checking medicine information into a checking page, filling abnormal quantity, automatically generating profit and loss amount and storing the profit and loss amount in a checking table; after the warehouse staff verify and confirm that the data are correct, reading the data from the inventory list; fifthly, traversing the obtained inventory data, judging whether the inventory data is larger than zero according to the profit and loss quantity, storing the inventory data into an inventory data set, and if the inventory data is smaller than zero, storing the inventory data set into an inventory shortage set; creating a method for generating documents and details, respectively transmitting the documents and the details into a sufficient and insufficient inventory data set, and adding the documents and the details into a database; and seventhly, the data is displayed on the excess and shortage inventory receipt page, so that the problems that the excess and shortage inventory condition cannot be embodied and no history receipt can be traced when the pharmacy checks are solved.
2. The SSM framework-based method for automatically generating the inventory shortage and overage bill in drug inventory in the field of pharmacy system according to claim 1, wherein the method comprises the following steps: different data sets are respectively stored according to the relationship of the amount of the profit and the amount of the profit automatically generated during inventory, and then a universal method for storing inventory excess and shortage documents and details is realized for storing respectively; the method specifically comprises the following steps:
step one, establishing an inventory list, an inventory excess and inventory deficiency bill list and a detail list;
step two, establishing an inventory page and an inventory shortage and overage document page, wherein the inventory page only has one main form, and the form is provided with function button introduction, audit and the like; the page of the excess and shortage inventory receipt has a main form and a detail form, and when a main form row is clicked, corresponding detail information is loaded;
step three, introducing checking medicine information into a checking page, filling abnormal quantity, automatically generating profit and loss amount and storing the profit and loss amount in a checking table;
checking by warehouse personnel, and reading data from the inventory list after confirming that the data are correct;
step five, traversing the obtained inventory data, judging whether the inventory data is larger than zero according to the profit and loss quantity, storing the inventory data into an inventory data set, and if the inventory data is smaller than zero, storing the inventory data set into an inventory shortage set;
step six, creating a method for generating documents and details, respectively transmitting the documents and the details into a sufficient and insufficient inventory data set, and adding the documents and the details into a database;
and step seven, displaying the data on a page of the inventory shortage and balance excess document.
CN201810619080.7A 2018-06-19 2018-06-19 Method for automatically generating excess and deficiency inventory during drug inventory Withdrawn CN110619492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810619080.7A CN110619492A (en) 2018-06-19 2018-06-19 Method for automatically generating excess and deficiency inventory during drug inventory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810619080.7A CN110619492A (en) 2018-06-19 2018-06-19 Method for automatically generating excess and deficiency inventory during drug inventory

Publications (1)

Publication Number Publication Date
CN110619492A true CN110619492A (en) 2019-12-27

Family

ID=68919824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810619080.7A Withdrawn CN110619492A (en) 2018-06-19 2018-06-19 Method for automatically generating excess and deficiency inventory during drug inventory

Country Status (1)

Country Link
CN (1) CN110619492A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508475A (en) * 2020-11-20 2021-03-16 南京吉帝思信息科技有限公司 Inventory checking method and system for orthopedic medical instruments
CN113642966A (en) * 2021-08-19 2021-11-12 重庆允成互联网科技有限公司 Inventory method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508475A (en) * 2020-11-20 2021-03-16 南京吉帝思信息科技有限公司 Inventory checking method and system for orthopedic medical instruments
CN113642966A (en) * 2021-08-19 2021-11-12 重庆允成互联网科技有限公司 Inventory method

Similar Documents

Publication Publication Date Title
CN103914526B (en) A kind of interface method and device for SAP ERP systems and ORACLE ERP systems
US8560350B2 (en) Method, system and computer program product for generating an electronic bill having optimized insurance claim items
CN110619492A (en) Method for automatically generating excess and deficiency inventory during drug inventory
CA2558281A1 (en) Market management system
CN108520008A (en) The construction method and construction device of data warehouse model
CN104994219B (en) A kind of data processing method and system
CN111599453B (en) Intelligent pharmacy data processing method and device, computer equipment and storage medium
CN111784099B (en) Airplane guarantee equipment project delivery management system and method
CN109947805A (en) A kind of engineering project process management system and its management method
CN110111079B (en) Medicine manufacturing enterprise ordering system
CN115170090A (en) Project management method and device, electronic equipment and readable storage medium
CN104994220B (en) A kind of data processing method and system
CN113506614A (en) Dual-mode visual early clinical trial management method and system based on SaaS
CN113869706A (en) MES-based production performance index accounting method, system and terminal
CN110852545A (en) Unified service management method and platform
CN112801591A (en) Method, system, terminal and storage medium for managing low-value consumable
CN116485322A (en) Intelligent auditing system and method for enterprise financial resolution report data
US20170270111A1 (en) System migration using selective envelope management
CN114037245A (en) System for multidimensional quantitative analysis of block chain common chain project maturity
Akbar et al. Application of Web-Based Activity Management Using the RAD Method
CN114518989A (en) Abnormal data monitoring method and system
CN114297197A (en) Multi-cloud-based cost management method and system
Nabelsi et al. Detecting constraints in supply chain reengineering projects: case study of data and process integration in a hospital pharmacy
CN114118762A (en) Service monitoring and risk prediction closed-loop method based on power grid marketing management
CN110580145A (en) Method for realizing batch price adjustment of medicines and having available document to be checked by B/S architecture-based pharmacy system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191227