201224801 六、發明說明: 【發明所屬之技術領域】 本發明係有關於傳輸系統’更詳而言之,係有關於一種應用於雲 端運算之網路資料傳輸環境的資料傳輸系統及方法,將資料與傳送邏 輯予以切割、分開,按不同之公司代碼及/或P〇S代碼,來完成伺服 端與使用端之間的資料訊息(message)交換。 【先前技術】 分散架構,例如,三層式(3-tier)分散架構,為目前最被普 遍使用的網路應用程式架構,以三層式分散架構而言,主要是由三個 層級所構成,分別是:使用者介面層(Presenta1:i〇n Layer)、運算 邏輯層(Business Logic Layer)、及永續層(persistence Layer)。 在分散架構中,於使用端電腦安裝具備圖形化操作介面(GUI)的 程式’而此些程式可透過特定格式的表單,供使用者輸人適當的資 訊,以便與飼服器進行互動;在網路應用架構中,使用者介面層為,例 如IE’lj覽器,而其功此為接收使用者所輸入之資料,以及將從飼 服器而來之結果予以展現出來。 運算邏輯層是用來作為使用端與資料庫之間的橋標,負貴資料處 理、網站词服器(web server)等運算法則的工作,負責運算邏輯的 處理知式於彳狐H電腦上執行,運算邏輯層之功能為接受來自用戶端 201224801 的請求,並且決定何種資訊可以被傳送至用戶端。 在永續層(資料服務層)中,包含了儲存大量資料的資料庫,以及 帛錄理轉這些資料的軟體。永續層(資料服務層)貞責提供資料 給運算邏輯層,再傳送至使用者介面層,所以用戶端無法直接存取 資料庫的内容,必須透過運算邏輯層的連接,因而提高了系統的安全 性。 • 目前之伺服端與使用端之間的資料訊息交換,於資料傳輸結構設 計時’必須考量實體資料及/或記錄及/或新記錄、表單(table)結構 之公司代碼(c〇m_n〇)與p〇s代碼(p0s_n0)的組合,而根據此種結構設 计產生出資料傳輸規則,換言之,於習知之資料傳輸結構設計,為將 i料及/或記錄及/或新記錄、表單(table)結構之公司代碼' p〇s代 碼與傳輸邏輯綁在一起。 φ 所以’如果能將資料與傳送邏輯予以切割、分開,無須考慮為 胤資料型式之新記錄(new record)所具有之内容為何,而是使用傳 輸規則中之邏輯做為傳送邏輯依據,按不同之公司代碼及/或P0S代 碼’來元成雲端與銷售端P0S之間的資料訊息(message)交換,換言 之’無須將資料及/或記錄及/或新記錄、表單(table)結構之公司代 碼、P0S代碼與傳輸邏輯綁在一起,乃是待解決的問題。 201224801 【發明内容】 本發明之主要目的便是在於提供-種龍傳輸1狀方法,係應 用於雲端運算之網路資料傳輸環境’本發明之資料傳輸系統及方法, 將資料與傳送邏輯予以切割、分開。 本發明之又-目的便是在於提供-種資料傳輸系統及方法,係應 用於網路資料傳輸環境,無須考慮為XML資料型式之新記錄(new record)所具有之内容為何’而是使㈣輸規則巾之邏輯做為傳送邏 輯依據,按不同之公司代碼及/或P0S代碼,來完成雲端與銷售端p〇s 之間的資料訊息(message)交換。 本發明之再-目的歧在於提供—㈣料傳齡制^法,係應 用於網路資料傳輸環境,雲端與銷售端p〇s之間的資料訊息(隱卿) 父換;雲端接收銷售端p〇S資料,例如,接收銷售資料,並送到雲端 中之主機資料庫ρ供雲端作資料分析;協助齡端之間作資料交 換’派送資料,例如’單據、主檔交換等銷售端p〇s商業活動;雲端 與銷售端P〇S之間的協同商務活動,例如,銷售端P0S向供應商下採 購、主檔下載等B2B活動。 根據以上所述之目的,本發明提供一種資料傳輸系統,該資料傳 輸系統包含銷售端P〇Sm務次系統、以及雲端服務次系統,在此,本 發明之資料傳輸系統架構可以使用任何付費或者是免費的開源資料 201224801 傳輸伺服器。 位於銷售端P0S之銷售端p〇s服務次系統,該銷售端p〇s服務次 系統包含資料定義語言DDL服務模組、以及資料訊息服務(message service)模組。 資料定義語言DDL服務模組,該資料定義語言DDL服務模組負責 處理銷售端P0S資料庫資料的存取與處理,並且與資料訊息服務 (message service)模組進行溝通,轉化資料物件(Entity Bean)與 XML〇 該資料定義語言亂服務模組會將所需傳出的資料,搬運到銷售 端P0S之資料庫(例如,MS-SQL,Oracele ’ MySQL),以讓資料訊息服 務模組能自資料庫中將所需傳出的資料予以傳輸,及/或,該資料訊 息服務模組將所接收到之資料,傳送至該資料定義語言DDL服務模組 以進行過遽無須傳送之資料。 資料訊息服務模組’銷售端p〇S與雲端之間的資料傳輸為由該資 料訊息服務模組來負責,而所有傳輸、接收的資料放在銷售端p〇s之 資料庫’例如,MS-SQL,Oracel,MySQL。 相對於資料訊息指派MDP(Message Dispatching Process)模細 MDP,資料訊息服務模組為在銷售端P0S的程式,負責與資料傳輪伺 服器溝通,取得下載資料與上傳資料到資料傳輸伺服器。 201224801 資料定義語言DDL服務模組含有永續層(資料服務層)中的一個實 體(entity)物件,該資料定義語言胍服務模組至少具有邏輯層面 (logical level)之傳輸規則、以及資料層面(data Ievel)之新記錄 (new record),其中,傳輸規則包含公司代碼(com_no)、p〇s代碼 (loc_no)以做為傳送邏輯依據,新記錄為資料無論裡面是主播、單據 或其它,在此,由於將資料與傳送邏輯予以切割、分開,無須考慮為 XML資料型式之新記錄(new reconj)所具有之内容為何,而是使用傳 輸規則中之公司代碼(com_no)、P〇s代碼(1〇c一n〇)做為傳送邏輯依 據,按不同之公司代碼及/或P0S代碼,來完成雲端與銷售端p〇s之 間的資料訊息(message)交換,其中,新記錄為狐資料,裡面就是 資料定義語言DDL服務模組所用的實體資料(或記錄)。 於雲端之雲端服務次系統’該雲端服務次系統至少包含資料傳輸 伺服器、雲端運算ccP(Cl〇ud computing Process)程式模組、以及 資料訊息指派 MDP(Message Dispatching Process)模組。 資料傳輸伺服器,銷售端p〇S直接(不透過門市小後台主機)經由 身料訊息服務(message service)模組連接該資料傳輸伺服器以上傳 與接收資料,該資料傳輸伺服器透過訊息佇列(Message Queue)與網 頁服務(Web Service)任何可即時傳輸模式。銷售端p〇s與雲端之資 料流的邏輯是透過邏輯中心(p〇licy Center)控制。 201224801 雲端運算CCP(Cloud computing Process)程式模組,該雲端運 算CCP(Cloud computing Process)程式模組主要負貴接收並解析X亂 資料’透過XML資料與商業邏輯比對後,確定資料流的流向(要到哪 一個銷售端P0S)。 資料訊息指派MDP(Message Dispatching Process)模組,該資料 訊息指派MDP(Message Dispatching Process)模組負貴與資料傳輸 祠服器溝通’接收雲端運算CCP(Cloud computing Process)程式模 組的指派命令,把要指定派送的資料送到資料傳輸伺服器以進行傳 送。 利用本發明之資料傳輸系統以進行資料傳輸方法時,銷售端 服務次系統之資料定義語言DDL服務模組,將資料與傳送邏輯予以切 割、分開’無須考慮為胤資料型式之新記錄(newrec〇rd)所具有之 内谷為何而疋使用傳輸規貝j中之公司代碼(c〇m—n〇)、p〇S代碼 (loc—no)做為舰邏輯絲,按不同之公3代碼及/或pQS代碼,來 凡成P0S端與雲端之間㈣料訊息(message)交換丨從銷售端⑽傳回 需分析的資料皆可予以儲存至雲端之資料庫,例如,0racle database ’並可供其它系統使用。 利用本發明之資料傳輸系統以進行資料傳輸方法時: 於銷售端P0S發送動作流程:首先,銷售端資料產生異動後,透 201224801 過資料定義語言DDL服務模組產生狐資料,而資料訊息服務 (message service)模組把χ]^資料丟到資料傳輸伺服器;接著,於資 料到雲端之後,雲端運算CCP(cl〇ud c〇fflputing Pr〇cess)程式模組 從資料傳翻服器取得XML資料分析並且運算,結果會儲存到雲端的 負料庫。透過雲4運算CCP(Cl〇ud computing Process)程式模組邏 輯處理,假設結果資料需要回傳該銷售端p〇s或傳到其他的銷售端 pos ’會把該結果轉成胤交給資料訊息指派MDp(Mess鄉 Dispatching Process)模組指派放入資料傳輸伺服器,以經由該資料 傳輸伺服器而回傳該銷售端P0S或傳到其他的銷售端p〇s。 於雲端之網頁舰||(web server)動作流程:賴者操㈣統過後, 造成資料異動,透過雲端運算(XP(aGud _puting prceess)程式 模組運算,資料訊息指派M])P(Message Dispatching Pr〇cess)模組 派送將需要傳送給銷售端p〇S的資料先傳送至資料傳輸伺服器,再 經由資料傳輸伺服器而傳送至銷售端p〇s。 於銷售端P0S之銷售端P0S服務次系統接收流程:資料訊息服務 (message service)模組從資料伺服器取得下傳下來的狐,透過資 料定義語言DDL服務模組把資料從狐轉成資料物件(Entity .以進行資料處理。 本發明之資料傳輸系統架構可以使用任何付費或者是免費的開 201224801 源資料傳輸伺服器,不限定使用一台資料傳輸伺服器,而銷售端p〇s 指定由哪一台資料傳輸伺服器服務,由邏輯中心設定。 於實際施行時,可選擇,例如,該資料傳輸伺服器是一個開放碼 之符合J2EE規範的應用容器(container),作為J2EE規範的補充, 引入了 Α0Ρ框架’為普通java類提供了 J2EE服務,資料傳輸祠服器 如同郵件伺服器(mail server)—樣,有訊息佇列用以存放訊息佇 列’每一個使用端(Node)均有對應之訊息佇列。 例如,以一個循環為例來說明,使用端(Node)把資料送到資料傳 輸伺服器之訊息佇列,資料傳輸伺服器會將資料收到其資料庫予以暫 存’存暫資料經由雲端運算CCP(Cloud computing Process)程式模 組處理後可能產生需再派送的資料’亦將之儲存於雲端之資料庫,例 如 ’ MySQL。雲端運鼻 CCP(Cloud computing Process)程式模組,該 雲端運算CCP(Cloud computing Process)程式模組從雲端之資料庫, 例如,MySQL ’讀取最新收到的暫存資料並作判斷,若需再派送則會 產生新的傳輸資料,每一判斷過的資料會予以標記。透過雲端運算 CCP(Cloud computing Process)程式模組邏輯處理,假設結果資料需 要回傳該鎖售端P0S或傳到其他的銷售端P0S,會把該結果轉成xml 交給資料訊息指派MDP(Message Dispatching Process)模組指派放 入資料傳輸祠服Is之息^丁列,最後’使用端(Node)各自從資料傳輸 201224801 伺服器之訊息佇列取回資料。 爲使熟悉該項技藝人士瞭解本發明之目的、特徵及功 效,茲藉由下述具體實施例,並配合所附之圖式,對本發明 詳加說明如後: 【實施方式】 第1圖為一系統示意圖,用以顯示說明本發明之資料傳輸系統之 系統架構、以及運作情形。如第1圖中所示之資料傳輪系統1,該資 料傳輸系統1包含銷售端P0S服務次系統2、以及雲端服務次系統3。 位於一個以上之銷售端P0S4之銷售端P〇S服務次系統2,該銷 售端P0S服務次系統2包含負料疋義DDL服務模組21、以及資 料訊息服務(message service)模組22。 資料定義語言DDL服務模組21,該資料定義語言DDL服務模組 21負責處理銷售端P0S4之資料庫41資料的存取與處理,並且與資 料訊息服務(message service)模組22進行溝通,轉化資料物件 (Entity Bean)與 XML。 該=貝料定義s吾言DDL服務模組21會將所需傳出的資料,搬運到 銷售端P0S4之資料庫41(例如’ MS-SQL,〇raceie,MySQL),以讓資 料訊息服務模組22能自資料庫41中將所需傳出的資料予以傳輸,及 201224801 /或,§亥> 料訊息服務模組22將所接收到之資料,傳送至該資料定義 語言DDL服務模组21以進行過濾無須傳送之資料。 資料訊息服務(message service)模組22,銷售端P0S4與雲端5 之間的k料傳輸為由該資料訊息服務(message service)模組22來負 責,而所有傳輸、接收的資料放在銷售端p〇S4之資料庫41,例如, MS-SQL,Oracel,MySQL。 .資料定義語言DDL服務模組21含有永續層(資料服務層)中的一個 實體(entity)物件,該資料定義語言DDL服務模組21至少具有邏輯層 面(logical level)之傳輸規則211、以及資料層面(data level)之 新記錄(new record)212,其中,傳輸規則211包含公司代碼 (com_no)2111、P0S代碼(loc_no)2112以做為傳送邏輯依據,新記錄 212為資料’無論裡面是主棺、单據或其它’在此,由於將資料與傳 送邏輯予以切割、分開,無須考慮為xml資料型式之新記錄(new record)212所具有之内容為何,而是使用傳輸規則211中之公司代 碼(com_no)2111、P0S代碼(loc_no)2112做為傳送邏輯依據,按不同 之公司代碼2111及/或P0S代碼2112,來完成雲端5與銷售端p〇s4 之間的資料訊息(message)交換,其中’新記錄212為xml資料,裡 面就是資料定義語言DDL服務模組21所用的實體資料(或記錄)(未圖 示出)。 12 201224801 於雲端5之雲端服務次系統3,該雲端服務次系統3至少包含資 料傳輸伺服器31、雲端運算ccP(Cloud computing Process)程式模 組犯、以及資料訊息指派MDP(Message Dispatching Process)模組 33 〇 資料傳輸伺服器31 ’銷售端P0S4直接(不透過門市小後台主機) 經由 > 料訊息服務(message service)模組22連接該資料傳輸伺服器 31以上傳與接收資料,該資料傳輸伺服器31透過訊息佇列(Message Queue)301與網頁伺服器7之網頁服務(Web Service)任何可即時傳 輸模式。銷售端P0S 4與雲端5之資料流的邏輯是透過邏輯中心 (Policy Center)8 控制。 雲端運算CCP(Cloud computing Process)程式模組32,該雲端 運算CCP(Cloud computing Process)程式模組32主要負貴接收並解 析XML資料,透過XML資料與商業邏輯比對後,確定資料流的流向(要 到哪一個銷售端P0S)。 資料訊息指派MDP(Message Dispatching Process)模組 33,該資 料訊息指派MDP(Message Dispatching Process)模組33負責與資料 傳輸祠服益31溝通’接收雲端運鼻CCP(Cloud computing Process) 程式模組32的指派命令,把要指定派送的資料送到資料傳輸伺服器 31以進行傳送。 13 201224801 方;實際她行時,可選擇,例如,該資料傳輸祠服器31是一個開放 碼之付s J2EE規範的應用容器(c〇ntainer),作為】2εε規範的補充, 引入了 Α0Ρ框架’為普通Java類提供了观以艮務資料傳輸伺服器 31 服器(mail server)一樣,有訊息符列3〇1用以存放 訊息仔列(未圖示出),每一個銷售端p〇s(N〇de)4均有對應之訊息佇 列(未圖示出)。 • 例如,以一個循環為例來說明,首先,銷售端P0S(Node)4把資 料(新記錄(new record)212)送到資料傳輸伺服器31之訊息佇列301 之前,銷售端P0S服務次系統2之資料定義語言DDL服務21,先將 新記錄(new record)212(資料)與傳輸規則211(傳送邏輯)予以切 割、分開’無須考慮新記錄(new record)212(為XML資料型式)所具 有之内容為何’而是使用傳輸規則211中之公司代碼(com_no)2lli、 P0S代碼(loc_no)2112做為傳送邏輯依據,按不同之公司代碼2111 及/或P0S代碼2112,來完成雲端5與銷售端P0S4之間的資料訊息 (message)交換。 接著,銷售端P〇S(Node)4之資料訊息服務(message service) 模組22(銷售端P0S(Node)4與雲端5之間的資料傳輸為由該資料訊 息服務(message service)模組22來負責)將新記錄212(資料)送到 資料傳輸伺服器31之訊息佇列(Queue)301,資料傳輸伺服器31會將 14 201224801 新記錄212(資料)收到其資料庫51,例如,㈣亂,予以暫存。 躺’㈣新記錄212(=細經由雲端運算哪((:1_ _puting Process)程式模组32處理後可能產生需再派送的資料(未圖示出), 亦狀齡於賴庫51,顺,MySQL;m#端運算Gcp(㈤d C〇IDPUting Pr〇Cess)程式模組32從資料庫51,例如,MySQL,讀取 最新收到的暫存新記錄212(資料)並作躺,若需再派酬會產生新 • _輸資料(再派送資料),每一判斷過的資料(未圖示出)會予以標 記。 繼之,透過雲端運算CCP(Cloud computing pr0cess)程式模組 32邏輯處理’假設再派送餅(新的傳輸資料)需要回傳該銷售端 腦或傳到其他的銷售端p〇S4,會把該再派送資料⑽的傳輸資料) 轉成胤交給資料訊息指派MDp(Message ―阳癒呢Pr〇⑽)模 組33指派放入資料傳輸伺服器31之訊息佇列3(U。 最後’銷售端P〇S(N〇de)4各自從訊息佇列(Queue)3〇1取回資料。 第2圖為一流程圖,用以顯示說明利用如第1圖中之本發明之資 料傳輸系統以進行資料傳輸方法的流程步驟。如第2圖中所示之,首 先於步驟U ’首先’銷售端P0S(Node)4把資料(新記錄(new record)212)送到資料傳輸伺服器31之訊息佇列3〇1之前,銷售端 P0S服務次系統2之資料定義語言DDL服務21,先將新記錄(new 15 201224801 record)212(資料)與傳輸規則211(傳送邏輯)予以切割、分開,無須 考慮新記錄(new record)212(為XML資料型式)所具有之内容為何, 而是使用傳輸規則211中之公司代碼(com_no)2ui、p〇s代碼 (loc_no)2112做為傳送邏輯依據,按不同之公司代碼2111及/或p〇S 代碼2112 ’來元成雲端5與銷售端P0S4之間的資料訊息(message) 交換,並進到步驟12。 步驟12,銷售端P0S4與雲端5之間的進行新記錄(new reC〇rd)212(資料)傳輸,並進行後續之處理動作;亦即,由該資料訊 息服務(message service)模組22負責將新記錄212(資料)送到資料 傳輸伺服器31之訊息佇列(Queue)301,以進行後續之處理動作。 第3圖為一流程圖,用以顯示說明於第2圖中之新記錄傳輸並進 行後續之處理動作步驟的更詳細之流程步驟。如第3圖中所示之,首 先’於步驟121’魅端職_)4之資料訊息服務 模組22(銷售端P_ode)4與雲端5之間的資料傳輸為由該資料訊 息服務(message service)模組22來負責)將新記錄212(f料)送到 資料傳輸舰ϋ 31之訊級列(Queue)3()1,f贿輸舰㈣會將 新記錄212(資料)收到其資料庫5卜例如,MySQL,予以暫存,並進 到步驟122。 於步驟122,存暫新記錄212(資料)經由雲端運算ccp(ci〇ud 16 201224801 computing Process)程式模組32處理後可能產生需再派送的資料(未 圖示出),亦將之儲存於資料庫51,例如,MySQL;該雲端運算 CCP(Cloud computing Process)程式模組 32 從資料庫 51,例如,201224801 VI. Description of the Invention: [Technical Field of the Invention] The present invention relates to a transmission system. More specifically, it relates to a data transmission system and method for a network data transmission environment applied to cloud computing. The communication logic is cut and separated, and the company code and/or P〇S code are used to complete the message exchange between the server and the user. [Prior Art] Decentralized architecture, for example, a three-tier (3-tier) decentralized architecture, is currently the most commonly used network application architecture. In the case of a three-tier distributed architecture, it is mainly composed of three levels. They are: user interface layer (Presenta1: i〇n Layer), operation logic layer (Business Logic Layer), and persistence layer (persistence layer). In a decentralized architecture, a program with a graphical user interface (GUI) is installed on the terminal computer, and these programs can be used to input appropriate information for interaction with the feeder through a form in a specific format; In the network application architecture, the user interface layer is, for example, an IE'l browser, and the function is to receive the data input by the user and display the result from the feeder. The logic layer is used as the bridge between the user and the database, the work of the data processing, the web server, etc., and the processing logic of the logic is on the computer. Execution, the function of the logic layer is to accept the request from the client 201224801 and decide what information can be transmitted to the client. In the perpetual layer (data service layer), it contains a database that stores a large amount of data, and a software that records the data. The perpetual layer (data service layer) is responsible for providing data to the computing logic layer and then to the user interface layer. Therefore, the user cannot directly access the contents of the database, and must connect through the logical layer of the operation, thereby improving the system. safety. • The current data exchange between the server and the user. When designing the data transmission structure, 'must consider the entity data and/or the record and/or the new record, the company code of the table structure (c〇m_n〇) Combined with the p〇s code (p0s_n0), and according to the structure design, the data transmission rule is generated, in other words, in the conventional data transmission structure design, for the material and/or record and/or new record, form (table The structure of the company code 'p〇s code is tied to the transfer logic. φ So 'if the data and transmission logic can be cut and separated, it is not necessary to consider what the new record of the data type has, but use the logic in the transmission rule as the transmission logic, according to different The company code and / or P0S code 'community exchange between the source and the sales terminal P0S, in other words 'do not need to data and / or record and / or new record, form (table) structure of the company code The P0S code is tied to the transmission logic, which is a problem to be solved. 201224801 [Summary of the Invention] The main object of the present invention is to provide a method for transmitting data in a cloud data transmission environment of the present invention, which is a data transmission system and method of the present invention, which cuts data and transmission logic. ,separate. The present invention is also directed to providing a data transmission system and method for use in a network data transmission environment, without having to consider what the new record of the XML data type has, but instead (4) The logic of the input rule towel is used as the transmission logic basis, and the message exchange between the cloud and the sales terminal p〇s is completed according to different company codes and/or P0S codes. The re-purpose of the present invention is to provide - (four) material ageing method, which is applied to the network data transmission environment, the data message between the cloud and the sales terminal p隐s (hidden) father change; the cloud receives the sales terminal p〇S data, for example, receiving sales data, and sending it to the host database in the cloud for data analysis in the cloud; assisting in the exchange of data between the ages, such as 'documents, main file exchange, etc. 〇s commercial activities; collaborative business activities between the cloud and the sales terminal P〇S, for example, B2B activities such as sales-side P0S purchasing from suppliers, main file downloading, etc. According to the above, the present invention provides a data transmission system including a sales terminal P〇Sm service system and a cloud service subsystem. Here, the data transmission system architecture of the present invention can use any payment or Is the free open source data 201224801 transmission server. The sales terminal p〇s service subsystem of the sales terminal P0S includes a data definition language DDL service module and a message service module. The data definition language DDL service module, the data definition language DDL service module is responsible for processing the access and processing of the sales side P0S database data, and communicating with the data message service (message service) module to convert the data object (Entity Bean) ) and XML 〇 the data definition language chaos service module will transfer the required outgoing data to the sales POS database (for example, MS-SQL, Oracele ' MySQL), so that the data message service module can The data to be transmitted is transmitted in the database, and/or the data service module transmits the received data to the DDL service module of the data definition language for data that has not been transmitted. The data transmission service module's data transmission between the sales terminal and the cloud is handled by the data message service module, and all data transmitted and received is placed in the database of the sales terminal p's, for example, MS. -SQL, Oracel, MySQL. The MDP (Message Dispatching Process) MDP is assigned to the data message, and the data message service module is a program at the sales terminal P0S, which is responsible for communicating with the data transfer server, obtaining the downloaded data and uploading the data to the data transfer server. 201224801 Data Definition Language The DDL service module contains an entity object in the perpetual layer (data service layer). The data definition language service module has at least a logical level of transmission rules and a data level ( Data Ievel) new record, where the transport rule contains the company code (com_no), p〇s code (loc_no) as the logical basis for the transfer, the new record is the data, whether it is the anchor, the document or other, in Therefore, since the data and the transmission logic are cut and separated, it is not necessary to consider what the new reconj of the XML data type has, but the company code (com_no) and the P〇s code in the transmission rule ( 1〇c一n〇) as a logical basis for transmission, according to different company codes and/or P0S codes, to complete the message exchange between the cloud and the sales terminal p,s, wherein the new record is Fox data. , which is the entity data (or record) used by the data definition language DDL service module. The cloud service sub-system in the cloud's cloud service sub-system includes at least a data transmission server, a cloud computing ccP (Cl〇ud computing Process) program module, and a data message assignment MDP (Message Dispatching Process) module. The data transmission server, the sales terminal p〇S directly (not through the small market background host) connects to the data transmission server via the message service module to upload and receive data, and the data transmission server transmits the message through the message. Any instant transfer mode between Message Queue and Web Service. The logic of the sales side p〇s and the cloud's resources is controlled by the logical center (p〇licy Center). 201224801 Cloud computing Process program module, the cloud computing process program module is mainly responsible for receiving and parsing X messy data. After comparing the XML data with the business logic, determine the flow of the data stream. (Which sales terminal to go to P0S). The data message is assigned to the MDP (Message Dispatching Process) module, which assigns the MDP (Message Dispatching Process) module to communicate with the data transmission server to receive the assignment command of the Cloud Computing Process program module. The data to be designated for delivery is sent to the data transfer server for transmission. When the data transmission system of the present invention is used for the data transmission method, the DDL service module of the data definition language of the sales service sub-system cuts and separates the data and the transmission logic' without considering the new record of the data type (newrec〇) What is the inner valley of rd)? Use the company code (c〇m-n〇) and p〇S code (loc-no) in the transmission code to be the ship logic wire, according to the different public code and / or pQS code, to enter between the P0S end and the cloud (four) message exchange (message) exchange information from the sales end (10) to be analyzed can be stored in the cloud database, for example, 0racle database 'and available Used by other systems. When using the data transmission system of the present invention to carry out the data transmission method: The sales process is sent at the sales terminal POS: firstly, after the sales terminal data is changed, the data definition service language DDL service module generates the fox data through the 201224801, and the data message service ( The message service) module dumps the data to the data transfer server; then, after the data is sent to the cloud, the cloud computing CCP (cl〇ud c〇fflputing Pr〇cess) program module obtains the XML from the data transfer server. The data is analyzed and calculated, and the results are stored in the cloud's negative library. Through the logical processing of the CCPCluster Computing Process module, it is assumed that the result data needs to be returned to the sales terminal p〇s or passed to other sales terminals pos', and the result will be converted into a data message. The assigned MDp (Mess Town Dispatching Process) module is assigned to the data transfer server to transmit the sales terminal POS or to other sales terminals p〇s via the data transfer server. In the cloud of the web ship | | (web server) action flow: Lai Xing Fu (four) unified, resulting in data changes, through the cloud computing (XP (aGud _puting prceess) program module operation, data message assignment M]) P (Message Dispatching Pr〇cess) The module delivers the data that needs to be transmitted to the sales terminal to the data transfer server, and then transmits it to the sales terminal p〇s via the data transfer server. On the sales side P0S sales terminal P0S service sub-system receiving process: the message service service (message service) module obtains the downloaded fox from the data server, and converts the data from fox to data object through the data definition language DDL service module. (Entity. For data processing. The data transmission system architecture of the present invention can use any paid or free 201224801 source data transmission server, and is not limited to use a data transmission server, and the sales terminal p〇s is specified by which A data transmission server service, set by the logic center. In actual implementation, it can be selected. For example, the data transmission server is an open code J2EE-compliant application container, which is added as a supplement to the J2EE specification. The Α0Ρ framework provides J2EE services for ordinary Java classes, and the data transfer server is like a mail server. There is a message queue for storing messages. Each of the nodes (Node) has a corresponding For example, a loop is taken as an example to illustrate that the node is used to send data to the data transmission server. The data transmission server will receive the data from its database for temporary storage. The temporary data will be processed by the Cloud Computing Process (Programming Module) and may generate data to be re-delivered. Cloud database, such as 'MySQL. Cloud computing process module, the cloud computing process program module from the cloud database, for example, MySQL 'read the latest received Temporary data is stored and judged. If it is to be dispatched, new transmission data will be generated, and each judged data will be marked. Through the cloud computing process (Logic Computing Process) program module logic processing, it is assumed that the result data needs to be returned. The lock sale terminal P0S or the other sales terminal P0S will convert the result into xml and submit it to the data message to assign the MDP (Message Dispatching Process) module to assign the data transfer service to the service information, and finally ' The Nodes retrieve the data from the message relay 201224801 server. The purpose and characteristics of the present invention are known to those skilled in the art. The present invention will be described in detail by the following specific embodiments, and with the accompanying drawings: FIG. 1 is a schematic diagram of a system for illustrating the data transmission system of the present invention. System architecture, and operation situation. As shown in FIG. 1 , the data transmission system 1 includes a sales terminal POS service subsystem 2 and a cloud service subsystem 3. The sales terminal P〇S service subsystem 2 located at more than one sales terminal P0S4 includes a negative DDL service module 21 and a message service module 22. The data definition language DDL service module 21, the data definition language DDL service module 21 is responsible for processing the access and processing of the data of the database 411 of the sales terminal POS4, and communicating with the message service module 22 to convert Entity Bean and XML. The definition of the material is stipulated. The DDL service module 21 will transfer the required data to the database of the sales terminal P0S4 (for example, 'MS-SQL, 〇raceie, MySQL) to enable the data message service module. The group 22 can transmit the required outgoing data from the database 41, and the 201224801 / or § hai> message service module 22 transmits the received data to the data definition language DDL service module. 21 for filtering without transmission of information. The message service module 22, the k-material transmission between the sales terminal POS4 and the cloud 5 is responsible for the message service module 22, and all the transmitted and received data are placed on the sales side. A database 41 of p〇S4, for example, MS-SQL, Oracel, MySQL. The data definition language DDL service module 21 includes an entity object in a perpetual layer (data service layer), the data definition language DDL service module 21 has at least a logical level transmission rule 211, and A new record 212 of the data level, wherein the transmission rule 211 includes a company code (com_no) 2111, a POS code (loc_no) 2112 as a transmission logic basis, and a new record 212 as a material 'whether inside Home, document or other 'here, because the data and the transfer logic are cut and separated, it is not necessary to consider what the new record 212 of the xml data type has, but use the transmission rule 211. The company code (com_no) 2111, P0S code (loc_no) 2112 is used as the transmission logic basis, and the information message between the cloud 5 and the sales terminal p〇s4 is completed according to different company code 2111 and/or P0S code 2112. Exchange, where 'new record 212 is xml data, which is the entity data (or record) used by the data definition language DDL service module 21 (not shown). 12 201224801 Cloud Service Subsystem 3 in Cloud 5, the cloud service subsystem 3 includes at least a data transmission server 31, a cloud computing process program module, and a message dispatching MDP (Message Dispatching Process) module. Group 33 〇 data transmission server 31 'sales terminal P0S4 directly (not through the store small background host) via the > message service module (message service) module 22 to connect the data transfer server 31 to upload and receive data, the data transmission The server 31 transmits any instant transfer mode through the message queue 301 and the web service of the web server 7. The logic of the data flow of the sales terminal P0S 4 and the cloud 5 is controlled by a Policy Center 8. The cloud computing process program module 32, the cloud computing process program module 32 mainly receives and parses the XML data, and compares the XML data with the business logic to determine the flow of the data stream. (Which sales terminal to go to P0S). The data message is assigned a MDP (Message Dispatching Process) module 33, which is responsible for communicating with the data transmission/service benefit 31. The cloud computing process module 32 is received. The assignment command sends the data to be designated to the data transfer server 31 for transmission. 13 201224801 方; Actually, she can choose, for example, the data transmission server 31 is an application container (c〇ntainer) of the open code payment s J2EE specification, which is a supplement to the 2εε specification, and introduces a frame of Α0Ρ 'For the ordinary Java class, it provides the same as the mail server server (mail server), there is a message column 3〇1 for storing messages (not shown), each sales terminal p〇 s(N〇de)4 has a corresponding message queue (not shown). • For example, taking a loop as an example, first, the sales terminal P0S (Node) 4 sends the data (new record 212) to the message queue 301 of the data transmission server 31, and the sales terminal P0S service times. The data definition language DDL service 21 of the system 2 first cuts and separates the new record 212 (data) and the transmission rule 211 (transfer logic) 'without considering the new record 212 (for the XML data type) What is the content? Instead, the company code (com_no) 2lli and P0S code (loc_no) 2112 in the transmission rule 211 are used as the transmission logic basis, and the cloud code 5 is completed according to the company code 2111 and/or the P0S code 2112. A message exchange with the sales terminal P0S4. Then, the data service (message service) module 22 of the sales terminal P〇S (Node) 4 (the data transmission between the sales terminal P0S (Node) 4 and the cloud 5 is transmitted by the message service module (message service) module. 22 is responsible for sending a new record 212 (data) to the message queue 301 of the data transfer server 31, and the data transfer server 31 will receive 14 201224801 new record 212 (data) from its database 51, for example (4) chaos, temporarily stored. Lying '(4) new record 212 (= by the cloud computing which ((:1_ _puting Process) program module 32 processing may generate data to be re-delivered (not shown), also aged in Laiku 51, Shun, MySQL; m# terminal operation Gcp ((5) d C〇IDPUting Pr〇Cess) program module 32 reads the newly received temporary new record 212 (data) from the database 51, for example, MySQL, and lays it down, if necessary Remuneration will generate new • _ lose data (re-delivery data), each judged data (not shown) will be marked. Subsequently, through the cloud computing pr (Cloud computing pr0cess) program module 32 logic processing ' Assume that the delivery of the cake (new transmission data) needs to be returned to the sales terminal or to other sales terminals p〇S4, and the transmission data of the re-delivery data (10) will be transferred to the data message to assign MDp (Message). The "Yanghe" Pr(10)) module 33 assigns the message queue 3 (U.) to the data transfer server 31. Finally, the 'sales terminal P〇S(N〇de) 4 are each from the message queue (Queue) 3〇 1 Retrieving data. Fig. 2 is a flow chart showing the use of the data transmission system of the present invention as shown in Fig. 1. For the process steps of the data transmission method, as shown in FIG. 2, first, in step U 'first' the sales terminal POS (Node) 4 sends the data (new record 212) to the data transmission server 31. Before the message queue 3〇1, the data definition language DDL service 21 of the sales side P0S service subsystem 2 first cuts and separates the new record (new 15 201224801 record) 212 (data) and the transmission rule 211 (transfer logic). No need to consider the content of the new record 212 (for the XML data type), but use the company code (com_no) 2ui and the p〇s code (loc_no) 2112 in the transmission rule 211 as the transmission logic basis. , according to different company code 2111 and / or p 〇 S code 2112 'to enter the message exchange between the cloud 5 and the sales terminal P0S4, and proceed to step 12. Step 12, the sales terminal P0S4 and the cloud 5 The new record (new reC〇rd) 212 (data) is transmitted and the subsequent processing action is performed; that is, the message service module 22 is responsible for sending the new record 212 (data) to the data. The message queue 301 of the transport server 31, For the subsequent processing action. Fig. 3 is a flow chart for displaying a more detailed process step for explaining the new record transmission in Fig. 2 and performing the subsequent processing action steps, as shown in Fig. 3. First, the data transmission between the data message service module 22 (sales terminal P_ode) 4 and the cloud 5 in step 121 is the responsibility of the message service module 22) The new record 212 (f material) is sent to the data transmission ship ϋ 31 Queue 3 () 1, the bribe transport ship (four) will receive a new record 212 (data) received its database 5 b, for example, MySQL , temporarily store it, and proceed to step 122. In step 122, the temporary new record 212 (data) is processed by the cloud computing ccp (ci〇ud 16 201224801 computing Process) program module 32, and may generate data to be re-delivered (not shown), and is also stored in The database 51, for example, MySQL; the Cloud Computing Process program module 32 from the database 51, for example,
MySQL,讀取最新收到的暫存新記錄212(資料)並作判斷,若需再派 送則會產生新的傳輸資料(再派送資料),每一判斷過的資料(未圖示 出)會予以標記;並進到步驟123。 • 於步驟123,透過雲端運算CCP(Cl〇Ud computing Pr〇cess)程式 模組32邏輯處理,假設再派送資料(新的傳輸資料)需要回傳該銷售 端P0S4或傳到其他的銷售端p〇S4,會把該再派送資料(新的傳輸資 料)轉成 XML 交給資料訊息指派 MDP(MeSsage Dispatching Process) 模組33指派放入資料傳輸伺服器31之訊息佇列301,並進到步驟 124。 第4圖為一系統示意圖,用以顯示說明本發明之資料傳輸系統之 一貫施例的系統架構、以及運作情形。如第4圖中所示之資料傳輸系 統1,該資料傳輸系統1包含銷售端p〇s服務次系統2、以及雲端服 務次系統3。 位於一個以上之銷售端P0S4之銷售端p〇s服務次系統2,該銷 售端P0S服務次系統2包含資料定義語言肌服務模組21、以及資 料訊息服務(message service)模組22,在此,該一個以上之銷售端 201224801 P0S4為,例如,飲料店,其中,飲料店包含連鎖飲料店及/或單一 飲料店。 資料訊息服務(message service)模組22,銷售端P0S4與雲端 5(例如,總公司傳輸伺服器端)之間的資料傳輸為由該資料訊息服務 (message service)模組22來負責,而所有傳輸、接收的資料放在銷 售端 P0S4 之資料庫 41,例如,MS-SQL,Oracel,MySQL。 資料定義語言DDL服務模組21含有永續層(資料服務層)中的一個 實體物件’該資料定義語言DDL服務模組21至少具有邏輯層面之傳輸 規則213、以及資料層面之新記錄214 ’其中,傳輸規則213包含公 司代碼(com—no)2131、P0S代碼(loc_no)2132以做為傳送邏輯依據, 在此’例如,公司代碼(com_no)2131為指定(assigned)號碼、P0S代 碼(locjio)2132為指定(assigned)號碼,係用以表示有特定組織、 分店號碼,新記錄214會傳送到一銷售端P0S4之一指定銷售端 P0S42,在此,新記錄214為資料,裡面是單據;在此,由於將新記錄 214(資料)與傳輸規則213(傳送邏輯)予以切割、分開,因而,無須 考慮為XML資料型式之新記錄214所具有之内容為何,而是使用傳輸 規則213中之為指定(assigned)號碼的公司代碼(com_no)2131、為指 定(assigned)號碼的P0S代碼(l〇c_no)2132做為傳送邏輯依據,按 為指定(assigned)號碼的公司代碼2131與P0S代碼2132,來完成雲 18 201224801 端5與銷售端p〇S4之間的資料訊息交換,其中,新記錄214(為xml 資料)包含單據2141,為資料定義語言DDL服務模組21所用的實體 資料(或記錄)。 資料定義語言DDL服務模組21,該資料定義語言DDL服務模組 21會將所需傳出的新記錄214(包含單據2141),搬運到銷售端P0S4 之資料庫41,例如,MySQL。 於雲端5之雲端服務次系統3 ’該雲端服務次系統3至少包含資 料傳輸伺服器31、雲端運算CCP(Cloud computing Process)程式模 組32、以及資料訊息指派MDP(Message Dispatching Process)模組 33。 資料傳輸伺服器31,銷售端P0S4直接(不透過門市小後台主機) 經由資料訊息服務(message service)模組22連接該資料傳輸伺服器 31以上傳與接收資料,該資料傳輸伺服器31透過訊息佇列(Message Queue)303與網頁伺服器7之網頁服務(Web Service)任何可即時傳 輸模式。銷售端P0S 4與雲端5之資料流的邏輯是透過邏輯中心 (Policy Center)8控制。 資料傳輸伺服器31 ’該資料傳輸伺服器31是一個開放碼之符合 J2EE規範的應用容器,作為J2EE規範的補充,引入了 Α0Ρ框架,為 普通Java類提供了 J2EE服務’資料傳輸伺服器31如同郵件伺服器 19 201224801 一樣有存放訊息的訊息佇列303,每一個銷售端P0S(Node)4對應相 關之訊息佇列303。 雲端運算CCP(Cloud computing Process)程式模組32,該雲端 運算CCP(Cloud computing Process)程式模組32從雲端5之資料庫 5卜例如’ MySQL ’讀取最新收到之暫存的新記錄214並作判斷,若 需再派送則會產生包含單據2141之資料331,每一判斷過的新記錄 214會予以標記。 資料訊息指派MDP(Message Dispatching Process)模組 33,該資 料sfl息指派 MDP(Message Dispatching Process)模組 33 負責與資料 傳輸伺服器31溝通,接收雲端運算CCP(cl〇ud c〇mputing pr〇cess) 程式模組32的指派命令,把要指定派送之包含單據2141的資料331 送到資料傳輸飼服器31以進行傳送。 在此,舉例言之,於將單據2141自一銷售端p〇S4傳送給一指定 銷售端P0S42(另一銷售端p〇s4)的過程時,首先,於銷售端 P0S(Node)4之=貝料訊息服務(message seryice)模組22把新記錄 送到貝料傳翻服器31之訊息仵列3G3之前,銷售端pqs服務次系 統2之資料定義語言胍服務2卜先將新記錄214與傳輸規則213 予以切割、分開’在此’新記錄(為XML資料型式)214包含單據2141, 使用傳輸規則213中之公司代碼(⑴m_n〇)213卜代碼 201224801 (l〇C_n〇)2132做為傳送邏輯依據,在此,例如,公司代碼(c〇m』〇)2i3i 為指定(assigned)號碼、P0S 代碼(l〇c_no)2i32 為指定(assigned) 號碼,係用以表示有特定組織、分店號碼,包含單據2141之新記錄 214會傳送到-銷售端p0S4之-指定銷售端P〇s,來絲雲端5與銷 售端P0S4之間的資料訊息(message)交換。 接著’銷售端P0S(Node)4之資料訊息服務(message service) 模組22將包含單據2141之新記錄214送到送到資料傳輸彳司服器3i 之訊息佇列(Queue)303,資料傳輸伺服器31會將新記錄214收到資 料庫51,例如,MySQL,予以暫存。 繼而,雲端運算CCP(Cloud computing Process)程式模組32從 資料庫51,例如’ MySQL ’讀取最新收到的暫存新記錄214並作判斷, 若需再派送則會產生新的包含單據2141之再派送資料331,判斷過 的新記錄214資料會予以標記,換言之,暫存新記錄214經由雲端運 算CCP(Cloud computing Process)程式模組32處理後可能產生需再 派送之包含單據2141的資料331,儲存於資料庫51,例如,MySQL。 繼之’透過雲端運算CCP(Cloud computing Process)程式模组 32運算’將儲存於資料庫51之包含單據2141的資料331轉成XML 父給為料訊息指派MDP(Message Dispatching Process)模組33指派 放入資料傳輸伺服器31之訊息佇列303。 21 201224801 最後’銷售端P0S(Node)4之一指定銷售端P0S42利用其所具有 之資料訊息服務模組22從訊息佇列3〇3取回包含單據2141的資料 331 ’並可將資料331傳送至銷售端p〇S42之資料定義語言DDL服務 模組21,並過濾無須傳送之資料。 第5圖為一流程圖’用以顯示說明利用如第4圖中之本發明之資 料傳輸系統的一實施例,以進行資料傳輸方法的流程步驟。在此,為 將單據2141自一銷售端P0S4傳送給一指定銷售端p〇s42(另一銷售 端 P0S4) 〇 如第5圖中所示之,首先,於步驟1〇1,於銷售端p〇s(N〇de)4 之資料訊息服務(message service)模組22把新記錄214送到資料傳 輸伺服器31之訊息佇列303之前,銷售端p〇s服務次系統2之資料 定義語言亂服務模組2卜先將新記錄214與傳輸規則213予以切 割、分開,在此,新記錄(為XML資料型式)214包含單據2141,使用 傳輸規則213中之公司代碼(com_no)2l31、p〇s代碼(l〇c_no)2132做 為傳送邏輯依據,在此,例如,公司代碼(c〇m_n〇)2131為指定 (assigned)號碼、POS 代碼(l〇c—no)2132 為指定(assigned)號碼,係 '用以表示有特定組織、分店號碼,包含單據2141之新記錄214會傳 送到一銷售端P0S4之一指定銷售端P0S42,來完成雲端5與銷售端 P〇S4之間的資料訊息(message)交換,並進到步驟1〇2。 22 201224801 於步驟102 ’接著,銷售端P0S(N〇de)4之資料訊息服$(message service)模組22將包含單據2141之新記錄214送到送到資料傳輸伺 服器31之訊息佇列(Queue)303,資料傳輸伺服器31會將新記錄214 收到負料庫51,例如,MySQL·,予以暫存,並進到步驟1〇3。 於步驟103,雲端運算cCP(Cloud computing Process)程式模組 32從資料庫51,例如’ MySQL,讀取最新收到的暫存新記錄214並作 判斷,若需再派送則會產生新的包含單據2141之再派送資料331, 判斷過的新記錄214資料會予以標記,換言之,暫存新記錄214經由 雲運算CCP(Cloud computing Process)程式模組32處理後可能產 生需再派送之包含單據2141的資料331,儲存於資料庫51,例如, MySQL;並進到步驟1〇4。 於步驟104,透過雲端運算ccP(Cl〇ud computing Process)程式 模組32運算,將儲存於資料庫51之包含單據2141的資料331轉成 XML 乂給資料訊息心派肋p(Message DiSpatching process)模組 33 指派放入資料傳輸伺服器31之訊息佇列3〇3,並進到步驟1〇5。 於步驟105,銷售端P〇S(N〇de)4之一指定銷售端P0S42利用其 所具有之資料訊息服務模組22從訊息佇列3〇3取回包含單據2141的 資料331,並可將資料331傳送至銷售端p〇S42之資料定義語言DDL 服務模組21,並過濾無須傳送之資料。 23 201224801 第6圖為一系統示意圖,用以顯示說明本發明之資料傳輸系統之 又一實施例的系統架構、以及運作情形。如第6圖中所示之資料傳輸 系統1,該資料傳輸系統1包含銷售端p〇S服務次系統2、以及雲端 服務次系統3。 位於一個以上之銷售端P0S4之銷售端p〇s服務次系統2,該銷 售端P0S服務次系統2包含資料定義語言DDL服務模組21、以及資 料訊息服務(message service)模組22,在此,該一個以上之銷售端 P0S4為’例如,飲料店’其中,飲料店包含連鎖飲料及/或單一飲料 店。 資料訊息服務(message service)模組22,銷售端P0S4與雲端 5(例如,總公司傳輸伺服器端)之間的資料傳輸為由該資料訊息服務 (message service)模組22來負責’而所有傳輸、接收的資料放在銷 售端 P0S4 之資料庫 41,例如,MS-SQL,Oracel,MySQL。 資料定義語言DDL服務模組21含有永續層(資料服務層)中的一個 實體物件’該資料定義語言DDL服務模組21至少具有邏輯層面之傳輸 規則215、以及資料層面之新記錄216,其中,傳輸規則215包含公 司代碼(com_no)2151、P〇S代碼(l〇c_n〇)2152以做為傳送邏輯依據, 在此’例如’公司代碼(com_no)2i51為指定號碼,而P0S代碼 (loc—no)2152並非為指定號碼,係用以表示有特定組織、但並無特 24 201224801 刀店號碼,換s之,由於並無特定分店號碼,因而,新記錄MB會 傳送到每—銷售端腿,纽,新記錄216為商品主稽;在此,由於 將新°己錄216與傳輸規則215予以切割、分開,因而,無須考慮為 狐貝料型式之新記錄216所具有之内容為何,而是使用傳輸規則215 中之為私疋號碼的公司代碼(conuio)2151、以及非為指定號碼的 代碼(loc—no)2i52做為傳送邏輯依據,按為指定號碼的公司代碼 2151、以及非為指定號碼的P0S代碼2152,來完成雲端5與銷售端 P〇S4之間的資料訊息交換,其中,新記錄216(為XML資料)為商品主 檔,將傳送至每一銷售端P0S4,為資料定義語言DDL服務模組21所 用的實體資料(或記錄)。 資料定義語言DDL服務模組21,該資料定義語言DDL服務模組 21會將所需傳出的新記錄216(商品主檔),搬運到銷售端p〇S4之資 料庫41,例如,MySQL。 於雲端5之雲端服務次系統3,該雲端服務次系統3至少包含資 料傳輸4司服器31、雲端運算CCP(Cl〇ud computing Process)程式模 組32、以及資料訊息指派MDP(Message Dispatching Process)模組 33。 資料傳輸伺服器31,該資料傳輸伺服器31是一個開放碼之符合 J2EE規範的應用容器,作為J2EE規範的補充,引入了 Α0Ρ框架,為 25 201224801 普通Java類提供了 J2EE服務,資料傳輸伺服器31如同郵件祠服器 一樣有存放訊息的訊息佇列305,每一個銷售端p〇s(N〇(ie)4對應相 關之訊息佇列305。 雲端運算CCP(Cloud computing Process)程式模組32,該雲端 運算CCP(Cl〇ud computing Process)程式模組32從雲端5之資料庫 51 ’例如,MySQL,讀取最新收到之暫存的新記錄216並作判斷,若 需再派送則會產生資料332,每一判斷過的新記錄216會予以標記。 資料訊息指派MDP(Message Dispatching Process)模組 33,該資 料訊息指派MDP(Message Dispatching Process)模組33負責與資料 傳輸飼服器31溝通’接收雲端運算CCP(Cloud C〇_ting Pnx^y 程式模組32的指派命令,把要指定派送之資料332送到資料傳輸伺 服器31以進行傳送。 在此,舉例言之,於將商品主檔自一銷售端p〇S4傳送給其他之 銷售端P0S4的過程時,首先,於銷售端P〇s(N〇de)4之資料訊息服務 (message service)模組22把新記錄216送到資料傳輸伺服器31之 訊息侧305之前,銷售端P〇S服務次系統2之資料定義語言肌服 務模組21,先將新記錄216與傳輸規則215予以切割、分開,在此, 新記錄(為XML資料型式扇為商品主檔,使用傳輸規則215中之公 司代碼(com_no)215;l、P0S代碼(i〇c_no)2i52做為傳送邏輯依據,在 26 201224801 此,公司代碼(com_no)2151為指定號碼、而p〇S代碼(loc—n〇)2152 並非為指定號碼,係用以表示有特定組織、但並無特定分店號碼,為 商品主檔之新記錄216會傳送到每一銷售端p〇S4,來完成雲端5與 銷售端P0S4之間的資料訊息(message)交換。 接著,銷售端P0S(Node)4之資料訊息服務(message service) 模組22將新記錄216送到送到資料傳輸伺服器31之訊息佇列3〇5 , 資料傳輸伺服器31會將新記錄216收到資料庫51 ,例如,MySQL, 予以暫存。 繼而,雲端運算CCP(Cloud computing Process)程式模組32從 資料庫51 ’例如’ MySQL ’讀取最新收到的暫存新記錄216並作判斷, 右需再派送則會產生新的再派送資料332,判斷過的新記錄216資料 會予以標記,換言之,暫存新記錄216經由雲端運算ccp(ci〇ud computing Process)程式模組32處理後可能產生需再派送之資料 332 ’儲存於資料庫51,例如,MySQL。 繼之’透過雲端運算CCP(Cloud computing Process)程式模組 32運算’將儲存於資料庫51之資料332轉成狐交給資料訊息指派 MDP(MeSSage Dispatching process)模組33指派放入資料傳輸伺服 器31之訊息佇列305。 最後’每-銷售端P0S(Node)4利用其所具有之資料訊息服務模 27 201224801 組22,分別從訊息佇列3〇5取回為商品主檔的資料泊2,並可將資料 332傳送至資料定義語言DDL服務模組21,並過濾無須傳送之資料。 第7圖為一流程圖,用以顯示說明利用如第6圖中之本發明之資 料傳輸系統的又一實施例,以進行資料傳輸方法的流程步驟。在此, 將為商品主檔的新記錄216自一銷售端P〇S4傳送給其它銷售端p〇S4。 如第7圖中所示之,首先,於步驟2〇1,於銷售端p〇s(N〇de)4 之資料訊息服務(message service)模組22把新記錄216送到資料傳 輸伺服器31之訊息佇列305之前,銷售端P〇s服務次系統2之資料 定義語言DDL服務模組21,先將新記錄216與傳輸規則215予以切 割、分開’在此’新記錄(為X此資料型式)216為商品主檔’使用傳 輸規則215中之公司代碼(com—n〇)2i5i、p〇s代碼(i〇c_n〇)2l52做為 傳送邏輯依據’在此’公司代碼(⑽_nQ)2151為指定號碼、而p〇s 代碼(lcxuiQ)2152並麵献號碼,伽以麵树定組織、但並 無特定分店號碼’為商品主檔之新記錄216會傳送到每一銷售端 P0S4 ’來完成雲端5與鎖售端p〇S4之間的資料訊息(message)交換, 並進到步驟202。 於步驟202銷售端p〇s(N〇de)4之資料訊息服務(message service)模組22將新記錄216制送到資料傳輸伺服器31之訊息仔 列305 ’資料傳輸伺服器31會將新記錄216收到資料庫51,例如, 28 201224801MySQL, read the newly received temporary new record 212 (data) and make a judgment. If it needs to be dispatched, it will generate new transmission data (re-delivery data), and each judged data (not shown) will Mark it; go to step 123. • In step 123, through the cloud computing CCP (Cl〇Ud computing Pr〇cess) program module 32 logic processing, assuming that the data (new transmission data) needs to be returned to the sales terminal P0S4 or to other sales terminals p 〇S4, the re-delivery data (new transmission data) is converted into XML, and the MDS (MeSsage Dispatching Process) module 33 assigns the message queue 301 to the data transmission server 31, and proceeds to step 124. . Figure 4 is a system diagram showing the system architecture and operation of a consistent embodiment of the data transmission system of the present invention. As shown in Fig. 4, the data transmission system 1 includes a sales terminal p〇s service subsystem 2 and a cloud service subsystem 3. The sales terminal P0S service sub-system 2 is located at more than one sales terminal P0S4, and the sales-side P0S service sub-system 2 includes a data definition language muscle service module 21 and a message service module 22, The one or more sales terminals 201224801 P0S4 are, for example, a beverage store, wherein the beverage store comprises a chain beverage store and/or a single beverage store. The message service module 22, the data transmission between the sales terminal POS4 and the cloud 5 (for example, the head office transmission server end) is responsible for the message service module 22, and all The transmitted and received data is placed in the database 41 of the sales terminal P0S4, for example, MS-SQL, Oracel, MySQL. The data definition language DDL service module 21 contains a physical object in the perpetual layer (data service layer). The data definition language DDL service module 21 has at least a logical level transmission rule 213 and a data level new record 214 ' The transmission rule 213 includes a company code (com-no) 2131 and a POS code (loc_no) 2132 as a transmission logic basis, where 'for example, the company code (com_no) 2131 is an assigned number, a POS code (locjio). 2132 is an assigned number, which is used to indicate that there is a specific organization, branch number, and the new record 214 is transmitted to one of the sales terminals P0S4 to designate the sales terminal P0S42, where the new record 214 is the data, which is the document; Therefore, since the new record 214 (data) and the transmission rule 213 (transfer logic) are cut and separated, it is not necessary to consider what the new record 214 of the XML data type has, but use the transmission rule 213 as The company code (com_no) 2131 specifying the (assigned) number and the P0S code (l〇c_no) 2132 of the designated (assigned) number are used as the transmission logic basis, and the designated number is assigned. The company code 2131 and the P0S code 2132 are used to complete the data exchange between the cloud 18 201224801 terminal 5 and the sales terminal p〇S4, wherein the new record 214 (for the xml data) contains the document 2141, which is a data definition language DDL service module. The entity data (or record) used by group 21. The data definition language DDL service module 21, the data definition language DDL service module 21 transfers the required new record 214 (including the document 2141) to the database 41 of the sales terminal POS4, for example, MySQL. The Cloud Service Subsystem 3 of the Cloud 5 includes at least a data transfer server 31, a Cloud Computing Process program module 32, and a Message Dispatching Process module (MDP) 33. . The data transmission server 31, the sales terminal POS4 directly (not through the store small background host) is connected to the data transmission server 31 via the message service module 22 to upload and receive data, and the data transmission server 31 transmits the message. The Message Queue 303 and the Web Service of the Web Server 7 can be any instant transfer mode. The logic of the data stream of the sales terminal P0S 4 and the cloud 5 is controlled by a Policy Center 8. Data Transfer Server 31 'This data transfer server 31 is an open code J2EE-compliant application container. As a supplement to the J2EE specification, it introduces a framework for providing J2EE services for ordinary Java classes. The mail server 19 201224801 has a message queue 303 for storing messages, and each of the sales terminals P0S (Node) 4 corresponds to the related message queue 303. The Cloud Computing Process program module 32, the Cloud Computing Process program module 32 reads the newly received temporary new record 214 from the database 5 of the cloud 5, such as 'MySQL'. And to make a judgment, if it needs to be dispatched, a data 331 containing the document 2141 will be generated, and each judged new record 214 will be marked. The data message is assigned a MDP (Message Dispatching Process) module 33, which is responsible for communicating with the data transmission server 31 and receiving the cloud computing CCP (cl〇ud c〇mputing pr〇cess). The assignment command of the program module 32 sends the data 331 of the containing document 2141 to be dispatched to the data transfer feeder 31 for transmission. Here, for example, when the document 2141 is transmitted from a sales terminal p〇S4 to a designated sales terminal POS42 (another sales terminal p〇s4), first, at the sales terminal P0S (Node) 4 = The message seryice module 22 sends the new record to the message stacking device 31 before the message queue 3G3, and the sales side pqs service subsystem 2 data definition language 胍 service 2 first new record 214 And the transmission rule 213 is cut and separated 'here' the new record (for the XML data type) 214 contains the document 2141, using the company code ((1) m_n〇) 213 code 201224801 (l〇C_n〇) 2132 in the transmission rule 213 as The transmission logic is based on, for example, the company code (c〇m)〇) 2i3i is the designated (assigned) number, and the P0S code (l〇c_no) 2i32 is the designated (assigned) number, which is used to indicate that there is a specific organization or branch. The number, the new record 214 containing the document 2141, is transmitted to the sales terminal p0S4 - the designated sales terminal P〇s, to exchange the message between the silk cloud 5 and the sales terminal P0S4. Then, the 'message service' module 22 of the sales terminal P0S (Node) 4 sends the new record 214 containing the document 2141 to the message queue 303 sent to the data transmission server 3i for data transmission. The server 31 will receive the new record 214 from the database 51, for example, MySQL. Then, the Cloud Computing Process program module 32 reads the newly received temporary new record 214 from the database 51, for example, 'MySQL' and makes a judgment. If it needs to be dispatched, a new included document 2141 is generated. The re-delivery data 331, the judged new record 214 data will be marked, in other words, the temporary new record 214 may be processed by the Cloud Computing Process program module 32 to generate the data containing the document 2141 to be re-delivered. The 331, is stored in the database 51, for example, MySQL. Following the 'Cloud Computing Process' module 32 operation', the data 331 containing the document 2141 stored in the database 51 is converted into an XML parent. The message is assigned to the MDP (Message Dispatching Process) module 33. The message queue 303 is placed in the data transfer server 31. 21 201224801 Finally, one of the sales terminals P0S (Node) 4 designates the sales terminal POS 42 to retrieve the data 331 ' containing the document 2141 from the message queue 3 利用 3 using the data message service module 22 it has, and can transmit the data 331 The data to the sales terminal p〇S42 defines the language DDL service module 21 and filters the data that is not required to be transmitted. Fig. 5 is a flow chart showing the flow of the data transfer method for explaining an embodiment of the data transfer system using the present invention as shown in Fig. 4. Here, in order to transfer the document 2141 from a sales terminal POS4 to a designated sales terminal p〇s42 (another sales terminal POS4), as shown in FIG. 5, first, at step 1〇1, at the sales terminal p The message service module 22 of the 〇s(N〇de)4 sends the new record 214 to the message queue 303 of the data transfer server 31, and the data definition language of the sales terminal p〇s service subsystem 2 The messy service module 2 first cuts and separates the new record 214 from the transport rule 213. Here, the new record (for the XML data type) 214 contains the document 2141, using the company code (com_no) 2l31, p in the transport rule 213. The 〇s code (l〇c_no) 2132 is used as the transmission logic. Here, for example, the company code (c〇m_n〇) 2131 is the designated (assigned) number, and the POS code (l〇c-no) 2132 is specified (assigned). The number is used to indicate that there is a specific organization, branch number, and the new record 214 containing the document 2141 is transmitted to one of the sales terminals P0S4 to designate the sales terminal P0S42 to complete the data between the cloud 5 and the sales terminal P〇S4. The message is exchanged and proceeds to step 1〇2. 22 201224801 In step 102 'Next, the message service package 22 of the sales terminal P0S (N〇de) 4 sends the new record 214 containing the document 2141 to the message queue sent to the data transfer server 31. (Queue) 303, the data transfer server 31 will receive the new record 214, for example, MySQL, for temporary storage, and proceeds to step 1〇3. In step 103, the cloud computing process program module 32 reads the newly received temporary new record 214 from the database 51, such as 'MySQL, and makes a judgment. If it needs to be dispatched, a new inclusion is generated. The re-delivery data 331 of the document 2141, the judged new record 214 data will be marked, in other words, the temporary new record 214 may be processed by the cloud computing process module 32 to generate the included document 2141. The data 331 is stored in the database 51, for example, MySQL; and proceeds to step 1〇4. In step 104, the data 331 containing the document 2141 stored in the database 51 is converted into XML by the CUP (Cl〇ud computing Process) program module 32, and the Message DiSpatching process is performed. The module 33 assigns the message queue 3〇3 placed in the data transfer server 31 and proceeds to step 1〇5. In step 105, one of the sales terminals P〇S(N〇de)4 designates the sales terminal POS42 to retrieve the data 331 containing the document 2141 from the message queue 3〇3 by using the data message service module 22 provided by the sales terminal P0S42. The data 331 is transmitted to the data definition language DDL service module 21 of the sales terminal p42, and the data that is not required to be transmitted is filtered. 23 201224801 Figure 6 is a system diagram showing the system architecture and operation of a further embodiment of the data transmission system of the present invention. As shown in Fig. 6, the data transmission system 1 includes a sales terminal service system 2 and a cloud service subsystem 3. The sales terminal P0S service sub-system 2 of the sales terminal P0S4 includes the data definition language DDL service module 21 and the message service module 22, where The one or more sales terminals POS4 are 'for example, a beverage store' wherein the beverage store comprises a chain beverage and/or a single beverage store. The message service module 22, the data transmission between the sales terminal POS4 and the cloud 5 (for example, the head office transmission server end) is responsible for the message service module 22. The transmitted and received data is placed in the database 41 of the sales terminal P0S4, for example, MS-SQL, Oracel, MySQL. The data definition language DDL service module 21 includes a physical object in the persistent layer (data service layer). The data definition language DDL service module 21 has at least a logical level transmission rule 215 and a data level new record 216, wherein The transmission rule 215 includes a company code (com_no) 2151, a P〇S code (l〇c_n〇) 2152 as a transmission logic basis, where 'for example, the company code (com_no) 2i51 is a designated number, and the POS code (loc —no) 2152 is not a designated number. It is used to indicate that there is a specific organization, but there is no special 24 201224801 knife shop number. For s, since there is no specific store number, the new record MB will be transmitted to each sales terminal. Legs, New Zealand, and New Record 216 are the main items of the goods; here, since the new record 216 and the transmission rule 215 are cut and separated, it is not necessary to consider the content of the new record 216 of the Fox type. Instead, the company code (conuio) 2151, which is the private number in the transmission rule 215, and the code (loc_no) 2i52, which is not the designated number, are used as the transmission logic basis, and the company code is the designated number. 2151, and the P0S code 2152 which is not the designated number, completes the data exchange between the cloud 5 and the sales terminal P〇S4, wherein the new record 216 (for XML data) is the product master file and will be transmitted to each sale. The terminal P0S4 is an entity data (or record) used by the data definition language DDL service module 21. The data definition language DDL service module 21, the data definition language DDL service module 21 will transfer the new record 216 (commodity master file) that needs to be sent to the asset library 41 of the sales terminal p〇S4, for example, MySQL. In the cloud service sub-system 3 of the cloud 5, the cloud service sub-system 3 includes at least a data transmission 4 server device 31, a cloud computing CCP (Cl〇ud computing Process) program module 32, and a data message assignment MDP (Message Dispatching Process). ) Module 33. The data transmission server 31 is an open code J2EE-compliant application container. As a supplement to the J2EE specification, the data transmission server 31 introduces a framework for providing a J2EE service for the general Java class of 201224801, a data transmission server. 31, like the mail server, there is a message 305 for storing messages, and each sales terminal p〇s (N〇(ie)4 corresponds to the related message queue 305. Cloud computing Process program module 32 The cloud computing CCP (Cl〇ud computing Process) program module 32 reads the newly received temporary new record 216 from the database 5 of the cloud 5, for example, MySQL, and judges if it needs to be dispatched again. The data 332 is generated, and each of the judged new records 216 is marked. The data message is assigned a MDP (Message Dispatching Process) module 33, which is responsible for the MDP (Message Dispatching Process) module 33 and the data transfer server 31. The communication 'receives the cloud computing CCP (the cloud C〇_ting Pnx^y program module 32 assignment command, and sends the dispatched data 332 to the data transmission server 31 for transmission. For example, in the process of transmitting the product master file from a sales terminal p〇S4 to another sales terminal POS4, first, the data service (message service) of the sales terminal P〇s(N〇de)4 Before the module 22 sends the new record 216 to the message side 305 of the data transfer server 31, the data terminal defines the language muscle service module 21 of the service terminal system 2, and firstly records the new record 216 and the transfer rule 215. Cutting, separating, here, the new record (for the XML data type fan is the commodity master file, using the company code (com_no) 215 in the transmission rule 215; l, P0S code (i〇c_no) 2i52 as the transmission logic basis, in 26 201224801 Therefore, the company code (com_no) 2151 is the designated number, and the p〇S code (loc_n〇) 2152 is not the designated number. It is used to indicate that there is a specific organization, but there is no specific branch number, which is the product master. The new record 216 is transmitted to each sales terminal p〇S4 to complete the message exchange between the cloud 5 and the sales terminal P0S 4. Then, the data service (message service) of the sales terminal P0S (Node) 4 Module 22 sends new record 216 to the data transmission SERVER 31 of the message queue 3〇5, data transmission server 31 will receive 216 new records database 51, for example, MySQL, be temporarily stored. Then, the Cloud Computing Process program module 32 reads the newly received temporary new record 216 from the database 51 'for example, 'MySQL' and makes a judgment. If the right needs to be dispatched, a new resend data will be generated. 332, the judged new record 216 data will be marked, in other words, the temporary new record 216 may be generated by the cloud computing ccp (ci〇ud computing process) program module 32 may generate data to be re-delivered 332 'stored in the database 51, for example, MySQL. Following the 'Cloud Computing Process' module 32 operation', the data 332 stored in the database 51 is converted into a data transfer message. The MDS (MeSSage Dispatching process) module 33 is assigned to the data transfer servo. The message of the device 31 is queued 305. Finally, the per-sales terminal P0S (Node) 4 retrieves the data mooring 2 as the main product file from the message queue 3〇5 by using the data message service module 27 201224801 group 22 which it has, and can transmit the data 332. To the data definition language DDL service module 21, and filter the data that is not required to be transmitted. Fig. 7 is a flow chart for showing a flow chart showing a further embodiment of the data transfer system using the present invention as shown in Fig. 6 for carrying out the data transfer method. Here, a new record 216 for the product master is transferred from one point of sale P〇S4 to the other point of sale p〇S4. As shown in FIG. 7, first, in step 2〇1, the message service module 22 of the sales terminal p〇s(N〇de)4 sends the new record 216 to the data transmission server. Before the message 301 of the message 305, the data definition language DDL service module 21 of the sales terminal P〇s service subsystem 2 first cuts the new record 216 and the transmission rule 215 and separates the 'new record' here (for this X) The data type) 216 is the product master file 'Use the company code (com-n〇) 2i5i, p〇s code (i〇c_n〇) 2l52 in the transmission rule 215 as the transmission logic basis 'here' company code ((10)_nQ) 2151 is the designated number, and the p〇s code (lcxuiQ) 2152 is provided with the number, and the new record 216 of the product name is transmitted to the sales terminal P0S4. To complete the message exchange between the cloud 5 and the lock terminal p〇S4, and proceed to step 202. In step 202, the data service message module 22 of the sales terminal p〇s (N〇de) 4 sends the new record 216 to the message transmission server 31. The data transmission server 31 will The new record 216 receives the database 51, for example, 28 201224801
MySQL ’予以暫存,並進到步驟2〇3。 於步驟203,雲端運算cCP(Cloiid computing Process)程式模組 32從資料庫51,例如,MySQL,讀取最新收到的暫存新記錄216並作 判斷,若需再派送則會產生新的再派送資料332,判斷過的新記錄2(6 二貝料會予以標記,換言之,暫存新記錄216經由雲端運算ccp(cl〇ud computing Process)程式模組32處理後可能產生需再派送之資料 332 ’儲存於資料庫5卜例如,啦狐,並進到步驟2〇4。 於步驟204 ’繼之’透過雲端運算cCP(Cloud computing Process) 耘式模組32運算’將儲存於資料庫51之資料332轉成XML交給資料 訊息指派MDP(Message Dispatching Process)模組33指派放入資料 傳輸伺服器31之訊息佇列305,並進到步驟2〇5。 於步驟205 ’每一銷售端p〇s(N〇de)4利用其所具有之資料訊息 服務模組22,分別從訊息佇列3〇5取回為商品主檔的資料332,並可 將資料332傳送至資料定義語言亂服務模組21,並過渡無須傳送 之資料。 綜合以上之實施例,我們可以得到本發明之一種資料傳輸系統及 方法,係顧於雲端運算之網路資料傳輸觀,本發明之資料傳輸系 統及方法’將資料與傳送邏輯予以切割、分開,無須考慮為胤資料 型式之新記錄(newrecord)所具有之内容為何,而是使贿輸規則之 29 201224801 邏輯做為傳送邏輯依據 ,按不同之公司代碼及/或P0S代碼,來完成 與銷售端P〇S(Point OF Sale)之間的資料訊息(message)交換。 本發明之資料傳輸系統及方法包含以下優點: L將資料與傳送邏輯予以切割、分開,無須考慮為XML資料型式之 新記錄所具有之内容為何,而是使用傳輸規則中之公司代碼 (com—no)、p〇s代碼(i〇c_no)做為傳送邏輯依據,按不同之公司代 碼及/或P0S代碼,來完成雲端與銷售端P〇s之間的資料訊息交換。 2.雲端與銷售端p〇s之間的資料訊息交換,雲端接收使用端資料, 例如,接收銷售資料,並送到雲端資料庫以供雲端作資料分析;協 助銷售端P0S之間作資料交換,派送資料,例如,單據、主檔交 換等飲料店端商業活動;雲端與銷售端P0S之間的協同商務活動, 例如,銷售端pos向供應商下採購、主檔下載等B2B活動。 以上所述僅為本發明之較佳實施例而已,並非用以限定本發明之 範圍;凡其它未脫離本發明所揭示之精神下所完成之等效改變或修 飾’均應包含在下述之專利範圍内。 【圖式簡單說明】 第1圖為一系統示意圖,用以顯示說明本發明之資料傳輸系統之 系統架構、以及運作情形; 201224801 第2圖為一流程圖,用以顯示說明利用如第1圖中之本發明之資 料傳輸系統以進行資料傳輪方法的流程步驟; 第3圖為一流程圖,用以顯示説明於第2圖中之新記錄傳輸並進 行後續之處理動作步驟的更詳細之流程步驟; 第4圖為一系統示意圖,用以顯示說明本發明之資料傳輸系統之 —實施例的系統架構、以及運作情形; 第5圖為一流程圖,用以顯示說明利用如第4圖中之本發明之資 料傳輸系統的一實施例,以進行資料傳輸方法的流程步驟; 第6圖為一系統示意圖,用以顯示說明本發明之資料傳輸系統之 又—實施例的系統架構、以及運作情形;以及 第7圖為一流程圖,用以顯示說明利用如第6圖中之本發明之資 料傳輪系統的又一實施例,以進行資料傳輸方法的流程步驟。 【主要元件符號說明】 1 .資料傳輸系統 2 銷售端P0S服務次系統 3雲端服務次系統 1 銷售端P0S }雲端 31 201224801 7 網頁伺服器 8 邏輯中心 11 12步驟 21資料定義語言DDL服務模組 22資料訊息服務模組 31資料傳輸伺服器 φ 32雲端運算CCP程式模組 33貢料訊息指派MDP核組 41資料庫 42指定店 51資料庫 101 102 103 104 105 106 步驟 121 122 123 124 125 步驟 201 202 203 204 205 206 步驟 211傳輸規則 212新記錄 213傳輸規則 214新記錄 215傳輸規則 32 201224801 216新記錄 301 訊息佇列 303訊息佇列 305訊息佇列 331再派送資料 332再派送資料 2111 公司代碼 2112 POS 代碼 2131 公司代碼 2132 POS 代碼 2141單據 2151 公司代碼 2152 POS 代碼MySQL' is temporarily staging and proceeds to step 2〇3. In step 203, the cloud computing cCP (Cloiid Computing Process) program module 32 reads the newly received temporary new record 216 from the database 51, for example, MySQL, and makes a judgment. If it needs to be dispatched, a new one is generated. The dispatched data 332, the judged new record 2 (6 two bills will be marked, in other words, the temporary new record 216 is processed by the cloud computing ccp (cl〇ud computing Process) program module 32 may generate data to be re-delivered 332 ' stored in the database 5, for example, fox, and proceeds to step 2 〇 4. In step 204 'follow' through the cloud computing cCP (Cloud computing Process) 模组 module 32 operation 'will be stored in the database 51 The data 332 is converted into XML and the Message Dispatching Process (MDP) module 33 assigns the message queue 305 to the data transfer server 31, and proceeds to step 2〇5. In step 205, 'each sales terminal p〇 s(N〇de)4 uses its data message service module 22 to retrieve the data 332 as the product master file from the message queue 3〇5, and can transmit the data 332 to the data definition language mess service module. Group 21, and the transition does not need to pass According to the above embodiments, we can obtain a data transmission system and method of the present invention, which is based on the network data transmission concept of cloud computing, and the data transmission system and method of the present invention cuts data and transmission logic. Separate, no need to consider what the new record of the data type has, but to make the bribes of the rule 201224801 logic as the transmission logic, according to different company code and / or P0S code, to complete The data exchange system and method between the sales terminal P〇S (Point OF Sale) The data transmission system and method of the present invention include the following advantages: L. Cutting and separating data and transmission logic, without considering XML data type What is the content of the new record, but the company code (com-no) and p〇s code (i〇c_no) in the transmission rule are used as the transmission logic basis, according to different company code and/or P0S code. To complete the exchange of information between the cloud and the sales terminal P〇s. 2. Exchange of information between the cloud and the sales terminal, and the cloud receiving and using the terminal. For example, receiving sales data and sending it to the cloud database for data analysis in the cloud; assisting in the exchange of data between the sales terminals, sending materials, for example, document, main file exchange and other beverage store business activities; cloud and sales Collaborative business activities between the POSs, for example, the B2B activities of the sales pos to the supplier, the main file download, etc. The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; All other equivalent changes or modifications made without departing from the spirit of the invention shall be included in the scope of the following patents. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a system for illustrating the system architecture and operation of the data transmission system of the present invention; 201224801 FIG. 2 is a flow chart for illustrating the use of FIG. The data transmission system of the present invention performs the flow steps of the data transfer method; FIG. 3 is a flow chart for displaying the detailed description of the new record transmission in FIG. 2 and performing the subsequent processing steps. Figure 4 is a schematic diagram of a system for illustrating the system architecture and operation of the data transmission system of the present invention; Figure 5 is a flow chart for illustrating the use of Figure 4 An embodiment of the data transmission system of the present invention for performing the flow of the data transmission method; FIG. 6 is a system diagram for showing a system architecture for explaining another embodiment of the data transmission system of the present invention, and Operational situation; and FIG. 7 is a flow chart showing a further embodiment illustrating the use of the data transfer system of the present invention as in FIG. Line data transmission method of process steps. [Main component symbol description] 1. Data transmission system 2 Sales terminal P0S service subsystem 3 Cloud service subsystem 1 Sales terminal P0S } Cloud 31 201224801 7 Web server 8 Logical center 11 12 Step 21 Data definition language DDL service module 22 Data message service module 31 data transmission server φ 32 cloud computing CCP program module 33 tribute message assignment MDP core group 41 database 42 designated store 51 database 101 102 103 104 105 106 step 121 122 123 124 125 step 201 202 203 204 205 206 Step 211 Transmission rule 212 New record 213 Transmission rule 214 New record 215 Transmission rule 32 201224801 216 New record 301 Message queue 303 Message queue 305 Message queue 331 Resend data 332 Resend data 2111 Company code 2112 POS Code 2131 company code 2132 POS code 2141 document 2151 company code 2152 POS code