SMABO01500_차수관리.xrw 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  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>BMT 환자 이식 차수관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <trnptdgmngt>
  11. <trnptdglist>
  12. <totdg/>
  13. <autoallodg/>
  14. <allotrnptkinddg/>
  15. <trnptkind/>
  16. <scs/>
  17. <trnptdd/>
  18. <insukind/>
  19. <hngnm/>
  20. <diagcd1/>
  21. <trnptdg/>
  22. <pid/>
  23. <sex/>
  24. <trnptage/>
  25. <pattrnptafbtype/>
  26. <gvhd/>
  27. <dethyn/>
  28. <trnptbfdays/>
  29. <dethresn/>
  30. <dnornm/>
  31. <dnorsex/>
  32. <dnorage/>
  33. <dnorbtype/>
  34. <dnorpid/>
  35. <trnptwardcd/>
  36. <trnptroomcd/>
  37. <deptcd/>
  38. </trnptdglist>
  39. </trnptdgmngt>
  40. <hsctinfo>
  41. <patinfolist>
  42. <hngnm/>
  43. <rrgstno1/>
  44. <age/>
  45. <sex/>
  46. <pid/>
  47. <rrgstno2/>
  48. </patinfolist>
  49. </hsctinfo>
  50. <popupendflag/>
  51. </main>
  52. <init>
  53. <cmbinfo>
  54. <trnptkind>
  55. <A0161>
  56. <cdid/>
  57. <cdnm/>
  58. </A0161>
  59. </trnptkind>
  60. <scs>
  61. <A0162>
  62. <cdid/>
  63. <cdnm/>
  64. </A0162>
  65. </scs>
  66. <btype>
  67. <M0376>
  68. <cdid/>
  69. <cdnm/>
  70. </M0376>
  71. </btype>
  72. <sex>
  73. <P0313>
  74. <cdid/>
  75. <cdnm/>
  76. </P0313>
  77. </sex>
  78. <deptcd>
  79. <A0478>
  80. <cdid/>
  81. <cdnm/>
  82. </A0478>
  83. </deptcd>
  84. <trnptwardcd>
  85. <A0479>
  86. <cdid/>
  87. <cdnm/>
  88. </A0479>
  89. </trnptwardcd>
  90. <trnptroomcd>
  91. <A0480>
  92. <cdid/>
  93. <cdnm/>
  94. </A0480>
  95. </trnptroomcd>
  96. <lrglist>
  97. <item>
  98. <hsctlrgcd/>
  99. <hsctlrgnm/>
  100. </item>
  101. </lrglist>
  102. <dethresn>
  103. <A0186>
  104. <cdid/>
  105. <cdnm/>
  106. </A0186>
  107. </dethresn>
  108. </cmbinfo>
  109. </init>
  110. <send>
  111. <data>
  112. <trnptfromdd/>
  113. <trnpttodd/>
  114. <trnptkind/>
  115. <scs/>
  116. <diagcd1/>
  117. <sex/>
  118. <pattrnptafbtype/>
  119. <insuaprvkind/>
  120. <pid/>
  121. <insukind/>
  122. </data>
  123. <savedata/>
  124. <lrggrupcd>DI</lrggrupcd>
  125. <hsctlrgcd/>
  126. </send>
  127. <hidden/>
  128. <temp>
  129. <trnptdg>
  130. <pid/>
  131. <hngnm/>
  132. <trnptdg/>
  133. <totdg/>
  134. <autoallodg/>
  135. <allotrnptkinddg/>
  136. <trnptkind/>
  137. <trnptdd/>
  138. <selectrow/>
  139. </trnptdg>
  140. <bmtpatientinfo/>
  141. <tempcodeinfo/>
  142. <tempcodeinfo2/>
  143. </temp>
  144. </root>
  145. </instance>
  146. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  148. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  152. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  153. <script type="javascript" ev:event="xforms-ready">
  154. <![CDATA[
  155. // zbcfGetCodeList( new Array("A0161","A0162","M0376", "P0313" , "A0479", "A0480", "A0478"),
  156. // new Array("/root/init/cmbinfo/trnptkind" , "/root/init/cmbinfo/scs",
  157. // "/root/init/cmbinfo/btype" , "/root/init/cmbinfo/sex",
  158. // "/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd",
  159. // "/root/init/cmbinfo/deptcd") );
  160. zbcfGetCodeList( new Array("M0376", "P0313"),
  161. new Array("/root/init/cmbinfo/btype" , "/root/init/cmbinfo/sex") );
  162. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  163. aboGetCodeList(new Array("A0161","A0162", "A0479", "A0480", "A0478", "A0186"),
  164. new Array("/root/init/cmbinfo/trnptkind" , "/root/init/cmbinfo/scs",
  165. "/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd",
  166. "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/dethresn"));
  167. // bmtcommon.js : BMT 진단대분류 조회 : 맨 앞에 공백을 추가해주기 위해서 함수로 변경
  168. abofGetBmtDIagLrgList();
  169. // bmtcommon.js : 이식종류에 AUTO [00] 추가해주기
  170. abofSetTrnptKindCdAuto();
  171. var strnptfromdd = getCurrentDate().substr(0,6).toDate().getAddDate(1,"D").getDateFormat("YYYYMMDD");
  172. ipt_trnptfromdd.value = strnptfromdd;
  173. var strnpttodd = getCurrentDate().substr(0,6) + strnptfromdd.toDate().getMonthDay();
  174. ipt_trnpttodd.value = strnpttodd;
  175. // 파라미터로 넘어온 것 (등록번호)이 있는지 체크한다.
  176. if ( checkOpener()) {
  177. var param = opener.javascript.getParameter("opener_parameter_id");
  178. if(param != "") // opener parameter value가 있는 경우
  179. {
  180. //parameter value를 이용하여 프로그램 수행
  181. condarray = param.split("▦");
  182. model.setValue("/root/send/data/pid", condarray[0]);
  183. return;
  184. }
  185. }
  186. // Opener에서 받은 파라미터가 없으면 Top 정보를 참조한다.
  187. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  188. if ( paminfo != "" ) {
  189. model.removeNodeset("/root/temp/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  190. model.makeNode("/root/temp/paminfo");
  191. setCSVToNode("/root/temp/paminfo", paminfo);
  192. //상단 정보를 이용하여 프로그램 수행
  193. var pid = model.getValue("/root/temp/paminfo" + "/list/pid");
  194. model.setValue("/root/send/data/pid", pid);
  195. } else {
  196. //세션에 저장된 PID정보를 가져옴.
  197. var gv_pid = getGlobalVariable("gv_pid", "A");
  198. if(gv_pid != "") {
  199. model.setValue("/root/send/data/pid", gv_pid);
  200. }
  201. }
  202. //타부서에서는 버튼 비활성화
  203. btn_save.disabled = !checkAuth("X");
  204. model.refresh();
  205. ]]>
  206. </script>
  207. <script type="javascript">
  208. <![CDATA[
  209. /* @group : BMT 환자 이식차수관리
  210. * @ver : 2008.02.04
  211. * @by : 남수현
  212. * @type : function
  213. * @access : public
  214. * @desc : BMT 환자 이식차수관리 리스트조회
  215. * @param :
  216. */
  217. function fGetTrnptDgMngtList(){
  218. submit("TRABO01501");
  219. model.refresh();
  220. }
  221. /* @group : BMT 환자 이식차수관리
  222. * @ver : 2008.02.04
  223. * @by : 남수현
  224. * @type : function
  225. * @access : public
  226. * @desc : 이식차수자동생성
  227. * @param :
  228. */
  229. function fCalcTrnptDgAuto(){
  230. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + 1 + "]/totdg") == "" ) {
  231. messageBox("전체 차수 생성을 위한 시작차수번호를 첫번째 행에", "C001");
  232. return false;
  233. }
  234. var stotdg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + 1 + "]/totdg"));
  235. var sautodg = 0;
  236. var sallodg = 0;
  237. var sautodgrow = 0;
  238. var sallodgrow = 0;
  239. // AUTO와 ALLO의 시작차수번호를 찾는다.
  240. for (var i = 1; i < grd_patlist.rows; i++) {
  241. if (sautodg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "00") {
  242. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/autoallodg") == "" ) {
  243. messageBox("AUTO 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C001");
  244. grd_patlist.row = i;
  245. grd_patlist.col = 2;
  246. model.setFocus( "grd_patlist");
  247. return false;
  248. }
  249. sautodg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/autoallodg"));
  250. sautodgrow = i;
  251. }
  252. if (sallodg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") != "00") {
  253. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + 1 + "]/autoallodg") == "" ) {
  254. messageBox("ALLO 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C001");
  255. grd_patlist.row = i;
  256. grd_patlist.col = 2;
  257. model.setFocus( "grd_patlist");
  258. return false;
  259. }
  260. sallodg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/autoallodg"));
  261. sallodgrow = i;
  262. }
  263. // if ((sautodgrow > 0) && (sallodgrow > 0)) {
  264. // break;
  265. // }
  266. }
  267. for (var i = 1; i < grd_patlist.rows; i++) {
  268. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/totdg", stotdg);
  269. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "00") {
  270. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/autoallodg", sautodg);
  271. sautodg = sautodg + 1;
  272. }
  273. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") != "00") {
  274. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/autoallodg", sallodg);
  275. sallodg = sallodg + 1;
  276. }
  277. stotdg = stotdg + 1;
  278. }
  279. model.refresh();
  280. }
  281. /* @group : BMT 환자 이식차수관리
  282. * @ver : 2008.02.04
  283. * @by : 남수현
  284. * @type : function
  285. * @access : public
  286. * @desc : Allo Kind 이식차수자동생성
  287. * @param :
  288. */
  289. function fCalcTrnptDgAlloAuto(){
  290. // if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + 1 + "]/allotrnptkinddg") == "" ) {
  291. // messageBox("Allo Kind 차수 생성을 위한 시작차수번호를 첫번째 행에", "C001");
  292. // return false;
  293. // }
  294. //
  295. // var sallotrnptkinddg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + 1 + "]/allotrnptkinddg"));
  296. // var strnptkind = model.getValue("/root/main/trnptdgmngt/trnptdglist[" + 1 + "]/trnptkind");
  297. //
  298. // for (var i = 1; i < grd_patlist.rows; i++) {
  299. // if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == strnptkind ) {
  300. // model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", sallotrnptkinddg);
  301. // sallotrnptkinddg = sallotrnptkinddg + 1;
  302. // }
  303. // }
  304. // model.refresh();
  305. var SiblingStandarddg = 0 , SiblingStandarddgrow = 0 ;
  306. var SiblingNSTdg = 0, SiblingNSTdgrow = 0;
  307. var FMMStandarddg = 0, FMMStandarddgrow = 0;
  308. var FMMNSTdg = 0, FMMNSTdgrow = 0;
  309. var FMStandarddg = 0, FMStandarddgrow = 0;
  310. var FMNSTdg = 0, FMNSTdgrow = 0;
  311. var UnrelatedStandarddg = 0, UnrelatedStandarddgrow = 0;
  312. var UnrealtedNSTdg = 0, UnrealtedNSTdgrow = 0;
  313. var CordStandarddg = 0, CordStandarddgrow = 0;
  314. var CordNSTdg = 0, CordNSTdgrow = 0;
  315. // AUTO와 ALLO의 시작차수번호를 찾는다.
  316. for (var i = 1; i < grd_patlist.rows; i++) {
  317. if (SiblingStandarddg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "01") {
  318. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  319. messageBox("Sibling Standard 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C001");
  320. grd_patlist.row = i;
  321. model.setFocus( "grd_patlist");
  322. return false;
  323. }
  324. SiblingStandarddg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  325. SiblingStandarddgrow = i;
  326. }
  327. if (SiblingNSTdg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "02") {
  328. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  329. messageBox("Sibling NST 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  330. grd_patlist.row = i;
  331. model.setFocus( "grd_patlist");
  332. return false;
  333. }
  334. SiblingNSTdg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  335. SiblingNSTdgrow = i;
  336. }
  337. if (FMMStandarddg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "03") {
  338. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  339. messageBox("FMM Standard 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  340. grd_patlist.row = i;
  341. model.setFocus( "grd_patlist");
  342. return false;
  343. }
  344. FMMStandarddg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  345. FMMStandarddgrow = i;
  346. }
  347. if (FMMNSTdg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "04") {
  348. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  349. messageBox("FMM NST 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  350. grd_patlist.row = i;
  351. model.setFocus( "grd_patlist");
  352. return false;
  353. }
  354. FMMNSTdg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  355. FMMNSTdgrow = i;
  356. }
  357. if (FMStandarddg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "05") {
  358. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  359. messageBox("FM Standard 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  360. grd_patlist.row = i;
  361. model.setFocus( "grd_patlist");
  362. return false;
  363. }
  364. FMStandarddg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  365. FMStandarddgrow = i;
  366. }
  367. if (FMNSTdg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "06") {
  368. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  369. messageBox("FM NST 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  370. grd_patlist.row = i;
  371. model.setFocus( "grd_patlist");
  372. return false;
  373. }
  374. FMNSTdg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  375. FMNSTdgrow = i;
  376. }
  377. if (UnrelatedStandarddg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "07") {
  378. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  379. messageBox("Unrelated Standard 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  380. grd_patlist.row = i;
  381. model.setFocus( "grd_patlist");
  382. return false;
  383. }
  384. UnrelatedStandarddg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  385. UnrelatedStandarddgrow = i;
  386. }
  387. if (UnrealtedNSTdg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "08") {
  388. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  389. messageBox("Unrealted NST 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  390. grd_patlist.row = i;
  391. model.setFocus( "grd_patlist");
  392. return false;
  393. }
  394. UnrealtedNSTdg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  395. UnrealtedNSTdgrow = i;
  396. }
  397. if (CordStandarddg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "09") {
  398. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  399. messageBox("Cord Standard 차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  400. grd_patlist.row = i;
  401. model.setFocus( "grd_patlist");
  402. return false;
  403. }
  404. CordStandarddg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  405. CordStandarddgrow = i;
  406. }
  407. if (CordNSTdg == 0 && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "10") {
  408. if ( model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg") == "" ) {
  409. messageBox("Cord NST차수 생성을 위한 시작차수번호를 " + i + "번째 행에", "C002");
  410. grd_patlist.row = i;
  411. model.setFocus( "grd_patlist");
  412. return false;
  413. }
  414. CordNSTdg = parseInt(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg"));
  415. CordNSTdgrow = i;
  416. }
  417. }
  418. for (var i = 1; i < grd_patlist.rows; i++) {
  419. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "01") {
  420. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", SiblingStandarddg);
  421. SiblingStandarddg = SiblingStandarddg + 1;
  422. }
  423. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "02") {
  424. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", SiblingNSTdg);
  425. SiblingNSTdg = SiblingNSTdg + 1;
  426. }
  427. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "03") {
  428. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", FMMStandarddg);
  429. FMMStandarddg = FMMStandarddg + 1;
  430. }
  431. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "04") {
  432. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", FMMNSTdg);
  433. FMMNSTdg = FMMNSTdg + 1;
  434. }
  435. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "05") {
  436. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", FMStandarddg);
  437. FMStandarddg = FMStandarddg + 1;
  438. }
  439. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "06") {
  440. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", FMNSTdg);
  441. FMNSTdg = FMNSTdg + 1;
  442. }
  443. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "07") {
  444. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", UnrelatedStandarddg);
  445. UnrelatedStandarddg = UnrelatedStandarddg + 1;
  446. }
  447. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "08") {
  448. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", UnrealtedNSTdg);
  449. UnrealtedNSTdg = UnrealtedNSTdg + 1;
  450. }
  451. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "09") {
  452. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", CordStandarddg);
  453. CordStandarddg = CordStandarddg + 1;
  454. }
  455. if (model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/trnptkind") == "10") {
  456. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", CordNSTdg);
  457. CordNSTdg = CordNSTdg + 1;
  458. }
  459. }
  460. model.refresh();
  461. }
  462. /* @group : BMT 환자 이식차수관리
  463. * @ver : 2008.02.04
  464. * @by : 남수현
  465. * @type : function
  466. * @access : public
  467. * @desc : 선택차수지우기
  468. * @param : A [전체차수], S [선택차수]
  469. */
  470. function fSetTrnptDgClear(paramFlag){
  471. if ( paramFlag == "S" ) {
  472. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/totdg" , "");
  473. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/autoallodg", "");
  474. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/allotrnptkinddg", "");
  475. model.setValue("/root/temp/trnptdg/totdg" , "");
  476. model.setValue("/root/temp/trnptdg/autoallodg" , "");
  477. model.setValue("/root/temp/trnptdg/allotrnptkinddg" , "");
  478. } else if ( paramFlag == "A" ) {
  479. for (var i = 1; i < grd_patlist.rows; i++) {
  480. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/totdg" , "");
  481. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/autoallodg", "");
  482. model.setValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/allotrnptkinddg", "");
  483. }
  484. }
  485. model.refresh();
  486. }
  487. function fDataCheck () {
  488. var nodelist = instance1.selectNodes("/root/main/trnptdgmngt/trnptdglist");
  489. for(var i = 1; i <= nodelist.length; i++){
  490. for(var j = 1; j <= nodelist.length; j++){
  491. if (i != j && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + i + "]/totdg") == model.getValue("/root/main/trnptdgmngt/trnptdglist[" + j + "]/totdg") && model.getValue("/root/main/trnptdgmngt/trnptdglist[" + j + "]/totdg") != ""){
  492. messageBox("Total 차수의 값이" + i + "번째 행과 " + j + "번째 행이 같습니다. 다시", "C002");
  493. return false;
  494. }
  495. }
  496. }
  497. return true;
  498. }
  499. function fSetTrnptKindDg () {
  500. if(fDataCheck()){
  501. submit("TXABO01501");
  502. }
  503. model.refresh();
  504. }
  505. ]]>
  506. </script>
  507. <submission id="TRABO00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/pid" replace="instance" resultref="/root/main/hsctinfo"/>
  508. <submission id="TRABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmbinfo/lrglist"/>
  509. <submission id="TRABO01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/trnptdgmngt"/>
  510. <submission id="TXABO01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/trnptdgmngt/trnptdglist" replace="instance" resultref="/root/hidden"/>
  511. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  512. </model>
  513. </xhtml:head>
  514. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  515. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  516. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:164px; height:13px; ">차수관리</caption>
  517. </group>
  518. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  519. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:100px; height:13px; ">BMT 리스트</caption>
  520. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  521. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  522. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  523. <caption id="caption2" class="search_name" style="left:15px; top:7px; width:112px; height:17px; ">기간(이식일) :</caption>
  524. <caption id="caption3" class="search_name" style="left:364px; top:7px; width:86px; height:17px; ">승인구분 :</caption>
  525. <caption id="caption4" class="search_name" style="left:567px; top:7px; width:73px; height:17px; ">진단명 :</caption>
  526. <caption id="caption5" class="search_no_b" style="left:233px; top:7px; width:12px; height:17px; ">~</caption>
  527. <line id="line13" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:51px; "/>
  528. <caption id="caption33" class="search_name" style="left:758px; top:7px; width:151px; height:17px; ">Stem Cell Source :</caption>
  529. <select1 id="combo1" ref="/root/send/data/insuaprvkind" class="combo_search" appearance="minimal" style="left:452px; top:7px; width:100px; height:19px; ">
  530. <choices>
  531. <item>
  532. <label/>
  533. <value/>
  534. </item>
  535. <item>
  536. <label>급여</label>
  537. <value>1</value>
  538. </item>
  539. <item>
  540. <label>비급여</label>
  541. <value>2</value>
  542. </item>
  543. <item>
  544. <label>사후승인</label>
  545. <value>3</value>
  546. </item>
  547. </choices>
  548. </select1>
  549. <select1 id="combo2" ref="/root/send/data/diagcd1" class="combo_search" appearance="minimal" style="left:643px; top:7px; width:100px; height:19px; ">
  550. <choices>
  551. <itemset nodeset="/root/init/cmbinfo/lrglist/item">
  552. <label ref="hsctlrgnm"/>
  553. <value ref="hsctlrgcd"/>
  554. </itemset>
  555. </choices>
  556. </select1>
  557. <select1 id="combo5" ref="/root/send/data/scs" class="combo_search" appearance="minimal" style="left:912px; top:7px; width:100px; height:19px; ">
  558. <choices>
  559. <itemset nodeset="/root/init/cmbinfo/scs/A0162">
  560. <label ref="cdnm"/>
  561. <value ref="cdid"/>
  562. </itemset>
  563. </choices>
  564. </select1>
  565. <select1 id="combo3" ref="/root/send/data/trnptkind" class="combo_search" appearance="minimal" style="left:452px; top:34px; width:100px; height:19px; ">
  566. <choices>
  567. <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
  568. <label ref="cdnm"/>
  569. <value ref="cdid"/>
  570. </itemset>
  571. </choices>
  572. </select1>
  573. <caption id="caption7" class="search_name" style="left:364px; top:34px; width:86px; height:17px; ">이식종류 :</caption>
  574. <select1 id="combo4" ref="/root/send/data/pattrnptafbtype" class="combo_search" appearance="minimal" style="left:643px; top:34px; width:100px; height:19px; ">
  575. <choices>
  576. <itemset nodeset="/root/init/cmbinfo/btype/M0376">
  577. <label ref="cdnm"/>
  578. <value ref="cdid"/>
  579. </itemset>
  580. </choices>
  581. </select1>
  582. <caption id="caption8" class="search_name" style="left:567px; top:34px; width:73px; height:17px; ">혈액형 :</caption>
  583. <caption id="caption9" class="search_name" style="left:758px; top:34px; width:60px; height:17px; ">성별 :</caption>
  584. <select1 id="combo6" ref="/root/send/data/sex" class="combo_search" appearance="minimal" style="left:821px; top:32px; width:70px; height:19px; ">
  585. <choices>
  586. <itemset nodeset="/root/init/cmbinfo/sex/P0313">
  587. <label ref="cdnm"/>
  588. <value ref="cdid"/>
  589. </itemset>
  590. </choices>
  591. </select1>
  592. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:19px; width:56px; height:22px; ">
  593. <caption>조회</caption>
  594. <script type="javascript" ev:event="DOMActivate">
  595. <![CDATA[
  596. model.setValue("/root/send/data/pid", ipt_pid.currentText);
  597. submit("TRABO00001"); //환자 정보 조회;
  598. fGetTrnptDgMngtList();
  599. ]]>
  600. </script>
  601. </button>
  602. <input id="ipt_trnptfromdd" ref="/root/send/data/trnptfromdd" class="input_s_essential" inputtype="date" style="left:130px; top:7px; width:100px; height:19px; "/>
  603. <input id="ipt_trnpttodd" ref="/root/send/data/trnpttodd" class="input_s_essential" inputtype="date" style="left:249px; top:7px; width:100px; height:19px; "/>
  604. <output id="output5" ref="/root/main/hsctinfo/patinfolist/age" class="output_search" style="left:289px; top:35px; width:30px; height:19px; text-align:center; "/>
  605. <output id="output6" ref="/root/main/hsctinfo/patinfolist/sex" class="output_search" style="left:322px; top:35px; width:30px; height:19px; text-align:center; "/>
  606. <output id="output17" ref="/root/main/hsctinfo/patinfolist/hngnm" class="output_search" style="left:206px; top:35px; width:80px; height:19px; text-align:center; "/>
  607. <caption id="caption16" class="search_name" style="left:15px; top:36px; width:86px; height:17px; ">등록번호 :</caption>
  608. <input id="ipt_pid" ref="/root/send/data/pid" class="input_essential" editable="true" inputtype="button" maxlength="10" style="left:104px; top:35px; width:100px; height:19px; ">
  609. <script type="javascript" ev:event="onkeyup">
  610. <![CDATA[
  611. if(event.keyCode == "13"){
  612. btn_sea.dispatch("DOMActivate");
  613. }
  614. ]]>
  615. </script>
  616. <script type="javascript" ev:event="xforms-next">
  617. <![CDATA[
  618. model.setFocus( "ipt_pid");
  619. ]]>
  620. </script>
  621. <script type="javascript" ev:event="onbuttonclick">
  622. <![CDATA[
  623. abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo");
  624. model.setValue("/root/send/data/pid", model.getValue("/root/temp/bmtpatientinfo/pid"));
  625. submit("TRABO00001"); //환자 정보 조회;
  626. fGetTrnptDgMngtList();
  627. ]]>
  628. </script>
  629. </input>
  630. <caption id="caption17" class="search_name" style="left:906px; top:34px; width:60px; height:17px; ">급여 :</caption>
  631. <select1 id="combo7" ref="/root/send/data/insukind" class="combo_search" appearance="minimal" style="left:969px; top:32px; width:70px; height:19px; ">
  632. <choices>
  633. <item>
  634. <label/>
  635. <value/>
  636. </item>
  637. <item>
  638. <label>급여</label>
  639. <value>1</value>
  640. </item>
  641. <item>
  642. <label>비급여</label>
  643. <value>2</value>
  644. </item>
  645. </choices>
  646. </select1>
  647. </group>
  648. <caption id="caption10" class="tit_2" style="left:5px; top:695px; width:90px; height:13px; ">차수관리</caption>
  649. <line id="line2" class="line_1" style="x1:0px; y1:710px; x2:1194px; y2:710px; "/>
  650. <caption id="caption31" class="cell_1" style="left:0px; top:715px; width:90px; height:23px; vertical-align:middle; ">등록번호</caption>
  651. <output id="output25" ref="/root/temp/trnptdg/pid" class="output_fix" style="left:93px; top:716px; width:80px; height:19px; text-align:center; "/>
  652. <output id="output1" ref="/root/temp/trnptdg/hngnm" class="output_fix" style="left:176px; top:716px; width:80px; height:19px; text-align:center; "/>
  653. <caption id="caption11" class="cell_1" style="left:259px; top:715px; width:90px; height:23px; vertical-align:middle; ">회차</caption>
  654. <output id="output2" ref="/root/temp/trnptdg/trnptdg" class="output_fix" style="left:352px; top:716px; width:60px; height:19px; text-align:center; "/>
  655. <caption id="caption12" class="cell_1" style="left:415px; top:715px; width:90px; height:23px; vertical-align:middle; ">이식일자</caption>
  656. <output id="output3" ref="/root/temp/trnptdg/trnptdd" class="output_fix" format="yyyy-mm-dd" style="left:508px; top:716px; width:80px; height:19px; text-align:center; "/>
  657. <caption id="caption13" class="cell_1" style="left:591px; top:715px; width:90px; height:23px; vertical-align:middle; ">Total</caption>
  658. <caption id="caption14" class="cell_1" style="left:747px; top:715px; width:90px; height:23px; vertical-align:middle; ">AUTO/ALLO</caption>
  659. <caption id="caption15" class="cell_1" style="left:903px; top:715px; width:90px; height:23px; vertical-align:middle; ">이식종류</caption>
  660. <output id="output4" ref="/root/temp/trnptdg/trnptkind" class="output_fix" style="left:996px; top:716px; width:135px; height:19px; text-align:center; "/>
  661. <button id="button3" class="btn2_letter7" style="left:1097px; top:690px; width:97px; height:19px; ">
  662. <caption>선택차수지우기</caption>
  663. <script type="javascript" ev:event="DOMActivate">
  664. <![CDATA[
  665. // 선택한 환자의 차수정보를 Celar한다.
  666. if ( messageBox(model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/hngnm") + " 환자의 Total, Auto/Allo, Allo Kind 차수정보를 지웁니다.", "Q004") == 6 ) {
  667. fSetTrnptDgClear("S");
  668. }
  669. ]]>
  670. </script>
  671. </button>
  672. <button id="button4" class="btn2_letter6" style="left:1008px; top:690px; width:86px; height:19px; ">
  673. <caption>차수자동생성</caption>
  674. <script type="javascript" ev:event="DOMActivate">
  675. <![CDATA[
  676. // Total 차수와 Auto/Allo 처수를 자동 생성한다.
  677. if ( messageBox("Total 차수와 Auto/Allo 차수를 생성합니다.", "Q004") == 6 ) {
  678. fCalcTrnptDgAuto();
  679. }
  680. ]]>
  681. </script>
  682. <hint>
  683. <![CDATA[Total과 Auto/Allo 차수 생성]]>
  684. </hint>
  685. </button>
  686. <line id="line127" class="line_3" style="left:0px; width:90px; x1:0px; y1:737px; x2:1194px; y2:737px; "/>
  687. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:75px; width:64px; height:19px; ">
  688. <caption>엑셀저장</caption>
  689. <script type="javascript" ev:event="DOMActivate">
  690. <![CDATA[
  691. var fileName = window.fileDialog("save", ",", false, "차수관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  692. if(fileName != "") {
  693. grd_patlist.saveExcel(fileName, "sheet1");
  694. }
  695. ]]>
  696. </script>
  697. </button>
  698. <datagrid id="grd_patlist" nodeset="/root/main/trnptdgmngt/trnptdglist" class="datagrid2" caption="Total 차수^AUTO 및 ALLO차수^Kind 차수^이식종류^Stem Cell Source^이식일^급여^환자명^진단명^이식차수^등록번호^성별^이식당시나이^혈액형^GVHD^ 생존 여부^이식후생존일^사인^공여자명^공여자성별^공여자나이^공여자혈액형^공여자&#xA;등록번호^UNIT^병실^진료과" colsep="^" colwidth="52, 67, 71, 113, 74, 73, 50, 81, 150, 30, 60, 36, 39, 45, 65, 39, 45, 100, 100, 42, 42, 45, 89, 104, 103, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:100px; width:1194px; height:585px; text-align:center; word-wrap:word; ">
  699. <col ref="totdg" type="input"/>
  700. <col ref="autoallodg" type="input"/>
  701. <col ref="allotrnptkinddg" type="input"/>
  702. <col disabled="true" ref="trnptkind" type="combo" style="left:240px; top:32px; width:100px; height:23px; ">
  703. <choices>
  704. <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
  705. <label ref="cdnm"/>
  706. <value ref="cdid"/>
  707. </itemset>
  708. </choices>
  709. </col>
  710. <col disabled="true" ref="scs" type="combo">
  711. <choices>
  712. <itemset nodeset="/root/init/cmbinfo/scs/A0162">
  713. <label ref="cdnm"/>
  714. <value ref="cdid"/>
  715. </itemset>
  716. </choices>
  717. </col>
  718. <col ref="trnptdd" format="yyyy-mm-dd"/>
  719. <col ref="insukind" type="combo">
  720. <choices>
  721. <item>
  722. <label>급여</label>
  723. <value>1</value>
  724. </item>
  725. <item>
  726. <label>비급여</label>
  727. <value>2</value>
  728. </item>
  729. </choices>
  730. </col>
  731. <col ref="hngnm"/>
  732. <col ref="diagcd1" type="combo">
  733. <choices>
  734. <itemset nodeset="/root/init/cmbinfo/lrglist/item">
  735. <label ref="hsctlrgnm"/>
  736. <value ref="hsctlrgcd"/>
  737. </itemset>
  738. </choices>
  739. </col>
  740. <col ref="trnptdg"/>
  741. <col ref="pid"/>
  742. <col disabled="true" ref="sex" type="combo">
  743. <choices>
  744. <itemset nodeset="/root/init/cmbinfo/sex/P0313">
  745. <label ref="cdnm"/>
  746. <value ref="cdid"/>
  747. </itemset>
  748. </choices>
  749. </col>
  750. <col ref="trnptage"/>
  751. <col disabled="true" ref="pattrnptafbtype" type="combo">
  752. <choices>
  753. <itemset nodeset="/root/init/cmbinfo/btype/M0376">
  754. <label ref="cdnm"/>
  755. <value ref="cdid"/>
  756. </itemset>
  757. </choices>
  758. </col>
  759. <col ref="gvhd"/>
  760. <col ref="dethyn"/>
  761. <col ref="trnptbfdays"/>
  762. <col ref="dethresn" type="combo">
  763. <choices>
  764. <itemset nodeset="/root/init/cmbinfo/dethresn/A0186">
  765. <label ref="cdnm"/>
  766. <value ref="cdid"/>
  767. </itemset>
  768. </choices>
  769. </col>
  770. <col ref="dnornm"/>
  771. <col disabled="true" ref="dnorsex" type="combo" style="left:1079px; top:32px; width:42px; height:23px; ">
  772. <choices>
  773. <itemset nodeset="/root/init/cmbinfo/sex/P0313">
  774. <label ref="cdnm"/>
  775. <value ref="cdid"/>
  776. </itemset>
  777. </choices>
  778. </col>
  779. <col ref="dnorage"/>
  780. <col disabled="true" ref="dnorbtype" type="combo">
  781. <choices>
  782. <itemset nodeset="/root/init/cmbinfo/btype/M0376">
  783. <label ref="cdnm"/>
  784. <value ref="cdid"/>
  785. </itemset>
  786. </choices>
  787. </col>
  788. <col ref="dnorpid"/>
  789. <col disabled="true" ref="trnptwardcd" type="combo">
  790. <choices>
  791. <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
  792. <label ref="cdnm"/>
  793. <value ref="cdid"/>
  794. </itemset>
  795. </choices>
  796. </col>
  797. <col disabled="true" ref="trnptroomcd" type="combo">
  798. <choices>
  799. <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
  800. <label ref="cdnm"/>
  801. <value ref="cdid"/>
  802. </itemset>
  803. </choices>
  804. </col>
  805. <col disabled="true" ref="deptcd" type="combo">
  806. <choices>
  807. <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
  808. <label ref="cdnm"/>
  809. <value ref="cdid"/>
  810. </itemset>
  811. </choices>
  812. </col>
  813. <script type="javascript" ev:event="onclick">
  814. <![CDATA[
  815. if ( grd_patlist.isCell(event.target) && grd_patlist.row >= grd_patlist.fixedRows) {
  816. grd_patlist.editCell();
  817. model.setValue("/root/temp/trnptdg/pid" , model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/pid"));
  818. model.setValue("/root/temp/trnptdg/hngnm" , model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/hngnm"));
  819. model.setValue("/root/temp/trnptdg/trnptdg" , model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/trnptdg"));
  820. model.setValue("/root/temp/trnptdg/totdg" , model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/totdg"));
  821. model.setValue("/root/temp/trnptdg/autoallodg" , model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/autoallodg"));
  822. model.setValue("/root/temp/trnptdg/trnptdd" , model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/trnptdd"));
  823. model.setValue("/root/temp/trnptdg/selectrow" , grd_patlist.row);
  824. model.setValue("/root/temp/trnptdg/trnptkind" , grd_patlist.labelmatrix(grd_patlist.row, 4));
  825. model.setValue("/root/temp/trnptdg/allotrnptkinddg", model.getValue("/root/main/trnptdgmngt/trnptdglist[" + grd_patlist.row + "]/allotrnptkinddg"));
  826. model.refresh();
  827. }
  828. ]]>
  829. </script>
  830. <script type="javascript" ev:event="onaftersort">
  831. <![CDATA[
  832. grd_patlist.gridToInstance();
  833. ]]>
  834. </script>
  835. </datagrid>
  836. <button id="button1" class="btn2_letter11" style="left:864px; top:690px; width:141px; height:19px; ">
  837. <caption>Allo Kind 차수자동생성</caption>
  838. <script type="javascript" ev:event="DOMActivate">
  839. <![CDATA[
  840. // Allo 이식종류별 처수를 자동 생성한다.
  841. if ( messageBox("Allo 이식종류별 차수를 생성합니다.", "Q004") == 6 ) {
  842. fCalcTrnptDgAlloAuto();
  843. }
  844. ]]>
  845. </script>
  846. <hint>
  847. <![CDATA[Allo Kind 차수 생성]]>
  848. </hint>
  849. </button>
  850. <button id="button2" class="btn2_letter7" style="left:764px; top:690px; width:97px; height:19px; ">
  851. <caption>전체차수지우기</caption>
  852. <script type="javascript" ev:event="DOMActivate">
  853. <![CDATA[
  854. // 선택한 환자의 차수정보를 Celar한다.
  855. if ( messageBox("전체 환자의 Total, Auto/Allo, Allo Kind 차수정보를 지웁니다.", "Q004") == 6 ) {
  856. fSetTrnptDgClear("A");
  857. }
  858. ]]>
  859. </script>
  860. </button>
  861. <output id="output7" ref="/root/temp/trnptdg/totdg" class="output_fix" style="left:684px; top:716px; width:60px; height:19px; text-align:center; "/>
  862. <output id="output8" ref="/root/temp/trnptdg/autoallodg" class="output_fix" style="left:840px; top:716px; width:60px; height:19px; text-align:center; "/>
  863. <output id="output9" ref="/root/temp/trnptdg/allotrnptkinddg" class="output_fix" style="left:1134px; top:716px; width:60px; height:19px; text-align:center; "/>
  864. </group>
  865. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  866. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:5px; width:56px; height:22px; ">
  867. <caption>저장</caption>
  868. <script type="javascript" ev:event="DOMActivate">
  869. <![CDATA[
  870. fSetTrnptKindDg();
  871. fGetTrnptDgMngtList();
  872. ]]>
  873. </script>
  874. </button>
  875. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  876. <caption>출력</caption>
  877. <script type="javascript" ev:event="DOMActivate">
  878. <![CDATA[
  879. exeReportPreview("RPABO01501", "XMLSTR", "/root/main/trnptdgmngt");
  880. ]]>
  881. </script>
  882. </button>
  883. </group>
  884. </xhtml:body>
  885. </xhtml:html>