SPPMP01700_일반상담자분배리스트.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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. <gnrlcnstdtbt>
  11. <item>
  12. <orddd/>
  13. <ordtm/>
  14. <orddeptnm/>
  15. <orddeptcd/>
  16. <centnm/>
  17. <centcd/>
  18. <subdeptnm/>
  19. <subdeptcd/>
  20. <orddrnm/>
  21. <orddrid/>
  22. <rsrvflag/>
  23. <hngnm/>
  24. <pid/>
  25. <rrgstno/>
  26. <callrid/>
  27. <callrnm/>
  28. <callno/>
  29. <fstcalldt/>
  30. <scdcalldt/>
  31. <thdcalldt/>
  32. <cretno/>
  33. <orgcallno/>
  34. </item>
  35. </gnrlcnstdtbt>
  36. <result/>
  37. <histstatcd/>
  38. <srchflag/>
  39. <endcnfmyn/>
  40. <prcsstat/>
  41. </main>
  42. <send>
  43. <orddrid/>
  44. <orddeptcd/>
  45. <pid/>
  46. <callrid/>
  47. <cdgrupid/>
  48. <fromdd/>
  49. <todd/>
  50. <senddata/>
  51. <centcd/>
  52. <subdeptcd/>
  53. </send>
  54. <init>
  55. <P0037list>
  56. <P0037>
  57. <cdnm/>
  58. <cdid/>
  59. </P0037>
  60. </P0037list>
  61. <P0406list>
  62. <P0406>
  63. <cdid/>
  64. <cdnm/>
  65. </P0406>
  66. </P0406list>
  67. <P0341list>
  68. <P0341>
  69. <cdid/>
  70. <cdnm/>
  71. </P0341>
  72. </P0341list>
  73. <orddeptcd>
  74. <orddeptcdlist>
  75. <cd/>
  76. <nm/>
  77. </orddeptcdlist>
  78. </orddeptcd>
  79. <orddrid>
  80. <orddridlist>
  81. <cd/>
  82. <nm/>
  83. <dp/>
  84. <sp/>
  85. </orddridlist>
  86. </orddrid>
  87. <P0464list>
  88. <P0464>
  89. <cdid/>
  90. <cdnm/>
  91. </P0464>
  92. </P0464list>
  93. <list2>
  94. <item>
  95. <dispseq/>
  96. <usernm/>
  97. <cdid/>
  98. <fromdd/>
  99. </item>
  100. </list2>
  101. </init>
  102. <hidden>
  103. <flag>
  104. <orddeptcd/>
  105. <orddrid/>
  106. <seqno/>
  107. <drappdd/>
  108. </flag>
  109. </hidden>
  110. <temp>
  111. </temp>
  112. </root>
  113. </instance>
  114. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  115. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  116. <script type="javascript" ev:event="xforms-ready">
  117. <![CDATA[
  118. zbcfGetCodeList(new Array("P0037","P0406", "P0464", "P0341"), new Array("/root/init/P0037list","/root/init/P0406list", "/root/init/P0464list", "/root/init/P0341list"));
  119. pamGetDeptCDDrIDList();
  120. addComboItem("cmb_orddeptcd","전체","","above");
  121. addComboItem("cmb_orddrid","전체","","above");
  122. fInitialize();
  123. /* var orddeptcd = opener.javascript.getParameter("orddeptcd");
  124. var orddrid = opener.javascript.getParameter("orddrid");
  125. //var fromdd = opener.javascript.getParameter("fromdd");
  126. //var todd = opener.javascript.getParameter("todd");
  127. var orddeptnm = opener.javascript.getParameter("orddeptnm");
  128. var orddrnm = opener.javascript.getParameter("orddrnm");
  129. var callrid = opener.javascript.getParameter("callrid");
  130. model.setValue("/root/send/orddeptcd", orddeptcd);
  131. model.setValue("/root/send/orddrid", orddrid);
  132. //model.setValue("/root/send/fromdd", fromdd);
  133. //model.setValue("/root/send/todd", todd);
  134. model.setValue("/root/send/callrid", callrid); */
  135. submit("TRPMP01703");
  136. model.refresh();
  137. ]]>
  138. </script>
  139. <submission id="TRPMP01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/list2"/>
  140. <submission id="TRPMP01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gnrlcnstdtbt"/>
  141. <submission id="TXPMP01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  142. <submission id="TRZSD00207" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  143. <submission id="TRZSD00208" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  144. </model>
  145. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  147. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  148. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  150. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  151. <script type="javascript">
  152. <![CDATA[
  153. function fInitialize(){
  154. model.resetInstanceNode("/root/send");
  155. model.resetInstanceNode("/root/main");
  156. model.resetInstanceNode("/root/main/gnrlcnstdtbt/item");
  157. model.setValue("/root/send/cdgrupid", "P0001");
  158. submit("TRPMP01902");
  159. model.refresh();
  160. }
  161. ]]>
  162. </script>
  163. </xhtml:head>
  164. <xhtml:body pagewidth="1050" pageheight="700" guideline="1,1019;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  165. <group id="group1" style="left:0px; top:0px; width:1020px; height:13px; ">
  166. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">일반상담자 분배리스트</caption>
  167. </group>
  168. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1020px; height:637px; ">
  169. <group id="group4" style="left:0px; top:14px; width:1020px; height:35px; vertical-align:top; ">
  170. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1020px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  171. <button id="btn_search" class="btn1_letter2" style="left:954px; top:7px; width:56px; height:22px; ">
  172. <caption>조회</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. submit("TRPMP01703");
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </button>
  180. <line id="line13" class="line_4" style="x1:948px; y1:7px; x2:948px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  181. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_default" appearance="minimal" style="left:490px; top:9px; width:100px; height:19px; ">
  182. <choices>
  183. <itemset nodeset="/root/init/orddrid/orddridlist">
  184. <label ref="nm"/>
  185. <value ref="cd"/>
  186. </itemset>
  187. </choices>
  188. </select1>
  189. <select1 id="combo2" ref="/root/send/centcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:709px; top:9px; width:126px; height:19px; ">
  190. <choices>
  191. <itemset nodeset="/root/init/centcd/centcdlist">
  192. <label ref="nm"/>
  193. <value ref="cd"/>
  194. </itemset>
  195. </choices>
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. /*cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd/orddeptcdlist[cd = '" + cmb_orddeptcd.value + "']";
  199. model.setValue("/root/main/orddeptcd", "");
  200. cmb_orddeptcd.refresh(); */
  201. var centcd = model.getValue("/root/send/centcd");
  202. if( centcd == '' || centcd == '-' ){
  203. combo3.visible = false;
  204. cmb_orddeptcd.visible = true;
  205. model.setValue("/root/send/orddeptcd", '');
  206. model.setValue("/root/send/orddrid", '');
  207. cmb_orddeptcd.refresh();
  208. cmb_orddrid.refresh();
  209. }else{
  210. // var instcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
  211. var instcd = getUserInfo("dutplcecd");
  212. var deptcd = model.getValue("/root/send/centcd");
  213. var base_dd = new Date().getDateFormat("YYYYMMDD");
  214. var sort_field = "dispseq";//정렬필드(출력순서:'dispseq')
  215. var sort_method = "asc"; //정렬방법(오름차순:'asc')
  216. zsufGetCntrSubOrdDepartmentList(instcd, deptcd, 'O', "/root/hidden/init/cntrsuborddeptlist", base_dd);
  217. combo3.visible = true;
  218. cmb_orddeptcd.visible = false;
  219. model.setValue("/root/send/orddeptcd", '');
  220. model.setValue("/root/send/orddrid", '');
  221. cmb_orddeptcd.refresh();
  222. cmb_orddrid.refresh();
  223. }
  224. model.refresh();
  225. ]]>
  226. </script>
  227. </select1>
  228. <select1 id="combo3" ref="/root/send/orddeptcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:100px; top:9px; width:100px; height:19px; ">
  229. <choices>
  230. <itemset nodeset="/root/hidden/init/cntrsuborddeptlist/dept">
  231. <label ref="depthngnm"/>
  232. <value ref="deptcd"/>
  233. </itemset>
  234. </choices>
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  238. model.setValue("/root/send/orddrid", "");
  239. cmb_orddrid.refresh();
  240. var orddeptcd = model.getValue("/root/send/orddeptcd");
  241. cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ orddeptcd +"' or dp = '-']";
  242. cmb_subdeptcd.refresh();
  243. ]]>
  244. </script>
  245. </select1>
  246. <caption id="caption5" class="search_name" style="left:20px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  247. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_default" appearance="minimal" style="left:100px; top:9px; width:100px; height:19px; ">
  248. <choices>
  249. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  250. <label ref="nm"/>
  251. <value ref="cd"/>
  252. </itemset>
  253. </choices>
  254. <script type="javascript" ev:event="xforms-value-changed">
  255. <![CDATA[
  256. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  257. model.setValue("/root/send/orddrid", "");
  258. cmb_orddrid.refresh();
  259. cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ cmb_orddeptcd.value +"' or dp = '']";
  260. cmb_subdeptcd.refresh();
  261. ]]>
  262. </script>
  263. </select1>
  264. <caption id="caption7" class="search_name" style="left:395px; top:9px; width:86px; height:17px; ">진료의사 :</caption>
  265. <caption id="caption8" class="search_name" visibility="hidden" style="left:645px; top:10px; width:73px; height:17px; ">센터 :</caption>
  266. <select1 id="cmb_subdeptcd" ref="/root/send/subdeptcd" class="combo_default" appearance="minimal" style="left:205px; top:9px; width:100px; height:19px; ">
  267. <choices>
  268. <itemset nodeset="/root/init/subdeptcd/subdeptcdlist">
  269. <label ref="nm"/>
  270. <value ref="cd"/>
  271. </itemset>
  272. </choices>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  276. model.setValue("/root/send/orddrid", "");
  277. cmb_orddrid.refresh();
  278. var orddeptcd = model.getValue("/root/send/orddeptcd");
  279. cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '"+ orddeptcd +"' or dp = '-']";
  280. cmb_subdeptcd.refresh();
  281. ]]>
  282. </script>
  283. </select1>
  284. </group>
  285. <col type="checkbox"/>
  286. <caption id="caption4" class="tit_2" style="left:6px; top:59px; width:219px; height:14px; ">일별 예약현황</caption>
  287. <line id="line3" class="line_1" style="x1:0px; y1:74px; x2:1020px; y2:74px; "/>
  288. <datagrid id="grd_gnrlcnstdtbt" nodeset="/root/main/gnrlcnstdtbt/item" caption="진료일자^시간^진료과^caption7^센터명^caption1^세부과^caption9^진료의사^caption2^예약구분^환자명^등록번호^주민번호^caption6^일반상담자^전화횟수^1회 전화이력^2회 전화이력^3회 전화이력^caption3^caption5^caption4" colsep="^" colwidth="73, 40, 100, 5, 100, 4, 100, 6, 61, 4, 77, 91, 79, 100, 9, 70, 59, 120, 120, 120, 8, 10, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:80px; width:1020px; height:555px; ">
  289. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  290. <col ref="ordtm" style="text-align:center; "/>
  291. <col ref="orddeptnm" style="text-align:center; "/>
  292. <col ref="orddeptcd" visibility="hidden"/>
  293. <col ref="centnm" style="text-align:center; "/>
  294. <col ref="centcd" visibility="hidden"/>
  295. <col ref="subdeptnm" style="text-align:center; "/>
  296. <col ref="subdeptcd" visibility="hidden"/>
  297. <col ref="orddrnm" style="text-align:center; "/>
  298. <col ref="orddrid" visibility="hidden"/>
  299. <col disabled="true" ref="rsrvflag" type="combo" style="text-align:center; ">
  300. <choices>
  301. <itemset nodeset="/root/init/P0341list/P0341">
  302. <label ref="cdnm"/>
  303. <value ref="cdid"/>
  304. </itemset>
  305. </choices>
  306. </col>
  307. <col ref="hngnm" style="text-align:center; "/>
  308. <col ref="pid" style="text-align:center; "/>
  309. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  310. <col ref="callrid" visibility="hidden"/>
  311. <col ref="callrnm" visibility="hidden"/>
  312. <col class="gridcombo" ref="callno" type="combo">
  313. <choices>
  314. <item>
  315. <label>1회</label>
  316. <value>1</value>
  317. </item>
  318. <item>
  319. <label>2회</label>
  320. <value>2</value>
  321. </item>
  322. <item>
  323. <label>3회</label>
  324. <value>3</value>
  325. </item>
  326. </choices>
  327. </col>
  328. <col ref="fstcalldt" format="yyyy-mm-dd hh:nn:ss"/>
  329. <col ref="scdcalldt" format="yyyy-mm-dd hh:nn:ss"/>
  330. <col ref="thdcalldt" format="yyyy-mm-dd hh:nn:ss"/>
  331. <col ref="cretno" visibility="hidden"/>
  332. <col ref="orgcallno" visibility="hidden"/>
  333. <col ref="orgcallno" visibility="hidden"/>
  334. <script type="javascript" ev:event="xforms-value-changed">
  335. <![CDATA[
  336. if ( model.getValue("/root/main/gnrlcnstdtbt/item["+ grd_gnrlcnstdtbt.row +"]/callno") < model.getValue("/root/main/gnrlcnstdtbt/item["+ grd_gnrlcnstdtbt.row +"]/orgcallno") ) {
  337. messageBox("수정하실 수 없습니다.", "I999");
  338. model.setValue("/root/main/gnrlcnstdtbt/item["+ grd_gnrlcnstdtbt.row +"]/callno", model.getValue("/root/main/gnrlcnstdtbt/item["+ grd_gnrlcnstdtbt.row +"]/orgcallno"));
  339. grd_gnrlcnstdtbt.rowStatus(grd_gnrlcnstdtbt.row) = 0;
  340. model.refresh();
  341. }
  342. ]]>
  343. </script>
  344. </datagrid>
  345. </group>
  346. <group id="group2" scroll="auto" style="left:0px; top:649px; width:1020px; height:31px; ">
  347. <button id="btn_saveSche7" class="btn4_letter2" style="left:890px; top:5px; width:56px; height:22px; ">
  348. <caption>저장</caption>
  349. <script type="javascript" ev:event="DOMActivate">
  350. <![CDATA[
  351. model.setValue("/root/send/senddata", grd_gnrlcnstdtbt.getUpdateData());
  352. submit("TXPMP01701");
  353. submit("TRPMP01703");
  354. ]]>
  355. </script>
  356. </button>
  357. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1020px; y2:0px; "/>
  358. <button id="button1" class="btn4_letter2" style="left:955px; top:5px; width:56px; height:22px; ">
  359. <caption>닫기</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. window.close();
  363. ]]>
  364. </script>
  365. </button>
  366. </group>
  367. </xhtml:body>
  368. </xhtml:html>