SPPMP01900_전화예약공통코드관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>일반 상담자 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list1>
  11. <item>
  12. <cdgrupid/>
  13. <cdnm/>
  14. <detldesc/>
  15. </item>
  16. </list1>
  17. <list2>
  18. <item>
  19. <check/>
  20. <dispseq/>
  21. <usernm/>
  22. <cdid/>
  23. <fromdd/>
  24. </item>
  25. </list2>
  26. </main>
  27. <send>
  28. <cdgrupid/>
  29. <req>
  30. <data/>
  31. </req>
  32. <globalinstance>
  33. <instance1/>
  34. </globalinstance>
  35. <curerid/>
  36. <startdate/>
  37. <cdnm/>
  38. <detldesc/>
  39. </send>
  40. <init>
  41. <curerlist>
  42. <curernm/>
  43. </curerlist>
  44. </init>
  45. <hidden>
  46. <item/>
  47. </hidden>
  48. <temp>
  49. <ret/>
  50. <userpopupinfo>
  51. <param/>
  52. <flag/>
  53. <searchitem/>
  54. </userpopupinfo>
  55. <useroneselect/>
  56. </temp>
  57. <hidden1>
  58. <popupmenu>
  59. <menu>
  60. <label>검사/치료실변경</label>
  61. <func>ExcuroomFunc</func>
  62. </menu>
  63. </popupmenu>
  64. </hidden1>
  65. </root>
  66. </instance>
  67. <submission id="TRPMP01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list1"/>
  68. <submission id="TRPMP01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list2"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. aezfSetSuppDeptcd();
  72. model.removeNodeset("/root/main/list1/item");
  73. model.removeNodeset("/root/main/list2/item");
  74. model.setValue("/root/send/startdate", getCurrentDate());
  75. submit("TRPMP01901");
  76. btn_sea.dispatch("DOMActivate");
  77. ]]>
  78. </script>
  79. <submission id="TXPMP01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  83. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript">
  87. <![CDATA[
  88. function readfunc() {
  89. model.setValue("/root/send/cdgrupid", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdgrupid"));
  90. model.removeNodeset("/root/main/list2/item");
  91. if (submit("TRPMP01902")){
  92. model.setValue("/root/send/cdgrupid", "");
  93. }
  94. model.refresh();
  95. }
  96. function datacheck(){
  97. for (var i = 1; i < grd_curerlist.rows; i++){
  98. var schk = model.getValue("/root/main/list2/item[" + i + "]/check");
  99. if (schk == "Y"){
  100. var sfromdd = model.getValue("/root/main/list2/item[" + i + "]/fromdd");
  101. if (sfromdd == ""){
  102. messageBox(i + "번째행의 시행일은 필수 입력항목입니다.", "E999", "");
  103. return false;
  104. }
  105. var susernm = model.getValue("/root/main/list2/item[" + i + "]/usernm");
  106. if (susernm == ""){
  107. messageBox(i + "번째행의 이름은 필수 선택항목입니다.", "E999", "");
  108. return false;
  109. }
  110. }
  111. }
  112. for (var i = 1; i < grd_curerlist.rows - 1; i++){
  113. var susernm = model.getValue("/root/main/list2/item[" + i + "]/usernm");
  114. for (var j = 1; j < grd_curerlist.rows; j++){
  115. susernm1 = model.getValue("/root/main/list2/item[" + j + "]/usernm");
  116. if (i != j){
  117. if (susernm == susernm1){
  118. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  119. return false;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. function ExcuroomFunc(){
  126. var sfromdd = model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/fromdd");
  127. if (sfromdd == ""){
  128. messageBox("시행일자를 저장한 후 작업하시기 바랍니다.", "E999", "");
  129. return;
  130. }
  131. if (isValidDateTime(sfromdd, "YYYYMMDD") == false){
  132. messageBox("날짜 형식이 잘못 입력되었습니다.", "E999", "");
  133. return;
  134. }
  135. model.setValue("/root/popdata/excuroomcd", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/basecd"));
  136. model.setValue("/root/popdata/execrid", model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/basecd"));
  137. model.setValue("/root/popdata/excudd", model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/excudd"));
  138. modal("SPAER02100", "", "200", "200", "SPAER02100","/root/popdata","/root/popdata");
  139. readfunc();
  140. }
  141. ]]>
  142. </script>
  143. </xhtml:head>
  144. <xhtml:body pagewidth="720" pageheight="500" guideline="1,1195;2,466;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  145. <group id="group1" style="left:0px; top:0px; width:695px; height:13px; ">
  146. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:235px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">전화예약 공통코드관리</caption>
  147. </group>
  148. <group id="group3" scroll="auto" style="left:0px; top:13px; width:695px; height:442px; ">
  149. <group id="grp_btn" scroll="auto" style="left:0px; top:415px; width:680px; height:27px; ">
  150. <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:616px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  151. <caption>저장</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. if (datacheck() == false){
  155. return;
  156. }
  157. model.setValue("/root/send/req/data",grd_curerlist.getUpdateData());
  158. model.setValue("/root/send/cdgrupid", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdgrupid"));
  159. model.setValue("/root/send/cdnm", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdnm"));
  160. model.setValue("/root/send/detldesc", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/detldesc"));
  161. submit("TXPMP01901", false);
  162. model.removeNodeset("/root/main/list2/item");
  163. model.refresh();
  164. readfunc();
  165. ]]>
  166. </script>
  167. <script type="javascript" ev:event="DOMFocusIn">
  168. <![CDATA[
  169. checkKeyColumn("grd_curerlist");
  170. ]]>
  171. </script>
  172. </button>
  173. </group>
  174. <group id="group2" style="left:0px; top:7px; width:690px; height:35px; vertical-align:top; ">
  175. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:683px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  176. <line id="line13" style="x1:599px; y1:7px; x2:599px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  177. <button id="btn_sea" class="btn1_letter2" style="left:615px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  178. <caption>조회</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. submit("TRPMP01901");
  182. ]]>
  183. </script>
  184. </button>
  185. <caption id="caption3" class="search_name" style="left:11px; top:8px; width:89px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">공통코드 :</caption>
  186. <input id="input2" ref="/root/send/cdgrupid" class="input_search" style="left:102px; top:8px; width:130px; height:19px; ">
  187. <script type="javascript" ev:event="onkeydown">
  188. <![CDATA[
  189. inputEnterKey("btn_sea","DOMActivate");
  190. ]]>
  191. </script>
  192. </input>
  193. <input id="ipt_acptdd" ref="/root/send/startdate" class="input_default" editable="false" inputtype="date" style="left:403px; top:7px; width:102px; height:19px; text-align:center; "/>
  194. <caption id="caption4" class="search_name" style="left:326px; top:9px; width:74px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">시행일:</caption>
  195. </group>
  196. <caption id="caption1" class="tit_2" style="left:5px; top:53px; width:120px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">공통코드 리스트</caption>
  197. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:290px; y2:70px; "/>
  198. <caption id="caption2" class="tit_2" style="left:300px; top:53px; width:133px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">세부항목 리스트</caption>
  199. <line id="line2" class="line_1" style="x1:295px; y1:69px; x2:681px; y2:69px; "/>
  200. <button id="btn_grdadd" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:566px; top:48px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  201. <caption>행추가</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. grd_curerlist.addRow();
  205. var irow = grd_curerlist.row - 1;
  206. var ino = grd_curerlist.valueMatrix(irow, 2);
  207. if (irow == 0){
  208. ino = 1;
  209. }else{
  210. ino = parseFloat(ino) + 1;
  211. }
  212. model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/dispseq", ino);
  213. model.refresh();
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="btn_grddel" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:626px; top:48px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
  218. <caption>행삭제</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. grd_curerlist.deleteRow(grd_curerlist.row);
  222. ]]>
  223. </script>
  224. </button>
  225. <datagrid id="grd_curerlist" nodeset="/root/main/list2/item" caption="^순번^이름^사번^시행일" colsep="^" colwidth="33, 39, 92, 85, 96" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:296px; top:73px; width:384px; height:338px; ">
  226. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  227. <col ref="dispseq" type="input" format="99" style="text-align:center; "/>
  228. <col disabled="true" ref="usernm" type="inputbutton" _key="true"/>
  229. <col ref="cdid" type="input" style="text-align:center; "/>
  230. <col ref="fromdd" type="inputdate" style="text-align:center; "/>
  231. <script type="javascript" ev:event="xforms-value-changed">
  232. <![CDATA[
  233. //if (isDataCell()) {
  234. var colidx = grd_curerlist.col;
  235. if (grd_curerlist.colAttribute(colidx, "ref") == "check"){
  236. if (model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/check") == "Y"){
  237. model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/excudd", model.getValue("/root/send/startdate"));
  238. }
  239. }
  240. if (grd_curerlist.colAttribute(colidx, "ref") == "basecd"){
  241. model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/basecdflagdesc", model.getValue("/root/main/list2/item[" + grd_curerlist.row + "]/basecd"));
  242. }
  243. //}
  244. model.refresh();
  245. ]]>
  246. </script>
  247. <script type="javascript" ev:event="DOMFocusOut">
  248. <![CDATA[
  249. initPopupMenu();
  250. ]]>
  251. </script>
  252. <script type="javascript" ev:event="onmousedown">
  253. <![CDATA[
  254. setPopupMenu("grd_curerlist", false, "/root/hidden1/popupmenu/menu", "label", "func");
  255. ]]>
  256. </script>
  257. <script type="javascript" ev:event="onbuttonclick">
  258. <![CDATA[
  259. if ( grd_curerlist.colRef("usernm") == grd_curerlist.col ) {
  260. model.removeNodeset("/root/temp/useroneselect/list");
  261. model.resetInstanceNode("/root/temp/userpopupinfo");
  262. model.setValue("/root/temp/userpopupinfo/param", "_OneS");
  263. modal("SPZSU10103", "", "200", "200", "SPZSU10103","/root/temp/userpopupinfo","/root/main/temp");
  264. var iParam = getParameter("SPZSU10103_");
  265. setCSVToNode("/root/temp/useroneselect", iParam);
  266. clearParameter("SPZSU10103_");
  267. model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/usernm", model.getValue("/root/temp/useroneselect/list/usernm"));
  268. model.setValue("/root/main/list2/item[" + grd_curerlist.row + "]/cdid", model.getValue("/root/temp/useroneselect/list/userid"));
  269. model.refresh();
  270. }
  271. ]]>
  272. </script>
  273. </datagrid>
  274. </group>
  275. <datagrid id="grd_cureroomlist" nodeset="/root/main/list1/item" caption="코드^분류^" colsep="^" colwidth="71, 202, 10" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:85px; width:291px; height:338px; ">
  276. <col disabled="true" ref="cdgrupid"/>
  277. <col disabled="true" ref="cdnm"/>
  278. <col ref="detldesc" visibility="hidden"/>
  279. <script type="javascript" ev:event="ondblclick">
  280. <![CDATA[
  281. model.setValue("/root/send/cdgrupid", model.getValue("/root/main/list1/item[" + grd_cureroomlist.row + "]/cdgrupid"));
  282. submit("TRPMP01902", false);
  283. model.setValue("/root/send/cdgrupid", "");
  284. model.refresh();
  285. grd_curerlist.isReadOnly(grd_curerlist.topRow,2, grd_curerlist.bottomRow, 2) = true;
  286. ]]>
  287. </script>
  288. <script type="javascript" ev:event="onclick">
  289. <![CDATA[
  290. readfunc();
  291. ]]>
  292. </script>
  293. </datagrid>
  294. </xhtml:body>
  295. </xhtml:html>