SPADT64100_마감시간관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <flaglist>
  11. <flaglist>
  12. <prcpflagcd/>
  13. <no/>
  14. <fromddflag/>
  15. <fromtm/>
  16. <toddflag/>
  17. <totm/>
  18. <nomn/>
  19. <status/>
  20. <setseqno/>
  21. </flaglist>
  22. </flaglist>
  23. </main>
  24. <send>
  25. <sumlistinfo/>
  26. <savedata/>
  27. </send>
  28. <init>
  29. <sumtmflaglist>
  30. <flaglist/>
  31. </sumtmflaglist>
  32. </init>
  33. <temp>
  34. <flaglist>
  35. <flaglist/>
  36. </flaglist>
  37. </temp>
  38. </root>
  39. </instance>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript">
  45. <![CDATA[
  46. function fInit() {
  47. submit("TRADT10206");
  48. }
  49. function fSave() {
  50. if( !isRequiredControls("cmb_prcpflag", "ipt_no", "cmb_fromddflag", "ipt_fromtm", "cmb_toddflag", "ipt_totm", "ipt_nomn")) {
  51. return;
  52. }
  53. if(compareNodeVal("/root/temp/flaglist/flaglist", "/root/main/flaglist/flaglist") == true) {
  54. if(model.getValue("/root/main/flaglist/flaglist/status") != "i" && model.getValue("/root/main/flaglist/flaglist/status") != "d") {
  55. model.setValue("/root/main/flaglist/flaglist/status", "u");
  56. }
  57. model.copyNode("/root/send/savedata", "/root/main/flaglist/flaglist");
  58. submit("TXADT64101");
  59. } else {
  60. if(model.getValue("/root/main/flaglist/flaglist/status") != "") {
  61. model.copyNode("/root/send/savedata", "/root/main/flaglist/flaglist");
  62. submit("TXADT64101");
  63. } else {
  64. messageBox("변경된 내용이", "I004");
  65. return;
  66. }
  67. }
  68. }
  69. function compareNodeVal(desNode, srcNode){
  70. var node = instance1.selectSingleNode(desNode);
  71. var node2 = instance1.selectSingleNode(srcNode);
  72. var nodeList = node.childNodes;
  73. var nodeList2 = node2.childNodes;
  74. while(childNode = nodeList.nextNode()){
  75. childNode2 = nodeList2.nextNode();
  76. //alert(childNode.NodeValue + "," + childNode2.NodeValue);
  77. if(childNode.NodeValue != childNode2.NodeValue){
  78. return true; //값이 다른 경우 true
  79. }
  80. }
  81. return false; //값이 같은 경우 false
  82. }
  83. ]]>
  84. </script>
  85. <script type="javascript" ev:event="xforms-ready">
  86. <![CDATA[
  87. fInit();
  88. ]]>
  89. </script>
  90. <submission id="TRADT10206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sumlistinfo" replace="instance" resultref="/root/init/sumtmflaglist"/>
  91. <submission id="TXADT64101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/init/sumtmflaglist"/>
  92. </model>
  93. </xhtml:head>
  94. <xhtml:body pagewidth="522" pageheight="410" guideline="1,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  95. <input id="ipt_totm" ref="/root/main/flaglist/flaglist/totm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:285px; top:289px; width:50px; height:19px; "/>
  96. <select1 id="cmb_prcpflag" ref="/root/main/flaglist/flaglist/prcpflagcd" class="combo_search" appearance="minimal" style="left:85px; top:237px; width:130px; height:19px; ">
  97. <choices>
  98. <item>
  99. <label>정규</label>
  100. <value>R</value>
  101. </item>
  102. <item>
  103. <label>추가</label>
  104. <value>A</value>
  105. </item>
  106. <item>
  107. <label>영양수액</label>
  108. <value>O</value>
  109. </item>
  110. <item>
  111. <label>향정</label>
  112. <value>H</value>
  113. </item>
  114. <item>
  115. <label>마약</label>
  116. <value>M</value>
  117. </item>
  118. <item>
  119. <label>주사자동출력</label>
  120. <value>P</value>
  121. </item>
  122. <item>
  123. <label>주사집계</label>
  124. <value>J</value>
  125. </item>
  126. <item>
  127. <label>고가고주의고위험</label>
  128. <value>W</value>
  129. </item>
  130. <item>
  131. <label>교환약출력</label>
  132. <value>E</value>
  133. </item>
  134. <item>
  135. <label>일일재고</label>
  136. <value>S</value>
  137. </item>
  138. <item>
  139. <label>응급실집계</label>
  140. <value>K</value>
  141. </item>
  142. </choices>
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. ]]>
  146. </script>
  147. </select1>
  148. <select1 id="cmb_fromddflag" ref="/root/main/flaglist/flaglist/fromddflag" class="combo_search" appearance="minimal" style="left:85px; top:289px; width:60px; height:19px; ">
  149. <choices>
  150. <item>
  151. <label>전일</label>
  152. <value>0</value>
  153. </item>
  154. <item>
  155. <label>당일</label>
  156. <value>1</value>
  157. </item>
  158. <item>
  159. <label>익일</label>
  160. <value>2</value>
  161. </item>
  162. </choices>
  163. </select1>
  164. <caption id="caption2" class="cell_1" style="left:0px; top:312px; width:80px; height:23px; vertical-align:middle; ">명칭</caption>
  165. <caption id="caption22" class="cell_1" style="left:0px; top:237px; width:80px; height:23px; vertical-align:middle; ">처방구분</caption>
  166. <line id="line16" class="line_2" style="x1:0px; y1:310px; x2:490px; y2:310px; "/>
  167. <input id="ipt_fromtm" ref="/root/main/flaglist/flaglist/fromtm" class="input_search" autonext="false" maxlength="5" format="hh:nn" style="left:150px; top:289px; width:45px; height:19px; "/>
  168. <caption id="caption4" class="tit_2" style="left:5px; top:2px; width:185px; height:13px; ">마감시간관리</caption>
  169. <caption id="caption13" class="cell_1" style="left:0px; top:262px; width:80px; height:23px; vertical-align:middle; ">차수</caption>
  170. <line id="line1" class="line_3" style="x1:0px; y1:334px; x2:490px; y2:334px; "/>
  171. <line id="line17" class="line_1" style="x1:0px; y1:17px; x2:492px; y2:17px; "/>
  172. <input id="ipt_no" ref="/root/main/flaglist/flaglist/no" class="input_search" autonext="false" maxlength="2" style="left:85px; top:264px; width:130px; height:19px; ">
  173. <script type="javascript" ev:event="xforms-value-changed">
  174. <![CDATA[
  175. ]]>
  176. </script>
  177. <script type="javascript" ev:event="onkeyup">
  178. <![CDATA[
  179. if(event.keyCode == "13") {
  180. setInputNodeCurText();
  181. var bResult = fChgDrugno("first");
  182. if(bResult){
  183. fInSumList();
  184. if(grd_patlist.rows > 1) {
  185. model.setValue("/root/main/patlist/patlist/sel", "Y");
  186. }
  187. //fPrcpMPSPrint();
  188. }
  189. }
  190. ]]>
  191. </script>
  192. </input>
  193. <input id="ipt_nomn" ref="/root/main/flaglist/flaglist/nomn" class="input_search" autonext="false" style="left:85px; top:313px; width:130px; height:19px; ">
  194. <script type="javascript" ev:event="xforms-value-changed">
  195. <![CDATA[
  196. ]]>
  197. </script>
  198. <script type="javascript" ev:event="onkeyup">
  199. <![CDATA[
  200. ]]>
  201. </script>
  202. </input>
  203. <select1 id="cmb_toddflag" ref="/root/main/flaglist/flaglist/toddflag" class="combo_search" appearance="minimal" style="left:220px; top:289px; width:60px; height:19px; ">
  204. <choices>
  205. <item>
  206. <label>전일</label>
  207. <value>0</value>
  208. </item>
  209. <item>
  210. <label>당일</label>
  211. <value>1</value>
  212. </item>
  213. <item>
  214. <label>익일</label>
  215. <value>2</value>
  216. </item>
  217. </choices>
  218. </select1>
  219. <caption id="caption17" class="cell_1" style="left:0px; top:287px; width:80px; height:23px; vertical-align:middle; ">마감구분</caption>
  220. <line id="line4" class="line_2" style="x1:0px; y1:285px; x2:490px; y2:285px; "/>
  221. <caption id="caption18" style="left:200px; top:288px; width:30px; height:25px; font-weight:bold; vertical-align:middle; ">~</caption>
  222. <button id="btn_save" class="btn4_letter2" style="left:315px; top:340px; width:56px; height:22px; ">
  223. <caption>저장</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. fSave();
  227. ]]>
  228. </script>
  229. </button>
  230. <line id="line6" class="line_2" style="x1:0px; y1:260px; x2:490px; y2:260px; "/>
  231. <datagrid id="grd_endtimelist" nodeset="/root/init/sumtmflaglist/flaglist" class="datagrid2" caption="처방&#xA;구분^차수^시작일자&#xA;구분^시작시간^끝일자&#xA;구분^끝시간^명칭" colsep="^" colwidth="90, 44, 60, 60, 60, 60, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:22px; width:492px; height:210px; ">
  232. <col disabled="true" ref="prcpflagcd" type="combo">
  233. <choices>
  234. <item>
  235. <label>정규</label>
  236. <value>R</value>
  237. </item>
  238. <item>
  239. <label>추가</label>
  240. <value>A</value>
  241. </item>
  242. <item>
  243. <label>영양수액</label>
  244. <value>O</value>
  245. </item>
  246. <item>
  247. <label>향정</label>
  248. <value>H</value>
  249. </item>
  250. <item>
  251. <label>마약</label>
  252. <value>M</value>
  253. </item>
  254. <item>
  255. <label>주사자동출력</label>
  256. <value>P</value>
  257. </item>
  258. <item>
  259. <label>주사집계</label>
  260. <value>J</value>
  261. </item>
  262. <item>
  263. <label>고가고주의고위험</label>
  264. <value>W</value>
  265. </item>
  266. <item>
  267. <label>교환약출력</label>
  268. <value>E</value>
  269. </item>
  270. <item>
  271. <label>일일재고</label>
  272. <value>S</value>
  273. </item>
  274. <item>
  275. <label>응급실집계</label>
  276. <value>K</value>
  277. </item>
  278. </choices>
  279. </col>
  280. <col ref="no"/>
  281. <col disabled="true" ref="fromddflag" type="combo">
  282. <choices>
  283. <item>
  284. <label>전일</label>
  285. <value>0</value>
  286. </item>
  287. <item>
  288. <label>당일</label>
  289. <value>1</value>
  290. </item>
  291. <item>
  292. <label>익일</label>
  293. <value>2</value>
  294. </item>
  295. </choices>
  296. </col>
  297. <col ref="fromtm" format="hh:nn"/>
  298. <col disabled="true" ref="toddflag" type="combo">
  299. <choices>
  300. <item>
  301. <label>전일</label>
  302. <value>0</value>
  303. </item>
  304. <item>
  305. <label>당일</label>
  306. <value>1</value>
  307. </item>
  308. <item>
  309. <label>익일</label>
  310. <value>2</value>
  311. </item>
  312. </choices>
  313. </col>
  314. <col ref="totm" format="hh:nn"/>
  315. <col ref="nomn"/>
  316. <script type="javascript" ev:event="onclick">
  317. <![CDATA[
  318. var row = grd_endtimelist.row;
  319. /*model.setValue("/root/main/flaglist/flaglist/prcpflagcd", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/prcpflagcd"));
  320. model.setValue("/root/main/flaglist/flaglist/no", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/no"));
  321. model.setValue("/root/main/flaglist/flaglist/fromddflag", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/fromddflag"));
  322. model.setValue("/root/main/flaglist/flaglist/fromtm", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/fromtm"));
  323. model.setValue("/root/main/flaglist/flaglist/toddflag", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/toddflag"));
  324. model.setValue("/root/main/flaglist/flaglist/totm", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/totm"));
  325. model.setValue("/root/main/flaglist/flaglist/nomn", model.getValue("/root/init/sumtmflaglist/flaglist[" + row + "]/nomn"));*/
  326. model.copyNode("/root/main/flaglist/flaglist", "/root/init/sumtmflaglist/flaglist[" + row + "]");
  327. model.copyNode("/root/temp/flaglist/flaglist", "/root/init/sumtmflaglist/flaglist[" + row + "]");
  328. model.makeNode("/root/main/flaglist/flaglist/status");
  329. model.refresh();
  330. ]]>
  331. </script>
  332. </datagrid>
  333. <button id="btn_close" class="btn4_letter2" style="left:434px; top:340px; width:56px; height:22px; ">
  334. <caption>닫기</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. opener.javascript.setParameter("SPADT64100_param", "Y");
  338. model.close();
  339. ]]>
  340. </script>
  341. </button>
  342. <button id="button1" class="btn4_letter2" style="left:255px; top:340px; width:56px; height:22px; ">
  343. <caption>신규</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. model.resetInstanceNode("/root/main/flaglist/flaglist");
  347. model.setValue("/root/main/flaglist/flaglist/status", "i");
  348. model.refresh();
  349. ]]>
  350. </script>
  351. </button>
  352. <button id="button2" class="btn4_letter2" style="left:375px; top:340px; width:56px; height:22px; ">
  353. <caption>삭제</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. var setnm = model.getValue("/root/main/flaglist/flaglist/nomn");
  357. var ret = messageBox(setnm, "Q001");
  358. if(ret == "6") {
  359. model.setValue("/root/main/flaglist/flaglist/status", "d");
  360. fSave();
  361. } else {
  362. return;
  363. }
  364. ]]>
  365. </script>
  366. </button>
  367. </xhtml:body>
  368. </xhtml:html>