{"id":345,"date":"2013-10-13T11:04:06","date_gmt":"2013-10-13T02:04:06","guid":{"rendered":"http:\/\/www.sambuichi.jp\/?p=345"},"modified":"2014-07-25T10:23:07","modified_gmt":"2014-07-25T01:23:07","slug":"xbrl-gl%e9%96%b2%e8%a6%a7%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e8%a9%a6%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=345","title":{"rendered":"XBRL GL\u95b2\u89a7\u30b5\u30fc\u30d3\u30b9[\u8a66\u4f5c](1\/3)"},"content":{"rendered":"<p>Views: 129<\/p><h1>XBRL GL \u95b2\u89a7\u30b5\u30fc\u30d3\u30b9<\/h1>\n<p>\u4f1a\u8a08\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u51fa\u529b\u3055\u308c\u305fXBRL GL\u6587\u66f8\u3092\u95b2\u89a7\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u8a66\u4f5c\u3057\u307e\u3057\u305f\u3002<br \/>\n(\u30bd\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u6b21\u306e<a href=\"https:\/\/github.com\/sunbridge\/xbrlgl\">GitHub<\/a>\u306b\u767b\u9332\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002)<\/p>\n<p>1. iphix\u30b5\u30f3\u30d7\u30eb(XBRL 2.1)<br \/>\n<a href=\"http:\/\/www.sambuichi.jp\/xbrlgl\/index.html\" target=\"_blank\">http:\/\/www.sambuichi.jp\/xbrlgl\/index.html<\/a><br \/>\nOriginal file location <a href=\"http:\/\/gl.iphix.net\/files.htm\" target=\"_blank\">http:\/\/gl.iphix.net\/files.htm<\/a><\/p>\n<p>2. PCA\u4f1a\u8a08(XBRL 2.0a)<br \/>\n2.1 \u4f1d\u7968\u5358\u4f4d\u3067XBRL\u306e\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u3092\u8868\u793a<br \/>\n<a href=\"http:\/\/www.sambuichi.jp\/xbrlgl\/pca.html\" target=\"_blank\">http:\/\/www.sambuichi.jp\/xbrlgl\/pca.html<\/a><br \/>\n2.2 \u4f1d\u7968\u5358\u4f4d\u3067\u4ed5\u8a33\u3092\u8868\u793a<br \/>\n<a href=\"http:\/\/www.sambuichi.jp\/xbrlgl\/journal_entry.html\" target=\"_blank\">http:\/\/www.sambuichi.jp\/xbrlgl\/journal_entry.html<\/a><br \/>\n2.3 \u8907\u6570\u4f1d\u7968\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u3057\u3001\u6708\u5225\u30fb\u79d1\u76ee\u5225\u306b\u307e\u3068\u3081\u3066\u8868\u793a<br \/>\n<a href=\"http:\/\/www.sambuichi.jp\/xbrlgl\/list.html\" target=\"_blank\">http:\/\/www.sambuichi.jp\/xbrlgl\/list.html<\/a><br \/>\n<!--more--><\/p>\n<h1>jQuery\u306eXML\u6a5f\u80fd<\/h1>\n<p>1. 2. 2.1. 2.2 \u306f\u3001XBRL\u30d5\u30a1\u30a4\u30eb\u3092HTML5, CSS3, jQuery, javascript\u3067\u51e6\u7406\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nXBRL\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u6587\u66f8\u3092XML\u6587\u66f8\u3068\u3057\u3066\u51e6\u7406\u3059\u308b\u305f\u3081\u3001jQuery\u306eXML\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<br \/>\nXBRL GL\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4e8b\u524d\u306b\u30b5\u30fc\u30d0\u30fc\u306b\u767b\u9332\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3068\u6b21\u306e\u95a2\u6570\u304c\u547c\u3070\u308c\u3001\u30ea\u30b9\u30c8\u304b\u3089\u9078\u629e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092load_xmlfile()\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"small\">[javascript] glLoad \u95a2\u6570<\/span><\/p>\n<div class=\"codex\">\n<pre><code>function glLoad() {\r\n    var glSelectList = $('select#glselect');\r\n    var url = $('option:selected', glSelectList).val();\r\n    load_xmlfile(url);\r\n}\r\n<\/code><\/pre>\n<\/div>\n<p>load_xmlfile(url)\u95a2\u6570\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u6307\u5b9a\u3055\u308c\u305fURL\u306b\u3042\u308bXBRL GL\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u305d\u306e\u5185\u5bb9\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u9001\u308a\u307e\u3059\u3002<\/p>\n<p><span class=\"small\">[javascript] load_xmlfile \u95a2\u6570<\/span><\/p>\n<div class=\"codex\">\n<pre><code>function load_xmlfile(url) {\r\n    $.ajax({\r\n        url : url,\r\n        type : 'GET',\r\n        dataType : 'text',\r\n        timeout : 1000,\r\n        error : fnc_xmlerr, \/\/call \"fnc_xmlerr\" on failure\r\n        success : fnc_xml   \/\/call \"fnc_xml\" on success\r\n    });\r\n};<\/code><\/pre>\n<\/div>\n<p>\u6b63\u5e38\u306b\u8aad\u307f\u8fbc\u307e\u308c\u305f\u3068\u304d\u306b\u306f\u3001fnc_xml(xml) \u95a2\u6570\u306e\u5f15\u6570\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u6587\u66f8\u304c\u6e21\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u308c\u3092jQuery\u3067\u89e3\u6790\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306e\u8a66\u4f5c\u3067\u306f\u3001GL\u306e\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u7406\u89e3\u3057\u305f\u3046\u3048\u3067\u3001\u69cb\u9020\u306b\u5408\u308f\u305b\u3066\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u305f\u3081\u3001\u500b\u5225\u62e1\u5f35\u3055\u308c\u3066\u3044\u308b\u5185\u5bb9\u306f\u51e6\u7406\u3067\u304d\u306a\u3044\u3068\u3044\u3063\u305f\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30c7\u30fc\u30bf\u306e\u62e1\u5f35\u306b\u5bfe\u5fdc\u3059\u308b\u5834\u5408\u3084\u3001\u30c7\u30fc\u30bf\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u30bf\u30af\u30bd\u30ce\u30df\u30fc\u3092\u89e3\u6790\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8aad\u307f\u8fbc\u3093\u3060XBRL\u6587\u66f8\u306f\u3001xml\u5909\u6570\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001$(xml).find(&#8220;\u3000\u6761\u4ef6\u3000&#8221;)\u3067\u5fc5\u8981\u306aXML\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3057\u3066\u51e6\u7406\u3057\u307e\u3059\u3002<br \/>\nXBRL GL\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u6587\u66f8\u306b\u306f\u3001&lt;gl-cor:accountingEntries&gt;\u8981\u7d20\u304c\u3042\u308b\u306e\u3067\u3001\u307e\u305a\u3053\u308c\u3092\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"small\">[javascript] accountingEntries, entryHeader, entryDetail \u8981\u7d20\u306e\u968e\u5c64\u3092\u53d6\u308a\u51fa\u3059\u7e70\u8fd4\u3057<\/span><\/p>\n<div class=\"codex\">\n<pre><code>\/\/ accountingEntries\r\n$accountingEntries = $(xml).find(\"gl-cor\\\\:accountingEntries\");\r\n\/\/ entryHeader\r\n$entryHeaders = $accountingEntries.find(\"gl-cor\\\\:entryHeader\");\r\n$entryHeaders.each(function(num, header) {\r\n    \/\/ entryDetail\r\n    $entryDetails = $(header).find(\"gl-cor\\\\:entryDetail\");\r\n    $entryDetails.each(function(line, detail) {\r\n        $account = $(detail).find(\"gl-cor\\\\:account\");\r\n        $accountMainDescription = $account.find(\"gl-cor\\\\:accountMainDescription\");\r\n        $accountSub = $account.find(\"gl-cor\\\\:accountSub\");\r\n        $accountSubDescription = $accountSub.find(\"gl-cor\\\\:accountSubDescription\");\r\n        $accountSubType = $accountSub.find(\"gl-cor\\\\:accountSubType\");\r\n        $amount = $(detail).find(\"gl-cor\\\\:amount\");\r\n        $debitCreditCode = $(detail).find(\"gl-cor\\\\:debitCreditCode\");\r\n        $postingDate = $(detail).find(\"gl-cor\\\\:postingDate\");\r\n        $detailComment = $(detail).find(\"gl-cor\\\\:detailComment\");\r\n    }    \r\n}<\/code><\/pre>\n<\/div>\n<p><span class=\"small\">[html] \u52d5\u7684&lt;table&gt;\u4f5c\u6210\u306e\u305f\u3081\u306e&lt;div&gt;<\/span><\/p>\n<div class=\"codex\">\n<pre><code>&lt;div id=\"trace\"&gt;&lt;\/div&gt;\r\n<\/code><\/pre>\n<\/div>\n<p><span class=\"small\">[javascript]\u3000\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3068&lt;table&gt;\u4f5c\u6210<\/span><\/p>\n<div class=\"codex\">\n<pre><code>$entryHeaders.each(function(num, header) {\r\n  \/\/ entryDetail\r\n  \/\/ &lt;table&gt;\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\r\n  $tableDetail = $('&lt;table class=\"detail\" width=\"97%\" border=\"1\" cellpadding=\"5\"&gt;&lt;\/table&gt;');\r\n  $(\"#trace\").append($tableDetail);\r\n  \/\/ entryDetail\u8981\u7d20\u305d\u308c\u305e\u308c\u51e6\u7406\u3057\u305d\u306e\u5185\u5bb9\u3092\u5909\u6570\u306b\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002\r\n  $entryDetails = $(header).find(\"gl-cor\\\\:entryDetail\");\r\n  $entryDetails.each(function(line, detail) {\r\n        \u2026 \u7701\u7565 \u2026\r\n      if ($debitCreditCode.text()=='debit') {\r\n        $tableDetail.append($(\"&lt;tr\/&gt;\")\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($postingDate.text()))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($accountMainDescription.text()))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($accountSubDescription.text()+\"(\"+$accountSubType.text()+\")\"))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text(\"\"))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text(\"\"))\r\n          .append($('&lt;td align=\"right\"&gt;&lt;\/td&gt;').text(addFigure($amount.text())))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text(\"\"))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($detailComment.text()))\r\n        );\r\n      }\r\n      else if ($debitCreditCode.text()=='credit') {\r\n        $tableDetail.append($(\"&lt;tr\/&gt;\")\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($postingDate.text()))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text(\"\"))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text(\"\"))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($accountMainDescription.text()))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($accountSubDescription.text()+\"(\"+$accountSubType.text()+\")\"))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text(\"\"))\r\n          .append($('&lt;td align=\"right\"&gt;&lt;\/td&gt;').text(addFigure($amount.text())))\r\n          .append($('&lt;td&gt;&lt;\/td&gt;').text($detailComment.text()))\r\n        );\r\n      }\r\n    }\r\n  }\r\n}<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Views: 129XBRL GL \u95b2\u89a7\u30b5\u30fc\u30d3\u30b9 \u4f1a\u8a08\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u51fa\u529b\u3055\u308c\u305fXBRL GL\u6587\u66f8\u3092\u95b2\u89a7\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u8a66\u4f5c\u3057\u307e\u3057\u305f\u3002 (\u30bd\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u6b21\u306eGitHub\u306b\u767b\u9332\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002) 1. iph [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":532,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/345"}],"collection":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=345"}],"version-history":[{"count":54,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/345\/revisions\/652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/532"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}