pos for .net での...
TRANSCRIPT
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
1
株式会社ソリマチ技研
田村貴夫
POS for .Net でのアプリケーション開発
コンテンツ会社概要
UNITEのご紹介
開発手法の変遷(DOS以前からEmb/OPOS.NET)
OPOS と POS for .NET
アーキテクチャとフレームワークについて
POS for .NETでの開発について(全体構成)
POS for .NETでの開発について(プレゼンテーションレイヤ)
POS for .NETでの開発について(ビジネスレイヤ)
POS for .NETでの開発について(データレイヤ)
POS for .NETでの開発について(DeviceManager)
POS for .NET の簡単なコーディングデモ
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
まずは 会社概要
会社概要
㈱ソリマチ技研
本 社 新潟県長岡市中島6-2-21
新潟支社 新潟県新潟市中央区明石1-7-17
業務内容 システムコンサルティング
システム企画開発
自社製品企画開発
技術研究
◆ソリマチ技研は、ソリマチグループに属しております。ソリマチグループは、昭和30年に設立した税務会計事務所からスタートしました。
各会社で専門分野に特化した業務が行えるよう、「分社経営」を理念の一つにしております。現在5部門・14社で構成され、各社ごとに特徴のもった事業を展開中です。
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
3
事業内容と特徴ソリューション ・・・ 最新テクノロジーと豊富な業務ノウハウをベースに構築されており、
お客様の最適かつ最先端な情報システム構築を支援しています。
国際統一仕様に準拠したパッケージ「UNITE」シリーズをベースとし、お客様独自の仕様、運用を総合的にサポート。流通サービスのお客様の多様化するニーズに柔軟に対応する拡張性に優れたシステム構築を提供しています。
業種: 流通・サービス業・専門店・アパレル・ドラッグ・DPE・生協・化粧品・外食・ ショッピングセンター
コンサルティングサービス
システム構築サービス
パッケージソリューションサービス
Solution
システム導入前のサポートからシステム稼動後の保守サービスまで、専門スタッフがお客様を強力にバックアップします。
コールセンター 9:00~21:00、365日
サポート ・・・・・
豊富な業務ノウハウにより、時代とお客様の要望に合った付加価値を創造しています。いち早くお客様に最適かつ最先端な情報システムをお届けするための研究開発に取り組んでいます。
技術開発 ・・・・・
お客様のメリットを十二分に引き出せるように、各種技術の標準化活動に参加し、最新技術の普及に努めています。
Smarter Retailing Initiative 【幹事会員】
流通業向けのソリューション展開の強化・拡大を推進
OPOS技術協議会 【幹事会員】
POS周辺装置、制御方式の標準化
電子マネー分科会 【分科会長】
.NET流通システム協議会 【幹事会員】
.NETを活用した流通情報システムの標準化
OFSC研究会 【運営委員会】OFSC(Open Foodservice System Consortium)研究会飲食業を支えるインフラとしての情報システムの将来像をつくりあげることを目的とする
協議会活動 ~標準化活動の取組み~
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4
次に UNITEのご紹介
UNITE製品
UNITE-SalesOffice net卸業様向け販売管理システム
UNITE-RetailOffice net小売業様向け本部店舗システム
UNITE-POS netPOSシステム
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
5
Unite関わり合いを大切にし
Needsお客様が必要としている
Intellectual value & information Technology知的価値や先端技術をご提供し
Existence value & fascinating personality存在価値や魅力個性を創り出す商品(サービス)です
「 UNITE 」とは?
IT
N
U
E
UNITE 製品特徴お客様視点に立ち、さらなるサービスを提供するPOSと、戦略経営を実現する本部店舗MDシステムを統合した、意思決定をサポートするトータルリアルタイムソリューションです。
•必要な情報をリアルタイムに提供できるインフォメーションキャビネットの搭載
•多種多様化するお客様サービスを、スマートに提供
•戦略経営を実現するシミュレーション機能を用いた仮説実証を実現
•運用スタイルに合わせたマーチャンダイジングサイクルを実現
•情報セキュリティの実証
•本部では販売速報、在庫情報を、店舗では商品情報や顧客情報をリアルタイムに参照可能
•POS、クライアントPC、本部サーバの運用状態の監視
•オフライン時の状態も考慮した安心設計
•迅速な障害復旧で安心運用
•拡張性にすぐれ、既存システムの継続利用を可能にした、アーキテクチャを採用
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
6
WEPOS
UNITEは、下記WEPOSのサイトでもご確認できます。
http://www.microsoft.com/japan/windows/embedded/eval/wepos/catalog/sorimachi/unite.mspx
http://www.windowsembeddeddevices.com/wepos/search.aspx?Type=Application&CategoryID=-1&Keywords=UNITE
ぜひご覧ください。
さて 本題です。
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
7
POSアプリケーション開発手法の変遷(1)
オープンアーキテクチャ以前
デバイス専用OS/汎用カスタマイズOS
ハードウェア依存の開発言語(特殊マクロアセンブラ)
CコンパイラやPASCALコンパイラを独自作成
CPUメーカーが提供するコンパイラを使用
ただしライブラリは独自作成 (例:C言語のmemcpyすら独自作成)
•とにかく動作すること
•システムリソースを節約する
•可能な限り高速に動作
POSアプリケーション開発手法の変遷(2)
オープンアーキテクチャが市場を形成(1)
DOS
業界標準Cコンパイラ/ライブラリの登場
IBM-PC, NEC-PC98双方での互換ライブラリを作成
GUI(CUI:罫線情報と文字で画面構成)ツールを独自作成
そろそろC++に…
•構造化設計・開発
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
8
POSアプリケーション開発手法の変遷(3)
Windows起爆前夜
Windows (3.1)
標準的なGUIセットが登場
標準的な「ハードウェア非依存」ライブラリが登場
C++が浸透
Visual Basic の楽さにお手上げ
•オブジェクト指向設計・開発
POSアプリケーション開発手法の変遷(4)
Visual Basic 全盛期
Windows (95/NT~)
業務アプリケーションの構築ツールとして使用できる強力なVisual Basic
OPOS OCX
VB開発者の急増
•システム・アーキテクチャ
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
9
POSアプリケーション開発手法の変遷(5)
Emb / POS for .NET
POSのシステム資源とOSフットプリントの戦い
安定性を重視した(枯れた)システムリソース
ISVも活躍できる高互換性
しかし開発手法は変えたくない
肥大化するアプリケーションと開発資源の戦い
豊富なVB or Windows エンジニアに開発させたい
•システム・アーキテクチャ
•プログラミングモデル継承
OPOS と POS for .NET; OPOSの時代
OPOS
デバイスアクセスを抽象化
Scanner.Open(“SCANNER”);
Scanner.Claim(10000);
Scanner.DeviceEnabled = true;
Scanner.DataEventEnabled = true;
RS-232Cからの脱出
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
10
OPOS と POS for .NET; POS for .NET
コーディングイメージ
デバイスのさらなる抽象化PosExplorer posExplorer = new posExplorer();
DeviceInfo dev = posExplorer.GetDevice(DeviceType.Scanner, "logicalName");
Scanner scn = (Scanner)posExplorer.CreateInstance(dev);
// イベントハンドラ設定
scn.DataEvent += new DeviceEventHandler(Scanner_DataEvent);
// OPOS準拠の初期化
scn.Open();
scn.Claim(10000);
scn.DeviceEnabled = true;
scn.DataEventEnabled = true;
ファクトリ
パターン
OPOS と POS for .NET; POS for .NET
OPOS からの改善(抜粋)
デバイスのさらなる抽象化
COを共通にしてどのデバイス(SO)でも使用可
プラグアンドプレイサポート
故障デバイスの動的交換
デバイス排他、入力モデル、出力モデルはOPOS準拠
使い慣れたモデルを継承
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11
OPOS と POS for .NET; OPOSアーキテクチャ
POS Application(VB)
Common CO
Leg
acy
SO
Leg
acy
SO
Leg
acy
SO
COM
Win32
Vender CO
Leg
acy
SO
Leg
acy
SO
Leg
acy
SO
OPOS と POS for .NET; POS for.NETアーキテクチャ
POS ApplicationAdmin Tools
Public API
SO Device Classes SO Enumerator
Legacy Interop
Leg
acy
SO
Leg
acy
SO
Leg
acy
SO
.NET S
O
.NET S
O
.NET S
O
.Co
nfi
gM
an
ag
er
Pn
P S
ub
syst
em
COM .NET Framework
Win32
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
12
POS for .NETでの構築
POS for .NET 採用のメリット
非常に強力な開発ツール(Visual Studio)
洗練された言語(C#, VB.NET)
多くの開発者が携わる
自分たちに都合のよいフレームワークを構築可能
なじみ深いプログラミングモデル
POS for .NETでの構築; 開発者利益の拡張
アプリケーション開発者からみた
興味深いマイクロソフト社の変化
実装生産性の向上に主眼を置く
上流工程(分析・設計・実装戦略)へ大拡張
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
13
POS for .NETでの構築; 上流工程の意識
フレームワークとアーキテクチャ
アーキテクチャとフレームワークは直接関係しない
フレームワークを使わずともアーキテクチャは構築可能
開発方針書やルールブックで規定する(理想論)
アーキテクチャはルールだけでは維持/徹底できない
開発者にアーキテクチャへの対応を強制する仕組みが必要
アーキテクチャを実現するためのフレームワークが必須
POS for .NETによる開発(全体の構造)
Co
mm
un
icatio
n
Op
era
tion
al M
an
ag
em
en
t
Secu
rity
Settin
g File
s
Database
TinyDAO
BizEvent BizScenario
BizFramework
UIFramework
AppControl UseCase PosDeviceManagerPresentation
Layer
Business
Layer
.NET Framework
BizProxy
Data
Layer
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
14
参考:Application Architecture for .NET
ユーザーインタフェース
ユーザーインタフェースプロセス
ビジネスワークフロー
データアクセス
ビジネスコンポーネント
ビジネスエンティティ
サービスエージェント
サービスインタフェース
セキュリティ
コミュニケーション
オペレーション
プレゼンテーション層
ビジネスロジック層
データ層
外部サービス
ユーザーデバイス
データソース
POS for .NETでの開発(全体の構造)
Co
mm
un
icatio
n
Op
era
tion
al M
an
ag
em
en
t
Secu
rity
Settin
g File
s
Database
TinyDAO
BizEvent BizScenario
BizFramework
UIFramework
AppControl UseCase PosDeviceManagerPresentation
Layer
Business
Layer
.NET Framework
BizProxy
Data
Layer
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
15
POS for .NETでの開発;OPOS資産活用
POS Device Manager
OPOS OCX
Win32
POS for .net
Demo
•POS for .NET SDK 1.11
(Required .NET Framework 2.0)
•SDK Sample Scanner Device
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
16
導入事例
株式会社キタムラ様(DPE・カメラ用品)
コントワー・デ・コトニエジャパン株式会社様(レディース衣料)
トリンプ・インターナショナル・ジャパン株式会社様 (インナーウェア)
他
導入事例でのカスタマイズ
Co
mm
un
icatio
n
Op
era
tion
al M
an
ag
em
en
t
Secu
rity
Settin
g File
s
Database
TinyDAO
BizEvent BizScenario
BizFramework
UIFramework
AppControl UseCase PosDeviceManagerPresentation
Layer
Business
Layer
.NET Framework
BizProxy
Data
Layer
Windows XP Embedded 開発-6
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
17
ご拝聴いただき、ありがとうございました!
http://www.s-giken.co.jp/
mailto:[email protected]