SMLLP00600_특이결과기록관리.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLP00600" position="absolute 0 0 1256 805" titletext="특이결과기록관리" onload="SMLLP00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 25 1256 805" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Grid id="grd_spcfrsltlist" position="absolute 0 72 1256 780" anchor="all" positiontype="position" binddataset="ds_grid_grd_spcfrsltlist" autofittype="col" autosizemergetype="colmerge" cellsizingtype="col" oncelldblclick="group3_grd_spcfrsltlist_oncelldblclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="30"/>
  15. <Column size="30"/>
  16. <Column size="104"/>
  17. <Column size="55"/>
  18. <Column size="60"/>
  19. <Column size="56"/>
  20. <Column size="84"/>
  21. <Column size="130"/>
  22. <Column size="60"/>
  23. <Column size="55"/>
  24. <Column size="0"/>
  25. <Column size="104"/>
  26. <Column size="55"/>
  27. <Column size="100"/>
  28. <Column size="184"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="55"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell celltype="head"/>
  39. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  40. <Cell col="2" text="등록일시"/>
  41. <Cell col="3" text="환자명"/>
  42. <Cell col="4" text="등록번호"/>
  43. <Cell col="5" text="진료과"/>
  44. <Cell col="6" text="병동/병실"/>
  45. <Cell col="7" text="검사항목"/>
  46. <Cell col="8" text="결과"/>
  47. <Cell col="9" text="통보자"/>
  48. <Cell col="10" text="보고의"/>
  49. <Cell col="11" text="통보시간"/>
  50. <Cell col="12" text="피통보자"/>
  51. <Cell col="13" text="확인일시"/>
  52. <Cell col="14" text="조치사항"/>
  53. <Cell col="15" text="bcno"/>
  54. <Cell col="16" text="testcd"/>
  55. <Cell col="17" text="전송건수"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell celltype="head" expr="expr:currow+1"/>
  59. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chio"/>
  60. <Cell col="2" text="bind:rgstdt" mask="expr:rgstdt==null?'':'####-##-## ##:##'"/>
  61. <Cell col="3" text="bind:patnm"/>
  62. <Cell col="4" displaytype="text" edittype="text" style="align:center;" text="bind:pid" editautoselect="true"/>
  63. <Cell col="5" text="bind:orddeptnm"/>
  64. <Cell col="6" text="bind:wardroom"/>
  65. <Cell col="7" style="align:left;" text="bind:tclsnm"/>
  66. <Cell col="8" style="align:left middle;" text="bind:testrslt"/>
  67. <Cell col="9" text="bind:notichrgnm"/>
  68. <Cell col="10" text="bind:cfmid"/>
  69. <Cell col="11" text="bind:notidt" mask="expr:notidt==null?'':'####-##-## ##:##'"/>
  70. <Cell col="12" text="bind:notitrgtnm"/>
  71. <Cell col="13" text="bind:cfmdt" mask="expr:cfmdt==null?'':'####-##-## ##:##'"/>
  72. <Cell col="14" style="align:left;" text="bind:measfact"/>
  73. <Cell col="15"/>
  74. <Cell col="16"/>
  75. <Cell col="17" text="bind:cvrcnt"/>
  76. </Band>
  77. </Format>
  78. </Formats>
  79. </Grid>
  80. <Shape id="line1" class="line_1" position="absolute 0 70 1194 70" anchor="default" positiontype="position" linetype="horizontal"/>
  81. <Static id="caption3" class="tit_2" position="absolute 0 52 139 72" anchor="default" positiontype="position" text="특이결과 조회"/>
  82. <Button id="button2" class="btn7" position="absolute 1188 49 1248 69" anchor="top right" positiontype="position" text="엑셀" onlbuttonup="button2_onlbuttonup"/>
  83. <Div id="group1" position="absolute 0 3 1256 45" anchor="left top right" positiontype="position" class="div_SA">
  84. <Layouts>
  85. <Layout>
  86. <Shape id="line3" class="line_4" position="absolute 1108 7 1108 29" anchor="default" linetype="vertical" positiontype="position"/>
  87. <Static id="caption2" class="search_name" position="absolute 8 10 76 30" anchor="default" text="등록일자" positiontype="position"/>
  88. <Button id="btn_Ref" class="btn1" position="absolute 1116 10 1172 30" anchor="top right" text="조회" onlbuttonup="btn_Ref_onlbuttonup" positiontype="position" onclick="group3_group1_btn_Ref_onclick"/>
  89. <Static id="caption11" position="absolute 185 11 197 28" anchor="default" text="~" positiontype="position"/>
  90. <Static id="caption1" class="search_name" visible="false" position="absolute 741 10 809 30" anchor="default" text="시행부서" positiontype="position"/>
  91. <Combo id="cmb_dept" visible="false" position="absolute 903 10 1011 30" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  92. <Calendar id="ipt_usdt" class="input_s_essential" position="absolute 82 10 182 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  93. <Calendar id="ipt_uedt" class="input_s_essential" position="absolute 198 10 298 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  94. <Combo id="combo1" visible="false" position="absolute 815 10 900 30" anchor="default" innerdataset="@ds_deptgbn" codecolumn="value" datacolumn="label" index="0" value="1" text="대분류" onitemchanged="group3_group1_combo1_onitemchanged" positiontype="position"/>
  95. <Combo id="combo2" visible="false" position="absolute 1007 10 1115 30" anchor="default" innerdataset="@ds_init_lb0102" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  96. <Combo id="cmb_testLrgCd" class="combo_s_essential" position="absolute 489 10 599 30" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" onitemchanged="group3_group1_cmb_testLrgCd_onitemchanged" positiontype="position"/>
  97. <Combo id="cmb_testMdlCd" class="combo_s_essential" position="absolute 602 10 717 30" anchor="default" innerdataset="@ds_init_lb0102" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  98. <Static id="caption25" class="search_name" position="absolute 322 10 390 30" anchor="default" text="조회구분" positiontype="position"/>
  99. <Combo id="cmb_selectgbn" class="combo_search" visible="true" position="absolute 396 10 486 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="검사분류" onitemchanged="group3_group1_cmb_selectgbn_onitemchanged" positiontype="position">
  100. <Dataset id="innerdataset">
  101. <ColumnInfo>
  102. <Column id="codecolumn" size="256"/>
  103. <Column id="datacolumn" size="256"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row>
  107. <Col id="codecolumn">1</Col>
  108. <Col id="datacolumn">검사분류</Col>
  109. </Row>
  110. <Row>
  111. <Col id="codecolumn">2</Col>
  112. <Col id="datacolumn">시행부서</Col>
  113. </Row>
  114. </Rows>
  115. </Dataset>
  116. </Combo>
  117. <Button id="btn_reset" taborder="1" text="초기화" onlbuttonup="btn_reset_onlbuttonup" class="btn3" position="absolute 1176 10 1244 30" anchor="top right"/>
  118. </Layout>
  119. </Layouts>
  120. </Div>
  121. <Grid id="grd_spcfrsltlistEx" taborder="1" binddataset="ds_grid_grd_spcfrsltlist" useinputpanel="false" autofittype="none" position="absolute 150 172 840 439" anchor="all" cellsizingtype="col" visible="false">
  122. <Formats>
  123. <Format id="default">
  124. <Columns>
  125. <Column size="30"/>
  126. <Column size="104"/>
  127. <Column size="70"/>
  128. <Column size="70"/>
  129. <Column size="56"/>
  130. <Column size="84"/>
  131. <Column size="130"/>
  132. <Column size="60"/>
  133. <Column size="60"/>
  134. <Column size="60"/>
  135. <Column size="100"/>
  136. <Column size="60"/>
  137. <Column size="104"/>
  138. <Column size="184"/>
  139. <Column size="0"/>
  140. <Column size="0"/>
  141. </Columns>
  142. <Rows>
  143. <Row size="22" band="head"/>
  144. <Row size="20"/>
  145. </Rows>
  146. <Band id="head">
  147. <Cell celltype="head" text="No."/>
  148. <Cell col="1" text="등록일시"/>
  149. <Cell col="2" text="환자명"/>
  150. <Cell col="3" text="등록번호"/>
  151. <Cell col="4" text="진료과"/>
  152. <Cell col="5" text="병동/병실"/>
  153. <Cell col="6" text="검사항목"/>
  154. <Cell col="7" text="결과"/>
  155. <Cell col="8" text="통보자"/>
  156. <Cell col="9" text="보고의"/>
  157. <Cell col="10" text="확인일시"/>
  158. <Cell col="11" text="피통보자"/>
  159. <Cell col="12" text="통보시간"/>
  160. <Cell col="13" text="조치사항"/>
  161. <Cell col="14" text="bcno"/>
  162. <Cell col="15" text="testcd"/>
  163. </Band>
  164. <Band id="body">
  165. <Cell celltype="head" expr="expr:currow+1"/>
  166. <Cell col="1" text="bind:rgstdt" mask="expr:rgstdt==null?'':'####-##-## ##:##'"/>
  167. <Cell col="2" text="bind:patnm"/>
  168. <Cell col="3" displaytype="text" text="bind:pid"/>
  169. <Cell col="4" text="bind:orddeptnm"/>
  170. <Cell col="5" text="bind:wardroom"/>
  171. <Cell col="6" style="align:left;" text="bind:tclsnm"/>
  172. <Cell col="7" text="bind:testrslt"/>
  173. <Cell col="8" text="bind:notichrgnm"/>
  174. <Cell col="9" text="bind:cfmid"/>
  175. <Cell col="10" text="bind:cfmdt" mask="expr:cfmdt=='-'?'':'####-##-## ##:##'"/>
  176. <Cell col="11" text="bind:notitrgtnm"/>
  177. <Cell col="12" text="bind:notidt" mask="expr:notidt==null?'':'####-##-## ##:##'"/>
  178. <Cell col="13" style="align:left;" text="bind:measfact"/>
  179. <Cell col="14"/>
  180. <Cell col="15"/>
  181. </Band>
  182. </Format>
  183. </Formats>
  184. </Grid>
  185. </Layout>
  186. </Layouts>
  187. </Div>
  188. <Button id="btn_print" taborder="1" text="출력" onclick="btn_print_onclick" class="btn6" position="absolute 1082 0 1138 20" anchor="top right"/>
  189. <Button id="but_del" taborder="2" text="삭제" onlbuttonup="but_del_onlbuttonup" class="btn4" position="absolute 1141 0 1197 20" anchor="top right"/>
  190. <Button id="btn_cnfm" taborder="3" text="확인" onlbuttonup="btn_cnfm_onlbuttonup" class="btn4" position="absolute 1200 0 1256 20" anchor="top right"/>
  191. <Static id="caption6" text="특이결과 기록관리" class="tit_1" position="absolute 2 2 157 27"/>
  192. </Layout>
  193. </Layouts>
  194. <Objects>
  195. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="cd" type="STRING" size="256"/>
  198. <Column id="nm" type="STRING" size="256"/>
  199. </ColumnInfo>
  200. </Dataset>
  201. <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  202. <ColumnInfo>
  203. <Column id="cd" type="STRING" size="256"/>
  204. <Column id="nm" type="STRING" size="256"/>
  205. </ColumnInfo>
  206. </Dataset>
  207. <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  208. <ColumnInfo>
  209. <Column id="cd" type="STRING" size="256"/>
  210. <Column id="nm" type="STRING" size="256"/>
  211. </ColumnInfo>
  212. </Dataset>
  213. <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="cd" type="STRING" size="256"/>
  216. <Column id="nm" type="STRING" size="256"/>
  217. </ColumnInfo>
  218. </Dataset>
  219. <Dataset id="ds_init_lb0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  220. <ColumnInfo>
  221. <Column id="cd" type="STRING" size="256"/>
  222. <Column id="nm" type="STRING" size="256"/>
  223. </ColumnInfo>
  224. </Dataset>
  225. <Dataset id="ds_selectgbn" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  226. <ColumnInfo>
  227. <Column id="label" type="STRING" size="256"/>
  228. <Column id="value" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. <Rows>
  231. <Row>
  232. <Col id="label">검사분류</Col>
  233. <Col id="value">1</Col>
  234. </Row>
  235. <Row>
  236. <Col id="label">시행부서</Col>
  237. <Col id="value">2</Col>
  238. </Row>
  239. </Rows>
  240. </Dataset>
  241. <Dataset id="ds_deptgbn" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <Column id="label" type="STRING" size="256"/>
  244. <Column id="value" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. <Rows>
  247. <Row>
  248. <Col id="label">대분류</Col>
  249. <Col id="value">1</Col>
  250. </Row>
  251. <Row>
  252. <Col id="label">중분류</Col>
  253. <Col id="value">2</Col>
  254. </Row>
  255. </Rows>
  256. </Dataset>
  257. <Dataset id="ds_grid_grd_spcfrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  258. <ColumnInfo>
  259. <Column id="status" type="STRING" size="256"/>
  260. <column id="chio" type="STRING" size="256"/>
  261. <column id="rgstdt" type="STRING" size="256"/>
  262. <column id="patnm" type="STRING" size="256"/>
  263. <column id="pid" type="STRING" size="256"/>
  264. <column id="orddeptnm" type="STRING" size="256"/>
  265. <column id="wardroom" type="STRING" size="256"/>
  266. <column id="tclsnm" type="STRING" size="256"/>
  267. <column id="testrslt" type="STRING" size="256"/>
  268. <column id="notichrgnm" type="STRING" size="256"/>
  269. <column id="cfmid" type="STRING" size="256"/>
  270. <column id="cfmdt" type="STRING" size="256"/>
  271. <column id="notitrgtnm" type="STRING" size="256"/>
  272. <column id="notidt" type="STRING" size="256"/>
  273. <column id="measfact" type="STRING" size="256"/>
  274. <column id="bcno" type="STRING" size="256"/>
  275. <column id="testcd" type="STRING" size="256"/>
  276. <column id="cvrcnt" type="STRING" size="256"/>
  277. </ColumnInfo>
  278. </Dataset>
  279. <Dataset id="ds_grid_grd_spcfrsltlistPrint" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  280. <ColumnInfo>
  281. <column id="chio" type="STRING" size="256"/>
  282. <column id="rgstdt" type="STRING" size="256"/>
  283. <column id="patnm" type="STRING" size="256"/>
  284. <column id="pid" type="STRING" size="256"/>
  285. <column id="orddept" type="STRING" size="256"/>
  286. <column id="wardroom" type="STRING" size="256"/>
  287. <column id="testitem" type="STRING" size="256"/>
  288. <column id="rslt" type="STRING" size="256"/>
  289. <column id="perchgr" type="STRING" size="256"/>
  290. <column id="cnfmr" type="STRING" size="256"/>
  291. <column id="cfmdt" type="STRING" size="256"/>
  292. <column id="notipsn" type="STRING" size="256"/>
  293. <column id="notitm" type="STRING" size="256"/>
  294. <column id="measfact" type="STRING" size="256"/>
  295. <column id="bcno" type="STRING" size="256"/>
  296. <column id="testcd" type="STRING" size="256"/>
  297. </ColumnInfo>
  298. </Dataset>
  299. </Objects>
  300. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  301. * System Name :
  302. * Job Name :
  303. * Creator :
  304. * Make Date : 2015-05-01
  305. * Description :
  306. *---------------------------------------------------------------------------------------
  307. * Modify Date Modifier Modify Description
  308. *---------------------------------------------------------------------------------------
  309. * 2015-05-01 Live Converter TF->XP
  310. *
  311. *---------------------------------------------------------------------------------------
  312. ****************************************************************************************/
  313. include "com_commonxp::comm_main.xjs";
  314. include "lis_commonxp::LLZ001.xjs";
  315. function SMLLP00600_onload(obj:Form, e:LoadEventInfo)
  316. {
  317. //폼 초기화 함수
  318. frmf_initForm(obj);
  319. grdf_initGrid(group3.grd_spcfrsltlist);
  320. lf_setstart();
  321. }
  322. function lf_setstart() {
  323. // grd_spcfrsltlist.fixedcellcheckbox(0, 1) = true;
  324. var curDate = utlf_getCurrentDate();
  325. // 사용자별 검사그룹 // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
  326. lf_getDbDeptcd("0000|0102|0104|0111|0106|","cbf_SMLLP00600");
  327. group3.group1.ipt_usdt.value = curDate;
  328. group3.group1.ipt_uedt.value = curDate;
  329. }
  330. function lf_getSpcfRslttreflist(){
  331. var refrgstsdd = group3.group1.ipt_usdt.value;
  332. var refrgstedd = group3.group1.ipt_uedt.value;
  333. var selectgbn = group3.group1.cmb_selectgbn.value;
  334. var testlrgcd = "";
  335. var testmdlcd = "";
  336. var sectcd = "";
  337. var tsectcd = "";
  338. if(selectgbn == "1"){
  339. testlrgcd = group3.group1.cmb_testLrgCd.value;
  340. testmdlcd = group3.group1.cmb_testMdlCd.value;
  341. }
  342. //조회구분 시행부서 선택시
  343. else if(selectgbn == "2"){
  344. sectcd = group3.group1.cmb_testLrgCd.value;
  345. tsectcd = group3.group1.cmb_testMdlCd.value;
  346. }
  347. var sInDsName = dsf_createDsRow("ds_temp_search"
  348. , [{col: "refrgstsdd", val:refrgstsdd }
  349. , {col: "refrgstedd", val:refrgstedd }
  350. , {col: "selectgbn", val:selectgbn }
  351. , {col: "testlrgcd", val:testlrgcd }
  352. , {col: "testmdlcd", val:testmdlcd }
  353. , {col: "sectcd", val:sectcd }
  354. , {col: "tsectcd", val:tsectcd }
  355. , {col: "deptflag", val:lgv_sUserdeptflagcd }
  356. ]);
  357. var oParam = {};
  358. oParam.id = "TRLLP00601";
  359. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  360. oParam.method = "reqGetSpcfRslt";
  361. oParam.inds = "cond="+sInDsName;
  362. oParam.outds = "ds_grid_grd_spcfrsltlist=getSpcfRsltList";
  363. oParam.async = false;
  364. //oParam.callback = "cbf_SMLLP00600";
  365. tranf_submit(oParam);
  366. for(var i = 0; i < ds_grid_grd_spcfrsltlist.rowcount; i++)
  367. {
  368. var cfmdt = ds_grid_grd_spcfrsltlist.getColumn(i, "cfmdt");
  369. if( !utlf_isNull(cfmdt))
  370. {
  371. ds_grid_grd_spcfrsltlist.setColumn(i, "cfmdt", cfmdt.replace(" ",""));
  372. }
  373. }
  374. }
  375. function lf_exeEqmtdel(){
  376. for(i=0; i< ds_grid_grd_spcfrsltlist.rowcount; i++){
  377. if(ds_grid_grd_spcfrsltlist.getColumn(i, "chio") =="1"){
  378. ds_grid_grd_spcfrsltlist.setColumn(i, "status", "d");
  379. grdf_setStatus(group3.grd_spcfrsltlist, "D", i);
  380. }else{
  381. ds_grid_grd_spcfrsltlist.setColumn(i, "status", "");
  382. grdf_setStatus(group3.grd_spcfrsltlist, "", i);
  383. }
  384. }
  385. var oParam = {};
  386. oParam.id = "TXLLP00601";
  387. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  388. oParam.method = "reqDelSpcfRslt";
  389. oParam.inds = "cond=ds_grid_grd_spcfrsltlist:U";
  390. oParam.async = false;
  391. oParam.typeStr = "m"
  392. oParam.callback = "cbf_SMLLP00600";
  393. tranf_submit(oParam);
  394. }
  395. function lf_exeEqmtSave() {
  396. for(i=0; i<ds_grid_grd_spcfrsltlist.rowcount; i++){
  397. if(ds_grid_grd_spcfrsltlist.getColumn(i, "chio") =="1"){
  398. ds_grid_grd_spcfrsltlist.setColumn(i, "status", "u");
  399. grdf_setStatus(group3.grd_spcfrsltlist, "U", i);
  400. }else{
  401. ds_grid_grd_spcfrsltlist.setColumn(i, "status", "");
  402. grdf_setStatus(group3.grd_spcfrsltlist, "", i);
  403. }
  404. }
  405. var oParam = {};
  406. oParam.id = "TXLLP00601";
  407. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  408. oParam.method = "reqDelSpcfRslt";
  409. oParam.inds = "cond=ds_grid_grd_spcfrsltlist:U";
  410. oParam.async = false;
  411. oParam.typeStr = "m"
  412. oParam.callback = "cbf_SMLLP00600";
  413. tranf_submit(oParam);
  414. }
  415. //조회구분선택 검사분류,시행부서
  416. function lf_selectGbn(){
  417. // 검사분류 선택
  418. if(group3.group1.cmb_selectgbn.value=="1"){
  419. //첫번째 콤보에 대분류 셋팅
  420. group3.group1.cmb_testLrgCd.innerdataset="ds_init_lb0104";
  421. //두번째 콤보에 중분류 셋팅
  422. group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0102";
  423. //시행부서 선택
  424. } else {
  425. //첫번째 콤보에 계코드 셋팅
  426. group3.group1.cmb_testLrgCd.innerdataset="ds_init_lb0111";
  427. //두번째 콤보에 검사계코드 셋팅
  428. group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0106";
  429. }
  430. group3.group1.cmb_testLrgCd.codecolumn="cd";
  431. group3.group1.cmb_testLrgCd.datacolumn="nm";
  432. group3.group1.cmb_testMdlCd.codecolumn="cd";
  433. group3.group1.cmb_testMdlCd.datacolumn="nm";
  434. group3.group1.cmb_testLrgCd.index=0;
  435. group3.group1.cmb_testMdlCd.index=0;
  436. }
  437. //검사분류,시행부서 선택 시 세부 값 변경
  438. function lf_setSelect02(){
  439. var sSel01 = group3.group1.cmb_testLrgCd.value;
  440. var sFilter = "cd =='00' || etc01 =='" + sSel01 + "'";
  441. //검사분류선택
  442. if(group3.group1.cmb_selectgbn.value=="1"){
  443. group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0102";
  444. if (sSel01 != "00" ) {
  445. ds_init_lb0102.filter(sFilter);
  446. }
  447. //시행부서 선택
  448. } else {
  449. group3.group1.cmb_testMdlCd.innerdataset="ds_init_lb0106";
  450. if (sSel01 != "00" ) {
  451. ds_init_lb0106.filter(sFilter);
  452. }
  453. }
  454. group3.group1.cmb_testMdlCd.codecolumn="cd";
  455. group3.group1.cmb_testMdlCd.datacolumn="nm";
  456. group3.group1.cmb_testMdlCd.index=0;
  457. }
  458. // 초기화
  459. function lf_setInit() {
  460. this.reload();
  461. }
  462. // 시행부서 대분류,중분류 선택 처리
  463. function lf_comboAalue() {
  464. // 대분류
  465. if(group3.group1.combo1.value == "1"){
  466. group3.group1.cmb_dept.visible = true;
  467. group3.group1.combo2.visible = false;
  468. // 중분류
  469. }else{
  470. group3.group1.cmb_dept.visible = false;
  471. group3.group1.combo2.visible = true;
  472. }
  473. }
  474. // 엑셀 저장
  475. function lf_exeExcel(pGridId) {
  476. grdf_exportExcel(group3.grd_spcfrsltlistEx, lf_lisGetTitle(this) + "_" + "특이결과", "sheet1", false);
  477. }
  478. // callback 함수
  479. function cbf_SMLLP00600(strSvcID, nErrorCode, strErrorMag) {
  480. if(nErrorCode != 0) {
  481. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  482. }else{
  483. switch(strSvcID){
  484. case "TRLZZ00101":
  485. group3.group1.cmb_testLrgCd.index = 0;
  486. group3.group1.cmb_testMdlCd.index = 0;
  487. group3.group1.cmb_selectgbn.index = 0;
  488. grdf_initGrid(group3.grd_spcfrsltlist);
  489. break;
  490. case "TRLLP00601":
  491. break;
  492. case "TXLLP00601":
  493. lf_getSpcfRslttreflist();
  494. break;
  495. default:
  496. break;
  497. }
  498. }
  499. }
  500. function button2_onlbuttonup(obj:Button, e:MouseEventInfo)
  501. {
  502. lf_exeExcel();
  503. }
  504. function btn_Ref_onlbuttonup(obj:Button, e:MouseEventInfo)
  505. {
  506. lf_getSpcfRslttreflist();
  507. }
  508. function group3_group1_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  509. {
  510. lf_comboAalue();
  511. }
  512. function group3_group1_cmb_testLrgCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  513. {
  514. lf_setSelect02();
  515. }
  516. function group3_group1_cmb_selectgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  517. {
  518. lf_selectGbn();
  519. }
  520. function btn_reset_onlbuttonup(obj:Button, e:MouseEventInfo)
  521. {
  522. lf_setInit();
  523. }
  524. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  525. {
  526. ds_grid_grd_spcfrsltlistPrint.clearData();
  527. var addRw = 0;
  528. for(var i=0; i<ds_grid_grd_spcfrsltlist.rowcount; i++)
  529. {
  530. if(ds_grid_grd_spcfrsltlist.getColumn(i, "chio") == 1)
  531. {
  532. addRw = ds_grid_grd_spcfrsltlistPrint.addRow();
  533. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "chio", ds_grid_grd_spcfrsltlist.getColumn(i,"chio"));
  534. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "rgstdt", utlf_mid(ds_grid_grd_spcfrsltlist.getColumn(i,"rgstdt"),1,12));
  535. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "patnm", ds_grid_grd_spcfrsltlist.getColumn(i,"patnm"));
  536. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "pid", ds_grid_grd_spcfrsltlist.getColumn(i,"pid"));
  537. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "orddept", ds_grid_grd_spcfrsltlist.getColumn(i,"orddeptnm"));
  538. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "wardroom", ds_grid_grd_spcfrsltlist.getColumn(i,"wardroom"));
  539. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "testitem", ds_grid_grd_spcfrsltlist.getColumn(i,"tclsnm"));
  540. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "rslt", ds_grid_grd_spcfrsltlist.getColumn(i,"testrslt"));
  541. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "perchgr", ds_grid_grd_spcfrsltlist.getColumn(i,"notichrgnm"));
  542. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "cnfmr", ds_grid_grd_spcfrsltlist.getColumn(i,"cfmid"));
  543. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "cfmdt", ds_grid_grd_spcfrsltlist.getColumn(i,"cfmdt"));
  544. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "notipsn", ds_grid_grd_spcfrsltlist.getColumn(i,"notitrgtnm"));
  545. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "notitm", utlf_mid(ds_grid_grd_spcfrsltlist.getColumn(i,"notidt"),1,12));
  546. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "measfact", ds_grid_grd_spcfrsltlist.getColumn(i,"measfact"));
  547. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "bcno", ds_grid_grd_spcfrsltlist.getColumn(i,"bcno"));
  548. ds_grid_grd_spcfrsltlistPrint.setColumn(addRw, "testcd", ds_grid_grd_spcfrsltlist.getColumn(i,"testcd"));
  549. }
  550. }
  551. var objDOM = rptf_createDOM(); // DOM 객체 설정
  552. rptf_setNodeListToDOM(objDOM, "root/main/spcfrsltreflist", ds_grid_grd_spcfrsltlistPrint); // 데이터셋 1
  553. var objParam = new Object();
  554. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  555. var option = "open=1;save=1;directprint=0;print=1;zoom=0";
  556. rptf_exeReportPreview30(["RPLLP90200"],[objParam], option);
  557. }
  558. function btn_cnfm_onlbuttonup(obj:Button, e:MouseEventInfo)
  559. {
  560. lf_exeEqmtSave();
  561. }
  562. function but_del_onlbuttonup(obj:Button, e:MouseEventInfo)
  563. {
  564. lf_exeEqmtdel();
  565. }
  566. function group3_group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  567. {
  568. }
  569. function group3_grd_spcfrsltlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  570. {
  571. var nRow = ds_grid_grd_spcfrsltlist.rowposition;
  572. if(nRow < 0){ return; }
  573. var sBcNo = ds_grid_grd_spcfrsltlist.getColumn(nRow, "bcno");
  574. if(utlf_isNull(sBcNo)) return;
  575. dsf_createDsRow( "ds_arg_SPLPR03000", [{col : "cvrtype", val : "L"} // CVR구분 L:진검
  576. ,{col : "refkey", val : ds_grid_grd_spcfrsltlist.getColumn(nRow, "bcno")}]); // 바코드번호
  577. var objArg = new Object();
  578. objArg.arg_ds_popup = ds_arg_SPLPR03000;
  579. frmf_modal("SPLPR03000", "SPLPR03000", objArg, null, null, null, null, null, null, null, null, null, "M");
  580. }
  581. ]]></Script>
  582. </Form>
  583. </FDL>