SMPID22900_동일진료일명세서조회.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPID22900" position="absolute 0 0 966 670" titletext="동일진료일명세서조회" onload="SMPID22900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 27 960 69" anchor="left top right" align="align:center top;" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Calendar id="cp_monthCal00" taborder="43" position="absolute 81 10 156 30" onchanged="cp_monthCal00" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" anchor="default"/>
  11. <Static id="caption30" text="청구년월" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  12. <Static id="caption38" text="등록번호" class="search_name" position="absolute 243 10 317 30" anchor="default" positiontype="position"/>
  13. <Edit id="ipt_patunitsrch" taborder="34" class="input_search" position="absolute 317 10 412 30" anchor="default" maxlength="10" onkeydown="ipt_patunitsrch_onkeydown" ontextchanged="ipt_patunitsrch_ontextchanged" onkillfocus="group1_ipt_patunitsrch_onkillfocus" positiontype="position"/>
  14. <Button id="btn_select" taborder="35" text="조회" class="btn1" position="absolute 893 10 949 30" anchor="top right" onclick="btn_select_onclick" positiontype="position"/>
  15. <Combo id="cmb_clamdg" taborder="36" position="absolute 159 10 219 30" anchor="default" innerdataset="@ds_init_clamdg" codecolumn="clamdgcd" datacolumn="clamdgnm" positiontype="position"/>
  16. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 840 5 840 28" anchor="default" positiontype="position"/>
  17. <Combo id="cmb_judgrid" taborder="37" class="combo_search" position="absolute 544 10 629 30" anchor="default" innerdataset="@ds_init_judgrid" codecolumn="judgrid" datacolumn="judgrnm" positiontype="position"/>
  18. <Static id="caption39" text="심사자" class="search_name" position="absolute 482 10 547 30" anchor="default" positiontype="position"/>
  19. <MaskEdit id="ipt_ordym" taborder="38" mask="####-##" class="input_default" position="absolute 726 10 791 30" anchor="default" imemode="hangul" maxlength="6" type="string" positiontype="position"/>
  20. <Static id="caption1" text="진료년월" class="search_name" position="absolute 653 10 727 30" anchor="default" positiontype="position"/>
  21. <Edit id="opt_gender" taborder="39" readonly="true" position="absolute 436 10 458 30" anchor="default" positiontype="position"/>
  22. <CheckBox id="chk_ordfildcd" taborder="40" text="타분야포함" truevalue="Y" position="absolute 794 10 884 30" anchor="default" positiontype="position"/>
  23. <Button id="button61" taborder="41" class="icon_search" position="absolute 413 10 433 30" onclick="button61_onclick" anchor="default"/>
  24. </Layout>
  25. </Layouts>
  26. </Div>
  27. <Static id="cap_judgtrgtman" text="대상자조회" class="tit_2" position="absolute 0 78 130 98" positiontype="position"/>
  28. <Button id="btn_excelsave" taborder="2" text="엑셀저장" class="btn7" position="absolute 882 75 958 95" anchor="top right" positiontype="position" onclick="btn_excelsave_onclick"/>
  29. <Grid id="grd_clbsmast" class="datagrid2" taborder="4" useinputpanel="false" position="absolute 0 98 960 638" anchor="all" autofittype="col" binddataset="DS_GRID_grd_clbsmast" positiontype="position" cellsizingtype="col" autosizingtype="row" extendsizetype="row">
  30. <Formats>
  31. <Format id="default">
  32. <Columns>
  33. <Column size="21"/>
  34. <Column size="42"/>
  35. <Column size="54"/>
  36. <Column size="67"/>
  37. <Column size="22"/>
  38. <Column size="52"/>
  39. <Column size="37"/>
  40. <Column size="34"/>
  41. <Column size="36"/>
  42. <Column size="122"/>
  43. <Column size="54"/>
  44. <Column size="134"/>
  45. <Column size="47"/>
  46. <Column size="69"/>
  47. <Column size="68"/>
  48. <Column size="70"/>
  49. </Columns>
  50. <Rows>
  51. <Row size="35" band="head"/>
  52. <Row size="20"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell/>
  56. <Cell col="1" text="명번호"/>
  57. <Cell col="2" text="청구구분"/>
  58. <Cell col="3" colspan="2" text="등록번호"/>
  59. <Cell col="5" text="환자명"/>
  60. <Cell col="6" text="보험&#13;&#10;유형"/>
  61. <Cell col="7" text="보조&#13;&#10;유형"/>
  62. <Cell col="8" text="진료&#13;&#10;분야"/>
  63. <Cell col="9" text="진료과"/>
  64. <Cell col="10" text="진료의"/>
  65. <Cell col="11" text="주상병"/>
  66. <Cell col="12" text="심사자"/>
  67. <Cell col="13" text="진료개시일"/>
  68. <Cell col="14" text="진료종료일"/>
  69. <Cell col="15" text="동일진료일"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head" edittype="none" expr="currow +1"/>
  73. <Cell col="1" displaytype="text" style="align:center;" text="bind:docuseqno"/>
  74. <Cell col="2" displaytype="combo" edittype="none" style="align:center;" text="bind:clamflagcd" combodataset="ds_init_clamflagcd" combocodecol="cdid" combodatacol="cdnm"/>
  75. <Cell col="3" style="align:center;" text="bind:pid"/>
  76. <Cell col="4" style="align:center;" text="bind:pidsn"/>
  77. <Cell col="5" style="align:center;" text="bind:patnm"/>
  78. <Cell col="6" style="align:center;" text="bind:insukind"/>
  79. <Cell col="7" style="align:center;" text="bind:suppkind"/>
  80. <Cell col="8" displaytype="combo" edittype="none" style="align:center;" text="bind:ordfildcd" combodataset="ds_init_ordfildcd" combocodecol="cdid" combodatacol="cdnm"/>
  81. <Cell col="9" displaytype="combo" edittype="none" style="align:left;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  82. <Cell col="10" displaytype="combo" edittype="none" style="align:center;" text="bind:orddrid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm"/>
  83. <Cell col="11" style="align:left;" text="bind:diagcd" wordwrap="both" autosizerow="limitmin"/>
  84. <Cell col="12" displaytype="combo" edittype="none" style="align:center;" text="bind:judgrid" combodataset="ds_init_judgrid" combocodecol="judgrid" combodatacol="judgrnm"/>
  85. <Cell col="13" displaytype="date" style="align:center;" text="bind:ordfromdd" calendardisplaynulltype="none"/>
  86. <Cell col="14" displaytype="date" style="align:center;" text="bind:ordtodd" calendardisplaynulltype="none"/>
  87. <Cell col="15" style="align:center;" text="bind:samedate"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Static id="caption00" text="동일진료일명세서조회" class="tit_1" position="absolute 0 0 177 26"/>
  93. <Button id="btn_close" taborder="5" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 906 640 959 660" anchor="right bottom"/>
  94. </Layout>
  95. </Layouts>
  96. <Objects>
  97. <FileDialog id="fld_input" filter="Worksheet Files (*.xls;*.xlsx)|*.xls;*.xlsx" filterindex="0" defaultextension="false"/>
  98. <Dataset id="DS_GRID_grd_clbsmast" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  99. <ColumnInfo>
  100. <Column id="docuseqno" type="STRING"/>
  101. <Column id="clamflagcd" type="STRING"/>
  102. <Column id="pid" type="STRING"/>
  103. <Column id="pidsn" type="STRING"/>
  104. <Column id="patnm" type="STRING"/>
  105. <Column id="insukind" type="STRING"/>
  106. <Column id="suppkind" type="STRING"/>
  107. <Column id="ordfildcd" type="STRING"/>
  108. <Column id="orddeptcd" type="STRING"/>
  109. <Column id="orddrid" type="STRING"/>
  110. <Column id="diagcd" type="STRING"/>
  111. <Column id="judgrid" type="STRING"/>
  112. <Column id="ordfromdd" type="STRING"/>
  113. <Column id="ordtodd" type="STRING"/>
  114. <Column id="samedate" type="STRING"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_init_ordfildcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="cdnm" type="STRING" size="256"/>
  120. <Column id="cdid" type="STRING" size="256"/>
  121. </ColumnInfo>
  122. <Rows>
  123. <Row/>
  124. </Rows>
  125. </Dataset>
  126. <Dataset id="ds_init_clamflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="cdnm" type="STRING" size="256"/>
  129. <Column id="cdid" type="STRING" size="256"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row/>
  133. </Rows>
  134. </Dataset>
  135. <Dataset id="ds_init_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="clamdgnm" type="STRING" size="256"/>
  138. <Column id="clamdgcd" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_init_judgrid" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="judgrnm" type="STRING" size="256"/>
  144. <Column id="judgrid" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. </Dataset>
  147. <Dataset id="ds_ptsp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  148. <Dataset id="ds_patInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  149. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="nm" type="STRING" size="256"/>
  152. <Column id="cd" type="STRING" size="256"/>
  153. </ColumnInfo>
  154. </Dataset>
  155. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  156. <ColumnInfo>
  157. <Column id="nm" type="STRING" size="256"/>
  158. <Column id="cd" type="STRING" size="256"/>
  159. </ColumnInfo>
  160. </Dataset>
  161. <ExportObject id="ExtObj" exporttype="0" exporteventtype="itemrecord"/>
  162. </Objects>
  163. <Bind/>
  164. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  165. * System Name :
  166. * Job Name :
  167. * Creator :
  168. * Make Date : 2016-05-24
  169. * Description :
  170. *---------------------------------------------------------------------------------------
  171. * Modify Date Modifier Modify Description
  172. *---------------------------------------------------------------------------------------
  173. * 2016-05-24 Live Converter TF->XP
  174. *
  175. *---------------------------------------------------------------------------------------
  176. ****************************************************************************************/
  177. include "com_commonxp::comm_main.xjs";
  178. // 화면초기화
  179. function fInitialize() {
  180. appf_getCodeListSubmit([{cdGrpId: "P0291", dsNm: "ds_init_ordfildcd", sortField: "cdnm", sortMehotd: "desc"}
  181. ,{cdGrpId: "P0155", dsNm: "ds_init_clamflagcd", sortField: "cdnm", sortMehotd: "desc"}], false, false, "");
  182. var sInDsName = dsf_createDsRow("ds_cond"
  183. , [{col: "ioflag", val: "O"}
  184. , {col: "clamym", val: lastMonth}
  185. , {col: "judgid", val: ""}
  186. , {col: "ordflag", val: ""}
  187. ]);
  188. var oParam = {};
  189. oParam.id = "TRPID20201";
  190. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  191. oParam.method = "reqGetInitComCd";
  192. oParam.inds = "req=ds_cond";
  193. oParam.outds = "ds_init_clamdg=clamdg ds_init_judgrid=judgrid ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid";
  194. oParam.async = false;
  195. tranf_submit(oParam);
  196. // 팝업이 아니면 청구월 셋팅
  197. // 청구월 세팅
  198. var objDate = new Date();
  199. var lastMonth = objDate.addMonth(-1);
  200. lastMonth = objDate.toFormatString("%Y%m");
  201. group1.cp_monthCal00.value = lastMonth;
  202. group1.ipt_ordym.value = lastMonth;
  203. // 청구차수
  204. group1.cmb_clamdg.innerdataset = ds_init_clamdg;
  205. group1.cmb_clamdg.index = 0;
  206. }
  207. // 동일진료일 명세서조회
  208. function fGetDocuList()
  209. {
  210. var chk = true;
  211. if (utlf_isNull(group1.cp_monthCal00.value))
  212. {
  213. chk = false;
  214. sysf_messageBox("청구년월은", "I003"); //I003=필수입력입니다.
  215. group1.cp_monthCal00.setFocus();
  216. } else if (utlf_isNull(group1.cmb_clamdg.value)) {
  217. chk = false;
  218. sysf_messageBox("청구차수", "I003"); //I003=필수입력입니다.
  219. group1.cmb_clamdg.setFocus();
  220. } else if (utlf_isNull(group1.ipt_ordym.value)){
  221. chk = false;
  222. sysf_messageBox("진료년월", "I003"); //I003=필수입력입니다.
  223. group1.ipt_ordym.setFocus();
  224. }
  225. if (chk == true) {
  226. var clamym = group1.cp_monthCal00.value.toFormatString("%Y%m");
  227. var sInDsName = dsf_createDsRow("ds_cond"
  228. , [{col: "clamym", val: clamym}
  229. , {col: "clamdg", val: group1.cmb_clamdg.value}
  230. , {col: "pid", val: group1.ipt_patunitsrch.value}
  231. , {col: "pidsn", val: group1.opt_gender.value}
  232. , {col: "ordym", val: group1.ipt_ordym.value}
  233. , {col: "judgrid", val: group1.cmb_judgrid.value}
  234. , {col: "ordfildcdyn", val: group1.chk_ordfildcd.value}
  235. ]);
  236. var oParam = {};
  237. oParam.id = "TRPID22901";
  238. oParam.service = "aftjudgapp.InAftJudg";
  239. oParam.method = "reqGetSameDateDocuList";
  240. oParam.inds = "req=ds_cond";
  241. oParam.outds = "DS_GRID_grd_clbsmast=clbs";
  242. oParam.async = false;
  243. tranf_submit(oParam);
  244. }
  245. }
  246. // 환자조회
  247. function fGetSrchPid() {
  248. var ipt_pid = group1.ipt_patunitsrch.value;
  249. if (ipt_pid.charCodeAt(0) > 255) {
  250. var objArg = new Object();
  251. objArg.srchcond = "2";
  252. objArg.hngnm = ipt_pid;
  253. } else {
  254. var objArg = new Object();
  255. objArg.srchcond = "1";
  256. objArg.hngnm = ipt_pid;
  257. }
  258. frmf_modal("SPPMC02500", "SPPMC02500", objArg);
  259. var objPopup = frmf_getChildWindow("SPPMC02500");
  260. if(utlf_isNull(objPopup))
  261. {
  262. var srch_pid = opener.frmf_getParameter("SPPMC02500_pid");
  263. }
  264. }
  265. // 청구년월에 대한 청구차수 조회
  266. function pidfGetClamdg() {
  267. ds_init_clamdg.deleteAll();
  268. var clamym = group1.cp_monthCal00.value.toFormatString("%Y%m");
  269. var sInDsName = dsf_createDsRow("ds_cond"
  270. , [{col: "clamym", val: clamym}
  271. , {col: "ioflag", val: "O"}
  272. , {col: "insukind", val: ""}
  273. ]);
  274. var oParam = {};
  275. oParam.id = "TRPID20407";
  276. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  277. oParam.method = "reqGetClamdg";
  278. oParam.inds = "req=ds_cond";
  279. oParam.outds = "ds_init_clamdg=clamdg";
  280. oParam.async = false;
  281. tranf_submit(oParam);
  282. }
  283. function SMPID22900_onload(obj:Form, e:LoadEventInfo)
  284. {
  285. frmf_initForm(obj);
  286. // 화면을 초기화한다.
  287. fInitialize();
  288. if(sPid != null)
  289. {
  290. group1.cp_monthCal00.value = sClamym; // 청구년월
  291. //group1.cmb_clamdg.value = sClamdg; // 청구차수
  292. group1.ipt_patunitsrch.value = sPid; // 등록번호
  293. group1.opt_gender.value = sPidsn; // 등록번호SEQ
  294. group1.ipt_ordym.value = sOrdym; // 진료일자
  295. var sInDsName = dsf_createDsRow("ds_cond"
  296. , [{col: "ioflag", val: "O"}
  297. , {col: "clamym", val: sClamym}
  298. , {col: "judgid", val: ""}
  299. , {col: "ordflag", val: ""}
  300. ]);
  301. var oParam = {};
  302. oParam.id = "TRPID20201";
  303. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  304. oParam.method = "reqGetInitComCd";
  305. oParam.inds = "req=ds_cond";
  306. oParam.outds = "ds_init_clamdg=clamdg ds_init_judgrid=judgrid ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid";
  307. oParam.async = false;
  308. tranf_submit(oParam);
  309. // 청구차수
  310. group1.cmb_clamdg.innerdataset = ds_init_clamdg;
  311. group1.cmb_clamdg.value = sClamdg;
  312. // 심사자
  313. if(!utlf_isNull(sJudgrid)){
  314. group1.cmb_judgrid.value = sJudgrid;
  315. } else {
  316. group1.cmb_judgrid.index = 0;
  317. }
  318. }
  319. // 동일진료일 명세서 조회
  320. fGetDocuList();
  321. }
  322. function button61_onclick(obj:Button, e:ClickEventInfo)
  323. {
  324. fGetSrchPid();
  325. }
  326. function btn_select_onclick(obj:Button, e:ClickEventInfo)
  327. {
  328. fGetDocuList();
  329. }
  330. function cp_monthCal00(obj:Calendar, e:ChangeEventInfo)
  331. {
  332. pidfGetClamdg();
  333. }
  334. function ipt_patunitsrch_onkeydown(obj:Edit, e:KeyEventInfo)
  335. {
  336. if(e.keycode == 13) // Enter 입력 시
  337. {
  338. if( group1.ipt_patunitsrch.getLength() > 1 )
  339. {
  340. var srchtext = group1.ipt_patunitsrch.value;
  341. if( srchtext.charCodeAt(0) > 255) {
  342. fGetSrchPid();
  343. } else {
  344. fGetDocuList();
  345. }
  346. }
  347. }
  348. }
  349. function btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  350. {
  351. var vFile = fld_input.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", "동일진료일대상자.xlsx");
  352. ExtObj.exporttype = ExportTypes.EXCEL;
  353. ExtObj.exportfilename = vFile.fullpath;
  354. ExtObj.exportactivemode = "noactive";
  355. ExtObj.exportsavemode = "save";
  356. ExtObj.addExportItem(ExportItemTypes.GRID, grd_mechlist, "Sheet1!A1" );
  357. ExtObj.export();
  358. }
  359. function ipt_patunitsrch_ontextchanged(obj:Edit, e:TextChangedEventInfo)
  360. {
  361. if (utlf_isNull(group1.ipt_patunitsrch.value))
  362. {
  363. //청구년월에 대한 청구차수 조회
  364. pidfGetClamdg();
  365. group1.opt_gender.value = "";
  366. }
  367. }
  368. function group1_ipt_patunitsrch_onkillfocus(obj:Edit, e:KillFocusEventInfo)
  369. {
  370. var pLength = 9;
  371. var padString = "0";
  372. var rtnStr = group1.ipt_patunitsrch.value;
  373. if(rtnStr > 0){
  374. if (rtnStr.length < pLength) {
  375. for( var i=rtnStr.length; i<pLength; i++){
  376. rtnStr = padString + rtnStr;
  377. }
  378. }
  379. group1.ipt_patunitsrch.value = rtnStr;
  380. }
  381. }
  382. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  383. {
  384. this.close();
  385. }
  386. ]]></Script>
  387. </Form>
  388. </FDL>