SMRWD01500_수술실식대등록.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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. <oproommeal>
  11. <oproommeallist/>
  12. </oproommeal>
  13. <payappmealdd>
  14. <payappmealddlist>
  15. <mindd/>
  16. </payappmealddlist>
  17. </payappmealdd>
  18. </main>
  19. <send>
  20. <oproommeal>
  21. <instcd/>
  22. <mealfromdd/>
  23. <mealtodd/>
  24. <mealflag/>
  25. <emplno/>
  26. <emplnm/>
  27. <mealdd/>
  28. <workflag>A</workflag>
  29. <payappym/>
  30. </oproommeal>
  31. <save>
  32. <oproommeallist/>
  33. </save>
  34. <payapp>
  35. <payym/>
  36. <payitemcd/>
  37. <instcd/>
  38. <payfromdd/>
  39. <paytodd/>
  40. </payapp>
  41. </send>
  42. <temp>
  43. <emplno/>
  44. </temp>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. misfGridInit(grd_oproommeallist);
  50. misfMsterDetailSet(grd_oproommeallist, null, "TRRWD01501" ,"Y");
  51. var curdate = getCurrentDate();
  52. model.setValue(ipt_mealfromdd.attribute("ref") , curdate.substr(0, 8));
  53. model.setValue(ipt_mealtodd.attribute("ref") , curdate.substr(0, 8));
  54. model.setValue(ipt_mealdd.attribute("ref") , curdate.substr(0, 8));
  55. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  56. misfComboComCdListMulti("M0042,M0042","cmb_mealflag,grd_oproommeallist.mealflag");
  57. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  58. misfGetUserAuth();
  59. if (DUTY_PAY_YN == "Y" ) {
  60. cmb_instcd.disabled = false;
  61. }
  62. else {
  63. cmb_instcd.disabled = true;
  64. }
  65. model.refresh();
  66. model.setFocus("ipt_mealfromdd");
  67. ]]>
  68. </script>
  69. <submission id="TRRWD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/oproommeal" resultref="/root/main/oproommeal"/>
  70. <submission id="TXRWD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  71. <submission id="TRRWD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/oproommeal" resultref="/root/main/payappmealdd"/>
  72. <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payapp" resultref="/root/hidden/temp"/>
  73. </model>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  78. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  79. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  80. </xhtml:head>
  81. <xhtml:body style="margin-left:8; margin-right:8; ">
  82. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  83. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">수술실 식대 등록</caption>
  84. </group>
  85. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  86. <line id="line9" class="line_1" style="x1:0px; y1:69px; x2:1193px; y2:69px; "/>
  87. <caption id="caption34" class="tit_2" style="left:6px; top:52px; width:186px; height:13px; ">수술실 식대 List</caption>
  88. <group id="grp_sea" style="left:0px; top:10; width:1195px; height:35px; vertical-align:top; ">
  89. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  90. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
  91. <caption>조회</caption>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. misfMsterDetailRetrieve();
  95. ]]>
  96. </script>
  97. </button>
  98. <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  99. <input id="ipt_mealfromdd" ref="/root/send/oproommeal/mealfromdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:454px; top:7px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
  100. <caption id="cap_payym" class="search_name" style="left:400px; top:8px; width:61px; height:17px; ">기간:</caption>
  101. <select1 id="cmb_instcd" ref="/root/send/oproommeal/instcd" class="combo_s_essential" appearance="minimal" style="left:225px; top:7px; width:151px; height:19px; ">
  102. <choices>
  103. <itemset>
  104. <label/>
  105. <value/>
  106. </itemset>
  107. </choices>
  108. <script type="javascript" ev:event="xforms-value-changed">
  109. <![CDATA[
  110. btn_search.dispatch("DOMActivate");
  111. ]]>
  112. </script>
  113. </select1>
  114. <caption id="cap_instcd" class="search_name" style="left:171px; top:7px; width:61px; height:17px; ">기관:</caption>
  115. <input id="ipt_emplnm" ref="/root/send/oproommeal/emplnm" class="input_default" style="left:974px; top:7px; width:96px; height:19px; ">
  116. <script type="javascript" ev:event="onkeyup">
  117. <![CDATA[
  118. if (ipt_emplnm.currentText != null && ipt_emplnm.currentText != "" ) {
  119. inputEnterKey("ipt_emplnm", "xforms-value-changed");
  120. inputEnterKey("btn_search", "DOMActivate");
  121. }
  122. ]]>
  123. </script>
  124. <script type="javascript" ev:event="xforms-value-changed">
  125. <![CDATA[
  126. var recv_list = "emplno,emplnm" ;
  127. rpbfValidationCheck("EMPLNM", recv_list);
  128. model.refresh();
  129. ]]>
  130. </script>
  131. </input>
  132. <button id="btn_emplno" class="icon_search" style="left:953px; top:7px; width:16px; height:16px; ">
  133. <caption/>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. var recv_list = "emplno,emplnm" ;
  137. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  138. model.refresh();
  139. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  140. btn_search.dispatch("DOMActivate");
  141. }
  142. ]]>
  143. </script>
  144. </button>
  145. <input id="ipt_emplno" ref="/root/send/oproommeal/emplno" class="input_default" style="left:879px; top:7px; width:70px; height:19px; ">
  146. <script type="javascript" ev:event="onkeyup">
  147. <![CDATA[
  148. if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
  149. inputEnterKey("ipt_emplno", "xforms-value-changed");
  150. inputEnterKey("btn_search", "DOMActivate");
  151. }
  152. ]]>
  153. </script>
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. var recv_list = "emplno,emplnm" ;
  157. rpbfValidationCheck("EMPLNO", recv_list);
  158. model.refresh();
  159. ]]>
  160. </script>
  161. </input>
  162. <caption id="caption2" class="search_name" style="left:825px; top:8px; width:61px; height:17px; ">사번:</caption>
  163. <input id="ipt_mealtodd" ref="/root/send/oproommeal/mealtodd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:556px; top:7px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
  164. <caption id="caption1" style="left:545px; top:7px; width:10px; height:20px; ">-</caption>
  165. <select1 id="cmb_mealflag" ref="/root/send/oproommeal/mealflag" class="combo_s_essential" appearance="minimal" style="left:720px; top:7px; width:86px; height:19px; ">
  166. <choices>
  167. <itemset>
  168. <label/>
  169. <value/>
  170. </itemset>
  171. </choices>
  172. </select1>
  173. <caption id="cap_mealflag" class="search_name" style="left:666px; top:7px; width:61px; height:17px; ">구분:</caption>
  174. <select1 id="rdo_workflag" ref="/root/send/oproommeal/workflag" appearance="full" cols="2" overflow="visible" style="left:15px; top:7px; width:140px; height:20px; border-style:solid; ">
  175. <choices>
  176. <item>
  177. <label>식대등록</label>
  178. <value>A</value>
  179. </item>
  180. <item>
  181. <label>급여반영</label>
  182. <value>B</value>
  183. </item>
  184. </choices>
  185. <script type="javascript" ev:event="xforms-value-changed">
  186. <![CDATA[
  187. misfGridInit(grd_oproommeallist);
  188. if (rdo_workflag.value == "A") {
  189. ipt_mealfromdd.disabled = false;
  190. cmb_mealflag.disabled = false;
  191. cmb_mealflag.value = "";
  192. misfComboComCdListMulti("Z0007,M0042,M0042","cmb_instcd,cmb_mealflag,grd_oproommeallist.mealflag");
  193. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  194. ipt_emplno.disabled = false;
  195. ipt_emplnm.disabled = false;
  196. btn_emplno.disabled = false;
  197. ipt_mealdd.visible = true;
  198. ipt_inputemplno.visible = true;
  199. btn_inputemplno.visible = true;
  200. caption5.visible = true;
  201. caption4.visible = true;
  202. grd_oproommeallist.colDisabled(grd_oproommeallist.colRef("payappyn")) = true;
  203. btn_allselect.visible = false;
  204. btn_allunselect.visible = false;
  205. ipt_payappym.visible = false;
  206. btn_payapp.visible = false;
  207. ipt_payappym.value = "";
  208. }
  209. else {
  210. ipt_mealfromdd.disabled = true;
  211. cmb_mealflag.disabled = true;
  212. addComboItem( "cmb_mealflag", "[-- 전체 --]", "%", "above");
  213. model.setValue(cmb_mealflag.attribute("ref"), "%");
  214. ipt_emplno.value = "";
  215. ipt_emplnm.value = "";
  216. ipt_emplno.disabled = true;
  217. ipt_emplnm.disabled = true;
  218. btn_emplno.disabled = true;
  219. ipt_mealdd.visible = false;
  220. ipt_inputemplno.visible = false;
  221. btn_inputemplno.visible = false;
  222. caption5.visible = false;
  223. caption4.visible = false;
  224. grd_oproommeallist.colDisabled(grd_oproommeallist.colRef("payappyn")) = false;
  225. btn_allselect.visible = true;
  226. btn_allunselect.visible = true;
  227. ipt_payappym.visible = true;
  228. btn_payapp.visible = true;
  229. var curdate = getCurrentDate();
  230. ipt_payappym.value = curdate.substr(0, 6);
  231. submit("TRRWD01502");
  232. if (model.getValue("/root/main/payappmealdd/payappmealddlist/mindd") != null && model.getValue("/root/main/payappmealdd/payappmealddlist/mindd") != "") {
  233. ipt_mealfromdd.value = model.getValue("/root/main/payappmealdd/payappmealddlist/mindd") ;
  234. }
  235. }
  236. model.refresh();
  237. ]]>
  238. </script>
  239. </select1>
  240. </group>
  241. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  242. <caption>엑셀저장</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  246. if (fileName != "")
  247. {
  248. grd_oproommeallist.saveExcel(fileName);
  249. }
  250. ]]>
  251. </script>
  252. </button>
  253. <datagrid id="grd_oproommeallist" nodeset="/root/main/oproommeal/oproommeallist" caption="급여반영여부^등록일자^등록시간^구분^사번^성명^부서^교직구분^직위^직종^직책^직급^급여반영월^공제여부^기관|급여반영여부^등록일자^등록시간^구분^사번^성명^부서^교직구분^직위^직종^직책^직급^급여반영월^공제여부^기관" colsep="^" colwidth="43, 95, 77, 101, 80, 87, 119, 90, 94, 97, 119, 65, 80, 36, 24" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:73px; width:1193px; height:667px; ">
  254. <col checkvalue="Y,N" disabled="true" ref="payappyn" type="checkbox" style="text-align:center; "/>
  255. <col ref="mealdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  256. <col ref="mealtm" format="99:99" style="text-align:center; vertical-align:middle; "/>
  257. <col disabled="true" ref="mealflag" type="combo">
  258. <choices>
  259. <itemset>
  260. <label/>
  261. <value/>
  262. </itemset>
  263. </choices>
  264. </col>
  265. <col ref="emplno"/>
  266. <col ref="emplnm"/>
  267. <col ref="deptnm"/>
  268. <col ref="prfshipflagnm"/>
  269. <col ref="jobposnm"/>
  270. <col ref="jobkindnm"/>
  271. <col ref="jobrespnm"/>
  272. <col ref="jobgradnm"/>
  273. <col ref="payappym" format="yyyy-mm"/>
  274. <col ref="paydeduyn" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  275. <col ref="instcd" visibility="hidden"/>
  276. </datagrid>
  277. <caption id="caption4" class="search_name" style="left:331px; top:49px; width:61px; height:17px; ">사번:</caption>
  278. <button id="btn_inputemplno" class="icon_search" style="left:499px; top:49px; width:16px; height:16px; ">
  279. <caption/>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. var recv_list = "emplno" ;
  283. rpbfOpenPopUpList("SPRPB00101", ipt_inputemplno, recv_list,"","N");
  284. model.refresh();
  285. if (ipt_inputemplno.value != null && ipt_inputemplno.value != "") {
  286. ipt_inputemplno.dispatch("xforms-value-changed");
  287. }
  288. ]]>
  289. </script>
  290. </button>
  291. <input id="ipt_inputemplno" ref="/root/temp/emplno" class="input_default" format="99999999" style="left:385px; top:49px; width:110px; height:19px; font-size:12pt; font-weight:bold; color:#3366ff; text-align:center; vertical-align:middle; ">
  292. <script type="javascript" ev:event="xforms-value-changed">
  293. <![CDATA[
  294. if (cmb_mealflag.value == null || cmb_mealflag.value == "" ) {
  295. messageBox("구분을 입력 하십시요.!!!.","");
  296. return;
  297. }
  298. misfGridIUD(grd_oproommeallist, "A");
  299. grd_oproommeallist.valueMatrix(grd_oproommeallist.row, grd_oproommeallist.colRef("emplno")) = ipt_inputemplno.value;
  300. misfSave("TXRWD01501");
  301. btn_search.dispatch("DOMActivate");
  302. model.setFocus("ipt_inputemplno");
  303. ipt_inputemplno.value = "";
  304. ]]>
  305. </script>
  306. </input>
  307. <input id="ipt_mealdd" ref="/root/send/oproommeal/mealdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:205px; top:49px; width:120px; height:19px; font-size:12pt; font-weight:bold; color:#3366ff; text-align:center; vertical-align:middle; "/>
  308. <caption id="caption5" class="search_name" style="left:136px; top:49px; width:68px; height:17px; ">입력일:</caption>
  309. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1075px; top:49px; width:53px; height:19px; ">
  310. <caption>행삭제</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. misfGridIUD(grd_oproommeallist, "D");
  314. ]]>
  315. </script>
  316. </button>
  317. <button id="btn_allselect" class="btn2_letter4" visibility="hidden" style="left:910px; top:49px; width:64px; height:19px; ">
  318. <caption>전체선택</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. for (var i = grd_oproommeallist.fixedRows; i < grd_oproommeallist.rows; i++ ) {
  322. if (grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) != "Y") {
  323. grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) = "Y";
  324. grd_oproommeallist.rowStatus(i) = "2";
  325. }
  326. }
  327. ]]>
  328. </script>
  329. </button>
  330. <button id="btn_allunselect" class="btn2_letter6" visibility="hidden" style="left:975px; top:49px; width:64px; height:19px; ">
  331. <caption>전체선택취소</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. for (var i = grd_oproommeallist.fixedRows; i < grd_oproommeallist.rows; i++ ) {
  335. if (grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) == "Y") {
  336. grd_oproommeallist.valueMatrix(i, grd_oproommeallist.colRef("payappyn")) = "N";
  337. grd_oproommeallist.rowStatus(i) = "2";
  338. }
  339. }
  340. ]]>
  341. </script>
  342. </button>
  343. <input id="ipt_payappym" ref="/root/send/oproommeal/payappym" class="input_default" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:670px; top:49px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
  344. <button id="btn_payapp" class="btn5_letter4" visibility="hidden" style="left:765px; top:49px; width:64px; height:19px; ">
  345. <caption>급여반영</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. if (grd_oproommeallist.rows - grd_oproommeallist.fixedRows <= 0) {
  349. messageBox("급여 반영 자료가 없습니다. 자료 조회후 실행하세요!!!.","");
  350. return;
  351. }
  352. var updtdata = getGridUpdateData(grd_oproommeallist);
  353. if (updtdata != "") {
  354. messageBox("저장후 급여반영 하십시요!!!.","");
  355. return;
  356. }
  357. model.setValue("/root/send/payapp/payym", ipt_payappym.value);
  358. model.setValue("/root/send/payapp/payitemcd", "60260");
  359. model.setValue("/root/send/payapp/payfromdd", ipt_mealfromdd.value);
  360. model.setValue("/root/send/payapp/paytodd", ipt_mealtodd.value);
  361. model.setValue("/root/send/payapp/instcd", cmb_instcd.value);
  362. submit("TXRWZ00303");
  363. btn_search.dispatch("DOMActivate");
  364. ]]>
  365. </script>
  366. </button>
  367. </group>
  368. <group id="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
  369. <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  370. <button id="button36" class="btn4_letter2" style="left:1137px; top:2px; width:56px; height:22px; ">
  371. <caption>저장</caption>
  372. <script type="javascript" ev:event="DOMActivate">
  373. <![CDATA[
  374. misfSave("TXRWD01501");
  375. btn_search.dispatch("DOMActivate");
  376. ]]>
  377. </script>
  378. </button>
  379. </group>
  380. </xhtml:body>
  381. </xhtml:html>