SMABO02000_타기관채취스케쥴.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="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. <![CDATA[]]>
  6. <xhtml:title>타기관채취스케쥴</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <patientscheinfo>
  12. <patientscheinfo>
  13. <pid/>
  14. <hngnm/>
  15. <sex/>
  16. <age/>
  17. <boneassocd/>
  18. <trnptschedd/>
  19. <trnptscherem/>
  20. <updttrnptschedd/>
  21. <flag/>
  22. </patientscheinfo>
  23. </patientscheinfo>
  24. <patientlist>
  25. <patientlist>
  26. <pid/>
  27. <hngnm/>
  28. <boneassocd/>
  29. <trnptscherem/>
  30. </patientlist>
  31. </patientlist>
  32. <popupendflag/>
  33. <patinfo>
  34. <patinfolist>
  35. <pid/>
  36. <hngnm/>
  37. <rrgstno1/>
  38. <rrgstno2/>
  39. <sex/>
  40. <cntctel/>
  41. <mpphontel/>
  42. <zipcd1/>
  43. <zipcd2/>
  44. <zipcdseq/>
  45. <cntcaddr/>
  46. <email/>
  47. <age/>
  48. <addr/>
  49. <dethdd/>
  50. <indschacptstat/>
  51. <procernm/>
  52. <pcntctel/>
  53. </patinfolist>
  54. </patinfo>
  55. <trnptdairymemo>
  56. <trnptdairymemo>
  57. <memoiptdt/>
  58. <memocnts/>
  59. </trnptdairymemo>
  60. </trnptdairymemo>
  61. </main>
  62. <send>
  63. <patientscheinfo>
  64. <patientscheinfo>
  65. <pid/>
  66. <hngnm/>
  67. <sex/>
  68. <age/>
  69. <boneassocd/>
  70. <trnptschedd/>
  71. <trnptsrchrem/>
  72. <updttrnptschedd/>
  73. <flag/>
  74. </patientscheinfo>
  75. </patientscheinfo>
  76. <srchinfo>
  77. <trnptschedd/>
  78. <pid/>
  79. </srchinfo>
  80. <flag/>
  81. <schememo>
  82. <memolist/>
  83. </schememo>
  84. </send>
  85. <init>
  86. <cmbinfo>
  87. <boneassocd>
  88. <A0164>
  89. <cdid/>
  90. <cdnm/>
  91. </A0164>
  92. </boneassocd>
  93. <sex>
  94. <P0313>
  95. <cdid/>
  96. <cdnm/>
  97. </P0313>
  98. </sex>
  99. </cmbinfo>
  100. </init>
  101. <hidden>
  102. <calendar>
  103. <year/>
  104. <month/>
  105. <weeklist>
  106. <list>
  107. <sun/>
  108. <mon/>
  109. <tue/>
  110. <wed/>
  111. <thu/>
  112. <fri/>
  113. <sat/>
  114. <sun_memo/>
  115. <mon_memo/>
  116. <tue_memo/>
  117. <wed_memo/>
  118. <thu_memo/>
  119. <fri_memo/>
  120. <sat_memo/>
  121. </list>
  122. </weeklist>
  123. </calendar>
  124. <message>
  125. <str1/>
  126. </message>
  127. <item>
  128. <count/>
  129. </item>
  130. <convey>
  131. <pamcombo>1</pamcombo>
  132. </convey>
  133. </hidden>
  134. <temp>
  135. <templist>
  136. <calendarlist>
  137. </calendarlist>
  138. </templist>
  139. <selectrow/>
  140. <tempcodeinfo/>
  141. <tempcodeinfo2/>
  142. </temp>
  143. <out/>
  144. </root>
  145. </instance>
  146. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  148. <script type="javascript" ev:event="xforms-ready">
  149. <![CDATA[
  150. initCalendar();
  151. //zbcfGetCodeList( new Array("A0164", "P0313"), new Array("/root/init/cmbinfo/boneassocd", "/root/init/cmbinfo/sex") );
  152. zbcfGetCodeList( new Array("P0313"), new Array("/root/init/cmbinfo/sex") );
  153. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  154. aboGetCodeList(new Array("A0164"), new Array("/root/init/cmbinfo/boneassocd") );
  155. fGetMonthRecipientList();
  156. btn_save.disabled = !checkAuth("X");
  157. btn_del.disabled = !checkAuth("X");
  158. submit("TRABO02004"); //메모 조회(날짜에 상관없이 모든 메모를 보여준다.
  159. ]]>
  160. </script>
  161. <submission id="TRABO02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/templist"/>
  162. <submission id="TRABO02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patientlist"/>
  163. <submission id="TRABO02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/trnptdairymemo"/>
  164. <submission id="TXABO02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/schememo" replace="instance" resultref="/root/out"/>
  165. <submission id="TXABO02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patientscheinfo" replace="instance" resultref="root/out"/>
  166. <submission id="TRABO02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patientscheinfo"/>
  167. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  168. </model>
  169. <script type="javascript">
  170. <![CDATA[
  171. /* @group : 타기관 채취 스케줄관리
  172. * @ver : 2007.11.20
  173. * @by : 남수현
  174. * @type : function
  175. * @access : public
  176. * @desc : 달력 초기화
  177. * @param :
  178. */
  179. function initCalendar() {
  180. var curDate = getCurrentDate().toDate();
  181. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  182. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  183. model.refresh();
  184. setCalendar(curDate);
  185. }
  186. /* @group : 타기관 채취 스케줄관리
  187. * @ver : 2007.11.20
  188. * @by : 남수현
  189. * @type : function
  190. * @access : public
  191. * @desc : 달력 처리
  192. * @param :
  193. */
  194. function setCalendar(dateObj) {
  195. // 그리드 초기화
  196. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  197. dateObj.setDate(1);
  198. var startDay = dateObj.getDay();
  199. var days = dateObj.getMonthDay();
  200. var rows = Math.ceil( ( startDay + days ) / 7 );
  201. for( var i = 0; i < rows; i++ ) {
  202. grd_calendar.addRow(false);
  203. }
  204. grd_calendar.rebuild();
  205. var rowIndex = grd_calendar.fixedRows;
  206. var colIndex = startDay;
  207. for( var i = 1; i <= days; i++ ) {
  208. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  209. colIndex++;
  210. if( colIndex == 7 ) {
  211. colIndex = 0;
  212. rowIndex++;
  213. }
  214. }
  215. }
  216. /* @group : 타기관 채취 스케줄관리
  217. * @ver : 2007.11.20
  218. * @by : 남수현
  219. * @type : function
  220. * @access : public
  221. * @desc : 달력 연/월 변경시 처리
  222. * @param : flagValue( -1, 1 ), flagMonthYear( 'M', 'Y')
  223. */
  224. function setCalendarDate(flagValue, flagMonthYear) {
  225. var isMonth = model.getValue("/root/hidden/calendar/month");
  226. var isYear = model.getValue("/root/hidden/calendar/year");
  227. var isDate = (isYear+isMonth+1).toDate().getAddDate(flagValue, flagMonthYear);
  228. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  229. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  230. model.refresh();
  231. setCalendar(isDate);
  232. fGetMonthRecipientList();
  233. }
  234. function setCellColor(gridObj) {
  235. var calRow = gridObj.row;
  236. var calCol = gridObj.col;
  237. if( calCol < 7 )
  238. calCol += 7;
  239. else
  240. calCol -= 7;
  241. gridObj.rebuildStyle();
  242. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  243. }
  244. /* @group : 타기관 채취 스케줄관리
  245. * @ver : 2007.11.20
  246. * @by : 남수현
  247. * @type : function
  248. * @access : public
  249. * @desc : 달력에 월별 이식환자정보 표시
  250. * @param :
  251. */
  252. function fGetMonthRecipientList(){
  253. model.removeNodeset("/root/temp/templist");
  254. model.resetInstanceNode("/root/main/patientlist/patientlist");
  255. model.resetInstanceNode("/root/main/patientscheinfo/patientscheinfo");
  256. var sRsrvMon = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") ;
  257. model.setValue("/root/send/srchinfo/trnptschedd", sRsrvMon+"%" );
  258. submit("TRABO02001");
  259. sNode = instance1.selectSingleNode("/root/temp/templist/calendarlist");
  260. if( sNode != null ){
  261. var dd = null ;
  262. var iCol = null;
  263. var iRow = null;
  264. var firstDay = (sRsrvMon+ "01").toDate().getDay();
  265. sNode = instance1.selectNodes("/root/temp/templist/calendarlist");
  266. for( var i = 1 ; i <= sNode.length ; i++){
  267. dd = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptschedd" ) ;
  268. dd = dd.substring(6,8);
  269. iCol = ( sRsrvMon + dd).toDate().getDay();
  270. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
  271. grd_calendar.valueMatrix(iRow , iCol + 7) = "";
  272. }
  273. for( var i = 1 ; i <= sNode.length ; i++){
  274. dd = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptschedd]/trnptschedd" ) ;
  275. dd = dd.substring(6,8);
  276. iCol = ( sRsrvMon + dd).toDate().getDay();
  277. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
  278. if( grd_calendar.valueMatrix(iRow , iCol + 7) == ""){
  279. grd_calendar.valueMatrix(iRow , iCol + 7) = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/hngnm") + " " +
  280. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/boneassonm") + " " +
  281. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptscherem");
  282. } else {
  283. grd_calendar.valueMatrix(iRow , iCol + 7) = grd_calendar.valueMatrix(iRow , iCol + 7) +"\n"+ model.getValue("/root/temp/templist/calendarlist[" +i+ "]/hngnm" ) + " " +
  284. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/boneassonm") + " " +
  285. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptscherem");
  286. }
  287. }
  288. }
  289. // model.copyNode ("/root/main/monthschedulecnt/monthschedulecnt", "/root/temp/templist/monthschedulecnt");
  290. model.refresh();
  291. grd_calendar.rebuild();
  292. }
  293. /* @group : 타기관 채취 스케줄관리
  294. * @ver : 2007.11.20
  295. * @by : 남수현
  296. * @type : function
  297. * @access : public
  298. * @desc : 일자별 이식예정환자 조회
  299. * @param :
  300. */
  301. function fGetPatientList(){
  302. var seldate = fGetCalendarDate(grd_calendar);
  303. model.setValue("/root/send/srchinfo/trnptschedd",seldate);
  304. model.setValue("/root/send/srchinfo/pid", "");
  305. model.resetInstanceNode("/root/main/patientlist/patientlist");
  306. model.resetInstanceNode("/root/main/patientscheinfo/patientscheinfo");
  307. submit("TRABO02002");
  308. // model.makeValue("/root/main/trnptdairymemo/trnptdairymemo/memocnts", model.getValue("/root/temp/trnptdairymemo/trnptdairymemo/memocnts"));
  309. cap_seldate.value = seldate + "스케쥴";
  310. model.refresh();
  311. }
  312. /* @group : 타기관 채취 스케줄관리
  313. * @ver : 2007.11.20
  314. * @by : 남수현
  315. * @type : function
  316. * @access : public
  317. * @desc : 선택한 일자 얻기
  318. * @param : grdObj( calendar grid control )
  319. */
  320. function fGetCalendarDate(grdObj){
  321. var cal_row = grdObj.row;
  322. var cal_col = grdObj.col;
  323. if( cal_col > 6) cal_col -= 7;
  324. var rsrvdd = "";
  325. if( cal_row > 0 ){
  326. var dd = model.getValue( grdObj.nodeset + "[" + cal_row + "]/" + grdObj.colAttribute( cal_col,"ref") ) ;
  327. if( dd.length < 2 ) {
  328. dd = "0" + dd;
  329. }
  330. rsrvdd = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + dd ;
  331. }
  332. return rsrvdd;
  333. }
  334. /* @group : 타기관 채취 스케줄관리
  335. * @ver : 2007.11.20
  336. * @by : 남수현
  337. * @type : function
  338. * @access : public
  339. * @desc : 일자별 이식예정환자에서 선택한 환자의 상세정보 SELECT
  340. * @param :
  341. */
  342. function fGetSelectPatientInfo(){
  343. var idx = grd_patientlist.row ;
  344. if(idx < 1){
  345. messageBox("환자를 선택하세요","E999");
  346. return;
  347. }
  348. var vPid = model.getValue("/root/main/patientlist/patientlist[" + idx+ "]/pid");
  349. if( vPid == "" ){
  350. messageBox("환자를 선택하세요","E999");
  351. return ;
  352. }
  353. model.setValue("/root/temp/selectrow", idx);
  354. model.setValue("/root/send/srchinfo/pid" , vPid);
  355. model.setValue("/root/send/srchinfo/trnptschedd" , model.getValue("/root/main/patientlist/patientlist[" + idx +"]/trnptschedd"));
  356. submit("TRABO02003");
  357. // 등록된 리스트에서 선택하면 수정이다.
  358. model.setValue("/root/main/patientscheinfo/patientscheinfo/flag" , "U");
  359. model.setValue("/root/main/patientscheinfo/patientscheinfo/updttrnptschedd", model.getValue("/root/main/patientscheinfo/patientscheinfo/trnptschedd"));
  360. }
  361. function fGetBaseInfo(){
  362. //협회
  363. zbcfGetCodeList( new Array("A0166"),
  364. new Array("/root/init/baseinfo/asso"));
  365. submit("TRZBC00101");
  366. var cur_dt = getCurrentDate() ;
  367. model.setValue(ipt_asso.attribute("ref"), cur_dt);
  368. model.refresh();
  369. }
  370. ]]>
  371. </script>
  372. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  373. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  374. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  375. </xhtml:head>
  376. <xhtml:body guideline="1,1194;2,757;2,784;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  377. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  378. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:100px; height:13px; ">월별 스케쥴</caption>
  379. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:885px; y2:70px; "/>
  380. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  381. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  382. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  383. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  384. <caption>조회</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. fGetMonthRecipientList();
  388. ]]>
  389. </script>
  390. </button>
  391. </group>
  392. <input id="input21" ref="/root/main/patientscheinfo/patientscheinfo/hngnm" class="input_default" disabled="true" style="left:1019px; top:245px; width:86px; height:19px; "/>
  393. <line id="line15" class="line_1" style="x1:905px; y1:70px; x2:1194px; y2:70px; "/>
  394. <caption id="caption4" class="tit_2" style="left:910px; top:200px; width:100px; height:13px; ">스케쥴 관리</caption>
  395. <line id="line2" class="line_1" style="left:907px; x1:905px; y1:215px; x2:1194px; y2:215px; "/>
  396. <input id="input2" ref="/root/main/patientscheinfo/patientscheinfo/pid" class="input_essential" style="left:1019px; top:221px; width:86px; height:19px; "/>
  397. <button id="button33" class="icon_search" style="left:1108px; top:221px; width:16px; height:16px; ">
  398. <caption/>
  399. <script type="javascript" ev:event="DOMActivate">
  400. <![CDATA[
  401. // 환자를 검색하면 신규 입력이다.
  402. model.setValue("/root/main/patientscheinfo/patientscheinfo/flag", "I");
  403. // 원무의 환자 검색창을 띄운다. (검색조건 디폴트를 등록번호로 해주기 위해 /root/hidden/convey/pamcombo노드에 '1'을 담아 전달.)
  404. modal("SPPMC02500",0,100,150,"SPPMC02500", "/root/hidden/convey/pamcombo", "/root/send/srchcond");
  405. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  406. model.setValue( "/root/main/patientscheinfo/patientscheinfo/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
  407. model.setValue( "/root/main/patientscheinfo/patientscheinfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  408. model.setValue( "/root/main/patientscheinfo/patientscheinfo/sex" , model.getValue("/root/main/patinfo/patinfolist/sex"));
  409. model.setValue( "/root/main/patientscheinfo/patientscheinfo/age" , model.getValue("/root/main/patinfo/patinfolist/age"));
  410. model.refresh();
  411. }
  412. ]]>
  413. </script>
  414. </button>
  415. <line id="line4" class="line_2" style="left:907px; x1:905px; y1:242px; x2:1194px; y2:242px; "/>
  416. <line id="line5" class="line_2" style="left:907px; x1:905px; y1:266px; x2:1194px; y2:266px; "/>
  417. <line id="line6" class="line_2" style="left:907px; x1:905px; y1:314px; x2:1194px; y2:314px; "/>
  418. <textarea id="textarea1" ref="/root/main/patientscheinfo/patientscheinfo/trnptscherem" style="left:1019px; top:317px; width:174px; height:167px; "/>
  419. <group id="grp_calendar" style="left:0px; top:76px; width:885px; height:40px; ">
  420. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:885px; height:40px; "/>
  421. <button id="button31" class="icon_pre_year" style="left:340px; top:12px; width:16px; height:16px; text-align:center; ">
  422. <caption/>
  423. <script type="javascript" ev:event="DOMActivate">
  424. <![CDATA[
  425. setCalendarDate(-1, 'Y');
  426. ]]>
  427. </script>
  428. </button>
  429. <button id="button32" class="icon_next_year" style="left:515px; top:12px; width:16px; height:16px; text-align:center; ">
  430. <caption/>
  431. <script type="javascript" ev:event="DOMActivate">
  432. <![CDATA[
  433. setCalendarDate(1, 'Y');
  434. ]]>
  435. </script>
  436. </button>
  437. <button id="btn_premonth" class="icon_pre_month" style="left:359px; top:12px; width:16px; height:16px; text-align:center; ">
  438. <caption/>
  439. <script type="javascript" ev:event="DOMActivate">
  440. <![CDATA[
  441. setCalendarDate(-1, 'M');
  442. ]]>
  443. </script>
  444. </button>
  445. <button id="button34" class="icon_next_month" style="left:496px; top:12px; width:16px; height:16px; text-align:center; ">
  446. <caption/>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. setCalendarDate(1, 'M');
  450. ]]>
  451. </script>
  452. </button>
  453. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:385px; top:9px; width:30px; height:19px; text-align:center; "/>
  454. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:435px; top:9px; width:30px; height:19px; text-align:center; "/>
  455. <caption id="caption2" class="calendar_output" style="left:415px; top:9px; width:20px; height:19px; text-align:center; ">년</caption>
  456. <caption id="caption3" class="calendar_output" style="left:465px; top:9px; width:20px; height:19px; text-align:center; ">월</caption>
  457. </group>
  458. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" overflow="hidden" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="126, 126, 126, 126, 126, 126, 126" dataheight="48" extendlastcol="noscroll" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:115px; width:885px; height:629px; border-width:1px; ">
  459. <row>
  460. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  461. <col ref="mon" style="border-bottom-width:0px; "/>
  462. <col ref="tue" style="border-bottom-width:0px; "/>
  463. <col ref="wed" style="border-bottom-width:0px; "/>
  464. <col ref="thu" style="border-bottom-width:0px; "/>
  465. <col ref="fri" style="border-bottom-width:0px; "/>
  466. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  467. </row>
  468. <row>
  469. <col ref="sun_memo" type="input" style="border-top-width:0px; "/>
  470. <col ref="mon_memo" type="input" style="border-top-width:0px; "/>
  471. <col ref="tue_memo" type="input" style="border-top-width:0px; "/>
  472. <col ref="wed_memo" type="input" style="border-top-width:0px; "/>
  473. <col ref="thu_memo" type="input" style="border-top-width:0px; "/>
  474. <col ref="fri_memo" type="input" style="border-top-width:0px; "/>
  475. <col ref="sat_memo" type="input" style="border-top-width:0px; "/>
  476. </row>
  477. <script type="javascript" ev:event="onclick">
  478. <![CDATA[
  479. var seldate = fGetCalendarDate(grd_calendar);
  480. // 날짜가 없는 빈 곳을 클릭하면 처리하지 않는다
  481. if ( seldate.length == 7 ) {
  482. return
  483. }
  484. setCellColor(grd_calendar);
  485. fGetPatientList();
  486. ]]>
  487. </script>
  488. <script type="javascript" ev:event="onrowchanged">
  489. <![CDATA[
  490. setCellColor(grd_calendar);
  491. ]]>
  492. </script>
  493. <script type="javascript" ev:event="oncolchanged">
  494. <![CDATA[
  495. setCellColor(grd_calendar);
  496. ]]>
  497. </script>
  498. </multilinegrid>
  499. <select1 id="combo7" ref="/root/main/patientscheinfo/patientscheinfo/boneassocd" class="combo_default" appearance="minimal" style="left:1019px; top:269px; width:174px; height:19px; ">
  500. <choices>
  501. <itemset nodeset="/root/init/cmbinfo/boneassocd/A0164">
  502. <label ref="cdnm"/>
  503. <value ref="cdid"/>
  504. </itemset>
  505. </choices>
  506. </select1>
  507. <input id="input10" ref="/root/main/patientscheinfo/patientscheinfo/age" class="input_default" disabled="true" style="left:1169px; top:245px; width:25px; height:19px; "/>
  508. <select1 id="combo10" ref="/root/main/patientscheinfo/patientscheinfo/sex" class="combo_default" disabled="true" appearance="minimal" style="left:1108px; top:245px; width:58px; height:19px; ">
  509. <choices>
  510. <itemset nodeset="/root/init/cmbinfo/sex/P0313">
  511. <label ref="cdnm"/>
  512. <value ref="cdid"/>
  513. </itemset>
  514. </choices>
  515. </select1>
  516. <input id="ipt_trnptschedd" ref="/root/main/patientscheinfo/patientscheinfo/trnptschedd" class="input_default" inputtype="date" style="left:1019px; top:293px; width:174px; height:19px; "/>
  517. <line id="line3" class="line_2" style="left:907px; x1:905px; y1:290px; x2:1194px; y2:290px; "/>
  518. <caption id="caption13" class="cell_1" style="left:905px; top:292px; width:111px; height:23px; text-align:left; vertical-align:middle; ">이식예정일</caption>
  519. <caption id="caption7" class="cell_1" style="left:905px; top:220px; width:111px; height:23px; text-align:left; vertical-align:middle; ">등록번호</caption>
  520. <caption id="caption16" class="cell_1" style="left:905px; top:316px; width:111px; height:170px; text-align:left; vertical-align:middle; ">비고</caption>
  521. <caption id="caption8" class="cell_1" style="left:905px; top:268px; width:111px; height:23px; text-align:left; vertical-align:middle; ">협회</caption>
  522. <caption id="caption18" class="cell_1" style="left:905px; top:244px; width:111px; height:23px; text-align:left; vertical-align:middle; ">공여자명</caption>
  523. <line id="line12" class="line_3" style="left:907px; x1:905px; y1:487px; x2:1194px; y2:487px; "/>
  524. <caption id="cap_seldate" ref="/root/main/patientlist/seldate" class="tit_2" format="yyyy-mm-dd" style="left:910px; top:55px; width:130px; height:13px; "/>
  525. <caption id="caption22" style="left:1004px; top:52px; width:40px; height:20px; ">스케쥴</caption>
  526. <datagrid id="grd_patientlist" nodeset="/root/main/patientlist/patientlist" caption="등록번호^공여자명" colsep="^" colwidth="120, 120" dataheight="23" defaultrows="1" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:905px; top:75px; width:289px; height:115px; text-align:center; ">
  527. <col ref="pid" type="output"/>
  528. <col ref="hngnm" type="output"/>
  529. <script type="javascript" ev:event="onclick">
  530. <![CDATA[
  531. fGetSelectPatientInfo();
  532. ]]>
  533. </script>
  534. </datagrid>
  535. <caption id="caption5" class="tit_2" style="left:910px; top:497px; width:100px; height:14px; ">memo</caption>
  536. <line id="line7" class="line_1" style="left:907px; x1:905px; y1:512px; x2:1194px; y2:512px; "/>
  537. <datagrid id="grd_memo" nodeset="/root/main/trnptdairymemo/trnptdairymemo" caption="등록일자^메모" colsep="^" colwidth="80, 172" dataheight="23" defaultrows="0" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:905px; top:517px; width:289px; height:227px; ">
  538. <col ref="memoiptdt" type="output" format="yyyy-mm-dd"/>
  539. <col ref="memocnts" type="input"/>
  540. </datagrid>
  541. </group>
  542. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  543. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">타기관 채취 스케쥴</caption>
  544. </group>
  545. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  546. <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  547. <caption>삭제</caption>
  548. <script type="javascript" ev:event="DOMActivate">
  549. <![CDATA[
  550. model.setValue("/root/send/flag", "D");
  551. model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/patientscheinfo/patientscheinfo");
  552. model.setValue("/root/send/patientscheinfo/patientscheinfo/flag", "D");
  553. if(model.getValue("/root/send/patientscheinfo/patientscheinfo/pid") != ""){
  554. submit("TXABO02001");
  555. model.resetInstanceNode("/root/send/patientscheinfo/patientscheinfo");
  556. }
  557. setCalendarDate(0, 'M');
  558. ]]>
  559. </script>
  560. </button>
  561. <button id="btn_save" class="btn4_letter2" style="left:1008px; top:5px; width:56px; height:22px; ">
  562. <caption>저장</caption>
  563. <script type="javascript" ev:event="DOMActivate">
  564. <![CDATA[
  565. if ( model.getValue( "/root/main/patientscheinfo/patientscheinfo/trnptschedd") == "" ) {
  566. messageBox("이식예정일은 반드시 선택해야 합니다", "E999", "");
  567. return false;
  568. }
  569. if ( model.getValue( "/root/main/patientscheinfo/patientscheinfo/pid") == "" ) {
  570. messageBox("등록번호는 반드시 선택해야 합니다. ", "E999", "");
  571. return false;
  572. }
  573. model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/patientscheinfo/patientscheinfo");
  574. submit("TXABO02001");
  575. fGetMonthRecipientList();
  576. ]]>
  577. </script>
  578. </button>
  579. <button id="button1" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  580. <caption>초기화</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. initCalendar();
  584. ]]>
  585. </script>
  586. </button>
  587. </group>
  588. <button id="btn_memosave" class="btn5_letter2" style="left:1150px; top:532px; width:42px; height:19px; ">
  589. <caption>저장</caption>
  590. <script type="javascript" ev:event="DOMActivate">
  591. <![CDATA[
  592. var saveData = grd_memo.getUpdateData();
  593. model.setValue("/root/send/schememo/memolist", saveData);
  594. submit("TXABO02002");
  595. submit("TRABO02004");
  596. ]]>
  597. </script>
  598. </button>
  599. <button id="btn_grddel" class="btn2_letter3" style="left:1094px; top:532px; width:53px; height:19px; ">
  600. <caption>행삭제</caption>
  601. <script type="javascript" ev:event="DOMActivate">
  602. <![CDATA[
  603. grd_memo.deleteRow(grd_memo.row);
  604. ]]>
  605. </script>
  606. </button>
  607. <button id="btn_grdadd" class="btn2_letter3" style="left:1038px; top:532px; width:53px; height:19px; ">
  608. <caption>행추가</caption>
  609. <script type="javascript" ev:event="DOMActivate">
  610. <![CDATA[
  611. if(model.getValue("/root/main/trnptdairymemo/trnptdairymemo[" + (grd_memo.rows - 1) + "]/memoiptdt") != (getCurrentDate()+getCurrentTime())){
  612. grd_memo.addRow();
  613. model.setValue("/root/main/trnptdairymemo/trnptdairymemo[" + (grd_memo.rows - 1) + "]/memoiptdt", (getCurrentDate()+getCurrentTime()));
  614. grd_memo.refresh();
  615. }
  616. else{
  617. }
  618. ]]>
  619. </script>
  620. </button>
  621. </xhtml:body>
  622. </xhtml:html>