SMAEA02700_환자별COMMENT관리.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <baseinfo>
  11. <initexecbaseflag/>
  12. <initioexamflag/>
  13. <initrsrvplceflag/>
  14. </baseinfo>
  15. <cmb_info>
  16. <initexecroom>
  17. <excuroomcdid/>
  18. <excuroomcdnm/>
  19. </initexecroom>
  20. </cmb_info>
  21. </init>
  22. <send>
  23. <globalinstance>
  24. <instance1/>
  25. </globalinstance>
  26. <data>
  27. <memodesc/>
  28. <memodd/>
  29. <excuroomcd/>
  30. <basedeptcd/>
  31. <pid/>
  32. <patnm/>
  33. <showstartdd/>
  34. <showenddd/>
  35. </data>
  36. <hiddenFlag/>
  37. <search>
  38. <searchSDate/>
  39. <searchEDate/>
  40. <searchPid/>
  41. <searchRoom/>
  42. <searchDate/>
  43. <basedeptcd/>
  44. </search>
  45. </send>
  46. <main>
  47. <patinfo>
  48. <patinfolist/>
  49. </patinfo>
  50. <mm>
  51. <grdAeahMemoList>
  52. <excuroomcd/>
  53. <excuroomnm/>
  54. <memorgstdd/>
  55. <pid/>
  56. <pnm/>
  57. <memodesc/>
  58. <showstartdd/>
  59. <showenddd/>
  60. <memodd/>
  61. </grdAeahMemoList>
  62. </mm>
  63. <rtn>
  64. <count/>
  65. </rtn>
  66. </main>
  67. <hidden>
  68. <calendar>
  69. <year/>
  70. <month/>
  71. <weeklist>
  72. <list>
  73. <sun/>
  74. <mon/>
  75. <tue/>
  76. <wed/>
  77. <thu/>
  78. <fri/>
  79. <sat/>
  80. <sun_memo/>
  81. <mon_memo/>
  82. <tue_memo/>
  83. <wed_memo/>
  84. <thu_memo/>
  85. <fri_memo/>
  86. <sat_memo/>
  87. </list>
  88. </weeklist>
  89. </calendar>
  90. <memodd/>
  91. </hidden>
  92. </root>
  93. </instance>
  94. <!--화면 로딩시 이벤트 시작-->
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. aezfSetSuppDeptcd();
  98. var _sc = model.getValue("/root/send/globalinstance/instance1");
  99. _sc = _sc.substring(0, 4);
  100. iptSDate.value = getCurrentDate();
  101. iptEDate.value = getCurrentDate();
  102. var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
  103. if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
  104. model.setValue("/root/send/search/searchPid", gv_pid);
  105. }
  106. switch (_sc) {
  107. // 방사선종양학과
  108. case "2170":
  109. cmbExcuRoom.disabled = true;
  110. cmbExcuRoom2.disabled = true;
  111. break;
  112. // 방종을 제외한 나머지 학과
  113. default:
  114. submit("TRAEA01301"); // 검사치료실 가져오기
  115. showstartdd.disabled = true;
  116. showenddd.disabled = true;
  117. break;
  118. }
  119. initCalendar(); //달력display
  120. model.refresh();
  121. ]]>
  122. </script>
  123. <!--검사치료실 -->
  124. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  125. <!--메모내역조회-->
  126. <submission id="TRAEA02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/main/mm"/>
  127. <submission id="TXAEA02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/rtn"/>
  128. </model>
  129. <!--공통으로 사용되는 스크립트 추가 dateHelper-->
  130. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  133. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  135. <!--session 정보를 가져오는 스크립트 반드시 포함시켜야 함(검사실에 한정).-->
  136. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  137. <!--Body에서 사용되는 Script-->
  138. <script type="javascript">
  139. <![CDATA[/* @group : 환자코멘트 관리(기능검사)
  140. * @ver : 2007.6.22
  141. * @by : 서영희
  142. * @-----------------------------------
  143. * @type : function
  144. * @access : public
  145. * @desc : 환자 코멘트 조회를 위한 입력 Validation Check
  146. */
  147. function funcInputDataCheck(chk)
  148. {
  149. //날짜체크
  150. var Msg ="";
  151. var sDate =model.getValue("/root/send/search/searchSDate"); //시작날짜
  152. var eDate =model.getValue("/root/send/search/searchEDate"); //종료날짜
  153. var room =model.getValue("/root/send/search/searchRoom"); //검사실코드
  154. var Id =model.getValue("/root/send/search/searchPid"); //등록환자
  155. model.setValue("/root/send/search/basedeptcd",model.getValue("/root/send/globalinstance/instance1"));
  156. if(chk =='c'){
  157. var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
  158. if(yyyymmdd.length == 8){
  159. model.setValue("/root/send/search/searchDate",yyyymmdd);
  160. }
  161. }
  162. else{
  163. model.setValue("/root/send/search/searchDate","");
  164. }
  165. if(yyyymmdd=="" && sDate=="" && eDate=="" && room =="" && Id=="")
  166. {
  167. messageBox("[조회필수항목]일자/검사.치료실 또는 등록번호를 입력하십시오.","I999");
  168. return true;
  169. }
  170. else
  171. {
  172. gab =getDateInterval(sDate, eDate);
  173. if(gab<0)
  174. {
  175. messageBox("[시작일자선택]조회기간을 확인하십시오.","I999");
  176. return true;
  177. }
  178. else
  179. {
  180. submit("TRAEA02701"); // 검사메모내역 가져오기
  181. }
  182. }
  183. }
  184. function initCalendar() {
  185. var curDate = getCurrentDate().toDate();
  186. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  187. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  188. model.refresh();
  189. setCalendar(curDate);
  190. }
  191. function setCalendar(dateObj) {
  192. // 그리드 초기화
  193. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  194. //grd_calendar.rebuild()
  195. dateObj.setDate(1);
  196. var startDay = dateObj.getDay();
  197. var days = dateObj.getMonthDay();
  198. var rows = Math.ceil( ( startDay + days ) / 7 );
  199. for( var i = 0; i < rows; i++ )
  200. grd_calendar.addRow(false);
  201. grd_calendar.rebuild();
  202. var rowIndex = grd_calendar.fixedRows;
  203. var colIndex = startDay;
  204. for( var i = 1; i <= days; i++ ) {
  205. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  206. colIndex++;
  207. if( colIndex == 7 ) {
  208. colIndex = 0;
  209. rowIndex++;
  210. }
  211. }
  212. }
  213. function setCellColor(gridObj) {
  214. var calRow = gridObj.row;
  215. var calCol = gridObj.col;
  216. if( calCol < 7 )
  217. calCol += 7;
  218. else
  219. calCol -= 7;
  220. gridObj.rebuildStyle();
  221. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  222. }
  223. function ChangeDateFormat() {
  224. var _frdt = model.getValue("/root/main/mm/grdAeahMemoList/showstartdd");
  225. var _todt = model.getValue("/root/main/mm/grdAeahMemoList/showenddd");
  226. var _date = "";
  227. // 메모내역-메모일자 란에 메모 유효기간을 출력 (방사선 종양)
  228. if ( _frdt != "" && _todt != "" ) {
  229. for (var i = 1; i <parseInt(grdAeahMemoList.rows); i++) {
  230. _frdt = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/showstartdd");
  231. _todt = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/showenddd");
  232. //2009-10-26 메모유효기간 등록안되는 경우가 있음 (1899/11/30 으로 조회되는경우가 있음)-메모등록일자 조회되도록처리
  233. if (_frdt != "" ) {
  234. _frdt = _frdt.toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD");
  235. _todt = _todt.toDate("YYYYMMDD").getDateFormat("YYYY/MM/DD");
  236. _date = _frdt + " ~ " + _todt;
  237. model.setValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd", _date);
  238. }else{
  239. _date = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd");
  240. _date = _date.toDate("YYYYMMDD").getDateFormat("YYYY-MM-DD");
  241. model.setValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd", _date);
  242. }
  243. }
  244. }
  245. // 메모내역-메모일자 란에 메모 등록일자를 출력 (기능검사)
  246. else {
  247. for (var i = 1; i <parseInt(grdAeahMemoList.rows); i++) {
  248. _date = model.getValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd");
  249. _date = _date.toDate("YYYYMMDD").getDateFormat("YYYY-MM-DD");
  250. model.setValue("/root/main/mm/grdAeahMemoList[" + i + "]/memorgstdd", _date);
  251. }
  252. }
  253. }
  254. ]]>
  255. </script>
  256. </xhtml:head>
  257. <xhtml:body guideline="1,1196;2,757;2,784;">
  258. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  259. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">환자별Comment관리</caption>
  260. </group>
  261. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  262. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  263. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  264. <caption id="caption3" class="search_name" style="left:10px; top:8px; width:86px; height:17px; ">일자 :</caption>
  265. <button id="btnSearch" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  266. <caption>조회</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. funcInputDataCheck();
  270. ChangeDateFormat();
  271. ]]>
  272. </script>
  273. </button>
  274. <input id="iptSDate" ref="/root/send/search/searchSDate" class="input_search" inputtype="date" style="left:76px; top:8px; width:100px; height:19px; "/>
  275. <caption id="caption4" style="left:180px; top:8px; width:20px; height:20px; text-align:center; ">~</caption>
  276. <input id="iptEDate" ref="/root/send/search/searchEDate" class="input_search" inputtype="date" style="left:201px; top:8px; width:100px; height:19px; "/>
  277. <caption id="caption5" class="search_name" style="left:318px; top:8px; width:112px; height:17px; ">검사/치료실 :</caption>
  278. <select1 id="cmbExcuRoom" ref="/root/send/search/searchRoom" class="combo_search" appearance="minimal" style="left:429px; top:8px; width:186px; height:19px; ">
  279. <choices>
  280. <itemset nodeset="/root/init/cmb_info/initexecroom">
  281. <label ref="excuroomcdnm"/>
  282. <value ref="excuroomcdid"/>
  283. </itemset>
  284. </choices>
  285. </select1>
  286. <caption id="caption7" class="search_name" style="left:635px; top:8px; width:91px; height:17px; ">등록번호 :</caption>
  287. <!--input id="iptPid" class="input_search" style="left:725px; top:8px; width:186px; height:19px; "/-->
  288. <input id="ipt_pid" ref="/root/send/search/searchPid" class="input_search" maxlength="10" style="left:725px; top:8px; width:90px; height:19px; "/>
  289. <button id="button61" class="icon_search" style="left:815px; top:10px; width:16px; height:16px; ">
  290. <caption/>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/search/searchPid","/root/main/send");
  294. model.setValue("/root/send/search/searchPid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  295. model.refresh();
  296. ]]>
  297. </script>
  298. </button>
  299. </group>
  300. <caption id="caption14" class="tit_2" style="left:5px; top:54px; width:147px; height:14px; ">일별현황</caption>
  301. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:527px; y2:70px; "/>
  302. <line id="line2" class="line_1" style="x1:530px; y1:70px; x2:1195px; y2:70px; "/>
  303. <caption id="caption66" class="cell_1" style="left:531px; top:76px; width:100px; height:23px; vertical-align:middle; ">등록번호</caption>
  304. <input id="iptPid" ref="/root/send/data/pid" class="input_s_essential" style="left:634px; top:77px; width:150px; height:19px; ">
  305. <script type="javascript" ev:event="xforms-value-changed">
  306. <![CDATA[
  307. var _op = optPname.label;
  308. if ( _op.length >0 )
  309. model.removeNodeset("/root/send/data/patnm");
  310. ]]>
  311. </script>
  312. </input>
  313. <output id="optPname" ref="/root/send/data/patnm" class="output_fix" appearance="output" style="left:804px; top:77px; width:131px; height:19px; "/>
  314. <caption id="caption1" class="tit_2" style="left:529px; top:54px; width:137px; height:13px; ">메모</caption>
  315. <textarea id="tarMemo" ref="/root/send/data/memodesc" style="left:634px; top:176px; width:560px; height:134px; "/>
  316. <line id="line4" class="line_1" style="x1:0px; y1:332px; x2:1194px; y2:332px; "/>
  317. <caption id="caption2" class="tit_2" style="left:0px; top:317px; width:147px; height:13px; ">메모내역</caption>
  318. <datagrid id="grdAeahMemoList" nodeset="/root/main/mm/grdAeahMemoList" caption="메모일자^등록번호^환자명^^검사/치료실^메모내용" colsep="^" colwidth="150, 150, 150, 200, 199, 551" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:338px; width:1195px; height:400px; ">
  319. <!--메모일자-->
  320. <col ref="memorgstdd" style="text-align:center; "/>
  321. <!--등록번호-->
  322. <col ref="pid" style="text-align:center; "/>
  323. <!--환자명-->
  324. <col ref="pnm" style="text-align:center; "/>
  325. <!--검사/치료실Name-->
  326. <col ref="excuroomcd" visibility="hidden" style="text-align:center; "/>
  327. <col ref="excuroomnm" style="text-align:center; "/>
  328. <!--메모내용-->
  329. <col ref="memodesc" style="text-align:center; "/>
  330. <script type="javascript" ev:event="onclick">
  331. <![CDATA[
  332. if ( grdAeahMemoList.row == 0 ) return;
  333. if ( grdAeahMemoList.isCell(event.target) ) {
  334. var i = grdAeahMemoList.row;
  335. //등록번호
  336. model.setValue("/root/send/data/pid", model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/pid"));
  337. //환자명
  338. optPname.value = model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/pnm");
  339. //등록일자
  340. model.setValue("/root/send/data/memodd",model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/memodd"));
  341. //치료실 (기능검사실에만 해당)
  342. model.setValue("/root/send/data/excuroomcd",model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/excuroomcd"));
  343. //메모내용
  344. model.setValue("/root/send/data/memodesc", model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/memodesc"));
  345. tarMemo.value =model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/memodesc");
  346. //부서
  347. model.setValue("/root/send/data/basedeptcd", model.getValue("/root/send/globalinstance/instance1"));
  348. //메모유효기간 (방사선 종양학과에만 해당)
  349. showstartdd.value = model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/showstartdd");
  350. showenddd.value = model.getValue("/root/main/mm/grdAeahMemoList["+i+"]/showenddd");
  351. }
  352. ]]>
  353. </script>
  354. </datagrid>
  355. <button id="button1" class="icon_search" style="left:785px; top:79px; width:16px; height:16px; ">
  356. <caption/>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/pid","/root/main/send");
  360. model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  361. model.setValue("/root/send/data/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  362. model.refresh();
  363. // 환자조회
  364. //modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/searchPid","/root/main/send");
  365. // alert(model.getValue("/root/main/patinfo/patinfolist/pid") + " = " +model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  366. ]]>
  367. </script>
  368. </button>
  369. <caption id="caption10" class="cell_1" style="left:531px; top:101px; width:100px; height:23px; vertical-align:middle; ">검사/치료실</caption>
  370. <select1 id="cmbExcuRoom2" ref="/root/send/data/excuroomcd" class="combo_search" appearance="minimal" style="left:634px; top:102px; width:186px; height:19px; ">
  371. <choices>
  372. <itemset nodeset="/root/init/cmb_info/initexecroom">
  373. <label ref="excuroomcdnm"/>
  374. <value ref="excuroomcdid"/>
  375. </itemset>
  376. </choices>
  377. </select1>
  378. <caption id="caption11" class="cell_1" style="left:531px; top:176px; width:100px; height:134px; vertical-align:middle; ">메모내용</caption>
  379. <line id="line16" class="line_3" style="x1:531px; y1:312px; x2:1190px; y2:312px; "/>
  380. <caption id="caption12" class="cell_1" style="left:531px; top:126px; width:100px; height:23px; vertical-align:middle; ">메모등록일</caption>
  381. <output id="outMemodd" ref="/root/send/data/memodd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:634px; top:127px; width:131px; height:19px; "/>
  382. <caption id="caption8" class="cell_1" style="left:531px; top:151px; width:100px; height:23px; vertical-align:middle; ">메모유효기간</caption>
  383. <input id="showstartdd" ref="/root/send/data/showstartdd" class="input_search" inputtype="date" style="left:634px; top:152px; width:100px; height:19px; "/>
  384. <caption id="caption13" style="left:738px; top:152px; width:20px; height:20px; text-align:center; ">~</caption>
  385. <input id="showenddd" ref="/root/send/data/showenddd" class="input_search" inputtype="date" style="left:759px; top:152px; width:100px; height:19px; "/>
  386. </group>
  387. <!-- 달력 시작-->
  388. <datagrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="75, 75, 75, 75, 75, 75, 75" extendlastcol="noscroll" selectionmode="free" style="left:0px; top:127px; width:527px; height:198px; ">
  389. <row>
  390. <col class="color_sun" ref="sun"/>
  391. <col ref="mon"/>
  392. <col ref="tue"/>
  393. <col ref="wed"/>
  394. <col ref="thu"/>
  395. <col ref="fri"/>
  396. <col class="color_sat" ref="sat"/>
  397. </row>
  398. <script type="javascript" ev:event="onclick">
  399. <![CDATA[
  400. var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
  401. model.setValue("/root/send/data/memodd",yyyymmdd);
  402. setCellColor(grd_calendar);
  403. ]]>
  404. </script>
  405. <script type="javascript" ev:event="onrowchanged">
  406. <![CDATA[
  407. setCellColor(grd_calendar);
  408. ]]>
  409. </script>
  410. <script type="javascript" ev:event="oncolchanged">
  411. <![CDATA[
  412. setCellColor(grd_calendar);
  413. ]]>
  414. </script>
  415. <script type="javascript" ev:event="ondblclick">
  416. <![CDATA[
  417. var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
  418. //alert(yyyymmdd);
  419. model.setValue("/root/send/data/memodd",yyyymmdd);
  420. funcInputDataCheck('c');
  421. ChangeDateFormat();
  422. ]]>
  423. </script>
  424. </datagrid>
  425. <group id="grp_calendar" style="left:0px; top:88px; width:528px; height:40px; ">
  426. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:527px; height:40px; "/>
  427. <button id="button31" class="icon_pre_year" style="left:165px; top:12px; width:16px; height:16px; ">
  428. <caption/>
  429. <script type="javascript" ev:event="DOMActivate">
  430. <![CDATA[
  431. var isMonth = model.getValue("/root/hidden/calendar/month");
  432. var isYear = model.getValue("/root/hidden/calendar/year");
  433. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  434. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  435. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  436. model.refresh();
  437. setCalendar(isDate);
  438. ]]>
  439. </script>
  440. </button>
  441. <button id="button32" class="icon_next_year" style="left:340px; top:12px; width:16px; height:16px; ">
  442. <caption/>
  443. <script type="javascript" ev:event="DOMActivate">
  444. <![CDATA[
  445. var isMonth = model.getValue("/root/hidden/calendar/month");
  446. var isYear = model.getValue("/root/hidden/calendar/year");
  447. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  448. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  449. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  450. model.refresh();
  451. setCalendar(isDate);
  452. ]]>
  453. </script>
  454. </button>
  455. <button id="btn_premonth" class="icon_pre_month" style="left:184px; top:12px; width:16px; height:16px; ">
  456. <caption/>
  457. <script type="javascript" ev:event="DOMActivate">
  458. <![CDATA[
  459. var isMonth = model.getValue("/root/hidden/calendar/month");
  460. var isYear = model.getValue("/root/hidden/calendar/year");
  461. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  462. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  463. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  464. model.refresh();
  465. setCalendar(isDate);
  466. ]]>
  467. </script>
  468. </button>
  469. <button id="button34" class="icon_next_month" style="left:321px; top:12px; width:16px; height:16px; ">
  470. <caption/>
  471. <script type="javascript" ev:event="DOMActivate">
  472. <![CDATA[
  473. var isMonth = model.getValue("/root/hidden/calendar/month");
  474. var isYear = model.getValue("/root/hidden/calendar/year");
  475. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  476. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  477. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  478. model.refresh();
  479. setCalendar(isDate);
  480. ]]>
  481. </script>
  482. </button>
  483. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:210px; top:9px; width:30px; height:19px; "/>
  484. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:260px; top:9px; width:30px; height:19px; "/>
  485. <caption id="caption9" class="calendar_output" style="left:240px; top:9px; width:20px; height:19px; ">년</caption>
  486. <caption id="caption15" class="calendar_output" style="left:290px; top:9px; width:20px; height:19px; ">월</caption>
  487. </group>
  488. <!--달력 끝-->
  489. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  490. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  491. <caption>출력</caption>
  492. </button>
  493. <button id="btnClear" class="btn4_letter3" style="left:1068px; top:5px; width:68px; height:22px; ">
  494. <caption>초기화</caption>
  495. <script type="javascript" ev:event="DOMActivate">
  496. <![CDATA[
  497. alert("초기화");
  498. ]]>
  499. </script>
  500. </button>
  501. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  502. <caption>저장</caption>
  503. <script type="javascript" ev:event="DOMActivate">
  504. <![CDATA[
  505. var yyyymmdd = model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+grd_calendar.valueMatrix(grd_calendar.row, grd_calendar.col);
  506. //alert(yyyymmdd);
  507. model.setValue("/root/send/data/memodd",yyyymmdd);
  508. //필수입력 사항 체크 - 메모등록일자/등록번호/메모내용/검사치료실
  509. var _memo = model.getValue("/root/send/data/memodesc");
  510. var _pid = model.getValue("/root/send/data/pid");
  511. model.setValue("/root/send/data/basedeptcd",model.getValue("/root/send/globalinstance/instance1"));
  512. var _message ="";
  513. var _sc = model.getValue("/root/send/globalinstance/instance1");
  514. _sc = _sc.substring(0, 4);
  515. switch (_sc) {
  516. case "2170":
  517. model.setValue("/root/send/data/memodd", getCurrentDate());
  518. model.setValue("/root/send/data/excuroomcd", _sc);
  519. break;
  520. default:
  521. break;
  522. }
  523. var _memodd = model.getValue("/root/send/data/memodd");
  524. var _room = model.getValue("/root/send/data/excuroomcd");
  525. //alert(_memodd);
  526. if(_memodd =="" || _memodd.length<8){_message +="메모일자/"}
  527. if(_memo =="" || _memo.length <1 ){_message +="메모내용/"}
  528. if(_pid =="" || _pid.length <5 ){_message +="등록번호/"}
  529. if(_room =="" ){_message +="검사치료실"}
  530. if(_message !="" && _message.length >0){
  531. messageBox("[필수입력항목]"+_message+"를(을) 확인하십시오","I999");
  532. return true;
  533. }
  534. submit("TXAEA02701");
  535. model.reset();
  536. ]]>
  537. </script>
  538. </button>
  539. </group>
  540. <line id="line13" class="line_4" style="x1:1107px; y1:29px; x2:1107px; y2:51px; "/>
  541. </xhtml:body>
  542. </xhtml:html>