SMLLP02000_외주검사청구서.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLP02000" position="absolute 0 0 1256 805" titletext="검사 청구서" onload="SMLLP02000_onload" oninit="SMLLP02000_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="검사 청구서" class="tit_1" position="absolute 0 0 124 25"/>
  8. <Grid id="grd_patlist" taborder="8" useinputpanel="false" position="absolute 740 96 1256 283" autofittype="col" anchor="left top right" binddataset="ds_grid_grd_patlist" cellsizingtype="col">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="30"/>
  13. <Column size="110"/>
  14. <Column size="60"/>
  15. <Column size="60"/>
  16. <Column size="80"/>
  17. <Column size="115"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="22" band="head"/>
  21. <Row size="20"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell/>
  25. <Cell col="1" style="font:arial,9,bold;" text="접수일"/>
  26. <Cell col="2" style="font:arial,9,bold;" text="수거자"/>
  27. <Cell col="3" style="font:arial,9,bold;" text="환자명"/>
  28. <Cell col="4" style="font:arial,9,bold;" text="등록번호"/>
  29. <Cell col="5" style="font:arial,9,bold;" text="샘플번호"/>
  30. </Band>
  31. <Band id="body">
  32. <Cell celltype="head" expr="expr:currow+1"/>
  33. <Cell col="1" style="align:center middle;" text="bind:spcacptdt" mask="expr:spcacptdt==null?'':'####-##-##'"/>
  34. <Cell col="2" style="align:left middle;" text="bind:spcapctnm"/>
  35. <Cell col="3" style="align:left middle;" text="bind:patnm"/>
  36. <Cell col="4" style="align:left middle;" text="bind:pid"/>
  37. <Cell col="5" style="align:left middle;" text="bind:bcno"/>
  38. </Band>
  39. </Format>
  40. </Formats>
  41. </Grid>
  42. <Static id="caption9" text="외주업체 내역서" class="tit_2" position="absolute 740 77 871 97"/>
  43. <Button id="button2" taborder="9" text="엑셀" onlbuttonup="button2_onlbuttonup" class="btn7" position="absolute 678 74 730 94"/>
  44. <Grid id="grd_datagrid2" taborder="10" useinputpanel="false" position="absolute 0 97 730 284" autofittype="col" binddataset="ds_grid_grd_datagrid2" summarytype="top" cellsizingtype="col">
  45. <Formats>
  46. <Format id="default">
  47. <Columns>
  48. <Column size="30"/>
  49. <Column size="85"/>
  50. <Column size="70"/>
  51. <Column size="89"/>
  52. <Column size="115"/>
  53. <Column size="115"/>
  54. <Column size="90"/>
  55. <Column size="90"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="22" band="head"/>
  59. <Row size="20"/>
  60. <Row size="24" band="summ"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell/>
  64. <Cell col="1" style="font:arial,9,bold;" text="시행부서"/>
  65. <Cell col="2" style="font:arial,9,bold;" text="건수"/>
  66. <Cell col="3" style="font:arial,9,bold;" text="총단가"/>
  67. <Cell col="4" style="font:arial,9,bold;" text="총계약가"/>
  68. <Cell col="5" style="font:arial,9,bold;" text="차액"/>
  69. <Cell col="6" style="font:arial,9,bold;" text=" 일반가격"/>
  70. <Cell col="7" style="font:arial,9,bold;" text="보험가격"/>
  71. </Band>
  72. <Band id="body">
  73. <Cell celltype="head" expr="expr:currow+1"/>
  74. <Cell col="1" style="align:left middle;" text="bind:sectnm"/>
  75. <Cell col="2" displaytype="number" style="align:right middle;" text="bind:tclscount" mask="@,@@@"/>
  76. <Cell col="3" displaytype="number" style="align:right middle;" text="bind:totalpay" mask="@,@@@.@@"/>
  77. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:totalpay2" mask="@,@@@.@@"/>
  78. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:margin" mask="@,@@@.@@"/>
  79. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:gpay" mask="@,@@@.@@"/>
  80. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:ipay" mask="@,@@@.@@"/>
  81. </Band>
  82. <Band id="summary">
  83. <Cell/>
  84. <Cell col="1" style="align:left;"/>
  85. <Cell col="2" style="align:right;"/>
  86. <Cell col="3" displaytype="number" style="align:right;"/>
  87. <Cell col="4" displaytype="number" style="align:right;"/>
  88. <Cell col="5" displaytype="number" style="align:right;"/>
  89. <Cell col="6" displaytype="number" style="align:right;"/>
  90. <Cell col="7" displaytype="number" style="align:right;"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Static id="caption8" text="부서별 청구 총액" class="tit_2" position="absolute 0 77 131 97"/>
  96. <Static id="caption1" text="청구서 상세내역" class="tit_2" position="absolute 0 294 131 314"/>
  97. <Grid id="grd_datagrid1" taborder="11" useinputpanel="false" position="absolute 0 314 1256 805" autofittype="col" anchor="all" binddataset="ds_grid_grd_datagrid1" oncelldblclick="grd_datagrid1_oncelldblclick" summarytype="top" cellsizingtype="col">
  98. <Formats>
  99. <Format id="default">
  100. <Columns>
  101. <Column size="30"/>
  102. <Column size="75"/>
  103. <Column size="75"/>
  104. <Column size="230"/>
  105. <Column size="45"/>
  106. <Column size="70"/>
  107. <Column size="70"/>
  108. <Column size="70"/>
  109. <Column size="90"/>
  110. <Column size="110"/>
  111. <Column size="110"/>
  112. <Column size="90"/>
  113. <Column size="90"/>
  114. </Columns>
  115. <Rows>
  116. <Row size="22" band="head"/>
  117. <Row size="20"/>
  118. <Row size="24" band="summ"/>
  119. </Rows>
  120. <Band id="head">
  121. <Cell/>
  122. <Cell col="1" style="font:arial,9,bold;" text="검사코드"/>
  123. <Cell col="2" style="font:arial,9,bold;" text="시행부서"/>
  124. <Cell col="3" style="font:arial,9,bold;" text="검사명"/>
  125. <Cell col="4" style="font:arial,9,bold;" text="유형"/>
  126. <Cell col="5" style="font:arial,9,bold;" text="단가"/>
  127. <Cell col="6" style="font:arial,9,bold;" text="계약가"/>
  128. <Cell col="7" style="font:arial,9,bold;" text="건수"/>
  129. <Cell col="8" style="font:arial,9,bold;" text="총단가"/>
  130. <Cell col="9" style="font:arial,9,bold;" text="총계약가"/>
  131. <Cell col="10" style="font:arial,9,bold;" text="차액"/>
  132. <Cell col="11" style="font:arial,9,bold;" text=" 일반가격"/>
  133. <Cell col="12" style="font:arial,9,bold;" text="보험가격"/>
  134. </Band>
  135. <Band id="body">
  136. <Cell celltype="head" expr="expr:currow+1"/>
  137. <Cell col="1" style="align:left;" text="bind:tclscd"/>
  138. <Cell col="2" style="align:left middle;" text="bind:sectnm"/>
  139. <Cell col="3" style="align:left middle;" text="bind:tclsscrnnm"/>
  140. <Cell col="4" style="align:center middle;" text="bind:gbn"/>
  141. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:pay" mask="@,@@@.@@"/>
  142. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:pay2" mask="@,@@@.@@"/>
  143. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:tclscount" mask="@,@@@"/>
  144. <Cell col="8" displaytype="number" style="align:right middle;" text="bind:totalpay" mask="@,@@@.@@"/>
  145. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:totalpay2" mask="@,@@@.@@"/>
  146. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:margin" mask="@,@@@.@@"/>
  147. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:gpay" mask="@,@@@.@@"/>
  148. <Cell col="12" displaytype="number" style="align:right middle;" text="bind:ipay" mask="@,@@@.@@"/>
  149. </Band>
  150. <Band id="summary">
  151. <Cell/>
  152. <Cell col="1" displaytype="text"/>
  153. <Cell col="2" displaytype="text"/>
  154. <Cell col="3" displaytype="text" style="align:left;"/>
  155. <Cell col="4" displaytype="text"/>
  156. <Cell col="5" displaytype="number" style="align:right;"/>
  157. <Cell col="6" displaytype="number" style="align:right;"/>
  158. <Cell col="7" displaytype="number" style="align:right;"/>
  159. <Cell col="8" displaytype="number" style="align:right;"/>
  160. <Cell col="9" displaytype="number" style="align:right;"/>
  161. <Cell col="10" displaytype="number" style="align:right;"/>
  162. <Cell col="11" displaytype="number" style="align:right;"/>
  163. <Cell col="12" displaytype="number" style="align:right;"/>
  164. </Band>
  165. </Format>
  166. </Formats>
  167. </Grid>
  168. <Button id="btn_excel" taborder="12" text="엑셀" onlbuttonup="btn_excel_onlbuttonup" class="btn7" position="absolute 1204 290 1256 310" anchor="top right"/>
  169. <Div id="grp_sea" taborder="13" style="align:center top;" position="absolute 0 25 1256 67" anchor="left top right" class="div_SA">
  170. <Layouts>
  171. <Layout>
  172. <Static id="caption3" text="의뢰월" class="search_name" position="absolute 608 10 663 30" anchor="default"/>
  173. <Combo id="combo3" taborder="1" position="absolute 484 10 584 30" anchor="default" innerdataset="@ds_cond_code5" codecolumn="value" datacolumn="label" index="-1"/>
  174. <Static id="caption4" text="시점기준" class="search_name" position="absolute 408 10 476 30" anchor="default"/>
  175. <Combo id="combo1" taborder="2" position="absolute 284 10 384 30" anchor="default" innerdataset="@ds_init_lb0110" codecolumn="cd" datacolumn="nm"/>
  176. <Static id="caption2" text="외주업체" class="search_name" position="absolute 208 10 276 30" anchor="default"/>
  177. <Combo id="combo4" taborder="3" position="absolute 84 10 184 30" anchor="default" innerdataset="@ds_init_lb0111" codecolumn="cd" datacolumn="nm"/>
  178. <Static id="caption7" text="시행부서" class="search_name" position="absolute 8 10 76 30" anchor="default"/>
  179. <Static id="caption5" text="보험선택" class="search_name" position="absolute 795 10 863 30" anchor="default"/>
  180. <Combo id="combo2" taborder="4" position="absolute 871 10 971 30" anchor="default" innerdataset="@ds_cond_code3" codecolumn="value" datacolumn="label" index="-1"/>
  181. <Button id="button1" taborder="5" text="조회" class="btn1" position="absolute 1118 10 1174 30" anchor="top right" onclick="grp_sea_button1_onclick"/>
  182. <Button id="button5" taborder="6" text="초기화" onclick="button5_onclick" class="btn4" position="absolute 1177 10 1245 30" anchor="top right"/>
  183. <Calendar id="Calendar00" taborder="8" position="absolute 676 10 753 30" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
  184. </Layout>
  185. </Layouts>
  186. </Div>
  187. </Layout>
  188. </Layouts>
  189. <Objects>
  190. <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="cd" type="STRING" size="256"/>
  193. <Column id="nm" type="STRING" size="256"/>
  194. <Column id="etc01" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_init_lb0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="cd" type="STRING" size="256"/>
  200. <Column id="nm" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. </Dataset>
  203. <Dataset id="ds_init_lb0108" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="cd" type="STRING" size="256"/>
  206. <Column id="nm" type="STRING" size="256"/>
  207. </ColumnInfo>
  208. </Dataset>
  209. <Dataset id="ds_init_lb0109" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="cd" type="STRING" size="256"/>
  212. <Column id="nm" type="STRING" size="256"/>
  213. </ColumnInfo>
  214. </Dataset>
  215. <Dataset id="ds_init_lb0110" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="cd" type="STRING" size="256"/>
  218. <Column id="nm" type="STRING" size="256"/>
  219. </ColumnInfo>
  220. </Dataset>
  221. <Dataset id="ds_init_lb0210" 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"/>
  224. <Column id="nm" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. </Dataset>
  227. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  228. <ColumnInfo>
  229. <Column id="cd" type="STRING" size="256"/>
  230. <Column id="nm" type="STRING" size="256"/>
  231. </ColumnInfo>
  232. </Dataset>
  233. <Dataset id="ds_init_lb0124" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="cd" type="STRING" size="256"/>
  236. <Column id="nm" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. </Dataset>
  239. <Dataset id="ds_init_lb1005" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  240. <ColumnInfo>
  241. <Column id="cd" type="STRING" size="256"/>
  242. <Column id="nm" type="STRING" size="256"/>
  243. </ColumnInfo>
  244. </Dataset>
  245. <Dataset id="ds_init_lb0128" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="cd" type="STRING" size="256"/>
  248. <Column id="nm" type="STRING" size="256"/>
  249. </ColumnInfo>
  250. </Dataset>
  251. <Dataset id="ds_cond_code5" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="label" type="STRING" size="256"/>
  254. <Column id="value" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row>
  258. <Col id="label">수거시점</Col>
  259. <Col id="value">R</Col>
  260. </Row>
  261. <Row>
  262. <Col id="label">통보시점</Col>
  263. <Col id="value">N</Col>
  264. </Row>
  265. </Rows>
  266. </Dataset>
  267. <Dataset id="ds_cond_code3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  268. <ColumnInfo>
  269. <Column id="label" type="STRING" size="256"/>
  270. <Column id="value" type="STRING" size="256"/>
  271. </ColumnInfo>
  272. <Rows>
  273. <Row>
  274. <Col id="label">-전체-</Col>
  275. <Col id="value"/>
  276. </Row>
  277. <Row>
  278. <Col id="label">일반</Col>
  279. <Col id="value">G</Col>
  280. </Row>
  281. <Row>
  282. <Col id="label">보험</Col>
  283. <Col id="value">I</Col>
  284. </Row>
  285. </Rows>
  286. </Dataset>
  287. <Dataset id="ds_grid_grd_datagrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  288. <ColumnInfo>
  289. <column id="sectnm" type="STRING" size="256"/>
  290. <column id="tclscount" type="STRING" size="256"/>
  291. <column id="totalpay" type="STRING" size="256"/>
  292. <column id="totalpay2" type="STRING" size="256"/>
  293. <column id="margin" type="STRING" size="256"/>
  294. <column id="gpay" type="STRING" size="256"/>
  295. <column id="ipay" type="STRING" size="256"/>
  296. </ColumnInfo>
  297. </Dataset>
  298. <Dataset id="ds_grid_grd_patlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  299. <ColumnInfo>
  300. <column id="spcacptdt" type="STRING" size="256"/>
  301. <column id="spcapctnm" type="STRING" size="256"/>
  302. <column id="patnm" type="STRING" size="256"/>
  303. <column id="pid" type="STRING" size="256"/>
  304. <column id="bcno" type="STRING" size="256"/>
  305. </ColumnInfo>
  306. </Dataset>
  307. <Dataset id="ds_grid_grd_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  308. <ColumnInfo>
  309. <column id="tclscd" type="STRING" size="256"/>
  310. <column id="sectnm" type="STRING" size="256"/>
  311. <column id="tclsscrnnm" type="STRING" size="256"/>
  312. <column id="gbn" type="STRING" size="256"/>
  313. <column id="pay" type="STRING" size="256"/>
  314. <column id="pay2" type="STRING" size="256"/>
  315. <column id="tclscount" type="STRING" size="256"/>
  316. <column id="totalpay" type="STRING" size="256"/>
  317. <column id="totalpay2" type="STRING" size="256"/>
  318. <column id="margin" type="STRING" size="256"/>
  319. <column id="gpay" type="STRING" size="256"/>
  320. <column id="ipay" type="STRING" size="256"/>
  321. </ColumnInfo>
  322. </Dataset>
  323. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  324. <ColumnInfo>
  325. <Column id="code1" type="STRING" size="256"/>
  326. <Column id="code2" type="STRING" size="256"/>
  327. <Column id="code3" type="STRING" size="256"/>
  328. <Column id="code4" type="STRING" size="256"/>
  329. <Column id="code5" type="STRING" size="256"/>
  330. <Column id="code6" type="STRING" size="256"/>
  331. </ColumnInfo>
  332. <Rows>
  333. <Row>
  334. <Col id="code1">00</Col>
  335. <Col id="code6">00</Col>
  336. <Col id="code5">R</Col>
  337. </Row>
  338. </Rows>
  339. </Dataset>
  340. </Objects>
  341. <Bind>
  342. <BindItem id="item0" compid="grp_sea.combo2" propid="value" datasetid="ds_hidden_ref" columnid="code3"/>
  343. <BindItem id="item1" compid="grp_sea.combo3" propid="value" datasetid="ds_hidden_ref" columnid="code5"/>
  344. <BindItem id="item2" compid="grp_sea.combo1" propid="value" datasetid="ds_hidden_ref" columnid="code1"/>
  345. <BindItem id="item3" compid="grp_sea.combo4" propid="value" datasetid="ds_hidden_ref" columnid="code6"/>
  346. <BindItem id="item4" compid="grp_sea.Calendar00" propid="value" datasetid="ds_hidden_ref" columnid="code2"/>
  347. </Bind>
  348. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  349. * System Name :
  350. * Job Name :
  351. * Creator :
  352. * Make Date : 2015-05-01
  353. * Description :
  354. *---------------------------------------------------------------------------------------
  355. * Modify Date Modifier Modify Description
  356. *---------------------------------------------------------------------------------------
  357. * 2015-05-01 Live Converter TF->XP
  358. *
  359. *---------------------------------------------------------------------------------------
  360. ****************************************************************************************/
  361. include "com_commonxp::comm_main.xjs";
  362. include "lis_commonxp::LZZ001.xjs";
  363. include "lis_commonxp::LLZ001.xjs";
  364. function model1_oninit(obj:Form, e:InitEventInfo)
  365. {
  366. //폼 초기화 함수
  367. frmf_initForm(obj);
  368. fSet(); //초기화 함수 호출
  369. }
  370. function SMLLP02000_oninit(obj:Form, e:InitEventInfo)
  371. {
  372. frmf_initForm(obj);
  373. }
  374. function SMLLP02000_onload(obj:Form, e:LoadEventInfo)
  375. {
  376. ds_grid_grd_datagrid1.clearData();
  377. ds_grid_grd_datagrid2.clearData();
  378. ds_grid_grd_patlist.clearData();
  379. //0106 시행부서 // 0105 검체 // 0111 계
  380. lf_getDbDeptcd("0000|0110|0106|0108|0109|0111|0210|0124|1005|0128|","cbf_SMLLP02000");
  381. fSet();
  382. }
  383. //날짜
  384. function fSet()
  385. {
  386. var toDay = utlf_getCurrentDate();
  387. var toDays = toDay.substr(0, 6);
  388. ds_hidden_ref.setColumn(0, "code2", toDays);
  389. }
  390. //초기화
  391. function fSetInit()
  392. {
  393. ds_grid_grd_datagrid1.clearData();
  394. ds_grid_grd_datagrid2.clearData();
  395. ds_grid_grd_patlist.clearData();
  396. }
  397. //조회
  398. function fgetListBills()
  399. {
  400. var code1 = ds_hidden_ref.getColumn(0, "code1"); //외주업체
  401. var code2 = ds_hidden_ref.getColumn(0, "code2"); //의뢰월
  402. var code3 = ds_hidden_ref.getColumn(0, "code3"); //보험선택
  403. var code5 = ds_hidden_ref.getColumn(0, "code5"); //시점기준
  404. var code6 = ds_hidden_ref.getColumn(0, "code6"); //시행부서
  405. var check = ""; //체크박스
  406. var sInDsName = dsf_createDsRow("ds_temp_search3", [{col : "code1", val:code1 }
  407. , {col : "code2", val:code2 }
  408. , {col : "code3", val:code3 }
  409. , {col : "code5", val:code5 }
  410. , {col : "code6", val:code6 }
  411. , {col : "check", val:check }]);
  412. var oParam = {};
  413. oParam.id = "TRLLP02001";
  414. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  415. oParam.method = "reqGetListBills";
  416. oParam.inds = "cond="+sInDsName;
  417. oParam.outds = "ds_grid_grd_datagrid1=getListBills";
  418. oParam.async = false;
  419. //oParam.callback = "cbf_SMLLP02000";
  420. tranf_submit(oParam);
  421. }
  422. //조회2
  423. function fgetListBills1()
  424. {
  425. var code1 = ds_hidden_ref.getColumn(0, "code1"); //외주업체
  426. var code2 = ds_hidden_ref.getColumn(0, "code2"); //의뢰월
  427. var code3 = ds_hidden_ref.getColumn(0, "code3"); //보험선택
  428. var code5 = ds_hidden_ref.getColumn(0, "code5"); //시점기준
  429. var code6 = ds_hidden_ref.getColumn(0, "code6"); //시행부서
  430. var check = ""; //체크박스
  431. trace("code2 = " + code2);
  432. var sInDsName = dsf_createDsRow("ds_temp_search1", [{col : "code1", val:code1 }
  433. , {col : "code2", val:code2 }
  434. , {col : "code3", val:code3 }
  435. , {col : "code5", val:code5 }
  436. , {col : "code6", val:code6 }
  437. , {col : "check", val:check }]);
  438. var oParam = {};
  439. oParam.id = "TRLLP02003";
  440. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  441. oParam.method = "getListBills1";
  442. oParam.inds = "cond="+sInDsName;
  443. oParam.outds = "ds_grid_grd_datagrid2=getListBills1";
  444. oParam.async = false;
  445. //oParam.callback = "cbf_SMLLP02000";
  446. tranf_submit(oParam);
  447. fgetListBills();
  448. }
  449. function fClickResultList()
  450. {
  451. var row = ds_grid_grd_datagrid1.rowposition;
  452. ds_hidden_ref.setColumn(0, "code4", ds_grid_grd_datagrid1.getColumn(row, "tclscd"));
  453. dsf_createDs("ds_send_data1");
  454. ds_send_data1.copyData(ds_hidden_ref);
  455. var oParam = {};
  456. oParam.id = "TRLLP02002";
  457. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  458. oParam.method = "reqGetBills";
  459. oParam.inds = "cond=ds_send_data1";
  460. oParam.outds = "ds_grid_grd_patlist=getBills";
  461. oParam.async = false;
  462. oParam.callback = "cbf_SMLLP02000";
  463. tranf_submit(oParam);
  464. }
  465. // 엑셀 저장
  466. function fExeExcel(pGridId)
  467. {
  468. if(pGridId.name == "grd_datagrid1")
  469. {
  470. grdf_exportExcel(pGridId, lf_lisGetTitle(this) + "_" + "청구서 상세내역" , "sheet1", false);
  471. }
  472. else if(pGridId.name == "grd_datagrid2")
  473. {
  474. grdf_exportExcel(pGridId, lf_lisGetTitle(this) + "_" + "부서별청구총액" , "sheet1", false);
  475. }
  476. }
  477. // style 설정(Expr)
  478. function lf_setStyle() {
  479. }
  480. // callback 함수
  481. function cbf_SMLLP02000(strSvcID, nErrorCode, strErrorMag)
  482. {
  483. if(nErrorCode != 0)
  484. {
  485. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  486. }
  487. else
  488. {
  489. switch(strSvcID)
  490. {
  491. case "TRLZZ00101":
  492. fSet();
  493. grp_sea.combo4.index = 0;
  494. grp_sea.combo1.index = 0;
  495. grp_sea.combo3.index = 0;
  496. grp_sea.combo2.index = 0;
  497. break;
  498. case "TRLLP02001":
  499. lf_setStyle();
  500. grd_datagrid2.setCellProperty("Summ", 0, "text", "0");
  501. if(utlf_isNull(ds_grid_grd_datagrid2.getColumn(0, "sectnm")))
  502. {
  503. grd_datagrid2.setCellProperty("Summ", 1, "text", "");
  504. }
  505. else
  506. {
  507. grd_datagrid2.setCellProperty("Summ", 1, "text", ds_grid_grd_datagrid2.getColumn(0, "sectnm"));
  508. }
  509. if(utlf_isNull(ds_grid_grd_datagrid2.getColumn(0, "tclscount")))
  510. {
  511. grd_datagrid2.setCellProperty("Summ", 2, "text", "0");
  512. }
  513. else
  514. {
  515. grd_datagrid2.setCellProperty("Summ", 2, "text", ds_grid_grd_datagrid2.getColumn(0, "tclscount"));
  516. }
  517. if(utlf_isNull(ds_grid_grd_datagrid2.getColumn(0, "totalpay")))
  518. {
  519. grd_datagrid2.setCellProperty("Summ", 3, "text", "0");
  520. }
  521. else
  522. {
  523. grd_datagrid2.setCellProperty("Summ", 3, "text", ds_grid_grd_datagrid2.getColumn(0, "totalpay"));
  524. }
  525. if(utlf_isNull(ds_grid_grd_datagrid2.getColumn(0, "totalpay2")))
  526. {
  527. grd_datagrid2.setCellProperty("Summ", 4, "text", "0");
  528. }
  529. else
  530. {
  531. grd_datagrid2.setCellProperty("Summ", 4, "text", ds_grid_grd_datagrid2.getColumn(0, "totalpay2"));
  532. }
  533. if(utlf_isNull(ds_grid_grd_datagrid2.getColumn(0, "margin")))
  534. {
  535. grd_datagrid2.setCellProperty("Summ", 5, "text", "0");
  536. }
  537. else
  538. {
  539. grd_datagrid2.setCellProperty("Summ", 5, "text", ds_grid_grd_datagrid2.getColumn(0, "margin"));
  540. }
  541. if(utlf_isNull(ds_grid_grd_datagrid2.getColumn(0, "gpay")))
  542. {
  543. grd_datagrid2.setCellProperty("Summ", 6, "text", "0");
  544. }
  545. else
  546. {
  547. grd_datagrid2.setCellProperty("Summ", 6, "text", ds_grid_grd_datagrid2.getColumn(0, "gpay"));
  548. }
  549. if(utlf_isNull(ds_grid_grd_datagrid2.getColumn(0, "ipay")))
  550. {
  551. grd_datagrid2.setCellProperty("Summ", 7, "text", "0");
  552. }
  553. else
  554. {
  555. grd_datagrid2.setCellProperty("Summ", 7, "text", ds_grid_grd_datagrid2.getColumn(0, "ipay"));
  556. }
  557. ds_grid_grd_datagrid2.deleteRow(0);
  558. break;
  559. case "TRLLP02002":
  560. break;
  561. case "TRLLP02003":
  562. fgetListBills();
  563. grd_datagrid1.setCellProperty("Summ", 0, "text", "0");
  564. grd_datagrid1.setCellProperty("Summ", 1, "text", ds_grid_grd_datagrid1.getColumn(0, "tclscd"));
  565. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "sectnm")))
  566. {
  567. grd_datagrid1.setCellProperty("Summ", 2, "text", "");
  568. }
  569. else
  570. {
  571. grd_datagrid1.setCellProperty("Summ", 2, "text", ds_grid_grd_datagrid1.getColumn(0, "sectnm"));
  572. }
  573. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "tclsscrnnm")))
  574. {
  575. grd_datagrid1.setCellProperty("Summ", 3, "text", "");
  576. }
  577. else
  578. {
  579. grd_datagrid1.setCellProperty("Summ", 3, "text", ds_grid_grd_datagrid1.getColumn(0, "tclsscrnnm"));
  580. }
  581. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "gbn")))
  582. {
  583. grd_datagrid1.setCellProperty("Summ", 4, "text", "");
  584. }
  585. else
  586. {
  587. grd_datagrid1.setCellProperty("Summ", 4, "text", ds_grid_grd_datagrid1.getColumn(0, "gbn"));
  588. }
  589. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "pay")))
  590. {
  591. grd_datagrid1.setCellProperty("Summ", 5, "text", "0");
  592. }
  593. else
  594. {
  595. grd_datagrid1.setCellProperty("Summ", 5, "text", ds_grid_grd_datagrid1.getColumn(0, "pay"));
  596. }
  597. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "pay2")))
  598. {
  599. grd_datagrid1.setCellProperty("Summ", 6, "text", "0");
  600. }
  601. else
  602. {
  603. grd_datagrid1.setCellProperty("Summ", 6, "text", ds_grid_grd_datagrid1.getColumn(0, "pay2"));
  604. }
  605. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "tclscount")))
  606. {
  607. grd_datagrid1.setCellProperty("Summ", 7, "text", "0");
  608. }
  609. else
  610. {
  611. grd_datagrid1.setCellProperty("Summ", 7, "text", ds_grid_grd_datagrid1.getColumn(0, "tclscount"));
  612. }
  613. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "totalpay")))
  614. {
  615. grd_datagrid1.setCellProperty("Summ", 8, "text", "0");
  616. }
  617. else
  618. {
  619. grd_datagrid1.setCellProperty("Summ", 8, "text", ds_grid_grd_datagrid1.getColumn(0, "totalpay"));
  620. }
  621. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "totalpay2")))
  622. {
  623. grd_datagrid1.setCellProperty("Summ", 9, "text", "0");
  624. }
  625. else
  626. {
  627. grd_datagrid1.setCellProperty("Summ", 9, "text", ds_grid_grd_datagrid1.getColumn(0, "totalpay2"));
  628. }
  629. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "margin")))
  630. {
  631. grd_datagrid1.setCellProperty("Summ", 10, "text", "0");
  632. }
  633. else
  634. {
  635. grd_datagrid1.setCellProperty("Summ", 10, "text", ds_grid_grd_datagrid1.getColumn(0, "margin"));
  636. }
  637. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "gpay")))
  638. {
  639. grd_datagrid1.setCellProperty("Summ", 11, "text", "0");
  640. }
  641. else
  642. {
  643. grd_datagrid1.setCellProperty("Summ", 11, "text", ds_grid_grd_datagrid1.getColumn(0, "gpay"));
  644. }
  645. if(utlf_isNull(ds_grid_grd_datagrid1.getColumn(0, "ipay")))
  646. {
  647. grd_datagrid1.setCellProperty("Summ", 12, "text", "0");
  648. }
  649. else
  650. {
  651. grd_datagrid1.setCellProperty("Summ", 12, "text", ds_grid_grd_datagrid1.getColumn(0, "ipay"));
  652. }
  653. ds_grid_grd_datagrid1.deleteRow(0);
  654. break;
  655. default:
  656. break;
  657. }
  658. }
  659. }
  660. //조회버튼
  661. function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  662. {
  663. fSetInit();
  664. fgetListBills1();
  665. }
  666. //청구서 상세내역
  667. function grd_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  668. {
  669. fClickResultList();
  670. }
  671. //청구서 상세내역 엑셀 버튼
  672. function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
  673. {
  674. fExeExcel(grd_datagrid1);
  675. }
  676. //부서별청구총액 엑셀버튼
  677. function button2_onlbuttonup(obj:Button, e:MouseEventInfo)
  678. {
  679. fExeExcel(grd_datagrid2);
  680. }
  681. //초기화
  682. function button5_onclick(obj:Button, e:ClickEventInfo)
  683. {
  684. fSet();
  685. }]]></Script>
  686. </Form>
  687. </FDL>