SMRSC06300_CSR 마감 시간 등록.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>CSR 마감 시간 등록</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <csrtmlist>
  12. <instcd/>
  13. <csrreqdeptcd/>
  14. <daykind/>
  15. <reqseq/>
  16. <clotm/>
  17. <cmt/>
  18. </csrtmlist>
  19. </main>
  20. <send>
  21. <instcd/>
  22. <csrtmlist/>
  23. <scsrreqdeptcd/>
  24. </send>
  25. <init>
  26. <csrdept>
  27. <label>외래</label>
  28. <value>1</value>
  29. <label>병동</label>
  30. <value>2</value>
  31. <label>OR</label>
  32. <value>3</value>
  33. <label>ER</label>
  34. <value>4</value>
  35. <label>기타</label>
  36. <value>5</value>
  37. </csrdept>
  38. <daykind>
  39. <label>매일</label>
  40. <value>1</value>
  41. <label>평일</label>
  42. <value>2</value>
  43. <label>휴일</label>
  44. <value>3</value>
  45. </daykind>
  46. </init>
  47. <hidden/>
  48. <temp/>
  49. </root>
  50. </instance>
  51. <script type="javascript">
  52. <![CDATA[
  53. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  54. function fInitialize() {
  55. model.removeNodeset("/root/main/csrtmlist");
  56. model.resetInstanceNode("/root/send");
  57. model.refresh();
  58. misfGridInit(grd_csrtmlist);
  59. //기관코드 셋팅
  60. //misfComboComCdList("Z0007", cmb_instcd);
  61. //rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"5","B");
  62. misfGridComboComCdList("R0270",grd_csrtmlist,"daykind");
  63. misfGridComboComCdList("R0269",grd_csrtmlist,"csrreqdeptcd");
  64. misfComboComCdListMulti("Z0007,R0269", "cmb_instcd,rdo_csrreqdeptcd");
  65. rszfComboAppendBlankChild("rdo_csrreqdeptcd");
  66. misfMsterDetailSet(grd_csrtmlist,null,"TRRSC06301","Y"); //마스터 설정
  67. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  68. //화면 권한 설정
  69. btn_save.disabled = !(checkAuth("X"));
  70. btn_prt.disabled= !(checkAuth("P"));
  71. model.refresh();
  72. }
  73. function fsearch(){
  74. var updtdata = getGridUpdateData(grd_csrtmlist);
  75. //기관코드 값 체크
  76. if ( updtdata != "") {
  77. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  78. if (ret != 6) { // not OK
  79. return;
  80. }
  81. }
  82. misfMsterDetailRetrieve();
  83. misfSetReadOnlyCol(grd_csrtmlist, "csrreqdeptcd,daykind, reqseq", true);
  84. model.refresh();
  85. }
  86. function fsave(){
  87. if(!checkKeyColumn("grd_csrtmlist")) return;
  88. var updtdata = getGridUpdateData(grd_csrtmlist);
  89. if (updtdata == "")
  90. {
  91. messageBox("변경된 데이터가","I004");
  92. return;
  93. }
  94. rtn = messageBox("", "Q002");
  95. if(rtn != "6" ) return false;
  96. misfSave("TXRSC06301");
  97. btn_search.dispatch("DOMActivate");
  98. }
  99. function fCheckTime()
  100. {
  101. if(grd_csrtmlist.col == grd_csrtmlist.colRef("clotm"))
  102. {
  103. var sTime = grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm"));
  104. if(sTime == "" || sTime == null)
  105. {
  106. return;
  107. }
  108. if(sTime.length != 4)
  109. {
  110. messageBox("네자리를 ","C001");
  111. grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
  112. return;
  113. }
  114. var sFrontTime = sTime.substr(0, 2);
  115. var sBackTime = sTime.substr(2, 2);
  116. if(parseInt(sFrontTime) > 24)
  117. {
  118. messageBox("24시를 ","E001");
  119. grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
  120. return;
  121. }
  122. if(parseInt(sBackTime) > 59)
  123. {
  124. messageBox("59분을 ","E001");
  125. grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
  126. return;
  127. }
  128. }
  129. }
  130. ]]>
  131. </script>
  132. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  134. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  135. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  136. <script type="javascript" ev:event="xforms-ready">
  137. <![CDATA[
  138. fInitialize();
  139. btn_search.dispatch("DOMActivate");
  140. ]]>
  141. </script>
  142. <submission id="TRRSC06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrtmlist"/>
  143. <submission id="TXRSC06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  144. </model>
  145. </xhtml:head>
  146. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  147. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  148. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">CSR 마감 시간 등록</caption>
  149. </group>
  150. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  151. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  152. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  153. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  154. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  155. <caption id="cap_csrreqdeptcd" class="search_name" style="left:272px; top:10px; width:119px; height:17px; ">CSR 청구부서 :</caption>
  156. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  157. <caption>조회</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. if(!isRequiredControls("cmb_instcd")) return;
  161. fsearch();
  162. ]]>
  163. </script>
  164. </button>
  165. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:8px; width:158px; height:19px; ">
  166. <choices>
  167. <itemset>
  168. <label/>
  169. <value/>
  170. </itemset>
  171. </choices>
  172. <script type="javascript" ev:event="xforms-value-changed">
  173. <![CDATA[
  174. btn_search.dispatch("DOMActivate");
  175. ]]>
  176. </script>
  177. </select1>
  178. <select1 id="rdo_csrreqdeptcd" ref="/root/send/scsrreqdeptcd" appearance="full" cols="6" style="left:392px; top:8px; width:263px; height:19px; ">
  179. <choices>
  180. <itemset>
  181. <label/>
  182. <value/>
  183. </itemset>
  184. </choices>
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. if(!isRequiredControls("cmb_instcd")) return;
  188. btn_search.dispatch("DOMActivate");
  189. ]]>
  190. </script>
  191. </select1>
  192. </group>
  193. <line id="line2" class="line_1" style="x1:0px; y1:94px; x2:1194; y2:94px; "/>
  194. <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:133px; height:14px; ">청구 마감시간 등록</caption>
  195. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:74px; width:53px; height:19px; ">
  196. <caption>행추가</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. if(!isRequiredControls("cmb_instcd")) return;
  200. misfGridIUD(grd_csrtmlist, "A");
  201. var cur_row = grd_csrtmlist.row;
  202. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  203. model.setValue(grd_csrtmlist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd.value);
  204. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  205. grd_csrtmlist.editCell()
  206. ]]>
  207. </script>
  208. </button>
  209. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:74px; width:53px; height:19px; ">
  210. <caption>행삭제</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. misfGridIUD(grd_csrtmlist, "D");
  214. model.refresh();
  215. ]]>
  216. </script>
  217. </button>
  218. <datagrid id="grd_csrtmlist" nodeset="/root/main/csrtmlist" caption="CSR 청구부서^DAY 구분^마감차수^마감시간^비고" colsep="^" colwidth="139, 140, 140, 140, 609, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:100px; width:1190px; height:640px; ">
  219. <col class="input_essential" ref="csrreqdeptcd" type="combo" _key="true" style="text-align:center; ">
  220. <choices>
  221. <itemset>
  222. <label/>
  223. <value/>
  224. </itemset>
  225. </choices>
  226. </col>
  227. <col class="input_essential" ref="daykind" type="combo" _key="true" style="text-align:center; ">
  228. <choices>
  229. <itemset>
  230. <label/>
  231. <value/>
  232. </itemset>
  233. </choices>
  234. </col>
  235. <col class="input_essential" ref="reqseq" type="input" maxlength="1" _key="true" style="text-align:center; "/>
  236. <col ref="clotm" type="input" format="hh:nn" maxlength="4" style="text-align:center; "/>
  237. <col ref="cmt" type="input" maxlength="96"/>
  238. <col ref="instcd" visibility="hidden"/>
  239. <script type="javascript" ev:event="onendedit">
  240. <![CDATA[
  241. fCheckTime();
  242. ]]>
  243. </script>
  244. </datagrid>
  245. </group>
  246. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  247. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  248. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  249. <caption>초기화</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. fInitialize();
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3; width:56px; height:22px; ">
  257. <caption>저장</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fsave();
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  265. <caption>출력</caption>
  266. </button>
  267. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  268. <caption>화면이동</caption>
  269. </button>
  270. </group>
  271. </xhtml:body>
  272. </xhtml:html>