SPPMC05700_지인관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  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. <recminfo>
  11. <recminfolist>
  12. <instcd/>
  13. <pid/>
  14. <hngnm/>
  15. <recmerid/>
  16. <recmernm/>
  17. <recmerrela/>
  18. <rrgstno1/>
  19. <rrgstno2/>
  20. <hometel/>
  21. <mpphontel/>
  22. <etctel/>
  23. <recmertelno/>
  24. <recmersmsyn/>
  25. <remfact/>
  26. <emplyn/>
  27. </recminfolist>
  28. </recminfo>
  29. <recmrgst>
  30. <recmrgstlist>
  31. <instcd/>
  32. <pid/>
  33. <hngnm/>
  34. <recmerid/>
  35. <recmernm/>
  36. <recmerrela/>
  37. <rrgstno1/>
  38. <rrgstno2/>
  39. <hometel/>
  40. <mpphontel/>
  41. <etctel/>
  42. <recmertelno/>
  43. <recmersmsyn/>
  44. <remfact/>
  45. </recmrgstlist>
  46. </recmrgst>
  47. <patinfo>
  48. <patinfolist/>
  49. </patinfo>
  50. </main>
  51. <send>
  52. <pid/>
  53. <recmerid/>
  54. <nodecnt/>
  55. </send>
  56. <init>
  57. <P0327list>
  58. <P0327>
  59. <cdnm/>
  60. <cdid/>
  61. </P0327>
  62. </P0327list>
  63. </init>
  64. <hidden>
  65. <patinfo>
  66. <patinfolist/>
  67. </patinfo>
  68. <source>
  69. <srchcond/>
  70. <pid/>
  71. </source>
  72. </hidden>
  73. </root>
  74. </instance>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. zbcfGetCodeList(new Array("P0327"), new Array("/root/init/P0327list"));
  78. //초기화
  79. fInitialize();
  80. var pid = opener.javascript.getParameter("SPPMC05600_pid");
  81. if (pid != "") {
  82. model.setValue("/root/send/pid", pid);
  83. btn_search.dispatch("DOMActivate");
  84. if(instance1.selectNodes("/root/main/recmrgst/recmrgstlist").length > 0){
  85. datagrid1.row = 1;
  86. model.copyNode("/root/main/recminfo/recminfolist", "/root/main/recmrgst/recmrgstlist[1]");
  87. btn_ins.disabled = true;
  88. model.refresh()
  89. if (getUserInfo("dutplcecd") == "3340100000" || // 고객서비스파트
  90. getUserInfo("dutplcecd") == "4040300000" || // 원무팀
  91. getUserInfo("dutplcecd") == "4101000000" || // 고객지원파트
  92. getUserInfo("userid") == "PAM" ||
  93. getUserInfo("userid") == model.getValue("/root/main/recmrgst/recmrgstlist[" + datagrid1.row + "]/recmerid")) {
  94. btn_upt.disabled = false;
  95. btn_del.disabled = false;
  96. } else {
  97. btn_upt.disabled = true;
  98. btn_del.disabled = true;
  99. }
  100. }
  101. }
  102. ]]>
  103. </script>
  104. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  105. <submission id="TRPMC05701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recmrgst"/>
  106. <submission id="TRPMC05702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/hidden/patinfo"/>
  107. <submission id="TXPMC05701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/recminfo/recminfolist" resultref="/root/main/recmrgst"/>
  108. </model>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  115. <script type="javascript">
  116. <![CDATA[
  117. function fInitialize() {
  118. model.resetInstanceNode("/root/send");
  119. model.resetInstanceNode("/root/main/recminfo/recminfolist");
  120. model.resetInstanceNode("/root/main/recmrgst/recmrgstlist");
  121. btn_ins.disabled = false; //신청
  122. btn_upt.disabled = true; //수정
  123. btn_del.disabled = true; //삭제
  124. model.setValue("/root/main/recminfo/recminfolist/recmerid", getUserId());
  125. model.setValue("/root/main/recminfo/recminfolist/recmernm", getUserName());
  126. if (getUserId() == "PAM" ||
  127. getUserInfo("dutplcecd") == "3340100000" || // 고객서비스파트
  128. getUserInfo("dutplcecd") == "4040300000" || // 원무팀
  129. getUserInfo("dutplcecd") == "4101000000") { // 고객지원파트
  130. btn_srchrecmer.visible = true;
  131. }
  132. /*
  133. if (getUserInfo("dutplcecd") != "3340100000" && getUserInfo("userid") != "PAM") {
  134. model.setValue("/root/main/recminfo/recminfolist/recmerid", getUserInfo("userid"));
  135. model.setValue("/root/main/recminfo/recminfolist/recmernm", getUserInfo("usernm"));
  136. output1.refresh();
  137. output67.refresh();
  138. btn_srchrecmer.disabled = true;
  139. }
  140. */
  141. model.refresh();
  142. }
  143. function fdataCheck(){
  144. var emplyn = model.getValue("/root/main/recminfo/recminfolist/emplyn");
  145. if (model.getValue("/root/main/recminfo/recminfolist/pid") == '') {
  146. messageBox("환자번호를 입력 후 진행하세요!", "E999", "");
  147. return false;
  148. } else if (emplyn != "Y" && model.getValue("/root/main/recminfo/recminfolist/recmerid") == '') {
  149. messageBox("추천인 정보를 입력 후 진행하세요!", "E999", "");
  150. return false;
  151. } else if (model.getValue("/root/main/recminfo/recminfolist/recmerrela") == '') {
  152. messageBox("관계 정보를 입력 후 진행하세요!", "E999", "");
  153. return false;
  154. } else if (emplyn != "Y" && model.getValue("/root/main/recminfo/recminfolist/recmertelno") == '') {
  155. messageBox("추천인 전화번호 정보를 입력 후 진행하세요!", "E999", "");
  156. return false;
  157. } else if (model.getValue("/root/main/recminfo/recminfolist/recmersmsyn") == '') {
  158. messageBox("SMS 전송여부를 입력 후 진행하세요!", "E999", "");
  159. return false;
  160. }
  161. return true;
  162. }
  163. ]]>
  164. </script>
  165. </xhtml:head>
  166. <xhtml:body pagewidth="816" pageheight="440" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  167. <group id="group3" scroll="auto" style="left:0px; top:225px; width:800px; height:176px; ">
  168. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:95px; height:15px; ">지인관리</caption>
  169. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:800px; y2:20px; "/>
  170. <input id="ipt_pid" ref="/root/main/recminfo/recminfolist/pid" class="input_s_essential" disabled="true" appearance="input" style="left:92px; top:26px; width:130px; height:19px; ">
  171. <script type="javascript" ev:event="onkeypress">
  172. <![CDATA[
  173. return;
  174. if (event.keyCode == "13") {
  175. model.setValue("/root/hidden/source/srchcond", "1");
  176. var pid = ipt_pid.currentText;
  177. if (pid == '' || pid == ' ') {
  178. model.setValue("/root/main/recminfo/recminfolist/pid", '');
  179. model.refresh();
  180. } else if ( pid.length < 2 || isNaN(pid)) {
  181. model.setValue("/root/main/recminfo/recminfolist/pid", '');
  182. model.refresh();
  183. } else {
  184. model.setValue("/root/hidden/source/pid", pid);
  185. model.resetInstanceNode("/root/hidden/patinfo/patinfolist");
  186. if (submit("TRPMC05702")) {
  187. if (getNodesetCount("/root/hidden/patinfo/patinfolist/pid") > 0) {
  188. model.setValue("/root/main/recminfo/recminfolist/pid", model.getValue("/root/hidden/patinfo/patinfolist/pid"));
  189. model.setValue("/root/main/recminfo/recminfolist/hngnm", model.getValue("/root/hidden/patinfo/patinfolist/hngnm"));
  190. model.setValue("/root/main/recminfo/recminfolist/rrgstno1", model.getValue("/root/hidden/patinfo/patinfolist/rrgstno1"));
  191. model.setValue("/root/main/recminfo/recminfolist/rrgstno2", model.getValue("/root/hidden/patinfo/patinfolist/rrgstno2"));
  192. model.setValue("/root/main/recminfo/recminfolist/hometel", model.getValue("/root/hidden/patinfo/patinfolist/hometel"));
  193. model.setValue("/root/main/recminfo/recminfolist/mpphontel", model.getValue("/root/hidden/patinfo/patinfolist/mpphontel"));
  194. model.setValue("/root/main/recminfo/recminfolist/etctel", model.getValue("/root/hidden/patinfo/patinfolist/etctel1"));
  195. } else {
  196. model.setValue("/root/main/recminfo/recminfolist/pid", '');
  197. }
  198. model.refresh();
  199. }
  200. }
  201. }
  202. ]]>
  203. </script>
  204. </input>
  205. <caption id="caption29" class="cell_1" style="left:0px; top:25px; width:90; height:23px; vertical-align:middle; ">등록번호</caption>
  206. <input id="ipt_hngnm" ref="/root/main/recminfo/recminfolist/hngnm" disabled="true" appearance="input" style="left:342px; top:26px; width:155px; height:19px; "/>
  207. <caption id="caption2" class="cell_1" style="left:250px; top:25px; width:90; height:23px; vertical-align:middle; ">이름</caption>
  208. <caption id="caption4" class="cell_1" style="left:0px; top:49px; width:90; height:23px; vertical-align:middle; ">전화번호[집]</caption>
  209. <input id="input3" ref="/root/main/recminfo/recminfolist/hometel" disabled="true" appearance="input" style="left:92px; top:51px; width:155px; height:19px; "/>
  210. <input id="ipt_rrgstno1" ref="/root/main/recminfo/recminfolist/rrgstno1" disabled="true" navindex="1" autonext="true" format="999999" style="left:592px; top:26px; width:100px; height:19px; "/>
  211. <input id="ipt_rrgstno2" ref="/root/main/recminfo/recminfolist/rrgstno2" disabled="true" navindex="2" autonext="false" format="9999999" style="left:700px; top:26px; width:100px; height:19px; "/>
  212. <caption id="caption35" class="cell_1" style="left:500px; top:25px; width:90; height:23px; ">주민번호</caption>
  213. <caption id="caption3" class="cell_1" style="left:250px; top:49; width:90; height:23px; ">휴대폰</caption>
  214. <input id="input2" ref="/root/main/recminfo/recminfolist/mpphontel" disabled="true" style="left:342px; top:51px; width:155px; height:19px; "/>
  215. <caption id="caption5" class="cell_1" style="left:500; top:49; width:90px; height:23px; ">기타전화번호</caption>
  216. <input id="input4" ref="/root/main/recminfo/recminfolist/etctel" disabled="true" style="left:592px; top:51px; width:208px; height:19px; "/>
  217. <caption id="caption6" class="cell_1" style="left:0px; top:99px; width:90px; height:73px; ">참고사항</caption>
  218. <caption id="caption8" class="cell_1" style="left:500; top:74px; width:90; height:23px; vertical-align:middle; ">관계</caption>
  219. <caption id="caption9" class="cell_1" style="left:0px; top:74px; width:90; height:23px; ">추천인</caption>
  220. <caption id="caption10" class="cell_1" style="left:250px; top:74px; width:90; height:23px; ">추천인 전화</caption>
  221. <input id="input6" ref="/root/main/recminfo/recminfolist/recmertelno" style="left:342px; top:76px; width:155px; height:19px; "/>
  222. <caption id="caption11" class="cell_1" style="left:500; top:99px; width:90; height:23px; vertical-align:middle; ">SMS 수신여부</caption>
  223. <output id="output67" ref="/root/main/recminfo/recminfolist/recmernm" class="output_fix" appearance="output" style="left:92; top:76px; width:130px; height:19px; "/>
  224. <button id="btn_srchrecmer" class="icon_search" visibility="hidden" style="left:227px; top:76px; width:16px; height:16px; ">
  225. <caption/>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. model.makeNode("/root/main/userpopupinfo/param");
  229. model.makeNode("/root/main/userpopupinfo/flag");
  230. model.makeNode("/root/main/userpopupinfo/searchitem");
  231. model.setValue("/root/main/userpopupinfo/param" , "_OneS");
  232. model.setValue("/root/main/userpopupinfo/flag" , "usernm");
  233. model.setValue("/root/main/userpopupinfo/searchitem" , "사용자명");
  234. modal("SPZSU10103_사용자부서조회", "", "200", "200", "SPZSU10103","/root/main/userpopupinfo","/root/main/temp");
  235. var iParam = getParameter("SPZSU10103_");
  236. model.removenode("/root/hidden/onerowselect");
  237. model.makeNode("/root/hidden/onerowselect");
  238. setCSVToNode("/root/hidden/onerowselect", iParam);
  239. model.setValue("/root/main/recminfo/recminfolist/recmerid" , model.getValue("/root/hidden/onerowselect/list/userid"));
  240. model.setValue("/root/main/recminfo/recminfolist/recmernm" , model.getValue("/root/hidden/onerowselect/list/usernm"));
  241. clearParameter("SPZSU10103_");
  242. model.refresh();
  243. ]]>
  244. </script>
  245. </button>
  246. <line id="line105" class="line_2" style="x1:0px; y1:47px; x2:800px; y2:47px; "/>
  247. <line id="line2" class="line_2" style="x1:0px; y1:72px; x2:800px; y2:72px; "/>
  248. <line id="line3" class="line_2" style="x1:500px; y1:122px; x2:800px; y2:122px; "/>
  249. <line id="line4" class="line_2" style="x1:0px; y1:97px; x2:800px; y2:97px; "/>
  250. <line id="line112" class="line_3" style="x1:0px; y1:172px; x2:800px; y2:172px; "/>
  251. <select1 id="combo37" ref="/root/main/recminfo/recminfolist/recmerrela" class="combo_default" appearance="minimal" style="left:592px; top:76px; width:208px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/P0327list/P0327">
  254. <label ref="cdnm"/>
  255. <value ref="cdid"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <button id="btn_ptsrch" accesskey="f2" class="icon_search" style="left:227px; top:28px; width:16px; height:16px; ">
  260. <caption/>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. model.makeNode("/root/hidden/source/autoflag");
  264. model.setValue("/root/hidden/source/autoflag", "Y");
  265. modal("SPPMC05800", "1", "150", "150", "SPPMC05800");
  266. var popupendflag = model.getValue("/root/main/popupendflag");
  267. if (popupendflag == "ok"){
  268. model.setValue("/root/main/recminfo/recminfolist/instcd", model.getValue("/root/main/patinfo/patinfolist/instcd"));
  269. model.setValue("/root/main/recminfo/recminfolist/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  270. model.setValue("/root/main/recminfo/recminfolist/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  271. model.setValue("/root/main/recminfo/recminfolist/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  272. model.setValue("/root/main/recminfo/recminfolist/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  273. model.setValue("/root/main/recminfo/recminfolist/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
  274. model.setValue("/root/main/recminfo/recminfolist/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
  275. model.setValue("/root/main/recminfo/recminfolist/etctel", model.getValue("/root/main/patinfo/patinfolist/etctel"));
  276. model.setValue("/root/main/recminfo/recminfolist/emplyn", model.getValue("/root/main/patinfo/patinfolist/emplyn"));
  277. }
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="btn_clear" class="btn2_letter3" style="left:747px; top:0px; width:53px; height:19px; ">
  283. <caption>Clear</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. model.resetInstanceNode("/root/main/recminfo/recminfolist");
  287. btn_ins.disabled = false; //신청
  288. btn_upt.disabled = true; //수정
  289. btn_del.disabled = true; //삭제
  290. model.refresh();
  291. ]]>
  292. </script>
  293. </button>
  294. <select1 id="radio1" ref="/root/main/recminfo/recminfolist/recmersmsyn" appearance="full" cols="2" overflow="visible" style="left:592; top:100px; width:100px; height:20px; border-style:none; ">
  295. <choices>
  296. <item>
  297. <label>Yes</label>
  298. <value>Y</value>
  299. </item>
  300. <item>
  301. <label>No</label>
  302. <value>N</value>
  303. </item>
  304. </choices>
  305. </select1>
  306. <output id="output1" ref="/root/main/recminfo/recminfolist/recmerid" class="output_fix" visibility="hidden" appearance="output" style="left:105px; top:86px; width:130px; height:19px; "/>
  307. <textarea id="textarea1" ref="/root/main/recminfo/recminfolist/remfact" scroll="autovscroll" maxbyte="600" style="left:92px; top:100px; width:405px; height:71px; padding:5; "/>
  308. </group>
  309. <group id="group1" scroll="auto" style="left:0px; top:402px; width:800px; height:32px; ">
  310. <button id="btn_del" class="btn4_letter2" navindex="9" style="left:686px; top:5px; width:56px; height:22px; ">
  311. <caption>삭제</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. //입력사항 체크
  315. if(fdataCheck() ) {
  316. model.makeNode("/root/main/recminfo/recminfolist/chckval");
  317. model.setValue("/root/main/recminfo/recminfolist/chckval", "D");
  318. if(submit("TXPMC05701")) {
  319. btn_clear.dispatch("DOMActivate");
  320. model.resetInstanceNode("/root/main/recmrgst/recmrgstlist");
  321. }
  322. }
  323. ]]>
  324. </script>
  325. </button>
  326. <button id="btn_close" class="btn4_letter2" style="left:744px; top:5px; width:56px; height:22px; ">
  327. <caption>닫기</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. if(datagrid1.rows > 1){
  331. var row = datagrid1.row;
  332. if(row < 0){
  333. row = 1;
  334. }
  335. var recmerid = model.getValue("/root/main/recmrgst/recmrgstlist[" + row + "]/recmerid");
  336. var recmernm = model.getValue("/root/main/recmrgst/recmrgstlist[" + row + "]/recmernm");
  337. var recmerrela = model.getValue("/root/main/recmrgst/recmrgstlist[" + row + "]/recmerrela");
  338. var recmersmsyn = model.getValue("/root/main/recmrgst/recmrgstlist[" + row + "]/recmersmsyn");
  339. if(recmerid != ""){
  340. opener.javascript.setParameter("SPPMC05500_recmyn" , "Y");
  341. opener.javascript.setParameter("SPPMC05500_recmerid" , recmerid);
  342. opener.javascript.setParameter("SPPMC05500_recmernm" , recmernm);
  343. opener.javascript.setParameter("SPPMC05500_recmerrela" , recmerrela);
  344. opener.javascript.setParameter("SPPMC05500_recmersmsyn" , recmersmsyn);
  345. opener.javascript.setParameter("SPPMC05500_popupendflag" , "Y");
  346. }else{
  347. opener.javascript.setParameter("SPPMC05500_popupendflag" , "N");
  348. }
  349. }else{
  350. opener.javascript.setParameter("SPPMC05500_recmyn" , "");
  351. opener.javascript.setParameter("SPPMC05500_recmerid" , "");
  352. opener.javascript.setParameter("SPPMC05500_recmernm" , "");
  353. opener.javascript.setParameter("SPPMC05500_recmerrela" , "");
  354. opener.javascript.setParameter("SPPMC05500_recmersmsyn" , "");
  355. opener.javascript.setParameter("SPPMC05500_popupendflag" , "Y");
  356. }
  357. window.close();
  358. ]]>
  359. </script>
  360. </button>
  361. <button id="btn_upt" class="btn4_letter2" navindex="9" style="left:628px; top:5px; width:56px; height:22px; ">
  362. <caption>수정</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. //입력사항 체크
  366. if(fdataCheck()){
  367. model.makeNode("/root/main/recminfo/recminfolist/chckval");
  368. model.setValue("/root/main/recminfo/recminfolist/chckval", "U");
  369. if(submit("TXPMC05701")) {
  370. model.setValue("/root/send/pid", model.getValue("/root/main/recminfo/recminfolist/pid"));
  371. btn_clear.dispatch("DOMActivate");
  372. ipt_pid.refresh();
  373. btn_search.dispatch("DOMActivate");
  374. }
  375. }
  376. ]]>
  377. </script>
  378. </button>
  379. <button id="btn_ins" class="btn4_letter2" navindex="9" style="left:570px; top:5px; width:56px; height:22px; ">
  380. <caption>신청</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. //입력사항 체크
  384. if (fdataCheck()) {
  385. model.makeNode("/root/main/recminfo/recminfolist/chckval");
  386. model.setValue("/root/main/recminfo/recminfolist/chckval", "I");
  387. if(submit("TXPMC05701")){
  388. model.setValue("/root/send/pid", model.getValue("/root/main/recminfo/recminfolist/pid"));
  389. btn_clear.dispatch("DOMActivate");
  390. ipt_pid.refresh();
  391. btn_search.dispatch("DOMActivate");
  392. }
  393. }
  394. ]]>
  395. </script>
  396. </button>
  397. </group>
  398. <group id="group4" style="left:0px; top:1px; width:800px; height:35px; ">
  399. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:800px; height:35px; "/>
  400. <caption id="caption12" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  401. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:735px; top:7px; width:56px; height:22px; ">
  402. <caption>조회</caption>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. if( model.getValue("/root/send/pid") == ''){
  406. if ( getUserInfo("userid") != "PAM" && getUserInfo("dutplcecd") != "3340100000" ) {
  407. messageBox("환자 등록번호를 입력하신 후 조회하세요!!", "E999", "");
  408. return false;
  409. }
  410. }
  411. model.setValue("/root/send/nodecnt", "-");
  412. if(submit("TRPMC05701")){
  413. if( getNodesetCount("/root/main/recmrgst/recmrgstlist/pid") < 1 ){
  414. messageBox("검색 결과가 없습니다.", "I999", "");
  415. }
  416. }
  417. ]]>
  418. </script>
  419. </button>
  420. <line id="line13" class="line_4" style="x1:724px; y1:7px; x2:724px; y2:29px; border-color:#ffe4bb; "/>
  421. <caption id="caption13" class="search_name" visibility="hidden" style="left:215px; top:9px; width:90px; height:17px; ">추천인ID :</caption>
  422. <input id="input1" ref="/root/send/pid" class="input_s_essential" appearance="input" style="left:107px; top:9px; width:70px; height:19px; ">
  423. <script type="javascript" ev:event="onkeypress">
  424. <![CDATA[
  425. //무조건 재조회 할수 있도록 clear 후에 조회 호출 필요
  426. if (event.keyCode == "13"){
  427. model.setValue("/root/send/pid", input1.currentText);
  428. btn_search.dispatch("DOMActivate");
  429. }
  430. ]]>
  431. </script>
  432. </input>
  433. <button id="button3" accesskey="f2" class="icon_search" style="left:181px; top:10px; width:16px; height:16px; ">
  434. <caption/>
  435. <script type="javascript" ev:event="DOMActivate">
  436. <![CDATA[
  437. model.makeNode("/root/hidden/source/autoflag");
  438. model.setValue("/root/hidden/source/autoflag", "Y");
  439. modal("SPPMC05800", "1", "150", "150", "SPPMC05800");
  440. var popupendflag = model.getValue("/root/main/popupendflag");
  441. if(popupendflag == "ok"){
  442. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  443. }
  444. model.refresh();
  445. ]]>
  446. </script>
  447. </button>
  448. <input id="input8" ref="/root/send/recmerid" class="input_s_essential" visibility="hidden" appearance="input" style="left:307px; top:9px; width:70px; height:19px; ">
  449. <script type="javascript" ev:event="onkeypress">
  450. <![CDATA[
  451. //무조건 재조회 할수 있도록 clear 후에 조회 호출 필요
  452. if (event.keyCode == "13"){
  453. model.setValue("/root/send/recmerid", input8.currentText);
  454. btn_search.dispatch("DOMActivate");
  455. }
  456. ]]>
  457. </script>
  458. </input>
  459. </group>
  460. <datagrid id="datagrid1" nodeset="/root/main/recmrgst/recmrgstlist" caption="환자기관코드^등록번호^환자이름^추천인^추천인ID^추천인부서^관계^주민번호^주민번호^전화번호[집]^핸드폰번호^기타전화번호^추천인 전화^SMS 수신여부^참고사항^최초등록자^최초등록일시^최종수정자^최종수정일시" colwidth="0, 60, 60, 60, 60, 100, 60, 60, 60, 90, 90, 90, 90, 90, 300, 100, 100, 100, 100" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:63px; width:800px; height:160px; ">
  461. <col ref="instcd" style="text-align:center; "/>
  462. <col ref="pid" style="text-align:center; "/>
  463. <col ref="hngnm" style="text-align:center; "/>
  464. <col ref="recmernm" style="text-align:center; "/>
  465. <col ref="recmerid" visibility="hidden" style="text-align:center; "/>
  466. <col ref="recmerdeptnm" style="text-align:center; "/>
  467. <col disabled="true" ref="recmerrela" type="combo" style="text-align:center; ">
  468. <choices>
  469. <itemset nodeset="/root/init/P0327list/P0327">
  470. <label ref="cdnm"/>
  471. <value ref="cdid"/>
  472. </itemset>
  473. </choices>
  474. </col>
  475. <col ref="rrgstno1" visibility="hidden" style="text-align:center; "/>
  476. <col ref="rrgstno2" visibility="hidden" style="text-align:center; "/>
  477. <col ref="hometel" style="text-align:center; "/>
  478. <col ref="mpphontel" style="text-align:center; "/>
  479. <col ref="etctel" style="text-align:center; "/>
  480. <col ref="recmertelno" style="text-align:center; "/>
  481. <col disabled="true" ref="recmersmsyn" type="combo" style="text-align:center; ">
  482. <choices>
  483. <item>
  484. <label>수신</label>
  485. <value>Y</value>
  486. </item>
  487. <item>
  488. <label>수신안함</label>
  489. <value>N</value>
  490. </item>
  491. </choices>
  492. </col>
  493. <col ref="remfact"/>
  494. <col ref="fstrgstrid" visibility="hidden" style="text-align:center; "/>
  495. <col ref="fstrgstdt" visibility="hidden" style="text-align:center; "/>
  496. <col ref="lastupdtrid" visibility="hidden" style="text-align:center; "/>
  497. <col ref="lastupdtdt" visibility="hidden" style="text-align:center; "/>
  498. <script type="javascript" ev:event="ondblclick">
  499. <![CDATA[
  500. if(isDataCell()){
  501. model.copyNode("/root/main/recminfo/recminfolist", "/root/main/recmrgst/recmrgstlist[" + datagrid1.row + "]");
  502. btn_ins.disabled = true;
  503. model.refresh();
  504. if (getUserInfo("dutplcecd") == "3340100000" || // 고객서비스파트
  505. getUserInfo("dutplcecd") == "4040300000" || // 원무팀
  506. getUserInfo("dutplcecd") == "4101000000" || // 고객지원파트
  507. getUserInfo("userid") == "PAM" ||
  508. getUserInfo("userid") == model.getValue("/root/main/recmrgst/recmrgstlist[" + datagrid1.row + "]/recmerid")) {
  509. btn_upt.disabled = false;
  510. btn_del.disabled = false;
  511. } else {
  512. btn_upt.disabled = true;
  513. btn_del.disabled = true;
  514. }
  515. }
  516. ]]>
  517. </script>
  518. </datagrid>
  519. <line id="line6" class="line_1" style="x1:0px; y1:58px; x2:800px; y2:58px; "/>
  520. <caption id="caption7" class="tit_2" style="left:5px; top:43px; width:95px; height:13px; ">등록내역</caption>
  521. </xhtml:body>
  522. </xhtml:html>