SMPMB02200_외래선택진료의사진료표.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  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. <orddeptcd/>
  11. <orddrid/>
  12. <gnrlordflag>N</gnrlordflag>
  13. <innrtel/>
  14. <reprordfild/>
  15. <result/>
  16. <orddrlist>
  17. <list/>
  18. </orddrlist>
  19. <yy/>
  20. <mm/>
  21. <dd/>
  22. <dw/>
  23. <srchorddrlistdate/>
  24. </main>
  25. <send>
  26. <orddeptcd/>
  27. <orddrid/>
  28. <gnrlordflag/>
  29. <innrtel/>
  30. <reprordfild/>
  31. <srchorddrdate/>
  32. <orddrdate/>
  33. </send>
  34. <init>
  35. <P0037list>
  36. <P0037>
  37. <cdnm/>
  38. <cdid/>
  39. </P0037>
  40. </P0037list>
  41. <P0406list>
  42. <P0406>
  43. <cdid/>
  44. <cdnm/>
  45. </P0406>
  46. </P0406list>
  47. <orddeptcd>
  48. <orddeptcdlist>
  49. <cd/>
  50. <nm/>
  51. </orddeptcdlist>
  52. </orddeptcd>
  53. <orddrid>
  54. <orddridlist>
  55. <cd/>
  56. <nm/>
  57. <dp/>
  58. <sp/>
  59. </orddridlist>
  60. </orddrid>
  61. </init>
  62. <hidden/>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. zbcfGetCodeList(new Array("P0037","P0406"), new Array("/root/init/P0037list","/root/init/P0406list"));
  68. pamGetDeptCDDrIDList();
  69. model.refresh();
  70. //초기화 및 날자 입력 항목에 오늘 날자 세팅
  71. fInitialize();
  72. model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
  73. // submit("TRPMB02205");
  74. var curDate = model.getValue("/root/main/srchorddrlistdate");
  75. var strDay = curDate.toDate().getDayOfWeek("K");
  76. model.setValue("/root/main/yy", curDate.substring(0,4));
  77. model.setValue("/root/main/mm", curDate.substring(4,6));
  78. model.setValue("/root/main/dd", curDate.substring(6,8));
  79. model.setValue("/root/main/dw", strDay);
  80. model.setValue("/root/main/orddeptcd","");
  81. model.setValue("/root/main/orddrid","");
  82. model.setValue("/root/main/gnrlordflag","");
  83. model.setValue("/root/main/innrtel","");
  84. model.setValue("/root/main/reprordfild","");
  85. // setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
  86. // setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
  87. // setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
  88. model.refresh();
  89. ]]>
  90. </script>
  91. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  92. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/tmp"/>
  93. <submission id="TRPMB02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
  94. <submission id="TXPMB02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
  95. <submission id="TXPMB02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
  96. <submission id="TXPMB02204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
  97. <submission id="TRPMB02205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/orddrlist"/>
  98. </model>
  99. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  100. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  101. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript">
  105. <![CDATA[
  106. function fInitialize(){
  107. var curDate = getCurrentDate();
  108. var strDay = getCurrentDate().toDate().getDayOfWeek("K");
  109. model.resetInstanceNode("/root/main");
  110. model.resetInstanceNode("/root/send");
  111. model.removeNodeset("/root/main/orddrlist");
  112. model.setValue("/root/main/yy", curDate.substring(0,4));
  113. model.setValue("/root/main/mm", curDate.substring(4,6));
  114. model.setValue("/root/main/dd", curDate.substring(6,8));
  115. model.setValue("/root/main/dw", strDay);
  116. model.setValue("/root/main/srchorddrlistdate", curDate);
  117. model.setValue("/root/main/gnrlordflag","N");
  118. model.refresh();
  119. }
  120. function setGridBorderHiddenRestricColRef( gridID, rstRef, ecpRef ) {
  121. var rowNumArray = changeValueRowNumArray( gridID, rstRef );
  122. var srtRow, endRow;
  123. var gridObj = document.all.item(gridID);
  124. var exceptRefArray = ecpRef.split("^");
  125. var exceptColArray = new Array();
  126. var exceptFlag = false;
  127. var i, j, k;
  128. // 제외 할 컬럼 인덱스 Array 담기
  129. for( var i = 0; i < exceptRefArray.length; i++ ) {
  130. exceptColArray[i] = gridObj.colRef(exceptRefArray[i]);
  131. }
  132. for( i = gridObj.fixedCols; i < gridObj.cols; i++ ) {
  133. // 현재 컬럼이 제외 할 컬럼에 포함시 Falg 설정
  134. for( j = 0; j < exceptColArray.length; j++ ) {
  135. if( i == exceptColArray[j]) {
  136. exceptFlag = true;
  137. break;
  138. }
  139. }
  140. if( !exceptFlag ) {
  141. for( k = 1; k <= rowNumArray.length; k++ ) {
  142. if( rowNumArray[k] - rowNumArray[k - 1] != 1 ) {
  143. srtRow = rowNumArray[k - 1];
  144. if( rowNumArray[k] == null )
  145. endRow = gridObj.rows - 1
  146. else
  147. endRow = rowNumArray[k] - 1;
  148. // alert(srtRow + " / " + endRow);
  149. gridObj.cellStyle("border-top-width", srtRow + 1, i, endRow, i) = 0;
  150. gridObj.cellStyle("border-bottom-width", srtRow, i, endRow - 1, i) = 0;
  151. }
  152. }
  153. }
  154. exceptFlag = false;
  155. }
  156. }
  157. function setGridMergeColRestricColRef( gridID, rstRef, trgRef ) {
  158. var rowNumArray = changeValueRowNumArray( gridID, rstRef );
  159. // alert(rowNumArray);
  160. var srtRow, endRow;
  161. var gridObj = document.all.item(gridID);
  162. var trgCol = gridObj.colRef(trgRef);
  163. var tmpCellValue = null;
  164. var curCellValue = null;
  165. var tmpRow;
  166. var curRow;
  167. var i, j;
  168. for( i = 1; i <= rowNumArray.length; i++ ) { // < - 1, 4, 5, 7
  169. if( rowNumArray[i] - rowNumArray[i - 1] != 1 ) {
  170. srtRow = rowNumArray[i - 1];
  171. if( rowNumArray[i] == null )
  172. endRow = gridObj.rows - 1
  173. else
  174. endRow = rowNumArray[i] - 1;
  175. // 1 ~ 5
  176. for( var j = srtRow; j <= endRow; j++ ) {
  177. // 첫번째 로우면...
  178. if( j == srtRow) {
  179. tmpCellValue = gridObj.valueMatrix(j, trgCol);
  180. tmpRow = srtRow;
  181. }
  182. // 아니면...
  183. else {
  184. // 값이 바뀌면...
  185. if( tmpCellValue != gridObj.valueMatrix(j, trgCol) ) {
  186. if( tmpRow < j - 1 ) {
  187. gridObj.mergeByFree(tmpRow, trgCol, j - 1, trgCol);
  188. tmpCellValue = gridObj.valueMatrix(j, trgCol);
  189. tmpRow = j;
  190. }
  191. else {
  192. tmpCellValue = gridObj.valueMatrix(j, trgCol);
  193. tmpRow = j;
  194. }
  195. }
  196. // 값이 같으면...
  197. else {
  198. // 마지막 로우면...
  199. if( j == endRow ) {
  200. if( tmpRow != j ) {
  201. gridObj.mergeByFree(tmpRow, trgCol, j, trgCol);
  202. }
  203. }
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. function changeValueRowNumArray( gridID, rstRef ) {
  211. var gridObj = document.all.item(gridID);
  212. var rowNumArray = new Array();
  213. var trgCol = gridObj.colRef(rstRef);
  214. for( var i = gridObj.fixedRows; i < gridObj.rows; i++ ) {
  215. if( i == gridObj.fixedRows ) {
  216. rowNumArray[0] = i;
  217. }
  218. else {
  219. if( gridObj.valueMatrix(rowNumArray[rowNumArray.length - 1], trgCol) != gridObj.valueMatrix(i , trgCol) )
  220. rowNumArray[rowNumArray.length] = i;
  221. }
  222. }
  223. return rowNumArray
  224. }
  225. ]]>
  226. </script>
  227. </xhtml:head>
  228. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  229. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  230. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">외래선택진료의사진료표</caption>
  231. </group>
  232. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  233. <button id="button2" class="btn4_letter3" navindex="8" style="left:1126px; top:5px; width:68px; height:22px; ">
  234. <caption>초기화</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  238. //function fInitialize() {
  239. //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
  240. fInitialize();
  241. //}
  242. ]]>
  243. </script>
  244. </button>
  245. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  246. <button id="button1" class="btn3_letter3" navindex="8" style="left:0px; top:5px; width:68px; height:22px; ">
  247. <caption>Excel</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  251. if (fileName != "")
  252. {
  253. grd_ddrlist.saveExcel(fileName, "SheetName", true, true, "", "");
  254. }
  255. window.exec(fileName);
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="button3" class="btn3_letter2" navindex="8" style="left:70px; top:5px; width:68px; height:22px; ">
  260. <caption>출력</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. var nodeList= instance1.selectNodes("/root/main/orddrlist/list");
  264. if((nodeList != null) && (nodeList.length >0 )){
  265. exeReportPreview("RPPMB02202", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  266. }else{
  267. }
  268. ]]>
  269. </script>
  270. </button>
  271. </group>
  272. <group id="group4" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  273. <line id="line3" class="line_2" style="x1:0px; y1:98px; x2:1194px; y2:98px; "/>
  274. <line id="line4" class="line_2" style="x1:0px; y1:97px; x2:1194px; y2:97px; "/>
  275. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  276. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  277. <line id="line5" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  278. <caption id="caption10" class="search_name" style="left:883px; top:8px; width:86px; height:17px; ">조회일자 :</caption>
  279. <input id="ipt_srch" ref="/root/main/srchorddrlistdate" class="input_search" navindex="1" inputtype="date" style="left:980px; top:8px; width:113px; height:19px; "/>
  280. <button id="btn_srchorddrdate" class="btn1_letter2" navindex="2" style="left:1123px; top:7px; width:56px; height:22px; ">
  281. <caption>조회</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. if (model.getValue("/root/main/srchorddrlistdate") == ""){
  285. messageBox("조회일자가 입력되지", "E007");
  286. model.setFocus("ipt_srch");
  287. return;
  288. }
  289. model.removeNodeset("/root/main/orddrlist");
  290. model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
  291. submit("TRPMB02205");
  292. var curDate = model.getValue("/root/main/srchorddrlistdate");
  293. var strDay = curDate.toDate().getDayOfWeek("K");
  294. model.setValue("/root/main/yy", curDate.substring(0,4));
  295. model.setValue("/root/main/mm", curDate.substring(4,6));
  296. model.setValue("/root/main/dd", curDate.substring(6,8));
  297. model.setValue("/root/main/dw", strDay);
  298. model.setValue("/root/main/orddeptcd","");
  299. model.setValue("/root/main/orddrid","");
  300. model.setValue("/root/main/gnrlordflag","");
  301. model.setValue("/root/main/innrtel","");
  302. model.setValue("/root/main/reprordfild","");
  303. grd_ddrlist.rebuildStyle();
  304. grd_ddrlist.rebuild();
  305. setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
  306. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
  307. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
  308. model.refresh();
  309. ]]>
  310. </script>
  311. </button>
  312. </group>
  313. <caption id="caption11" class="tit_2" style="left:6px; top:55px; width:191px; height:14px; ">외래선택진료의사진료표 수정</caption>
  314. <line id="line9" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  315. <caption id="caption12" class="cell_1" style="left:0px; top:75px; width:60px; height:23px; vertical-align:middle; ">진료과</caption>
  316. <caption id="caption13" class="cell_1" style="left:562px; top:75px; width:85px; height:23px; vertical-align:middle; ">일반진료여부</caption>
  317. <caption id="caption15" class="tit_2" style="left:6px; top:110px; width:186px; height:13px; ">외래선택진료의사진료리스트</caption>
  318. <line id="line10" class="line_1" style="x1:0px; y1:125px; x2:1194px; y2:125px; "/>
  319. <line id="line11" class="line_3" style="x1:0px; y1:97px; x2:1194px; y2:97px; "/>
  320. <button id="button6" class="btn5_letter2" style="left:1106px; top:50px; width:42px; height:19px; ">
  321. <caption>수정</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. if (model.getValue("/root/main/orddeptcd") == "") {
  325. messageBox("진료과가 선택되지", "E007");
  326. model.setFocus("cmb_orddeptcd");
  327. return;
  328. }
  329. if (model.getValue("/root/main/innrtel") <= '0000' || model.getValue("/root/main/innrtel") >= '9999') {
  330. messageBox("전화번호", "C001");
  331. model.setFocus("ipt_tel");
  332. return;
  333. }
  334. model.setValue("/root/send/orddeptcd", cmb_orddeptcd.value);
  335. model.setValue("/root/send/orddrid", cmb_orddrid.value);
  336. if (cmb_gnrlordflag.value == "") {
  337. model.setValue("/root/send/gnrlordflag", "N");
  338. }else{
  339. model.setValue("/root/send/gnrlordflag", cmb_gnrlordflag.value);
  340. }
  341. model.setValue("/root/send/innrtel", model.getValue("/root/main/innrtel"));
  342. model.setValue("/root/send/reprordfild", model.getValue("/root/main/reprordfild"));
  343. submit("TRPMB02201",false);
  344. if (model.getValue("/root/main/result/orddeptcd") == ""){
  345. messageBox("해당 진료과의 진료의사 정보가 존재하지 않습니다. 해당 정보는 수정하실 수","I004");
  346. return;
  347. }
  348. if (submit("TXPMB02202") == true ) {
  349. messageBox("정상적으로 수정", "I001");
  350. }
  351. model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
  352. submit("TRPMB02205");
  353. var curDate = model.getValue("/root/main/srchorddrlistdate");
  354. var strDay = curDate.toDate().getDayOfWeek("K");
  355. model.setValue("/root/main/yy", curDate.substring(0,4));
  356. model.setValue("/root/main/mm", curDate.substring(4,6));
  357. model.setValue("/root/main/dd", curDate.substring(6,8));
  358. model.setValue("/root/main/dw", strDay);
  359. model.setValue("/root/main/orddeptcd","");
  360. model.setValue("/root/main/orddrid","");
  361. model.setValue("/root/main/gnrlordflag","");
  362. model.setValue("/root/main/innrtel","");
  363. model.setValue("/root/main/reprordfild","");
  364. grd_ddrlist.rebuildStyle();
  365. grd_ddrlist.rebuild();
  366. setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
  367. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
  368. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
  369. model.refresh();
  370. ]]>
  371. </script>
  372. </button>
  373. <caption id="caption16" class="cell_1" style="left:347px; top:75px; width:60px; height:23px; vertical-align:middle; ">진료의사</caption>
  374. <caption id="caption18" class="cell_1" style="left:723px; top:75px; width:61px; height:23px; vertical-align:middle; ">내선번호</caption>
  375. <caption id="caption19" class="cell_1" style="left:905px; top:74px; width:85px; height:23px; vertical-align:middle; ">대표진료분야</caption>
  376. <output id="output3" ref="/root/main/yy" style="left:980px; top:105px; width:45px; height:19px; text-align:right; "/>
  377. <caption id="caption22" style="left:1025px; top:105px; width:15px; height:20px; ">년</caption>
  378. <caption id="caption23" style="left:1070px; top:105px; width:15px; height:20px; ">월</caption>
  379. <output id="output4" ref="/root/main/mm" style="left:1045px; top:105px; width:25px; height:19px; text-align:right; "/>
  380. <output id="output5" ref="/root/main/dd" style="left:1090px; top:105px; width:25px; height:19px; text-align:right; "/>
  381. <caption id="caption24" style="left:1115px; top:105px; width:15px; height:20px; ">일</caption>
  382. <output id="output6" ref="/root/main/dw" style="left:1140px; top:105px; width:25px; height:19px; text-align:right; "/>
  383. <caption id="caption25" style="left:1165px; top:105px; width:26px; height:20px; ">요일</caption>
  384. <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_search" navindex="3" appearance="minimal" style="left:62px; top:76px; width:283px; height:19px; ">
  385. <choices>
  386. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  387. <label ref="nm"/>
  388. <value ref="cd"/>
  389. </itemset>
  390. </choices>
  391. <script type="javascript" ev:event="xforms-value-changed">
  392. <![CDATA[
  393. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  394. model.setValue("/root/main/orddrid", "");
  395. model.setValue("/root/main/gnrlordflag","");
  396. model.setValue("/root/main/innrtel","");
  397. model.setValue("/root/main/reprordfild","");
  398. ipt_tel.disabled = true;
  399. ipt_reprordfild.disabled = true;
  400. cmb_gnrlordflag.disabled = false;
  401. model.resetInstanceNode("/root/send");
  402. model.setValue("/root/send/orddeptcd",cmb_orddeptcd.value);
  403. submit("TRPMB02201",false);
  404. model.setValue("/root/main/gnrlordflag",model.getValue("/root/main/result/gnrlordflag"));
  405. model.refresh();
  406. ]]>
  407. </script>
  408. </select1>
  409. <select1 id="cmb_orddrid" ref="/root/main/orddrid" class="combo_search" navindex="4" appearance="minimal" editmode="search" style="left:409px; top:76px; width:150px; height:19px; ">
  410. <choices>
  411. <itemset nodeset="/root/init/orddrid/orddridlist">
  412. <label ref="nm"/>
  413. <value ref="cd"/>
  414. </itemset>
  415. </choices>
  416. <script type="javascript" ev:event="xforms-value-changed">
  417. <![CDATA[
  418. ipt_tel.disabled = false;
  419. ipt_reprordfild.disabled = false;
  420. cmb_gnrlordflag.disabled = true;
  421. model.setValue("/root/send/orddrid", cmb_orddrid.value);
  422. submit("TRPMB02201",false);
  423. //model.setValue("/root/main/gnrlordflag", model.getValue("/root/main/result/gnrlordflag"));
  424. model.setValue("/root/main/innrtel", model.getValue("/root/main/result/innrtel"));
  425. model.setValue("/root/main/reprordfild", model.getValue("/root/main/result/reprordfild"));
  426. model.refresh();
  427. ]]>
  428. </script>
  429. <script type="javascript" ev:event="DOMFocusOut">
  430. <![CDATA[
  431. if (model.getValue("/root/main/orddrid") == "") {
  432. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  433. model.setValue("/root/main/orddrid", "");
  434. model.setValue("/root/main/gnrlordflag","");
  435. model.setValue("/root/main/innrtel","");
  436. model.setValue("/root/main/reprordfild","");
  437. ipt_tel.disabled = true;
  438. ipt_reprordfild.disabled = true;
  439. cmb_gnrlordflag.disabled = false;
  440. model.resetInstanceNode("/root/send");
  441. model.setValue("/root/send/orddeptcd",cmb_orddeptcd.value);
  442. submit("TRPMB02201",false);
  443. model.setValue("/root/main/gnrlordflag",model.getValue("/root/main/result/gnrlordflag"));
  444. model.refresh();
  445. }
  446. ]]>
  447. </script>
  448. </select1>
  449. <select1 id="cmb_gnrlordflag" ref="/root/main/gnrlordflag" class="combo_search" navindex="5" appearance="minimal" style="left:650px; top:76px; width:70px; height:19px; ">
  450. <choices>
  451. <item>
  452. <label>AM</label>
  453. <value>AM</value>
  454. </item>
  455. <item>
  456. <label>PM</label>
  457. <value>PM</value>
  458. </item>
  459. <item>
  460. <label>AMPM</label>
  461. <value>AMPM</value>
  462. </item>
  463. <item>
  464. <label>없음</label>
  465. <value>N</value>
  466. </item>
  467. </choices>
  468. </select1>
  469. <input id="ipt_tel" ref="/root/main/innrtel" class="input_default" navindex="6" maxlength="4" style="left:785px; top:76px; width:118px; height:19px; "/>
  470. <input id="ipt_reprordfild" ref="/root/main/reprordfild" class="input_default" navindex="7" imemode="hangul" style="left:992px; top:76px; width:202px; height:19px; "/>
  471. <datagrid id="grd_ddrlist" nodeset="/root/main/orddrlist/list" caption="^오전^오전^오전^오후^오후^오후|^선택진료의사^일반의사^일반의사^선택진료의사^일반의사^일반의사|^선택진료의사^전문의^일반^선택진료의사^전문의^일반" colsep="^" colwidth="256, 165, 173, 126, 174, 182, 119" dataheight="25" defaultrows="2" extendlastcol="scroll" fixedcols="1" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="free" style="left:0px; top:130px; width:1195px; height:610px; text-align:center; ">
  472. <col ref="deptnm"/>
  473. <col disabled="true" ref="am_sp_orddr" style="left:110px; top:63px; width:255px; height:23px; "/>
  474. <col disabled="true" ref="am_orddr"/>
  475. <col disabled="true" ref="am_gnrlordflag"/>
  476. <col ref="pm_sp_orddr" style="left:1138px; top:23px; width:100px; height:23px; text-align:center; "/>
  477. <col ref="pm_orddr"/>
  478. <col ref="pm_gnrlordflag"/>
  479. </datagrid>
  480. <group id="group7" style="left:0px; top:125px; width:255px; height:67px; background-color:transparent; ">
  481. <line id="line12" class="line_3" style="x1:5px; y1:9px; x2:250px; y2:67px; "/>
  482. <caption id="caption26" style="left:9px; top:41px; width:42px; height:20px; ">진료과</caption>
  483. <caption id="caption27" style="left:215px; top:25px; width:35px; height:20px; ">구분</caption>
  484. </group>
  485. <button id="button5" class="btn5_letter2" style="left:1061px; top:50px; width:42px; height:19px; ">
  486. <caption>입력</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. if (model.getValue("/root/main/orddeptcd") == "") {
  490. messageBox("진료과가 선택되지", "E007");
  491. model.setFocus("cmb_orddeptcd");
  492. return;
  493. }
  494. if (model.getValue("/root/main/innrtel") <= '0000' || model.getValue("/root/main/innrtel") >= '9999') {
  495. messageBox("전화번호", "C001");
  496. model.setFocus("ipt_tel");
  497. return;
  498. }
  499. //해당 데이터가 존재하는지 체크
  500. submit("TRPMB02201",false);
  501. if (model.getValue("/root/main/result/orddeptcd") != ""){
  502. messageBox("이미 존재합니다. 해당 정보는 추가하실 수","I004", "해당사항은 수정처리하시기 바랍니다.");
  503. return;
  504. }
  505. model.setValue("/root/send/orddeptcd", cmb_orddeptcd.value);
  506. model.setValue("/root/send/orddrid", cmb_orddrid.value);
  507. if (cmb_gnrlordflag.value == "") {
  508. model.setValue("/root/send/gnrlordflag", "N");
  509. }else{
  510. model.setValue("/root/send/gnrlordflag", cmb_gnrlordflag.value);
  511. }
  512. model.setValue("/root/send/innrtel", model.getValue("/root/main/innrtel"));
  513. model.setValue("/root/send/reprordfild", model.getValue("/root/main/reprordfild"));
  514. //insert
  515. if (submit("TXPMB02203") == true ) {
  516. messageBox("정상적으로 추가", "I001");
  517. }
  518. model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
  519. submit("TRPMB02205");
  520. var curDate = model.getValue("/root/main/srchorddrlistdate");
  521. var strDay = curDate.toDate().getDayOfWeek("K");
  522. model.setValue("/root/main/yy", curDate.substring(0,4));
  523. model.setValue("/root/main/mm", curDate.substring(4,6));
  524. model.setValue("/root/main/dd", curDate.substring(6,8));
  525. model.setValue("/root/main/dw", strDay);
  526. model.setValue("/root/main/orddeptcd","");
  527. model.setValue("/root/main/orddrid","");
  528. model.setValue("/root/main/gnrlordflag","");
  529. model.setValue("/root/main/innrtel","");
  530. model.setValue("/root/main/reprordfild","");
  531. grd_ddrlist.rebuildStyle();
  532. grd_ddrlist.rebuild();
  533. setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
  534. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
  535. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
  536. model.refresh();
  537. ]]>
  538. </script>
  539. </button>
  540. <button id="button7" class="btn5_letter2" style="left:1151px; top:50px; width:42px; height:19px; ">
  541. <caption>삭제</caption>
  542. <script type="javascript" ev:event="DOMActivate">
  543. <![CDATA[
  544. if(messageBox("선택된 진료과 의사정보를 진료표에서", "Q001") != 6) return;
  545. if (model.getValue("/root/main/orddeptcd") == "") {
  546. messageBox("진료과가 선택되지", "E007");
  547. model.setFocus("cmb_orddeptcd");
  548. return;
  549. }
  550. if (model.getValue("/root/main/orddrid") == "") {
  551. messageBox("진료의사가 선택되지", "E007");
  552. model.setFocus("cmb_orddeptcd");
  553. return;
  554. }
  555. if (model.getValue("/root/main/innrtel") <= '0000' || model.getValue("/root/main/innrtel") >= '9999') {
  556. messageBox("전화번호", "C001");
  557. model.setFocus("ipt_tel");
  558. return;
  559. }
  560. //해당 데이터가 존재하는지 체크
  561. submit("TRPMB02201",false);
  562. if (model.getValue("/root/main/result/orddeptcd") == ""){
  563. messageBox("해당 진료과의 진료의사 정보가 존재하지 않습니다. 해당 정보는 삭제 하실 수","I004");
  564. return;
  565. }
  566. model.setValue("/root/send/orddeptcd", cmb_orddeptcd.value);
  567. model.setValue("/root/send/orddrid", cmb_orddrid.value);
  568. if (submit("TXPMB02204",false) == true ) {
  569. messageBox("정상적으로 삭제", "I001");
  570. model.setValue("/root/main/orddeptcd", "");
  571. model.setValue("/root/main/orddrid","");
  572. model.setValue("/root/main/gnrlordflag","");
  573. model.setValue("/root/main/innrtel","");
  574. model.setValue("/root/main/reprordfild","");
  575. model.refresh();
  576. }
  577. model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
  578. submit("TRPMB02205");
  579. var curDate = model.getValue("/root/main/srchorddrlistdate");
  580. var strDay = curDate.toDate().getDayOfWeek("K");
  581. model.setValue("/root/main/yy", curDate.substring(0,4));
  582. model.setValue("/root/main/mm", curDate.substring(4,6));
  583. model.setValue("/root/main/dd", curDate.substring(6,8));
  584. model.setValue("/root/main/dw", strDay);
  585. model.setValue("/root/main/orddeptcd","");
  586. model.setValue("/root/main/orddrid","");
  587. model.setValue("/root/main/gnrlordflag","");
  588. model.setValue("/root/main/innrtel","");
  589. model.setValue("/root/main/reprordfild","");
  590. grd_ddrlist.rebuildStyle();
  591. grd_ddrlist.rebuild();
  592. setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
  593. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
  594. setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
  595. model.refresh();
  596. ]]>
  597. </script>
  598. </button>
  599. </group>
  600. </xhtml:body>
  601. </xhtml:html>