SMPID23500_동일과진료일중복명세서조회.xfdl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPID23500" position="absolute 0 0 1011 809" titletext="중복 명세서조회" oninit="SMPID23500_oninit" onload="SMPID23500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 15 1005 784" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 1 247 1001 769" id="grd_clbsmast" class="datagrid2" binddataset="ds_grd_clbsmast" autofittype="col" autosizingtype="row" extendsizetype="row" cellsizingtype="col" onkeydown="grp_biz_grd_clbsmast_onkeydown" selecttype="row" oncelldblclick="grp_biz_grd_clbsmast_oncelldblclick" anchor="default">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="23"/>
  15. <Column size="74"/>
  16. <Column size="67"/>
  17. <Column size="35"/>
  18. <Column size="79"/>
  19. <Column size="114"/>
  20. <Column size="114"/>
  21. <Column size="72"/>
  22. <Column size="81"/>
  23. <Column size="0"/>
  24. <Column size="67"/>
  25. <Column size="69"/>
  26. <Column size="70"/>
  27. <Column size="35"/>
  28. <Column size="98"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="48" band="head"/>
  32. <Row size="24"/>
  33. </Rows>
  34. <Band id="head">
  35. <Cell/>
  36. <Cell col="1" text="등록번호"/>
  37. <Cell col="2" text="환자명"/>
  38. <Cell col="3" text="진료&#13;&#10;분야"/>
  39. <Cell col="4" text="보험유형"/>
  40. <Cell col="5" text="청구과"/>
  41. <Cell col="6" text="진료과"/>
  42. <Cell col="7" text="진료의"/>
  43. <Cell col="8" text="진료개시일"/>
  44. <Cell col="9" text="청구년월"/>
  45. <Cell col="10" text="출장시작일&#10;(사망일)"/>
  46. <Cell col="11" text="출장종료일"/>
  47. <Cell col="12" text="(상병,처방)&#10;코드"/>
  48. <Cell col="13" text="내원&#10;구분"/>
  49. <Cell col="14" text="대상진료과"/>
  50. </Band>
  51. <Band id="body">
  52. <Cell celltype="head" expr="currow+1"/>
  53. <Cell col="1" style="align:center middle;" text="bind:pid" wordwrap="word" autosizerow="limitmin"/>
  54. <Cell col="2" text="bind:patnm"/>
  55. <Cell col="3" displaytype="combo" edittype="combo" text="bind:ordfildcd" combodataset="ds_init_P0291list" combocodecol="cdid" combodatacol="cdnm" enable="true"/>
  56. <Cell col="4" displaytype="combo" edittype="combo" text="bind:insukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm"/>
  57. <Cell col="5" displaytype="combo" edittype="combo" text="bind:clamdeptcd" combodataset="ds_init_clamdept" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  58. <Cell col="6" displaytype="combo" edittype="combo" style="align:center;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  59. <Cell col="7" displaytype="combo" edittype="combo" style="align:center;" text="bind:orddrid" combodataset="ds_init_orddrid2" combocodecol="cd" combodatacol="nm" enable="false"/>
  60. <Cell col="8" displaytype="date" style="align:center;" text="bind:ordfromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  61. <Cell col="9" text="bind:clamym" mask="yyyy-mm" calendardisplaynulltype="nulltext"/>
  62. <Cell col="10" displaytype="date" style="align:center;" text="bind:holi_f" wordwrap="word" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext" autosizerow="limitmin"/>
  63. <Cell col="11" displaytype="date" style="align:center;" text="bind:holi_t" wordwrap="word" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext" autosizerow="limitmin"/>
  64. <Cell col="12" style="align:left middle;" text="bind:diagcd"/>
  65. <Cell col="13" displaytype="combo" edittype="combo" text="bind:ioflag" combodataset="ds_cmb_ioflag" combocodecol="value" combodatacol="label"/>
  66. <Cell col="14" displaytype="combo" text="bind:orddeptcd_diff" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  67. </Band>
  68. </Format>
  69. </Formats>
  70. </Grid>
  71. <Static text="대상자조회" position="absolute 4 226 130 247" id="cap_judgtrgtman" class="tit_2" anchor="default"/>
  72. <Shape position="absolute 1 239 1001 251" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  73. <Div position="absolute 1 9 1001 220" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
  74. <Layouts>
  75. <Layout>
  76. <Static text="청구년월 :" position="absolute 8 10 95 27" id="caption30" class="search_name" anchor="default"/>
  77. <Calendar position="absolute 97 8 166 27" align="align:center middle;" id="ipt_clamym" class="input_search" taborder="1" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="grp_biz_group1_ipt_clamym_onchanged"/>
  78. <Button position="absolute 935 69 991 91" id="btn_select" class="btn1" taborder="32" text="조회" anchor="top right" onclick="grp_biz_group1_btn_select_onclick"/>
  79. <Shape position="absolute 926 9 928 205" linetype="vertical" id="line3" class="line_4" anchor="top right"/>
  80. <Radio position="absolute 95 28 918 211" id="rdo_searchgb" columncount="3" codecolumn="cdid" datacolumn="cdnm" anchor="default" onitemchanged="grp_biz_group1_rdo_searchgb_onitemchanged" innerdataset="@ds_init_pam_PK230list"/>
  81. <Static text="조회구분 :" position="absolute 8 36 94 53" id="caption1" class="search_name" anchor="default"/>
  82. <Static id="caption3" text="내원유형 :" class="search_name" position="absolute 189 10 276 27" anchor="default"/>
  83. <Combo id="combo1" taborder="33" position="absolute 268 7 348 26" index="-1" innerdataset="@ds_cmb_combo1" datacolumn="label" codecolumn="value" anchor="default"/>
  84. </Layout>
  85. </Layouts>
  86. </Div>
  87. <Button position="absolute 921 222 1001 241" id="btn_excelsave" class="btn7" text="엑셀저장" onclick="grp_biz_btn_excelsave_onclick" anchor="default"/>
  88. <Static text="외래상기도감염 항생제 처방조회는 하셨습니까?" position="absolute 317 224 602 238" id="caption2" style="background:#ccffccff;color:#ff0000ff;font:Dotum,9,bold;" anchor="default"/>
  89. <Button position="absolute 604 222 797 241" id="button1" class="btn2" text="외래상기도감염 항생제 처방조회" onclick="grp_biz_button1_onclick" anchor="default"/>
  90. <Button position="absolute 800 222 916 241" id="button2" class="btn2" visible="false" text="재정산 내역 조회" onclick="grp_biz_button2_onclick" anchor="default"/>
  91. <Button id="btn_diagHist" taborder="1" text="상병이력" onclick="grp_biz_btn_diagHist_onclick" class="btn2" position="absolute 247 222 312 241" anchor="default"/>
  92. </Layout>
  93. </Layouts>
  94. </Div>
  95. <Button position="absolute 944 786 1000 808" id="btn_cancel" class="btn4" text="종료" onclick="btn_cancel_onclick"/>
  96. <Static id="cap_title" text="중복 명세서조회" class="tit_1" position="absolute 1 0 217 23"/>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_grd_clbsmast" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="pid" type="STRING"/>
  103. <Column id="patnm" type="STRING"/>
  104. <Column id="ordfildcd" type="STRING"/>
  105. <Column id="insukind" type="STRING"/>
  106. <Column id="clamdeptcd" type="STRING"/>
  107. <Column id="orddeptcd" type="STRING"/>
  108. <Column id="orddrid" type="STRING"/>
  109. <Column id="ordfromdd" type="STRING"/>
  110. <Column id="clamym" type="STRING"/>
  111. <Column id="holi_f" type="STRING"/>
  112. <Column id="holi_t" type="STRING"/>
  113. <Column id="diagcd" type="STRING"/>
  114. <Column id="ioflag" type="STRING"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_init_P0008list" 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_P0291list" 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_pam_PK110list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  136. <Dataset id="ds_init_pam_PK108list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  137. <Dataset id="ds_init_pam_PK109list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  138. <Dataset id="ds_send_item1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="clamym" type="STRING" size="256"/>
  141. <Column id="clamtoym" type="STRING" size="256"/>
  142. <Column id="scrnid" type="STRING" size="256"/>
  143. <Column id="ioflag" type="STRING" size="256"/>
  144. <Column id="searchgb" type="STRING" size="256"/>
  145. <Column id="diagcd" type="STRING" size="256"/>
  146. <Column id="stsioflag" type="STRING" size="256"/>
  147. <Column id="subgb" type="STRING" size="256"/>
  148. </ColumnInfo>
  149. <Rows>
  150. <Row>
  151. <Col id="searchgb">SD</Col>
  152. <Col id="ioflag">O</Col>
  153. </Row>
  154. </Rows>
  155. </Dataset>
  156. <Dataset id="ds_init_judgrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  157. <ColumnInfo>
  158. <Column id="judgrid" type="STRING" size="256" sumtext="심사자ID"/>
  159. <Column id="judgrnm" type="STRING" size="256" sumtext="심사자명"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row/>
  163. </Rows>
  164. </Dataset>
  165. <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="cd" type="STRING" size="256" sumtext="보조유형"/>
  168. <Column id="nm" type="STRING" size="256" sumtext="보조유형명"/>
  169. <Column id="up" type="STRING" size="256" sumtext="상위코드"/>
  170. <Column id="io" type="STRING" size="256" sumtext="외래입원구분"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row/>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="cd" type="STRING" size="256" sumtext="진료의사"/>
  179. <Column id="nm" type="STRING" size="256" sumtext="진료의사명"/>
  180. <Column id="dp" type="STRING" size="256" sumtext="부서코드"/>
  181. <Column id="sp" type="STRING" size="256" sumtext="선택진료여부"/>
  182. <Column id="reqdp" type="STRING" size="256" sumtext="청구과코드"/>
  183. </ColumnInfo>
  184. <Rows>
  185. <Row/>
  186. </Rows>
  187. </Dataset>
  188. <Dataset id="ds_init_orddrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  189. <ColumnInfo>
  190. <Column id="cd" type="STRING" size="256" sumtext="진료의사"/>
  191. <Column id="nm" type="STRING" size="256" sumtext="진료의사명"/>
  192. <Column id="dp" type="STRING" size="256" sumtext="부서코드"/>
  193. <Column id="sp" type="STRING" size="256" sumtext="선택진료여부"/>
  194. <Column id="reqdp" type="STRING" size="256" sumtext="청구과코드"/>
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_init_clamdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="cdid" type="STRING" size="256" sumtext="청구과코드"/>
  200. <Column id="cdnm" type="STRING" size="256" sumtext="청구과명칭"/>
  201. <Column id="cdval" type="STRING" size="256" sumtext="코드값(진료분야)"/>
  202. <Column id="minval" type="STRING" size="256" sumtext="코드최소값(M:의과, D:치과)"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row/>
  206. </Rows>
  207. </Dataset>
  208. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
  211. <Column id="nm" type="STRING" size="256" sumtext="진료과명칭"/>
  212. <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
  213. <Column id="reqfild" type="STRING" size="256" sumtext="청구진료분야"/>
  214. <Column id="reqdeptno" type="STRING" size="256" sumtext="청구부서번호"/>
  215. <Column id="orddeptflag" type="STRING" size="256" sumtext="진료과구분"/>
  216. </ColumnInfo>
  217. <Rows>
  218. <Row/>
  219. </Rows>
  220. </Dataset>
  221. <Dataset id="ds_init_orddeptcd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  222. <ColumnInfo>
  223. <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
  224. <Column id="nm" type="STRING" size="256" sumtext="진료과명칭"/>
  225. <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
  226. <Column id="reqfild" type="STRING" size="256" sumtext="청구진료분야"/>
  227. <Column id="reqdeptno" type="STRING" size="256" sumtext="청구부서번호"/>
  228. <Column id="orddeptflag" type="STRING" size="256" sumtext="진료과구분"/>
  229. </ColumnInfo>
  230. </Dataset>
  231. <Dataset id="ds_init_item3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  232. <ColumnInfo>
  233. <Column id="judgidyn" type="STRING" size="256" sumtext="심사자id유무"/>
  234. </ColumnInfo>
  235. <Rows>
  236. <Row/>
  237. </Rows>
  238. </Dataset>
  239. <Dataset id="ds_init_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  240. <ColumnInfo>
  241. <Column id="clamdgnm" type="STRING" size="256" sumtext="청구차수명"/>
  242. <Column id="clamdgcd" type="STRING" size="256" sumtext="청구차수번호"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row/>
  246. </Rows>
  247. </Dataset>
  248. <Dataset id="ds_init_aftjudgerr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  249. <ColumnInfo>
  250. <Column id="nm" type="STRING" size="256" sumtext="오류내역"/>
  251. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  252. </ColumnInfo>
  253. <Rows>
  254. <Row/>
  255. </Rows>
  256. </Dataset>
  257. <Dataset id="ds_init_uuee" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  258. <ColumnInfo>
  259. <Column id="scrnid" type="STRING" size="256" sumtext="화면(xrw)의 ID"/>
  260. <Column id="compsnm" type="STRING" size="256" sumtext="Grid ID 정보"/>
  261. <Column id="compscnts" type="STRING" size="256" sumtext="Grid의 칼럼명"/>
  262. <Column id="compsrefcnts" type="STRING" size="256" sumtext="Grid의 reference명"/>
  263. <Column id="compssizecnts" type="STRING" size="256" sumtext="Grid의 칼럼Size"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row/>
  267. </Rows>
  268. </Dataset>
  269. <Dataset id="ds_cmb_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  270. <ColumnInfo>
  271. <Column id="label" type="STRING" size="256"/>
  272. <Column id="value" type="STRING" size="256"/>
  273. </ColumnInfo>
  274. <Rows>
  275. <Row>
  276. <Col id="label">입원</Col>
  277. <Col id="value">I</Col>
  278. </Row>
  279. <Row>
  280. <Col id="label">외래</Col>
  281. <Col id="value">O</Col>
  282. </Row>
  283. </Rows>
  284. </Dataset>
  285. <Dataset id="ds_cmb_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  286. <ColumnInfo>
  287. <Column id="label" type="STRING" size="256"/>
  288. <Column id="value" type="STRING" size="256"/>
  289. </ColumnInfo>
  290. <Rows>
  291. <Row>
  292. <Col id="label">전체</Col>
  293. <Col id="value"/>
  294. </Row>
  295. <Row>
  296. <Col id="label">DSC/CHEMO</Col>
  297. <Col id="value">D</Col>
  298. </Row>
  299. <Row>
  300. <Col id="label">응급</Col>
  301. <Col id="value">E</Col>
  302. </Row>
  303. </Rows>
  304. </Dataset>
  305. <Dataset id="ds_init_pam_PK230list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  306. </Objects>
  307. <Bind>
  308. <BindItem id="item0" compid="grp_biz.group1.ipt_clamym" propid="value" datasetid="ds_send_item1" columnid="clamym"/>
  309. <BindItem id="item1" compid="grp_biz.group1.rdo_searchgb" propid="value" datasetid="ds_send_item1" columnid="searchgb"/>
  310. <BindItem id="item2" compid="grp_biz.group1.combo1" propid="value" datasetid="ds_send_item1" columnid="stsioflag"/>
  311. </Bind>
  312. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  313. * System Name :
  314. * Job Name :
  315. * Creator :
  316. * Make Date : 2016-05-24
  317. * Description :
  318. *---------------------------------------------------------------------------------------
  319. * Modify Date Modifier Modify Description
  320. *---------------------------------------------------------------------------------------
  321. * 2016-05-24 Live Converter TF->XP
  322. *
  323. *---------------------------------------------------------------------------------------
  324. ****************************************************************************************/
  325. include "com_commonxp::comm_main.xjs";
  326. include "pam_pamcomnxp::PAM001.xjs";
  327. include "pam_pamcomnxp::PAM.xjs";
  328. function SMPID23500_oninit(obj:Form, e:InitEventInfo)
  329. {
  330. frmf_initForm(obj);
  331. }
  332. function SMPID23500_onload(obj:Form, e:LoadEventInfo)
  333. {
  334. fInitialize();
  335. }
  336. var gToday = new Date();
  337. var gBaseyear = gToday.getDateFormat("YYYY");
  338. var gBasemonth = gToday.getDateFormat("MM");
  339. var gBaseday = gToday.getDateFormat("DD");
  340. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  341. var gCurrentym = gBaseyear + gBasemonth;
  342. function fInitialize()
  343. {
  344. grdf_initGrid(grp_biz.grd_clbsmast);
  345. grdf_setToolTipBind(grp_biz.grd_clbsmast);
  346. var arrParam = [{dsNm: "ds_init_P0291list", cdGrpId: "P0291"}
  347. ,{dsNm: "ds_init_P0008list", cdGrpId: "P0008"}]
  348. appf_getCodeList(arrParam);
  349. pamGetDeptCDDrIDList();
  350. var arrParam1 = new Array();
  351. arrParam1 = [{dsNm: "ds_init_pam_PK108list", cdGrpId: "PK108", showValue: false}
  352. , {dsNm: "ds_init_pam_PK109list", cdGrpId: "PK109", showValue: false}
  353. , {dsNm: "ds_init_pam_PK110list", cdGrpId: "PK110", showValue: false}
  354. , {dsNm: "ds_init_pam_PK230list", cdGrpId: "PK230", showValue: false}];
  355. pamfGetCodeList(arrParam1, true, "cf_pamfGetCodeList");
  356. var lv_date = gCurrentym.toDate("YYYYMM" + "01");
  357. lv_date = lv_date.getAddDate(-1, "M")
  358. gCurrentym = lv_date.getDateFormat("YYYYMM")
  359. ds_send_item1.setColumn(0, "clamym", gCurrentym);
  360. ds_send_item1.setColumn(0, "clamtoym", gCurrentym);
  361. grp_biz.group1.combo1.index = 0;
  362. var oParam = {};
  363. oParam.id = "TRPID20201";
  364. oParam.service = "aftjudgapp.InAftJudgTrgtMan";
  365. oParam.method = "reqGetInitComCd";
  366. oParam.inds = "req=ds_send_item1";
  367. oParam.outds = "ds_init_judgrid=judgrid ds_init_suppkind=suppkind ds_init_orddrid=orddrid ds_init_orddrid2=orddrid2 ds_init_clamdept=clamdept ds_init_orddeptcd=orddeptcd ds_init_orddeptcd2=orddeptcd2 ds_init_item3=item3 ds_init_clamdg=clamdg ds_init_aftjudgerr=aftjudgerr ds_init_uuee=uuee";
  368. oParam.async = false;
  369. //oParam.callback = "cf_TRPID20201";
  370. tranf_submit(oParam);
  371. }
  372. function cf_pamfGetCodeList()
  373. {
  374. }
  375. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  376. {
  377. fGetDocuList();
  378. }
  379. function fGetDocuList()
  380. {
  381. grp_biz.grd_clbsmast.setCellProperty("Body", 3, "displaytype", "combo");
  382. grp_biz.grd_clbsmast.setCellProperty("Body", 3, "edittype", "combo");
  383. grp_biz.grd_clbsmast.setCellProperty("Body", 4, "displaytype", "combo");
  384. grp_biz.grd_clbsmast.setCellProperty("Body", 4, "edittype", "combo");
  385. grp_biz.grd_clbsmast.setCellProperty("Body", 5, "displaytype", "combo");
  386. grp_biz.grd_clbsmast.setCellProperty("Body", 5, "edittype", "combo");
  387. grp_biz.grd_clbsmast.setCellProperty("Body", 6, "displaytype", "combo");
  388. grp_biz.grd_clbsmast.setCellProperty("Body", 6, "edittype", "combo");
  389. grp_biz.grd_clbsmast.setCellProperty("Body", 7, "displaytype", "combo");
  390. grp_biz.grd_clbsmast.setCellProperty("Body", 7, "edittype", "combo");
  391. var chk = true;
  392. if(utlf_isNull(ds_send_item1.getColumn(0, "clamym")))
  393. {
  394. chk = false;
  395. sysf_messageBox("청구년월은", "I003");
  396. grp_biz.group1.ipt_clamym.setFocus();
  397. }
  398. var searchgb = ds_send_item1.getColumn(0, "searchgb");
  399. if (chk == true)
  400. {
  401. ds_send_item1.setColumn(0, "diagcd", ds_init_pam_PK108list.lookup("cdid", searchgb, "cdnm"));
  402. ds_send_item1.setColumn(0, "subgb", ds_init_pam_PK230list.lookup("cdid", searchgb, "detldesc"));
  403. var oParam = {};
  404. oParam.id = "TRPID22901";
  405. oParam.service = "aftjudgapp.InAftJudg";
  406. oParam.method = "reqGetSameDeptNDateDocuList";
  407. oParam.inds = "req=ds_send_item1";
  408. oParam.outds = "ds_grd_clbsmast=clbs";
  409. oParam.async = false;
  410. //oParam.callback = "cf_TRPID22901";
  411. tranf_submit(oParam);
  412. }
  413. if (searchgb == "G2")
  414. {
  415. grp_biz.grd_clbsmast.setCellProperty("head", 1, "text", "한글명");
  416. grp_biz.grd_clbsmast.setCellProperty("head", 2, "text", "수가코드");
  417. grp_biz.grd_clbsmast.setCellProperty("head", 3, "text", "EDI코드");
  418. grp_biz.grd_clbsmast.setCellProperty("head", 4, "text", "대분류");
  419. grp_biz.grd_clbsmast.setCellProperty("head", 5, "text", "중분류");
  420. grp_biz.grd_clbsmast.setCellProperty("head", 6, "text", "소분류");
  421. grp_biz.grd_clbsmast.setCellProperty("head", 7, "text", "적용일자");
  422. grp_biz.grd_clbsmast.setCellProperty("head", 8, "text", "수가메모");
  423. grp_biz.grd_clbsmast.setCellProperty("head", 10, "text", "수가메세지");
  424. grp_biz.grd_clbsmast.setCellProperty("head", 11, "text", "");
  425. grp_biz.grd_clbsmast.setCellProperty("head", 12, "text", "");
  426. grp_biz.grd_clbsmast.setCellProperty("Body", 1, "align", "left middle");
  427. grp_biz.grd_clbsmast.setCellProperty("Body", 2, "align", "left middle");
  428. grp_biz.grd_clbsmast.setCellProperty("Body", 3, "displaytype", "normal");
  429. grp_biz.grd_clbsmast.setCellProperty("Body", 3, "edittype", "normal");
  430. grp_biz.grd_clbsmast.setCellProperty("Body", 4, "displaytype", "normal");
  431. grp_biz.grd_clbsmast.setCellProperty("Body", 4, "edittype", "normal");
  432. grp_biz.grd_clbsmast.setCellProperty("Body", 5, "displaytype", "normal");
  433. grp_biz.grd_clbsmast.setCellProperty("Body", 5, "edittype", "normal");
  434. grp_biz.grd_clbsmast.setCellProperty("Body", 6, "displaytype", "normal");
  435. grp_biz.grd_clbsmast.setCellProperty("Body", 6, "edittype", "normal");
  436. grp_biz.grd_clbsmast.setCellProperty("Body", 7, "displaytype", "normal");
  437. grp_biz.grd_clbsmast.setCellProperty("Body", 7, "edittype", "normal");
  438. }
  439. else
  440. {
  441. grp_biz.grd_clbsmast.setCellProperty("head", 1, "text", "등록번호");
  442. grp_biz.grd_clbsmast.setCellProperty("head", 2, "text", "환자명");
  443. grp_biz.grd_clbsmast.setCellProperty("head", 3, "text", "진료분야");
  444. grp_biz.grd_clbsmast.setCellProperty("head", 4, "text", "보험유형");
  445. grp_biz.grd_clbsmast.setCellProperty("head", 5, "text", "청구과");
  446. grp_biz.grd_clbsmast.setCellProperty("head", 6, "text", "진료과");
  447. grp_biz.grd_clbsmast.setCellProperty("head", 7, "text", "진료의");
  448. grp_biz.grd_clbsmast.setCellProperty("head", 8, "text", "진료개시일");
  449. grp_biz.grd_clbsmast.setCellProperty("head", 10, "text", "출장시작일\n(사망일)");
  450. grp_biz.grd_clbsmast.setCellProperty("head", 11, "text", "출장종료일");
  451. grp_biz.grd_clbsmast.setCellProperty("head", 12, "text", "(상병,처방)\n코드");
  452. grp_biz.grd_clbsmast.setCellProperty("head", 1, "size", 74);
  453. grp_biz.grd_clbsmast.setCellProperty("head", 2, "size", 67);
  454. grp_biz.grd_clbsmast.setCellProperty("head", 3, "size", 69);
  455. grp_biz.grd_clbsmast.setCellProperty("head", 4, "size", 79);
  456. grp_biz.grd_clbsmast.setCellProperty("head", 5, "size", 114);
  457. grp_biz.grd_clbsmast.setCellProperty("head", 6, "size", 114);
  458. grp_biz.grd_clbsmast.setCellProperty("head", 7, "size", 72);
  459. grp_biz.grd_clbsmast.setCellProperty("head", 8, "size", 81);
  460. grp_biz.grd_clbsmast.setCellProperty("head", 10, "size", 67);
  461. grp_biz.grd_clbsmast.setCellProperty("head", 11, "size", 69);
  462. grp_biz.grd_clbsmast.setCellProperty("head", 12, "size", 70);
  463. }
  464. }
  465. function grp_biz_group1_rdo_searchgb_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  466. {
  467. fGetDocuList();
  468. }
  469. function grp_biz_group1_ipt_clamym_onchanged(obj:Calendar, e:ChangeEventInfo)
  470. {
  471. var date = obj.value;
  472. var str_date = String(date).substr(0,6);
  473. ds_send_item1.setColumn(0, "clamym", str_date);
  474. }
  475. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  476. {
  477. if (ds_grd_clbsmast.rowcount > 0)
  478. {
  479. grdf_exportExcel(grp_biz.grd_clbsmast, "중복 명세서조회", "see");
  480. }
  481. else
  482. {
  483. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  484. }
  485. }
  486. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  487. {
  488. frmf_open("SMPIS01000", "SMPIS01000", "", "", "", "", "", "", "", "", "", "", "M");
  489. }
  490. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  491. {
  492. this.close();
  493. }
  494. function grp_biz_grd_clbsmast_onkeydown(obj:Grid, e:KeyEventInfo)
  495. {
  496. if(e.ctrlKey == true && e.keycode == 67) {
  497. var selectedRows = grdf_getSelectedRows(obj);
  498. if (selectedRows.length == 1) { // 한줄
  499. // 등록번호
  500. var clip = obj.getCellValue(obj.currentrow, obj.getBindCellIndex("body", "pid"));
  501. system.setClipboard("CF_TEXT", clip);
  502. }
  503. else if (selectedRows.length > 1) { // 여러줄
  504. grdf_clipboardCopy(obj);
  505. }
  506. }
  507. }
  508. function lf_fGetDiagHistList()
  509. {
  510. var clamym = ds_grd_clbsmast.getColumn(ds_grd_clbsmast.rowposition, "clamym");
  511. if (!utlf_isNull(clamym))
  512. {
  513. // 조회된 심사대상자가 있으면
  514. // 심사대상자의 등록번호를 조건으로 하여 전체 청구 상병이력을 조회한다.
  515. var smpiz00100 = new Object();
  516. smpiz00100.sPid = ds_grd_clbsmast.getColumn(ds_grd_clbsmast.rowposition, "pid");
  517. smpiz00100.sIoflag = "-";
  518. var rtnDs = frmf_modal("SMPIZ00100", "SMPIZ00100", smpiz00100, "", "", "", "", "", "", "", "", "", "M");
  519. }
  520. }
  521. function grp_biz_btn_diagHist_onclick(obj:Button, e:ClickEventInfo)
  522. {
  523. lf_fGetDiagHistList()
  524. }
  525. function grp_biz_grd_clbsmast_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  526. {
  527. lf_fGetDiagHistList()
  528. }
  529. ]]></Script>
  530. </Form>
  531. </FDL>