SMADT10700_투석액환자내역조회.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <prcplist>
  11. <prcpinfo>
  12. <trsmflag/>
  13. <hngnm/>
  14. <pid/>
  15. <ioflagname/>
  16. <prcpno/>
  17. <company/>
  18. <prcpcd/>
  19. <prcpnm/>
  20. <totqty/>
  21. <getqty/>
  22. <shipqty/>
  23. <prcpdayno/>
  24. <prcpdd/>
  25. <dcdd/>
  26. <dcyn/>
  27. <rem/>
  28. <telno/>
  29. <addr/>
  30. <instcd/>
  31. <ioflag/>
  32. <orddd/>
  33. <prcphistno/>
  34. <execprcpno/>
  35. </prcpinfo>
  36. </prcplist>
  37. </main>
  38. <send>
  39. <prcplist/>
  40. <srchfromdd/>
  41. <srchtodd/>
  42. <srchpid/>
  43. <srchioflag>A</srchioflag>
  44. <sortflag>1</sortflag>
  45. <trsmflag>A</trsmflag>
  46. <req>
  47. <list/>
  48. </req>
  49. <cond1>D</cond1>
  50. <srchwardcd/>
  51. <deptinfo>
  52. <deptflag/>
  53. </deptinfo>
  54. <selflist>
  55. <pid/>
  56. <prcpno/>
  57. <prcphistno/>
  58. <execprcpno/>
  59. <prcpcd/>
  60. <prcpdd/>
  61. </selflist>
  62. </send>
  63. <init>
  64. <deptlist>
  65. <ward>
  66. <wardnm/>
  67. <wardcd/>
  68. </ward>
  69. </deptlist>
  70. </init>
  71. <hidden/>
  72. </root>
  73. </instance>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  78. <submission id="TRADT10701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcplist"/>
  79. <submission id="TXADT10701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  80. <submission id="TXADT10702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  81. <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/init/deptlist"/>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. var currdd = getCurrentDate();
  85. var fromdd = ((currdd.toDate()).getAddDate(-1, "D")).getDateFormat("YYYYMMDD");
  86. model.removenode("/root/main/prcplist");
  87. // model.setValue("/root/send/srchfromdd", getCurrentDate());
  88. model.setValue("/root/send/srchfromdd", fromdd);
  89. model.setValue("/root/send/srchtodd", getCurrentDate());
  90. // 2009.09.15 pymi
  91. //병동 Combo 조회
  92. model.setValue("/root/send/deptinfo/deptflag", "W");
  93. if(submit("TRADT10203")) {
  94. astfAddCombo("/root/init/deptlist","ward","wardcd,wardnm",",전체");
  95. }
  96. if(model.getValue("/root/send/cond1") == "D") {
  97. model.setValue("/root/send/srchioflag", "A");
  98. radio7.disabled = false;
  99. //radio8.disabled = true;
  100. //radio9.disabled = true;
  101. } else {
  102. //radio8.disabled = false;
  103. //radio9.disabled = false;
  104. }
  105. // (e)
  106. grd_prcp.fixedcellcheckbox(0,1)=true;
  107. model.refresh();
  108. ]]>
  109. </script>
  110. <submission id="TRADT10702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/selflist"/>
  111. </model>
  112. </xhtml:head>
  113. <xhtml:body guideline="1,1225;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  115. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">투석액 환자내역 조회</caption>
  116. </group>
  117. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  118. <group id="group2" visibility="visible" style="left:0px; top:5px; width:1195px; height:60px; ">
  119. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1194px; height:57px; background-color:#fffbf2; border-color:#ffd799; "/>
  120. <line id="line13" style="x1:1091px; y1:7px; x2:1091px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  121. <caption id="caption1" class="search_name" style="left:335px; top:10px; width:86px; height:17px; ">등록번호 :</caption>
  122. <caption id="caption2" style="left:205px; top:12px; width:20px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  123. <caption id="caption4" class="search_name" style="left:15px; top:10px; width:104px; height:17px; ">검색일자 :</caption>
  124. <select1 id="radio2" ref="/root/send/srchioflag" class="radio_search" visibility="hidden" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:900px; top:35px; width:165px; height:20px; border-style:none; ">
  125. <choices>
  126. <item>
  127. <label>전체</label>
  128. <value>A</value>
  129. </item>
  130. <item>
  131. <label>입원</label>
  132. <value>I</value>
  133. </item>
  134. <item>
  135. <label>외래</label>
  136. <value>O</value>
  137. </item>
  138. </choices>
  139. <script type="javascript" ev:event="xforms-value-changed">
  140. <![CDATA[
  141. model.removeNodeset("/root/main/prcplist/prcpinfo");
  142. model.refresh();
  143. submit("TRADT10701");
  144. ]]>
  145. </script>
  146. </select1>
  147. <input id="input1" ref="/root/send/srchpid" class="input_search" style="left:425px; top:10px; width:100px; height:19px; ">
  148. <script type="javascript" ev:event="onkeypress">
  149. <![CDATA[
  150. // 2009.09.19 pymi
  151. if(event.keyCode == 13) {
  152. btn_sea.dispatch("DOMActivate");
  153. }
  154. //(e)
  155. ]]>
  156. </script>
  157. </input>
  158. <input id="input2" ref="/root/send/srchtodd" class="input_search" inputtype="date" style="left:221px; top:10px; width:99px; height:19px; "/>
  159. <input id="input5" ref="/root/send/srchfromdd" class="input_search" inputtype="date" style="left:105px; top:10px; width:99px; height:19px; "/>
  160. <button id="btn_sea" class="btn1_letter2" style="left:1115px; top:10px; width:56px; height:22px; ">
  161. <caption>조회</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. //model.removeNodeset("/root/main/prcplist/prcpinfo");
  165. //model.refresh();
  166. // submit("TRADT10701");
  167. // if ( model.getValue("/root/send/endflag") =="N"){
  168. // for ( var i = 1 ; i<grd_prcp.rows; i++){
  169. // grd_prcp.addStatus(i,"update");
  170. // }
  171. // }
  172. model.removeNodeset("/root/main/prcplist/prcpinfo");
  173. // 20110108 wify 경북대병원 엑셀저장 항목 수정
  174. model.removeNodeset("/root/main/prcplist/exelinfo");
  175. model.refresh();
  176. if(submit("TRADT10701")) {
  177. if(model.getValue("/root/send/cond1") == "P") {
  178. for(var i = 0; i < grd_prcp.rows ; i++) {
  179. grd_prcp.isReadOnly(i, grd_prcp.colRef("trsmflag")) = true;
  180. }
  181. }
  182. }
  183. ]]>
  184. </script>
  185. </button>
  186. <select1 id="radio1" ref="/root/send/sortflag" class="radio_search" appearance="full" cellspacing="10" cols="2" rows="1" overflow="visible" style="left:900px; top:12px; width:175px; height:20px; border-style:none; ">
  187. <choices>
  188. <item>
  189. <label>제약회사 순</label>
  190. <value>1</value>
  191. </item>
  192. <item>
  193. <label>약품코드 순</label>
  194. <value>2</value>
  195. </item>
  196. </choices>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. model.removeNodeset("/root/main/prcplist/prcpinfo");
  200. model.refresh();
  201. submit("TRADT10701");
  202. ]]>
  203. </script>
  204. </select1>
  205. <select1 id="radio3" ref="/root/send/trsmflag" class="radio_search" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:720px; top:12px; width:170px; height:20px; border-style:none; ">
  206. <choices>
  207. <item>
  208. <label>전체</label>
  209. <value>A</value>
  210. </item>
  211. <item>
  212. <label>발주</label>
  213. <value>Y</value>
  214. </item>
  215. <item>
  216. <label>미발주</label>
  217. <value>N</value>
  218. </item>
  219. </choices>
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. if(model.getValue("/root/send/trsmflag") != "A") {
  223. //radio5.value = "";
  224. //radio4.value = "D";
  225. radio5.disabled = true;
  226. //radio6.disabled = true;
  227. } else {
  228. radio5.disabled = false;
  229. //radio6.disabled = false;
  230. }
  231. model.removeNodeset("/root/main/prcplist/prcpinfo");
  232. model.refresh();
  233. submit("TRADT10701");
  234. ]]>
  235. </script>
  236. </select1>
  237. <select1 id="radio4" ref="/root/send/cond1" appearance="full" cellspacing="10" cols="1" overflow="visible" style="left:545px; top:35px; width:125px; height:20px; border-style:none; ">
  238. <choices>
  239. <item>
  240. <label>퇴원+외래선처치외</label>
  241. <value>D</value>
  242. </item>
  243. </choices>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. if(model.getValue("/root/send/cond1") == "D") {
  247. model.setValue("/root/send/srchioflag", "A");
  248. radio7.disabled = false;
  249. //radio8.disabled = true;
  250. radio9.disabled = false;
  251. } else {
  252. radio7.disabled = false;
  253. radio9.disabled = false;
  254. }
  255. group2.refresh();
  256. ]]>
  257. </script>
  258. </select1>
  259. <select1 id="radio5" ref="/root/send/cond1" appearance="full" overflow="visible" style="left:790px; top:35px; width:80px; height:20px; border-style:none; ">
  260. <choices>
  261. <item>
  262. <label>선처치</label>
  263. <value>P</value>
  264. </item>
  265. </choices>
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. if(model.getValue("/root/send/cond1") == "P") {
  269. model.setValue("/root/send/srchioflag", "A");
  270. radio7.disabled = false;
  271. //radio8.disabled = true;
  272. radio9.disabled = false;
  273. } else {
  274. //radio7.disabled = false;
  275. //radio9.disabled = false;
  276. }
  277. group2.refresh();
  278. ]]>
  279. </script>
  280. </select1>
  281. <select1 id="radio6" ref="/root/send/cond1" appearance="full" cellspacing="10" cols="1" overflow="visible" style="left:680px; top:35px; width:105px; height:20px; border-style:none; ">
  282. <choices>
  283. <item>
  284. <label>입원선처치외</label>
  285. <value>I</value>
  286. </item>
  287. </choices>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. if(model.getValue("/root/send/cond1") == "I") {
  291. model.setValue("/root/send/srchioflag", "I");
  292. radio8.disabled = false;
  293. radio7.disabled = true;
  294. radio9.disabled = true;
  295. } else {
  296. radio7.disabled = false;
  297. radio9.disabled = false;
  298. }
  299. group2.refresh();
  300. ]]>
  301. </script>
  302. </select1>
  303. <select1 id="radio7" ref="/root/send/srchioflag" class="radio_search" appearance="full" cellspacing="10" cols="1" rows="1" overflow="visible" style="left:545px; top:10px; width:45px; height:20px; border-style:none; ">
  304. <choices>
  305. <item>
  306. <label>전체</label>
  307. <value>A</value>
  308. </item>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. model.removeNodeset("/root/main/prcplist/prcpinfo");
  313. model.refresh();
  314. submit("TRADT10701");
  315. ]]>
  316. </script>
  317. </select1>
  318. <select1 id="radio8" ref="/root/send/srchioflag" class="radio_search" appearance="full" cellspacing="10" cols="1" rows="1" overflow="visible" style="left:600px; top:10px; width:45px; height:20px; border-style:none; ">
  319. <choices>
  320. <item>
  321. <label>입원</label>
  322. <value>I</value>
  323. </item>
  324. </choices>
  325. <script type="javascript" ev:event="xforms-value-changed">
  326. <![CDATA[
  327. model.removeNodeset("/root/main/prcplist/prcpinfo");
  328. model.refresh();
  329. submit("TRADT10701");
  330. ]]>
  331. </script>
  332. </select1>
  333. <select1 id="radio9" ref="/root/send/srchioflag" class="radio_search" appearance="full" cellspacing="10" cols="1" rows="1" overflow="visible" style="left:652px; top:10px; width:45px; height:20px; border-style:none; ">
  334. <choices>
  335. <item>
  336. <label>외래</label>
  337. <value>O</value>
  338. </item>
  339. </choices>
  340. <script type="javascript" ev:event="xforms-value-changed">
  341. <![CDATA[
  342. model.removeNodeset("/root/main/prcplist/prcpinfo");
  343. model.refresh();
  344. submit("TRADT10701");
  345. ]]>
  346. </script>
  347. </select1>
  348. <caption id="caption3" class="search_name" style="left:335px; top:35px; width:86px; height:17px; ">병 동 :</caption>
  349. <select1 id="combo1" ref="/root/send/srchwardcd" appearance="minimal" style="left:425px; top:35px; width:100px; height:19px; ">
  350. <choices>
  351. <itemset nodeset="/root/init/deptlist/ward">
  352. <label ref="wardnm"/>
  353. <value ref="wardcd"/>
  354. </itemset>
  355. </choices>
  356. </select1>
  357. </group>
  358. <button id="btn_excsave" class="btn2_letter4" style="left:1128px; top:74px; width:64px; height:19px; ">
  359. <caption>엑셀저장</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. // 20110108 wify 경북대병원 항목수정을 위해 grd_exel, grd_exel1에 데이터 set.
  363. model.removeNodeset("/root/send/selflist")
  364. var cond1 = model.getValue("/root/send/cond1");
  365. for (var i =1; i < grd_prcp.rows; i++) {
  366. // 20110906_laboru_복막투석액 자가주사 처방일 때 엑셀 저장 시 실시되게 수정
  367. if(cond1 == "D") { // 퇴원_외래선처치외. 즉 외래 자가 주사일 때만.
  368. model.makeValue("/root/send/selflist["+ i + "]/pid", model.getValue("/root/main/prcplist/prcpinfo["+ i + "]/pid"));
  369. model.makeValue("/root/send/selflist["+ i + "]/prcpno", model.getValue("/root/main/prcplist/prcpinfo["+ i + "]/prcpno"));
  370. model.makeValue("/root/send/selflist["+ i + "]/prcphistno", model.getValue("/root/main/prcplist/prcpinfo["+ i + "]/prcphistno"));
  371. model.makeValue("/root/send/selflist["+ i + "]/execprcpno", model.getValue("/root/main/prcplist/prcpinfo["+ i + "]/execprcpno"));
  372. model.makeValue("/root/send/selflist["+ i + "]/prcpcd", model.getValue("/root/main/prcplist/prcpinfo["+ i + "]/prcpcd"));
  373. model.makeValue("/root/send/selflist["+ i + "]/prcpdd", model.getValue("/root/main/prcplist/prcpinfo["+ i + "]/prcpdd"));
  374. }
  375. astfCopyNodeSet("/root/send/prcplist/prcpinfo", "/root/main/prcplist/prcpinfo["+i+"]");
  376. astfCopyNodeSet("/root/send/prcplist/prcpinfo1", "/root/main/prcplist/prcpinfo["+i+"]");
  377. }
  378. if(cond1 == "D") {
  379. submit("TRADT10702");
  380. }
  381. model.refresh();
  382. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  383. if (file != ""){
  384. // grd_prcp.saveExcel(file);
  385. // 20110108 wify 경북대병원 엑셀로 저장되는 항목 수정.
  386. if (radio6.value == 'I' || radio5.value == 'P') {
  387. grd_exel1.saveExcel(file);
  388. } else {
  389. // 퇴원+외래선처치외
  390. grd_exel.saveExcel(file);
  391. }
  392. }
  393. model.removeNodeset("/root/send/prcplist/prcpinfo")
  394. model.removeNodeset("/root/send/prcplist/prcpinfo1")
  395. ]]>
  396. </script>
  397. </button>
  398. <caption id="caption10" class="tit_2" style="left:6px; top:78px; width:183px; height:13px; ">투석액 환자리스트</caption>
  399. <datagrid id="grd_prcp" nodeset="/root/main/prcplist/prcpinfo" visibility="visible" caption="발주/불출^성명^등록번호^입/외^퇴원예고^prcpno^병동^병실^약번호^제약회사^약품코드^명칭^원처방^수령량^배송량^처방일수^처방일시^반환일시^반환^전달사항^전화번호^주소^기관코드^내원구분^내원일자^처방이력번호^실시처방번호^Update 구분" colsep="^" colwidth="94, 50, 65, 40, 57, 70, 70, 50, 42, 70, 70, 100, 50, 50, 50, 58, 74, 74, 40, 110, 114, 161, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:95px; width:1194px; height:648px; ">
  400. <col checkvalue="Y,N" ref="trsmflag" type="checkbox"/>
  401. <col ref="hngnm"/>
  402. <col ref="pid" style="text-align:center; "/>
  403. <col ref="ioflagname" style="text-align:center; "/>
  404. <col ref="dschdclrtyn" style="text-align:center; "/>
  405. <col ref="prcpno" visibility="hidden" style="text-align:right; "/>
  406. <col ref="wardnm" style="text-align:right; "/>
  407. <col ref="roomnm" style="text-align:right; "/>
  408. <col ref="drugno" style="text-align:right; "/>
  409. <col ref="company"/>
  410. <col ref="prcpcd"/>
  411. <col ref="prcpnm"/>
  412. <col ref="totqty" style="text-align:right; "/>
  413. <col class="gridinput" ref="getqty" type="input" style="font-weight:bold; text-align:right; "/>
  414. <col ref="shipqty" style="font-weight:bold; text-align:right; "/>
  415. <col ref="prcpdayno" style="text-align:right; "/>
  416. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  417. <col ref="dcdd" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  418. <col checkvalue="Y,N" disabled="true" ref="dcyn" type="checkbox"/>
  419. <col class="gridinput" ref="rem" type="input"/>
  420. <col class="gridinput" ref="telno" type="input"/>
  421. <col class="gridinput" ref="addr" type="input"/>
  422. <col ref="instcd" visibility="hidden"/>
  423. <col ref="ioflag" visibility="hidden"/>
  424. <col ref="orddd" visibility="hidden"/>
  425. <col ref="prcphistno" visibility="hidden"/>
  426. <col ref="execprcpno" visibility="hidden"/>
  427. <col ref="updtflag" visibility="hidden"/>
  428. <script type="javascript" ev:event="onendedit">
  429. <![CDATA[
  430. if ( grd_prcp.col== grd_prcp.colRef("getqty")) {
  431. if ((parseFloat(model.getValue("/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/totqty")) < parseFloat(model.getValue("/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/getqty"))) || (parseFloat(model.getValue("/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/getqty")) < 0) ) {
  432. messageBox("수령량을 확인하십시요.","I999");
  433. model.setValue ( "/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/getqty", model.getValue("/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/totqty"));
  434. return;
  435. }
  436. model.setValue ( "/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/shipqty", parseFloat(model.getValue("/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/totqty")) - parseFloat(model.getValue("/root/main/prcplist/prcpinfo["+grd_prcp.row+"]/getqty")) );
  437. //grd_prcp.addStatus(grd_prcp.row,"insert");
  438. model.refresh();
  439. }
  440. ]]>
  441. </script>
  442. <script type="javascript" ev:event="xforms-select">
  443. <![CDATA[
  444. // 20091214_노동우_발주 전체 체크박스 선택시 모든 내역이 Y 로 체크되어 있는지 확인 후 update 처리
  445. var tflag = "N";
  446. for ( var i = 1 ; i<grd_prcp.rows; i++){
  447. if(model.getValue("/root/main/prcplist/prcpinfo["+i+"]/trsmflag") != "Y") {
  448. tflag = "Y";
  449. }
  450. }
  451. if(grd_prcp.fixedcellischeck(0,1) == true && tflag == "N") {
  452. for ( var i = 1 ; i<grd_prcp.rows; i++){
  453. grd_prcp.addStatus(i,"update");
  454. }
  455. }
  456. ]]>
  457. </script>
  458. <script type="javascript" ev:event="xforms-deselect">
  459. <![CDATA[
  460. // 20091214_노동우_발주 전체 선택 해제로 되어 있을 때 내역에 체크되어 있는 것이 없는지 확인 후 update 처리
  461. var tflag = "N";
  462. for ( var i = 1 ; i<grd_prcp.rows; i++){
  463. if(model.getValue("/root/main/prcplist/prcpinfo["+i+"]/trsmflag") != "N") {
  464. tflag = "Y";
  465. }
  466. }
  467. if(grd_prcp.fixedcellischeck(0,1) == false && tflag == "N") {
  468. for ( var i = 1 ; i<grd_prcp.rows; i++){
  469. grd_prcp.addStatus(i,"update");
  470. }
  471. }
  472. ]]>
  473. </script>
  474. </datagrid>
  475. <datagrid id="grd_exel" nodeset="/root/send/prcplist/prcpinfo" visibility="hidden" caption="성명^등록번호^입/외^prcpno^제약회사^약품코드^명칭^원처방^배송량^처방일시^전화번호^주소" colsep="^" colwidth="94, 50, 65, 40, 57, 70, 70, 50, 42, 70, 70, 100, 50, 50, 50, 58, 74, 74, 40, 110, 114, 161, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:395px; width:894px; height:100px; ">
  476. <col ref="hngnm"/>
  477. <col ref="pid" style="text-align:center; "/>
  478. <col ref="ioflagname" style="text-align:center; "/>
  479. <col ref="prcpno" visibility="hidden" style="text-align:right; "/>
  480. <col ref="company"/>
  481. <col ref="prcpcd"/>
  482. <col ref="prcpnm"/>
  483. <col ref="totqty" style="text-align:right; "/>
  484. <col ref="shipqty" style="font-weight:bold; text-align:right; "/>
  485. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  486. <col class="gridinput" ref="telno" type="input"/>
  487. <col class="gridinput" ref="addr" type="input"/>
  488. </datagrid>
  489. <datagrid id="grd_exel1" nodeset="/root/send/prcplist/prcpinfo1" visibility="hidden" caption="성명^등록번호^prcpno^병동^제약회사^약품코드^명칭^원처방^배송량^처방일시^전화번호" colsep="^" colwidth="94, 50, 65, 70, 57, 70, 70, 50, 42, 70, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:455px; width:894px; height:100px; ">
  490. <col ref="hngnm"/>
  491. <col ref="pid" style="text-align:center; "/>
  492. <col ref="prcpno" visibility="hidden" style="text-align:right; "/>
  493. <col ref="wardnm" style="text-align:right; "/>
  494. <col ref="company"/>
  495. <col ref="prcpcd"/>
  496. <col ref="prcpnm"/>
  497. <col ref="totqty" style="text-align:right; "/>
  498. <col ref="shipqty" style="font-weight:bold; text-align:right; "/>
  499. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  500. <col class="gridinput" ref="telno" type="input"/>
  501. </datagrid>
  502. <caption id="caption5" style="left:545px; top:70px; width:395px; height:25px; ">* 외래선치치외 조건의 경우 수납일자 기준으로 조회됩니다.</caption>
  503. </group>
  504. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  505. <button id="button1" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  506. <caption>출력</caption>
  507. <script type="javascript" ev:event="DOMActivate">
  508. <![CDATA[
  509. exeReportPreview("RPADT10701", "XMLSTR", "", "", "false","","","","","false");
  510. ]]>
  511. </script>
  512. </button>
  513. <button id="btn_save" class="btn4_letter2" style="left:1135px; top:5px; width:56px; height:22px; ">
  514. <caption>저장</caption>
  515. <script type="javascript" ev:event="DOMActivate">
  516. <![CDATA[
  517. //if (model.getValue("/root/send/endflag")=="Y") {
  518. //messageBox("이미 처리되었습니다.","I999");
  519. //return;
  520. //}
  521. var update = getGridUpdateData(grd_prcp);
  522. if(update == ""){
  523. messageBox("업데이트 정보가 없습니다.", "I");
  524. return 0;
  525. }
  526. model.setValue("/root/send/req/list", grd_prcp.getUpdateData());
  527. submit("TXADT10701");
  528. model.removeNodeset("/root/main/prcplist/prcpinfo");
  529. model.refresh();
  530. submit("TRADT10701");
  531. ]]>
  532. </script>
  533. </button>
  534. </group>
  535. </xhtml:body>
  536. </xhtml:html>