SMAEB00500_부서별 메모관리.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  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. <main>
  10. <deptmemolist>
  11. <deptmemo>
  12. <memodt/>
  13. <memorem/>
  14. <lastupdtdt/>
  15. </deptmemo>
  16. </deptmemolist>
  17. <insmemo>
  18. <insmemolist>
  19. <memorem/>
  20. </insmemolist>
  21. </insmemo>
  22. </main>
  23. <send>
  24. <globalinstance>
  25. <instance1/>
  26. </globalinstance>
  27. <cmb_info>
  28. <initexecroom>
  29. <excuroomcdid/>
  30. </initexecroom>
  31. </cmb_info>
  32. <memodt1/>
  33. <memodt2/>
  34. <memorem/>
  35. <excuroomcd/>
  36. <svflag/>
  37. <grddatadt1/>
  38. </send>
  39. <hidden>
  40. <calendar>
  41. <year/>
  42. <month/>
  43. <weeklist>
  44. <list>
  45. <sun/>
  46. <mon/>
  47. <tue/>
  48. <wed/>
  49. <thu/>
  50. <fri/>
  51. <sat/>
  52. <sun_memo/>
  53. <mon_memo/>
  54. <tue_memo/>
  55. <wed_memo/>
  56. <thu_memo/>
  57. <fri_memo/>
  58. <sat_memo/>
  59. </list>
  60. </weeklist>
  61. </calendar>
  62. <grdcellcolor>
  63. <calrow/>
  64. <calcol/>
  65. </grdcellcolor>
  66. <temp>
  67. <count/>
  68. </temp>
  69. </hidden>
  70. <init>
  71. <cmb_info>
  72. <initexecroom>
  73. <excuroomcdid/>
  74. <excuroomcdnm/>
  75. </initexecroom>
  76. <suppdept>
  77. <suppdeptcd/>
  78. <depthngnm/>
  79. </suppdept>
  80. <initexcuroomcd>
  81. <excuroomcd/>
  82. </initexcuroomcd>
  83. </cmb_info>
  84. </init>
  85. </root>
  86. </instance>
  87. <submission id="TRAEB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/deptmemolist"/>
  88. <submission id="TXAEB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp"/>
  89. <submission id="TRAEA01115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  90. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. aezfSetSuppDeptcd();
  94. //검사실코드 갖고오기
  95. submit("TRAEA01301", false);
  96. if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
  97. model.setValue("/root/send/globalinstance/instance1", "");
  98. }
  99. //담당 검사실 갖고오기
  100. // submit("TRAEA01115",false);
  101. //담당 검사실 세팅
  102. // model.setValue("/root/send/excuroomcd",model.getValue("/root/init/cmb_info/initexcuroomcd[1]/excuroomcd"));
  103. ipt_date1.value = getCurrentDate();
  104. ipt_date2.value = getCurrentDate();
  105. initCalendar();
  106. //달력에서 오늘날짜 선택되기
  107. setCurrentDate();
  108. submit("TRAEB00501");
  109. ]]>
  110. </script>
  111. </model>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  115. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  117. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  118. <script type="javascript">
  119. <![CDATA[
  120. /* @group : 부서별 메모관리
  121. * @ver : 2007.08.09
  122. * @by : 임헤정
  123. * @-----------------------------------
  124. * @type : function
  125. * @access : public
  126. * @desc : 달력초기화
  127. */
  128. function initCalendar() {
  129. var curDate = getCurrentDate().toDate();
  130. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  131. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  132. model.refresh();
  133. setCalendar(curDate);
  134. }
  135. /* @group : 부서별 메모관리
  136. * @ver : 2007.08.09
  137. * @by : 임헤정
  138. * @-----------------------------------
  139. * @type : function
  140. * @access : public
  141. * @desc : 달력날짜뿌려주기
  142. */
  143. function setCalendar(dateObj) {
  144. // 그리드 초기화
  145. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  146. model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  147. //grd_calendar.rebuild()
  148. dateObj.setDate(1);
  149. var startDay = dateObj.getDay();
  150. var days = dateObj.getMonthDay();
  151. var rows = Math.ceil( ( startDay + days ) / 7 );
  152. for( var i = 0; i < rows; i++ )
  153. grd_calendar.addRow(false);
  154. grd_calendar.rebuild();
  155. var rowIndex = grd_calendar.fixedRows;
  156. var colIndex = startDay;
  157. for( var i = 1; i <= days; i++ ) {
  158. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  159. // grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  160. colIndex++;
  161. if( colIndex == 7 ) {
  162. colIndex = 0;
  163. rowIndex++;
  164. }
  165. }
  166. }
  167. /* @group : 부서별 메모관리
  168. * @ver : 2007.08.10
  169. * @by : 임헤정
  170. * @-----------------------------------
  171. * @type : function
  172. * @access : public
  173. * @desc : 오늘날짜 달력에 표시
  174. */
  175. function setCurrentDate() {
  176. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  177. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  178. if(curWeek == "sun")
  179. model.setValue("/root/hidden/grdcellcolor/calcol",0);
  180. if(curWeek == "mon")
  181. model.setValue("/root/hidden/grdcellcolor/calcol",1);
  182. if(curWeek == "tue")
  183. model.setValue("/root/hidden/grdcellcolor/calcol",2);
  184. if(curWeek == "wed")
  185. model.setValue("/root/hidden/grdcellcolor/calcol",3);
  186. if(curWeek == "thu")
  187. model.setValue("/root/hidden/grdcellcolor/calcol",4);
  188. if(curWeek == "fri")
  189. model.setValue("/root/hidden/grdcellcolor/calcol",5);
  190. if(curWeek == "sat")
  191. model.setValue("/root/hidden/grdcellcolor/calcol",6);
  192. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  193. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) == curDate ) {
  194. model.setValue("/root/hidden/grdcellcolor/calrow",i);
  195. }
  196. }
  197. setCellColor(grd_calendar)
  198. }
  199. /* @group : 부서별 메모관리
  200. * @ver : 2007.08.09
  201. * @by : 임헤정
  202. * @-----------------------------------
  203. * @type : function
  204. * @access : public
  205. * @desc : 선택날짜 색 주기
  206. */
  207. function setCellColor(gridObj) {
  208. var calRow = 0;
  209. var calCol = 0;
  210. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  211. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  212. gridObj.rebuildStyle();
  213. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  214. if( calCol < 7 )
  215. calCol += 7;
  216. else
  217. calCol -= 7;
  218. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  219. }
  220. /* @group : 부서별 메모관리
  221. * @ver : 2007.08.09
  222. * @by : 임헤정
  223. * @-----------------------------------
  224. * @type : function
  225. * @access : public
  226. * @desc : 선택한 날짜로 memodt1,memodt2 세팅
  227. */
  228. function getRsrvPossTm(gridObj) {
  229. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  230. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  231. if( calCol >= 7 )
  232. calCol -= 7;
  233. var yyyy = model.getValue("/root/hidden/calendar/year");
  234. var mm = model.getValue("/root/hidden/calendar/month");
  235. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
  236. if (getStringLength(dd) == 1) {
  237. dd = "0" + dd;
  238. }
  239. model.setValue("/root/send/memodt1", yyyy + mm + dd);
  240. model.setValue("/root/send/memodt2", yyyy + mm + dd);
  241. }
  242. ]]>
  243. </script>
  244. </xhtml:head>
  245. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  246. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  247. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">부서별 메모관리</caption>
  248. </group>
  249. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  250. <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80" focuscolor="transparent" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" mergecellsfixedrows="bycolrec" style="left:0px; top:115px; width:562px; height:265px; ">
  251. <row>
  252. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  253. <col ref="mon" style="border-bottom-width:0px; "/>
  254. <col ref="tue" style="border-bottom-width:0px; "/>
  255. <col ref="wed" style="border-bottom-width:0px; "/>
  256. <col ref="thu" style="border-bottom-width:0px; "/>
  257. <col ref="fri" style="border-bottom-width:0px; "/>
  258. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  259. </row>
  260. <row>
  261. <col ref="sun_memo" type="input" style="border-top-width:0px; "/>
  262. <col ref="mon_memo" type="input" style="border-top-width:0px; "/>
  263. <col ref="tue_memo" type="input" style="border-top-width:0px; "/>
  264. <col ref="wed_memo" type="input" style="border-top-width:0px; "/>
  265. <col ref="thu_memo" type="input" style="border-top-width:0px; "/>
  266. <col ref="fri_memo" type="input" style="border-top-width:0px; "/>
  267. <col ref="sat_memo" type="input" style="border-top-width:0px; "/>
  268. </row>
  269. <script type="javascript" ev:event="onclick">
  270. <![CDATA[
  271. model.setValue("/root/main/insmemo/insmemolist", "");
  272. model.setValue("/root/send/svflag" , "cal");
  273. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  274. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  275. setCellColor(grd_calendar);
  276. getRsrvPossTm(grd_calendar);
  277. submit("TRAEB00501");
  278. ]]>
  279. </script>
  280. <script type="javascript" ev:event="onrowchanged">
  281. <![CDATA[
  282. // alert(grd_calendar.row);
  283. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  284. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  285. setCellColor(grd_calendar);
  286. ]]>
  287. </script>
  288. <script type="javascript" ev:event="oncolchanged">
  289. <![CDATA[
  290. // alert(grd_calendar.row);
  291. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  292. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  293. setCellColor(grd_calendar);
  294. ]]>
  295. </script>
  296. </multilinegrid>
  297. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  298. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  299. <line id="line13" class="line_4" style="x1:1077px; y1:7px; x2:1077px; y2:29px; "/>
  300. <button id="btn_sea" class="btn1_letter2" style="left:1110px; top:7px; width:56px; height:22px; ">
  301. <caption>조회</caption>
  302. <script type="javascript" ev:event="DOMActivate">
  303. <![CDATA[
  304. submit("TRAEB00501");
  305. ]]>
  306. </script>
  307. </button>
  308. <caption id="caption4" class="search_name" style="left:10px; top:8px; width:86px; height:17px; ">일자 :</caption>
  309. <caption id="caption5" style="left:180px; top:8px; width:20px; height:20px; text-align:center; ">~</caption>
  310. <input id="ipt_date1" ref="/root/send/memodt1" class="input_search" inputtype="date" style="left:76px; top:8px; width:100px; height:19px; "/>
  311. <input id="ipt_date2" ref="/root/send/memodt2" class="input_search" inputtype="date" style="left:201px; top:8px; width:100px; height:19px; "/>
  312. <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" disabled="true" appearance="minimal" editmode="inputsearch" style="left:444px; top:9px; width:118px; height:19px; ">
  313. <choices>
  314. <itemset nodeset="/root/init/cmb_info/suppdept">
  315. <label ref="depthngnm"/>
  316. <value ref="suppdeptcd"/>
  317. </itemset>
  318. </choices>
  319. <script type="javascript" ev:event="xforms-value-changed">
  320. <![CDATA[
  321. model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
  322. submit("TRAEA01301");
  323. //btn_sea.dispatch("DOMActivate");
  324. ]]>
  325. </script>
  326. </select1>
  327. <caption id="caption10" class="search_name" style="left:355px; top:10px; width:86px; height:17px; ">지원부서 :</caption>
  328. <caption id="caption12" class="search_name" style="left:615px; top:10px; width:106px; height:17px; ">검사/치료실 :</caption>
  329. <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" navindex="1" appearance="minimal" editmode="inputsearch" style="left:725px; top:9px; width:125px; height:19px; ">
  330. <choices>
  331. <itemset nodeset="/root/init/cmb_info/initexecroom">
  332. <label ref="excuroomcdnm"/>
  333. <value ref="excuroomcdid"/>
  334. </itemset>
  335. </choices>
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. btn_sea.dispatch("DOMActivate");
  339. ]]>
  340. </script>
  341. </select1>
  342. </group>
  343. <caption id="caption3" class="tit_2" style="left:572px; top:55px; width:82px; height:13px; ">메모</caption>
  344. <line id="line2" class="line_1" style="x1:569px; y1:70px; x2:1194px; y2:70px; "/>
  345. <caption id="caption22" class="tit_2" style="left:0px; top:387px; width:82px; height:13px; ">메모내역</caption>
  346. <line id="line1" class="line_1" style="x1:0px; y1:437px; x2:1195px; y2:437px; "/>
  347. <caption id="caption2" class="tit_2" style="left:6px; top:55px; width:82px; height:14px; ">일별 현황</caption>
  348. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:562px; y2:70px; "/>
  349. <datagrid id="grd_deptmemolist" nodeset="/root/main/deptmemolist/deptmemo" autoresize="true" caption="일자^메모기록일시^내용" colsep="^" colwidth="100, 120, 1041" defaultrows="15" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:407px; width:1195px; height:333px; ">
  350. <col ref="memodt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  351. <col ref="lastupdtdt" style="text-align:center; "/>
  352. <col ref="memorem" type="output"/>
  353. <script type="javascript" ev:event="ondblclick">
  354. <![CDATA[
  355. model.setValue("/root/send/svflag" , "grd");
  356. model.setValue("/root/main/insmemo/insmemolist", model.getValue("/root/main/deptmemolist/deptmemo["+grd_deptmemolist.row+"]/memorem"));
  357. model.setValue("/root/send/grddatadt1", model.getValue("/root/main/deptmemolist/deptmemo["+grd_deptmemolist.row+"]/memodt").substr(0, 8));
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </datagrid>
  362. <button id="btn_execl" class="btn2_letter2" style="left:1152px; top:50px; width:42px; height:19px; ">
  363. <caption>엑셀</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. var file_name = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  367. grd_deptmemolist.saveExcel(file_name);
  368. ]]>
  369. </script>
  370. </button>
  371. <button id="button3" class="icon_search" style="left:832px; top:79px; width:16px; height:16px; ">
  372. <caption/>
  373. <script type="javascript" ev:event="DOMActivate">
  374. <![CDATA[
  375. // 환자조회
  376. //modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/searchPid","/root/main/send");
  377. // alert(model.getValue("/root/main/patinfo/patinfolist/pid") + " = " +model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  378. ]]>
  379. </script>
  380. </button>
  381. <line id="line16" class="line_3" style="x1:569px; y1:380px; x2:1194px; y2:380px; "/>
  382. <line id="line4" class="line_1" style="x1:0px; y1:402px; x2:1194px; y2:402px; "/>
  383. <group id="grp_calendar" style="left:0px; top:75px; width:562px; height:40px; ">
  384. <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:562px; height:40px; "/>
  385. <button id="button31" class="icon_pre_year" style="left:165px; top:12px; width:16px; height:16px; ">
  386. <caption/>
  387. <script type="javascript" ev:event="DOMActivate">
  388. <![CDATA[
  389. var isMonth = model.getValue("/root/hidden/calendar/month");
  390. var isYear = model.getValue("/root/hidden/calendar/year");
  391. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  392. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  393. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  394. model.refresh();
  395. setCalendar(isDate);
  396. ]]>
  397. </script>
  398. </button>
  399. <button id="button32" class="icon_next_year" style="left:340px; top:12px; width:16px; height:16px; ">
  400. <caption/>
  401. <script type="javascript" ev:event="DOMActivate">
  402. <![CDATA[
  403. var isMonth = model.getValue("/root/hidden/calendar/month");
  404. var isYear = model.getValue("/root/hidden/calendar/year");
  405. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  406. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  407. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  408. model.refresh();
  409. setCalendar(isDate);
  410. ]]>
  411. </script>
  412. </button>
  413. <button id="btn_premonth" class="icon_pre_month" style="left:184px; top:12px; width:16px; height:16px; ">
  414. <caption/>
  415. <script type="javascript" ev:event="DOMActivate">
  416. <![CDATA[
  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(-1,'M');
  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. ]]>
  425. </script>
  426. </button>
  427. <button id="button34" class="icon_next_month" style="left:321px; 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,'M');
  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. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:210px; top:9px; width:30px; height:19px; "/>
  442. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:260px; top:9px; width:30px; height:19px; "/>
  443. <caption id="caption8" class="calendar_output" style="left:240px; top:9px; width:20px; height:19px; ">년</caption>
  444. <caption id="caption9" class="calendar_output" style="left:290px; top:9px; width:20px; height:19px; ">월</caption>
  445. </group>
  446. <textarea id="tar_memo" ref="/root/main/insmemo/insmemolist" style="left:569px; top:75px; width:625px; height:304px; "/>
  447. <input id="input1" ref="/root/send/svflag" class="input_search" visibility="hidden" style="left:865px; top:49px; width:100px; height:19px; "/>
  448. </group>
  449. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  450. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:5px; width:56px; height:22px; ">
  451. <caption>저장</caption>
  452. <script type="javascript" ev:event="DOMActivate">
  453. <![CDATA[
  454. if( model.getValue("/root/send/svflag") == "grd") {
  455. model.setValue("/root/send/memorem", tar_memo.value);
  456. }else if ( model.getValue("/root/send/svflag") == "cal") {
  457. model.setValue("/root/send/memorem", model.getValue("/root/main/deptmemolist/deptmemo["+grd_deptmemolist.bottomRow+"]/memorem") +"\n" + tar_memo.value);
  458. }
  459. /*
  460. if( grd_deptmemolist.rows > 1 ) {
  461. model.setValue("/root/send/memorem", model.getValue("/root/main/deptmemolist/deptmemo["+grd_deptmemolist.bottomRow+"]/memorem") +"\n" + tar_memo.value);
  462. }
  463. else {
  464. model.setValue("/root/send/memorem", tar_memo.value);
  465. }
  466. */
  467. submit("TXAEB00501");
  468. tar_memo.value = "";
  469. submit("TRAEB00501");
  470. ]]>
  471. </script>
  472. </button>
  473. <caption id="caption1" style="left:710px; top:5px; width:419px; height:20px; ">* 메모 저장시 꼭 달력에서 일자선택후 메모입력하고 저장버튼 누르십시오!</caption>
  474. </group>
  475. </xhtml:body>
  476. </xhtml:html>