SMADB00400_용법관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>용법관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <mthdlist>
  11. <item>
  12. <mthdkind/>
  13. <mthdflag/>
  14. <mthdcd/>
  15. <abbrnm/>
  16. <mthdcnts1/>
  17. <mthdcnts2/>
  18. <mthdcnts3/>
  19. <mthdcnts4/>
  20. <dayno/>
  21. <cntpatt/>
  22. <basecnt/>
  23. <outprntseq/>
  24. <mthdengnm/>
  25. <basemthdyn/>
  26. <mealflag/>
  27. <lblprntyn/>
  28. <adminpath/>
  29. <drdirecyn/>
  30. </item>
  31. </mthdlist>
  32. </main>
  33. <send>
  34. <srchmthdkind>N</srchmthdkind>
  35. <srchmthdcd/>
  36. <req>
  37. <data1>
  38. </data1>
  39. </req>
  40. <srchbasemthdyn/>
  41. <srchbasecnt>-</srchbasecnt>
  42. </send>
  43. <init>
  44. <comboitem>
  45. <mthdkind>
  46. <A0017>
  47. <cdid/>
  48. <cdnm/>
  49. </A0017>
  50. </mthdkind>
  51. </comboitem>
  52. </init>
  53. <hidden>
  54. <count/>
  55. <item>
  56. <mthdkind/>
  57. <mthdflag/>
  58. <mthdcd/>
  59. <abbrnm/>
  60. <mthdcnts/>
  61. <cntpatt/>
  62. <basecnt/>
  63. <mealflag/>
  64. <outprntseq/>
  65. <lblprntyn/>
  66. <adminpath/>
  67. <drdirecyn/>
  68. </item>
  69. <rslt>
  70. <msg/>
  71. </rslt>
  72. </hidden>
  73. </root>
  74. </instance>
  75. <submission id="TRZBC00101"/>
  76. <submission id="TRADB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mthdlist"/>
  77. <submission id="TXADB00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden/rslt/msg"/>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. // 권한 관리
  81. button1.disabled =! checkAuth("X"); // 저장
  82. zbcfGetCodeList( new Array("A0017"), new Array("/root/init/comboitem/mthdkind") );
  83. model.refresh();
  84. //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
  85. submit("TRADB00401");
  86. model.setValue("/root/send/srchmthdcd","");
  87. ]]>
  88. </script>
  89. </model>
  90. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  91. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  94. </xhtml:head>
  95. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  96. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  97. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">용법관리</caption>
  98. </group>
  99. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  100. <group id="group2" style="left:0px; top:5px; width:1195px; height:43px; ">
  101. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  102. <line id="line13" class="line_4" style="x1:1080px; y1:10px; x2:1080px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
  103. <caption id="caption1" class="search_name" style="left:290px; top:13px; width:86px; height:17px; ">용법코드 :</caption>
  104. <caption id="caption3" class="search_name" style="left:15px; top:13px; width:86px; height:17px; ">용법종류 :</caption>
  105. <select1 id="cmb_srchmthdflag" ref="/root/send/srchmthdkind" class="combo_search" appearance="minimal" style="left:105px; top:13px; width:135px; height:19px; ">
  106. <choices>
  107. <itemset nodeset="/root/init/comboitem/mthdkind/A0017">
  108. <label ref="cdnm"/>
  109. <value ref="cdid"/>
  110. </itemset>
  111. </choices>
  112. <script type="javascript" ev:event="xforms-value-changed">
  113. <![CDATA[
  114. submit("TRADB00401");
  115. model.setValue("/root/send/srchmthdcd","");
  116. ]]>
  117. </script>
  118. </select1>
  119. <input id="ipt_srchmthdcd" ref="/root/send/srchmthdcd" class="input_search" style="left:380px; top:13px; width:190px; height:19px; "/>
  120. <button id="btn_seamthd" class="btn1_letter4" style="left:1095px; top:10px; width:80px; height:22px; ">
  121. <caption>용법조회</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. //model.setValue("/root/send/srchmthdcd",model.getValue("/root/send/srchmthdcd")+"%");
  125. submit("TRADB00401");
  126. model.setValue("/root/send/srchmthdcd","");
  127. ]]>
  128. </script>
  129. </button>
  130. <select id="checkbox2" ref="/root/send/srchbasemthdyn" class="checkbox_search" overflow="visible" appearance="full" style="left:699px; top:13px; width:30px; height:20px; border-style:none; ">
  131. <choices>
  132. <item>
  133. <label/>
  134. <value>Y</value>
  135. </item>
  136. </choices>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. submit("TRADB00401");
  140. model.setValue("/root/send/srchmthdcd","");
  141. ]]>
  142. </script>
  143. </select>
  144. <select1 id="combo1" ref="/root/send/srchbasecnt" class="combo_search" appearance="minimal" style="left:795px; top:13px; width:50px; height:19px; ">
  145. <choices>
  146. <item>
  147. <label>-</label>
  148. <value>-</value>
  149. </item>
  150. <item>
  151. <label>1</label>
  152. <value>1</value>
  153. </item>
  154. <item>
  155. <label>2</label>
  156. <value>2</value>
  157. </item>
  158. <item>
  159. <label>3</label>
  160. <value>3</value>
  161. </item>
  162. <item>
  163. <label>4</label>
  164. <value>4</value>
  165. </item>
  166. </choices>
  167. <script type="javascript" ev:event="xforms-value-changed">
  168. <![CDATA[
  169. submit("TRADB00401");
  170. model.setValue("/root/send/srchmthdcd","");
  171. ]]>
  172. </script>
  173. </select1>
  174. <caption id="caption4" class="search_name" style="left:610px; top:13px; width:86px; height:17px; ">기본용법 :</caption>
  175. <caption id="caption5" class="search_name" style="left:735px; top:13px; width:70px; height:17px; ">횟수 :</caption>
  176. </group>
  177. <button id="btn_grddel" class="btn2_letter3" style="left:1095px; top:55px; width:53px; height:19px; ">
  178. <caption>행삭제</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. grd_mthdlist.addStatus(grd_mthdlist.row,"delete");
  182. ]]>
  183. </script>
  184. </button>
  185. <button id="btn_grdadd" class="btn2_letter3" style="left:985px; top:55px; width:53px; height:19px; ">
  186. <caption>행추가</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. grd_mthdlist.addItem();
  190. model.setValue("/root/main/mthdlist/item[" + grd_mthdlist.row+"]/mthdkind",model.getValue("/root/send/srchmthdkind"));
  191. model.setValue("/root/main/mthdlist/item[" + grd_mthdlist.row+"]/mthdflag","1");
  192. ]]>
  193. </script>
  194. </button>
  195. <button id="btn_grdcopy" class="btn2_letter3" style="left:1040px; top:55px; width:53px; height:19px; ">
  196. <caption>행복사</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var grdrow = grd_mthdlist.row;
  200. model.copyNode("/root/hidden/item","/root/main/mthdlist/item["+ grdrow +"]");
  201. grd_mthdlist.insertItem(grdrow);
  202. model.copyNode("/root/main/mthdlist/item["+ grdrow +"]","/root/hidden/item");
  203. model.refresh();
  204. ]]>
  205. </script>
  206. </button>
  207. <button id="btn_excsave" class="btn2_letter2" style="left:1150px; top:55px; width:42px; height:19px; ">
  208. <caption>엑셀</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  212. grd_mthdlist.saveExcel(file);
  213. ]]>
  214. </script>
  215. </button>
  216. <datagrid id="grd_mthdlist" nodeset="/root/main/mthdlist/item" backcoloralternate="#f0f0f0" caption="용법종류^추가구분^용법코드^용법약어명^용법명^용법명^용법명^용법명^일수^횟수패턴^횟수^순서^영문 용법명^기본용법여부^식전후^수가팀^투여경로^의사지시" colsep="^" colwidth="97, 67, 72, 157, 72, 189, 101, 120, 35, 57, 47, 51, 190, 83, 57, 51, 71, 56" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:76px; width:1193px; height:664px; ">
  217. <col key="true" ref="mthdkind" type="combo">
  218. <choices>
  219. <itemset nodeset="/root/init/comboitem/mthdkind/A0017">
  220. <label ref="cdnm"/>
  221. <value ref="cdid"/>
  222. </itemset>
  223. </choices>
  224. </col>
  225. <col ref="mthdflag" type="combo">
  226. <choices>
  227. <item>
  228. <label>일반</label>
  229. <value>1</value>
  230. </item>
  231. <item>
  232. <label>추가</label>
  233. <value>2</value>
  234. </item>
  235. </choices>
  236. </col>
  237. <col autonext="false" imemode="alpha" ref="mthdcd" type="input" maxlength="11" _key="true"/>
  238. <col autonext="false" imemode="alpha" ref="abbrnm" type="input" maxlength="40" style="text-align:left; "/>
  239. <col autonext="false" ref="mthdcnts1" type="input" maxlength="33"/>
  240. <col autonext="false" ref="mthdcnts2" type="input" maxlength="33" style="text-align:left; "/>
  241. <col autonext="false" ref="mthdcnts3" type="input" maxlength="33"/>
  242. <col autonext="false" ref="mthdcnts4" type="input" maxlength="33"/>
  243. <col autonext="false" ref="dayno" type="input" format="###" maxlength="3"/>
  244. <col autonext="false" ref="cntpatt" type="input" format="99999" maxlength="5"/>
  245. <col autonext="false" ref="basecnt" type="input" format="99999" maxlength="5"/>
  246. <col autonext="false" ref="outprntseq" type="input" format="999" maxlength="3"/>
  247. <col autonext="false" ref="mthdengnm" type="input" maxlength="450"/>
  248. <col autonext="false" checkvalue="Y,N" ref="basemthdyn" type="checkbox"/>
  249. <col autonext="false" ref="mealflag" type="combo">
  250. <choices>
  251. <item>
  252. <label>-</label>
  253. <value>0</value>
  254. </item>
  255. <item>
  256. <label>식전</label>
  257. <value>1</value>
  258. </item>
  259. <item>
  260. <label>식후</label>
  261. <value>2</value>
  262. </item>
  263. </choices>
  264. </col>
  265. <col autonext="false" checkvalue="Y,N" ref="lblprntyn" type="checkbox"/>
  266. <col autonext="false" ref="adminpath" type="combo">
  267. <choices>
  268. <item>
  269. <label>-</label>
  270. <value>0</value>
  271. </item>
  272. <item>
  273. <label>투약</label>
  274. <value>1</value>
  275. </item>
  276. </choices>
  277. </col>
  278. <col autonext="false" checkvalue="Y,N" ref="drdirecyn" type="checkbox"/>
  279. <script type="javascript" ev:event="onendedit">
  280. <![CDATA[
  281. var s="";
  282. var cnt=0;
  283. s = model.getValue("/root/main/mthdlist/item["+grd_mthdlist.row+"]/cntpatt");
  284. if (s.substring( 4, 5 )!="1" ){ // 5번자리는 시간마다로 횟수를 수동 지정
  285. for (var i = 0 ; i<4 ; i++){
  286. if (s.substring( i, i+1)=="1" ){
  287. cnt=cnt+1;
  288. }
  289. }
  290. model.setValue("/root/main/mthdlist/item["+grd_mthdlist.row+"]/basecnt",cnt);
  291. }
  292. model.refresh();
  293. ]]>
  294. </script>
  295. </datagrid>
  296. <caption id="caption10" class="tit_2" style="left:0px; top:60px; width:99px; height:14px; ">용법정보</caption>
  297. </group>
  298. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  299. <button id="button1" class="btn4_letter2" style="left:1135px; top:5px; width:56px; height:22px; ">
  300. <caption>저장</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. if(messageBox("용법코드를","Q002")==6){
  304. model.setValue("/root/send/req/data1", grd_mthdlist.getUpdateData());
  305. submit("TXADB00401");
  306. submit("TRADB00401");
  307. }
  308. ]]>
  309. </script>
  310. <script type="javascript" ev:event="DOMFocusIn">
  311. <![CDATA[
  312. checkKeyColumn("grd_mthdlist");
  313. ]]>
  314. </script>
  315. </button>
  316. </group>
  317. </xhtml:body>
  318. </xhtml:html>