SMRPV09400_평가등급산출.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  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. <valutrgt>
  11. <valutrgtlist/>
  12. </valutrgt>
  13. </main>
  14. <send>
  15. <save>
  16. <valutrgtlist/>
  17. </save>
  18. <valutrgt>
  19. <valuyy/>
  20. <instcd/>
  21. <valuclscd/>
  22. <valugrupcd/>
  23. <calcflag/>
  24. </valutrgt>
  25. </send>
  26. <init/>
  27. <hidden/>
  28. <temp>
  29. <valugrad>
  30. <valugradlist/>
  31. </valugrad>
  32. </temp>
  33. <target/>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. /* Grid 초기화 */
  39. misfGridInit(grd_valugradlist);
  40. /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
  41. /* Grid의 Mater, Detail관계 설정
  42. misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
  43. misfMsterDetailSet(grd_valugradlist,null, "TRRPV09401" ,"Y");
  44. var curdate = getCurrentDate();
  45. model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
  46. rpvfComboValuCdList(model.getValue(ipt_valuyy.attribute("ref")),"VALUCLSCD,VALUGROUPCD,VALUSCORBIZ,VALUSCORBIZ","cmb_valucls,cmb_valugrup,grd_valugradlist.adjtgrad,grd_valugradlist.medicntrgrad");
  47. addGridComboItemAll("cmb_valucls","[-전체-]","%","above");
  48. addGridComboItemAll("cmb_valugrup"," [-전체-]","%","above");
  49. rpvfComboInstCdList("cmb_instcd");
  50. addGridComboItemAll("cmb_instcd"," [-전체-]","","above");
  51. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  52. cmb_valucls.select(0);
  53. cmb_valugrup.select(0);
  54. var instcd = getUserInfo("dutplceinstcd");
  55. var emplno = getUserInfo("userid");
  56. rpvfGetUserAuth(instcd,emplno);
  57. // if(DUTY_VALU_YN =='Y'){
  58. // cmb_instcd.disabled = false;
  59. // btn_lastcnfm.visible = true;
  60. // }else{
  61. // cmb_instcd.disabled = true;
  62. // btn_lastcnfm.visible = false;
  63. // }
  64. if (DUTY_VALU_YN == "Y" && getUserInfo("dutplceinstcd") == "001" ) {
  65. grd_valugradlist.colHidden(grd_valugradlist.colRef("medicntrgrad")) = false;
  66. }
  67. else {
  68. grd_valugradlist.colHidden(grd_valugradlist.colRef("medicntrgrad")) = true;
  69. }
  70. rpvfComboDisableYn("cmb_instcd","");
  71. model.refresh();
  72. ]]>
  73. </script>
  74. <script type="javascript" ev:event="xforms-model-destruct">
  75. <![CDATA[
  76. if (getGridUpdateData(grd_valugradlist) != "" ) {
  77. var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
  78. if (save_val == "6") {
  79. btn_save.dispatch("DOMActivate");
  80. }
  81. }
  82. ]]>
  83. </script>
  84. <submission id="TRRPV09401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/valutrgt" resultref="/root/main/valutrgt"/>
  85. <submission id="TXRPV09401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/valutrgt" resultref="/root/temp/valugrad"/>
  86. <submission id="TXRPV09402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  87. <submission id="TXRPV09403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  88. <submission id="TXRPV09404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  89. </model>
  90. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  94. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  95. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  96. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  97. <script type="javascript">
  98. <![CDATA[
  99. ]]>
  100. </script>
  101. </xhtml:head>
  102. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  103. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  104. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">평가 등급 산출</caption>
  105. </group>
  106. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744; ">
  107. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0; top:10; width:1195; height:35px; "/>
  108. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  109. <datagrid id="grd_valugradlist" nodeset="/root/main/valutrgt/valutrgtlist" caption="기관^부서^사번^성명^직급^평가대상^평가그룹^평가군^원점수^조정점수^산출등급^기관조정등급^의료원조정등급^평가년도^기관확정여부^의료원확정여부|기관^부서^사번^성명^직급^평가대상^평가그룹^평가군^원점수^조정점수^산출등급^기관조정등급^의료원조정등급^평가년도^기관확정여부^의료원확정여부" colsep="^" colwidth="128, 120, 68, 65, 83, 85, 104, 185, 67, 59, 69, 56, 66, 26, 40, 41" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1195px; height:665px; ">
  110. <col ref="instnm"/>
  111. <col ref="deptnm"/>
  112. <col ref="emplno"/>
  113. <col ref="emplnm"/>
  114. <col ref="jobgradnm"/>
  115. <col ref="valutrgtnm"/>
  116. <col ref="valuclsnm"/>
  117. <col ref="valugrupnm"/>
  118. <col ref="lastvaluscor" style="text-align:right; vertical-align:middle; "/>
  119. <col ref="adjtvaluscor" type="input" style="text-align:right; vertical-align:middle; "/>
  120. <col ref="valugrde"/>
  121. <col ref="adjtgrad" type="combo">
  122. <choices>
  123. <itemset>
  124. <label/>
  125. <value/>
  126. </itemset>
  127. </choices>
  128. </col>
  129. <col ref="medicntrgrad" type="combo">
  130. <choices>
  131. <itemset>
  132. <label/>
  133. <value/>
  134. </itemset>
  135. </choices>
  136. </col>
  137. <col ref="valuyy" visibility="hidden"/>
  138. <col ref="instcnfmyn" visibility="hidden"/>
  139. <col ref="lastcnfmyn" visibility="hidden"/>
  140. </datagrid>
  141. <caption id="caption1" class="tit_2" style="left:0px; top:54px; width:230px; height:14px; vertical-align:middle; ">평가 등급 List</caption>
  142. <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  143. <caption id="cap_valuyy" class="search_name" style="left:15px; top:19px; width:60px; height:17px; vertical-align:middle; ">년도:</caption>
  144. <input id="ipt_valuyy" ref="/root/send/valutrgt/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:70px; top:18px; width:105px; height:19px; ">
  145. <script type="javascript" ev:event="xforms-value-changed">
  146. <![CDATA[
  147. var instcd = cmb_instcd.value;
  148. if( getStringLength(ipt_valuyy.value) == "4" ) {
  149. rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
  150. addGridComboItemAll("cmb_instcd"," [-전체-]","","above");
  151. cmb_instcd.value = instcd;
  152. model.refresh();
  153. }
  154. ]]>
  155. </script>
  156. </input>
  157. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  158. <caption>조회</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. misfMsterDetailRetrieve();
  162. var lastcnfmyn = "N";
  163. var medicntryn = "N";
  164. var instcnfmyn = "N";
  165. var valuclscd = cmb_valucls.value;
  166. var valugroupcd = cmb_valugrup.value;
  167. if (DUTY_VALU_YN == "Y" && getUserInfo("dutplceinstcd") == "001" ) {
  168. for (var i = grd_valugradlist.fixedRows; i < grd_valugradlist.rows; i++ ) {
  169. if (grd_valugradlist.valueMatrix(i, grd_valugradlist.colRef("adjtgrad")) == "") {
  170. lastcnfmyn = "N";
  171. //break;
  172. }
  173. else {
  174. lastcnfmyn = "Y";
  175. }
  176. if (grd_valugradlist.valueMatrix(i, grd_valugradlist.colRef("instcnfmyn")) != "Y") {
  177. instcnfmyn = "N";
  178. //break;
  179. }
  180. else {
  181. instcnfmyn = "Y";
  182. }
  183. if (grd_valugradlist.valueMatrix(i, grd_valugradlist.colRef("lastcnfmyn")) != "Y") {
  184. medicntryn = "N";
  185. //break;
  186. }
  187. else {
  188. medicntryn = "Y";
  189. }
  190. }
  191. if (instcnfmyn == "Y") {
  192. btn_scorcalc.disabled = true;
  193. btn_save.disabled = true;
  194. btn_gradcalc.disabled = true;
  195. btn_instcnfm.disabled = true;
  196. if (valuclscd == "%" && valugroupcd == "%") {
  197. btn_lastcnfm.visible = true;
  198. }
  199. else {
  200. btn_lastcnfm.visible = false;
  201. }
  202. }
  203. else {
  204. btn_scorcalc.disabled = false;
  205. btn_save.disabled = false;
  206. btn_gradcalc.disabled = false;
  207. btn_lastcnfm.visible = false;
  208. if (lastcnfmyn == "Y") {
  209. btn_instcnfm.disabled = false;
  210. }
  211. else {
  212. btn_instcnfm.disabled = true;
  213. }
  214. }
  215. }
  216. else if (DUTY_VALU_YN == "Y") {
  217. for (var i = grd_valugradlist.fixedRows; i < grd_valugradlist.rows; i++ ) {
  218. if (grd_valugradlist.valueMatrix(i, grd_valugradlist.colRef("adjtgrad")) == "") {
  219. lastcnfmyn = "N";
  220. //break;
  221. }
  222. else {
  223. lastcnfmyn = "Y";
  224. }
  225. if (grd_valugradlist.valueMatrix(i, grd_valugradlist.colRef("instcnfmyn")) != "Y") {
  226. instcnfmyn = "N";
  227. //break;
  228. }
  229. else {
  230. instcnfmyn = "Y";
  231. }
  232. }
  233. btn_lastcnfm.visible = false;
  234. if (instcnfmyn == "Y") {
  235. btn_scorcalc.disabled = true;
  236. btn_save.disabled = true;
  237. btn_gradcalc.disabled = true;
  238. btn_instcnfm.disabled = true;
  239. }
  240. else{
  241. btn_scorcalc.disabled = false;
  242. btn_save.disabled = false;
  243. btn_gradcalc.disabled = false;
  244. if (lastcnfmyn == "Y") {
  245. btn_instcnfm.disabled = false;
  246. }
  247. else{
  248. btn_instcnfm.disabled = true;
  249. }
  250. //btn_instcnfm.disabled = false;
  251. }
  252. }
  253. else {
  254. btn_instcnfm.disabled = true;
  255. btn_lastcnfm.visible = false;
  256. btn_scorcalc.disabled = true;
  257. btn_save.disabled = true;
  258. btn_gradcalc.disabled = true;
  259. }
  260. if (DUTY_VALU_YN == "Y" && valuclscd == "%" && valugroupcd == "%") {
  261. btn_instcnfm.visible = true;
  262. }
  263. else {
  264. btn_instcnfm.visible = false;
  265. }
  266. ]]>
  267. </script>
  268. </button>
  269. <select1 id="cmb_instcd" ref="/root/send/valutrgt/instcd" class="combo_s_essential" appearance="minimal" style="left:283px; top:18px; width:157px; height:19px; text-align:center; ">
  270. <choices>
  271. <itemset>
  272. <label/>
  273. <value/>
  274. </itemset>
  275. </choices>
  276. </select1>
  277. <caption id="cap_instcd" class="search_name" style="left:220px; top:19px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
  278. <select1 id="cmb_valucls" ref="/root/send/valutrgt/valuclscd" class="combo_s_essential" appearance="minimal" style="left:550px; top:18px; width:157px; height:19px; text-align:center; ">
  279. <choices>
  280. <itemset>
  281. <label/>
  282. <value/>
  283. </itemset>
  284. </choices>
  285. </select1>
  286. <caption id="caption2" class="search_name" style="left:467px; top:19px; width:81px; height:17px; vertical-align:middle; ">평가그룹:</caption>
  287. <select1 id="cmb_valugrup" ref="/root/send/valutrgt/valugrupcd" class="combo_s_essential" appearance="minimal" style="left:815px; top:18px; width:157px; height:19px; text-align:center; ">
  288. <choices>
  289. <itemset>
  290. <label/>
  291. <value/>
  292. </itemset>
  293. </choices>
  294. </select1>
  295. <caption id="caption3" class="search_name" style="left:747px; top:19px; width:71px; height:17px; vertical-align:middle; ">평가군:</caption>
  296. <button id="btn_saveexcel" class="btn2_letter5" style="left:1117px; top:49px; width:75px; height:19px; ">
  297. <caption>Excel저장</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  301. if (fileName != "")
  302. {
  303. grd_valugradlist.saveExcel(fileName);
  304. }
  305. ]]>
  306. </script>
  307. </button>
  308. </group>
  309. <group id="grp_btn" scroll="auto" ref="/root/send/orgImrsn/valuyy" style="left:0px; top:12px; width:1195px; height:27px; ">
  310. <line id="line6" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  311. <button id="btn_init" class="btn4_letter3" style="left:1119px; top:3px; width:68px; height:22px; ">
  312. <caption>초기화</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. window.reload() ;
  316. ]]>
  317. </script>
  318. </button>
  319. <button id="btn_save" class="btn4_letter2" style="left:689px; top:3px; width:56px; height:22px; ">
  320. <caption>저장</caption>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. misfSave("TXRPV09402");
  324. btn_search.dispatch("DOMActivate");
  325. ]]>
  326. </script>
  327. </button>
  328. <button id="btn_lastcnfm" class="btn4_letter5" visibility="hidden" style="left:1025px; top:3px; width:92px; height:22px; ">
  329. <caption>의료원확정</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. for (var i = grd_valugradlist.fixedRows; i < grd_valugradlist.rows; i++) {
  333. grd_valugradlist.valueMatrix(i, grd_valugradlist.colRef("lastcnfmyn")) = "Y";
  334. grd_valugradlist.rowStatus(i) = "2";
  335. }
  336. model.setValue("/root/send/save/valutrgtlist", grd_valugradlist.getUpdateData());
  337. submit("TXRPV09404");
  338. btn_save.dispatch("DOMActivate");
  339. ]]>
  340. </script>
  341. </button>
  342. <button id="btn_instcnfm" class="btn4_letter5" disabled="true" visibility="hidden" style="left:928px; top:3px; width:104px; height:22px; ">
  343. <caption>의료원전송</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. for (var i = grd_valugradlist.fixedRows; i < grd_valugradlist.rows; i++) {
  347. grd_valugradlist.valueMatrix(i, grd_valugradlist.colRef("instcnfmyn")) = "Y";
  348. grd_valugradlist.rowStatus(i) = "2";
  349. }
  350. model.setValue("/root/send/save/valutrgtlist", grd_valugradlist.getUpdateData());
  351. submit("TXRPV09403");
  352. btn_save.dispatch("DOMActivate");
  353. ]]>
  354. </script>
  355. </button>
  356. <button id="btn_gradcalc" class="btn4_letter4" style="left:847px; top:3px; width:80px; height:22px; ">
  357. <caption>등급산출</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. model.setValue("/root/send/valutrgt/calcflag","B");
  361. submit("TXRPV09401");
  362. btn_search.dispatch("DOMActivate");
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="btn_scorcalc" class="btn4_letter4" style="left:766px; top:3px; width:80px; height:22px; ">
  367. <caption>점수산출</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. model.setValue("/root/send/valutrgt/calcflag","A");
  371. submit("TXRPV09401");
  372. btn_search.dispatch("DOMActivate");
  373. ]]>
  374. </script>
  375. </button>
  376. </group>
  377. </xhtml:body>
  378. </xhtml:html>