SMRTS03100_의국장관리.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  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>당직등록기간 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ngdtregterm>
  11. <ngdtregtermlist/>
  12. </ngdtregterm>
  13. <smsdata>
  14. <bizabbr/>
  15. <replytelno/>
  16. <rsrvyn/>
  17. <rsrvdate/>
  18. <rsrvtime/>
  19. <msgcnts/>
  20. <closeflag/>
  21. <recvrlist>
  22. <chk/>
  23. <recvrnm/>
  24. <recvrtelno/>
  25. </recvrlist>
  26. </smsdata>
  27. </main>
  28. <hidden>
  29. </hidden>
  30. <temp>
  31. </temp>
  32. <init/>
  33. <send>
  34. <req>
  35. <instcd/>
  36. <ngdtym/>
  37. </req>
  38. <save>
  39. <ngdtregtermlist/>
  40. </save>
  41. </send>
  42. <tempdd>
  43. <fromdd/>
  44. <todd/>
  45. </tempdd>
  46. <init>
  47. <systemflag>T</systemflag>
  48. <mptable>
  49. <mpphonno/>
  50. </mptable>
  51. </init>
  52. </root>
  53. </instance>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. //사용자 권한
  57. fCheckAuth();
  58. submit("TRRTS03002");
  59. misfGridInit(grd_ngdtregtermlist);
  60. misfMsterDetailSet(grd_ngdtregtermlist, null, "TRRTS03001", "Y");
  61. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  62. misfComboComCdListMulti("R0234", "grd_ngdtregtermlist.deptcd");
  63. var dutplceinstcd = getUserInfo("dutplceinstcd");
  64. model.setValue("/root/send/req/instcd", dutplceinstcd);
  65. if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
  66. cmb_instcd.disabled = false;
  67. }else{
  68. cmb_instcd.disabled = true;
  69. }
  70. var today = getCurrentDate();
  71. var cur_yymm = parseInt(today.substring(0,6));
  72. model.setValue("/root/send/req/ngdtym", cur_yymm);
  73. model.refresh();
  74. ]]>
  75. </script>
  76. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/ngdtcdlist"/>
  77. <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
  78. <submission id="TRRTS03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/ngdtregterm"/>
  79. <submission id="TXRTS03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  80. <submission id="TXRTS03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/temp"/>
  81. <submission id="TRRTS03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root" resultref="/root/init"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.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" src="../../../com/commonweb/js/stringHelper.js"/>
  87. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  88. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  89. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  90. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  91. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  92. <script type="javascript">
  93. <![CDATA[
  94. ]]>
  95. </script>
  96. </xhtml:head>
  97. <xhtml:body>
  98. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  99. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직등록기간 관리</caption>
  100. </group>
  101. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  102. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  103. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:60px; height:17px; ">년월 :</caption>
  104. <datagrid id="grd_ngdtregtermlist" nodeset="/root/main/ngdtregterm/ngdtregtermlist" caption="선택^임상과^기간^기간^의국장^의국장^bp^핸드폰^년월^기관|선택^임상과^from^to^사번^성명^bp^핸드폰^년월^기관" colsep="^" colwidth="22, 364, 140, 139, 122, 135, 117, 112, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
  105. <col checkvalue="Y,N" ref="smsyn" type="checkbox"/>
  106. <col ref="deptcd" type="combo">
  107. <choices>
  108. <itemset>
  109. <label/>
  110. <value/>
  111. </itemset>
  112. </choices>
  113. </col>
  114. <col ref="fromdd" type="inputdate" style="text-align:center; "/>
  115. <col ref="todd" type="inputdate" style="text-align:center; "/>
  116. <col ref="emplno" type="inputbutton" style="text-align:center; "/>
  117. <col ref="emplnm" style="text-align:center; "/>
  118. <col ref="bpno" style="text-align:center; "/>
  119. <col ref="mpphonno" style="text-align:center; "/>
  120. <col ref="ngdtym" visibility="hidden"/>
  121. <col ref="instcd" visibility="hidden"/>
  122. <col ref="olddeptcd" visibility="hidden"/>
  123. <script type="javascript" ev:event="onbuttonclick">
  124. <![CDATA[
  125. if(grd_ngdtregtermlist.col == grd_ngdtregtermlist.colRef("emplno")){
  126. var recv_list = "emplno,emplnm";
  127. rpbfOpenPopUpList("SPRPB00101", grd_ngdtregtermlist, recv_list,"ipt_systemflag","N");
  128. model.refresh();
  129. // rpbfOpenPopUpList("SPRPB00101", grd_emplauthlist, "emplno,emplnm,dutunitcd,dutunitnm,dutplceinst", "", "N");
  130. // model.refresh();
  131. }
  132. ]]>
  133. </script>
  134. </datagrid>
  135. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  136. <caption>조회</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. if(!isRequiredControls("cmb_instcd"))return;
  140. misfMsterDetailRetrieve();
  141. // if ( !isRequiredControls("ipt_yy", "ipt_mm", "cmb_instcd") ) {
  142. // return false;
  143. // }
  144. // model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  145. // ipt_mm.refresh();
  146. // submit("TRRTS03001");
  147. ]]>
  148. </script>
  149. </button>
  150. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  151. <line id="line1" class="line_1" style="x1:0px; y1:66px; x2:1190px; y2:67px; "/>
  152. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:295px; top:14px; width:148px; height:19px; ">
  153. <choices>
  154. <itemset>
  155. <label/>
  156. <value/>
  157. </itemset>
  158. </choices>
  159. </select1>
  160. <caption id="cap_instcd" class="search_name" style="left:209px; top:14px; width:94px; height:17px; ">근무병원 :</caption>
  161. <input id="input1" ref="/root/send/req/ngdtym" inputtype="date" format="yyyy-mm" style="left:65px; top:14px; width:100px; height:19px; "/>
  162. <button id="button1" class="btn5_letter4" style="left:5px; top:43px; width:64px; height:19px; text-align:left; ">
  163. <caption>일괄생성</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. model.removeNodeset(grd_ngdtregtermlist.nodeset);
  167. for(var i=1; i<=model.instance1.selectNodes("/root/init/comcd/R02340/R02340").length; i++){
  168. var deptcd = model.getValue("/root/init/comcd/R02340/R02340["+i+"]/cdid");
  169. if (deptcd != "AH" && deptcd != "TB" && deptcd != "HS" ) {
  170. grd_ngdtregtermlist.addRow();
  171. model.setValue(
  172. grd_ngdtregtermlist.nodeset +"[" + (grd_ngdtregtermlist.rows - grd_ngdtregtermlist.fixedRows) + "]/deptcd",
  173. model.getValue("/root/init/comcd/R02340/R02340["+i+"]/cdid")
  174. );
  175. model.setValue(
  176. grd_ngdtregtermlist.nodeset +"[" + (grd_ngdtregtermlist.rows - grd_ngdtregtermlist.fixedRows) + "]/fromdd",
  177. model.getValue("/root/tempdd/fromdd")
  178. );
  179. model.setValue(
  180. grd_ngdtregtermlist.nodeset +"[" + (grd_ngdtregtermlist.rows - grd_ngdtregtermlist.fixedRows) + "]/todd",
  181. model.getValue("/root/tempdd/todd")
  182. );
  183. model.setValue(
  184. grd_ngdtregtermlist.nodeset +"[" + (grd_ngdtregtermlist.rows - grd_ngdtregtermlist.fixedRows) + "]/instcd",
  185. cmb_instcd.value
  186. );
  187. model.setValue(
  188. grd_ngdtregtermlist.nodeset +"[" + (grd_ngdtregtermlist.rows - grd_ngdtregtermlist.fixedRows) + "]/ngdtym",
  189. input1.value
  190. );
  191. }
  192. }
  193. model.refresh();
  194. // var retMes = messageBox("저장 하시겠습니까?", "Q999");
  195. // if ( retMes != 6) {
  196. // return;
  197. // }
  198. //
  199. // model.setValue("/root/send/save", grd_ngdtschelist.getUpdateData("update"));
  200. //
  201. // if (submit("TXRTS01201"))
  202. // {
  203. // grd_ngdtschelist.clearStatus();
  204. // }
  205. ]]>
  206. </script>
  207. </button>
  208. <input id="input2" ref="/root/tempdd/fromdd" inputtype="date" format="yyyy-mm-dd" style="left:73px; top:43px; width:100px; height:19px; "/>
  209. <caption id="caption1" style="left:175px; top:45px; width:10px; height:20px; ">-</caption>
  210. <input id="input3" ref="/root/tempdd/todd" inputtype="date" format="yyyy-mm-dd" style="left:185px; top:43px; width:100px; height:19px; "/>
  211. <button id="button2" class="btn5_letter4" style="left:385px; top:45px; width:64px; height:19px; text-align:left; ">
  212. <caption>SMS전송</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. misfGridInit(grd_msg);
  216. var fPhone = '';
  217. var sPhone = '';
  218. var fphoneno = model.getValue("/root/init/mptable/mpphonno");
  219. tPhone = fphoneno.split("-");
  220. fphoneno = '';
  221. for(var r = 0; r < tPhone.length; r++ ){
  222. fphoneno += tPhone[r];
  223. }
  224. if(fphoneno == '') return;
  225. model.setValue("/root/main/smsdata/bizabbr", "mis"); // 그룹명, ex> mis, com, tis, his...등등...
  226. model.setValue("/root/main/smsdata/replytelno", fphoneno); // 발신자 전화번호
  227. model.setValue("/root/main/smsdata/rsrvyn", 0); // 예약전송 구분
  228. model.setValue("/root/main/smsdata/rsrvdate", getCurrentDate()); // 전송 날자
  229. model.setValue("/root/main/smsdata/rsrvtime", getCurrentTime().substr(0,4)); // 전송 시간
  230. model.setValue("/root/main/smsdata/msgcnts", ""); // 전송할 메세지
  231. model.setValue("/root/main/smsdata/closeflag", "N"); // 메시지 전송 팝업화면을 바로 닫기위한 구분자.
  232. for(var i = grd_ngdtregtermlist.fixedRows; i < grd_ngdtregtermlist.rows; i++){
  233. if(grd_ngdtregtermlist.valueMatrix(i, grd_ngdtregtermlist.colRef("smsyn")) == "Y"){
  234. if(grd_ngdtregtermlist.valueMatrix(i, grd_ngdtregtermlist.colRef("mpphonno")) != ''){
  235. misfGridIUD(grd_msg, "A");
  236. fPhone = grd_ngdtregtermlist.valueMatrix(i, grd_ngdtregtermlist.colRef("mpphonno")).split("-");
  237. sPhone = '';
  238. for(var p = 0; p < fPhone.length; p++ ){
  239. sPhone += fPhone[p];
  240. }
  241. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("chk")) = 'Y'; // 여기서 Y의 의미는 문자메세지를 보낼때 팝업화면에서 전송받을 수신자의 선택유무다. 무조건 보내기 위해 Y 로 설정.
  242. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrnm")) = grd_ngdtregtermlist.valueMatrix(i, grd_ngdtregtermlist.colRef("emplnm")); // 수신자 이름 설정.
  243. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrtelno")) = sPhone; // 수신자 전화번호 설정.
  244. }
  245. }
  246. }
  247. rpvfOpenSMS(10, 10, "/root/main/smsdata");
  248. // var retMes = messageBox("저장 하시겠습니까?", "Q999");
  249. // if ( retMes != 6) {
  250. // return;
  251. // }
  252. //
  253. // model.setValue("/root/send/save", grd_ngdtschelist.getUpdateData("update"));
  254. //
  255. // if (submit("TXRTS01201"))
  256. // {
  257. // grd_ngdtschelist.clearStatus();
  258. // }
  259. ]]>
  260. </script>
  261. </button>
  262. <button id="button3" class="btn5_letter5" style="left:305px; top:45px; width:75px; height:19px; text-align:left; ">
  263. <caption>전월Copy</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. messageBox("이전에 등록된 기준 정보가 있을 경우 전부 삭제 됩니다.", "I");
  267. if (messageBox("전월 당직 등록 기간 정보를 " ,"Q002") != 6) return;
  268. submit("TXRTS03002");
  269. btn_search.dispatch("DOMActivate");
  270. // var retMes = messageBox("저장 하시겠습니까?", "Q999");
  271. // if ( retMes != 6) {
  272. // return;
  273. // }
  274. //
  275. // model.setValue("/root/send/save", grd_ngdtschelist.getUpdateData("update"));
  276. //
  277. // if (submit("TXRTS01201"))
  278. // {
  279. // grd_ngdtschelist.clearStatus();
  280. // }
  281. ]]>
  282. </script>
  283. </button>
  284. <button id="btn_addqest" class="btn2_letter3" style="left:1015px; top:45px; width:53px; height:19px; ">
  285. <caption>행추가</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. if(!isRequiredControls("cmb_instcd"))return;
  289. misfGridIUD(grd_ngdtregtermlist, "A");
  290. // var p_row = grd_reptinfo.row;
  291. // var p_rows = grd_reptinfo.rows;
  292. // grd_reptinfo.insertRow(p_row,"below", "false", "true");
  293. // var srcRowIdx = grd_reptinfo.row - 1;
  294. // var destRowIdx = grd_reptinfo.row;
  295. // var catgryid =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgryid"));
  296. // var catgrynm =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrynm"));
  297. // var yy = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("yy"));
  298. // var apprtcdrflag = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("apprtcdrflag"));
  299. // var catgrysortseq = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrysortseq"));
  300. // if( p_rows== destRowIdx){
  301. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
  302. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
  303. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = 'Y';
  304. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
  305. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = parseFloat(catgrysortseq)+1;
  306. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("sortseq")) = '1';
  307. // grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = false;
  308. //
  309. // }else{
  310. // grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = true;
  311. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid")) = catgryid;
  312. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrynm")) = catgrynm;
  313. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
  314. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
  315. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = "Y";
  316. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
  317. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = catgrysortseq;
  318. //
  319. //
  320. //
  321. // }
  322. /* for (var i=0; i<grd_reptinfo.cols; i++)
  323. {
  324. grd_reptinfo.valueMatrix(destRowIdx, i) = grd_reptinfo.valueMatrix(srcRowIdx, i);
  325. }
  326. var catgryid = grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid"));
  327. grd_reptinfo.col = grd_reptinfo.colRef("qestcnts");*/
  328. // grd_reptinfo.dispatch("onrowchanged");
  329. //
  330. // grd_reptinfo.refresh();
  331. ]]>
  332. </script>
  333. </button>
  334. <button id="btn_delqest" class="btn2_letter3" style="left:1070px; top:45px; width:53px; height:19px; ">
  335. <caption>행삭제</caption>
  336. <script type="javascript" ev:event="DOMActivate">
  337. <![CDATA[
  338. misfGridIUD(grd_ngdtregtermlist, "D");
  339. ]]>
  340. </script>
  341. </button>
  342. <button id="btn_execl" class="btn2_letter4" style="left:1125px; top:45px; width:64px; height:19px; ">
  343. <caption>엑셀저장</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  347. if (fileName != "") {
  348. grd_ngdtregtermlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  349. }
  350. ]]>
  351. </script>
  352. </button>
  353. <button id="button4" class="btn2_letter4" style="left:505px; top:45px; width:59px; height:19px; ">
  354. <caption>전체선택</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. for (var i = grd_ngdtregtermlist.fixedRows; i<grd_ngdtregtermlist.rows; i++) {
  358. grd_ngdtregtermlist.valueMatrix(i, grd_ngdtregtermlist.colRef("smsyn")) = 'Y';
  359. }
  360. // var p_row = grd_reptinfo.row;
  361. // var p_rows = grd_reptinfo.rows;
  362. // grd_reptinfo.insertRow(p_row,"below", "false", "true");
  363. // var srcRowIdx = grd_reptinfo.row - 1;
  364. // var destRowIdx = grd_reptinfo.row;
  365. // var catgryid =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgryid"));
  366. // var catgrynm =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrynm"));
  367. // var yy = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("yy"));
  368. // var apprtcdrflag = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("apprtcdrflag"));
  369. // var catgrysortseq = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrysortseq"));
  370. // if( p_rows== destRowIdx){
  371. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
  372. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
  373. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = 'Y';
  374. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
  375. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = parseFloat(catgrysortseq)+1;
  376. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("sortseq")) = '1';
  377. // grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = false;
  378. //
  379. // }else{
  380. // grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = true;
  381. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid")) = catgryid;
  382. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrynm")) = catgrynm;
  383. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
  384. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
  385. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = "Y";
  386. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
  387. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = catgrysortseq;
  388. // }
  389. /* for (var i=0; i<grd_reptinfo.cols; i++)
  390. {
  391. grd_reptinfo.valueMatrix(destRowIdx, i) = grd_reptinfo.valueMatrix(srcRowIdx, i);
  392. }
  393. var catgryid = grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid"));
  394. grd_reptinfo.col = grd_reptinfo.colRef("qestcnts");*/
  395. // grd_reptinfo.dispatch("onrowchanged");
  396. //
  397. // grd_reptinfo.refresh();
  398. ]]>
  399. </script>
  400. </button>
  401. <button id="button5" class="btn2_letter6" style="left:571px; top:45px; width:86px; height:19px; ">
  402. <caption>전체선택취소</caption>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. for (var i=grd_ngdtregtermlist.fixedRows; i<grd_ngdtregtermlist.rows; i++) {
  406. grd_ngdtregtermlist.valueMatrix(i, grd_ngdtregtermlist.colRef("smsyn")) = 'N';
  407. }
  408. // var p_row = grd_reptinfo.row;
  409. // var p_rows = grd_reptinfo.rows;
  410. // grd_reptinfo.insertRow(p_row,"below", "false", "true");
  411. // var srcRowIdx = grd_reptinfo.row - 1;
  412. // var destRowIdx = grd_reptinfo.row;
  413. // var catgryid =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgryid"));
  414. // var catgrynm =grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrynm"));
  415. // var yy = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("yy"));
  416. // var apprtcdrflag = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("apprtcdrflag"));
  417. // var catgrysortseq = grd_reptinfo.valueMatrix(srcRowIdx, grd_reptinfo.colRef("catgrysortseq"));
  418. // if( p_rows== destRowIdx){
  419. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
  420. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
  421. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = 'Y';
  422. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
  423. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = parseFloat(catgrysortseq)+1;
  424. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("sortseq")) = '1';
  425. // grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = false;
  426. //
  427. // }else{
  428. // grd_reptinfo.isReadOnly(destRowIdx.row, grd_reptinfo.colRef("catgryid")) = true;
  429. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid")) = catgryid;
  430. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrynm")) = catgrynm;
  431. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("yy")) = yy;
  432. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("apprtcdrflag")) = apprtcdrflag;
  433. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryuseyn")) = "Y";
  434. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("itemuseyn")) = 'Y';
  435. // grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgrysortseq")) = catgrysortseq;
  436. //
  437. //
  438. //
  439. // }
  440. /* for (var i=0; i<grd_reptinfo.cols; i++)
  441. {
  442. grd_reptinfo.valueMatrix(destRowIdx, i) = grd_reptinfo.valueMatrix(srcRowIdx, i);
  443. }
  444. var catgryid = grd_reptinfo.valueMatrix(destRowIdx, grd_reptinfo.colRef("catgryid"));
  445. grd_reptinfo.col = grd_reptinfo.colRef("qestcnts");*/
  446. // grd_reptinfo.dispatch("onrowchanged");
  447. //
  448. // grd_reptinfo.refresh();
  449. ]]>
  450. </script>
  451. </button>
  452. <input id="ipt_systemflag" ref="/root/init/systemflag" visibility="hidden" style="left:685px; top:45px; width:100px; height:20px; "/>
  453. <input id="input4" ref="/root/init/mptable/mpphonno" visibility="hidden" style="left:815px; top:45px; width:100px; height:19px; "/>
  454. <datagrid id="grd_msg" nodeset="/root/main/smsdata/recvrlist" visibility="hidden" caption="체크여부^이름^전화번호" colsep="^" colwidth="30, 50, 70" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:295px; top:440px; width:60px; height:60px; ">
  455. <col ref="chk"/>
  456. <col ref="recvrnm"/>
  457. <col ref="recvrtelno"/>
  458. </datagrid>
  459. </group>
  460. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  461. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
  462. <caption>저장</caption>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. if(!checkKeyColumn("grd_ngdtregtermlist")) return;
  466. misfSave("TXRTS03001");
  467. btn_search.dispatch("DOMActivate");
  468. model.refresh();
  469. // var retMes = messageBox("저장 하시겠습니까?", "Q999");
  470. // if ( retMes != 6) {
  471. // return;
  472. // }
  473. //
  474. // model.setValue("/root/send/save", grd_ngdtschelist.getUpdateData("update"));
  475. //
  476. // if (submit("TXRTS01201"))
  477. // {
  478. // grd_ngdtschelist.clearStatus();
  479. // }
  480. ]]>
  481. </script>
  482. </button>
  483. </group>
  484. </xhtml:body>
  485. </xhtml:html>