{"id":1570,"date":"2017-07-20T17:43:53","date_gmt":"2017-07-20T09:43:53","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=1570"},"modified":"2017-07-23T07:38:12","modified_gmt":"2017-07-22T23:38:12","slug":"gmis%e6%89%a9%e5%b1%95%e5%8a%9f%e8%83%bd%e6%a8%a1%e5%9d%97%e5%bc%80%e5%8f%91%e5%8f%82%e8%80%83ext-modules","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gmis%e6%89%a9%e5%b1%95%e5%8a%9f%e8%83%bd%e6%a8%a1%e5%9d%97%e5%bc%80%e5%8f%91%e5%8f%82%e8%80%83ext-modules\/","title":{"rendered":"-gMIS\u6269\u5c55\u529f\u80fd\u6a21\u5757\u5f00\u53d1\u53c2\u8003\/ext modules"},"content":{"rendered":"<p>-gMIS \u4e3b\u8981\u9762\u5411\u6570\u636e\u8868\u7684\u7ba1\u7406\u4e0e\u64cd\u4f5c\uff0c\u63d0\u4f9b\u4e00\u79cd\u6570\u636e\u8868\u5373\u7ba1\u7406\u4fe1\u606f\u7cfb\u7edf\u7684\u4fbf\u6377\u8def\u5f84\u3002<\/p>\n<p>\u968f\u7740\u5e94\u7528\u573a\u666f\u7684\u589e\u591a\u548c\u6240\u627f\u62c5\u529f\u80fd\u7684\u4e30\u5bcc\uff0c\u5728\u4fe1\u606f\u4fe1\u606f\u7cfb\u7edf\u4e2d\u589e\u52a0\u4e00\u4e9b\u7279\u6709\u7684\u529f\u80fd\u6210\u4e3a\u5fc5\u9700\uff0c\u5728 -gMIS \u4e2d\u901a\u8fc7\u6269\u5c55\u6a21\u5757\u529f\u80fd\u6765\u5f00\u53d1\u5b9e\u73b0\u3002<\/p>\n<p>\u5728 -gMIS \u7684\u5efa\u6784\u4e2d\uff0c extra \u5b50\u76ee\u5f55\u7528\u6765\u5b58\u50a8\u4e00\u4e9b\u7279\u6b8a\u529f\u80fd \u7684\u5b9e\u73b0\uff0c\u5982\u4e0b\u4ee5\u4e00\u4e2a\u540d\u4e3a helloworld\u7684\u6269\u589e\u6a21\u5757\u529f\u80fd\u6765\u63cf\u8ff0 -gMIS \u6269\u5c55\u5f00\u53d1\u7684\u8fc7\u7a0b\u3002\u6b64\u524d -gMIS \u5185\u5efa\u7684extra\u5305\u62ec \u53ef\u89c6\u5316\u7f16\u8f91\u5668\uff08\u96c6\u6210 -baidu-editor\uff09\uff0c\u6811\u5f62\u76ee\u5f55Xdirectory \uff0c\u90ae\u4ef6\u53d1\u9001sendMail\uff0c\u5173\u8054\u8868\u6302\u63a5linkTbl\u7b49\u6269\u5c55\u529f\u80fd\u3002<\/p>\n<p>\u7531\u4e8e gMIS \u662f\u901a\u8fc7 -GWA2 \u6765\u8fdb\u884c\u5f00\u53d1\u7684\uff0c\u6240\u4ee5 gMIS \u7684\u6269\u5c55\u63a7\u4ef6\u5f00\u53d1\u4ecd\u7136\u6cbf\u7528 -GWA2 \u4e2d\u5e38\u89c1\u7684 MVC \u7684\u8bbe\u8ba1\u601d\u8def\u3002<\/p>\n<p><strong>0. \u8bbe\u7f6e\u5165\u53e3<\/strong><br \/>\u5728 \u7cfb\u7edf\u7ba1\u7406 &#8212; \u83dc\u5355\u7ba1\u7406 \u4e2d\u8bbe\u7f6e\u6269\u589e\u529f\u80fd\u6a21\u5757\u7684\u8bbf\u95ee\u5165\u53e3\u3002<br \/>\u5176\u4e2d\u6a21\u5757\u540d\u79f0\u5b57\u6bb5\u7559\u767d\uff0c\u5728\u52a8\u6001\u53c2\u6570\u4e2d\u4ece ext\/\u5b50\u76ee\u5f55\u5f00\u59cb\u5199\u8d77\uff0c\u5982\uff0c<br \/>extra\/helloworld.php<\/p>\n<p><strong>1. \u7a0b\u5e8f\u7ed3\u6784<\/strong><br \/>\u5165\u53e3\u7a0b\u5e8f\u653e\u5165\u9879\u76ee\u5b50\u76ee\u5f55 ext\/ \u4e0b\uff0c\u4e3a extra\/helloworld.php<br \/>\u89c6\u56fe\u7a0b\u5e8f\u653e\u5165\u9879\u76ee\u5b50\u76ee\u5f55 view\/ \u4e0b\uff0c \u4e3a view\/helloworld.html<br \/>\u7531\u4e8e -gMIS \u662f\u57fa\u4e8e -GWA2 \u8fdb\u884c\u5f00\u53d1\uff0c\u6240\u4ee5\u5728\u63a7\u5236\u5668 ext\/helloworld.php \u4e2d\uff0c\u53ef\u4ee5\u5f15\u5165\u8fd0\u884c\u65f6\u5168\u5c40\u53d8\u91cf\uff0c\u5171\u4eab\u57fa\u7840\u8bbe\u65bd\uff0c\u5176\u4e2d $gtbl \u4e3aGTbl.class \u7684\u5b9e\u4f8b\u5316.<\/p>\n<p>extra\/helloword.php \u00a0\u7684\u5927\u81f4\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<blockquote>\n<p>require(&#8220;..\/comm\/header.inc.php&#8221;);<br \/>include_once($appdir.&#8221;\/comm\/tblconf.php&#8221;);<br \/># Objects<br \/>include($appdir.&#8221;\/class\/class.helloworld.php&#8221;);<br \/># Variables<br \/>$helloObj = new HelloWorld();<br \/>$act = Wht::get($_REQUEST, &#8220;act&#8221;);<br \/># Actions<br \/>if($act == &#8220;step1&#8221;){<br \/>\u00a0 \u00a0 # somthing to do<br \/>}<br \/>else if($act == &#8220;step2&#8221;){<br \/>\u00a0 \u00a0 # something to do<br \/>}<br \/># Outputs<br \/>$smttpl = &#8220;helloworld.html&#8221;;<br \/>$smt-&gt;assign(&#8220;output&#8221;, $out);<br \/>$smt-&gt;assign(&#8220;sid&#8221;, $sid);<br \/>$smt-&gt;assign(&#8220;rtvdir&#8221;, $rtvdir);<br \/>require(&#8220;..\/comm\/footer.inc.php&#8221;);<\/p>\n<\/blockquote>\n<p>\u5728 extra\u5b50\u76ee\u5f55\u4e0b\u9ed8\u8ba4\u7ed9\u4e86\u4e00\u4e2a extra_example.php \u7684\u793a\u4f8b\u7a0b\u5e8f\u3002<\/p>\n<p>\u89c6\u56fe\u6587\u4ef6\u662f\u57fa\u4e8e -Smarty \u6a21\u677f\u7cfb\u7edf\u5b9e\u73b0\uff0c\u6a21\u677f\u73af\u5883\u53d8\u91cf\u7531 $smt \u5bf9\u8c61\u63d0\u4f9b\uff0c\u5176\u4e2d $smttpl \u4e3a\u6307\u5b9a\u8981\u5448\u73b0\u7684\u89c6\u56fe\u6587\u4ef6\uff0c\u8fd9\u4e9b\u5728 -GWA2 \u7684\u5f00\u53d1\u6587\u6863\u4e2d\u6709\u76f8\u5e94\u7684\u8bf4\u660e\u3002<\/p>\n<p>view\/helloworld.html \u7684\u5927\u81f4\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<blockquote>\n<p>{include file=&#8221;header.html&#8221;}<br \/>&lt;!&#8211; main content bgn &#8211;&gt;<br \/>{$output}<br \/>&lt;!&#8211; main content end &#8211;&gt;<br \/>{include file=&#8221;footer.html&#8221;}<\/p>\n<\/blockquote>\n<p>-Smarty \u76f8\u5173\u7684\u8bed\u6cd5\u6807\u8bc6\uff0c\u53ef\u4ee5\u53c2\u8003 -GWA2 \u5f00\u53d1\u6587\u6863\u6216\u8005 -Smarty \u5f00\u53d1\u624b\u518c.<\/p>\n<p><strong>3. \u7a0b\u5e8f\u95f4\u7684\u8026\u5408<\/strong><br \/>\u5f53 comm\/navimenu \u6a21\u5757\u901a\u8fc7 \u7cfb\u7edf\u8bbe\u7f6e &#8212; \u83dc\u5355\u8c03\u6574 \u8bfb\u53d6\u5230 modulename \u4e3a\u7a7a\u800c\u52a8\u6001\u53c2\u6570\u4e0d\u4e3a\u7a7a\u7684\u8bbe\u7f6e\u9879\u65f6\uff0c\u6309\u7ea6\u5b9a\u751f\u6210\u6307\u5411\u52a8\u6001\u53c2\u6570\u7684\u76ee\u6807\u5730\u5740\uff0c\u540c\u65f6\u5411\u8be5\u5730\u5740\u9644\u5e26\u7528\u4e8e\u7528\u6237\u8eab\u4efd\u9274\u6743\u7684\u5168\u5c40 $sid \u53c2\u6570\u3002<\/p>\n<p>\u4f9d\u9760 $sid \u53c2\u6570\u7684\u900f\u4f20\uff0c\u8fd0\u884c\u65f6\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u7531\u6570\u636e\u8868\u7ba1\u7406\u7a7a\u95f4\u5171\u4eab\u7ed9\u6269\u5c55\u6a21\u5757\uff0c\u540c\u6837\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u6a21\u5757\u8bfb\u5199\u6570\u636e\u8868\u7a7a\u95f4\u6570\u636e\uff0c\u4ee5\u6b64\u7a0b\u5e8f\u95f4\u7684\u8026\u5408\u5b9e\u73b0\u5bf9\u529f\u80fd\u7684\u96c6\u6210\u3002<\/p>\n<p>\u4e3a\u5b9e\u73b0\u5bf9\u8bbf\u95ee\u8def\u5f84\u7684\u7edf\u4e00\u5316\u89c6\u56fe\uff0cmodulepath \u751f\u6210\u6a21\u5757\u5355\u72ec\u8fdb\u884c\u5c01\u88c5\uff0c\u65b0\u589e comm\/modulepath.inc.php, \u9ed8\u8ba4\u5728 ido.php \u4e2d\u8fdb\u884c\u8c03\u7528\uff0c\u5728\u5176\u4ed6 extra\u6a21\u5757\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u5f15\u7528\u8be5\u529f\u80fd\uff0c\u5feb\u6377\u751f\u6210\u6a21\u5757\u7684\u8bbf\u95ee\u8def\u5f84\u3002<\/p>\n<p><strong>4. \u5176\u4ed6\u66f4\u65b0<\/strong><br \/>\u8fd9\u671f\u95f4\uff0c\u8fd8\u5bf9 gMIS \u7684\u9996\u9875\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u589e\u52a0\u663e\u793a\u4e86\u5f53\u524d\u4e00\u6bb5\u65f6\u95f4\u5185\u767b\u5f55\u6d3b\u8dc3\u7528\u6237\u60c5\u51b5\uff1b<br \/>\u4fee\u6b63Memcached\u7f13\u5b58bug\uff1b<br \/>\u4f18\u5316\u663e\u793a\u4e86\u76f8\u5173\u6a21\u5757\u7684\u529f\u80fd\uff0c\u9ed8\u8ba4\u663e\u793a\u5f53\u524d\u9875\u9762\u540c\u7ea7\u522b\u7684\u529f\u80fd\u5217\u8868\u3002<\/p>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2017\/07\/gmis@oschina.201707-1024x662.jpg\" width=\"591\" height=\"382\" \/><\/p>\n<p>gMIS \u6e90\u4ee3\u7801\u540c\u65f6\u6258\u7ba1\u5728<a href=\"https:\/\/git.oschina.net\/xenxin\/gMIS\"> -OSChina <\/a>\u4e0a\uff0c\u5e76\u83b7\u5f97\u201c<a href=\"https:\/\/git.oschina.net\/xenxin\/gMIS\">\u63a8\u8350 -gMIS<\/a>\u201d\u3002<\/p>\n<p><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2016\/08\/gmis-logo-201606.jpg\" \/><\/p>\n<p>-gMIS \u662f\u4e00\u79cd\u57fa\u4e8e -GWA2 \u7684\u901a\u7528\u7ba1\u7406\u4fe1\u606f\u7cfb\u7edf\u8f6f\u4ef6\uff0c\u5177\u6709\u53ef\u914d\u7f6e\u7684\u8f93\u5165\u548c\u8f93\u51fa\u63a5\u53e3\u3002<br \/>\u53ef\u4ee5\u5728\u5176\u4e0a\u6784\u5efa\u5404\u79cd\u7ba1\u7406\u5e94\u7528\u8f6f\u4ef6\u7cfb\u7edf\uff0c\u5982<br \/>\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf\uff08CMS\uff09\uff0c\u5ba2\u6237\u8d44\u6e90\u7ba1\u7406(CRM), \u00a0\u4f01\u4e1a\u8d44\u6e90\u8ba1\u5212\u7ba1\u7406\uff08ERP\uff09\uff0c<br \/>\u529e\u516c\u81ea\u52a8\u5316\u7cfb\u7edf\uff08OA\uff09\u7b49, \u4ee5\u53ca\u5404\u79cd\u884c\u4e1a\u5e94\u7528\u7ba1\u7406\u7cfb\u7edf\u8f6f\u4ef6\uff0c\u5982<br \/>\u4eba\u529b\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\uff08HR\uff09\uff0c\u5b66\u751f\u7ba1\u7406\uff0c\u6863\u6848\u7ba1\u7406\uff0c\u65c5\u6e38\u7ba1\u7406\uff0c\u56fe\u4e66\u7ba1\u7406\uff0c<br \/>\u5546\u54c1\u7ba1\u7406\u53ca\u4e1a\u52a1\u8fd0\u8425\u652f\u6491\u7cfb\u7edf\u7b49\u7b49\u3002<br \/>\u5b9e\u73b0\u96f6\u4ee3\u7801\u5f00\u53d1\u3001\u642d\u5efa\u5404\u79cd\u7ba1\u7406\u4fe1\u606f\u7cfb\u7edf\uff08MIS\uff09.<\/p>\n<p><b>Lower Costs, \u8f83\u4f4e\u6210\u672c; Better Productivity, \u8f83\u9ad8\u6548\u7387<\/b>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>-gMIS \u4e3b\u8981\u9762\u5411\u6570\u636e\u8868\u7684\u7ba1\u7406\u4e0e\u64cd\u4f5c\uff0c\u63d0\u4f9b\u4e00\u79cd\u6570\u636e\u8868\u5373\u7ba1\u7406\u4fe1\u606f\u7cfb\u7edf\u7684\u4fbf\u6377\u8def\u5f84\u3002 &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gmis%e6%89%a9%e5%b1%95%e5%8a%9f%e8%83%bd%e6%a8%a1%e5%9d%97%e5%bc%80%e5%8f%91%e5%8f%82%e8%80%83ext-modules\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":1331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41,42,6,2],"tags":[20,199,86,200],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/1570"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=1570"}],"version-history":[{"count":11,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/1570\/revisions"}],"predecessor-version":[{"id":1584,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/1570\/revisions\/1584"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media\/1331"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}