SPPIJ03304_DRG기준관리.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIJ03304" position="absolute 0 0 945 644" titletext="DRG기준자료 관리" oninit="SPPIJ03304_oninit" onload="SPPIJ03304_onload" onkeydown="SPPIJ03304_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 883 614 939 636" id="btn_cancel" class="btn4" text="종료" anchor="right bottom" onclick="btn_cancel_onclick"/>
  8. <Static id="cap_title" text="DRG기준자료 관리" class="tit_1" position="absolute 0 0 216 23"/>
  9. <Div id="group1" anchor="left top right" taborder="1" onkeydown="grp_biz_group1_onkeydown" class="div_SA" position="absolute 0 24 940 64">
  10. <Layouts>
  11. <Layout>
  12. <Button id="btn_select" taborder="1" text="조회" onclick="grp_biz_group1_btn_select_onclick" class="btn1" position="absolute 875 10 931 32" anchor="top right"/>
  13. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 857 5 863 38" anchor="top right"/>
  14. <Edit id="ipt_drgno" taborder="2" position="absolute 100 10 200 29" anchor="default"/>
  15. <Static id="caption30" text="DRG코드 :" class="search_name" position="absolute 8 11 103 28" anchor="default"/>
  16. <Edit id="ipt_cd_name" taborder="3" position="absolute 305 10 650 29" anchor="default"/>
  17. <Static id="caption1" text="코드명 :" class="search_name" position="absolute 223 11 322 28" anchor="default"/>
  18. <CheckBox id="chk_endyn" taborder="4" text="종료 제외" value="Y" truevalue="Y" falsevalue="N" onclick="grp_biz_group1_chk_endyn_onclick" position="absolute 745 11 845 31" anchor="top right"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static id="cap_judgtrgtman" text="DRG기준자료 리스트" class="tit_2" position="absolute 0 76 234 99"/>
  23. <Grid id="grd_drgalist" class="datagrid3" taborder="2" binddataset="ds_grd_drgalist" useinputpanel="false" selecttype="multirow" position="absolute 0 98 940 612" anchor="all" cellsizingtype="col">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="22"/>
  28. <Column size="56"/>
  29. <Column size="382"/>
  30. <Column size="39"/>
  31. <Column size="45"/>
  32. <Column size="45"/>
  33. <Column size="66"/>
  34. <Column size="63"/>
  35. <Column size="51"/>
  36. <Column size="55"/>
  37. <Column size="55"/>
  38. <Column size="80"/>
  39. <Column size="79"/>
  40. <Column size="76"/>
  41. <Column size="76"/>
  42. <Column size="75"/>
  43. <Column size="35"/>
  44. <Column size="36"/>
  45. <Column size="60"/>
  46. <Column size="100"/>
  47. <Column size="60"/>
  48. <Column size="100"/>
  49. </Columns>
  50. <Rows>
  51. <Row size="62" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell/>
  56. <Cell col="1" text="DRG코드"/>
  57. <Cell col="2" text="코드명"/>
  58. <Cell col="3" text="평균&#10;재원&#10;일수"/>
  59. <Cell col="4" text="정상군&#10;하한입&#10;원일수"/>
  60. <Cell col="5" text="정상군&#10;상한입&#10;원일수"/>
  61. <Cell col="6" text="상대가치&#10;점수"/>
  62. <Cell col="7" text="일당점수"/>
  63. <Cell col="8" text="점수당&#10;단가"/>
  64. <Cell col="9" text="야간&#10;공휴&#10;점수"/>
  65. <Cell col="10" text="산부인과&#10;가산점수"/>
  66. <Cell col="11" text="야간공휴금액"/>
  67. <Cell col="12" text="수정체/로봇&#10;제외금액"/>
  68. <Cell col="13" text="시작일자"/>
  69. <Cell col="14" text="종료일자"/>
  70. <Cell col="15" text="기준진료비"/>
  71. <Cell col="16" text="고정&#10;비율"/>
  72. <Cell col="17" text="DRG&#10;구분"/>
  73. <Cell col="18" text="등록자"/>
  74. <Cell col="19" text="등록일자"/>
  75. <Cell col="20" text="수정자"/>
  76. <Cell col="21" text="수정일자"/>
  77. </Band>
  78. <Band id="body">
  79. <Cell celltype="head"/>
  80. <Cell col="1" displaytype="text" edittype="text" editfilter="upper,number,char" text="bind:drgno" enable="false"/>
  81. <Cell col="2" displaytype="text" edittype="text" text="bind:cd_name"/>
  82. <Cell col="3" displaytype="number" text="bind:avg_adm_days"/>
  83. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:ngrp_llmt_adm_days"/>
  84. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:ngrp_hlmt_adm_days"/>
  85. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:rlv_pnt"/>
  86. <Cell col="7" displaytype="number" text="bind:daily_pnt"/>
  87. <Cell col="8" displaytype="number" style="align:right middle;" text="bind:spot_awc_prc"/>
  88. <Cell col="9" displaytype="number" text="bind:nig_pnt"/>
  89. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:obgy_pnt"/>
  90. <Cell col="11" displaytype="number" text="bind:nig_amt"/>
  91. <Cell col="12" displaytype="number" style="align:right middle;" text="bind:robotamt"/>
  92. <Cell col="13" displaytype="date" edittype="date" text="bind:fromdd" mask="yyyy-MM-dd" enable="false"/>
  93. <Cell col="14" displaytype="date" edittype="date" text="bind:todd" mask="yyyy-MM-dd" enable="false"/>
  94. <Cell col="15" displaytype="number" text="bind:std_amt"/>
  95. <Cell col="16" displaytype="number" style="align:right middle;" text="bind:fix_amt_rat"/>
  96. <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:drg_cls" expr="expr:drg_cls == 'Y' || drg_cls == '1' ? 1 : 0"/>
  97. <Cell col="18" displaytype="text" edittype="none" style="align:center middle;" text="bind:fstrgstrid"/>
  98. <Cell col="19" displaytype="date" edittype="date" style="align:center middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
  99. <Cell col="20" displaytype="text" edittype="text" style="align:center middle;" text="bind:lastupdtrid"/>
  100. <Cell col="21" displaytype="date" edittype="date" style="align:center middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
  101. </Band>
  102. </Format>
  103. </Formats>
  104. </Grid>
  105. <Shape id="line1" class="line_1" position="absolute 0 89 940 103" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  106. <Button id="btn_excelsave" taborder="3" text="엑셀저장" onclick="grp_biz_btn_excelsave_onclick" class="btn7" position="absolute 709 74 789 93" anchor="top right"/>
  107. <Button id="button2" taborder="4" text="행종료" onclick="grp_biz_button2_onclick" class="btn2" position="absolute 790 74 843 93" anchor="top right"/>
  108. <Button id="button3" taborder="5" text="행추가" onclick="grp_biz_button3_onclick" class="btn2" position="absolute 844 74 897 93" anchor="top right"/>
  109. <Button id="button1" taborder="6" text="저장" onclick="grp_biz_button1_onclick" class="btn5" position="absolute 898 74 940 93" anchor="top right"/>
  110. </Layout>
  111. </Layouts>
  112. <Objects>
  113. <Dataset id="ds_grd_drgalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="drgno" type="STRING"/>
  116. <Column id="cd_name" type="STRING"/>
  117. <Column id="std_amt" type="STRING"/>
  118. <Column id="avg_adm_days" type="STRING"/>
  119. <Column id="ngrp_llmt_adm_days" type="STRING"/>
  120. <Column id="ngrp_hlmt_adm_days" type="STRING"/>
  121. <Column id="fix_amt_rat" type="STRING"/>
  122. <Column id="drg_cls" type="STRING"/>
  123. <Column id="rlv_pnt" type="STRING"/>
  124. <Column id="spot_awc_prc" type="STRING"/>
  125. <Column id="nig_pnt" type="STRING"/>
  126. <Column id="obgy_pnt" type="STRING"/>
  127. <Column id="nig_amt" type="STRING"/>
  128. <Column id="robotamt" type="STRING"/>
  129. <Column id="fromdd" type="STRING"/>
  130. <Column id="todd" type="STRING"/>
  131. <Column id="fstrgstrid" type="STRING"/>
  132. <Column id="fstrgstdt" type="STRING"/>
  133. <Column id="lastupdtrid" type="STRING"/>
  134. <Column id="lastupdtdt" type="STRING"/>
  135. <Column id="daily_pnt" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. </Dataset>
  138. </Objects>
  139. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  140. * System Name :
  141. * Job Name :
  142. * Creator :
  143. * Make Date : 2016-05-24
  144. * Description :
  145. *---------------------------------------------------------------------------------------
  146. * Modify Date Modifier Modify Description
  147. *---------------------------------------------------------------------------------------
  148. * 2016-05-24 Live Converter TF->XP
  149. *
  150. *---------------------------------------------------------------------------------------
  151. ****************************************************************************************/
  152. include "com_commonxp::comm_main.xjs";
  153. include "pam_pamcomnxp::PAM001.xjs";
  154. function SPPIJ03304_oninit(obj:Form, e:InitEventInfo)
  155. {
  156. frmf_initForm(obj);
  157. }
  158. function SPPIJ03304_onload(obj:Form, e:LoadEventInfo)
  159. {
  160. grdf_initGrid(grd_drgalist);
  161. grdf_setRowTypeIcon(grd_drgalist, 0);
  162. fInitialize();
  163. }
  164. function fInitialize()
  165. {
  166. fGetDocuList();
  167. }
  168. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  169. {
  170. fGetDocuList();
  171. }
  172. function fGetDocuList(){
  173. dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}
  174. , {col:"drgno", type:"STRING", size:256 ,val :group1.ipt_drgno.value}
  175. , {col:"cd_name", type:"STRING", size:256 ,val :group1.ipt_cd_name.value}
  176. , {col:"endyn", type:"STRING", size:256 ,val :group1.chk_endyn.value}]);
  177. var oParam = {};
  178. oParam.id = "TRPIJ03304";
  179. oParam.service = "bfjudgapp.DRGCdIF";
  180. oParam.method = "reqGetDrgAList";
  181. oParam.inds = "req=ds_send";
  182. oParam.outds = "ds_grd_drgalist=rslt";
  183. oParam.async = false;
  184. //oParam.callback = "cf_TRPIJ03304";
  185. tranf_submit(oParam);
  186. }
  187. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  188. {
  189. if (ds_grd_drgalist.rowcount > 0)
  190. {
  191. grdf_exportExcel(grd_drgalist, "exportExcel", "see");
  192. }
  193. else
  194. {
  195. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  196. }
  197. }
  198. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
  199. {
  200. fSpclGridDeleteRow();
  201. }
  202. function fSpclGridDeleteRow(){
  203. var SelectedRows = grdf_getSelectedRows(grd_drgalist);
  204. grdf_setStatus(grd_drgalist, "D", SelectedRows);
  205. }
  206. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  207. {
  208. fSpclGridInsertRow();
  209. }
  210. function fSpclGridInsertRow()
  211. {
  212. var addRw = ds_grd_drgalist.addRow();
  213. var arrPostion = new Array();
  214. arrPostion[0] = addRw;
  215. grdf_setStatus(grd_drgalist, "I", arrPostion);
  216. }
  217. function grp_biz_group1_onkeydown(obj:Div, e:KeyEventInfo)
  218. {
  219. if(e.keycode == 13)
  220. {
  221. fInitialize();
  222. }
  223. }
  224. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  225. {
  226. this.close();
  227. }
  228. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  229. {
  230. var updtdata = grdf_getGridUpdateData(grd_drgalist);
  231. if ( updtdata.rowcount == 0)
  232. {
  233. sysf_messageBox("변경된 데이터가","I004");
  234. return;
  235. }
  236. for (var i=0; i < ds_grd_drgalist.rowcount; i++)
  237. {
  238. if (ds_grd_drgalist.getRowType(i) == 2 || ds_grd_drgalist.getRowType(i) == 4 )
  239. {
  240. var diagcd = grd_drgalist.getBindCellIndex("body","drgno");
  241. var cd_name = grd_drgalist.getBindCellIndex("body","cd_name");
  242. var std_amt = grd_drgalist.getBindCellIndex("body","std_amt");
  243. var avg_adm_days = grd_drgalist.getBindCellIndex("body","avg_adm_days");
  244. var ngrp_llmt_adm_days = grd_drgalist.getBindCellIndex("body","ngrp_llmt_adm_days");
  245. var ngrp_hlmt_adm_days = grd_drgalist.getBindCellIndex("body","ngrp_hlmt_adm_days");
  246. var fix_amt_rat = grd_drgalist.getBindCellIndex("body","fix_amt_rat");
  247. var rlv_pnt = grd_drgalist.getBindCellIndex("body","rlv_pnt");
  248. var spot_awc_prc = grd_drgalist.getBindCellIndex("body","spot_awc_prc");
  249. var nig_pnt = grd_drgalist.getBindCellIndex("body","nig_pnt");
  250. var nig_amt = grd_drgalist.getBindCellIndex("body","nig_amt");
  251. var fromdd = grd_drgalist.getBindCellIndex("body","fromdd");
  252. var todd = grd_drgalist.getBindCellIndex("body","todd");
  253. var daily_pnt = grd_drgalist.getBindCellIndex("body","daily_pnt");
  254. if(!frmf_chkMdtGrid(grd_drgalist,[diagcd,cd_name,std_amt,avg_adm_days,ngrp_llmt_adm_days,ngrp_hlmt_adm_days,fix_amt_rat,rlv_pnt,spot_awc_prc,nig_pnt,nig_amt,fromdd,todd],["DRG코드","코드명","기준진료비","평균재원일수","정상군하한입원일수","정상군상한입원일수","고정비율","상대가치점수","점수당단가","야간공휴점수","산부인과가산점수","시작일자","종료일자"]))
  255. {
  256. return;
  257. }
  258. }
  259. }
  260. if (sysf_messageBox("저장", "S001") == 6)
  261. {
  262. var Ids = dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val :sysf_getUserInfo("dutplceinstcd") }
  263. , {col:"diagcd", type:"STRING", size:256, val :group1.ipt_drgno.value}
  264. , {col:"diagnm", type:"STRING", size:256, val :group1.ipt_cd_name.value}]);
  265. var oParam = {};
  266. oParam.id = "TXPIJ03303";
  267. oParam.service = "bfjudgapp.DRGCdIF";
  268. oParam.method = "reqExeDrgAList";
  269. oParam.inds = "srch="+Ids+" req=ds_grd_drgalist:U";
  270. oParam.outds = "ds_grd_drgalist=rslt";
  271. oParam.async = false;
  272. oParam.callback = "cf_TXPIJ03303";
  273. tranf_submit(oParam);
  274. }
  275. }
  276. function cf_TXPIJ03303(sSvcId, nErrorCode, sErrorMsg) {
  277. if(nErrorCode < 0) return;
  278. sysf_messageBox("저장이","I002");
  279. }]]></Script>
  280. </Form>
  281. </FDL>