SPPIJ03306_DRG질병군우선순위관리.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPPIJ03306" position="absolute 0 0 960 660" titletext="DRG 질병군 우선순위 관리" onload="SPPIJ03306_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_tle" position="absolute 0 0 865 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="cap_title" class="tit_1" position="absolute 0 0 216 15" style="" text="DRG 질병군 우선순위 관리" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 28 942 620" style="">
  15. <Layouts>
  16. <Layout>
  17. <Grid id="grd_diaggruplist" binddataset="ds_main_diaggruplist_diaggrup" class="datagrid3" position="absolute 0 77 940 591" style="" onmousedown="grp_biz_grd_diaggruplist_onmousedown" onkillfocus="grp_biz_grd_diaggruplist_onkillfocus">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="90" />
  22. <Column size="100" />
  23. <Column size="44" />
  24. <Column size="43" />
  25. <Column size="125" />
  26. <Column size="40" />
  27. <Column size="450" />
  28. <Column size="50" />
  29. <Column size="100" />
  30. <Column size="50" />
  31. <Column size="105" />
  32. </Columns>
  33. <Rows>
  34. <Row size="23" band="head" />
  35. <Row size="23" />
  36. </Rows>
  37. <Band id="head">
  38. <Cell text="진료과" />
  39. <Cell col="1" text="분류" />
  40. <Cell col="2" text="순위" />
  41. <Cell col="3" text="SEQ" />
  42. <Cell col="4" text="질병군범주" />
  43. <Cell col="5" text="DRG&#xA;유무" />
  44. <Cell col="6" text="해당 주진단․시술코드 및 부가코드" />
  45. <Cell col="7" text="등록자" />
  46. <Cell col="8" text="등록일자" />
  47. <Cell col="9" text="수정자" />
  48. <Cell col="10" text="수정일자" />
  49. </Band>
  50. <Band id="body">
  51. <Cell text="bind:orddeptcd" />
  52. <Cell col="1" text="bind:classcode" />
  53. <Cell col="2" text="bind:ranking" />
  54. <Cell col="3" text="bind:seq" />
  55. <Cell col="4" text="bind:diaggrup" />
  56. <Cell col="5" text="bind:drgyn" />
  57. <Cell col="6" text="bind:opcodedesc" />
  58. <Cell col="7" text="bind:fstrgstrid" />
  59. <Cell col="8" text="bind:fstrgstdt" />
  60. <Cell col="9" text="bind:lastupdtrid" />
  61. <Cell col="10" text="bind:lastupdtdt" />
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. <Static id="cap_judgtrgtman" class="tit_2" position="absolute 4 56 290 69" style="" text="DRG 진료과별 질병군 우선순위 리스트" />
  67. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 72 940 75" style="" anchor="default" />
  68. <Div id="group1" position="absolute 0 5 940 45" style="align: top;">
  69. <Layouts>
  70. <Layout>
  71. <Shape id="roundrect3" anchor="default" type="roundrectangle" position="absolute 0 0 940 40" style="" />
  72. <Button id="btn_select" class="btn1_letter2" taborder="32" position="absolute 875 10 931 32" style="" text="조회" onclick="grp_biz_group1_btn_select_onclick" />
  73. <Shape id="line3" class="line_4" linetype="vertical" position="absolute 860 5 863 38" style="" anchor="default" />
  74. <Static id="caption2" class="search_name" position="absolute 8 11 95 28" style="" text="진료과 :" />
  75. <Combo innerdataset="ds_hidden_list1_deptlist" datacolumn="depthngnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_orddeptcd" position="absolute 100 10 200 29" style="" onitemchanged="grp_biz_group1_cmb_orddeptcd_onitemchanged" />
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. <Button id="btn_excelsave" class="btn2_letter4" position="absolute 871 52 935 71" style="" text="엑셀저장" onclick="grp_biz_btn_excelsave_onclick" />
  80. <Button id="button1" class="btn5_letter2" visible="false" position="absolute 828 52 870 71" style="" text="저장" onclick="grp_biz_button1_onclick" />
  81. <Button id="button2" class="btn2_letter3" visible="false" position="absolute 720 52 773 71" style="" text="행종료" onclick="grp_biz_button2_onclick" />
  82. <Button id="button3" class="btn2_letter3" visible="false" position="absolute 774 52 827 71" style="" text="행추가" onclick="grp_biz_button3_onclick" />
  83. <Grid id="datagrid1" binddataset="ds_hidden_list1_deptlist" visible="false" position="absolute 500 40 550 75" style="">
  84. <Formats>
  85. <Format id="default">
  86. <Rows>
  87. <Row size="24" band="head" />
  88. <Row size="24" />
  89. </Rows>
  90. <Band id="head">
  91. <Cell text="caption1" />
  92. <Cell col="1" text="caption2" />
  93. <Cell col="2" text="caption3" />
  94. </Band>
  95. <Band id="body">
  96. <Cell text="bind:deptcd" />
  97. <Cell col="1" text="bind:depthngnm" />
  98. <Cell col="2" text="bind:deptengabbr" />
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. </Layout>
  104. </Layouts>
  105. </Div>
  106. <Button id="btn_cancel" class="btn4_letter2" position="absolute 884 622 940 644" style="" text="종료" />
  107. </Layout>
  108. </Layouts>
  109. <Objects>
  110. <Dataset id="ds_init_PAM" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  111. <ColumnInfo>
  112. <Column id="PK042list" type="STRING" size="256" />
  113. </ColumnInfo>
  114. <Rows>
  115. <Row>
  116. <Col id="PK042list"></Col>
  117. </Row>
  118. </Rows>
  119. </Dataset>
  120. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  121. <ColumnInfo>
  122. <Column id="orddeptcd" type="STRING" size="256" />
  123. <Column id="instcd" type="STRING" size="256" />
  124. </ColumnInfo>
  125. <Rows>
  126. <Row>
  127. <Col id="orddeptcd"></Col>
  128. <Col id="instcd">031</Col>
  129. </Row>
  130. </Rows>
  131. </Dataset>
  132. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  133. <ColumnInfo />
  134. </Dataset>
  135. <Dataset id="ds_hidden_popupmenu_clcj" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  136. <ColumnInfo />
  137. </Dataset>
  138. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  139. <ColumnInfo />
  140. </Dataset>
  141. <Dataset id="ds_hidden_popupmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  142. <ColumnInfo />
  143. </Dataset>
  144. <Dataset id="ds_main_diaggruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  145. <ColumnInfo>
  146. <Column id="diaggrup" type="STRING" size="256" />
  147. </ColumnInfo>
  148. <Rows>
  149. <Row>
  150. <Col id="diaggrup"></Col>
  151. </Row>
  152. </Rows>
  153. </Dataset>
  154. <Dataset id="ds_hidden_popupmenu_clcj_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  155. <ColumnInfo>
  156. <Column id="name" type="STRING" size="256" />
  157. <Column id="func" type="STRING" size="256" />
  158. <Column id="name" type="STRING" size="256" />
  159. <Column id="func" type="STRING" size="256" />
  160. <Column id="name" type="STRING" size="256" />
  161. <Column id="func" type="STRING" size="256" />
  162. </ColumnInfo>
  163. <Rows>
  164. <Row>
  165. <Col id="name">행 추가</Col>
  166. <Col id="func">fSpclGridInsertRow</Col>
  167. </Row>
  168. <Row>
  169. <Col id="name">-</Col>
  170. <Col id="func"></Col>
  171. </Row>
  172. </Rows>
  173. </Dataset>
  174. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  175. <ColumnInfo />
  176. </Dataset>
  177. </Objects>
  178. <Bind>
  179. <BindItem id="item0" compid="grp_biz.group1.cmb_orddeptcd" propid="value" datasetid="ds_send" columnid="orddeptcd" />
  180. </Bind>
  181. <Script type="xscript4.0"><![CDATA[function SPPIJ03306_onload(obj:Form, e:LoadEventInfo) {
  182. frmf_initForm(obj);
  183. //grdf_initGrid(grd_XXX);
  184. //grdf_setGridSort(grd_XXX);
  185. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  186. // 화면을 초기화한다.
  187. fInitialize();
  188. }
  189. include '../../.._com_commonweb_js_common.js'
  190. include '../../.._com_commonweb_js_dateHelper.js'
  191. include '../../.._com_commonweb_js_numericHelper.js'
  192. include '../../.._com_commonweb_js_stringHelper.js'
  193. include '../../.._com_commonweb_js_tfHelper.js'
  194. include '../../.._com_basiccodeweb_js_ZBC001.js'
  195. include '../../.._pam_pamcomnweb_js_PAM001.js'
  196. var gToday = new Date();
  197. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  198. var gBasemonth = gToday.getDateFormat("MM");
  199. var gBaseday = gToday.getDateFormat("DD");
  200. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  201. var gCurrentym = gBaseyear + gBasemonth;
  202. // -----------------------
  203. // ▶ 화면초기화
  204. // -----------------------
  205. function fInitialize() {
  206. // submit("TRPIJ00203", false);
  207. var oParam = {};
  208. oParam.id = "TRPIJ00203";
  209. oParam.service = "bfjudgapp.InHospJudgTrgtMan";
  210. oParam.method = "reqGetDeptList";
  211. oParam.inds = "req=ds_";
  212. oParam.outds = "ds_=deptlist";
  213. oParam.async = false;
  214. oParam.callback = "cf_TRPIJ00203";
  215. tranf_submit(oParam);
  216. /*
  217. function cf_TRPIJ00203(sSvcId, nErrorCode, sErrorMsg) {
  218. if(nErrorCode < 0) return;
  219. }
  220. function cf_TRPIJ00203(sSvcId, nErrorCode, sErrorMsg) {
  221. arErrorCode.push(sSvcId, nErrorCode);
  222. }
  223. arErrorCode.pop("TRPIJ00203") > -1
  224. arErrorCode.pop("TRPIJ00203") < 0
  225. */
  226. ds_init_orddeptcd2.copyData(ds_hidden_tmp_orddeptcd2);
  227. // 2013.08.27 - DRG 질환 대분류 원무공통코드조회
  228. var arrParam = [ {dsNm: "ds_init_PAM_PK042list"
  229. ,
  230. cdGrpId:
  231. "PK042"
  232. } ];
  233. pamfGetCodeList(arrParam, );
  234. //model.refresh();
  235. grp_biz.datagrid1.sort(1,1,grp_biz.datagrid1.rows-1,2) = "asc";
  236. grp_biz.datagrid1.gridToInstance();
  237. grp_biz.group1.btn_select.dispatch("DOMActivate");
  238. }
  239. // ----------------------------------------------------------------------
  240. // ▶ 동일진료일 명세서조회
  241. // ----------------------------------------------------------------------
  242. function fGetDocuList() {
  243. var chk = true;
  244. // if (ds_send.getColumn(0, "orddd") == "") {
  245. // chk = false;
  246. // sysf_messageBox("기준년월은", "I003"); //I003=필수입력입니다.
  247. // ipt_orddd.setFocus();
  248. // }
  249. if (chk == true) {
  250. // submit("TRPIJ03306");
  251. var oParam = {};
  252. oParam.id = "TRPIJ03306";
  253. oParam.service = "bfjudgapp.DRGCdIF";
  254. oParam.method = "reqGetDrgDiagGroupRank";
  255. oParam.inds = "req=ds_";
  256. oParam.outds = "ds_=rslt";
  257. oParam.async = false;
  258. oParam.callback = "cf_TRPIJ03306";
  259. tranf_submit(oParam);
  260. /*
  261. function cf_TRPIJ03306(sSvcId, nErrorCode, sErrorMsg) {
  262. if(nErrorCode < 0) return;
  263. }
  264. function cf_TRPIJ03306(sSvcId, nErrorCode, sErrorMsg) {
  265. arErrorCode.push(sSvcId, nErrorCode);
  266. }
  267. arErrorCode.pop("TRPIJ03306") > -1
  268. arErrorCode.pop("TRPIJ03306") < 0
  269. */
  270. }
  271. }
  272. // 화면을 초기화한다.
  273. function fSpclGridInsertRow(){
  274. grd_opcdlist.AddRow();
  275. grd_opcdlist.bottomRow = grd_opcdlist.rows;
  276. }
  277. function fSpclGridDeleteRow(){
  278. for (var i = 0; i < grd_opcdlist.selectedRows; i++) {
  279. var sel = grd_opcdlist.selectedRow(i);
  280. grd_opcdlist.rowstatus(sel) = "4";
  281. }
  282. }
  283. function grp_biz_grd_diaggruplist_onmousedown(obj:Grid, e:GridMouseEventInfo) {
  284. if (event.button == 3) { // 3 : 오른쪽 버튼
  285. if (grd_opcdlist.isCell(event.target) && grd_opcdlist.mouseRow >= grd_opcdlist.fixedrows) {
  286. window.setPopupMenu(true, "ds_hidden_popupmenu_clcj_item", "name", "func", false);
  287. } else {
  288. window.showPopupMenu(true);
  289. window.setPopupMenu(true, "ds_hidden_popupmenu_clcj_item", "name", "func", false);
  290. }
  291. }
  292. }
  293. function grp_biz_grd_diaggruplist_onkillfocus(obj:Grid, e:KillFocusEventInfo) {
  294. window.setPopupMenu(false);
  295. }
  296. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo) {
  297. fGetDocuList();
  298. }
  299. function grp_biz_group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  300. fGetDocuList();
  301. }
  302. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo) {
  303. grd_opcdlist.gridToInstance();
  304. if (grd_opcdlist.rows > 1) {
  305. var fileName = window.fileDialog("save", "", false, grp_tle.cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  306. if (fileName != "") {
  307. grd_opcdlist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
  308. }
  309. } else {
  310. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  311. }
  312. }
  313. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo) {
  314. var updtdata = getGridUpdateData(grd_opcdlist);
  315. if (updtdata == "") {
  316. sysf_messageBox("변경된 데이터가","I004");
  317. return;
  318. }
  319. for (var i=0; i < grd_opcdlist.rows; i++){
  320. if ((grd_opcdlist.rowStatus(i) == 1 || grd_opcdlist.rowStatus(i) == 2 || grd_opcdlist.rowStatus(i) == 3) &&
  321. (grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("opedicode")).length == 0
  322. || grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("orddeptcd")).length ==0
  323. || grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("opgbn")).length ==0
  324. || grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("fromdd")).length ==0
  325. || grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("todd")).length ==0))
  326. {
  327. var errmsg = "";
  328. if (grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("todd")).length ==0)
  329. {
  330. errmsg = grd_opcdlist.labelMatrix(0,grd_opcdlist.colRef("todd"));
  331. }
  332. if (grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("fromdd")).length ==0)
  333. {
  334. errmsg = grd_opcdlist.labelMatrix(0,grd_opcdlist.colRef("fromdd"));
  335. }
  336. if (grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("opgbn")).length ==0)
  337. {
  338. errmsg = grd_opcdlist.labelMatrix(0,grd_opcdlist.colRef("opgbn"));
  339. }
  340. if (grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("orddeptcd")).length ==0)
  341. {
  342. errmsg = grd_opcdlist.labelMatrix(0,grd_opcdlist.colRef("orddeptcd"));
  343. }
  344. if (grd_opcdlist.valueMatrix(i,grd_opcdlist.colRef("opedicode")).length == 0 )
  345. {
  346. errmsg = grd_opcdlist.labelMatrix(0,grd_opcdlist.colRef("opedicode"));
  347. }
  348. sysf_messageBox(errmsg.split("\n").join("")+"는","I003");
  349. return false;
  350. }
  351. }
  352. if (sysf_messageBox("저장", "S001") == 6) {
  353. ds_send.setColumn( 0, "opcdlist",grd_opcdlist.getUpdateData());
  354. // if ( submit("TXPIJ03300") ) {
  355. var oParam = {};
  356. oParam.id = "TXPIJ03300";
  357. oParam.service = "bfjudgapp.DRGCdIF";
  358. oParam.method = "reqExeDrgOperateCode";
  359. oParam.inds = "srch=ds_ req=ds_";
  360. oParam.outds = "ds_=rslt";
  361. oParam.async = false;
  362. oParam.callback = "cf_TXPIJ03300";
  363. tranf_submit(oParam);
  364. /*
  365. function cf_TXPIJ03300(sSvcId, nErrorCode, sErrorMsg) {
  366. if(nErrorCode < 0) return;
  367. }
  368. function cf_TXPIJ03300(sSvcId, nErrorCode, sErrorMsg) {
  369. arErrorCode.push(sSvcId, nErrorCode);
  370. }
  371. arErrorCode.pop("TXPIJ03300") > -1
  372. arErrorCode.pop("TXPIJ03300") < 0
  373. */
  374. sysf_messageBox("저장이","I002");
  375. }
  376. }
  377. }
  378. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo) {
  379. fSpclGridDeleteRow();
  380. }
  381. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo) {
  382. fSpclGridInsertRow();
  383. }
  384. ]]></Script>
  385. </Form>
  386. </FDL>