SPPIJ03301_대표DRG번호관리.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIJ03301" position="absolute 0 0 945 638" titletext="대표DRG번호 기준자료 관리" oninit="SPPIJ03301_oninit" onload="SPPIJ03301_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 19 942 611" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 78 940 592" id="grd_dlcdlist" class="datagrid3" binddataset="ds_grd_dlcdlist" anchor="all" cellsizingtype="col" selecttype="multirow">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="35"/>
  15. <Column size="69"/>
  16. <Column size="326"/>
  17. <Column size="54"/>
  18. <Column size="59"/>
  19. <Column size="55"/>
  20. <Column size="59"/>
  21. <Column size="59"/>
  22. <Column size="96"/>
  23. <Column size="85"/>
  24. <Column size="85"/>
  25. <Column size="60"/>
  26. <Column size="127"/>
  27. <Column size="60"/>
  28. <Column size="161"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="59" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell/>
  38. <Cell col="1" text="대표번호"/>
  39. <Cell col="2" text="DRG명"/>
  40. <Cell col="3" text="양안"/>
  41. <Cell col="4" text="소절개"/>
  42. <Cell col="5" text="복강경"/>
  43. <Cell col="6" text="연령시작"/>
  44. <Cell col="7" text="연령종료"/>
  45. <Cell col="8" text="수술코드구분"/>
  46. <Cell col="9" text="시작일자"/>
  47. <Cell col="10" text="종료일자"/>
  48. <Cell col="11" text="등록자"/>
  49. <Cell col="12" text="등록일자"/>
  50. <Cell col="13" text="수정자"/>
  51. <Cell col="14" text="수정일자"/>
  52. <Cell col="15"/>
  53. <Cell col="16"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell celltype="head"/>
  57. <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:adrgno" enable="false"/>
  58. <Cell col="2" style="align:left middle;" text="bind:cd_name"/>
  59. <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:gbnboth" expr="expr:expr:gbnboth == 'Y' || gbnboth == '1' ? 1 : 0"/>
  60. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:gbnmin" expr="expr:expr:gbnmin == 'Y' || gbnmin == '1' ? 1 : 0"/>
  61. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:gbncel" expr="expr:expr:gbncel == 'Y' || gbncel == '1' ? 1 : 0"/>
  62. <Cell col="6" displaytype="normal" edittype="normal" style="align:center middle;" text="bind:gbnagef" enable="true"/>
  63. <Cell col="7" displaytype="normal" edittype="normal" style="align:center middle;" text="bind:gbnaget"/>
  64. <Cell col="8" displaytype="text" edittype="text" style="align:center middle;" text="bind:opgbn"/>
  65. <Cell col="9" displaytype="date" edittype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
  66. <Cell col="10" displaytype="date" edittype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" enable="false"/>
  67. <Cell col="11" displaytype="text" edittype="text" style="align:center middle;" text="bind:fstrgstrid"/>
  68. <Cell col="12" displaytype="date" edittype="date" style="align:center middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
  69. <Cell col="13" style="align:center middle;" text="bind:lastupdtrid"/>
  70. <Cell col="14" displaytype="date" edittype="date" style="align:center middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
  71. <Cell col="15"/>
  72. <Cell col="16"/>
  73. </Band>
  74. </Format>
  75. </Formats>
  76. <Layouts>
  77. <Layout width="940" height="514"/>
  78. </Layouts>
  79. </Grid>
  80. <Static text="대표DRG번호 기준자료 리스트" position="absolute 4 56 238 71" id="cap_judgtrgtman" class="tit_2" anchor="default"/>
  81. <Shape position="absolute 0 73 940 79" linetype="horizontal" id="line1" class="line_10" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  82. <Div position="absolute 0 5 940 45" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
  83. <Layouts>
  84. <Layout width="940" height="40">
  85. <Static text="DRG번호 :" position="absolute 8 11 117 28" id="caption30" class="search_name" anchor="default"/>
  86. <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"/>
  87. <Shape position="absolute 857 5 863 38" linetype="vertical" id="line3" class="line_4" anchor="default"/>
  88. <Edit position="absolute 95 10 195 29" id="ipt_adrgno" anchor="default" onkeydown="grp_biz_group1_ipt_adrgno_onkeydown"/>
  89. <Static text="수술코드 구분 :" position="absolute 208 11 330 28" id="caption1" class="search_name" anchor="default"/>
  90. <Edit position="absolute 330 10 430 29" id="ipt_opgbn" anchor="default" onkeydown="grp_biz_group1_ipt_opgbn_onkeydown"/>
  91. <Static text="DRG 명 :" position="absolute 448 11 559 28" id="caption2" class="search_name" anchor="default"/>
  92. <Edit position="absolute 530 10 820 29" id="input1" anchor="default" onkeydown="grp_biz_group1_input1_onkeydown"/>
  93. </Layout>
  94. </Layouts>
  95. </Div>
  96. <Button position="absolute 709 54 789 73" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_btn_excelsave_onclick"/>
  97. <Button position="absolute 898 54 940 73" id="button1" class="btn5" text="저장" anchor="top right" onclick="grp_biz_button1_onclick"/>
  98. <Button position="absolute 790 54 843 73" id="button2" class="btn2" text="행종료" anchor="top right" onclick="grp_biz_button2_onclick"/>
  99. <Button position="absolute 844 54 897 73" id="button3" class="btn2" text="행추가" anchor="top right" onclick="grp_biz_button3_onclick"/>
  100. </Layout>
  101. </Layouts>
  102. </Div>
  103. <Button position="absolute 884 612 940 634" id="btn_cancel" class="btn4" text="종료" anchor="right bottom" onclick="btn_cancel_onclick"/>
  104. <Static id="cap_title" text="대표DRG번호 기준자료 관리" class="tit_1" position="absolute 0 0 216 23"/>
  105. </Layout>
  106. </Layouts>
  107. <Objects>
  108. <Dataset id="ds_grd_dlcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="adrgno" type="STRING"/>
  111. <Column id="cd_name" type="STRING"/>
  112. <Column id="gbnboth" type="STRING"/>
  113. <Column id="gbnmin" type="STRING"/>
  114. <Column id="gbncel" type="STRING"/>
  115. <Column id="gbnagef" type="STRING"/>
  116. <Column id="gbnaget" type="STRING"/>
  117. <Column id="opgbn" type="STRING"/>
  118. <Column id="fromdd" type="STRING"/>
  119. <Column id="todd" type="STRING"/>
  120. <Column id="fstrgstrid" type="STRING"/>
  121. <Column id="fstrgstdt" type="STRING"/>
  122. <Column id="lastupdtrid" type="STRING"/>
  123. <Column id="lastupdtdt" type="STRING"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. </Objects>
  127. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  128. * System Name :
  129. * Job Name :
  130. * Creator :
  131. * Make Date : 2016-05-24
  132. * Description :
  133. *---------------------------------------------------------------------------------------
  134. * Modify Date Modifier Modify Description
  135. *---------------------------------------------------------------------------------------
  136. * 2016-05-24 Live Converter TF->XP
  137. *
  138. *---------------------------------------------------------------------------------------
  139. ****************************************************************************************/
  140. include "com_commonxp::comm_main.xjs";
  141. include "pam_pamcomnxp::PAM001.xjs";
  142. function SPPIJ03301_oninit(obj:Form, e:InitEventInfo)
  143. {
  144. frmf_initForm(obj);
  145. }
  146. function SPPIJ03301_onload(obj:Form, e:LoadEventInfo)
  147. {
  148. grdf_initGrid(grp_biz.grd_dlcdlist);
  149. grdf_setRowTypeIcon(grp_biz.grd_dlcdlist, 0);
  150. grdf_setToolTipBind(grp_biz.grd_dlcdlist)
  151. fInitialize();
  152. }
  153. function fInitialize()
  154. {
  155. dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}
  156. , {col:"ordfildcd", type:"STRING", size:256 ,val :""}
  157. , {col:"ordflag", type:"STRING", size:256 ,val :""}]);
  158. var oParam = {};
  159. oParam.id = "TRPIJ00203";
  160. oParam.service = "bfjudgapp.InHospJudgTrgtMan";
  161. oParam.method = "reqGetDeptList";
  162. oParam.inds = "req=ds_send"
  163. oParam.outds = "ds_grd_dlcdlist=deptlist";
  164. oParam.async = false;
  165. //oParam.callback = "cf_TRPIJ00203";
  166. tranf_submit(oParam);
  167. fGetDocuList();
  168. }
  169. function fGetDocuList()
  170. {
  171. dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}
  172. , {col:"adrgno", type:"STRING", size:256 ,val : grp_biz.group1.ipt_adrgno.value}
  173. , {col:"opgbn", type:"STRING", size:256 ,val : grp_biz.group1.ipt_opgbn.value}
  174. , {col:"cd_name", type:"STRING", size:256 ,val : grp_biz.group1.input1.value}]);
  175. var oParam = {};
  176. oParam.id = "TRPIJ03301";
  177. oParam.service = "bfjudgapp.DRGCdIF";
  178. oParam.method = "reqGetDrgDelegateCode";
  179. oParam.inds = "req=ds_send";
  180. oParam.outds = "ds_grd_dlcdlist=rslt";
  181. oParam.async = false;
  182. //oParam.callback = "cf_TRPIJ03301";
  183. tranf_submit(oParam);
  184. }
  185. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  186. {
  187. if (ds_grd_dlcdlist.rowcount > 0) {
  188. grdf_exportExcel(grp_biz.grd_dlcdlist, "exportExcel", "see");
  189. } else {
  190. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  191. }
  192. }
  193. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
  194. {
  195. fSpclGridDeleteRow();
  196. }
  197. function fSpclGridDeleteRow()
  198. {
  199. var SelectedRows = grdf_getSelectedRows(grp_biz.grd_dlcdlist);
  200. for(var i = 0; i < SelectedRows.length; i++)
  201. {
  202. var sel = SelectedRows[i];
  203. var arrRow = new Array();
  204. arrRow[0] = sel;
  205. grdf_setStatus(grp_biz.grd_dlcdlist, "D", arrRow);
  206. }
  207. }
  208. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  209. {
  210. this.close();
  211. }
  212. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. fGetDocuList()
  215. }
  216. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  217. {
  218. fSpclGridInsertRow();
  219. }
  220. function fSpclGridInsertRow(){
  221. var addRw = ds_grd_dlcdlist.addRow();
  222. var arrPostion = new Array();
  223. arrPostion[0] = addRw;
  224. grdf_setStatus(grp_biz.grd_dlcdlist, "I", arrPostion);
  225. }
  226. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  227. {
  228. var updtdata = grdf_getGridUpdateData(grp_biz.grd_dlcdlist, "all");
  229. if (updtdata.rowcount == 0)
  230. {
  231. sysf_messageBox("변경된 데이터가","I004");
  232. return;
  233. }
  234. for (var i=0; i < ds_grd_dlcdlist.rowcount; i++)
  235. {
  236. if (ds_grd_dlcdlist.getRowType(i) == 2 || ds_grd_dlcdlist.getRowType(i) == 4 ) {
  237. var adrgno = grp_biz.grd_dlcdlist.getBindCellIndex("body","adrgno");
  238. var opgbn = grp_biz.grd_dlcdlist.getBindCellIndex("body","opgbn");
  239. var fromdd = grp_biz.grd_dlcdlist.getBindCellIndex("body","fromdd");
  240. var todd = grp_biz.grd_dlcdlist.getBindCellIndex("body","todd");
  241. if(!frmf_chkMdtGrid(grp_biz.grd_dlcdlist,[adrgno,opgbn,fromdd,todd],
  242. ["대표번호","수술코드부분","시작일자","종료일자"]))
  243. {
  244. return;
  245. }
  246. }
  247. }
  248. if (sysf_messageBox("저장", "S001") == 6) {
  249. var Ids = dsf_createDsRow("ds_send", [
  250. {col:"instcd", type:"STRING", size:256, val :sysf_getUserInfo("dutplceinstcd")}
  251. , {col:"adrgno", type:"STRING", size:256, val :grp_biz.group1.ipt_adrgno.value}
  252. , {col:"ipt_opgbn", type:"STRING", size:256, val :grp_biz.group1.ipt_opgbn.value}
  253. , {col:"input1", type:"STRING", size:256, val :grp_biz.group1.input1.value}
  254. ]);
  255. var oParam = {};
  256. oParam.id = "TXPIJ03301";
  257. oParam.service = "bfjudgapp.DRGCdIF";
  258. oParam.method = "reqExeDrgDelegateCode";
  259. oParam.inds = "srch="+Ids+" req=ds_grd_dlcdlist:U";
  260. oParam.outds = "ds_grd_dlcdlist=rslt";
  261. oParam.async = false;
  262. oParam.callback = "cf_TXPIJ03301";
  263. tranf_submit(oParam);
  264. }
  265. }
  266. function cf_TXPIJ03301(sSvcId, nErrorCode, sErrorMsg)
  267. {
  268. if(nErrorCode < 0) return;
  269. sysf_messageBox("저장이","I002");
  270. }
  271. function grp_biz_group1_ipt_adrgno_onkeydown(obj:Edit, e:KeyEventInfo)
  272. {
  273. if(e.keycode == 13)
  274. {
  275. fGetDocuList();
  276. }
  277. }
  278. function grp_biz_group1_ipt_opgbn_onkeydown(obj:Edit, e:KeyEventInfo)
  279. {
  280. if(e.keycode == 13)
  281. {
  282. fGetDocuList();
  283. }
  284. }
  285. function grp_biz_group1_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  286. {
  287. if(e.keycode == 13)
  288. {
  289. fGetDocuList();
  290. }
  291. }
  292. ]]></Script>
  293. </Form>
  294. </FDL>