SMPAM00403_과제별환자내역.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAM00403" position="absolute 0 0 1213 805" titletext="임상 연구 검사비 미수 청구 관리" onload="SMPAM00403_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cap_title" class="tit_1" position="absolute 0 0 149 25" style="align:left middle;font:Dotum,9, bold;" text="과제별 환자 내역"/>
  8. <Button id="btn_search" class="btn2" taborder="4" position="absolute 346 79 410 98" text="새로고침" onclick="btn_search_onclick"/>
  9. <Grid id="grd_proj" binddataset="ds_main_projinfo" position="absolute 0 25 1195 75" style="">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="0"/>
  14. <Column size="80"/>
  15. <Column size="60"/>
  16. <Column size="120"/>
  17. <Column size="314"/>
  18. <Column size="0"/>
  19. <Column size="70"/>
  20. <Column size="0"/>
  21. <Column size="120"/>
  22. <Column size="80"/>
  23. <Column size="80"/>
  24. <Column size="90"/>
  25. <Column size="90"/>
  26. <Column size="90"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell text="kind"/>
  34. <Cell col="1" text="과제구분"/>
  35. <Cell col="2" text="과제코드"/>
  36. <Cell col="3" text="과제번호"/>
  37. <Cell col="4" text="과제명"/>
  38. <Cell col="5" text="rshid"/>
  39. <Cell col="6" text="연구책임자"/>
  40. <Cell col="7" text="unitcd"/>
  41. <Cell col="8" text="연구책임자소속"/>
  42. <Cell col="9" text="과제시작일"/>
  43. <Cell col="10" text="과제종료일"/>
  44. <Cell col="11" text="연구비총액"/>
  45. <Cell col="12" text="연구비잔액"/>
  46. <Cell col="13" text="연구비입금액"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell text="bind:kind"/>
  50. <Cell col="1" text="bind:kindnm"/>
  51. <Cell col="2" text="bind:projcd"/>
  52. <Cell col="3" text="bind:studycd"/>
  53. <Cell col="4" text="bind:projnm" tooltiptext="bind:projnm"/>
  54. <Cell col="5" text="bind:rshid"/>
  55. <Cell col="6" text="bind:rshnm"/>
  56. <Cell col="7" text="bind:unitcd"/>
  57. <Cell col="8" text="bind:unitnm"/>
  58. <Cell col="9" displaytype="date" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
  59. <Cell col="10" displaytype="date" text="bind:todd" calendardisplaynulltype="nulltext"/>
  60. <Cell col="11" displaytype="number" text="bind:projamt"/>
  61. <Cell col="12" displaytype="number" text="bind:remnamt"/>
  62. <Cell col="13" displaytype="number" text="bind:depoamt"/>
  63. </Band>
  64. </Format>
  65. </Formats>
  66. </Grid>
  67. <Static id="caption1" class="tit_2" position="absolute 0 82 168 99" style="" text="과제별 보고서 작성 이력"/>
  68. <Grid id="grd_pt" binddataset="ds_main_ptlist_uncoinfo" position="absolute 415 103 1195 773" style="">
  69. <Formats>
  70. <Format id="default">
  71. <Columns>
  72. <Column size="24" band="left"/>
  73. <Column size="60"/>
  74. <Column size="60"/>
  75. <Column size="80"/>
  76. <Column size="60"/>
  77. <Column size="80"/>
  78. <Column size="120"/>
  79. <Column size="50"/>
  80. <Column size="70"/>
  81. <Column size="70"/>
  82. <Column size="70"/>
  83. <Column size="60"/>
  84. <Column size="80"/>
  85. <Column size="80"/>
  86. <Column size="80"/>
  87. </Columns>
  88. <Rows>
  89. <Row size="24" band="head"/>
  90. <Row size="24"/>
  91. </Rows>
  92. <Band id="head">
  93. <Cell/>
  94. <Cell col="1" text="등록번호"/>
  95. <Cell col="2" text="환자명"/>
  96. <Cell col="3" text="수납일"/>
  97. <Cell col="4" text="진료형태"/>
  98. <Cell col="5" text="진료일"/>
  99. <Cell col="6" text="진료과"/>
  100. <Cell col="7" text="진료의"/>
  101. <Cell col="8" text="미수금액"/>
  102. <Cell col="9" text="청구금액"/>
  103. <Cell col="10" text="수납금액"/>
  104. <Cell col="11" text="수납자명"/>
  105. <Cell col="12" text="보험유형"/>
  106. <Cell col="13" text="보조유형"/>
  107. <Cell col="14" text="퇴원일"/>
  108. </Band>
  109. <Band id="body">
  110. <Cell celltype="head" expr="currow + 1"/>
  111. <Cell col="1" text="bind:pid"/>
  112. <Cell col="2" text="bind:hngnm"/>
  113. <Cell col="3" displaytype="date" text="bind:rcptexecdd" calendardisplaynulltype="nulltext"/>
  114. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:ordtype" combodataset="ds_init_ordtype" combocodecol="value" combodatacol="label"/>
  115. <Cell col="5" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
  116. <Cell col="6" text="bind:orddeptnm"/>
  117. <Cell col="7" text="bind:orddrnm"/>
  118. <Cell col="8" displaytype="number" text="bind:uncoamt"/>
  119. <Cell col="9" displaytype="number" style="font:Dotum,9,bold;" text="bind:clamamt"/>
  120. <Cell col="10" displaytype="number" style="color:green;color2:green;font:Dotum,9,bold;" text="bind:rcptamt"/>
  121. <Cell col="11" text="bind:rcptnm"/>
  122. <Cell col="12" text="bind:insukindnm"/>
  123. <Cell col="13" text="bind:suppkindnm"/>
  124. <Cell col="14" displaytype="text" style="align:center middle;" text="bind:dschdd" mask="####-##-##" maskchar=" "/>
  125. </Band>
  126. </Format>
  127. </Formats>
  128. </Grid>
  129. <Grid id="grd_rept" binddataset="ds_main_reptlist_reptinfo" position="absolute 0 103 410 773" style="" oncelldblclick="grd_rept_oncelldblclick" autofittype="col">
  130. <Formats>
  131. <Format id="default">
  132. <Columns>
  133. <Column size="0"/>
  134. <Column size="0"/>
  135. <Column size="0"/>
  136. <Column size="0"/>
  137. <Column size="100"/>
  138. <Column size="0"/>
  139. <Column size="40"/>
  140. <Column size="80"/>
  141. <Column size="0"/>
  142. <Column size="0"/>
  143. <Column size="60"/>
  144. <Column size="45"/>
  145. <Column size="80"/>
  146. </Columns>
  147. <Rows>
  148. <Row size="24" band="head"/>
  149. <Row size="24"/>
  150. </Rows>
  151. <Band id="head">
  152. <Cell text="과제코드"/>
  153. <Cell col="1" text="연구번호"/>
  154. <Cell col="2" text="과제번호"/>
  155. <Cell col="3" text="보고서코드"/>
  156. <Cell col="4" text="보고서명"/>
  157. <Cell col="5" text="보고서순번"/>
  158. <Cell col="6" text="상태"/>
  159. <Cell col="7" text="작성일"/>
  160. <Cell col="8" text="제출일"/>
  161. <Cell col="9" text="작성자ID"/>
  162. <Cell col="10" text="작성자"/>
  163. <Cell col="11" text="환자수"/>
  164. <Cell col="12" text="청구금액"/>
  165. </Band>
  166. <Band id="body">
  167. <Cell text="bind:projcd"/>
  168. <Cell col="1" text="bind:studycd"/>
  169. <Cell col="2" text="bind:subjno"/>
  170. <Cell col="3" text="bind:reptcd"/>
  171. <Cell col="4" style="align:left middle;padding:0 5 0 5;" text="bind:reptnm"/>
  172. <Cell col="5" text="bind:seqno"/>
  173. <Cell col="6" text="bind:status"/>
  174. <Cell col="7" displaytype="date" text="bind:bsdd" calendardisplaynulltype="nulltext"/>
  175. <Cell col="8" text="bind:sbmtdd"/>
  176. <Cell col="9" text="bind:bsid"/>
  177. <Cell col="10" text="bind:bsnm"/>
  178. <Cell col="11" style="align:center middle;" text="bind:ptcnt"/>
  179. <Cell col="12" displaytype="number" text="bind:clamamt"/>
  180. </Band>
  181. </Format>
  182. </Formats>
  183. </Grid>
  184. <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 0 99 410 103" style="" anchor="default"/>
  185. <Static id="caption6" class="tit_2" position="absolute 415 81 599 98" style="" text="과제 및 보고서별 환자 내역"/>
  186. <Shape id="line5" class="line_10" linetype="horizontal" position="absolute 415 99 1195 103" style="" anchor="default"/>
  187. <Button id="btn_excel" class="btn7" position="absolute 1115 79 1195 98" text="엑셀저장" onclick="btn_excel_onclick"/>
  188. <Button id="btn_prt" class="btn6" position="absolute 1064 79 1114 98" text="출력" onclick="btn_prt_onclick"/>
  189. </Layout>
  190. </Layouts>
  191. <Objects>
  192. <Dataset id="ds_main_ptlist_uncoinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  193. <ColumnInfo/>
  194. </Dataset>
  195. <Dataset id="ds_temp_projinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  196. <ColumnInfo>
  197. <Column id="proj_kind" type="STRING" size="256"/>
  198. <Column id="proj_kindnm" type="STRING" size="256"/>
  199. <Column id="proj_projcd" type="STRING" size="256"/>
  200. <Column id="proj_studycd" type="STRING" size="256"/>
  201. <Column id="proj_projnm" type="STRING" size="256"/>
  202. <Column id="proj_rshid" type="STRING" size="256"/>
  203. <Column id="proj_rshnm" type="STRING" size="256"/>
  204. <Column id="proj_unitcd" type="STRING" size="256"/>
  205. <Column id="proj_unitnm" type="STRING" size="256"/>
  206. <Column id="proj_fromdd" type="STRING" size="256"/>
  207. <Column id="proj_todd" type="STRING" size="256"/>
  208. <Column id="proj_projamt" type="STRING" size="256"/>
  209. <Column id="proj_remnamt" type="STRING" size="256"/>
  210. <Column id="proj_depoamt" type="STRING" size="256"/>
  211. </ColumnInfo>
  212. <Rows>
  213. <Row>
  214. <Col id="proj_kind"/>
  215. <Col id="proj_kindnm"/>
  216. <Col id="proj_projcd"/>
  217. <Col id="proj_studycd"/>
  218. <Col id="proj_projnm"/>
  219. <Col id="proj_rshid"/>
  220. <Col id="proj_rshnm"/>
  221. <Col id="proj_unitcd"/>
  222. <Col id="proj_unitnm"/>
  223. <Col id="proj_fromdd"/>
  224. <Col id="proj_todd"/>
  225. <Col id="proj_projamt"/>
  226. <Col id="proj_remnamt"/>
  227. <Col id="proj_depoamt"/>
  228. </Row>
  229. </Rows>
  230. </Dataset>
  231. <Dataset id="ds_temp_ptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  232. <ColumnInfo/>
  233. </Dataset>
  234. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  235. <ColumnInfo>
  236. <Column id="projcd" type="STRING" size="256"/>
  237. <Column id="studycd" type="STRING" size="256"/>
  238. <Column id="reptcd" type="STRING" size="256"/>
  239. <Column id="reptseq" type="STRING" size="256"/>
  240. <Column id="rcptflag" type="STRING" size="256"/>
  241. <Column id="realrcptflag" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. <Rows>
  244. <Row>
  245. <Col id="projcd"/>
  246. <Col id="studycd"/>
  247. <Col id="reptcd"/>
  248. <Col id="reptseq"/>
  249. <Col id="rcptflag"/>
  250. <Col id="realrcptflag">N</Col>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_temp_ptlist_ptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  255. <ColumnInfo>
  256. <Column id="pid" type="STRING" size="256"/>
  257. <Column id="hngnm" type="STRING" size="256"/>
  258. <Column id="rcptexecdd" type="STRING" size="256"/>
  259. <Column id="orddd" type="STRING" size="256"/>
  260. <Column id="ordtype" type="STRING" size="256"/>
  261. <Column id="orddeptnm" type="STRING" size="256"/>
  262. <Column id="orddrnm" type="STRING" size="256"/>
  263. <Column id="insukindnm" type="STRING" size="256"/>
  264. <Column id="suppkindnm" type="STRING" size="256"/>
  265. <Column id="unconm" type="STRING" size="256"/>
  266. <Column id="uncoamt" type="STRING" size="256"/>
  267. <Column id="clamamt" type="STRING" size="256"/>
  268. </ColumnInfo>
  269. </Dataset>
  270. <Dataset id="ds_main_projinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  271. <ColumnInfo>
  272. <Column id="kind" type="STRING" size="256"/>
  273. <Column id="kindnm" type="STRING" size="256"/>
  274. <Column id="projcd" type="STRING" size="256"/>
  275. <Column id="studycd" type="STRING" size="256"/>
  276. <Column id="projnm" type="STRING" size="256"/>
  277. <Column id="rshid" type="STRING" size="256"/>
  278. <Column id="rshnm" type="STRING" size="256"/>
  279. <Column id="unitcd" type="STRING" size="256"/>
  280. <Column id="unitnm" type="STRING" size="256"/>
  281. <Column id="fromdd" type="STRING" size="256"/>
  282. <Column id="todd" type="STRING" size="256"/>
  283. <Column id="projamt" type="STRING" size="256"/>
  284. <Column id="remnamt" type="STRING" size="256"/>
  285. <Column id="depoamt" type="STRING" size="256"/>
  286. </ColumnInfo>
  287. <Rows>
  288. <Row>
  289. <Col id="kind"/>
  290. <Col id="kindnm"/>
  291. <Col id="projcd"/>
  292. <Col id="studycd"/>
  293. <Col id="projnm"/>
  294. <Col id="rshid"/>
  295. <Col id="rshnm"/>
  296. <Col id="unitcd"/>
  297. <Col id="unitnm"/>
  298. <Col id="fromdd"/>
  299. <Col id="todd"/>
  300. <Col id="projamt"/>
  301. <Col id="remnamt"/>
  302. <Col id="depoamt"/>
  303. </Row>
  304. </Rows>
  305. </Dataset>
  306. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  307. <ColumnInfo/>
  308. </Dataset>
  309. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  310. <ColumnInfo/>
  311. </Dataset>
  312. <Dataset id="ds_main_reptlist_reptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  313. <ColumnInfo>
  314. <Column id="projcd" type="STRING" size="256"/>
  315. <Column id="studycd" type="STRING" size="256"/>
  316. <Column id="subjno" type="STRING" size="256"/>
  317. <Column id="reptcd" type="STRING" size="256"/>
  318. <Column id="reptnm" type="STRING" size="256"/>
  319. <Column id="seqno" type="STRING" size="256"/>
  320. <Column id="status" type="STRING" size="256"/>
  321. <Column id="bsdd" type="STRING" size="256"/>
  322. <Column id="sbmtdd" type="STRING" size="256"/>
  323. <Column id="bsid" type="STRING" size="256"/>
  324. <Column id="bsnm" type="STRING" size="256"/>
  325. <Column id="ptcnt" type="STRING" size="256"/>
  326. <Column id="clamamt" type="STRING" size="256"/>
  327. </ColumnInfo>
  328. <Rows>
  329. <Row>
  330. <Col id="projcd"/>
  331. <Col id="studycd"/>
  332. <Col id="subjno"/>
  333. <Col id="reptcd"/>
  334. <Col id="reptnm"/>
  335. <Col id="seqno"/>
  336. <Col id="status"/>
  337. <Col id="bsdd"/>
  338. <Col id="sbmtdd"/>
  339. <Col id="bsid"/>
  340. <Col id="bsnm"/>
  341. <Col id="ptcnt"/>
  342. <Col id="clamamt"/>
  343. </Row>
  344. </Rows>
  345. </Dataset>
  346. <Dataset id="ds_temp_reptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  347. <ColumnInfo>
  348. <Column id="rept_projcd" type="STRING" size="256"/>
  349. <Column id="rept_studycd" type="STRING" size="256"/>
  350. <Column id="rept_subjno" type="STRING" size="256"/>
  351. <Column id="rept_reptcd" type="STRING" size="256"/>
  352. <Column id="rept_reptnm" type="STRING" size="256"/>
  353. <Column id="rept_seqno" type="STRING" size="256"/>
  354. <Column id="rept_status" type="STRING" size="256"/>
  355. <Column id="rept_bsdd" type="STRING" size="256"/>
  356. <Column id="rept_sbmtdd" type="STRING" size="256"/>
  357. <Column id="rept_bsid" type="STRING" size="256"/>
  358. <Column id="rept_bsnm" type="STRING" size="256"/>
  359. <Column id="rept_ptcnt" type="STRING" size="256"/>
  360. <Column id="rept_clamamt" type="STRING" size="256"/>
  361. </ColumnInfo>
  362. <Rows>
  363. <Row>
  364. <Col id="rept_projcd"/>
  365. <Col id="rept_studycd"/>
  366. <Col id="rept_subjno"/>
  367. <Col id="rept_reptcd"/>
  368. <Col id="rept_reptnm"/>
  369. <Col id="rept_seqno"/>
  370. <Col id="rept_status"/>
  371. <Col id="rept_bsdd"/>
  372. <Col id="rept_sbmtdd"/>
  373. <Col id="rept_bsid"/>
  374. <Col id="rept_bsnm"/>
  375. <Col id="rept_ptcnt"/>
  376. <Col id="rept_clamamt"/>
  377. </Row>
  378. </Rows>
  379. </Dataset>
  380. <Dataset id="ds_main_reptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  381. <ColumnInfo/>
  382. </Dataset>
  383. <Dataset id="ds_init_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  384. <ColumnInfo>
  385. <Column id="label" type="STRING" size="256"/>
  386. <Column id="value" type="STRING" size="256"/>
  387. </ColumnInfo>
  388. <Rows>
  389. <Row>
  390. <Col id="label">진행</Col>
  391. <Col id="value">P</Col>
  392. </Row>
  393. <Row>
  394. <Col id="label">반려</Col>
  395. <Col id="value">R</Col>
  396. </Row>
  397. <Row>
  398. <Col id="label">제출</Col>
  399. <Col id="value">E</Col>
  400. </Row>
  401. <Row>
  402. <Col id="label">확인</Col>
  403. <Col id="value">A</Col>
  404. </Row>
  405. </Rows>
  406. </Dataset>
  407. <Dataset id="ds_init_ordtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  408. <ColumnInfo>
  409. <Column id="label" type="STRING" size="256"/>
  410. <Column id="value" type="STRING" size="256"/>
  411. </ColumnInfo>
  412. <Rows>
  413. <Row>
  414. <Col id="label">입원</Col>
  415. <Col id="value">I</Col>
  416. </Row>
  417. <Row>
  418. <Col id="label">외래</Col>
  419. <Col id="value">O</Col>
  420. </Row>
  421. <Row>
  422. <Col id="label">응급</Col>
  423. <Col id="value">E</Col>
  424. </Row>
  425. </Rows>
  426. </Dataset>
  427. </Objects>
  428. <Bind/>
  429. <Script type="xscript4.0"><![CDATA[ include "com_commonxp::comm_main.xjs";
  430. function fGetDF4Rpt(str) {
  431. return str.substr(0, 4) + "-" + str.substr(4, 2) + "-" + str.substr(6, 2);
  432. }
  433. function SMPAM00403_onload(obj:Form, e:LoadEventInfo) {
  434. frmf_initForm(obj);
  435. //grdf_initGrid(this.grd_proj);
  436. //grdf_initGrid(this.grd_pt);
  437. //grdf_initGrid(this.grd_rept);
  438. //grdf_setGridSort(grd_XXX);
  439. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  440. if (frmf_checkOpener()) {
  441. var projcd = utlf_transNullToEmpty(opener.frmf_getParameter("SMPAM00403_projcd"));
  442. if (projcd == "") {
  443. projcd = opener.frmf_getParameter("SMPAM00403PAM_projcd");
  444. }
  445. if (!utlf_isNull(projcd)) {
  446. ds_send.setColumn( 0, "projcd", projcd);
  447. //submit("TRPAM00413");
  448. var oParam = {};
  449. oParam.id = "TRPAM00413";
  450. oParam.service = "acquaintanceapp.PamCtms";
  451. oParam.method = "reqGetProjInfo";
  452. oParam.inds = "req=ds_send";
  453. oParam.outds = "ds_main_projinfo=proj ds_main_reptlist_reptinfo=rept";
  454. oParam.async = false;
  455. tranf_submit(oParam);
  456. }
  457. }
  458. }
  459. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  460. //submit("TRPAM00413");
  461. var oParam = {};
  462. oParam.id = "TRPAM00413";
  463. oParam.service = "acquaintanceapp.PamCtms";
  464. oParam.method = "reqGetProjInfo";
  465. oParam.inds = "req=ds_send";
  466. oParam.outds = "ds_main_projinfo=proj ds_main_reptlist_reptinfo=rept";
  467. oParam.async = false;
  468. tranf_submit(oParam);
  469. //grd_pt.refresh();
  470. //grd_pt.rebuildStyle();
  471. // 추후 작업 필요
  472. // grd_pt.cellStyle("background-image", 1, grd_pt.colRef("sbmtynimg")) = "../../.._com_commonweb_images_check.gif";
  473. // grd_pt.cellStyle("background-image", 1, grd_pt.colRef("applynimg")) = "../../.._com_commonweb_images_check.gif";
  474. }
  475. function grd_rept_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  476. if (e.col < 0 || e.row < 0 ) {
  477. return;
  478. }
  479. // if (grd_rept.row < grd_rept.fixedRows) {
  480. // return;
  481. // }
  482. var row = ds_main_reptlist_reptinfo.rowposition;
  483. ds_send.setColumn( 0, "studycd", ds_main_reptlist_reptinfo.getColumn(row, "studycd"));
  484. ds_send.setColumn( 0, "reptcd", ds_main_reptlist_reptinfo.getColumn(row, "reptcd"));
  485. ds_send.setColumn( 0, "reptseq", ds_main_reptlist_reptinfo.getColumn(row, "seqno"));
  486. ds_main_ptlist_uncoinfo.clearData();
  487. //submit("TRPAM00407");
  488. var oParam = {};
  489. oParam.id = "TRPAM00407";
  490. oParam.service = "acquaintanceapp.PamCtms";
  491. oParam.method = "reqGetRisdUncoList";
  492. oParam.inds = "req=ds_send";
  493. oParam.outds = "ds_main_ptlist_uncoinfo=unco";
  494. oParam.async = false;
  495. tranf_submit(oParam);
  496. }
  497. function btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  498. var stdycd = ds_main_projinfo.getColumn(0, "studycd");
  499. var row = ds_main_reptlist_reptinfo.rowposition;
  500. var bsdd = ds_main_reptlist_reptinfo.getColumn(row, "bsdd");
  501. //var filename = window.fileDialog("save", ",", false, "보고서별 환자 내역_" + stdycd + "_" + bsdd, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  502. //grd_pt.saveExcel(filename, "sheetname:보고서별 환자 내역;col_4:label");
  503. grdf_exportExcel(grd_pt, "보고서별 환자 내역_" + stdycd + "_" + bsdd, "Sheet1", true, "" , 'user' , true);
  504. sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
  505. }
  506. function btn_prt_onclick(obj:Button, e:ClickEventInfo) {
  507. ds_temp_projinfo.clearData();
  508. ds_temp_projinfo.addRow();
  509. ds_temp_projinfo.setColumn( 0, "proj_kind", ds_main_projinfo.getColumn(0, "kind"));
  510. ds_temp_projinfo.setColumn( 0, "proj_kindnm", ds_main_projinfo.getColumn(0, "kindnm"));
  511. ds_temp_projinfo.setColumn( 0, "proj_projcd", ds_main_projinfo.getColumn(0, "projcd"));
  512. ds_temp_projinfo.setColumn( 0, "proj_studycd", ds_main_projinfo.getColumn(0, "studycd"));
  513. ds_temp_projinfo.setColumn( 0, "proj_projnm", ds_main_projinfo.getColumn(0, "projnm"));
  514. ds_temp_projinfo.setColumn( 0, "proj_rshid", ds_main_projinfo.getColumn(0, "rshid"));
  515. ds_temp_projinfo.setColumn( 0, "proj_rshnm", ds_main_projinfo.getColumn(0, "rshnm"));
  516. ds_temp_projinfo.setColumn( 0, "proj_unitcd", ds_main_projinfo.getColumn(0, "unitcd"));
  517. ds_temp_projinfo.setColumn( 0, "proj_unitnm", ds_main_projinfo.getColumn(0, "unitnm"));
  518. ds_temp_projinfo.setColumn( 0, "proj_fromdd", fGetDF4Rpt(ds_main_projinfo.getColumn(0, "fromdd")));
  519. ds_temp_projinfo.setColumn( 0, "proj_todd", fGetDF4Rpt(ds_main_projinfo.getColumn(0, "todd")));
  520. ds_temp_projinfo.setColumn( 0, "proj_projamt", ds_main_projinfo.getColumn(0, "projamt"));
  521. ds_temp_projinfo.setColumn( 0, "proj_remnamt", ds_main_projinfo.getColumn(0, "remnamt"));
  522. ds_temp_projinfo.setColumn( 0, "proj_depoamt", ds_main_projinfo.getColumn(0, "depoamt"));
  523. var row = ds_main_reptlist_reptinfo.rowposition;
  524. ds_temp_reptinfo.clearData();
  525. ds_temp_reptinfo.addRow();
  526. ds_temp_reptinfo.setColumn( 0, "rept_projcd", ds_main_reptlist_reptinfo.getColumn(row, "projcd"));
  527. ds_temp_reptinfo.setColumn( 0, "rept_studycd", ds_main_reptlist_reptinfo.getColumn(row, "studycd"));
  528. ds_temp_reptinfo.setColumn( 0, "rept_subjno", ds_main_reptlist_reptinfo.getColumn(row, "subjno"));
  529. ds_temp_reptinfo.setColumn( 0, "rept_reptcd", ds_main_reptlist_reptinfo.getColumn(row, "reptcd"));
  530. ds_temp_reptinfo.setColumn( 0, "rept_reptnm", ds_main_reptlist_reptinfo.getColumn(row, "reptnm"));
  531. ds_temp_reptinfo.setColumn( 0, "rept_seqno", ds_main_reptlist_reptinfo.getColumn(row, "seqno"));
  532. var status = ds_main_reptlist_reptinfo.getColumn(row, "status");
  533. if (status == "P") {
  534. status = "진행";
  535. } else if (status == "R") {
  536. status = "반려";
  537. } else if (status == "E") {
  538. status = "제출";
  539. } else if (status == "A") {
  540. status = "확인";
  541. }
  542. ds_temp_reptinfo.setColumn( 0, "rept_status", status);
  543. ds_temp_reptinfo.setColumn( 0, "rept_bsdd", fGetDF4Rpt(ds_main_reptlist_reptinfo.getColumn(row, "bsdd")));
  544. ds_temp_reptinfo.setColumn( 0, "rept_sbmtdd", fGetDF4Rpt(ds_main_reptlist_reptinfo.getColumn(row, "sbmtdd")));
  545. ds_temp_reptinfo.setColumn( 0, "rept_bsid", ds_main_reptlist_reptinfo.getColumn(row, "bsid"));
  546. ds_temp_reptinfo.setColumn( 0, "rept_bsnm", ds_main_reptlist_reptinfo.getColumn(row, "bsnm"));
  547. ds_temp_reptinfo.setColumn( 0, "rept_ptcnt", ds_main_reptlist_reptinfo.getColumn(row, "ptcnt"));
  548. ds_temp_reptinfo.setColumn( 0, "rept_clamamt", ds_main_reptlist_reptinfo.getColumn(row, "clamamt"));
  549. ds_temp_ptlist_ptinfo.clearData(); ds_temp_ptlist_ptinfo.addRow();
  550. var cnt = ds_main_ptlist_uncoinfo.rowcount;
  551. ds_temp_ptlist_ptinfo.clearData();
  552. for (var i = 0; i < cnt; i++) {
  553. idx = ds_temp_ptlist_ptinfo.addRow()
  554. ds_temp_ptlist_ptinfo.setColumn( idx, "pid", ds_main_ptlist_uncoinfo.getColumn(i, "pid"));
  555. ds_temp_ptlist_ptinfo.setColumn( idx, "hngnm", ds_main_ptlist_uncoinfo.getColumn(i, "hngnm"));
  556. ds_temp_ptlist_ptinfo.setColumn( idx, "rcptexecdd", fGetDF4Rpt(ds_main_ptlist_uncoinfo.getColumn(i, "rcptexecdd")));
  557. ds_temp_ptlist_ptinfo.setColumn( idx, "orddd", fGetDF4Rpt(ds_main_ptlist_uncoinfo.getColumn(i, "orddd")));
  558. var ordtype = ""//ds_main_ptlist_ptinfo.getColumn(i, "ordtype"); -> model.getValue("/root/main/ptlist/ptinfo[" + i + "]/ordtype"); 없는 노드
  559. if (ordtype == "I") {
  560. ordtype = "입원";
  561. } else if (ordtype == "O") {
  562. ordtype = "외래";
  563. } else if (ordtype == "E") {
  564. ordtype = "응급";
  565. }
  566. ds_temp_ptlist_ptinfo.setColumn( idx, "ordtype", ordtype);
  567. ds_temp_ptlist_ptinfo.setColumn( idx, "orddeptnm", ds_main_ptlist_uncoinfo.getColumn(i, "orddeptnm"));
  568. ds_temp_ptlist_ptinfo.setColumn( idx, "orddrnm", ds_main_ptlist_uncoinfo.getColumn(i, "orddrnm"));
  569. ds_temp_ptlist_ptinfo.setColumn( idx, "insukindnm", ds_main_ptlist_uncoinfo.getColumn(i, "insukindnm"));
  570. ds_temp_ptlist_ptinfo.setColumn( idx, "suppkindnm", ds_main_ptlist_uncoinfo.getColumn(i, "suppkindnm"));
  571. ds_temp_ptlist_ptinfo.setColumn( idx, "unconm", ds_main_ptlist_uncoinfo.getColumn(i, "unconm"));
  572. ds_temp_ptlist_ptinfo.setColumn( idx, "uncoamt", ds_main_ptlist_uncoinfo.getColumn(i, "remnamt"));
  573. ds_temp_ptlist_ptinfo.setColumn( idx, "clamamt", ds_main_ptlist_uncoinfo.getColumn(i, "clamamt"));
  574. }
  575. var objDOM = rptf_createDOM();
  576. var objParam = new Object();
  577. rptf_setNodeListToDOM(objDOM, "root/temp/ptlist/ptinfo" , ds_temp_ptlist_ptinfo);
  578. rptf_setNodeListToDOM(objDOM, "root/temp/reptinfo" , ds_temp_reptinfo);
  579. rptf_setNodeListToDOM(objDOM, "root/temp/projinfo" , ds_temp_projinfo);
  580. objParam.xml_data_XML1 = objDOM.documentElement.source;
  581. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  582. rptf_exeReportPreview30(["RPPAM00403"],[objParam], option);
  583. }
  584. ]]></Script>
  585. </Form>
  586. </FDL>