オープンプロジェクト

Download Report

Transcript オープンプロジェクト

2014年5月10日
@オープンソース・ワークショップ
1.
2.
3.
4.
5.
はじめに [5min]
お知らせ [5min]
特別編 [50min]
オープンプロジェクト [60min]
モクモク会 [60min]
2
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
1.
2.
3.
4.
5.
はじめに
お知らせ
特別編
オープンプロジェクト
モクモク会
3
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
目的
ADempiereに関する知識を共有し、全般的な理解を深める。
想定参加者
ADempiereの利用に興味を持っている人
(当面はユーザ視点に立ち、ADempiereの標準機能を説明の中心とする。)
参加者の前提知識
特になし
勉強会の構成
・業務編
・システム編
・特別編
参考資料
●Bayu Chauya Pamungkas, “ADempiere 3.4 ERP Solutions “, PACKT
●湯浅和雄, 「この1冊ですべてわかる 物流とロジスティクスの基本」, 日本実業出版社
4
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
本勉強会では、ADempiereの導入支援として、基礎となる体系的な情報整理とその共有を目指し
ます。コミュニティ参加者には本勉強会の知識をベースとして、より高次の理解に取り組んで頂き、
知り得た内容を、コミュニティに共有頂く、といった”お互いに教えあう場”となればと考えています。
理解度
実利用に求められる
知識に対して、体系的
な整理が行われてい
ない
領域
理解度
以前の課題
勉強会の目標
5
連続勉強会により、
体系的な情報整理
⇒勉強会の知識を基礎と
して、より高次の知見へ展
開
領域
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
勉強会参加者の興味対象は、人によって異なるため、必ずしも参加者全員の知的欲求を満たせると
は限りません。
当活動はボランティアベースであるため、Bさん、Cさんの興味対象であるがAさんの興味対象外の事
柄については、Aさんに期待するのではなく、各自で取り組んでみましょう。
Cさんの興味
Aさんの興味
Bさんの興味
6
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
ADempiereの概要
中小企業向けERPとして開発されたCompiereから2006年に分岐して、開発されている
ソフトウェアおよび、その開発コミュニティ。
Eric Raymondの著作、『伽藍とバザール』のバザール方式により開発がすすめられて
いるプロジェクト。
ADempiereのシステム機能
–
–
–
–
–
–
Enterprise Resource Planning (ERP)
Supply Chain Management (SCM)
Customer Relationship Management (CRM)
Financial Performance Analysis
Integrated Point of sale (POS) solution
Integrated Web Store
7
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
8
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
注文
生産
発注
出荷
在庫
入荷
商品
売上
販売管理
請求書
生産・在庫管理
商品
商品
仕入
取引先
購買管理
財務
会計
債権
管理
代金
注文
受注
商品
顧客
発注指示
受注情報
請求書
財務会計
債務
管理
入金
人事
給与
支払
債権管理
人事管理
債務管理
9
代金
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
1.
2.
3.
4.
5.
はじめに
お知らせ
特別編
オープンプロジェクト
モクモク会
10
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
• iDempiere Installation Script
– http://www.chuckboecking.com/blog/bid/388672/iDempiereInstallation-Script-Now-Supports-Ubuntu-14-04LTS
11
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
• iDempiere Wiki更新
– Xxx
• ADempiere Wiki
– Theme Management
• http://www.adempiere.com/index.php?title=Theme_Management&oldid=53880
– Getting Started
• http://www.adempiere.com/JP/Table_of_Contents#Getting_Started
12
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
• iDempiere is using ZK Community Edition
– https://groups.google.com/forum/?hl=ja&fromgroups#!topic/idempie
re/-9-QRzWeJwU
13
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
1. はじめに
2. お知らせ
3. 特別編
1.
2.
3.
実運用導入事例
Webサービスの概説
Lightening Talk
4. オープンプロジェクト
5. 今後の活動
14
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
15
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
ブラウザ
Webサーバー
16
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
GET /www.yoheim.net/?key1=value1&key2=value2 HTTP/1.1
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:Shift_JIS,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:ja,en-US;q=0.8,en;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Cookie:utma=something;
Host:www.yoheim.net
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4)
AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.54
Safari/536.5
参考) YoheiM.NET
http://www.yoheim.net/blog.php?q=20120611
17
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
POST /www.yoheim.net/ HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4)
AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.54 Safari/536.5
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.
8,image/png,*/*;q=0.5
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: text/plain
Content-Length: 23
key1=value1&key2=value2
18
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
HTTP/1.1 200 OK
Date: Sun, 10 Oct 2010 23:26:07 GMT
Server: Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g
Last-Modified: Sun, 26 Sep 2010 22:04:35 GMT
ETag: "45b6-834-49130cc1182c0"
Accept-Ranges: bytes
Content-Length: 13
Connection: close
Content-Type: text/html
Hello world!
19
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
ブラウザ
Webコンテナ
DBサーバー
C
Servlet
ブラウザ
M
JavaBeans
V
JSP
20
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
ブラウザ
Webコンテナ
DBサーバー
SOAPサーバー
C
Servlet
V
SOAP
M
API
JavaBeans
Serv
Func
SOAPサーバー ターゲットメソッド
JSP
21
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
Webサービス
Request
REST
(Representatial State Transfer)
GETもしくはPOSTにてパ HTTP Response Bodyに
ラメータを連携
XMLフォーマットで処理
結果を格納。
HTTP Request Bodyに
SOAP
(Simple Object Access Protocol)
Response
XMLフォーマットでパラ
メータを連携
22
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
HTTP Request
GET /WebSite1/WebService.asmx/getHello?str=string HTTP/1.1
Host: localhost
HTTP Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>
23
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
HTTP Request
POST /WebSite1/WebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/getHello"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getHello xmlns="http://tempuri.org/">
<str>string</str>
</getHello>
</soap:Body>
</soap:Envelope>
24
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
HTTP Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getHelloResponse xmlns="http://tempuri.org/">
<getHelloResult>string</getHelloResult>
</getHelloResponse>
</soap:Body>
</soap:Envelope>
25
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
function requestRest(){
} catch (e){
// XMLHttpRequestの作成に失敗
}
var endpoint = "http://ホスト名
/WebSite1/WebService.asmx"; // 送信先
var param1 = "keywork";
// パラメータ
}
}
xmlhttp.onreadystatechange = method1; // レ
スポンスを受け取った時に呼ばれるメソッドを指定
xmlhttp.open('GET', url, true);
xmlhttp.setRequestHeader ("ContentType","text/xml; charset=utf-8");
// URLを生成
var url = endpoint + "/getHello?str=" +
encodeURI(param1) + "&dummy="+(new
Date().getTime());
// XMLHttpRequestを作成
try {
xmlhttp = new XMLHttpRequest();
Netscape, Firefoxなど
} catch (e){
try {
xmlhttp = new ActiveXObject
("Msxml2.XMLHTTP"); // IE
} catch (e){
try {
xmlhttp = new ActiveXObject
("Microsoft.XMLHTTP"); // IE
xmlhttp.send(); // RESTで送信
//
}
function method1() {
if (xmlhttp.readyState == 4 && xmlhttp.status ==
200) {
alert(xmlhttp.responseText); // 結果をデバッ
グ表示
}
}
26
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
function requestSoap(){
xmlhttp.onreadystatechange = method2; // レスポンスを受け取っ
var endpoint = "http://ホスト名/WebSite1/WebService.asmx"; // 送 た時に呼ばれるメソッドを指定
xmlhttp.open('POST', endpoint, true);
信先
xmlhttp.setRequestHeader ("Content-Type","text/xml; charset=utfvar param1 = "keywork";
// パラメータ
8");
xmlhttp.setRequestHeader
// SOAPメッセージを作成
var msg = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\
("SOAPAction","\"http://tempuri.org/getHello\"");
<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchemainstance\" \n\
xmlhttp.send(msg); // SOAPメッセージを送信
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \n\
}
xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n\
<soap:Body>\n\
<getHello xmlns=\"http://tempuri.org/\">\n\
<str>" + param1 + "</str>\n\
</getHello>\n\
</soap:Body>\n\
</soap:Envelope>";
function method2() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
xmlDoc = xmlhttp.responseXML; // 結果をDOMオブジェクトとし
て取得
}
}
// XMLHttpRequestを作成
try {
xmlhttp = new XMLHttpRequest(); // Netscape, Firefoxなど
} catch (e){
try {
xmlhttp = new ActiveXObject ("Msxml2.XMLHTTP"); // IE
} catch (e){
try {
xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); // IE
} catch (e){
// XMLHttpRequestの作成に失敗
}
}
}
27
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
28
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
1.
2.
3.
4.
5.
6.
はじめに
お知らせ
特別編
オープンプロジェクト
今後の活動
モクモク会
29
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
勘定科目データの準備
初期クライアントセットアップ
組織のセットアップ
会計スキーマのセットアップ
会計カレンダのセットアップ
取引先のセットアップ
銀行のセットアップ
現金出納帳のセットアップ
手数料のセットアップ
通貨のセットアップ
プライスリストのセットアップ
製品のセットアップ
製品価格の自動設定
30
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
1. 補充レポートの登録
31
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
仕入対象とする製品ごとに、在庫補充 (purchase requisition)のルールを管理することができます。
在庫補充の設定に関連するERDを以下に示す。
M_Replenish
(Replenish)
M_Product
(Product)
M_Product_PO
(Purchasing)
M_Requisition
(Requisition)
M_RequisitionLine
(Requisition Line)
ADempiere ERD
http://www.adempiere.com/technical/340/schemaspy/
32
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
補充レポートを利用することで、ユーザーが定義する在庫補充ルールに基づき、発注数量を自動設
定させることができます。
項目
内容
設定例
補充タイプ
(Replenish Type)
補充ルール
-Custom
-Maintain
-Maximum Level
-Manual
-Reorder below Minimum Level
最小在庫レベル
(Minimum Level)
最小在庫レベル
最大在庫レベル
Maximum Level
最大在庫レベル
供給元倉庫
(Source Warehouse)
供給元を指定すると、発注
ではなく、在庫移動が行わ
れる?(要確認)
33
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
1.
2.
3.
4.
5.
はじめに
お知らせ
特別編
オープンプロジェクト
モクモク会
34
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.
著作権
本書の記載内容は、著作権の対象となっています。
本書の内容の全部または一部について、私的使用または引用等著作権法上認められた行為として、適
宜の方法により出所を明示することにより、引用・転載複製を行うことができます。
免責事項
本書に記載されている情報の正確さについては万全を期しておりますが、利用者が本書の情報を用い
て行う一切の行為について、何ら責任を負うものではありません。
その他
本書は、予告なしに内容を変更またはSourceForge.jpからの公開の取りやめを行う場合がありますが、あ
らかじめご了承ください。
本書の記載内容に関するお問い合わせ先
Open Source ERP Users Group
http://www.oss-erp.jp/
35
Copyright © 2013 Open Source ERP Users Group
All Rights Reserved.