SPPIJ03300_DRG수술코드관리.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIJ03300" position="absolute 0 0 944 648" titletext="DRG 수술코드 기준자료 관리" oninit="SPPIJ03300_oninit" onload="SPPIJ03300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 26 942 618" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 78 940 592" id="grd_opcdlist" class="datagrid3" binddataset="ds_grd_opcdlist" anchor="all" autofittype="none" selecttype="multirow" cellsizingtype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="20"/>
  15. <Column size="54"/>
  16. <Column size="196"/>
  17. <Column size="79"/>
  18. <Column size="43"/>
  19. <Column size="75"/>
  20. <Column size="92"/>
  21. <Column size="30"/>
  22. <Column size="70"/>
  23. <Column size="70"/>
  24. <Column size="50"/>
  25. <Column size="100"/>
  26. <Column size="50"/>
  27. <Column size="105"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="59" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="수술코드"/>
  36. <Cell col="2" text="수술명"/>
  37. <Cell col="3" text="외과&#13;&#10;가산&#13;&#10;유무" combodisplay="edit"/>
  38. <Cell col="4" displaytype="normal" edittype="normal" style="accessibility:disable all '' '';" text="신생아&#10;제외"/>
  39. <Cell col="5" text="분류번호"/>
  40. <Cell col="6" text="진료과"/>
  41. <Cell col="7" text="수술&#10;코드&#10;구분"/>
  42. <Cell col="8" text="시작일자"/>
  43. <Cell col="9" text="종료일자"/>
  44. <Cell col="10" text="등록자"/>
  45. <Cell col="11" text="등록일자"/>
  46. <Cell col="12" text="수정자"/>
  47. <Cell col="13" text="수정일자"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head"/>
  51. <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:opedicode" enable="false"/>
  52. <Cell col="2" displaytype="text" edittype="text" style="align:left middle;" text="bind:opnm" enable="false"/>
  53. <Cell col="3" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:gsaddflag" combodataset="ds_init_PK028list" combocodecol="cdid" combodatacol="cdnm"/>
  54. <Cell col="4" displaytype="checkbox" edittype="checkbox" style="align:center middle;" text="bind:babyexceptyn" expr="expr:babyexceptyn == 'Y' || babyexceptyn == '1' ? 1 : 0"/>
  55. <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:classno"/>
  56. <Cell col="6" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_cmb_orddeptcd" combocodecol="deptcd" combodatacol="depthngnm" enable="true"/>
  57. <Cell col="7" displaytype="text" edittype="text" style="align:center middle;" text="bind:opgbn"/>
  58. <Cell col="8" displaytype="date" edittype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
  59. <Cell col="9" displaytype="date" edittype="date" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd" enable="false"/>
  60. <Cell col="10" displaytype="text" edittype="none" style="align:center middle;" text="bind:fstrgstrid"/>
  61. <Cell col="11" displaytype="date" edittype="none" style="align:center middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
  62. <Cell col="12" displaytype="text" style="align:center middle;" text="bind:lastupdtrid"/>
  63. <Cell col="13" displaytype="date" style="align:center middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <Static text="DRG 수술코드 기준자료 리스트" position="absolute 0 56 234 79" id="cap_judgtrgtman" class="tit_2" anchor="default"/>
  69. <Shape position="absolute -1 73 940 79" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  70. <Div position="absolute 0 0 940 40" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
  71. <Layouts>
  72. <Layout>
  73. <Static text="수술코드 :" position="absolute 8 11 95 28" id="caption30" class="search_name" anchor="default"/>
  74. <Button position="absolute 875 10 931 32" id="btn_select" class="btn1" taborder="32" text="조회" anchor="top right" onclick="grp_biz_group1_btn_select_onclick"/>
  75. <Shape position="absolute 857 5 863 38" linetype="vertical" id="line3" class="line_4" anchor="top right"/>
  76. <Edit position="absolute 100 10 200 29" id="ipt_opedicode" anchor="default" oneditclick="grp_biz_group1_ipt_opedicode_oneditclick" onkeydown="grp_biz_group1_ipt_opedicode_onkeydown"/>
  77. <Static text="수술코드구분 :" position="absolute 213 11 321 28" id="caption1" class="search_name" anchor="default"/>
  78. <Edit position="absolute 330 10 430 29" id="ipt_opgbn" anchor="default" oneditclick="grp_biz_group1_ipt_opgbn_oneditclick" onkeydown="grp_biz_group1_ipt_opgbn_onkeydown"/>
  79. <Static text="진료과 :" position="absolute 453 11 540 28" id="caption2" class="search_name" anchor="default"/>
  80. <Combo position="absolute 545 10 645 29" id="cmb_orddeptcd" innerdataset="ds_init_cmb_orddeptcd" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onitemchanged="grp_biz_group1_cmb_orddeptcd_onitemchanged"/>
  81. </Layout>
  82. </Layouts>
  83. </Div>
  84. <Button position="absolute 709 52 789 71" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_btn_excelsave_onclick"/>
  85. <Button position="absolute 898 52 940 71" id="button1" class="btn5" text="저장" anchor="top right" onclick="grp_biz_button1_onclick"/>
  86. <Button position="absolute 790 52 843 71" id="button2" class="btn2" text="행종료" anchor="top right" onclick="grp_biz_button2_onclick"/>
  87. <Button position="absolute 844 52 897 71" id="button3" class="btn2" text="행추가" anchor="top right" onclick="grp_biz_button3_onclick"/>
  88. <Grid position="absolute 500 40 550 75" id="datagrid1" visible="false" binddataset="ds_datagrid1" anchor="default">
  89. <Formats>
  90. <Format id="default">
  91. <Columns>
  92. <Column size="100"/>
  93. <Column size="100"/>
  94. <Column size="100"/>
  95. </Columns>
  96. <Rows>
  97. <Row size="24" band="head"/>
  98. <Row size="24"/>
  99. </Rows>
  100. <Band id="head">
  101. <Cell text="caption1"/>
  102. <Cell col="1" text="caption2"/>
  103. <Cell col="2" text="caption3"/>
  104. </Band>
  105. <Band id="body">
  106. <Cell text="bind:deptcd"/>
  107. <Cell col="1" text="bind:depthngnm"/>
  108. <Cell col="2" text="bind:deptengabbr"/>
  109. </Band>
  110. </Format>
  111. </Formats>
  112. </Grid>
  113. </Layout>
  114. </Layouts>
  115. </Div>
  116. <Button position="absolute 884 622 940 644" id="btn_cancel" class="btn4" text="종료" anchor="right bottom" onclick="btn_cancel_onclick"/>
  117. <Static id="cap_title" text="DRG 수술코드 기준자료 관리" class="tit_1" position="absolute 0 0 216 25"/>
  118. </Layout>
  119. </Layouts>
  120. <Objects>
  121. <Dataset id="ds_grd_opcdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_opcdlist_oncolumnchanged">
  122. <ColumnInfo>
  123. <Column id="opedicode" type="STRING"/>
  124. <Column id="opnm" type="STRING"/>
  125. <Column id="gsaddflag" type="STRING"/>
  126. <Column id="babyexceptyn" type="STRING"/>
  127. <Column id="classno" type="STRING"/>
  128. <Column id="orddeptcd" type="STRING"/>
  129. <Column id="opgbn" type="STRING"/>
  130. <Column id="fromdd" type="STRING"/>
  131. <Column id="todd" type="STRING"/>
  132. <Column id="fstrgstrid" type="STRING"/>
  133. <Column id="fstrgstdt" type="STRING"/>
  134. <Column id="lastupdtrid" type="STRING"/>
  135. <Column id="lastupdtdt" type="STRING"/>
  136. </ColumnInfo>
  137. <Rows/>
  138. </Dataset>
  139. <Dataset id="ds_init_cmb_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="depthngnm" type="STRING"/>
  142. <Column id="deptcd" type="STRING"/>
  143. </ColumnInfo>
  144. </Dataset>
  145. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="deptcd" type="STRING"/>
  148. <Column id="depthngnm" type="STRING"/>
  149. <Column id="deptengabbr" type="STRING"/>
  150. </ColumnInfo>
  151. </Dataset>
  152. <Dataset id="Dataset00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  153. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  154. <Dataset id="ds_init_PK028list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  155. </Objects>
  156. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  157. * System Name :
  158. * Job Name :
  159. * Creator :
  160. * Make Date : 2016-05-24
  161. * Description :
  162. *---------------------------------------------------------------------------------------
  163. * Modify Date Modifier Modify Description
  164. *---------------------------------------------------------------------------------------
  165. * 2016-05-24 Live Converter TF->XP
  166. *
  167. *---------------------------------------------------------------------------------------
  168. ****************************************************************************************/
  169. include "com_commonxp::comm_main.xjs";
  170. include "pam_pamcomnxp::PAM001.xjs";
  171. function SPPIJ03300_oninit(obj:Form, e:InitEventInfo)
  172. {
  173. frmf_initForm(obj);
  174. }
  175. function SPPIJ03300_onload(obj:Form, e:LoadEventInfo)
  176. {
  177. grdf_initGrid(grp_biz.grd_opcdlist);
  178. grdf_setRowTypeIcon(grp_biz.grd_opcdlist, 0);
  179. grdf_setToolTipBind(grp_biz.grd_opcdlist)
  180. fInitialize();
  181. }
  182. function fInitialize() {
  183. dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256 , val :sysf_getUserInfo("dutplceinstcd") }
  184. , {col:"ordfildcd", type:"STRING", size:256}
  185. , {col:"ordflag", type:"STRING", size:256}]);
  186. var oParam = {};
  187. oParam.id = "TRPIJ00203";
  188. oParam.service = "bfjudgapp.InHospJudgTrgtMan";
  189. oParam.method = "reqGetDeptList";
  190. oParam.inds = "req=ds_send";
  191. oParam.outds = "ds_init_cmb_orddeptcd=deptlist";
  192. oParam.async = false;
  193. //oParam.callback = "cf_TRPIJ00203";
  194. tranf_submit(oParam);
  195. var arrParam1 = new Array();
  196. arrParam1 = [{dsNm: "ds_init_PK028list", cdGrpId: "PK028", showValue: false}];
  197. pamfGetCodeList(arrParam1, true, ""); //비동기
  198. fGetDocuList();
  199. }
  200. function fGetDocuList() {
  201. dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val :sysf_getUserInfo("dutplceinstcd") }
  202. , {col:"opedicode", type:"STRING", size:256, val :grp_biz.group1.ipt_opedicode.value}
  203. , {col:"orddeptcd", type:"STRING", size:256, val :grp_biz.group1.cmb_orddeptcd.value}
  204. , {col:"opgbn", type:"STRING", size:256, val : grp_biz.group1.ipt_opgbn.value}]);
  205. var oParam = {};
  206. oParam.id = "TRPIJ03300";
  207. oParam.service = "bfjudgapp.DRGCdIF";
  208. oParam.method = "reqGetDrgOperateCode";
  209. oParam.inds = "req=ds_send";
  210. oParam.outds = "ds_grd_opcdlist=rslt";
  211. oParam.async = false;
  212. //oParam.callback = "cf_TRPIJ03300";
  213. tranf_submit(oParam);
  214. }
  215. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  216. {
  217. fGetDocuList();
  218. }
  219. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  220. {
  221. if (ds_grd_opcdlist.rowcount > 0) {
  222. grdf_exportExcel(grp_biz.grd_opcdlist, "exportExcel", "see");
  223. }else{
  224. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  225. }
  226. }
  227. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
  228. {
  229. fSpclGridDeleteRow();
  230. }
  231. function fSpclGridDeleteRow()
  232. {
  233. var SelectedRows = grdf_getSelectedRows(grp_biz.grd_opcdlist);
  234. for(var i = 0; i < SelectedRows.length; i ++)
  235. {
  236. var sel = SelectedRows[i];
  237. var arrRow = new Array();
  238. arrRow[0] = sel;
  239. grdf_setStatus(grp_biz.grd_opcdlist, "D", arrRow);
  240. }
  241. }
  242. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. fSpclGridInsertRow();
  245. }
  246. function fSpclGridInsertRow(){
  247. var addRw = ds_grd_opcdlist.addRow();
  248. }
  249. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  250. {
  251. var updtdata = grdf_getGridUpdateData(grp_biz.grd_opcdlist, "all");
  252. if ( updtdata.rowcount == 0)
  253. {
  254. sysf_messageBox("변경된 데이터가","I004");
  255. return;
  256. }
  257. for (var i = 0; i < ds_grd_opcdlist.rowcount; i++)
  258. {
  259. if (ds_grd_opcdlist.getRowType(i) == 2 || ds_grd_opcdlist.getRowType(i) == 4 )
  260. {
  261. var opedicode = grp_biz.grd_opcdlist.getBindCellIndex("body","opedicode");
  262. var orddeptcd = grp_biz.grd_opcdlist.getBindCellIndex("body","orddeptcd");
  263. var opgbn = grp_biz.grd_opcdlist.getBindCellIndex("body","opgbn");
  264. var fromdd = grp_biz.grd_opcdlist.getBindCellIndex("body","fromdd");
  265. var todd = grp_biz.grd_opcdlist.getBindCellIndex("body","todd");
  266. if(!frmf_chkMdtGrid(grp_biz.grd_opcdlist,[opedicode,orddeptcd,opgbn,fromdd,todd]
  267. ,["수술코드","진료과","수술코드구분","시작일자","종료일자"]))
  268. {
  269. return;
  270. }
  271. }
  272. }
  273. if (sysf_messageBox("저장", "S001") == 6) {
  274. dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val :sysf_getUserInfo("dutplceinstcd") }
  275. , {col:"opedicode", type:"STRING", size:256, val :grp_biz.group1.ipt_opedicode.value}
  276. , {col:"orddeptcd", type:"STRING", size:256, val :grp_biz.group1.cmb_orddeptcd.value}
  277. , {col:"opgbn", type:"STRING", size:256, val : grp_biz.group1.ipt_opgbn.value}]);
  278. var oParam = {};
  279. oParam.id = "TXPIJ03300";
  280. oParam.service = "bfjudgapp.DRGCdIF";
  281. oParam.method = "reqExeDrgOperateCode";
  282. oParam.inds = "srch=ds_send req=ds_grd_opcdlist:U";
  283. oParam.outds = "ds_grd_opcdlist=rslt";
  284. oParam.async = false;
  285. oParam.callback = "cf_TXPIJ03300";
  286. tranf_submit(oParam);
  287. }
  288. }
  289. function cf_TXPIJ03300(sSvcId, nErrorCode, sErrorMsg) {
  290. if(nErrorCode < 0) return;
  291. sysf_messageBox("저장이","I002");
  292. }
  293. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  294. {
  295. this.close();
  296. }
  297. function ds_grd_opcdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  298. {
  299. if( e.columnid == "babyexceptyn" )
  300. {
  301. obj.setColumn(e.row, "babyexceptyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  302. }
  303. }
  304. function grp_biz_group1_ipt_opedicode_onkeydown(obj:Edit, e:KeyEventInfo)
  305. {
  306. if(e.keycode == 13)
  307. {
  308. grp_biz_group1_btn_select_onclick();
  309. }
  310. }
  311. function grp_biz_group1_ipt_opgbn_onkeydown(obj:Edit, e:KeyEventInfo)
  312. {
  313. if(e.keycode == 13)
  314. {
  315. grp_biz_group1_btn_select_onclick();
  316. }
  317. }
  318. function grp_biz_group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  319. {
  320. grp_biz_group1_btn_select_onclick();
  321. }
  322. ]]></Script>
  323. </Form>
  324. </FDL>