TW201935338A - Data deployment method and system using the same - Google Patents

Data deployment method and system using the same Download PDF

Info

Publication number
TW201935338A
TW201935338A TW107104554A TW107104554A TW201935338A TW 201935338 A TW201935338 A TW 201935338A TW 107104554 A TW107104554 A TW 107104554A TW 107104554 A TW107104554 A TW 107104554A TW 201935338 A TW201935338 A TW 201935338A
Authority
TW
Taiwan
Prior art keywords
resource
hash value
list
public
resource list
Prior art date
Application number
TW107104554A
Other languages
Chinese (zh)
Other versions
TWI693565B (en
Inventor
沈悅
孫國鑫
Original Assignee
鼎新電腦股份有限公司
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 鼎新電腦股份有限公司 filed Critical 鼎新電腦股份有限公司
Priority to TW107104554A priority Critical patent/TWI693565B/en
Publication of TW201935338A publication Critical patent/TW201935338A/en
Application granted granted Critical
Publication of TWI693565B publication Critical patent/TWI693565B/en

Links

Abstract

A data deployment method and system using the same are disclosed herein. The method includes the following operations: executing a service deployment program in a server; generating a data list corresponding to a function by the service deployment program; executing a client deployment program in a client; executing an operating program corresponding to the function in the client; comparing a first hash value corresponding to one of the files listed in the data list and a second hash value corresponding to one of the files in the client; if the first hash value is not match the second hash value, listing one of the files listed in the data corresponding to the first hash value list in a download list; and downloading the files to the client according to the download list.

Description

資料部署方法及資料部署系統 Data deployment method and data deployment system

本案是有關於一種資料部署方法及系統,且特別是有關於一種用於企業資源規劃領域的資料部署方法及系統。 This case relates to a data deployment method and system, and in particular to a data deployment method and system used in the field of enterprise resource planning.

企業資源規劃系統(Enterprise Resource Planning,ERP),簡稱ERP系統,是指建立在資訊技術的基礎上為企業決策層提供決策的管理平台。其主要是將企業的人流、物流、資訊流、資金流進行統一的管理,以最大限度的利用企業的資源。而ERP系統包含有生產控制、物流管理和財務管理等三大方面的功能,因此ERP系統規模非常的龐大。如果在客戶端安裝ERP系統時把系統中所有的功能全部安裝,將會導致不僅系統安裝耗時,而且也會使得用戶端硬碟的無效占用。因此,如何能針對客戶需要用到的功能進行安裝,不會使用到的功能則暫不安裝,以減少安裝時所需要的時間以及記憶體容量,為本領域待改進的問題之一。 Enterprise resource planning system (Enterprise Resource Planning, ERP), referred to as ERP system, refers to a management platform that provides decision-making for the enterprise decision-making layer based on information technology. Its main purpose is to uniformly manage the flow of people, logistics, information, and funds in order to maximize the use of corporate resources. The ERP system contains three major functions, such as production control, logistics management, and financial management. Therefore, the scale of the ERP system is very large. If all the functions in the system are installed when the ERP system is installed on the client, it will not only take time to install the system, but also cause the user's hard disk to be ineffectively occupied. Therefore, how to install the functions needed by customers, and not install the functions that are not used, to reduce the time required for installation and the memory capacity are one of the problems to be improved in this field.

本發明之主要目的係在提供一種資料部署方法及資料部署系統,其主要係改進以往ERP系統安裝時會進行完整安裝,造成安裝耗時以及耗費記憶體的問題,讓ERP系統在安裝時只需要安裝有需要的功能,達到降低安裝時間以及節省記憶體的功效。 The main purpose of the present invention is to provide a data deployment method and a data deployment system, which are mainly used to improve the previous installation of the ERP system, which will perform a complete installation, resulting in time-consuming and memory-consuming installation problems. Install the required functions to reduce installation time and save memory.

為達成上述目的,本案之第一態樣是在提供一種資料部署方法,此方法包含以下步驟:在伺服器端執行服務部署程序;由服務部署程序產生與功能對應的資源清單;在用戶端執行客戶部署程序;在用戶端執行與功能相對應的作業程序;利用資源清單所列出的文件的其中之一對應的第一雜湊值與用戶端的文件的其中之一對應的第二雜湊值進行比較;如果第一雜湊值與第二雜湊值不一致,則將第一雜湊值對應的資源清單所列出的文件的其中之一列入下載清單中;以及根據下載清單從伺服器端下載文件至用戶端。 In order to achieve the above purpose, the first aspect of the present case is to provide a data deployment method, which includes the following steps: executing a service deployment process on a server side; generating a resource list corresponding to a function by the service deployment process; Client deployment procedure; execution of the operation procedure corresponding to the function on the client side; comparing the first hash value corresponding to one of the files listed in the resource list with the second hash value corresponding to one of the files on the client side ; If the first hash value is inconsistent with the second hash value, one of the files listed in the resource list corresponding to the first hash value is included in the download list; and the file is downloaded from the server to the user according to the download list end.

本案之第二態樣是在提供一種資料部署系統,其包含:伺服器以及用戶端。伺服器用以執行服務部署程序,服務部署程序用以產生與功能對應的資源清單。用戶端透過網路與伺服器連接,用以執行客戶部署程序以及與功能相對應的作業程序。其中,利用資源清單所列出的文件對應的第一雜湊值與用戶端的文件對應的第二雜湊值進行比較,如果第一雜湊值與第二雜湊值不一致,則將第一雜湊值對應的資源清單所列出的文件的其中之一列入下載清單中;根據下載清單從伺服器下載文件至用戶端。 The second aspect of the case is to provide a data deployment system, which includes: a server and a client. The server is used to execute the service deployment process, and the service deployment process is used to generate a resource list corresponding to the function. The client is connected to the server through the network to perform the client deployment process and the operation process corresponding to the function. Wherein, the first hash value corresponding to the file listed in the resource list is compared with the second hash value corresponding to the file on the client side, and if the first hash value is inconsistent with the second hash value, the resource corresponding to the first hash value is compared. One of the files listed in the list is included in the download list; the file is downloaded from the server to the client according to the download list.

本發明之資料部署方法及資料部署系統主要係改進以往ERP系統安裝時會進行完整安裝,造成安裝耗時以及耗費記憶體的問題,讓ERP系統在安裝時只需要安裝有需要的功能,達到降低安裝時間以及節省記憶體的功效。 The data deployment method and data deployment system of the present invention mainly improve the previous ERP system to perform a complete installation, resulting in problems of time-consuming and memory-consuming installation, so that the ERP system only needs to install the required functions during the installation to achieve a reduction Installation time and memory savings.

100‧‧‧資料部署系統 100‧‧‧Data Deployment System

110‧‧‧伺服器 110‧‧‧Server

120‧‧‧用戶端 120‧‧‧Client

121‧‧‧用戶介面 121‧‧‧ User Interface

200、300‧‧‧資料部署方法 Data deployment methods for 200, 300‧‧‧

S210~S270、S221~S224、S231~S235、S310~S380‧‧‧步驟 S210 ~ S270, S221 ~ S224, S231 ~ S235, S310 ~ S380‧‧‧Steps

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖係根據本案之一些實施例所繪示之一種資料部署系統的示意圖;第2圖係根據本案之一些實施例所繪示之一種資料部署方法的流程圖;第3圖係根據本案之一些實施例所繪示之步驟S220的流程圖;第4圖係根據本案之一些實施例所繪示之步驟S230的流程圖;以及第5圖係根據本案之一些實施例所繪示之一種資料部署方法的流程圖。 In order to make the above and other objects, features, advantages, and embodiments of the present invention more comprehensible, the description of the drawings is as follows: FIG. 1 is a schematic diagram of a data deployment system according to some embodiments of the present invention. Figure 2 is a flowchart of a method for deploying data according to some embodiments of the present case; Figure 3 is a flowchart of step S220 according to some embodiments of the present case; and Figure 4 is a flowchart according to this case. The flowchart of step S230 shown in some embodiments; and FIG. 5 is a flowchart of a data deployment method according to some embodiments of the present invention.

以下揭示提供許多不同實施例或例證用以實施本發明的不同特徵。特殊例證中的元件及配置在以下討論中被用來簡化本揭示。所討論的任何例證只用來作解說的用途,並不會以任何方式限制本發明或其例證之範圍和意義。 此外,本揭示在不同例證中可能重複引用數字符號且/或字母,這些重複皆為了簡化及闡述,其本身並未指定以下討論中不同實施例且/或配置之間的關係。 The following disclosure provides many different embodiments or illustrations to implement different features of the invention. The elements and configurations in the particular example are used in the following discussion to simplify the present disclosure. Any illustrations discussed are for illustrative purposes only and do not in any way limit the scope and meaning of the invention or its illustrations. In addition, the present disclosure may repeatedly refer to numerical symbols and / or letters in different examples, and these repetitions are for simplification and explanation, and do not themselves specify the relationship between different embodiments and / or configurations in the following discussion.

在全篇說明書與申請專利範圍所使用之用詞(terms),除有特別註明外,通常具有每個用詞使用在此領域中、在此揭露之內容中與特殊內容中的平常意義。某些用以描述本揭露之用詞將於下或在此說明書的別處討論,以提供本領域技術人員在有關本揭露之描述上額外的引導。 The terms used throughout the specification and the scope of patent applications, unless otherwise specified, usually have the ordinary meaning of each term used in this field, in the content disclosed here, and in special content. Certain terms used to describe this disclosure are discussed below or elsewhere in this specification to provide additional guidance to those skilled in the art on the description of this disclosure.

關於本文中所使用之『耦接』或『連接』,均可指二或多個元件相互直接作實體或電性接觸,或是相互間接作實體或電性接觸,而『耦接』或『連接』還可指二或多個元件相互操作或動作。 As used herein, "coupling" or "connection" can mean that two or more components make direct physical or electrical contact with each other, or indirectly make physical or electrical contact with each other, and "coupling" or " "Connected" may also mean that two or more elements operate or act on each other.

在本文中,使用第一、第二與第三等等之詞彙,是用於描述各種元件、組件、區域、層與/或區塊是可以被理解的。但是這些元件、組件、區域、層與/或區塊不應該被這些術語所限制。這些詞彙只限於用來辨別單一元件、組件、區域、層與/或區塊。因此,在下文中的一第一元件、組件、區域、層與/或區塊也可被稱為第二元件、組件、區域、層與/或區塊,而不脫離本發明的本意。如本文所用,詞彙『與/或』包含了列出的關聯項目中的一個或多個的任何組合。本案文件中提到的「及/或」是指表列元件的任一者、全部或至少一者的任意組合。 In this article, the terms first, second, third, etc. are used to describe various elements, components, regions, layers, and / or blocks that are understandable. However, these elements, components, regions, layers and / or blocks should not be limited by these terms. These terms are limited to identifying single elements, components, regions, layers, and / or blocks. Therefore, a first element, component, region, layer, and / or block in the following may also be referred to as a second element, component, region, layer, and / or block without departing from the intention of the present invention. As used herein, the term "and / or" includes any combination of one or more of the associated listed items. The "and / or" mentioned in this document refers to any, all or any combination of at least one of the listed elements.

請參閱第1圖。第1圖係根據本案之一些實施例所繪示之一種資料部署系統100的示意圖。如第1圖所繪 示,資料部署系統100包含伺服器110、用戶端120、用戶介面121。伺服器110用以執行服務部署程序,服務部署程序用以產生功能對應的資源清單。用戶端120透過網路與伺服器110連接,建立用以執行客戶部署程序以及與功能相對應的作業程序。用戶介面121用以提供顯示畫面給使用者,以便使用者使用資料部署系統100。其中,利用資源清單所列出的文件對應的第一雜湊值與用戶端120的文件對應的第二雜湊值進行比較,如果第一雜湊值與第二雜湊值不一致,則將第一雜湊值對應的資源清單所列出的文件的其中之一列入下載清單中;根據下載清單從伺服器110下載至少一文件至用戶端120。 See Figure 1. FIG. 1 is a schematic diagram of a data deployment system 100 according to some embodiments of the present invention. As shown in Figure 1 As shown, the data deployment system 100 includes a server 110, a client 120, and a user interface 121. The server 110 is configured to execute a service deployment process, and the service deployment process is used to generate a resource list corresponding to a function. The client 120 is connected to the server 110 through a network to establish a client deployment process and an operation process corresponding to a function. The user interface 121 is used to provide a display screen to a user so that the user can use the data deployment system 100. The first hash value corresponding to the file listed in the resource list is compared with the second hash value corresponding to the file of the client 120. If the first hash value is inconsistent with the second hash value, the first hash value is corresponding. One of the files listed in the resource list is included in the download list; at least one file is downloaded from the server 110 to the client 120 according to the download list.

請一併參閱第1圖及第2圖。第2圖係根據本案之一些實施例所繪示之一種資料部署方法200的流程圖。如第2圖所示,資料部署方法200包含以下步驟:步驟S210:在伺服器110執行服務部署程序;步驟S220:服務部署程序用以產生功能對應的資源清單;步驟S230:在用戶端120執行客戶部署程序;步驟S240:在用戶端120執行與功能相對應的作業程序;步驟S250:判斷資源清單所列出的文件的其中之一對應的第一雜湊值與用戶端120的文件的其中之一對應的第二雜湊值是否相同;步驟S260:如果第一雜湊值與第二雜湊值不一 致,則將第一雜湊值對應的資源清單所列出的文件的其中之一列入下載清單中;以及步驟S270:根據下載清單從伺服器110下載文件至用戶端120。 Please refer to Figure 1 and Figure 2 together. FIG. 2 is a flowchart of a data deployment method 200 according to some embodiments of the present invention. As shown in FIG. 2, the data deployment method 200 includes the following steps: step S210: execute a service deployment procedure on the server 110; step S220: the service deployment procedure is used to generate a resource list corresponding to the function; step S230: execute on the client 120 Client deployment procedure; step S240: execute the operation procedure corresponding to the function on the client 120; step S250: determine the first hash value corresponding to one of the files listed in the resource list and the file of the client 120 Whether a corresponding second hash value is the same; step S260: if the first hash value is different from the second hash value If yes, one of the files listed in the resource list corresponding to the first hash value is included in the download list; and step S270: download the file from the server 110 to the client 120 according to the download list.

為使本案第一實施例之資料部署方法200易於理解,下方都以執行ERP系統中A功能的更新為範例,請一併參閱第1圖~第4圖。 In order to make the data deployment method 200 of the first embodiment of this case easy to understand, the following uses the execution of the A function update in the ERP system as an example. Please refer to FIGS. 1 to 4 together.

於步驟S210中及步驟S220中,在伺服器110執行服務部署程序,服務部署程序用以產生與功能對應的資源清單。請參閱第3圖,第3圖係根據本案之一些實施例所繪示之步驟S220的流程圖。如第3圖所示,步驟S220包含以下步驟:步驟S221:判斷資源分析外掛程式集合是否完成遍歷;步驟S222:如果尚未完成遍歷,繼續判斷資源分析外掛程式的其中之一是否產生對應的資源清單;步驟S223:如果尚未產生資源清單,則執行資源分析外掛程式的其中之一並產生對應的資源清單;以及步驟S224:服務部署程序就緒。 In step S210 and step S220, a service deployment procedure is executed on the server 110, and the service deployment procedure is used to generate a resource list corresponding to the function. Please refer to FIG. 3, which is a flowchart of step S220 according to some embodiments of the present invention. As shown in FIG. 3, step S220 includes the following steps: step S221: judging whether the resource analysis plug-in set has been traversed; step S222: if the traversal has not been completed, continue to determine whether one of the resource analysis plug-ins has generated a corresponding resource list Step S223: if a resource list has not been generated, execute one of the resource analysis plug-ins and generate a corresponding resource list; and step S224: the service deployment procedure is ready.

於步驟S221及步驟S222中,判斷資源分析外掛程式集合是否完成遍歷,以及判斷資源分析外掛程式的其中之一是否產生對應的資源清單。舉例而言,資源分析外掛程式集合中包含有多個資源分析外掛程式。服務部署程序會分別執行每個資源分析外掛程式,如果有尚未執行過的資源 分析外掛程式,會接著判斷是否有產生資源清單。如果沒有產生資源清單,會接著執行步驟S223。 In steps S221 and S222, it is determined whether the resource analysis plug-in set has been traversed, and whether one of the resource analysis plug-ins has generated a corresponding resource list. For example, the resource analysis plugin collection contains multiple resource analysis plugins. The service deployment process will execute each resource analysis plug-in separately, if there are resources that have not been executed Analysis of the plug-in will then determine whether a resource list has been generated. If no resource list is generated, step S223 is performed.

於步驟S223中,執行資源分析外掛程式的其中之一並產生對應的資源清單。資源清單中包含有與A功能相關的文件以及文件的資訊,文件的資訊可以包含有文件名稱、文件存放的相對或絕對路徑以及文件的雜湊值(Hash value)。資源分析外掛程式的資源清單產生後會接著執行步驟S221的判斷,如果所有的資源分析外掛程式都遍歷完畢,會執行步驟S224:服務部署程序就緒。 In step S223, one of the resource analysis plug-ins is executed and a corresponding resource list is generated. The resource list contains documents related to the A function and document information. The document information may include the document name, the relative or absolute path where the document is stored, and the hash value of the document. After the resource list of the resource analysis plug-in is generated, the judgment of step S221 is performed. If all the resource analysis plug-ins have been traversed, step S224 is performed: the service deployment procedure is ready.

在上述的資源分析外掛程式的執行中,由於ERP系統已經按照功能的形式存放配置文件,因此資源分析外掛程式可以利用目錄查詢與A功能相關的配置文件,再通過配置文件找到與其相關的DLL(Dynamic Link Library)文件,以此來產生資源清單。當然資源分析外掛程式集合中可以包含與A功能對應的資源清單、與B功能對應的資源清單、C功能對應的資源清單等多個功能的資源清單。 In the execution of the above-mentioned resource analysis plug-in, since the ERP system has stored configuration files in the form of functions, the resource analysis plug-in can use the directory to query the configuration files related to the A function, and then find the DLLs related to them through the configuration files ( Dynamic Link Library) file to generate a resource list. Of course, the resource analysis plug-in set may include a resource list corresponding to multiple functions such as a resource list corresponding to the A function, a resource list corresponding to the B function, and a resource list corresponding to the C function.

當伺服器110的服務部署程序就緒之後,用戶端120準備開始執行ERP系統的部署。於步驟S230中,在用戶端120執行客戶部署程序。請參閱第4圖,第4圖係根據本案之一些實施例所繪示之步驟S230的流程圖。如第4圖所示,步驟S230包含以下步驟:步驟S231:從用戶120端的一用戶資源清單中獲取公共資源清單;步驟S232:查詢公共資源清單所列出的公共文 件;步驟S233:判斷資源清單所列出的公共文件的其中之一對應的第三雜湊值與公共資源清單所列出的公共文件的其中之一對應的第四雜湊值是否相同;步驟S234:如果不相同,將第三雜湊值對應資源清單所列出的公共文件的其中之一列入公共文件下載清單中;以及步驟S235:根據公共文件下載清單從伺服器110下載公共文件。 After the service deployment procedure of the server 110 is ready, the client 120 is ready to start the deployment of the ERP system. In step S230, a client deployment procedure is executed on the client 120. Please refer to FIG. 4, which is a flowchart of step S230 according to some embodiments of the present invention. As shown in FIG. 4, step S230 includes the following steps: step S231: obtaining a public resource list from a user resource list at the user 120; step S232: querying the public documents listed in the public resource list Step S233: Determine whether the third hash value corresponding to one of the public files listed in the resource list and the fourth hash value corresponding to one of the public files listed in the public resource list are the same; step S234: If they are not the same, one of the public files listed in the resource list corresponding to the third hash value is included in the public file download list; and step S235: download the public file from the server 110 according to the public file download list.

於步驟S231以及步驟S232中,從用戶120端的用戶資源清單中獲取公共資源清單,以及查詢公共資源清單所列出的公共文件。在第一次啟動ERP系統的部署時,用戶端120會從伺服器端110下載資源清單,並儲存在用戶端120的記憶體中成為用戶資源清單,在執行接下來的步驟時不會再重複的至伺服器110下載資源清單。在一實施例中,公共資源清單包含有多個公共文件以及公共文件的資訊,公共文件的資訊可以包含有公共文件名稱、公共文件存放的相對或絕對路徑以及公共文件的雜湊值(Hash value)。公共文件可以是ERP系統的用戶登錄程式或其他用戶必須使用到的程式。在查詢公共資源清單時,會從用戶端120的用戶資源清單中查找。 In steps S231 and S232, the public resource list is obtained from the user resource list of the user 120, and the public files listed in the public resource list are queried. When the deployment of the ERP system is started for the first time, the client 120 downloads the resource list from the server 110 and stores it in the memory of the client 120 to become the user resource list. It will not be repeated when the next steps are performed. To the server 110 to download the resource list. In one embodiment, the public resource list includes multiple public files and information of the public files. The public file information may include the public file name, the relative or absolute path of the public file storage, and the hash value of the public file. . The public file can be a user registration program of the ERP system or a program that other users must use. When querying the public resource list, the user resource list of the user terminal 120 is searched.

於步驟S233中,會判斷資源清單所列出的公共文件的其中之一對應的第三雜湊值與公共資源清單所列出的公共文件的其中之一對應的第四雜湊值是否相同。每個文 件都會對應有一個雜湊值,隨著文件內容的更新改動,對應的雜湊值也會做相應的更動,本案的雜湊值計算是採用MD5訊息摘要演算法(MD5 Message-Digest Algorithm)。 In step S233, it is determined whether the third hash value corresponding to one of the public files listed in the resource list and the fourth hash value corresponding to one of the public files listed in the public resource list are the same. Each text Each file will have a hash value. As the file content is updated and changed, the corresponding hash value will be changed accordingly. The hash value calculation in this case uses the MD5 Message-Digest Algorithm.

接續前述,如果在步驟S233中判斷為“否”,意思即為第三雜湊值與第四雜湊值不一致,會接著執行步驟S234,將第三雜湊值對應資源清單所列出的公共文件的其中之一列入公共文件下載清單中。如果在步驟S233中判斷為“是”,則再重複執行步驟S233,繼續進行公共資源清單中的其他文件對應的雜湊值與用戶端120的公共文件對應的雜湊值的比較。藉由來自伺服器110的資源清單中的公共文件的第三雜湊值與用戶端120的公共資源清單所列出的公共文件的第四雜湊值相互比較,如果不相同的話,表示用戶端120的公共文件並未與伺服器110的公共資源清單中的文件擁有相同的內容,因此需要進行更新。本領域的技術人員都知道,第三雜湊值與第四雜湊值相互比較前,需先確定兩者的文件名稱必須相同,只是版本內容有可能不相同(伺服器110的版本較新),因此用戶端120才需進行更新;如果兩個文件名稱不相同,代表的是不同的文件,其各自對應的雜湊值當然不相同,但這種情況並不會列入本案的公共文件下載清單中。 Continuing the foregoing, if it is judged as “No” in step S233, which means that the third hash value is inconsistent with the fourth hash value, step S234 is then executed to correspond the third hash value to the public file listed in the resource list. One is on the public file download list. If it is determined as YES in step S233, step S233 is repeatedly performed to continue comparing the hash value corresponding to other files in the public resource list with the hash value corresponding to the public file of the client 120. The third hash value of the public file in the resource list from the server 110 and the fourth hash value of the public file listed in the public resource list of the client 120 are compared with each other. If they are not the same, it indicates that the The public document does not have the same content as the document in the public resource list of the server 110, and therefore needs to be updated. Those skilled in the art know that before comparing the third hash value and the fourth hash value with each other, it is necessary to determine that the file names of the two must be the same, but the version content may be different (the version of the server 110 is newer), so The client 120 only needs to be updated; if the two file names are different, they represent different files, and their respective hash values are of course different, but this case will not be included in the public file download list in this case.

於步驟S235中,經過步驟S233及步驟S234的操作之後,已經將需要更新的公共文件列入公共文件下載清單中,用戶端120再根據公共文件下載清單從伺服器110下 載公共文件。 In step S235, after the operations in steps S233 and S234, the public files to be updated have been listed in the public file download list, and the client 120 downloads the files from the server 110 according to the public file download list. Contains public documents.

當用戶端120的客戶部署程序就緒後,開始對用戶端120的功能進行更新。於步驟S240及步驟S250中,在用戶端120執行與功能相對應的作業程序,接著判斷資源清單所列出的文件的其中之一對應的第一雜湊值與用戶端120的用戶資源清單所列出的文件的其中之一對應的第二雜湊值是否相同。舉例而言,從伺服器110獲取資源清單包含功能A所需的多個文件,將資源清單中的文件的第一雜湊值與用戶端120的文件的第二雜湊值相互比較。本領域的技術人員都知道,第一雜湊值與第二雜湊值相互比較前,需先確定兩者的文件名稱必須相同,只是版本內容有可能不相同(伺服器110的版本較新),兩者皆是功能A的某一文件,因此用戶端120才需進行更新。而在執行作業程序時,會直接從伺服器110下載資源清單至用戶端120,在執行接下來的步驟時不會再重複的至伺服器110下載資源清單。 After the client deployment program of the client 120 is ready, the functions of the client 120 are updated. In steps S240 and S250, the client 120 executes an operation program corresponding to the function, and then determines that the first hash value corresponding to one of the files listed in the resource list is listed with the user resource list of the client 120. Whether the second hash value corresponding to one of the output files is the same. For example, the resource list includes multiple files required by the function A from the server 110, and the first hash value of the files in the resource list and the second hash value of the files of the client 120 are compared with each other. Those skilled in the art know that before comparing the first hash value and the second hash value with each other, it is necessary to first determine that the file names of the two must be the same, but the version content may be different (the version of the server 110 is newer). Each of them is a certain file of function A, so the client 120 needs to be updated. When the operation procedure is executed, the resource list is downloaded directly from the server 110 to the client 120, and the resource list is not repeatedly downloaded to the server 110 when the next steps are performed.

接續前述,如果在步驟S250中判斷為“否”,意思即為第一雜湊值與第二雜湊值不一致,會接著執行步驟S260,將第一雜湊值對應的資源清單所列出的文件的其中之一列入下載清單中。如果在步驟S250中判斷為“是”,則再重複執行步驟S250,繼續進行資源清單中的其他文件對應的雜湊值與用戶端120的文件對應的雜湊值的比較。接續上方實施例,如果第一雜湊值與第二雜湊值兩者相同則不需要進行更新,如果兩者不同,則需要將第一雜湊值對應的文件列入下載清單中。 Continuing from the foregoing, if it is judged as “No” in step S250, which means that the first hash value is inconsistent with the second hash value, step S260 is then executed to include one of the files listed in the resource list corresponding to the first hash value. One is on the download list. If it is determined as YES in step S250, step S250 is repeatedly executed to continue comparing the hash values corresponding to other files in the resource list with the hash values corresponding to the files of the client 120. Continuing the above embodiment, if the first hash value and the second hash value are the same, no update is required. If they are different, the file corresponding to the first hash value needs to be included in the download list.

於步驟S270中:根據下載清單從伺服器110下載文件至用戶端120。接續上方實施例,下載清單中已列出功能A需要更新的文件,因此用戶端120僅須根據下載清單下載文件,即可更新功能A。 In step S270: download the file from the server 110 to the client 120 according to the download list. Continuing the above embodiment, the file to be updated for function A is listed in the download list, so the client 120 only needs to download the file according to the download list to update function A.

請再參閱第5圖。第5圖係根據本案之一些實施例所繪示之一種資料部署方法300的流程圖。如第5圖所示,資料部署方法300包含以下步驟:步驟S310:在伺服器110執行服務部署程序;步驟S320:服務部署程序用以產生功能對應的資源清單;步驟S330:在用戶端120執行客戶部署程序;步驟S340:判斷是否是第一次開啟該作業程序;步驟S350:判斷資源清單所列出的文件的其中之一對應的第一雜湊值與用戶端120的文件的其中之一對應的第二雜湊值是否相同;步驟S360:將第一雜湊值對應的該資源清單所列出的文件的其中之一列入下載清單中;步驟S370:根據下載清單從伺服器110下載文件至用戶端120;以及步驟S380:顯示功能畫面。 Please refer to Figure 5 again. FIG. 5 is a flowchart of a data deployment method 300 according to some embodiments of the present invention. As shown in FIG. 5, the data deployment method 300 includes the following steps: step S310: executing a service deployment procedure on the server 110; step S320: the service deployment procedure is used to generate a resource list corresponding to the function; step S330: executing on the client 120 Client deployment procedure; Step S340: determine whether it is the first time to open the operation procedure; Step S350: determine that the first hash value corresponding to one of the files listed in the resource list corresponds to one of the files of the client 120 Whether the second hash value is the same; step S360: one of the files listed in the resource list corresponding to the first hash value is included in the download list; step S370: download the file from the server 110 to the user according to the download list Terminal 120; and step S380: displaying a function screen.

步驟S310~步驟S330的操作都與步驟S210~S230相同,因此在此不再贅述。於步驟S340中,會先判斷是否是第一次開啟作業程序。舉例而言,步驟S340會先判 斷是否是第一次開啟ERP系統中的功能A,如果是第一次開起才會執行接下來的步驟,如果不是第一次開啟則會直接進執行步驟S380,由用戶介面121顯示功能A的畫面。 The operations in steps S310 to S330 are the same as those in steps S210 to S230, so they are not repeated here. In step S340, it is first determined whether the operation procedure is started for the first time. For example, step S340 will first determine Whether it is the first time to turn on function A in the ERP system. If it is the first time to start, the next step will be performed. If it is not the first time, it will directly go to step S380, and the user interface 121 displays function A. The picture.

接續前述,如果在步驟S340中判斷為“是”,意思即為用戶第一次開啟作業程序,會接著執行步驟S350的判斷,步驟S350~步驟S370的操作都與步驟S250~S270相同,因此在此不再贅述。在步驟S370執行後會接著執行步驟S380,由用戶介面121顯示ERP系統中的功能A的畫面。 Continuing from the foregoing, if the determination is "YES" in step S340, which means that the user opens the job program for the first time, the determination of step S350 will be executed next. The operations of steps S350 to S370 are the same as steps S250 to S270. This will not be repeated here. After step S370 is performed, step S380 is then performed, and the user interface 121 displays a screen of the function A in the ERP system.

在前述的實施例中都以功能A例,意思即為以功能粒度的模式進行操作,在另一實施例中,也可以使用作業模式為更新粒度,但不影響本發明,本發明可適用在任何粒度下進行文件資料的部署。 In the foregoing embodiments, the function A is used as an example, which means that the operation is performed in a functional granularity mode. In another embodiment, the operating mode can also be used to update the granularity, but it does not affect the present invention. The present invention is applicable to Deploy documents at any granularity.

由上述本案之實施方式可知,主要係改進以往ERP系統安裝時會進行完整安裝,造成安裝耗時以及耗費記憶體的問題,利用在用戶安裝之前先行判斷是否有更新的部分,並由伺服器端先列出更新過的程式的表單,讓使用ERP系統的用戶在更新時,只需要根據伺服器列出的表單進行比對更新即可,達到降低安裝時間以及節省記憶體的功效。 According to the implementation of the above-mentioned case, it is mainly to improve the previous installation of the ERP system, which will perform a complete installation, causing installation time-consuming and memory-consuming problems. Use the user to determine whether there is an updated part before installation, and the server side List the updated program form first, so that when using the ERP system, users only need to compare and update according to the form listed on the server, which can reduce the installation time and save memory.

另外,上述例示包含依序的示範步驟,但該些步驟不必依所顯示的順序被執行。以不同順序執行該些步驟皆在本揭示內容的考量範圍內。在本揭示內容之實施例的精神與範圍內,可視情況增加、取代、變更順序及/或省略該些步驟。 In addition, the above-mentioned illustration includes sequential exemplary steps, but the steps need not be performed in the order shown. It is within the scope of this disclosure to perform these steps in different orders. Within the spirit and scope of the embodiments of the present disclosure, these steps may be added, replaced, changed, and / or omitted as appropriate.

雖然本案已以實施方式揭示如上,然其並非用 以限定本案,任何熟習此技藝者,在不脫離本案之精神和範圍內,當可作各種之更動與潤飾,因此本案之保護範圍當視後附之申請專利範圍所界定者為準。 Although this case has been disclosed as above by way of implementation, it is not In order to limit the case, anyone skilled in the art can make various modifications and retouching without departing from the spirit and scope of the case. Therefore, the scope of protection in this case shall be defined by the scope of the attached patent application.

Claims (10)

一種資料部署方法,包含:在一伺服器端執行一服務部署程序;由該服務部署程序產生與一功能對應的一資源清單;在一用戶端執行一客戶部署程序;在該用戶端執行與該功能相對應的一作業程序;利用該資源清單所列出的文件的其中之一對應的一第一雜湊值與該用戶端的文件的其中之一對應的一第二雜湊值進行比較;如果該第一雜湊值與該第二雜湊值不一致,則將該第一雜湊值對應的該資源清單所列出的文件的其中之一列入一下載清單中;以及根據該下載清單從該伺服器端下載至少一文件至該用戶端。 A data deployment method includes: executing a service deployment process on a server side; generating a resource list corresponding to a function by the service deployment process; executing a client deployment process on a client side; A working program corresponding to the function; comparing a first hash value corresponding to one of the files listed in the resource list with a second hash value corresponding to one of the files on the client side; if the first If a hash value is inconsistent with the second hash value, one of the files listed in the resource list corresponding to the first hash value is included in a download list; and downloaded from the server according to the download list At least one file to the client. 如請求項1所述的資料部署方法,其中該服務部署程序,更包含:判斷一資源分析外掛程式集合是否完成遍歷,其中,該資源分析外掛程式集合包含複數個資源分析外掛程式;如果尚未完成遍歷,判斷該些資源分析外掛程式的其中之一是否產生對應的資源清單,如果尚未產生對應的資源清單,則執行該些資源分析外掛程式的其中之一並產生對應的資源清單,並繼續判斷該資源分析外掛程式集合是否完成遍歷;以及 如果已經產生對應的資源清單,則重新判斷該資源分析外掛程式集合是否完成遍歷。 The data deployment method according to claim 1, wherein the service deployment process further comprises: determining whether a resource analysis plug-in set has been traversed, wherein the resource analysis plug-in set includes a plurality of resource analysis plug-ins; if not yet completed Traverse to determine whether one of the resource analysis plug-ins has generated a corresponding resource list. If a corresponding resource list has not been generated, execute one of the resource analysis plug-ins and generate a corresponding resource list, and continue to determine This resource analyzes whether the collection of plugins has been traversed; and If a corresponding resource list has been generated, it is re-judged whether the resource analysis plug-in collection has been traversed. 如請求項2所述的資料部署方法,其中該些資源分析外掛程式的其中之一是根據該伺服器端中與該功能對應的文件生成對應的資源清單。 The data deployment method according to claim 2, wherein one of the resource analysis plug-ins is to generate a corresponding resource list according to a file corresponding to the function on the server side. 如請求項1所述的資料部署方法,其中該客戶部署程序,更包含:從該用戶端的一用戶資源清單中獲取一公共資源清單;查詢該公共資源清單所列出的公共文件,並利用該資源清單所列出的公共文件的其中之一對應的一第三雜湊值與該公共資源清單所列出的公共文件的其中之一對應的一第四雜湊值進行比較;如果該第三雜湊值與該第四雜湊值不一致,則將該第三雜湊值對應該資源清單所列出的公共文件的其中之一列入一公共文件下載清單中;以及根據該公共文件下載清單從該伺服器端下載至少一公共文件。 The data deployment method according to claim 1, wherein the client deployment procedure further comprises: obtaining a public resource list from a user resource list of the client; querying the public files listed in the public resource list, and using the A third hash value corresponding to one of the public files listed in the resource list is compared with a fourth hash value corresponding to one of the public files listed in the public resource list; if the third hash value If it is inconsistent with the fourth hash value, then the third hash value corresponds to one of the public files listed in the resource list and is included in a public file download list; and from the server side according to the public file download list Download at least one public file. 如請求項1所述的資料部署方法,其中該作業程序,更包含:判斷是否是第一次開啟該作業程序;如果判斷為是,則開始執行該作業程序;以及 如果判斷為否,則不執行該作業程序,直接顯示該功能畫面。 The method for deploying data according to claim 1, wherein the operation procedure further comprises: determining whether it is the first time to open the operation procedure; if it is determined to be yes, starting to execute the operation procedure; and If the judgment is no, the function program is directly executed without executing the operation program. 一種資料部署系統,包含:一伺服器,用以執行一服務部署程序,該服務部署程序用以產生與一功能對應的一資源清單;以及一用戶端,透過網路與該伺服器連接,用以執行一客戶部署程序以及與該功能相對應的一作業程序;其中,利用該資源清單所列出的文件對應的一第一雜湊值與該用戶端的文件對應的一第二雜湊值進行比較,如果該第一雜湊值與該第二雜湊值不一致,則將該第一雜湊值對應的該資源清單所列出的文件的其中之一列入一下載清單中;根據該下載清單從該伺服器下載至少一文件至該用戶端。 A data deployment system includes: a server for executing a service deployment procedure, the service deployment procedure for generating a resource list corresponding to a function; and a client, connected to the server through a network, and using To execute a client deployment procedure and an operation procedure corresponding to the function; wherein a first hash value corresponding to the file listed in the resource list is compared with a second hash value corresponding to the file of the client, If the first hash value is inconsistent with the second hash value, one of the files listed in the resource list corresponding to the first hash value is included in a download list; from the server according to the download list Download at least one file to the client. 如請求項6所述的資料部署系統,其中該服務部署程序,更包含:判斷一資源分析外掛程式集合是否完成遍歷,其中,該資源分析外掛程式集合包含複數個資源分析外掛程式;如果尚未完成遍歷,判斷該些資源分析外掛程式的其中之一是否產生對應的資源清單,如果尚未產生對應的資源清單,則執行該些資源分析外掛程式的其中之一並產生對應的資源清單,並繼續判斷該資源分析外掛程式集合是否完成遍歷;以及 如果已經產生對應的資源清單,則重新判斷該資源分析外掛程式集合是否完成遍歷。 The data deployment system according to claim 6, wherein the service deployment process further comprises: determining whether a resource analysis plug-in set has been traversed, wherein the resource analysis plug-in set includes a plurality of resource analysis plug-ins; if not yet completed Traverse to determine whether one of the resource analysis plug-ins has generated a corresponding resource list. If a corresponding resource list has not been generated, execute one of the resource analysis plug-ins and generate a corresponding resource list, and continue to determine This resource analyzes whether the collection of plugins has been traversed; and If a corresponding resource list has been generated, it is re-judged whether the resource analysis plug-in collection has been traversed. 如請求項7所述的資料部署系統,其中該些資源分析外掛程式的其中之一是根據該伺服器端中該功能對應的文件生成對應的資源清單。 The data deployment system according to claim 7, wherein one of the resource analysis plug-ins is to generate a corresponding resource list according to a file corresponding to the function in the server. 如請求項6所述的資料部署系統,其中該客戶部署程序,更包含:從該用戶端的一用戶資源清單中獲取一公共資源清單;查詢該公共資源清單所列出的公共文件並利用該資源清單所列出的公共文件的其中之一對應的一第三雜湊值與該該公共資源清單所列出的公共文件的其中之一對應的一第四雜湊值進行比較;如果該第三雜湊值與該第四雜湊值不一致,則將該第三雜湊值對應該資源清單所列出的公共文件的其中之一列入一公共文件下載清單;以及根據該公共文件下載清單從該伺服器端下載至少一共共文件。 The data deployment system according to claim 6, wherein the client deployment procedure further comprises: obtaining a public resource list from a user resource list of the client; querying the public files listed in the public resource list and using the resource A third hash value corresponding to one of the public files listed in the list is compared with a fourth hash value corresponding to one of the public files listed in the public resource list; if the third hash value Inconsistent with the fourth hash value, the third hash value corresponding to one of the public files listed in the resource list is included in a public file download list; and downloaded from the server according to the public file download list At least a total of documents. 如請求項6所述的資料部署系統,其中該作業程序,更包含:判斷是否是第一次開啟該作業程序;如果判斷為是,則開始執行該作業程序;以及如果判斷為否,則不執行該作業程序,直接顯示該功能畫面。 The data deployment system according to claim 6, wherein the operation procedure further includes: determining whether the operation procedure is opened for the first time; if the determination is yes, starting the operation procedure; and if the determination is no, not Execute the operation program to display the function screen directly.
TW107104554A 2018-02-08 2018-02-08 Data deployment method and system using the same TWI693565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107104554A TWI693565B (en) 2018-02-08 2018-02-08 Data deployment method and system using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107104554A TWI693565B (en) 2018-02-08 2018-02-08 Data deployment method and system using the same

Publications (2)

Publication Number Publication Date
TW201935338A true TW201935338A (en) 2019-09-01
TWI693565B TWI693565B (en) 2020-05-11

Family

ID=68618499

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107104554A TWI693565B (en) 2018-02-08 2018-02-08 Data deployment method and system using the same

Country Status (1)

Country Link
TW (1) TWI693565B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002943A1 (en) * 2002-06-28 2004-01-01 Merrill John Wickens Lamb Systems and methods for application delivery and configuration management of mobile devices
US9049268B2 (en) * 2006-05-05 2015-06-02 Microsoft Technology Licensing, Llc Global provisioning of millions of users with deployment units
US8245223B2 (en) * 2008-12-23 2012-08-14 Microsoft Corporation Networked deployment of multi-application customizations
US9015710B2 (en) * 2011-04-12 2015-04-21 Pivotal Software, Inc. Deployment system for multi-node applications
US10218696B2 (en) * 2016-06-30 2019-02-26 Microsoft Technology Licensing, Llc Targeted secure software deployment

Also Published As

Publication number Publication date
TWI693565B (en) 2020-05-11

Similar Documents

Publication Publication Date Title
US8543543B2 (en) Hash-based file comparison
US9811394B1 (en) Application programming interface recipe cloning
US8494996B2 (en) Creation and revision of network object graph topology for a network performance management system
US10474977B2 (en) Cognitive learning workflow execution
CN105723363B (en) Method for maintaining and upgrading tenant database in ERP system and server thereof
CN109076107B (en) Providing automatic detection and optimization of user experience upgrades based on detection customization
US10984360B2 (en) Cognitive learning workflow execution
CN104391725A (en) Page display method and page display device
US10705829B2 (en) Software discovery using exclusion
WO2019100635A1 (en) Editing method and apparatus for automated test script, terminal device and storage medium
CN107391507B (en) Updating method and device for mobile terminal page
US20190235846A1 (en) Continuous delivery pipeline segment models
US11531528B2 (en) Systems and methods for non-disruptive continuous software delivery
AU2019371545B9 (en) Management system, acquisition device and management method
US9928751B2 (en) Generic media covers
TWI693565B (en) Data deployment method and system using the same
CN116048609A (en) Configuration file updating method, device, computer equipment and storage medium
CN113535225B (en) Environment configuration file processing method, device, equipment and medium of application software
CN103220336B (en) The implementation method of vector clock and system in a kind of file synchronization
US9135725B2 (en) Generic media covers
JP7318704B2 (en) Test equipment, test method and program
US10936550B2 (en) Synchronizing different representations of content
JP6045707B2 (en) License management apparatus, license management method, and program
JP6802109B2 (en) Software specification analyzer and software specification analysis method
CN111930718B (en) Node adjustment method and device for configuration management database