SMLPJ01100_부가처방등록.xrw 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPJ01100_부가처방.xrw
  4. * 설 명 : 부가처방
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.08.22
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>부가처방</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <patinfo>
  20. <patinfolist>
  21. <choi/>
  22. <instcd/>
  23. <ptno/>
  24. <dispptno/>
  25. <pid/>
  26. <patnm/>
  27. <spccd/>
  28. <spcnm/>
  29. <spcseqno/>
  30. <csteno/>
  31. <prcpdd/>
  32. <acptdd/>
  33. <addpr/>
  34. </patinfolist>
  35. </patinfo>
  36. <addprcp>
  37. <addprcplist>
  38. <choi/>
  39. <instcd/>
  40. <ptno/>
  41. <dispptno/>
  42. <pid/>
  43. <patnm/>
  44. <spccd/>
  45. <spcnm/>
  46. <spcseqno/>
  47. <csteno/>
  48. <prcpdd/>
  49. <prcptm/>
  50. <orddrid/>
  51. <orddrnm/>
  52. <testcd/>
  53. <testnm/>
  54. <testgrupcd/>
  55. <testgrupnm/>
  56. <cnfmdd/>
  57. <cnfmtm/>
  58. <cnfmid/>
  59. <cnfmnm/>
  60. <prcpseqno/>
  61. <cnfmflagcd/>
  62. <delflagcd/>
  63. <orgdelflagcd/>
  64. <prcpstatnm/>
  65. <remcmts/>
  66. </addprcplist>
  67. </addprcp>
  68. </main>
  69. <send/>
  70. <init>
  71. <refval/>
  72. <refmthd/>
  73. <prcpflag/>
  74. <prcpfromdd/>
  75. <prcptodd/>
  76. <isscnts/>
  77. <patrefmthd/>
  78. <patrefval/>
  79. <ptnocode/>
  80. <fromyear/>
  81. <fromptno/>
  82. <toyear/>
  83. <toptno/>
  84. <sysdt>
  85. <sysdtinfo>
  86. <sysdd/>
  87. <systm/>
  88. </sysdtinfo>
  89. </sysdt>
  90. <prcpcd>
  91. <prcpcdlist>
  92. <instcd/>
  93. <testcd/>
  94. <testengnm/>
  95. <testengabbr/>
  96. <testhngnm/>
  97. <testhngabbr/>
  98. <acptdept/>
  99. <ptnocd/>
  100. <stdyptnocd/>
  101. <trustptnocd/>
  102. <workflagcd/>
  103. <slidflagcd/>
  104. <slidisscnt/>
  105. <blocflagcd/>
  106. <initblocno/>
  107. <autokeepflagcd/>
  108. <stdy_workflagcd/>
  109. <stdy_slidflagcd/>
  110. <stdy_slidisscnt/>
  111. <stdy_blocflagcd/>
  112. <stdy_initblocno/>
  113. <stdy_autokeepflagcd/>
  114. <grupsnglflag/>
  115. </prcpcdlist>
  116. </prcpcd>
  117. <prcpkind>
  118. <prcpkindlist>
  119. <instcd/>
  120. <lvl/>
  121. <earnclsnm/>
  122. <earncls1/>
  123. <earncls2/>
  124. <earncls3/>
  125. <earnclskey/>
  126. </prcpkindlist>
  127. </prcpkind>
  128. <grupdetltest>
  129. <grupdetltestlist>
  130. <instcd/>
  131. <testgrupcd/>
  132. <testcd/>
  133. <testnm/>
  134. </grupdetltestlist>
  135. </grupdetltest>
  136. <ptnocd>
  137. <ptnocdlist>
  138. <instcd/>
  139. <ptnocd/>
  140. <ptnonm/>
  141. </ptnocdlist>
  142. </ptnocd>
  143. <hospenv>
  144. <hospenvinfo>
  145. <instcd/>
  146. <lendrtnterm/>
  147. <recvqualmthdcd/>
  148. <plgydeptcd/>
  149. <plgyteamcd/>
  150. <doctjobgradcd/>
  151. <teamjobgradcd/>
  152. <repttitl/>
  153. </hospenvinfo>
  154. </hospenv>
  155. </init>
  156. <hidden>
  157. <sortkind>-</sortkind>
  158. </hidden>
  159. </root>
  160. </instance>
  161. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  162. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  164. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  165. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  166. <script type="javascript" ev:event="xforms-ready">
  167. <![CDATA[
  168. fExeInitialize();
  169. ]]>
  170. </script>
  171. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  172. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  173. <submission id="TRLPJ01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpkind/prcpkindlist"/>
  174. <submission id="TRLPJ01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpcd/prcpcdlist"/>
  175. <submission id="TRLPJ01006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/prcpcd/prcpcdlist"/>
  176. <submission id="TRLPJ01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/grupdetltest/grupdetltestlist"/>
  177. <submission id="TRLPJ01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/addprcp/addprcplist"/>
  178. <submission id="TRLPJ01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfo/patinfolist"/>
  179. <submission id="TXLPJ01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/message"/>
  180. <submission id="TXLPJ01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/message"/>
  181. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  182. </model>
  183. <script type="javascript">
  184. <![CDATA[
  185. /* @group : 미수납처방등록
  186. * @ver : 2006.12.23 (CMCDEV-0001)
  187. * @by : 유동철(ACK)
  188. * @-----------------------------------
  189. * @type : function
  190. * @access : public
  191. * @desc : 초기화 Function
  192. */
  193. function fExeInitialize() {
  194. var sCurDate = "";
  195. //-----------------------------------------
  196. grd_prcplist.fixedcellcheckbox(0,1) = true;
  197. btn_outoch1.visible = false;
  198. btn_outoch2.visible = true;
  199. //--------------------------------
  200. model.removeNodeset("/root/send");
  201. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  202. submit("TRLPZ00102", false); // 시스템일시 조회
  203. submit("TRLPZ00109", false); // 병리번호코드 조회
  204. submit("TRLPZ00101", false); // 병원환경정보 조회
  205. submit("TRLPJ01001"); // 처방분류
  206. //-------------
  207. // 노드 초기화
  208. model.removeNodeset("/root/main/patinfo/patinfolist");
  209. model.removeNodeset("/root/main/addprcp/addprcplist");
  210. //------------------------------------------------------------
  211. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  212. //------------
  213. // 초기값 설정
  214. model.makeValue("/root/init/refval", ""); // 검색값 초기화
  215. model.makeValue("/root/init/refmthd", "1"); // 검색방법 초기화(등록번호)
  216. model.makeValue("/root/init/prcpfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 처방일자(From) 초기화
  217. model.makeValue("/root/init/prcptodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 처방일자(To) 초기화
  218. model.makeValue("/root/init/prcpflag", "0"); // 처방구분 초기화(등록처방)
  219. model.makeValue("/root/init/isscnts", "1"); // 처방발행수
  220. model.makeValue("/root/init/patrefmthd", "0"); // 환자정보 검색방법
  221. model.makeValue("/root/init/patrefval", ""); // 환자정보 검색값
  222. model.makeValue("/root/init/ptnocode", "");
  223. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  224. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  225. model.makeValue("/root/init/fromptno", "");
  226. model.makeValue("/root/init/toptno", "");
  227. //---------------------------------------------------------
  228. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  229. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
  230. //--------------
  231. model.refresh();
  232. }
  233. /* @group : 부가처방등록
  234. * @ver : 2007.08.22 (CMCDEV-0001)
  235. * @by : 유동철(ACK)
  236. * @-----------------------------------
  237. * @type : function
  238. * @access : public
  239. * @desc : 처방분류 선택 처리 Function
  240. */
  241. function fExePrcpKindClick() {
  242. var sEarnCls1 = "";
  243. var sEarnCls2 = "";
  244. var sEarnCls3 = "";
  245. var item = trv_prcpkind.item(trv_prcpkind.selectedIndex);
  246. //-------------------------------
  247. // 최하위 노드를 선택할 경우 처리
  248. if (trv_prcpkind.selectedIndex > 0 && item.depth == 2) {
  249. sEarnCls1 = trv_prcpkind.item(trv_prcpkind.selectedIndex).value;
  250. //--------------
  251. // 처방분류 분리
  252. sEarnCls3 = sEarnCls1.substr(5,2);
  253. sEarnCls2 = sEarnCls1.substr(3,2);
  254. sEarnCls1 = sEarnCls1.substr(1,2);
  255. //--------------------------------
  256. model.removeNodeset("/root/send");
  257. model.removeNodeset("/root/init/prcpcd/prcpcdlist");
  258. //----------------------------------------------------------------------
  259. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  260. model.makeValue("/root/send/earncls1", sEarnCls1);
  261. model.makeValue("/root/send/earncls2", sEarnCls2);
  262. model.makeValue("/root/send/earncls3", sEarnCls3);
  263. model.makeValue("/root/send/trustflagcd", "N");
  264. //----------------------------------------------------------------------
  265. //정렬기준
  266. model.makeValue("/root/send/sortkind", model.getValue("/root/hidden/sortkind"));
  267. //-------------------
  268. submit("TRLPJ01006");
  269. }
  270. }
  271. /* @group : 부가처방등록
  272. * @ver : 2007.08.22 (CMCDEV-0001)
  273. * @by : 유동철(ACK)
  274. * @-----------------------------------
  275. * @type : function
  276. * @access : public
  277. * @desc : 처방목록 선택 처리 Function
  278. */
  279. function fExePrcpListClick() {
  280. //------------------------------------------------------------------------------------------
  281. if (grd_testcdlist.isCell(event.target) && grd_testcdlist.row >= grd_testcdlist.fixedRows) {
  282. fExePrcpAdd();
  283. }
  284. }
  285. /* @group : 부가처방등록
  286. * @ver : 2007.08.22 (CMCDEV-0001)
  287. * @by : 유동철(ACK)
  288. * @-----------------------------------
  289. * @type : function
  290. * @access : public
  291. * @desc : 부가처방 추가 처리 Function
  292. */
  293. function fExePrcpAdd() {
  294. var iRowNo = 0;
  295. var iFindNo = 0;
  296. var sPatNode = "/root/main/patinfo/patinfolist";
  297. var sSrcNode = "";
  298. var sDescNode = "/root/main/addprcp/addprcplist";
  299. //-----------------------
  300. // 환자의 선택여부를 검사
  301. iFindRow = grd_patinfolist.findRow("true", 1, 1, true, true);
  302. if (iFindRow <= 0) {
  303. messageBox("환자정보에서 환자를 ", "C002");
  304. return false;
  305. }
  306. //---------------------------------------------
  307. // 그룹(Battery) 처방일 경우 상세 검사항목 조회
  308. if (model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/grupsnglflag") == "G") {
  309. //--------------------------------
  310. model.removeNodeset("/root/send");
  311. model.removeNodeset("/root/init/grupdetltest/grupdetltestlist");
  312. //---------------------------------------------------------------------------------------------------------------------
  313. model.makeValue("/root/send/instcd", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/instcd"));
  314. model.makeValue("/root/send/prcpdd", getCurrentDate());
  315. model.makeValue("/root/send/testcd", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/testcd"));
  316. model.makeValue("/root/send/grupuseyn", "0");
  317. model.makeValue("/root/send/testuseyn", "0");
  318. //-------------------
  319. submit("TRLPJ01103");
  320. //---------------------------------------------------------------------
  321. if (getNodesetCount("/root/init/grupdetltest/grupdetltestlist") <= 0) {
  322. messageBox("그룹검사에 대한 세부검사가 없습니다! 처방을 추가", "E001");
  323. return false;
  324. } else {
  325. sSrcNode = "/root/init/grupdetltest/grupdetltestlist";
  326. //-----------------------------------------------------------------------
  327. for (var iNodeCnt=1; iNodeCnt <= getNodesetCount(sSrcNode); iNodeCnt++) {
  328. //------------------------
  329. // 처방 발생 수 만큼 증가
  330. for (var iNo=1; iNo <= Number(model.getValue("/root/init/isscnts")); iNo++) {
  331. grd_prcplist.addRow();
  332. //-------------------------------------
  333. iRowNo = Number(grd_prcplist.rows) - 1;
  334. model.makeValue(sDescNode+"["+iRowNo+"]/choi", "true");
  335. model.makeValue(sDescNode+"["+iRowNo+"]/instcd", model.getValue(sSrcNode+"["+iNodeCnt+"]/instcd"));
  336. model.makeValue(sDescNode+"["+iRowNo+"]/testcd", model.getValue(sSrcNode+"["+iNodeCnt+"]/testcd"));
  337. model.makeValue(sDescNode+"["+iRowNo+"]/testnm", model.getValue(sSrcNode+"["+iNodeCnt+"]/testnm"));
  338. model.makeValue(sDescNode+"["+iRowNo+"]/testgrupcd", model.getValue(sSrcNode+"["+iNodeCnt+"]/testgrpcd"));
  339. model.makeValue(sDescNode+"["+iRowNo+"]/testgrupnm", model.getValue(sSrcNode+"["+grd_testcdlist.row+"]/testengnm"));
  340. model.makeValue(sDescNode+"["+iRowNo+"]/instcd", model.getValue(sPatNode+"["+iFindRow+"]/instcd"));
  341. model.makeValue(sDescNode+"["+iRowNo+"]/ptno", model.getValue(sPatNode+"["+iFindRow+"]/ptno"));
  342. model.makeValue(sDescNode+"["+iRowNo+"]/dispptno", model.getValue(sPatNode+"["+iFindRow+"]/dispptno"));
  343. model.makeValue(sDescNode+"["+iRowNo+"]/pid", model.getValue(sPatNode+"["+iFindRow+"]/pid"));
  344. model.makeValue(sDescNode+"["+iRowNo+"]/patnm", model.getValue(sPatNode+"["+iFindRow+"]/patnm"));
  345. model.makeValue(sDescNode+"["+iRowNo+"]/spccd", model.getValue(sPatNode+"["+iFindRow+"]/spccd"));
  346. model.makeValue(sDescNode+"["+iRowNo+"]/spcnm", model.getValue(sPatNode+"["+iFindRow+"]/spcnm"));
  347. model.makeValue(sDescNode+"["+iRowNo+"]/spcseqno", model.getValue(sPatNode+"["+iFindRow+"]/spcseqno"));
  348. model.makeValue(sDescNode+"["+iRowNo+"]/csteno", model.getValue(sPatNode+"["+iFindRow+"]/csteno"));
  349. model.makeValue(sDescNode+"["+iRowNo+"]/prcpdd", getCurrentDate());
  350. model.makeValue(sDescNode+"["+iRowNo+"]/prcptm", getCurrentTime());
  351. model.makeValue(sDescNode+"["+iRowNo+"]/orddrid", "-");
  352. model.makeValue(sDescNode+"["+iRowNo+"]/orddrnm", "-");
  353. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmdd", "-");
  354. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmtm", "-");
  355. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmid", "-");
  356. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmnm", "-");
  357. model.makeValue(sDescNode+"["+iRowNo+"]/prcpseqno", "0");
  358. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmflagcd","-");
  359. model.makeValue(sDescNode+"["+iRowNo+"]/delflagcd", "-");
  360. model.makeValue(sDescNode+"["+iRowNo+"]/orgdelflagcd", "-");
  361. }
  362. }
  363. }
  364. } else {
  365. sSrcNode = "/root/init/prcpcd/prcpcdlist";
  366. //------------------------
  367. // 처방 발생 수 만큼 증가
  368. for (var iNo=1; iNo <= Number(model.getValue("/root/init/isscnts")); iNo++) {
  369. grd_prcplist.addRow();
  370. //-------------------------------------
  371. iRowNo = Number(grd_prcplist.rows) - 1;
  372. model.makeValue(sDescNode+"["+iRowNo+"]/choi", "true");
  373. model.makeValue(sDescNode+"["+iRowNo+"]/testcd", model.getValue(sSrcNode+"["+grd_testcdlist.row+"]/testcd"));
  374. model.makeValue(sDescNode+"["+iRowNo+"]/testnm", model.getValue(sSrcNode+"["+grd_testcdlist.row+"]/testengnm"));
  375. model.makeValue(sDescNode+"["+iRowNo+"]/testgrupcd", "-");
  376. model.makeValue(sDescNode+"["+iRowNo+"]/testgrupnm", "-");
  377. model.makeValue(sDescNode+"["+iRowNo+"]/instcd", model.getValue(sPatNode+"["+iFindRow+"]/instcd"));
  378. model.makeValue(sDescNode+"["+iRowNo+"]/ptno", model.getValue(sPatNode+"["+iFindRow+"]/ptno"));
  379. model.makeValue(sDescNode+"["+iRowNo+"]/dispptno", model.getValue(sPatNode+"["+iFindRow+"]/dispptno"));
  380. model.makeValue(sDescNode+"["+iRowNo+"]/pid", model.getValue(sPatNode+"["+iFindRow+"]/pid"));
  381. model.makeValue(sDescNode+"["+iRowNo+"]/patnm", model.getValue(sPatNode+"["+iFindRow+"]/patnm"));
  382. model.makeValue(sDescNode+"["+iRowNo+"]/spccd", model.getValue(sPatNode+"["+iFindRow+"]/spccd"));
  383. model.makeValue(sDescNode+"["+iRowNo+"]/spcnm", model.getValue(sPatNode+"["+iFindRow+"]/spcnm"));
  384. model.makeValue(sDescNode+"["+iRowNo+"]/spcseqno", model.getValue(sPatNode+"["+iFindRow+"]/spcseqno"));
  385. model.makeValue(sDescNode+"["+iRowNo+"]/csteno", model.getValue(sPatNode+"["+iFindRow+"]/csteno"));
  386. model.makeValue(sDescNode+"["+iRowNo+"]/prcpdd", getCurrentDate());
  387. model.makeValue(sDescNode+"["+iRowNo+"]/prcptm", getCurrentTime());
  388. model.makeValue(sDescNode+"["+iRowNo+"]/orddrid", "-");
  389. model.makeValue(sDescNode+"["+iRowNo+"]/orddrnm", "-");
  390. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmdd", "-");
  391. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmtm", "-");
  392. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmid", "-");
  393. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmnm", "-");
  394. model.makeValue(sDescNode+"["+iRowNo+"]/prcpseqno", "0");
  395. model.makeValue(sDescNode+"["+iRowNo+"]/cnfmflagcd","-");
  396. model.makeValue(sDescNode+"["+iRowNo+"]/delflagcd", "-");
  397. model.makeValue(sDescNode+"["+iRowNo+"]/orgdelflagcd", "-");
  398. }
  399. }
  400. //--------------------------------
  401. grd_prcplist.topRow = iRowNo - 17;
  402. }
  403. /* @group : 부가처방등록
  404. * @ver : 2007.08.22 (CMCDEV-0001)
  405. * @by : 유동철(ACK)
  406. * @-----------------------------------
  407. * @type : function
  408. * @access : public
  409. * @desc : 부가처방 목록 조회 처리 Function
  410. */
  411. function fGetPlgyAddPrcpList() {
  412. var sTemp = "";
  413. //------------------------------------------------
  414. if (model.getValue("/root/init/ptnocode") != "") {
  415. //------------------------------------------------
  416. if (model.getValue("/root/init/fromyear") == "") {
  417. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  418. } else {
  419. sTemp = model.getValue("/root/init/fromyear");
  420. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  421. }
  422. //----------------------------------------------
  423. if (model.getValue("/root/init/toyear") == "") {
  424. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  425. } else {
  426. sTemp = model.getValue("/root/init/toyear");
  427. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  428. }
  429. //------------------------------------------------
  430. if (model.getValue("/root/init/fromptno") == "") {
  431. model.makeValue("/root/init/fromptno", "000000");
  432. } else {
  433. sTemp = model.getValue("/root/init/fromptno");
  434. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  435. }
  436. //----------------------------------------------
  437. if (model.getValue("/root/init/toptno") == "") {
  438. model.makeValue("/root/init/toptno", "999999");
  439. } else {
  440. sTemp = model.getValue("/root/init/toptno");
  441. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  442. }
  443. }
  444. //--------------------------------------------
  445. sTemp = model.getValue("/root/init/ptnocode");
  446. //--------------------------------
  447. model.removeNodeset("/root/send");
  448. model.removeNodeset("/root/main/addprcp/addprcplist");
  449. //---------------------------------------------------------------------
  450. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  451. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  452. model.makeValue("/root/send/refmthd", model.getValue("/root/init/refmthd"));
  453. model.makeValue("/root/send/prcpflag", model.getValue("/root/init/prcpflag"));
  454. model.makeValue("/root/send/prcpfromdd", model.getValue("/root/init/prcpfromdd"));
  455. model.makeValue("/root/send/prcptodd", model.getValue("/root/init/prcptodd"));
  456. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  457. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  458. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  459. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  460. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  461. //-------------------
  462. if(submit("TRLPJ01102")) {
  463. //---------------------------------
  464. // 부가처방이 존재한 데이터는 색을 표시한다.
  465. for (var iNo=1; iNo <= getNodesetCount("/root/main/patinfo/patinfolist"); iNo++) {
  466. if(model.getValue("/root/main/patinfo/patinfolist["+iNo+"]/addpr")!=""){ // 부가처방이 존재하고...
  467. grd_patinfolist.rowStyle(iNo, "data", "background-color") = "#ffcc00"; // 존재하면 주황색으로..
  468. }else{
  469. grd_patinfolist.rowStyle(iNo, "data", "background-color") = "#f9ffff"; // 존재 안하면 하얀색으로..
  470. }
  471. }
  472. }
  473. model.refresh();
  474. }
  475. /* @group : 부가처방등록
  476. * @ver : 2007.08.22 (CMCDEV-0001)
  477. * @by : 유동철(ACK)
  478. * @-----------------------------------
  479. * @type : function
  480. * @access : public
  481. * @desc : 환자정보 목록 조회 처리 Function
  482. */
  483. function fGetPatInfoList() {
  484. if(event.keyCode == 13) {
  485. model.setValue("/root/init/patrefval", ipt_patrefval.currentText);
  486. ipt_patrefval.refresh();
  487. //-------------------------------------------------
  488. if (model.getValue("/root/init/patrefval") == "") {
  489. messageBox("등록번호를 입력하여 주십시오! 환자정보를 조회", "E001");
  490. return false;
  491. }
  492. //--------------------------------
  493. model.removeNodeset("/root/send");
  494. model.removeNodeset("/root/main/patinfo/patinfolist");
  495. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  496. model.makeValue("/root/send/patrefval", model.getValue("/root/init/patrefval"));
  497. submit("TRLPJ01102");
  498. }
  499. }
  500. /* @group : 부가처방등록
  501. * @ver : 2007.08.22 (CMCDEV-0001)
  502. * @by : 유동철(ACK)
  503. * @-----------------------------------
  504. * @type : function
  505. * @access : public
  506. * @desc : 환자정보 클릭 처리 Function
  507. */
  508. function fExePatInfoClick() {
  509. //---------------------------------------------------------------------------------------------
  510. if (grd_patinfolist.isCell(event.target) && grd_patinfolist.row >= grd_patinfolist.fixedRows) {
  511. fExeChoiPatInfo();
  512. }
  513. }
  514. /* @group : 부가처방등록
  515. * @ver : 2007.08.22 (CMCDEV-0001)
  516. * @by : 유동철(ACK)
  517. * @-----------------------------------
  518. * @type : function
  519. * @access : public
  520. * @desc : 환자정보 선택 처리 Function
  521. */
  522. function fExeChoiPatInfo() {
  523. var sNode = "/root/main/patinfo/patinfolist";
  524. var iRowNo = grd_patinfolist.row;
  525. //-----------------------------------------------------
  526. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  527. model.makeValue(sNode+"["+iNo+"]/choi", "false");
  528. grd_prcplist.colDisabled(grd_prcplist.colRef("remcmts")) = true;
  529. }
  530. //-------------------------------------------------
  531. model.makeValue(sNode+"["+iRowNo+"]/choi", "true");
  532. //--------------------------------
  533. model.removeNodeset("/root/send");
  534. model.removeNodeset("/root/main/addprcp/addprcplist");
  535. //---------------------------------------------------------------------
  536. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  537. model.makeValue("/root/send/refval", model.getValue(sNode+"["+iRowNo+"]/pid"));
  538. model.makeValue("/root/send/refmthd", model.getValue("/root/init/refmthd"));
  539. model.makeValue("/root/send/prcpflag", model.getValue("/root/init/prcpflag"));
  540. model.makeValue("/root/send/prcpfromdd", model.getValue("/root/init/prcpfromdd"));
  541. model.makeValue("/root/send/prcptodd", model.getValue("/root/init/prcptodd"));
  542. model.makeValue("/root/send/ptno", model.getValue(sNode+"["+iRowNo+"]/ptno"));
  543. //-------------------
  544. submit("TRLPJ01101");
  545. }
  546. /* @group : 부가처방등록
  547. * @ver : 2007.08.22 (CMCDEV-0001)
  548. * @by : 유동철(ACK)
  549. * @-----------------------------------
  550. * @type : function
  551. * @access : public
  552. * @desc : 부가처방 등록 처리 Function
  553. */
  554. function fExeSave() {
  555. var bState = false;
  556. var sSrcNode = "/root/main/addprcp/addprcplist";
  557. var iMaxRowCnt = getNodesetCount(sSrcNode);
  558. //-------------------------
  559. grd_prcplist.clearStatus();
  560. //-----------------------------------------
  561. for (var iNo=1; iNo <= iMaxRowCnt; iNo++) {
  562. //--------------------------------------------------------
  563. if (model.getValue(sSrcNode+"["+iNo+"]/choi") == "true") {
  564. //------------
  565. // 확인자 검사
  566. if (model.getValue(sSrcNode+"["+iNo+"]/cnfmid") == "-") {
  567. //------------------
  568. // 취소처방여부 검사
  569. if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "1") {
  570. messageBox("취소된 부가처방은 재 등록 ", "E001");
  571. return false;
  572. } else if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "0") {
  573. messageBox("등록된 부가처방은 재 등록 ", "E001");
  574. return false;
  575. } else {
  576. grd_prcplist.addStatus(iNo, "insert");
  577. model.makeValue(sSrcNode+"["+iNo+"]/cnfmflagcd", "2");
  578. model.makeValue(sSrcNode+"["+iNo+"]/delflagcd", "0");
  579. bState = true;
  580. }
  581. } else {
  582. messageBox("등록된 부가처방은 재 등록 ", "E001");
  583. return false;
  584. }
  585. }
  586. }
  587. //-----------------------------------------------------------------------------------------------
  588. //if (model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd") != getUserInfo("jobkindcd")) {
  589. if ( !lpzfGetDoctorCheck("/root/init/hospenv/hospenvinfo/doctjobgradcd", getUserInfo("jobkindcd")) ) {
  590. messageBox("의사직급만 처방이 ", "I006");
  591. return false;
  592. }
  593. //------------
  594. if (bState) {
  595. model.removeNodeset("/root/send");
  596. model.makeValue("/root/send/addprcplist", grd_prcplist.getUpdateData());
  597. //-----------
  598. setAlertOn();
  599. if (submit("TXLPJ01101")) fGetPlgyAddPrcpList();
  600. }
  601. }
  602. /* @group : 부가처방등록
  603. * @ver : 2007.08.22 (CMCDEV-0001)
  604. * @by : 유동철(ACK)
  605. * @-----------------------------------
  606. * @type : function
  607. * @access : public
  608. * @desc : 부가처방 등록 처리 Function
  609. */
  610. function fExePrcpCnfm(pBizFlagCd) {
  611. var bState = false;
  612. var sSrcNode = "/root/main/addprcp/addprcplist";
  613. var iMaxRowCnt = getNodesetCount(sSrcNode);
  614. //-------------------------
  615. grd_prcplist.clearStatus();
  616. //-----------------------------------------
  617. for (var iNo=1; iNo <= iMaxRowCnt; iNo++) {
  618. //--------------------------------------------------------
  619. if (model.getValue(sSrcNode+"["+iNo+"]/choi") == "true") {
  620. switch (pBizFlagCd) {
  621. case "0" :
  622. //------------
  623. // 확인자 검사
  624. if (model.getValue(sSrcNode+"["+iNo+"]/cnfmdd") == "-") {
  625. //------------------
  626. // 취소처방여부 검사
  627. if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "1") {
  628. messageBox("취소된 부가처방은 처방확인을 ", "E001");
  629. return false;
  630. } else if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "0") {
  631. grd_prcplist.addStatus(iNo, "insert");
  632. model.makeValue(sSrcNode+"["+iNo+"]/cnfmflagcd", "0");
  633. model.makeValue(sSrcNode+"["+iNo+"]/delflagcd", "0");
  634. bState = true;
  635. } else {
  636. messageBox("신규 부가처방은 처방확인을 ", "E001");
  637. return false;
  638. }
  639. } else {
  640. messageBox("처방확인된 부가처방은 재 확인 ", "E001");
  641. return false;
  642. }
  643. break;
  644. //-------------
  645. // 처방확인취소
  646. case "1" :
  647. //------------
  648. // 확인자 검사
  649. if (model.getValue(sSrcNode+"["+iNo+"]/cnfmdd") != "-") {
  650. //------------------
  651. // 취소처방여부 검사
  652. if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "1") {
  653. messageBox("취소된 부가처방은 확인취소를 ", "E001");
  654. return false;
  655. } else if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "0") {
  656. grd_prcplist.addStatus(iNo, "insert");
  657. model.makeValue(sSrcNode+"["+iNo+"]/cnfmflagcd", "1");
  658. model.makeValue(sSrcNode+"["+iNo+"]/delflagcd", "0");
  659. bState = true;
  660. } else {
  661. messageBox("신규 부가처방은 확인취소를 ", "E001");
  662. return false;
  663. }
  664. } else {
  665. messageBox("확인안된 부가처방은 확인취소를 ", "E001");
  666. return false;
  667. }
  668. break;
  669. //----------
  670. // 처방취소
  671. case "2" :
  672. //------------
  673. // 확인자 검사
  674. if (model.getValue(sSrcNode+"["+iNo+"]/cnfmdd") == "-") {
  675. //------------------
  676. // 취소처방여부 검사
  677. if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "1") {
  678. messageBox("취소된 부가처방은 처방취소를 ", "E001");
  679. return false;
  680. } else if (model.getValue(sSrcNode+"["+iNo+"]/orgdelflagcd") == "0") {
  681. grd_prcplist.addStatus(iNo, "insert");
  682. model.makeValue(sSrcNode+"["+iNo+"]/cnfmflagcd", "2");
  683. model.makeValue(sSrcNode+"["+iNo+"]/delflagcd", "1");
  684. bState = true;
  685. } else {
  686. messageBox("신규 부가처방은 확인취소를 ", "E001");
  687. return false;
  688. }
  689. } else {
  690. messageBox("확인된 부가처방은 처방취소를 ", "E001");
  691. return false;
  692. }
  693. break;
  694. }
  695. }
  696. }
  697. //------------
  698. if (bState) {
  699. model.removeNodeset("/root/send");
  700. model.makeValue("/root/send/addprcplist", grd_prcplist.getUpdateData());
  701. //-----------
  702. setAlertOn();
  703. if (submit("TXLPJ01102")) fGetPlgyAddPrcpList();
  704. }
  705. }
  706. /* @group : 부가처방등록
  707. * @ver : 2007.08.23 (CMCDEV-0001)
  708. * @by : 유동철(ACK)
  709. * @-----------------------------------
  710. * @type : function
  711. * @access : public
  712. * @desc : 부가처방 Excel저장 처리 Function
  713. */
  714. function fExeSaveToExcel() {
  715. grd_prcplist.saveExcel("C:\\SMLPJ01100_부가처방.xls", "부가처방", false, true);
  716. messageBox("C:\\SMLPJ01100_부가처방.xls 파일에 출력되었습니다.! Excel출력이", "I002");
  717. }
  718. /* @group : 부가처방등록
  719. * @ver : 2007.08.23 (CMCDEV-0001)
  720. * @by : 유동철(ACK)
  721. * @-----------------------------------
  722. * @type : function
  723. * @access : public
  724. * @desc : 등록번호 입력 시 처리 Function
  725. */
  726. function fExeRefValKeyPress() {
  727. //------------------------
  728. if (event.keyCode == 13) {
  729. model.makeValue("/root/init/refval", ipt_seaval.currentText);
  730. ipt_seaval.refresh();
  731. //--------------------
  732. fGetPlgyAddPrcpList();
  733. }
  734. }
  735. ]]>
  736. </script>
  737. </xhtml:head>
  738. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  739. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  740. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">부가처방</caption>
  741. </group>
  742. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  743. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  744. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  745. <caption id="caption2" class="search_name" style="left:798px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  746. <caption id="caption4" class="search_name" autoresize="true" style="left:424px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  747. <caption id="caption5" class="search_no_b" style="left:984px; top:8px; width:12px; height:17px; ">~</caption>
  748. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  749. <input id="ipt_acptddfrom" ref="/root/init/prcpfromdd" class="input_s_essential" navindex="8" inputtype="date" style="left:887px; top:8px; width:94px; height:19px; "/>
  750. <input id="ipt_acptddto" ref="/root/init/prcptodd" class="input_s_essential" navindex="9" inputtype="date" style="left:999px; top:8px; width:94px; height:19px; "/>
  751. <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:1123px; top:7px; width:56px; height:22px; ">
  752. <caption>조회</caption>
  753. <script type="javascript" ev:event="DOMActivate">
  754. <![CDATA[
  755. fGetPlgyAddPrcpList();
  756. ]]>
  757. </script>
  758. </button>
  759. <input id="ipt_seaval" ref="/root/init/refval" class="input_search" navindex="6" maxlength="10" style="left:516px; top:8px; width:70px; height:19px; ">
  760. <script type="javascript" ev:event="onkeypress">
  761. <![CDATA[
  762. fExeRefValKeyPress();
  763. ]]>
  764. </script>
  765. </input>
  766. <caption id="caption8" class="search_name" autoresize="true" style="left:597px; top:9px; width:91px; height:17px; ">처방구분 :</caption>
  767. <select1 id="cmbprcpflag" ref="/root/init/prcpflag" class="combo_search" navindex="7" appearance="minimal" style="left:687px; top:8px; width:100px; height:19px; ">
  768. <choices>
  769. <item>
  770. <label>등록처방</label>
  771. <value>0</value>
  772. </item>
  773. <item>
  774. <label>취소처방</label>
  775. <value>1</value>
  776. </item>
  777. </choices>
  778. </select1>
  779. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:121px; height:19px; ">
  780. <choices>
  781. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  782. <label ref="ptnonm"/>
  783. <value ref="ptnocd"/>
  784. </itemset>
  785. </choices>
  786. </select1>
  787. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:263px; top:8px; width:50px; height:19px; "/>
  788. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  789. <caption id="caption10" class="search_no_b" style="left:316px; top:8px; width:12px; height:17px; ">~</caption>
  790. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:361px; top:8px; width:50px; height:19px; "/>
  791. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:331px; top:8px; width:27px; height:19px; "/>
  792. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:233px; top:8px; width:27px; height:19px; "/>
  793. </group>
  794. <line id="line1" class="line_1" style="x1:0px; y1:280px; x2:929px; y2:280px; "/>
  795. <caption id="caption3" class="tit_2" style="left:5px; top:265px; width:139px; height:13px; ">부가처방 목록</caption>
  796. <caption id="caption7" class="tit_2" style="left:5; top:54px; width:139px; height:13px; ">환자정보</caption>
  797. <line id="line2" class="line_1" style="left:0; x1:0px; y1:69px; x2:929px; y2:69px; "/>
  798. <line id="line11" class="line_1" style="x1:936px; y1:69px; x2:1194px; y2:69px; "/>
  799. <caption id="caption17" class="tit_2" style="left:941px; top:54px; width:139px; height:13px; ">처방분류</caption>
  800. <datagrid id="grd_prcplist" nodeset="/root/main/addprcp/addprcplist" class="datagrid2" caption="선&#xA;택^기관코드^병리번호^병리번호^등록번호^환자명^검체코드^검체명^검체&#xA;번호^Cassette&#xA;번호^처방일자^처방시간^처방의ID^처방의^검사코드^검사항목^비고^검사그룹코드^검사그룹명^확인일자^확인시간^확인자ID^확인자^prcpseqno^cnfmflagcd^delflagcd^orgdelflagcd^처방&#xA;상태" colsep="^" colwidth="40, 0, 0, 70, 65, 60, 0, 0, 40, 60, 70, 60, 0, 50, 0, 120, 150, 0, 0, 70, 60, 0, 60, 0, 0, 0, 0, 40" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" navindex="12" style="left:0px; top:285px; width:929px; height:457px; ">
  801. <col ref="choi" type="checkbox"/>
  802. <col ref="instcd"/>
  803. <col ref="ptno"/>
  804. <col class="text_center" ref="dispptno"/>
  805. <col class="text_center" ref="pid"/>
  806. <col class="text_center" ref="patnm"/>
  807. <col ref="spccd"/>
  808. <col ref="spcnm"/>
  809. <col class="text_center" ref="spcseqno"/>
  810. <col class="text_center" ref="csteno"/>
  811. <col class="text_center" ref="prcpdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  812. <col class="text_center" ref="prcptm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  813. <col ref="orddrid"/>
  814. <col class="text_center" ref="orddrnm"/>
  815. <col ref="testcd"/>
  816. <col ref="testnm"/>
  817. <col ref="remcmts" type="input"/>
  818. <col ref="testgrupcd"/>
  819. <col ref="testgrupnm"/>
  820. <col class="text_center" ref="cnfmdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  821. <col class="text_center" ref="cnfmtm" format="hh:nn:ss" mask="exclude" showmask="true"/>
  822. <col ref="cnfmid"/>
  823. <col class="text_center" ref="cnfmnm"/>
  824. <col ref="prcpseqno"/>
  825. <col ref="cnfmflagcd"/>
  826. <col ref="delflagcd"/>
  827. <col ref="orgdelflagcd"/>
  828. <col ref="prcpstatnm"/>
  829. </datagrid>
  830. <datagrid id="grd_patinfolist" nodeset="/root/main/patinfo/patinfolist" caption="선택^기관코드^ptno^병리번호^등록번호^환자명^검체코드^검체명^검체번호^Cassette번호^처방일자^접수일자^부가처방존재" colsep="^" colwidth="40, 0, 0, 90, 90, 90, 0, 238, 70, 90, 90, 90, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="11" style="left:0; top:74px; width:929; height:184px; ">
  831. <col ref="choi" type="checkbox"/>
  832. <col ref="instcd"/>
  833. <col ref="ptno"/>
  834. <col class="text_center" ref="dispptno"/>
  835. <col class="text_center" ref="pid"/>
  836. <col class="text_center" ref="patnm"/>
  837. <col ref="spccd"/>
  838. <col ref="spcnm"/>
  839. <col class="text_center" ref="spcseqno"/>
  840. <col class="text_center" ref="csteno"/>
  841. <col class="text_center" ref="prcpdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  842. <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  843. <col ref="addpr"/>
  844. <script type="javascript" ev:event="onclick">
  845. <![CDATA[
  846. fExePatInfoClick();
  847. ]]>
  848. </script>
  849. </datagrid>
  850. <treeview id="trv_prcpkind" navindex="13" itemsettype="depth" style="left:936px; top:74px; width:258px; height:184px; ">
  851. <itemset nodeset="/root/init/prcpkind/prcpkindlist">
  852. <label ref="earnclsnm"/>
  853. <value ref="earnclskey"/>
  854. <depth ref="lvl"/>
  855. </itemset>
  856. <script type="javascript" ev:event="xforms-select">
  857. <![CDATA[
  858. fExePrcpKindClick();
  859. ]]>
  860. </script>
  861. </treeview>
  862. <line id="line3" class="line_1" style="x1:936px; y1:280px; x2:1194px; y2:280px; "/>
  863. <caption id="caption9" class="tit_2" style="left:941px; top:265px; width:139px; height:13px; ">처방목록</caption>
  864. <datagrid id="grd_testcdlist" nodeset="/root/init/prcpcd/prcpcdlist" caption="기관코드^처방코드^처방명^처방명^처방명^처방명^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16" colsep="^" colwidth="0, 0, 238, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="14" style="left:936px; top:285px; width:258px; height:457px; ">
  865. <col ref="instcd"/>
  866. <col ref="testcd"/>
  867. <col ref="testengnm"/>
  868. <col ref="testengabbr"/>
  869. <col ref="testhngnm"/>
  870. <col ref="testhngabbr"/>
  871. <col ref="acptdept"/>
  872. <col ref="ptnocd"/>
  873. <col ref="stdyptnocd"/>
  874. <col ref="trustptnocd"/>
  875. <col ref="workflagcd"/>
  876. <col ref="slidflagcd"/>
  877. <col ref="slidisscnt"/>
  878. <col ref="blocflagcd"/>
  879. <col ref="initblocno"/>
  880. <col ref="autokeepflagcd"/>
  881. <col ref="stdy_workflagcd"/>
  882. <col ref="stdy_slidflagcd"/>
  883. <col ref="stdy_slidisscnt"/>
  884. <col ref="stdy_blocflagcd"/>
  885. <col ref="stdy_initblocno"/>
  886. <col ref="stdy_autokeepflagcd"/>
  887. <script type="javascript" ev:event="ondblclick">
  888. <![CDATA[
  889. fExePrcpListClick();
  890. ]]>
  891. </script>
  892. </datagrid>
  893. <line id="line4" class="line_4" style="x1:932px; y1:70px; x2:932px; y2:743px; "/>
  894. <input id="ipt_isscnts" ref="/root/init/isscnts" navindex="15" format="#,###" mask="exclude" showmask="true" style="left:1159px; top:260px; width:35px; height:19px; "/>
  895. <button id="btn_outoch2" class="btn2_letter4" navindex="14" visibility="hidden" style="left:1090px; top:260px; width:64px; height:19px; ">
  896. <caption>영문정렬</caption>
  897. <script type="javascript" ev:event="DOMActivate">
  898. <![CDATA[
  899. btn_outoch1.visible = true;
  900. btn_outoch2.visible = false;
  901. model.setValue("/root/hidden/sortkind", "En");
  902. fExePrcpKindClick();
  903. model.setValue("/root/hidden/sortkind", "-");
  904. ]]>
  905. </script>
  906. </button>
  907. <button id="btn_outoch1" class="btn2_letter4" navindex="14" style="left:1090px; top:260px; width:64px; height:19px; ">
  908. <caption>한글정렬</caption>
  909. <script type="javascript" ev:event="DOMActivate">
  910. <![CDATA[
  911. btn_outoch1.visible = false;
  912. btn_outoch2.visible = true;
  913. model.setValue("/root/hidden/sortkind", "Hn");
  914. fExePrcpKindClick();
  915. model.setValue("/root/hidden/sortkind", "-");
  916. ]]>
  917. </script>
  918. </button>
  919. </group>
  920. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  921. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  922. <button id="btn_prcpcnfm" class="btn4_letter4" navindex="17" style="left:1031; top:3; width:80px; height:22px; ">
  923. <caption>처방확인</caption>
  924. <script type="javascript" ev:event="DOMActivate">
  925. <![CDATA[
  926. fExePrcpCnfm("0");
  927. ]]>
  928. </script>
  929. </button>
  930. <button id="btn_save" class="btn4_letter4" navindex="19" style="left:865; top:3; width:80px; height:22px; ">
  931. <caption>처방저장</caption>
  932. <script type="javascript" ev:event="DOMActivate">
  933. <![CDATA[
  934. fExeSave();
  935. ]]>
  936. </script>
  937. </button>
  938. <button id="btn_cnfmcncl" class="btn4_letter4" navindex="18" style="left:1114; top:3; width:80px; height:22px; ">
  939. <caption>확인취소</caption>
  940. <script type="javascript" ev:event="DOMActivate">
  941. <![CDATA[
  942. fExePrcpCnfm("1");
  943. ]]>
  944. </script>
  945. </button>
  946. <button id="btn_prcpcncl" class="btn4_letter4" navindex="20" style="left:948; top:3; width:80px; height:22px; ">
  947. <caption>처방취소</caption>
  948. <script type="javascript" ev:event="DOMActivate">
  949. <![CDATA[
  950. fExePrcpCnfm("2");
  951. ]]>
  952. </script>
  953. </button>
  954. <button id="button13" class="btn6_letter5" navindex="16" style="left:5px; top:3px; width:92px; height:22px; ">
  955. <caption>EXCEL저장</caption>
  956. <script type="javascript" ev:event="DOMActivate">
  957. <![CDATA[
  958. fExeSaveToExcel();
  959. ]]>
  960. </script>
  961. </button>
  962. </group>
  963. </xhtml:body>
  964. </xhtml:html>