SPPMC05500_지인관리.xrw 25 KB

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