SMLLP02400_채혈접수취소내역조회.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLP02400" position="absolute 0 0 1266 818" titletext="채혈접수취소내역조회" oninit="model1_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 25 1257 805" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Div id="group1" position="absolute 1 3 1257 70" anchor="left top right" class="div_SA" positiontype="position">
  11. <Layouts>
  12. <Layout width="1256" height="67">
  13. <Button id="btn_search" class="btn1" position="absolute 1118 10 1174 30" anchor="top right" text="조회" onlbuttonup="btn_search_onlbuttonup" onclick="group3_group1_btn_search_onclick" positiontype="position"/>
  14. <Static id="caption3" position="absolute 185 12 200 29" anchor="left top" text="~" positiontype="position"/>
  15. <Calendar id="ipt_cncldts" class="input_search" position="absolute 82 10 182 30" anchor="left top" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  16. <Calendar id="ipt_cncldte" class="input_search" position="absolute 198 10 298 30" anchor="left top" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  17. <Static id="cap_rgstdd" class="search_name" position="absolute 8 10 76 30" anchor="left top" text="취소일자" positiontype="position"/>
  18. <Static id="caption1" class="search_name" position="absolute 526 10 612 30" anchor="left top" text="시행부서" positiontype="position"/>
  19. <Combo id="cmb_testgbn" position="absolute 600 10 690 30" anchor="left top" innerdataset="@ds_testgbn" codecolumn="value" datacolumn="label" index="0" value="1" text="대분류" onitemchanged="group3_group1_cmb_testgbn_onitemchanged" positiontype="position"/>
  20. <Combo id="cmb_testmdl" visible="false" position="absolute 693 10 818 30" anchor="left top" innerdataset="@ds_init_lb0106" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  21. <Combo id="cmb_testlrg" position="absolute 693 10 818 30" anchor="left top" innerdataset="@ds_init_lb0111" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  22. <Static id="caption2" class="search_name" position="absolute 322 10 408 30" anchor="left top" text="처리구분" positiontype="position"/>
  23. <Combo id="cmb_cnclkind" position="absolute 397 10 502 30" anchor="left top" innerdataset="@ds_cnclkind" codecolumn="value" datacolumn="label" index="0" value="00" text="전체" positiontype="position"/>
  24. <Static id="caption7" class="search_name" position="absolute 526 35 612 55" anchor="left top" text="조회구분" positiontype="position"/>
  25. <Combo id="combo1" position="absolute 600 35 690 55" anchor="left top" innerdataset="@ds_code" codecolumn="value" datacolumn="label" index="0" value="1" text="환자번호" onitemchanged="group3_group1_combo1_onitemchanged" positiontype="position"/>
  26. <Edit id="input1" position="absolute 693 34 800 54" anchor="left top" onkeydown="group3_group1_input1_onkeydown" inputmode="upper" positiontype="position"/>
  27. <Static id="caption8" class="search_name" position="absolute 322 35 408 55" anchor="left top" text="처방구분" positiontype="position"/>
  28. <Combo id="combo2" position="absolute 397 35 502 55" anchor="left top" innerdataset="@ds_prcpgenrflag" codecolumn="value" datacolumn="label" index="0" value="00" text="전체" positiontype="position"/>
  29. <Button id="btn_clear" taborder="1" text="초기화" onlbuttonup="btn_clear_onlbuttonup" class="btn3" position="absolute 1176 10 1244 30" anchor="top right"/>
  30. </Layout>
  31. </Layouts>
  32. </Div>
  33. <Static id="caption4" class="tit_2" position="absolute 2 77 146 97" anchor="default" text="채혈/접수 취소내역" positiontype="position"/>
  34. <Grid id="grd_cncllist" position="absolute 0 97 1256 492" anchor="left top right" binddataset="ds_grid_grd_cncllist" positiontype="position" autofittype="none" cellsizingtype="col">
  35. <Formats>
  36. <Format id="default">
  37. <Columns>
  38. <Column size="30"/>
  39. <Column size="110"/>
  40. <Column size="50"/>
  41. <Column size="110"/>
  42. <Column size="50"/>
  43. <Column size="110"/>
  44. <Column size="50"/>
  45. <Column size="76"/>
  46. <Column size="60"/>
  47. <Column size="60"/>
  48. <Column size="60"/>
  49. <Column size="56"/>
  50. <Column size="120"/>
  51. <Column size="90"/>
  52. <Column size="76"/>
  53. <Column size="120"/>
  54. <Column size="0"/>
  55. <Column size="70"/>
  56. <Column size="200"/>
  57. <Column size="70"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="22" band="head"/>
  61. <Row size="20"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell/>
  65. <Cell col="1" text="취소일시"/>
  66. <Cell col="2" text="취소자"/>
  67. <Cell col="3" text="채혈일시"/>
  68. <Cell col="4" text="채혈자"/>
  69. <Cell col="5" text="접수일시"/>
  70. <Cell col="6" text="접수자"/>
  71. <Cell col="7" text="등록번호"/>
  72. <Cell col="8" text="성명"/>
  73. <Cell col="9" text="성별/나이"/>
  74. <Cell col="10" text="의뢰의사"/>
  75. <Cell col="11" text="진료과"/>
  76. <Cell col="12" text="병동/병실"/>
  77. <Cell col="13" text="처방일시"/>
  78. <Cell col="14" text="바코드번호"/>
  79. <Cell col="15" text="검사명"/>
  80. <Cell col="16" text="검체명"/>
  81. <Cell col="17" text="처리구분"/>
  82. <Cell col="18" text="취소사유"/>
  83. <Cell col="19" text="피통보자"/>
  84. </Band>
  85. <Band id="body">
  86. <Cell celltype="head" expr="expr:currow+1"/>
  87. <Cell col="1" text="bind:cncldt" mask="expr:cncldt!=null?'@@@@-@@-@@ @@:@@':''"/>
  88. <Cell col="2" style="align:left;" text="bind:cnclid"/>
  89. <Cell col="3" text="bind:bcolldt" mask="expr:bcolldt!=null?'@@@@-@@-@@ @@:@@':''"/>
  90. <Cell col="4" style="align:left;" text="bind:bcollid"/>
  91. <Cell col="5" text="bind:spcacptdt" mask="expr:spcacptdt!=null?'@@@@-@@-@@ @@:@@':''"/>
  92. <Cell col="6" style="align:left;" text="bind:spcacptid"/>
  93. <Cell col="7" displaytype="text" text="bind:pid"/>
  94. <Cell col="8" style="align:left;" text="bind:patnm"/>
  95. <Cell col="9" text="bind:sexage"/>
  96. <Cell col="10" text="bind:orddrnm"/>
  97. <Cell col="11" text="bind:orddeptnm"/>
  98. <Cell col="12" text="bind:wardroom"/>
  99. <Cell col="13" text="bind:prcpdd" mask="expr:prcpdd!=null?'@@@@-@@-@@':''"/>
  100. <Cell col="14" edittype="none" style="align:left;" text="bind:bcno"/>
  101. <Cell col="15" style="align:left;" text="bind:tclsnm"/>
  102. <Cell col="16" style="align:left;" text="bind:spcnm"/>
  103. <Cell col="17" text="bind:cnclkind"/>
  104. <Cell col="18" style="align:left;" text="bind:cnclcnts"/>
  105. <Cell col="19" text="bind:usernm"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Button id="button2" class="btn7" position="absolute 1199 74 1253 95" anchor="top right" text="엑셀" onlbuttonup="button2_onlbuttonup" positiontype="position"/>
  111. <Grid id="grd_stainfo" position="absolute 0 522 1256 780" style="align:center middle;" anchor="all" binddataset="ds_grid_grd_stainfo" positiontype="position" autosizingtype="none" autoupdatetype="none" autofittype="col" cellsizingtype="col">
  112. <Formats>
  113. <Format id="default">
  114. <Columns>
  115. <Column size="30"/>
  116. <Column size="230"/>
  117. <Column size="45"/>
  118. <Column size="80"/>
  119. <Column size="65"/>
  120. <Column size="65"/>
  121. <Column size="65"/>
  122. <Column size="65"/>
  123. <Column size="65"/>
  124. <Column size="65"/>
  125. <Column size="65"/>
  126. <Column size="65"/>
  127. <Column size="65"/>
  128. <Column size="65"/>
  129. <Column size="65"/>
  130. <Column size="65"/>
  131. </Columns>
  132. <Rows>
  133. <Row size="22" band="head"/>
  134. <Row size="20"/>
  135. </Rows>
  136. <Band id="head">
  137. <Cell/>
  138. <Cell col="1" text="사유내용"/>
  139. <Cell col="2" text="코드"/>
  140. <Cell col="3" text="전체"/>
  141. <Cell col="4" text="1월"/>
  142. <Cell col="5" text="2월"/>
  143. <Cell col="6" text="3월"/>
  144. <Cell col="7" text="4월"/>
  145. <Cell col="8" text="5월"/>
  146. <Cell col="9" text="6월"/>
  147. <Cell col="10" text="7월"/>
  148. <Cell col="11" text="8월"/>
  149. <Cell col="12" text="9월"/>
  150. <Cell col="13" text="10월"/>
  151. <Cell col="14" text="11월"/>
  152. <Cell col="15" text="12월"/>
  153. </Band>
  154. <Band id="body">
  155. <Cell celltype="head" expr="expr:currow+1"/>
  156. <Cell col="1" style="align:left middle;" text="bind:cnclcnts"/>
  157. <Cell col="2" text="bind:cnclcd"/>
  158. <Cell col="3" text="bind:cnt00"/>
  159. <Cell col="4" text="bind:cnt01"/>
  160. <Cell col="5" text="bind:cnt02"/>
  161. <Cell col="6" text="bind:cnt03"/>
  162. <Cell col="7" text="bind:cnt04"/>
  163. <Cell col="8" text="bind:cnt05"/>
  164. <Cell col="9" text="bind:cnt06"/>
  165. <Cell col="10" text="bind:cnt07"/>
  166. <Cell col="11" text="bind:cnt08"/>
  167. <Cell col="12" text="bind:cnt09"/>
  168. <Cell col="13" text="bind:cnt10"/>
  169. <Cell col="14" text="bind:cnt11"/>
  170. <Cell col="15" text="bind:cnt12"/>
  171. </Band>
  172. </Format>
  173. </Formats>
  174. </Grid>
  175. <Static id="caption5" class="tit_2" position="absolute 0 502 175 522" anchor="default" text="채혈/접수 취소건수 조회" positiontype="position"/>
  176. <Button id="btn_ExcelSta" class="btn7" position="absolute 1199 498 1252 519" anchor="top right" text="엑셀" onlbuttonup="btn_ExcelSta_onlbuttonup" positiontype="position"/>
  177. </Layout>
  178. </Layouts>
  179. </Div>
  180. <Static id="caption6" text="채혈/접수 취소내역 조회" class="tit_1" position="absolute 1 2 201 27"/>
  181. </Layout>
  182. </Layouts>
  183. <Objects>
  184. <Dataset id="ds_cnclkind" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="label" type="STRING" size="256"/>
  187. <Column id="value" type="STRING" size="256"/>
  188. </ColumnInfo>
  189. <Rows>
  190. <Row>
  191. <Col id="label">전체</Col>
  192. <Col id="value">00</Col>
  193. </Row>
  194. <Row>
  195. <Col id="label">채혈취소</Col>
  196. <Col id="value">01</Col>
  197. </Row>
  198. <Row>
  199. <Col id="label">접수취소</Col>
  200. <Col id="value">02</Col>
  201. </Row>
  202. <Row>
  203. <Col id="label">채혈접수취소</Col>
  204. <Col id="value">03</Col>
  205. </Row>
  206. <Row>
  207. <Col id="label">검사취소</Col>
  208. <Col id="value">04</Col>
  209. </Row>
  210. <Row>
  211. <Col id="label">POCT취소</Col>
  212. <Col id="value">05</Col>
  213. </Row>
  214. </Rows>
  215. </Dataset>
  216. <Dataset id="ds_testgbn" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  217. <ColumnInfo>
  218. <Column id="label" type="STRING" size="256"/>
  219. <Column id="value" type="STRING" size="256"/>
  220. </ColumnInfo>
  221. <Rows>
  222. <Row>
  223. <Col id="label">대분류</Col>
  224. <Col id="value">1</Col>
  225. </Row>
  226. <Row>
  227. <Col id="label">중분류</Col>
  228. <Col id="value">2</Col>
  229. </Row>
  230. </Rows>
  231. </Dataset>
  232. <Dataset id="ds_prcpgenrflag" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  233. <ColumnInfo>
  234. <Column id="label" type="STRING" size="256"/>
  235. <Column id="value" type="STRING" size="256"/>
  236. </ColumnInfo>
  237. <Rows>
  238. <Row>
  239. <Col id="label">전체</Col>
  240. <Col id="value">00</Col>
  241. </Row>
  242. <Row>
  243. <Col id="label">외래</Col>
  244. <Col id="value">O</Col>
  245. </Row>
  246. <Row>
  247. <Col id="label">건진</Col>
  248. <Col id="value">S</Col>
  249. </Row>
  250. <Row>
  251. <Col id="label">입원</Col>
  252. <Col id="value">I</Col>
  253. </Row>
  254. <Row>
  255. <Col id="label">응급</Col>
  256. <Col id="value">E</Col>
  257. </Row>
  258. <Row>
  259. <Col id="label">DSC</Col>
  260. <Col id="value">D</Col>
  261. </Row>
  262. </Rows>
  263. </Dataset>
  264. <Dataset id="ds_code" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  265. <ColumnInfo>
  266. <Column id="label" type="STRING" size="256"/>
  267. <Column id="value" type="STRING" size="256"/>
  268. </ColumnInfo>
  269. <Rows>
  270. <Row>
  271. <Col id="label">등록번호</Col>
  272. <Col id="value">1</Col>
  273. </Row>
  274. <Row>
  275. <Col id="label">바코드번호</Col>
  276. <Col id="value">2</Col>
  277. </Row>
  278. </Rows>
  279. </Dataset>
  280. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  281. <ColumnInfo>
  282. <Column id="cd" type="STRING" size="256"/>
  283. <Column id="nm" type="STRING" size="256"/>
  284. </ColumnInfo>
  285. </Dataset>
  286. <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  287. <ColumnInfo>
  288. <Column id="cd" type="STRING" size="256"/>
  289. <Column id="nm" type="STRING" size="256"/>
  290. </ColumnInfo>
  291. </Dataset>
  292. <Dataset id="ds_init_lb0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  293. <ColumnInfo>
  294. <Column id="cd" type="STRING" size="256"/>
  295. <Column id="nm" type="STRING" size="256"/>
  296. </ColumnInfo>
  297. </Dataset>
  298. <Dataset id="ds_grid_grd_cncllist" 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="cncldt" type="STRING" size="256"/>
  301. <column id="cnclid" type="STRING" size="256"/>
  302. <column id="bcolldt" type="STRING" size="256"/>
  303. <column id="bcollid" type="STRING" size="256"/>
  304. <column id="spcacptdt" type="STRING" size="256"/>
  305. <column id="spcacptid" type="STRING" size="256"/>
  306. <column id="pid" type="STRING" size="256"/>
  307. <column id="patnm" type="STRING" size="256"/>
  308. <column id="sexage" type="STRING" size="256"/>
  309. <column id="orddrnm" type="STRING" size="256"/>
  310. <column id="orddeptnm" type="STRING" size="256"/>
  311. <column id="wardroom" type="STRING" size="256"/>
  312. <column id="prcpdd" type="STRING" size="256"/>
  313. <column id="bcno" type="STRING" size="256"/>
  314. <column id="tclsnm" type="STRING" size="256"/>
  315. <column id="cnclkind" type="STRING" size="256"/>
  316. <column id="cnclcd" type="STRING" size="256"/>
  317. <column id="cnclcnts" type="STRING" size="256"/>
  318. <column id="usernm" type="STRING" size="256"/>
  319. <Column id="sectcd" type="STRING" size="256"/>
  320. <Column id="tsectcd" type="STRING" size="256"/>
  321. <Column id="spcnm" type="STRING" size="256"/>
  322. </ColumnInfo>
  323. </Dataset>
  324. <Dataset id="ds_grid_grd_stainfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  325. <ColumnInfo>
  326. <column id="cnclcd" type="STRING" size="256"/>
  327. <column id="cnclcnts" type="STRING" size="256"/>
  328. <column id="cnt00" type="STRING" size="256"/>
  329. <column id="cnt01" type="STRING" size="256"/>
  330. <column id="cnt02" type="STRING" size="256"/>
  331. <column id="cnt03" type="STRING" size="256"/>
  332. <column id="cnt04" type="STRING" size="256"/>
  333. <column id="cnt05" type="STRING" size="256"/>
  334. <column id="cnt06" type="STRING" size="256"/>
  335. <column id="cnt07" type="STRING" size="256"/>
  336. <column id="cnt08" type="STRING" size="256"/>
  337. <column id="cnt09" type="STRING" size="256"/>
  338. <column id="cnt10" type="STRING" size="256"/>
  339. <column id="cnt11" type="STRING" size="256"/>
  340. <column id="cnt12" type="STRING" size="256"/>
  341. </ColumnInfo>
  342. </Dataset>
  343. </Objects>
  344. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  345. * System Name :
  346. * Job Name :
  347. * Creator :
  348. * Make Date : 2015-05-01
  349. * Description :
  350. *---------------------------------------------------------------------------------------
  351. * Modify Date Modifier Modify Description
  352. *---------------------------------------------------------------------------------------
  353. * 2015-05-01 Live Converter TF->XP
  354. *
  355. *---------------------------------------------------------------------------------------
  356. ****************************************************************************************/
  357. include "com_commonxp::comm_main.xjs";
  358. include "lis_commonxp::LZZ001.xjs";
  359. include "lis_commonxp::LLZ001.xjs";
  360. include "lis_commonxp::LZZ002.xjs";
  361. include "lis_commonxp::LPZ001.xjs";
  362. function model1_oninit(obj:Form, e:InitEventInfo)
  363. {
  364. //폼 초기화 함수
  365. frmf_initForm(obj);
  366. lf_setInit();
  367. }
  368. function lf_setInit() {
  369. var curDate = utlf_getCurrentDate();
  370. group3.group1.ipt_cncldts.value = curDate;
  371. group3.group1.ipt_cncldte.value = curDate;
  372. // 사용자별 검사그룹
  373. lf_getDbDeptcd("0000|0111|0106|","cbf_SMLLP02400");
  374. }
  375. function lf_getCancelList(){
  376. var cncldts = group3.group1.ipt_cncldts.value; // 취소시작일
  377. var cncldte = group3.group1.ipt_cncldte.value; // 취소종료일
  378. var cnclkind = group3.group1.cmb_cnclkind.value; // 취소구분
  379. var testlrgcd = group3.group1.cmb_testlrg.value; // 대분류
  380. var testmdlcd = group3.group1.cmb_testmdl.value; // 중분류
  381. var prcpgenrflag = group3.group1.combo2.value; // 처방구분
  382. var testgbn = group3.group1.cmb_testgbn.value; // 시행구분
  383. var code = group3.group1.combo1.value; // 조회구분
  384. var select = group3.group1.input1.value; // 조회구분 text
  385. var sInDsName = dsf_createDsRow("ds_temp_search"
  386. , [{col: "cncldts", val:cncldts }
  387. , {col: "cncldte", val:cncldte }
  388. , {col: "cnclkind", val:cnclkind }
  389. , {col: "testlrgcd", val:testlrgcd }
  390. , {col: "testmdlcd", val:testmdlcd }
  391. , {col: "userdeptflagcd", val:lgv_sUserdeptflagcd }
  392. , {col: "testgbn", val:testgbn }
  393. , {col: "code", val:code }
  394. , {col: "select", val:select }
  395. , {col: "prcpgenrflag", val:prcpgenrflag }
  396. ]);
  397. var oParam = {};
  398. oParam.id = "TRLLP02401";
  399. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  400. oParam.method = "reqGetCancelList";
  401. oParam.inds = "cond="+sInDsName;
  402. oParam.outds = "ds_grid_grd_cncllist=cancellist";
  403. oParam.async = false;
  404. oParam.callback = "cbf_SMLLP02400";
  405. tranf_submit(oParam);
  406. var sInDsName = dsf_createDsRow("ds_temp_search"
  407. , [{col: "cncldts", val:cncldts }
  408. , {col: "cncldte", val:cncldte }
  409. , {col: "cnclkind", val:cnclkind }
  410. , {col: "testlrgcd", val:testlrgcd }
  411. , {col: "testmdlcd", val:testmdlcd }
  412. , {col: "userdeptflagcd", val:lgv_sUserdeptflagcd }
  413. , {col: "prcpgenrflag", val:prcpgenrflag }
  414. ]);
  415. var oParam = {};
  416. oParam.id = "TRLLP02402";
  417. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  418. oParam.method = "reqGetCancelStatistics";
  419. oParam.inds = "cond="+sInDsName;
  420. oParam.outds = "ds_grid_grd_stainfo=cancelstatis";
  421. oParam.async = false;
  422. oParam.callback = "cbf_SMLLP02400";
  423. tranf_submit(oParam);
  424. }
  425. // 시행부서combo 변경시 대분류, 중분류 제어
  426. function lf_displayTestInfo() {
  427. // 대분류
  428. if(group3.group1.cmb_testgbn.value == "1"){
  429. group3.group1.cmb_testlrg.visible = true;
  430. group3.group1.cmb_testmdl.visible = false;
  431. group3.group1.cmb_testlrg.index = 0;
  432. // 중분류
  433. }else{
  434. group3.group1.cmb_testlrg.visible = false;
  435. group3.group1.cmb_testmdl.visible = true;
  436. group3.group1.cmb_testmdl.index = 0;
  437. }
  438. }
  439. // 엑셀 저장
  440. function lf_exeExcel(pNum) {
  441. trace(pNum);
  442. trace(lf_lisGetTitle(this));
  443. if(pNum==1) {
  444. grdf_exportExcel(group3.grd_cncllist, lf_lisGetTitle(this) + "_" + "채혈접수_취소내역", "sheet1", false);
  445. }else{
  446. grdf_exportExcel(group3.grd_stainfo, lf_lisGetTitle(this) + "_" + "채혈접수_취소건수", "sheet1", false);
  447. }
  448. }
  449. // callback 함수
  450. function cbf_SMLLP02400(strSvcID, nErrorCode, strErrorMag) {
  451. if(nErrorCode != 0) {
  452. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  453. }else{
  454. switch(strSvcID){
  455. case "TRLZZ00101":
  456. group3.group1.cmb_testlrg.index = 0;
  457. group3.group1.cmb_testmdl.index = 0;
  458. break;
  459. case "TRLLP02401":
  460. break;
  461. case "TRLLP02402":
  462. break;
  463. default:
  464. break;
  465. }
  466. }
  467. }
  468. function btn_search_onlbuttonup(obj:Button, e:MouseEventInfo)
  469. {
  470. lf_getCancelList();
  471. }
  472. function group3_group1_cmb_testgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  473. {
  474. lf_displayTestInfo();
  475. }
  476. function group3_group1_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  477. {
  478. if(e.keycode == 13) {
  479. lf_getCancelList();
  480. group3.group1.input1.setFocus();
  481. group3.group1.input1.setSelect(0,group3.group1.input1.getLength());
  482. }
  483. }
  484. function button2_onlbuttonup(obj:Button, e:MouseEventInfo)
  485. {
  486. lf_exeExcel(1);
  487. }
  488. function btn_ExcelSta_onlbuttonup(obj:Button, e:MouseEventInfo)
  489. {
  490. lf_exeExcel(2);
  491. }
  492. function btn_clear_onlbuttonup(obj:Button, e:MouseEventInfo)
  493. {
  494. lf_setInit(obj, e);
  495. }
  496. // 조회구분 변경시 초기화
  497. function group3_group1_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  498. {
  499. group3.group1.input1.value = "";
  500. if(group3.group1.combo1.value == 2){
  501. group3.group1.input1.useime = "none";
  502. }else{
  503. group3.group1.input1.useime = "global";
  504. }
  505. }
  506. ]]></Script>
  507. </Form>
  508. </FDL>