SMABO00800_스케줄관리.xrw 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187
  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. <hsctinfo>
  11. <patinfolist>
  12. <pid/>
  13. <hngnm/>
  14. <sex/>
  15. <age/>
  16. <diagcd1/>
  17. <deptcd/>
  18. <trnptkind/>
  19. <insuaprvdd/>
  20. <inschedd/>
  21. <trnptschedd/>
  22. <trnptwardcd/>
  23. <trnptroomcd/>
  24. <trnptscherem/>
  25. <trnptdg/>
  26. <updtresn/>
  27. <updttrnptschedd/>
  28. <trnpttype/>
  29. <flag/>
  30. </patinfolist>
  31. </hsctinfo>
  32. <patientlist>
  33. <patientlist>
  34. <pid/>
  35. <hngnm/>
  36. <trnptkind/>
  37. <diagcd1/>
  38. <deptcd/>
  39. <insuaprvdd/>
  40. <inschedd/>
  41. <trnptschedd/>
  42. <trnptwardcd/>
  43. <trnptroomcd/>
  44. <trnptscherem/>
  45. <trnptdg/>
  46. </patientlist>
  47. </patientlist>
  48. <popupendflag/>
  49. <seldate/>
  50. <patcheck>
  51. <check>
  52. <cnt/>
  53. </check>
  54. </patcheck>
  55. </main>
  56. <send>
  57. <data>
  58. <trnptwardcd/>
  59. <trnptroomcd/>
  60. <atdoctid/>
  61. <deptcd/>
  62. <trnptschedd/>
  63. <pid/>
  64. <lrggrupcd>DI</lrggrupcd>
  65. </data>
  66. <patientscheinfo>
  67. <patientscheinfo>
  68. <pid/>
  69. <hngnm/>
  70. <sex/>
  71. <age/>
  72. <diagcd1/>
  73. <orddept/>
  74. <trnptkind/>
  75. <insuaprvdd/>
  76. <inschedd/>
  77. <trnptschedd/>
  78. <trnptwardcd/>
  79. <trnptroomcd/>
  80. <trnptscherem/>
  81. <updtresn/>
  82. <updttrnptschedd/>
  83. <trnpttype/>
  84. <flag/>
  85. </patientscheinfo>
  86. </patientscheinfo>
  87. <srchinfo>
  88. <trnptschedd/>
  89. <pid/>
  90. <trnptdg/>
  91. <hngnm/>
  92. <printflag/>
  93. </srchinfo>
  94. <flag/>
  95. <lrggrupcd/>
  96. </send>
  97. <init>
  98. <cmbinfo>
  99. <deptcd>
  100. <A0478/>
  101. </deptcd>
  102. <trnptwardcd>
  103. <A0479/>
  104. </trnptwardcd>
  105. <trnptroomcd>
  106. <A0480/>
  107. </trnptroomcd>
  108. <trnptkind>
  109. <A0161>
  110. <cdid/>
  111. <cdnm/>
  112. </A0161>
  113. </trnptkind>
  114. <lrglist>
  115. <item>
  116. <hsctlrgcd/>
  117. <hsctlrgnm/>
  118. </item>
  119. </lrglist>
  120. <updtlist>
  121. <A0173>
  122. <cdid/>
  123. <cdnm/>
  124. </A0173>
  125. </updtlist>
  126. <sex>
  127. <P0313/>
  128. </sex>
  129. <atdoctid>
  130. <A0536>
  131. <cdid/>
  132. <cdnm/>
  133. </A0536>
  134. </atdoctid>
  135. </cmbinfo>
  136. </init>
  137. <hidden>
  138. <calendar>
  139. <year/>
  140. <month/>
  141. <weeklist>
  142. <list>
  143. <sun/>
  144. <mon/>
  145. <tue/>
  146. <wed/>
  147. <thu/>
  148. <fri/>
  149. <sat/>
  150. <sun_memo/>
  151. <mon_memo/>
  152. <tue_memo/>
  153. <wed_memo/>
  154. <thu_memo/>
  155. <fri_memo/>
  156. <sat_memo/>
  157. </list>
  158. </weeklist>
  159. </calendar>
  160. <comcd/>
  161. <check>
  162. <cnt/>
  163. </check>
  164. </hidden>
  165. <temp>
  166. <templist>
  167. <calendarlist>
  168. <pid/>
  169. <hngnm/>
  170. <trnptdd/>
  171. <diagcd1/>
  172. <trnptkind/>
  173. <trnpttype/>
  174. <trnptscherem/>
  175. </calendarlist>
  176. <monthschedulecnt>
  177. <trnptkind/>
  178. <cnt/>
  179. </monthschedulecnt>
  180. <scheprintlist>
  181. <dayofweek/>
  182. <trnptschedd/>
  183. <scheprint/>
  184. <pid/>
  185. <hngnm/>
  186. </scheprintlist>
  187. </templist>
  188. <bmtpatientinfo/>
  189. <popupendflag/>
  190. <trnptdg>
  191. <item>
  192. <cd>1</cd>
  193. <nm>1차</nm>
  194. </item>
  195. </trnptdg>
  196. <tempcodeinfo/>
  197. <tempcodeinfo2/>
  198. </temp>
  199. <out/>
  200. </root>
  201. </instance>
  202. <submission id="TRZBC00101"/>
  203. <submission id="TRABO00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/temp/templist"/>
  204. <submission id="TRABO00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/patientlist"/>
  205. <submission id="TRABO00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/hsctinfo"/>
  206. <submission id="TRABO00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/temp/templist"/>
  207. <submission id="TXABO00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patientscheinfo" replace="instance" resultref="/root/out"/>
  208. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
  209. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  210. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  211. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  212. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  213. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  214. <script type="javascript" ev:event="xforms-ready">
  215. <![CDATA[
  216. initCalendar();
  217. // 공통코드 가져오기
  218. // zbcfGetCodeList( new Array("A0161", "A0173", "P0313", "A0478", "A0479", "A0480", "A0536"),
  219. // new Array("/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/updtlist", "/root/init/cmbinfo/sex", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd", "/root/init/cmbinfo/atdoctid") );
  220. zbcfGetCodeList( new Array("P0313"),
  221. new Array("/root/init/cmbinfo/sex"));
  222. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  223. aboGetCodeList(new Array("A0161", "A0173", "A0478", "A0479", "A0480", "A0536"),
  224. new Array("/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/updtlist", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/trnptwardcd", "/root/init/cmbinfo/trnptroomcd", "/root/init/cmbinfo/atdoctid") );
  225. // bmtcommon.js : 이식종류에 AUTO [00] 추가해주기
  226. abofSetTrnptKindCdAuto();
  227. // bmtcommon.js : BMT 진단대분류 조회 : 맨 앞에 공백을 추가해주기 위해서 함수로 변경
  228. abofGetBmtDIagLrgList();
  229. fGetMonthRecipientList();
  230. //권한체크
  231. btn_save.visible = checkAuth("X");
  232. btn_delete.visible = checkAuth("X");
  233. btn_update.visible = checkAuth("X");
  234. //btn_prt.disabled = !checkAuth("P");
  235. //btn_prt2.disabled = !checkAuth("P");
  236. ]]>
  237. </script>
  238. <submission id="TRABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/init/cmbinfo/lrglist"/>
  239. <submission id="TRABO00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp/trnptdg"/>
  240. <submission id="TRABO00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/patcheck"/>
  241. </model>
  242. <script type="javascript">
  243. <![CDATA[
  244. /* @group : BMT 환자 이식 스케줄관리
  245. * @ver : 2007.11.20
  246. * @by : 남수현
  247. * @type : function
  248. * @access : public
  249. * @desc : 선택한 일자 얻기
  250. * @param : grdObj( calendar grid control )
  251. */
  252. function fGetCalendarDate(grdObj){
  253. var cal_row = grdObj.row;
  254. var cal_col = grdObj.col;
  255. if( cal_col > 6) cal_col -= 7;
  256. var rsrvdd = "";
  257. if( cal_row > 0 ){
  258. var dd = model.getValue( grdObj.nodeset + "[" + cal_row + "]/" + grdObj.colAttribute( cal_col,"ref") ) ;
  259. if( dd.length < 2 ) {
  260. dd = "0" + dd;
  261. }
  262. rsrvdd = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") + dd ;
  263. }
  264. return rsrvdd;
  265. }
  266. /* @group : BMT 환자 이식스케줄관리
  267. * @ver : 2007.11.20
  268. * @by : 남수현
  269. * @type : function
  270. * @access : public
  271. * @desc : 일자별 이식예정환자 조회
  272. * @param :
  273. */
  274. function fGetPatientList(){
  275. var seldate = fGetCalendarDate(grd_calendar);
  276. model.setValue("/root/send/srchinfo/trnptschedd",seldate);
  277. model.setValue("/root/send/srchinfo/pid", "");
  278. model.setValue("/root/send/srchinfo/trnptdg", "");
  279. model.resetInstanceNode("/root/main/patientlist/patientlist");
  280. model.resetInstanceNode("/root/main/hsctinfo/patinfolist");
  281. submit("TRABO00802");
  282. cap_seldate.value = seldate;
  283. model.refresh();
  284. }
  285. /* @group : BMT 환자 이식스케줄관리
  286. * @ver : 2007.11.20
  287. * @by : 남수현
  288. * @type : function
  289. * @access : public
  290. * @desc : 일자별 이식예정환자에서 선택한 환자의 상세정보 SELECT
  291. * @param :
  292. */
  293. function fGetSelectPatientInfo(){
  294. var idx = grd_patientlist.row ;
  295. if(idx < 1) {
  296. messageBox("환자를 선택하세요","E999");
  297. return;
  298. }
  299. var vPid = model.getValue("/root/main/patientlist/patientlist[" + idx+ "]/pid");
  300. if( vPid == "" ){
  301. messageBox("환자를 선택하세요","E999");
  302. return ;
  303. }
  304. model.setValue("/root/send/srchinfo/pid" , vPid);
  305. model.setValue("/root/send/srchinfo/trnptschedd" , model.getValue("/root/main/patientlist/patientlist[" + idx +"]/trnptschedd"));
  306. model.setValue("/root/send/srchinfo/trnptdg" , model.getValue("/root/main/patientlist/patientlist[" + idx +"]/trnptdg"));
  307. submit("TRABO00803");
  308. model.setValue("/root/main/hsctinfo/patinfolist/updttrnptschedd", model.getValue("/root/main/hsctinfo/patinfolist/trnptschedd"));
  309. if(checkAuth("X") == true){
  310. btn_save.disabled = true;
  311. btn_update.disabled = false;
  312. btn_delete.disabled = false;
  313. }
  314. }
  315. function fGetPatientInfo(){
  316. model.setValue("/root/send/srchinfo/pid" , model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  317. model.setValue("/root/send/srchinfo/trnptschedd" , "");
  318. model.setValue("/root/send/srchinfo/trnptdg" , "");
  319. if ( submit("TRABO00803") ) {
  320. if ( model.getValue("/root/main/seldate") != "" && instance1.selectSingleNode("/root/main/hsctinfo/patinfolist/trnptschedd")) {
  321. model.setValue("/root/main/hsctinfo/patinfolist/trnptschedd", model.getValue("/root/main/seldate"));
  322. model.refresh();
  323. ipt_inschedd.value = ipt_trnptschedd.value.toDate().getAddDate(-9,"D").getDateFormat("YYYYMMDD") ;
  324. }
  325. if(checkAuth("X") == true){
  326. model.setValue("/root/send/srchinfo/pid" , model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  327. model.setValue("/root/send/srchinfo/trnptdg" , model.getValue("/root/main/hsctinfo/patinfolist/trnptdg"));
  328. submit("TRABO00805");
  329. if ( model.getValue("/root/main/patcheck/check/cnt") != "0" ) {
  330. btn_save.disabled = true;
  331. btn_update.disabled = true;
  332. btn_delete.disabled = true;
  333. messageBox("이식 예정일이 저장되어 있는 환자 입니다.", "E999", "");
  334. }else{
  335. btn_save.disabled = false;
  336. btn_update.disabled = true;
  337. btn_delete.disabled = true;
  338. }
  339. }
  340. }
  341. //예외 처리, 싱글노드에러
  342. if(!(instance1.selectSingleNode("/root/main/hsctinfo/patinfolist/pid"))){
  343. model.makeNode("/root/main/hsctinfo/patinfolist/pid");
  344. model.makeNode("/root/main/hsctinfo/patinfolist/hngnm");
  345. model.makeNode("/root/main/hsctinfo/patinfolist/sex");
  346. model.makeNode("/root/main/hsctinfo/patinfolist/age");
  347. model.makeNode("/root/main/hsctinfo/patinfolist/diagcd1");
  348. model.makeNode("/root/main/hsctinfo/patinfolist/deptcd");
  349. model.makeNode("/root/main/hsctinfo/patinfolist/trnptkind");
  350. model.makeNode("/root/main/hsctinfo/patinfolist/insuaprvdd");
  351. model.makeNode("/root/main/hsctinfo/patinfolist/inschedd");
  352. model.makeNode("/root/main/hsctinfo/patinfolist/trnptschedd");
  353. model.makeNode("/root/main/hsctinfo/patinfolist/trnptwardcd");
  354. model.makeNode("/root/main/hsctinfo/patinfolist/trnptroomcd");
  355. model.makeNode("/root/main/hsctinfo/patinfolist/trnptscherem");
  356. model.makeNode("/root/main/hsctinfo/patinfolist/trnptdg");
  357. model.makeNode("/root/main/hsctinfo/patinfolist/updtresn");
  358. model.makeNode("/root/main/hsctinfo/patinfolist/updttrnptschedd");
  359. model.makeNode("/root/main/hsctinfo/patinfolist/trnpttype");
  360. model.makeNode("/root/main/hsctinfo/patinfolist/flag");
  361. }
  362. }
  363. /* @group : BMT 환자 이식스케줄관리
  364. * @ver : 2007.11.20
  365. * @by : 남수현
  366. * @type : function
  367. * @access : public
  368. * @desc : 달력 초기화
  369. * @param :
  370. */
  371. function initCalendar() {
  372. var curDate = getCurrentDate().toDate();
  373. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  374. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  375. model.refresh();
  376. setCalendar(curDate);
  377. }
  378. /* @group : BMT 환자 이식스케줄관리
  379. * @ver : 2007.11.20
  380. * @by : 남수현
  381. * @type : function
  382. * @access : public
  383. * @desc : 달력 처리
  384. * @param :
  385. */
  386. function setCalendar(dateObj) {
  387. // 그리드 초기화
  388. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  389. dateObj.setDate(1);
  390. var startDay = dateObj.getDay();
  391. var days = dateObj.getMonthDay();
  392. var rows = Math.ceil( ( startDay + days ) / 7 );
  393. for( var i = 0; i < rows; i++ ) {
  394. grd_calendar.addRow(false);
  395. }
  396. grd_calendar.rebuild();
  397. var rowIndex = grd_calendar.fixedRows;
  398. var colIndex = startDay;
  399. for( var i = 1; i <= days; i++ ) {
  400. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  401. colIndex++;
  402. if( colIndex == 7 ) {
  403. colIndex = 0;
  404. rowIndex++;
  405. }
  406. }
  407. }
  408. /* @group : BMT 환자 이식스케줄관리
  409. * @ver : 2007.11.20
  410. * @by : 남수현
  411. * @type : function
  412. * @access : public
  413. * @desc : 달력 연/월 변경시 처리
  414. * @param : flagValue( -1, 1 ), flagMonthYear( 'M', 'Y')
  415. */
  416. function setCalendarDate(flagValue, flagMonthYear) {
  417. var isMonth = model.getValue("/root/hidden/calendar/month");
  418. var isYear = model.getValue("/root/hidden/calendar/year");
  419. var isDate = (isYear+isMonth+1).toDate().getAddDate(flagValue, flagMonthYear);
  420. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  421. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  422. model.refresh();
  423. setCalendar(isDate);
  424. fGetMonthRecipientList();
  425. }
  426. function setCellColor(gridObj) {
  427. var calRow = gridObj.row;
  428. var calCol = gridObj.col;
  429. if( calCol < 7 )
  430. calCol += 7;
  431. else
  432. calCol -= 7;
  433. gridObj.rebuildStyle();
  434. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  435. }
  436. /* @group : BMT 환자 이식스케줄관리
  437. * @ver : 2007.11.20
  438. * @by : 남수현
  439. * @type : function
  440. * @access : public
  441. * @desc : 이식스케쥴 삭제
  442. * @param :
  443. */
  444. function fDelTrnptSchedule(){
  445. model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/hsctinfo/patinfolist");
  446. model.setValue("/root/send/patientscheinfo/patientscheinfo/updtresn", model.getValue("/root/init/cmbinfo/updtlist/A0173[" + datagrid3.row + "]/cdid"));
  447. model.setValue("/root/send/patientscheinfo/patientscheinfo/flag", "D");
  448. submit("TXABO00801");
  449. model.refresh();
  450. var isMonth = model.getValue("/root/hidden/calendar/month");
  451. var isYear = model.getValue("/root/hidden/calendar/year");
  452. var isDate = (isYear+isMonth+1).toDate();
  453. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  454. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  455. model.refresh();
  456. setCalendar(isDate);
  457. fGetMonthRecipientList();
  458. grd_patientlist.deleteItem( grd_patientlist.row );
  459. }
  460. /* @group : BMT 환자 이식스케줄관리
  461. * @ver : 2007.11.20
  462. * @by : 남수현
  463. * @type : function
  464. * @access : public
  465. * @desc : 수정처리할 때
  466. * @param :
  467. */
  468. function fUpdateTrnptSchedule(){
  469. // 저장버튼 수정시 기본정보 (비교정보 )
  470. var pid = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/pid");
  471. var hngnm = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/hngnm");
  472. var sex = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/sex");
  473. var age = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/age");
  474. var diagcd1 = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/diagcd1");
  475. var deptcd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/deptcd");
  476. var trnptkind = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/trnptkind");
  477. var insuaprvdd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/insuaprvdd");
  478. var inschedd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/inschedd");
  479. var trnptschedd = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/trnptschedd");
  480. var trnptscherem = model.getValue(grd_patientlist.nodeset+"["+ grd_patientlist.row+"]/trnptscherem");
  481. // 입력할 정보 , 수정할 정보
  482. var pid_v = model.getValue("/root/main/hsctinfo/patinfolist/pid");
  483. var hngnm_v = model.getValue("/root/main/hsctinfo/patinfolist/hngnm");
  484. var sex_v = model.getValue("/root/main/hsctinfo/patinfolist/sex");
  485. var age_v = model.getValue("/root/main/hsctinfo/patinfolist/age");
  486. var diagcd1_v = model.getValue("/root/main/hsctinfo/patinfolist/diagcd1");
  487. var deptcd_v = model.getValue("/root/main/hsctinfo/patinfolist/deptcd");
  488. var trnptkind_v = model.getValue("/root/main/hsctinfo/patinfolist/trnptkind");
  489. var insuaprvdd_v = model.getValue("/root/main/hsctinfo/patinfolist/insuaprvdd");
  490. var inschedd_v = model.getValue("/root/main/hsctinfo/patinfolist/inschedd");
  491. var trnptschedd_v = model.getValue("/root/main/hsctinfo/patinfolist/trnptschedd");
  492. var trnptscherem_v = model.getValue("/root/main/hsctinfo/patinfolist/trnptscherem");
  493. var sRsrvMon = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
  494. if(pid_v =="" && hngnm_v =="") {
  495. messageBox("스케줄 항목의 등록번호 및 이름을","C001");
  496. return;
  497. }
  498. if(trnptschedd_v.length != 8) {
  499. messageBox("달력에 해당 날짜를","C002");
  500. return;
  501. }
  502. model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/hsctinfo/patinfolist");
  503. model.setValue("/root/send/patientscheinfo/patientscheinfo/updtresn", model.getValue("/root/init/cmbinfo/updtlist/A0173[" + datagrid3.row + "]/cdid"));
  504. model.setValue("/root/send/patientscheinfo/patientscheinfo/flag", "U");
  505. model.refresh();
  506. if( pid != pid_v || hngnm != hngnm_v) {
  507. if(pid == "" ){
  508. model.setValue("/root/send/patientscheinfo/patientscheinfo/flag" , "I");
  509. } else {
  510. messageBox("스케줄 선택 목록과 항목의 정보가","E004");
  511. return ;
  512. }
  513. } else {
  514. model.setValue("/root/send/patientscheinfo/patientscheinfo/flag" , "U");
  515. }
  516. if( messageBox("","Q002") !=6 ) {
  517. return;
  518. }
  519. submit("TXABO00801");
  520. model.refresh();
  521. var isMonth = model.getValue("/root/hidden/calendar/month");
  522. var isYear = model.getValue("/root/hidden/calendar/year");
  523. var isDate = (isYear+isMonth+1).toDate();//.getAddDate(1,'M');
  524. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  525. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  526. model.refresh();
  527. setCalendar(isDate);
  528. fGetMonthRecipientList();
  529. }
  530. /* @group : BMT 환자 이식스케줄관리
  531. * @ver : 2007.11.20
  532. * @by : 남수현
  533. * @type : function
  534. * @access : public
  535. * @desc : 달력에 월별 이식환자정보 표시
  536. * @param :
  537. */
  538. function fGetMonthRecipientList(){
  539. model.removeNodeset("/root/temp/templist");
  540. model.resetInstanceNode("/root/main/patientlist/patientlist");
  541. model.resetInstanceNode("/root/main/hsctinfo/patinfolist");
  542. var sRsrvMon = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") ;
  543. model.setValue("/root/send/srchinfo/trnptschedd" ,sRsrvMon+"%" );
  544. model.setValue("/root/send/data/trnptschedd" ,sRsrvMon+"%" );
  545. submit("TRABO00801");
  546. sNode = instance1.selectSingleNode("/root/temp/templist/calendarlist");
  547. if( sNode != null ){
  548. var dd = null ;
  549. var iCol = null;
  550. var iRow = null;
  551. var firstDay = (sRsrvMon+ "01").toDate().getDay();
  552. sNode = instance1.selectNodes("/root/temp/templist/calendarlist");
  553. for( var i = 1 ; i <= sNode.length ; i++){
  554. dd = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptdd" ) ;
  555. dd = dd.substring(6,8);
  556. iCol = ( sRsrvMon + dd).toDate().getDay();
  557. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
  558. grd_calendar.valueMatrix(iRow , iCol + 7) = "";
  559. }
  560. for( var i = 1 ; i <= sNode.length ; i++){
  561. dd = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptdd" ) ;
  562. dd = dd.substring(6,8);
  563. iCol = ( sRsrvMon + dd).toDate().getDay();
  564. iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
  565. if( grd_calendar.valueMatrix(iRow , iCol + 7) == ""){
  566. grd_calendar.valueMatrix(iRow , iCol + 7) = model.getValue("/root/temp/templist/calendarlist[" +i+ "]/hngnm") + " " +
  567. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/diagcd1") + " " +
  568. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnpttype") + " " +
  569. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptscherem");
  570. } else {
  571. grd_calendar.valueMatrix(iRow , iCol + 7) = grd_calendar.valueMatrix(iRow , iCol + 7) +"\n"+ model.getValue("/root/temp/templist/calendarlist[" +i+ "]/hngnm" ) + " " +
  572. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/diagcd1") + " " +
  573. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnpttype") + " " +
  574. model.getValue("/root/temp/templist/calendarlist[" +i+ "]/trnptscherem");
  575. }
  576. }
  577. }
  578. model.copyNode ("/root/main/monthschedulecnt/monthschedulecnt", "/root/temp/templist/monthschedulecnt");
  579. model.refresh();
  580. grd_calendar.rebuild();
  581. }
  582. /* @group : BMT 환자 이식스케줄관리
  583. * @ver : 2007.11.20
  584. * @by : 남수현
  585. * @type : function
  586. * @access : public
  587. * @desc : 사용자 이름으로 달력에 있는지 검색
  588. * @param :
  589. */
  590. function fKeyEvent() {
  591. MessageBox("기능구현중", "E999");
  592. }
  593. ]]>
  594. </script>
  595. </xhtml:head>
  596. <xhtml:body guideline="1,1195;2,13;2,40;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  597. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  598. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  599. <caption>출력</caption>
  600. <script type="javascript" ev:event="DOMActivate">
  601. <![CDATA[
  602. model.setValue("/root/send/srchinfo/printflag", "N"); //타기관 포함 여부 플래그
  603. submit("TRABO00804");
  604. var sRsrvMon = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month") ;
  605. // var firstDay = (sRsrvMon+ "01").toDate().getDay();
  606. sNode = instance1.selectNodes("/root/temp/templist/scheprintlist");
  607. for( var i = 1 ; i <= sNode.length ; i++){
  608. dd = model.getValue("/root/temp/templist/scheprintlist[" +i+ "]/trnptschedd" ) ;
  609. dd = dd.substring(6,8);
  610. iCol = ( sRsrvMon + dd).toDate().getDay();
  611. if(iCol == '1'){
  612. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","월");
  613. }else if(iCol == '2'){
  614. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","화");
  615. }else if(iCol == '3'){
  616. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","수");
  617. }else if(iCol == '4'){
  618. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","목");
  619. }else if(iCol == '5'){
  620. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","금");
  621. }else if(iCol == '6'){
  622. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","토");
  623. }else if(iCol == '7'){
  624. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","일");
  625. }else {
  626. model.setValue("/root/temp/templist/scheprintlist[" +i+ "]/dayofweek","-");
  627. }
  628. }
  629. exeReportPreview("RPABO00802", "XMLSTR", "/root/temp/templist/calendarlist");
  630. ]]>
  631. </script>
  632. </button>
  633. <button id="btn_prt2" class="btn6_letter8" style="left:58px; top:5px; width:128px; height:22px; ">
  634. <caption>타기관 포함 출력</caption>
  635. <script type="javascript" ev:event="DOMActivate">
  636. <![CDATA[
  637. model.setValue("/root/send/srchinfo/printflag", "Y"); //타기관 포함 여부 플래그
  638. submit("TRABO00804");
  639. exeReportPreview("RPABO00802", "XMLSTR", "/root/temp/templist/calendarlist");
  640. ]]>
  641. </script>
  642. </button>
  643. <button id="btn_save" class="btn4_letter2" disabled="true" style="left:1078px; top:5px; width:56px; height:22px; ">
  644. <caption>저장</caption>
  645. <script type="javascript" ev:event="DOMActivate">
  646. <![CDATA[
  647. if ( model.getValue("/root/main/hsctinfo/patinfolist/pid") == "" ) {
  648. return false;
  649. }
  650. if ( model.getValue( "/root/main/hsctinfo/patinfolist/trnptschedd") == "" ) {
  651. messageBox("이식예정일은 반드시 선택해야 합니다", "E999", "");
  652. return false;
  653. }
  654. model.setValue("/root/send/flag" , "I");
  655. model.copyNode("/root/send/patientscheinfo/patientscheinfo", "/root/main/hsctinfo/patinfolist");
  656. submit("TXABO00801");
  657. fGetMonthRecipientList();
  658. ]]>
  659. </script>
  660. </button>
  661. <button id="button3" class="btn3_letter9" style="left:271px; top:5px; width:140px; height:22px; ">
  662. <caption>BMT스케쥴history</caption>
  663. <script type="javascript" ev:event="DOMActivate">
  664. <![CDATA[
  665. modal("SMABO01000 ","","","","","","");
  666. ]]>
  667. </script>
  668. </button>
  669. <button id="button4" class="btn6_letter4" style="left:188px; top:5px; width:80px; height:22px; ">
  670. <caption>달력출력</caption>
  671. <script type="javascript" ev:event="DOMActivate">
  672. <![CDATA[
  673. exeReportPreview("RPABO00801", "XMLSTR", "/root/hidden/calendar");
  674. ]]>
  675. </script>
  676. </button>
  677. <button id="btn_update" class="btn4_letter2" disabled="true" style="left:1018px; top:5px; width:56px; height:22px; ">
  678. <caption>수정</caption>
  679. <script type="javascript" ev:event="onclick">
  680. <![CDATA[
  681. if ( model.getValue("/root/main/hsctinfo/patinfolist/pid") == "" ) {
  682. return false;
  683. }
  684. model.setValue("/root/send/flag", "U");
  685. switch1.visible = true;
  686. ]]>
  687. </script>
  688. </button>
  689. <button id="btn_delete" class="btn4_letter2" disabled="true" style="left:1137px; top:5px; width:56px; height:22px; ">
  690. <caption>삭제</caption>
  691. <script type="javascript" ev:event="onclick">
  692. <![CDATA[
  693. model.setValue("/root/send/flag", "D");
  694. switch1.visible = true;
  695. ]]>
  696. </script>
  697. </button>
  698. </group>
  699. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  700. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:100px; height:13px; ">월별 스케쥴</caption>
  701. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:885px; y2:70px; "/>
  702. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  703. <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; "/>
  704. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:64px; height:17px; ">UNIT :</caption>
  705. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  706. <caption id="caption3" class="search_name" style="left:197px; top:9px; width:60px; height:17px; ">병실 :</caption>
  707. <select1 id="combo1" ref="/root/send/data/trnptroomcd" class="combo_search" appearance="minimal" style="left:260px; top:8px; width:100px; height:19px; ">
  708. <choices>
  709. <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
  710. <label ref="cdnm"/>
  711. <value ref="cdid"/>
  712. </itemset>
  713. </choices>
  714. </select1>
  715. <select1 id="combo3" ref="/root/send/data/trnptwardcd" class="combo_search" appearance="minimal" style="left:82px; top:8px; width:100px; height:19px; ">
  716. <choices>
  717. <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
  718. <label ref="cdnm"/>
  719. <value ref="cdid"/>
  720. </itemset>
  721. </choices>
  722. <script type="javascript" ev:event="xforms-select">
  723. <![CDATA[
  724. // submit("TRABO00104");
  725. // model.refresh();
  726. ]]>
  727. </script>
  728. </select1>
  729. <caption id="caption5" class="search_name" style="left:375px; top:9px; width:73px; height:17px; ">주치의 :</caption>
  730. <select1 id="combo4" ref="/root/send/data/atdoctid" class="combo_search" appearance="minimal" style="left:451px; top:8px; width:100px; height:19px; ">
  731. <choices>
  732. <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
  733. <label ref="cdnm"/>
  734. <value ref="cdid"/>
  735. </itemset>
  736. </choices>
  737. </select1>
  738. <select1 id="combo6" ref="/root/send/data/deptcd" class="combo_search" appearance="minimal" style="left:642px; top:8px; width:150px; height:19px; ">
  739. <choices>
  740. <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
  741. <label ref="cdnm"/>
  742. <value ref="cdid"/>
  743. </itemset>
  744. </choices>
  745. </select1>
  746. <caption id="caption19" class="search_name" style="left:566px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  747. <caption id="caption23" class="search_name" visibility="hidden" style="left:807px; top:9px; width:73px; height:17px; ">환자명 :</caption>
  748. <input id="ipt_delivepsnid" ref="/root/main/userinfo/delivepsn/delivepsnid" class="input_search" visibility="hidden" style="left:883px; top:8px; width:80px; height:19px; ">
  749. <script type="javascript" ev:event="onkeypress">
  750. <![CDATA[
  751. fKeyEvent();
  752. ]]>
  753. </script>
  754. </input>
  755. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  756. <caption>조회</caption>
  757. <script type="javascript" ev:event="DOMActivate">
  758. <![CDATA[
  759. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  760. initCalendar();
  761. fGetMonthRecipientList();
  762. ]]>
  763. </script>
  764. </button>
  765. </group>
  766. <input id="input21" ref="/root/main/hsctinfo/patinfolist/hngnm" class="input_default" disabled="true" style="left:1019px; top:245px; width:86px; height:19px; "/>
  767. <caption id="cap_seldate" ref="/root/main/seldate" class="tit_2" format="yyyy-mm-dd" style="left:910px; top:55px; width:130px; height:13px; "/>
  768. <line id="line15" class="line_1" style="x1:905px; y1:70px; x2:1194px; y2:70px; "/>
  769. <caption id="caption4" class="tit_2" style="left:910px; top:200px; width:100px; height:13px; ">스케쥴 관리</caption>
  770. <line id="line2" class="line_1" style="left:907px; x1:905px; y1:215px; x2:1194px; y2:215px; "/>
  771. <input id="input2" ref="/root/main/hsctinfo/patinfolist/pid" class="input_essential" inputtype="button" style="left:1019px; top:221px; width:174px; height:19px; ">
  772. <script type="javascript" ev:event="onbuttonclick">
  773. <![CDATA[
  774. if ( abofGetBmtPatientSearch("/root/main/hsctinfo/patinfolist", "/root/temp/bmtpatientinfo") ) {
  775. model.makeNode("/root/main/hsctinfo/patinfolist/deptcd");
  776. model.makeNode("/root/main/hsctinfo/patinfolist/trnptwardcd");
  777. model.makeNode("/root/main/hsctinfo/patinfolist/trnptroomcd");
  778. model.makeNode("/root/main/hsctinfo/patinfolist/inschedd" );
  779. model.makeNode("/root/main/hsctinfo/patinfolist/trnptschedd");
  780. model.makeNode("/root/main/hsctinfo/patinfolist/trnptscherem");
  781. model.setValue("/root/main/hsctinfo/patinfolist/deptcd" , "");
  782. model.setValue("/root/main/hsctinfo/patinfolist/trnptwardcd", "");
  783. model.setValue("/root/main/hsctinfo/patinfolist/trnptroomcd", "");
  784. model.setValue("/root/main/hsctinfo/patinfolist/inschedd" , "");
  785. model.setValue("/root/main/hsctinfo/patinfolist/trnptschedd", "");
  786. model.setValue("/root/main/hsctinfo/patinfolist/trnptscherem", "");
  787. if ( model.getValue("/root/main/seldate") != "" ) {
  788. model.setValue("/root/main/hsctinfo/patinfolist/trnptschedd", model.getValue("/root/main/seldate"));
  789. model.refresh();
  790. ipt_inschedd.value = ipt_trnptschedd.value.toDate().getAddDate(-9,"D").getDateFormat("YYYYMMDD") ;
  791. }
  792. if(checkAuth("X") == true){
  793. model.setValue("/root/send/srchinfo/pid" , model.getValue("/root/main/hsctinfo/patinfolist/pid"));
  794. model.setValue("/root/send/srchinfo/trnptdg" , model.getValue("/root/main/hsctinfo/patinfolist/trnptdg"));
  795. submit("TRABO00805");
  796. if ( model.getValue("/root/main/patcheck/check/cnt") != "0" ) {
  797. btn_save.disabled = true;
  798. btn_update.disabled = true;
  799. btn_delete.disabled = true;
  800. messageBox("이식 예정일이 저장되어 있는 환자 입니다.", "E999", "");
  801. }else{
  802. btn_save.disabled = false;
  803. btn_update.disabled = true;
  804. btn_delete.disabled = true;
  805. }
  806. }
  807. model.refresh();
  808. }
  809. ]]>
  810. </script>
  811. <script type="javascript" ev:event="onkeyup">
  812. <![CDATA[
  813. inputEnterKey("btn_search2", "DOMActivate");
  814. ]]>
  815. </script>
  816. </input>
  817. <select1 id="combo2" ref="/root/main/hsctinfo/patinfolist/trnptwardcd" class="combo_default" appearance="minimal" style="left:1019px; top:413px; width:174px; height:19px; ">
  818. <choices>
  819. <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
  820. <label ref="cdnm"/>
  821. <value ref="cdid"/>
  822. </itemset>
  823. </choices>
  824. </select1>
  825. <input id="input10" ref="/root/main/hsctinfo/patinfolist/age" class="input_default" disabled="true" style="left:1169px; top:245px; width:25px; height:19px; "/>
  826. <caption id="caption15" class="tit_2" style="left:910px; top:529px; width:233px; height:13px; ">BMT</caption>
  827. <line id="line3" class="line_1" style="left:907px; x1:905px; y1:544px; x2:1194px; y2:544px; "/>
  828. <datagrid id="datagrid2" nodeset="/root/temp/templist/monthschedulecnt" caption="이식종류^인원수: 명(소아)" colsep="^" colwidth="120, 120" dataheight="23" defaultrows="5" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:905px; top:549px; width:288px; height:168px; text-align:center; ">
  829. <col ref="trnptkind" type="output"/>
  830. <col ref="cnt" type="output"/>
  831. </datagrid>
  832. <line id="line4" class="line_2" style="left:907px; x1:905px; y1:242px; x2:1194px; y2:242px; "/>
  833. <line id="line5" class="line_2" style="left:907px; x1:905px; y1:266px; x2:1194px; y2:266px; "/>
  834. <line id="line6" class="line_2" style="left:907px; x1:905px; y1:290px; x2:1194px; y2:290px; "/>
  835. <line id="line7" class="line_2" style="left:907px; x1:905px; y1:314px; x2:1194px; y2:314px; "/>
  836. <line id="line8" class="line_2" style="left:907px; x1:905px; y1:338px; x2:1194px; y2:338px; "/>
  837. <line id="line9" class="line_2" style="left:907px; x1:905px; y1:362px; x2:1194px; y2:362px; "/>
  838. <line id="line10" class="line_2" style="left:907px; x1:905px; y1:386px; x2:1194px; y2:386px; "/>
  839. <line id="line11" class="line_2" style="left:907px; x1:905px; y1:410px; x2:1194px; y2:410px; "/>
  840. <textarea id="textarea1" ref="/root/main/hsctinfo/patinfolist/trnptscherem" style="left:1019px; top:461px; width:174px; height:56px; "/>
  841. <caption id="caption10" class="cell_1" style="left:905px; top:316px; width:111px; height:23px; text-align:left; vertical-align:middle; ">이식종류</caption>
  842. <caption id="caption11" class="cell_1" style="left:905px; top:364px; width:111px; height:23px; text-align:left; vertical-align:middle; ">입원예정일</caption>
  843. <caption id="caption12" class="cell_1" style="left:905px; top:340px; width:111px; height:23px; text-align:left; vertical-align:middle; ">보험승인일자</caption>
  844. <caption id="caption13" class="cell_1" style="left:905px; top:388px; width:111px; height:23px; text-align:left; vertical-align:middle; ">이식예정일</caption>
  845. <caption id="caption14" class="cell_1" style="left:905px; top:412px; width:111px; height:23px; text-align:left; vertical-align:middle; ">UNIT</caption>
  846. <caption id="caption16" class="cell_1" style="left:905px; top:460px; width:111px; height:58px; text-align:left; vertical-align:middle; ">비고</caption>
  847. <caption id="caption7" class="cell_1" style="left:905px; top:220px; width:111px; height:23px; text-align:left; vertical-align:middle; ">등록번호</caption>
  848. <caption id="caption8" class="cell_1" style="left:905px; top:268px; width:111px; height:23px; text-align:left; vertical-align:middle; ">진단명</caption>
  849. <caption id="caption9" class="cell_1" style="left:905px; top:292px; width:111px; height:23px; text-align:left; vertical-align:middle; ">진료과</caption>
  850. <caption id="caption18" class="cell_1" style="left:905px; top:244px; width:111px; height:23px; text-align:left; vertical-align:middle; ">환자명</caption>
  851. <line id="line12" class="line_3" style="left:907px; x1:905px; y1:519px; x2:1194px; y2:519px; "/>
  852. <line id="line14" class="line_2" style="left:907px; x1:905px; y1:434px; x2:1194px; y2:434px; "/>
  853. <select1 id="combo5" ref="/root/main/hsctinfo/patinfolist/trnptroomcd" class="combo_default" appearance="minimal" style="left:1019px; top:437px; width:174px; height:19px; ">
  854. <choices>
  855. <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
  856. <label ref="cdnm"/>
  857. <value ref="cdid"/>
  858. </itemset>
  859. </choices>
  860. </select1>
  861. <caption id="caption17" class="cell_1" style="left:905px; top:436px; width:111px; height:23px; text-align:left; vertical-align:middle; ">병실</caption>
  862. <line id="line16" class="line_2" style="left:907px; x1:905px; y1:458px; x2:1194px; y2:458px; "/>
  863. <group id="grp_calendar" style="left:0px; top:76px; width:885px; height:40px; ">
  864. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:885px; height:40px; "/>
  865. <button id="btn_preyear" class="icon_pre_year" style="left:340px; top:12px; width:16px; height:16px; text-align:center; ">
  866. <caption/>
  867. <script type="javascript" ev:event="DOMActivate">
  868. <![CDATA[
  869. setCalendarDate(-1, 'Y');
  870. ]]>
  871. </script>
  872. </button>
  873. <button id="btn_nextyear" class="icon_next_year" style="left:515px; top:12px; width:16px; height:16px; text-align:center; ">
  874. <caption/>
  875. <script type="javascript" ev:event="DOMActivate">
  876. <![CDATA[
  877. setCalendarDate(1, 'Y');
  878. ]]>
  879. </script>
  880. </button>
  881. <button id="btn_premonth" class="icon_pre_month" style="left:359px; top:12px; width:16px; height:16px; text-align:center; ">
  882. <caption/>
  883. <script type="javascript" ev:event="DOMActivate">
  884. <![CDATA[
  885. setCalendarDate(-1, 'M');
  886. ]]>
  887. </script>
  888. </button>
  889. <button id="btn_nextmonth" class="icon_next_month" style="left:496px; top:12px; width:16px; height:16px; text-align:center; ">
  890. <caption/>
  891. <script type="javascript" ev:event="DOMActivate">
  892. <![CDATA[
  893. setCalendarDate(1, 'M');
  894. ]]>
  895. </script>
  896. </button>
  897. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:385px; top:9px; width:30px; height:19px; text-align:center; "/>
  898. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:435px; top:9px; width:30px; height:19px; text-align:center; "/>
  899. <caption id="caption20" class="calendar_output" style="left:415px; top:9px; width:20px; height:19px; text-align:center; ">년</caption>
  900. <caption id="caption21" class="calendar_output" style="left:465px; top:9px; width:20px; height:19px; text-align:center; ">월</caption>
  901. </group>
  902. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="126, 126, 126, 126, 126, 126, 126" dataheight="48" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:117px; width:885px; height:600px; text-align:left; ">
  903. <row>
  904. <col class="color_sun" ref="sun" style="background-color:#E3E3F3; border-bottom-width:0px; "/>
  905. <col ref="mon" style="border-bottom-width:0px; "/>
  906. <col ref="tue" style="border-bottom-width:0px; "/>
  907. <col ref="wed" style="border-bottom-width:0px; "/>
  908. <col ref="thu" style="border-bottom-width:0px; "/>
  909. <col ref="fri" style="border-bottom-width:0px; "/>
  910. <col class="color_sat" ref="sat" style="background-color:#E3E3F3; border-bottom-width:0px; "/>
  911. </row>
  912. <row>
  913. <col ref="sun_memo" type="output" style="text-align:left; border-top-width:0px; "/>
  914. <col ref="mon_memo" type="output" style="text-align:left; border-top-width:0px; "/>
  915. <col ref="tue_memo" type="output" style="text-align:left; border-top-width:0px; "/>
  916. <col ref="wed_memo" type="output" style="text-align:left; border-top-width:0px; "/>
  917. <col ref="thu_memo" type="output" style="text-align:left; border-top-width:0px; "/>
  918. <col ref="fri_memo" type="output" style="text-align:left; border-top-width:0px; "/>
  919. <col ref="sat_memo" typehi="output" style="text-align:left; border-top-width:0px; "/>
  920. </row>
  921. <script type="javascript" ev:event="onclick">
  922. <![CDATA[
  923. if(checkAuth("X") == true){
  924. btn_save.disabled = true;
  925. btn_delete.disabled = true;
  926. btn_update.disabled = true;
  927. }
  928. var seldate = fGetCalendarDate(grd_calendar);
  929. // 날짜가 없는 빈 곳을 클릭하면 처리하지 않는다
  930. if ( seldate.length == 7 ) {
  931. return
  932. }
  933. setCellColor(grd_calendar);
  934. fGetPatientList();
  935. if ( grd_patientlist.rows > 1){
  936. if ( grd_calendar.row <= 4) {
  937. } else if ( grd_calendar.row > 4 ){
  938. grp_patlist.attribute ( "top" ) = (grd_calendar.row +1) * 96+46 - 205;
  939. }
  940. var grdcol = grd_calendar.col ;
  941. grp_patlist.visible=true;
  942. } else {
  943. grp_patlist.visible=false;
  944. }
  945. ]]>
  946. </script>
  947. <script type="javascript" ev:event="onrowchanged">
  948. <![CDATA[
  949. setCellColor(grd_calendar);
  950. ]]>
  951. </script>
  952. <script type="javascript" ev:event="oncolchanged">
  953. <![CDATA[
  954. setCellColor(grd_calendar);
  955. ]]>
  956. </script>
  957. <script type="javascript" ev:event="DOMFocusOut">
  958. <![CDATA[
  959. grp_patlist.visible=false;
  960. ]]>
  961. </script>
  962. </multilinegrid>
  963. <select1 id="combo7" ref="/root/main/hsctinfo/patinfolist/diagcd1" class="combo_default" disabled="true" appearance="minimal" style="left:1019px; top:269px; width:174px; height:19px; ">
  964. <choices>
  965. <itemset nodeset="/root/init/cmbinfo/lrglist/item">
  966. <label ref="hsctlrgnm"/>
  967. <value ref="hsctlrgcd"/>
  968. </itemset>
  969. </choices>
  970. </select1>
  971. <select1 id="combo8" ref="/root/main/hsctinfo/patinfolist/deptcd" class="combo_default" disabled="false" appearance="minimal" style="left:1019px; top:293px; width:174px; height:19px; ">
  972. <choices>
  973. <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
  974. <label ref="cdnm"/>
  975. <value ref="cdid"/>
  976. </itemset>
  977. </choices>
  978. </select1>
  979. <select1 id="combo9" ref="/root/main/hsctinfo/patinfolist/trnptkind" class="combo_default" disabled="true" appearance="minimal" style="left:1019px; top:317px; width:174px; height:19px; ">
  980. <choices>
  981. <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
  982. <label ref="cdnm"/>
  983. <value ref="cdid"/>
  984. </itemset>
  985. </choices>
  986. </select1>
  987. <datagrid id="grd_patientlist" nodeset="/root/main/patientlist/patientlist" caption="등록번호^환자명" colsep="^" colwidth="120, 120" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:905px; top:75px; width:289px; height:115px; text-align:center; ">
  988. <col ref="pid" type="output"/>
  989. <col ref="hngnm" type="output"/>
  990. <script type="javascript" ev:event="onclick">
  991. <![CDATA[
  992. fGetSelectPatientInfo();
  993. ]]>
  994. </script>
  995. </datagrid>
  996. <caption id="caption22" style="left:1004px; top:52px; width:40px; height:20px; ">스케쥴</caption>
  997. <switch id="switch1" visibility="hidden" style="left:630px; top:535px; width:230px; height:170px; ">
  998. <case id="case1" selected="true">
  999. <datagrid id="datagrid3" nodeset="/root/init/cmbinfo/updtlist/A0173" class="datagrid1" caption="No^변경사유" colsep="^" colwidth="40, 150" dataheight="7" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:0px; top:0px; width:220px; height:163px; ">
  1000. <col ref="cdid" style="text-align:center; "/>
  1001. <col ref="cdnm"/>
  1002. <script type="javascript" ev:event="ondblclick">
  1003. <![CDATA[
  1004. if ( model.getValue("/root/send/flag") == "U" ) {
  1005. fUpdateTrnptSchedule();
  1006. } else {
  1007. fDelTrnptSchedule();
  1008. fGetMonthRecipientList();
  1009. }
  1010. switch1.visible=false;
  1011. ]]>
  1012. </script>
  1013. </datagrid>
  1014. </case>
  1015. <case id="case2"/>
  1016. </switch>
  1017. <group id="grp_patlist" visibility="hidden" style="left:0px; top:580px; width:1092px; height:155px; border-style:solid; ">
  1018. <datagrid id="datagrid1" nodeset="/root/main/patientlist/patientlist" caption="등록번호^환자명^이식종류^진단명^진료과^보험승인일자^입원예정일^이식예정일^UNIT^병실^비고^보험여부^이식예정일^입원예정일^UNIT^병실^비고" colsep="^" colwidth="79, 52, 63, 64, 105, 84, 72, 69, 89, 91, 277" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:1px; top:1px; width:1088px; height:148px; text-align:center; ">
  1019. <col ref="pid" type="output"/>
  1020. <col ref="hngnm" type="output"/>
  1021. <col ref="trnptkind" type="combo">
  1022. <choices>
  1023. <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
  1024. <label ref="cdnm"/>
  1025. <value ref="cdid"/>
  1026. </itemset>
  1027. </choices>
  1028. </col>
  1029. <col ref="diagcd1" type="combo">
  1030. <choices>
  1031. <itemset nodeset="/root/init/cmbinfo/lrglist/item">
  1032. <label ref="hsctlrgnm"/>
  1033. <value ref="hsctlrgcd"/>
  1034. </itemset>
  1035. </choices>
  1036. </col>
  1037. <col ref="deptcd" type="combo">
  1038. <choices>
  1039. <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
  1040. <label ref="cdnm"/>
  1041. <value ref="cdid"/>
  1042. </itemset>
  1043. </choices>
  1044. </col>
  1045. <col ref="insuaprvdd"/>
  1046. <col ref="inschedd"/>
  1047. <col ref="trnptschedd"/>
  1048. <col ref="trnptwardcd" type="combo">
  1049. <choices>
  1050. <itemset nodeset="/root/init/cmbinfo/trnptwardcd/A0479">
  1051. <label ref="cdnm"/>
  1052. <value ref="cdid"/>
  1053. </itemset>
  1054. </choices>
  1055. </col>
  1056. <col ref="trnptroomcd" type="combo">
  1057. <choices>
  1058. <itemset nodeset="/root/init/cmbinfo/trnptroomcd/A0480">
  1059. <label ref="cdnm"/>
  1060. <value ref="cdid"/>
  1061. </itemset>
  1062. </choices>
  1063. </col>
  1064. <col ref="trnptscherem"/>
  1065. <script type="javascript" ev:event="ondblclick">
  1066. <![CDATA[
  1067. fGetSelectPatientInfo();
  1068. ]]>
  1069. </script>
  1070. </datagrid>
  1071. </group>
  1072. <input id="input1" ref="/root/main/hsctinfo/patinfolist/insuaprvdd" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:1019px; top:341px; width:174px; height:19px; "/>
  1073. <select1 id="combo10" ref="/root/main/hsctinfo/patinfolist/sex" class="combo_default" disabled="true" appearance="minimal" style="left:1108px; top:245px; width:58px; height:19px; ">
  1074. <choices>
  1075. <itemset nodeset="/root/init/cmbinfo/sex/P0313">
  1076. <label ref="cdnm"/>
  1077. <value ref="cdid"/>
  1078. </itemset>
  1079. </choices>
  1080. </select1>
  1081. <input id="ipt_inschedd" ref="/root/main/hsctinfo/patinfolist/inschedd" class="input_default" inputtype="date" style="left:1019px; top:365px; width:174px; height:19px; "/>
  1082. <input id="ipt_trnptschedd" ref="/root/main/hsctinfo/patinfolist/trnptschedd" class="input_default" inputtype="date" style="left:1019px; top:389px; width:174px; height:19px; ">
  1083. <script type="javascript" ev:event="xforms-value-changed">
  1084. <![CDATA[
  1085. ipt_inschedd.value = ipt_trnptschedd.value.toDate().getAddDate(-9,"D").getDateFormat("YYYYMMDD") ;
  1086. ]]>
  1087. </script>
  1088. </input>
  1089. <button id="btn_search2" class="btn1_letter2" visibility="hidden" style="left:1115px; top:190px; width:56px; height:22px; ">
  1090. <caption>조회</caption>
  1091. <script type="javascript" ev:event="DOMActivate">
  1092. <![CDATA[
  1093. fGetPatientInfo();
  1094. ]]>
  1095. </script>
  1096. </button>
  1097. </group>
  1098. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1099. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">스케줄관리</caption>
  1100. </group>
  1101. </xhtml:body>
  1102. </xhtml:html>