SMAEA01800_치료사배정.xrw 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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. <assgtrgtmanlist>
  11. <assgtrgtman>
  12. <pid/>
  13. <hngnm/>
  14. <sex/>
  15. <age/>
  16. <io/>
  17. <depthngnm/>
  18. <deptcd/>
  19. </assgtrgtman>
  20. </assgtrgtmanlist>
  21. <patinfo>
  22. <patinfolist>
  23. <hngnm/>
  24. </patinfolist>
  25. </patinfo>
  26. <subinfolist>
  27. <ordspec>
  28. <lvl/>
  29. <prcpnm/>
  30. <prcpdd/>
  31. <rgstr/>
  32. <cnfmexecr/>
  33. <optexecr/>
  34. <execprcpuniqno/>
  35. <check/>
  36. <pid/>
  37. <prcpno/>
  38. <excuroomcd/>
  39. </ordspec>
  40. <bfassgprescond>
  41. <usernm/>
  42. <assgdd/>
  43. </bfassgprescond>
  44. </subinfolist>
  45. <assgprescondlist>
  46. <assgprescond>
  47. <curernm/>
  48. <curerid/>
  49. <assgdd/>
  50. <lastupdusr/>
  51. <lastupdtdt/>
  52. <execprcpuniqno/>
  53. </assgprescond>
  54. </assgprescondlist>
  55. <assglistbycurer>
  56. <curerprescond>
  57. <execrid/>
  58. <execdd/>
  59. <execyn/>
  60. <count/>
  61. </curerprescond>
  62. </assglistbycurer>
  63. <codelist/>
  64. </main>
  65. <send>
  66. <req>
  67. <data/>
  68. <uniqnolist/>
  69. </req>
  70. <excuroomcd/>
  71. <execdd/>
  72. <globalinstance>
  73. <instance1/>
  74. </globalinstance>
  75. <fromdd/>
  76. <todd/>
  77. <pid/>
  78. <deptcd/>
  79. <io/>
  80. <execprcpuniqno/>
  81. <prcpdd/>
  82. <flag/>
  83. <retroomcd/>
  84. <assgflag/>
  85. <grupcdid/>
  86. <jciyn/>
  87. </send>
  88. <init>
  89. <curerprescondlist>
  90. <curerprescond>
  91. <sortno/>
  92. <usernm/>
  93. <userid/>
  94. </curerprescond>
  95. </curerprescondlist>
  96. <assgprescondlistbycurer>
  97. <curerprescond>
  98. </curerprescond>
  99. </assgprescondlistbycurer>
  100. <excuroomlist>
  101. <excuroom>
  102. <basecd/>
  103. <basecdflagdesc/>
  104. </excuroom>
  105. </excuroomlist>
  106. <treeflag>true</treeflag>
  107. <cmb_info/>
  108. </init>
  109. <hidden>
  110. <count/>
  111. <deptcd/>
  112. </hidden>
  113. </root>
  114. </instance>
  115. <script type="javascript" ev:event="xforms-ready">
  116. <![CDATA[
  117. aezfSetSuppDeptcd();
  118. var deptcd = getParameter("SMAEA01200_Param_doctorYn");
  119. if (deptcd == "Y") {
  120. model.setValue("/root/send/globalinstance/instance1", "2220000000");
  121. }
  122. model.setValue("/root/send/fromdd", getCurrentDate());//.toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
  123. model.setValue("/root/send/todd", getCurrentDate());
  124. model.setValue("/root/send/execdd", getCurrentDate().substr(0,6));
  125. model.removeNodeset("/root/main/assgtrgtmanlist/assgtrgtman");
  126. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  127. model.removeNodeset("/root/main/subinfolist/ordspec");
  128. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  129. model.removeNodeset("/root/main/assglistbycurer/curerprescond");
  130. submit("TRAEA01801");
  131. cmb_excuroom.select(0);
  132. submit("TRAEA01802");
  133. model.setValue("/root/send/flag","bf");
  134. submit("TRAEA01803");
  135. submit("TRAEA01201", false);
  136. grd_ordspec.fixedcellcheckbox(0,0) =true;
  137. cmb_excuroom2.select(0);
  138. // JCI 적용 여부
  139. model.setValue("/root/send/grupcdid","JCI01");
  140. model.removenode("/root/main/codelist");
  141. if (submit("TRAEB00010")) {
  142. var cnt = getNodesetCount("/root/main/codelist/item");
  143. if (cnt > 0) {
  144. var jciyn = model.getValue("/root/main/codelist/item[1]/cdid");
  145. model.setValue("/root/send/jciyn", jciyn);
  146. if (jciyn == "Y") {
  147. btn_patedu.visible = true;
  148. } else {
  149. btn_patedu.visible = false;
  150. }
  151. } else {
  152. btn_patedu.visible = false;
  153. }
  154. }
  155. model.refresh();
  156. ]]>
  157. </script>
  158. <submission id="TRAEA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/excuroomlist"/>
  159. <submission id="TRAEA01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/curerprescondlist"/>
  160. <submission id="TRAEA01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/assgtrgtmanlist"/>
  161. <submission id="TRAEA01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/subinfolist"/>
  162. <submission id="TRAEA01805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/assglistbycurer"/>
  163. <submission id="TXAEA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  164. <submission id="TRAEA01806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/assgprescondlist"/>
  165. <submission id="TRAEA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance/instance1" resultref="/root/init/cmb_info"/>
  166. <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
  167. </model>
  168. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  171. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  172. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  173. <script type="javascript">
  174. <![CDATA[
  175. /* @group : 치료사배정(재활)
  176. * @ver : 2007.05.16
  177. * @by : 이선경
  178. * @-----------------------------------
  179. * @type : function
  180. * @access : public
  181. * @desc : 치료사별 실시/미실시 데이터를 grd_allassgprescond에 바인딩 하는 Function
  182. */
  183. function fCurerExecPresCondList() {
  184. /*
  185. model.removeNodeset("/root/init/assgprescondlistbycurer/curerprescond");
  186. model.removeNodeset("/root/main/assglistbycurer/curerprescond");
  187. model.refresh();
  188. model.copyNode("/root/init/assgprescondlistbycurer","/root/init/curerprescondlist");
  189. for (var i = 1; i < grd_curerprescond.rows ; i++) {
  190. for (var j = 1; j <= validday; j++) {
  191. model.makeValue("/root/init/assgprescondlistbycurer/curerprescond[" + i + "]/d"+j, "./.");
  192. }
  193. }
  194. */
  195. var validday = (model.getValue("/root/send/execdd")+"01").toDate().getMonthDay();
  196. if(validday == 28) {
  197. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = true;
  198. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = true;
  199. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = true;
  200. } else if(validday == 29) {
  201. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = false;
  202. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = true;
  203. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = true;
  204. }else if (validday == 30) {
  205. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = false;
  206. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = false;
  207. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = true;
  208. } else {
  209. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = false;
  210. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = false;
  211. grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = false;
  212. }
  213. var startrow = grd_curerprescond.row+1;
  214. if(startrow <= 0) {
  215. startrow = 1;
  216. }
  217. submit("TRAEA01805");
  218. /*
  219. var precount = "./.";
  220. var data = "./.";
  221. for (var i = 1; i <= grd_temp.rows-1; i++) {
  222. var curerid = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/execrid");
  223. var dd = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/execdd");
  224. var execyn = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/execyn");
  225. var count = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/count");
  226. alert(execyn);
  227. if (execyn == "Y") {
  228. data = precount.setReplaceWord("./", count + "/");
  229. alert(data + " " + precount);
  230. } else if (execyn == "N") {
  231. data = precount.setReplaceWord("/.", "/" + count);
  232. alert(data + " " + precount);
  233. }
  234. var rowidx = grd_allassgprescond.findRow(curerid, 1, parseInt(grd_allassgprescond.colRef("userid")));
  235. if (rowidx > 0){
  236. alert(data);
  237. model.setValue("/root/init/assgprescondlistbycurer/curerprescond[" + rowidx + "]/d" + dd, data);
  238. }
  239. }
  240. */
  241. model.refresh();
  242. }
  243. ]]>
  244. </script>
  245. </xhtml:head>
  246. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  247. <datagrid id="grd_assgtrgtman" nodeset="/root/main/assgtrgtmanlist/assgtrgtman" caption="등록번호^환자명^성별^나이^구분^진료과^deptcd^orddd^cretno" colsep="^" colwidth="60, 60, 30, 30, 31, 68, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:85px; width:305px; height:230px; ">
  248. <col ref="pid" type="output"/>
  249. <col ref="hngnm" type="output"/>
  250. <col ref="sex" type="output"/>
  251. <col ref="age" type="output"/>
  252. <col ref="io" type="output"/>
  253. <col ref="depthngnm" type="output"/>
  254. <col ref="deptcd" visibility="hidden"/>
  255. <col ref="orddd" visibility="hidden"/>
  256. <col ref="cretno" visibility="hidden"/>
  257. <script type="javascript" ev:event="onclick">
  258. <![CDATA[
  259. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  260. grd_ordspec.fixedcellischeck(0,0) =false;
  261. model.removeNodeset("/root/main/subinfolist");
  262. model.refresh();
  263. if( isDataCell() ){
  264. //model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  265. var idx = grd_assgtrgtman.row;
  266. model.setValue("/root/send/deptcd", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + idx + " ]/deptcd"));
  267. model.setValue("/root/send/pid", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + idx + " ]/pid"));
  268. model.setValue("/root/send/io", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + idx + " ]/io"));
  269. model.setValue("/root/send/fromdd", ipt_fromdd.value);
  270. model.setValue("/root/send/todd", ipt_todd.value);
  271. submit("TRAEA01804", false);
  272. model.setValue("/root/send/pid", "");
  273. model.refresh();
  274. var flag = model.getValue("/root/init/treeflag");
  275. if (flag == "true") {
  276. setTree(grd_ordspec,2,1,true);
  277. } else {
  278. setTree(grd_ordspec,2,1,false);
  279. }
  280. for(var k = 1; k < grd_ordspec.rows; k++) {
  281. if (model.getValue("/root/main/subinfolist/ordspec[" + k + "]/lvl") == 1) {
  282. if(grd_ordspec.valueMatrix(k, grd_ordspec.colRef("cnfmexecrnm")) == "") {
  283. grd_ordspec.valueMatrix(k, grd_ordspec.colRef("cnfmexecrnm")) = grd_ordspec.valueMatrix(k+1, grd_ordspec.colRef("cnfmexecrnm"));
  284. }
  285. }
  286. }
  287. }
  288. ]]>
  289. </script>
  290. <script type="javascript" ev:event="onaftersort">
  291. <![CDATA[
  292. grd_assgtrgtman.gridToInstance();
  293. ]]>
  294. </script>
  295. </datagrid>
  296. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">치료사 배정</caption>
  297. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:1080px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  298. <caption id="caption3" class="search_name" style="left:10px; top:30px; width:88px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">처방일자 :</caption>
  299. <caption id="caption21" class="tit_2" style="left:5px; top:329px; width:111px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">이전 배정현황</caption>
  300. <line id="line1" class="line_1" style="x1:5px; y1:345px; x2:310px; y2:346px; "/>
  301. <caption id="caption18" class="cell_1" style="left:5px; top:470px; width:120px; height:23px; vertical-align:middle; ">치료사별 실시 현황</caption>
  302. <caption id="caption15" class="cell_1" style="left:220px; top:470px; width:91px; height:23px; vertical-align:middle; ">(실시/미실시)</caption>
  303. <caption id="caption1" class="tit_2" style="left:320px; top:63px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">처방내역</caption>
  304. <line id="line3" class="line_1" style="x1:318px; y1:81px; x2:1090px; y2:82px; "/>
  305. <caption id="caption2" class="tit_2" style="left:1096px; top:6px; width:82px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">치료사현황</caption>
  306. <line id="line4" class="line_1" style="x1:1097px; y1:51px; x2:1195px; y2:51px; "/>
  307. <line id="line5" class="line_1" style="x1:5px; y1:81px; x2:310px; y2:82px; "/>
  308. <caption id="caption4" class="tit_2" style="left:5px; top:505px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">배정현황</caption>
  309. <line id="line6" class="line_1" style="x1:2px; y1:520px; x2:1192px; y2:521px; "/>
  310. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1016px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  311. <caption>조회</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. if(ipt_fromdd.value > ipt_todd.value){
  315. messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
  316. }
  317. model.removeNodeset("/root/main/subinfolist/ordspec");
  318. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  319. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  320. model.setValue("/root/send/flag","bf");
  321. submit("TRAEA01803",false);
  322. model.removeNodeset("/root/main/subinfolist/ordspec");
  323. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  324. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  325. btn_assgtrgtman.selected = true;
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </button>
  330. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:949px; top:470px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  331. <caption>배정</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. /*var update = getGridUpdateData(grd_assgprescond);
  335. if(update == ""){
  336. messageBox("치료사를 ", "C002");
  337. } else {
  338. */
  339. for (var i = 1; i < grd_ordspec.rows; i ++){
  340. var check = model.getValue("/root/main/subinfolist/ordspec[" + i + "]/check");
  341. if(check == "Y") {
  342. if (model.getValue("/root/main/subinfolist/ordspec[" + i + "]/cnfmexecrnm") == ""){
  343. messageBox(i + "번째 행에 확정치료사를 선택한 후 처리하시기 바랍니다.", "E999", "");
  344. return;
  345. }
  346. }
  347. }
  348. var nodeList = instance1.selectNodes("/root/main/subinfolist/ordspec[check='Y' and lvl='2']");
  349. var rCSV = getNodeListCSV(nodeList);
  350. if ( rCSV == null ) {
  351. messageBox("처방내역을 ","C002");
  352. return "0";
  353. }
  354. model.setValue("/root/send/req/uniqnolist", rCSV);
  355. model.setValue("/root/send/assgflag", "Y");
  356. //model.setValue("/root/send/req/data",update);
  357. //model.setValue("/root/send/req/pid",model.getValue("/root/send/subinfo/pid"));
  358. //model.setValue("/root/send/req/excuroomcd",model.getValue("/root/send/excuroomcd"));
  359. submit("TXAEA01801",false);
  360. submit("TRAEA01803", false);
  361. model.removeNodeset("/root/main/subinfolist/ordspec");
  362. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  363. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  364. model.setValue("/root/send/pid", "");
  365. model.refresh();
  366. //messageBox("치료사 배정이 ", "I001");
  367. //}
  368. ]]>
  369. </script>
  370. </button>
  371. <datagrid id="grd_bfassgprescond" nodeset="/root/main/subinfolist/bfassgprescond" caption="치료사^배정일자" colsep="^" colwidth="85, 195" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:348px; width:305px; height:117px; ">
  372. <col ref="usernm"/>
  373. <col ref="assgdd" format="yyyy-mm-dd"/>
  374. </datagrid>
  375. <datagrid id="grd_ordspec" nodeset="/root/main/subinfolist/ordspec" caption="^±^level^내용^처방일자^등록자^확정치료사^임시치료사^pid" colsep="^" colwidth="34, 22, 100, 399, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:318px; top:85px; width:770px; height:380px; ">
  376. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  377. <col/>
  378. <col ref="lvl" visibility="hidden"/>
  379. <col ref="prcpnm"/>
  380. <col ref="prcpdd" format="yyyy-mm-dd"/>
  381. <col ref="rgstr"/>
  382. <col ref="cnfmexecrnm"/>
  383. <col ref="cnfmexecrid" visibility="hidden"/>
  384. <col ref="pid" visibility="hidden"/>
  385. <col ref="excuroomcd" visibility="hidden"/>
  386. <script type="javascript" ev:event="onclick">
  387. <![CDATA[
  388. if( isDataCell() ){
  389. model.setValue("/root/send/pid", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + " ]/pid"));
  390. if (model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/lvl") == 1) {
  391. var check = model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/check");
  392. for (var i = grd_ordspec.row + 1; i < grd_ordspec.rows; i++) {
  393. if (model.getValue("/root/main/subinfolist/ordspec[" + i + "]/lvl") == 2) {
  394. model.setValue("/root/main/subinfolist/ordspec[" + i + "]/check", check);
  395. } else {
  396. return;
  397. }
  398. }
  399. } else {
  400. /*if (model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/lvl") == 1) {
  401. model.setValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/check","N");
  402. return 0;
  403. } else {
  404. model.setValue("/root/send/execprcpuniqno",model.getValue("/root/main/subinfolist/ordspec[ " + grd_ordspec.row + "]/execprcpuniqno"));
  405. model.setValue("/root/send/prcpdd",model.getValue("/root/main/subinfolist/ordspec[ " + grd_ordspec.row + "]/prcpdd"));
  406. submit("TRAEA01806", false);
  407. */
  408. //}
  409. }
  410. model.setValue("/root/send/pid", "");
  411. model.refresh();
  412. }
  413. ]]>
  414. </script>
  415. </datagrid>
  416. <datagrid id="grd_allassgprescond" nodeset="/root/main/assglistbycurer/curerprescond" caption="치료사^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31" colsep="^" colwidth="70, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:2px; top:524px; width:1193px; height:232px; ">
  417. <col ref="usernm"/>
  418. <col ref="d1"/>
  419. <col ref="d2"/>
  420. <col ref="d3"/>
  421. <col ref="d4"/>
  422. <col ref="d5"/>
  423. <col ref="d6"/>
  424. <col ref="d7"/>
  425. <col ref="d8"/>
  426. <col ref="d9"/>
  427. <col ref="d10"/>
  428. <col ref="d11"/>
  429. <col ref="d12"/>
  430. <col ref="d13"/>
  431. <col ref="d14"/>
  432. <col ref="d15"/>
  433. <col ref="d16"/>
  434. <col ref="d17"/>
  435. <col ref="d18"/>
  436. <col ref="d19"/>
  437. <col ref="d20"/>
  438. <col ref="d21"/>
  439. <col ref="d22"/>
  440. <col ref="d23"/>
  441. <col ref="d24"/>
  442. <col ref="d25"/>
  443. <col ref="d26"/>
  444. <col ref="d27"/>
  445. <col ref="d28"/>
  446. <col ref="d29"/>
  447. <col ref="d30"/>
  448. <col ref="d31"/>
  449. <col ref="userid" visibility="hidden"/>
  450. </datagrid>
  451. <datagrid id="grd_curerprescond" nodeset="/root/init/curerprescondlist/curerprescond" caption="No^치료사" colsep="^" colwidth="30, 64" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:1098px; top:55px; width:97px; height:411px; ">
  452. <col ref="sortno" type="output" visibility="hidden"/>
  453. <col ref="usernm" type="output"/>
  454. <col ref="userid" visibility="hidden"/>
  455. <script type="javascript" ev:event="onclick">
  456. <![CDATA[
  457. if( isDataCell() ){
  458. var assgid = model.getValue("/root/init/curerprescondlist/curerprescond[" + grd_curerprescond.row + "]/userid");
  459. var assgnm = model.getValue("/root/init/curerprescondlist/curerprescond[" + grd_curerprescond.row + "]/usernm");
  460. for(var i = 1; i < grd_ordspec.rows; i++) {
  461. var check = model.getValue("/root/main/subinfolist/ordspec[" + i + "]/check");
  462. if(check == "Y") {
  463. model.setValue("/root/main/subinfolist/ordspec[" + i + "]/cnfmexecrid", assgid);
  464. model.setValue("/root/main/subinfolist/ordspec[" + i + "]/cnfmexecrnm", assgnm);
  465. model.setValue("/root/main/subinfolist/ordspec[" + i + "]/assgdd", getCurrentDate());
  466. model.setValue("/root/main/subinfolist/ordspec[" + i + "]/excuroomcd", model.getValue("/root/send/excuroomcd"));
  467. }
  468. }
  469. for(var i = 1; i < grd_ordspec.rows; i++) {
  470. var check = model.getValue("/root/main/subinfolist/ordspec[" + i + "]/check");
  471. if(check == "Y") {
  472. model.setValue("/root/main/subinfolist/ordspec[" + i + "]/check", "N");
  473. }
  474. }
  475. //alert(rCSV);
  476. //if(model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/execprcpuniqno") != 0) {
  477. /*grd_assgprescond.addRow();
  478. model.makeValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/curernm", model.getValue("/root/init/curerprescondlist/curerprescond [" + grd_curerprescond.row + "]/usernm"));
  479. model.makeValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/curerid", model.getValue("/root/init/curerprescondlist/curerprescond [" + grd_curerprescond.row + "]/userid"));
  480. model.makeValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/assgdd", getCurrentDate());
  481. */
  482. model.refresh();
  483. /*
  484. var nodeList = instance1.selectNodes("/root/main/subinfolist/ordspec[check='Y']");
  485. var rCSV = getNodeListCSV(nodeList);
  486. if ( rCSV == null ) {
  487. messageBox("처방내역을 선택해 주십시오.","I999");
  488. return "0";
  489. }
  490. model.setValue("/root/send/req/uniqnolist", rCSV);
  491. */
  492. //model.setValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/execprcpuniqno", model.getValue("/root/main/subinfolist/ordspec [" + grd_ordspec.row + "]/execprcpuniqno"));
  493. //grd_assgprescond.refresh();
  494. //}
  495. }
  496. ]]>
  497. </script>
  498. </datagrid>
  499. <input id="ipt_curerexecprescond" ref="/root/send/execdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:127px; top:470px; width:90px; height:19px; ">
  500. <script type="javascript" ev:event="xforms-value-changed">
  501. <![CDATA[
  502. fCurerExecPresCondList();
  503. ]]>
  504. </script>
  505. </input>
  506. <button id="btn_assgtrgtman" class="btn_sw" navindex="5" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:5px; top:58px; width:72px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  507. <caption>배정대상자</caption>
  508. <toggle case="case1" ev:event="onclick"/>
  509. <script type="javascript" ev:event="DOMActivate">
  510. <![CDATA[
  511. model.setValue("/root/send/flag","bf");
  512. submit("TRAEA01803", false);
  513. model.removeNodeset("/root/main/subinfolist/ordspec");
  514. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  515. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  516. model.refresh();
  517. ]]>
  518. </script>
  519. </button>
  520. <button id="btn_assgman" class="btn_sw" group="tab" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:77px; top:58px; width:48px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  521. <caption>배정자</caption>
  522. <toggle case="case1" ev:event="onclick"/>
  523. <script type="javascript" ev:event="DOMActivate">
  524. <![CDATA[
  525. model.setValue("/root/send/flag","aft");
  526. submit("TRAEA01803",false);
  527. model.removeNodeset("/root/main/subinfolist/ordspec");
  528. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  529. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  530. model.refresh();
  531. ]]>
  532. </script>
  533. </button>
  534. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" appearance="minimal" editmode="search" style="left:1095px; top:25px; width:100px; height:19px; ">
  535. <choices>
  536. <itemset nodeset="/root/init/excuroomlist/excuroom">
  537. <label ref="basecdflagdesc"/>
  538. <value ref="basecd"/>
  539. </itemset>
  540. </choices>
  541. <script type="javascript" ev:event="xforms-value-changed">
  542. <![CDATA[
  543. model.makeValue("/root/send/basecd", model.getValue("/root/send/excuroomcd"));
  544. submit("TRAEA01802");
  545. fCurerExecPresCondList();
  546. ]]>
  547. </script>
  548. </select1>
  549. <datagrid id="grd_temp" nodeset="/root/main/assglistbycurer/curerprescond" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:360px; top:580px; width:430px; height:160px; ">
  550. <col ref="execrid"/>
  551. <col ref="execdd"/>
  552. <col ref="execyn"/>
  553. <col ref="count"/>
  554. </datagrid>
  555. <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="3" style="left:405px; top:28px; width:100px; height:19px; ">
  556. <script type="javascript" ev:event="onkeydown">
  557. <![CDATA[
  558. inputEnterKey("btn_sea","DOMActivate");
  559. ]]>
  560. </script>
  561. </input>
  562. <button id="button61" class="icon_search" style="left:508px; top:30px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
  563. <caption/>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/pid","/root/main/send");
  567. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  568. model.refresh();
  569. ]]>
  570. </script>
  571. </button>
  572. <caption id="caption5" class="search_name" style="left:315px; top:29px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  573. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:203px; top:28px; width:100px; height:19px; text-align:center; "/>
  574. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:100px; top:28px; width:100px; height:19px; text-align:center; "/>
  575. <output id="opt_patnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:530px; top:29px; width:117px; height:19px; "/>
  576. <select1 id="radio1" ref="/root/init/treeflag" appearance="full" cols="2" overflow="visible" style="left:400px; top:60px; width:175px; height:20px; border-style:none; ">
  577. <choices>
  578. <item>
  579. <label>통합적 보기</label>
  580. <value>true</value>
  581. </item>
  582. <item>
  583. <label>세부적 보기</label>
  584. <value>false</value>
  585. </item>
  586. </choices>
  587. <script type="javascript" ev:event="xforms-value-changed">
  588. <![CDATA[
  589. var flag = model.getValue("/root/init/treeflag");
  590. if (flag == "true") {
  591. setTree(grd_ordspec,2,1,true);
  592. } else {
  593. setTree(grd_ordspec,2,1,false);
  594. }
  595. ]]>
  596. </script>
  597. </select1>
  598. <caption id="caption11" class="search_name" style="left:660px; top:30px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">치료실 :</caption>
  599. <select1 id="cmb_excuroom2" ref="/root/send/retroomcd" class="combo_default" navindex="3" appearance="minimal" style="left:735px; top:28px; width:107px; height:19px; ">
  600. <choices>
  601. <itemset nodeset="/root/init/cmb_info/initexecroom">
  602. <label ref="excuroomcdnm"/>
  603. <value ref="excuroomcdid"/>
  604. </itemset>
  605. </choices>
  606. <script type="javascript" ev:event="xforms-value-changed">
  607. <![CDATA[
  608. if(ipt_fromdd.value > ipt_todd.value){
  609. messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
  610. }
  611. model.removeNodeset("/root/main/subinfolist/ordspec");
  612. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  613. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  614. model.setValue("/root/send/flag","bf");
  615. submit("TRAEA01803",false);
  616. model.removeNodeset("/root/main/subinfolist/ordspec");
  617. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  618. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  619. btn_assgtrgtman.selected = true;
  620. model.refresh();
  621. ]]>
  622. </script>
  623. </select1>
  624. <button id="btn_assgcncl" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1010px; top:470px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  625. <caption>배정취소</caption>
  626. <script type="javascript" ev:event="DOMActivate">
  627. <![CDATA[
  628. /*var update = getGridUpdateData(grd_assgprescond);
  629. if(update == ""){
  630. messageBox("치료사를 ", "C002");
  631. } else {
  632. */
  633. var nodeList = instance1.selectNodes("/root/main/subinfolist/ordspec[check='Y' and lvl='2']");
  634. var rCSV = getNodeListCSV(nodeList);
  635. //alert(rCSV);
  636. if ( rCSV == null ) {
  637. messageBox("처방내역을 ","C002");
  638. return "0";
  639. }
  640. model.setValue("/root/send/req/uniqnolist", rCSV);
  641. model.setValue("/root/send/assgflag", "N");
  642. //model.setValue("/root/send/req/data",update);
  643. //model.setValue("/root/send/req/pid",model.getValue("/root/send/subinfo/pid"));
  644. //model.setValue("/root/send/req/excuroomcd",model.getValue("/root/send/excuroomcd"));
  645. submit("TXAEA01801",false);
  646. submit("TRAEA01803", false);
  647. model.removeNodeset("/root/main/subinfolist/ordspec");
  648. model.removeNodeset("/root/main/subinfolist/bfassgprescond");
  649. model.removeNodeset("/root/main/assgprescondlist/assgprescond");
  650. model.setValue("/root/send/pid", "");
  651. model.refresh();
  652. //messageBox("치료사 배정이 ", "I001");
  653. //}
  654. ]]>
  655. </script>
  656. </button>
  657. <button id="button6" class="btn3_letter7" style="left:3px; top:760px; width:116px; height:22px; ">
  658. <caption>Alarm Notify</caption>
  659. <script type="javascript" ev:event="DOMActivate">
  660. <![CDATA[
  661. //modal("SPAEA02000", "", "", "" ,"SPAEA02000", "", "");
  662. openInternal("modeless_topmost","SPAEA02000","scn",1,1000,0,0,"","", "min:hidden;max:hidden;", 0);
  663. ]]>
  664. </script>
  665. </button>
  666. <button id="button14" class="btn3_letter4" style="left:125px; top:760px; width:80px; height:22px; ">
  667. <caption>결과조회</caption>
  668. <script type="javascript" ev:event="DOMActivate">
  669. <![CDATA[
  670. //상단정보 초기화
  671. delPatientInfos();
  672. modal("SMAER00800","","","","","/root/send/data/srchpid","/root/send/data/singdata/srchpid");
  673. ]]>
  674. </script>
  675. </button>
  676. <button id="button5" class="btn3_letter6" style="left:210px; top:760px; width:104px; height:22px; ">
  677. <caption>통합기록조회</caption>
  678. <script type="javascript" ev:event="DOMActivate">
  679. <![CDATA[
  680. setParameter("SMMRI00400_param_pid", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/pid"));
  681. setParameter("SMMRI00400_param_chosflag", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/io"));
  682. //내원구분은 I O S E D 모두 가능
  683. modal("SMMRI00400", "", "", "" ,"SMMMR01600", "", "");
  684. ]]>
  685. </script>
  686. </button>
  687. <button id="btn_patedu" class="btn3_letter4" style="left:317px; top:760px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter9.gif; ">
  688. <caption>환자교육</caption>
  689. <script type="javascript" ev:event="DOMActivate">
  690. <![CDATA[
  691. var pid = model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/pid");
  692. var ordd = model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/orddd");
  693. var orddd = ordd.substring(0,8);
  694. var cretno = ordd.substring(8, ordd.length);
  695. var educd = "";
  696. var educnts = "";
  697. setParameter("SPMRJ00200_pid", pid); // 수진키 필수
  698. setParameter("SPMRJ00200_orddd", orddd); // 수진키 필수
  699. setParameter("SPMRJ00200_cretno", cretno); // 수진키 필수
  700. setParameter("SPMRJ00200_educd", educd); // 교육항목 옵션
  701. setParameter("SPMRJ00200_educnts", educnts); // 교육내용 옵션
  702. modal("SPMRJ00200");
  703. ]]>
  704. </script>
  705. </button>
  706. </xhtml:body>
  707. </xhtml:html>