SPLPP02800_frozen검체현황조회.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPP02800" position="absolute 0 0 1014 669" titletext="frozen검체현황조회" class="frm_POP" onload="SPLPP02800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="stt_titleText" text="frozen검체현황조회" class="sta_POP_title" position="absolute 12 8 161 28"/>
  8. <Button id="btn_exit" taborder="1" class="btn_POP_cls" position="absolute 988 12 1002 25" onclick="btn_exit_onclick"/>
  9. <Div id="div_search" taborder="2" class="div_SA" position="absolute 12 46 1002 88">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption4" text="바코드번호" class="search_name" position="absolute 8 10 95 30" anchor="default"/>
  13. <Edit id="ipt_refval" taborder="8" class="input_essential" position="absolute 95 10 210 30" anchor="default" onkeydown="div_search_ipt_refval_onkeydown" oneditclick="div_search_ipt_refval_oneditclick" inputmode="upper"/>
  14. <Combo id="cmb_refflagcd" taborder="9" class="combo_search" visible="false" position="absolute 213 10 325 30" style="align:center middle;" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="0" text="바코드번호">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn" size="256"/>
  18. <Column id="datacolumn" size="256"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">0</Col>
  23. <Col id="datacolumn">바코드번호</Col>
  24. </Row>
  25. </Rows>
  26. </Dataset>
  27. </Combo>
  28. <Button id="btn_search" taborder="10" text="조회" onlbuttonup="button1_onlbuttonup" class="btn1" position="absolute 922 10 978 30" anchor="default" onclick="div_search_btn_search_onclick"/>
  29. </Layout>
  30. </Layouts>
  31. </Div>
  32. <Static id="caption14" text="검체현황" class="tit_2" position="absolute 12 98 181 118"/>
  33. <Static id="Static02" class="sta_DA_box" position="absolute 12 118 1002 144"/>
  34. <Static id="caption31" text="검체전달" class="cell_1" position="absolute 13 119 98 143" style="align:left middle;"/>
  35. <Edit id="opt_spctran" taborder="3" readonly="true" position="absolute 101 121 210 141" style="align:right middle;" mask="#,###,###"/>
  36. <Static id="caption01" text="병리과 수신" class="cell_1" position="absolute 213 119 298 143" style="align:left middle;"/>
  37. <Edit id="opt_spcrecv" taborder="4" readonly="true" position="absolute 301 121 409 141" style="align:right middle;" mask="#,###,###"/>
  38. <Static id="caption15" text="검체접수" class="cell_1" position="absolute 412 119 497 143" style="align:left middle;"/>
  39. <Edit id="opt_spcacpt" taborder="5" readonly="true" position="absolute 500 121 608 141" style="align:right middle;" mask="#,###,###"/>
  40. <Static id="caption17" text="총 환자수" class="cell_1" visible="false" position="absolute 611 119 696 143" style="align:left middle;"/>
  41. <Edit id="opt_totalpat" taborder="6" readonly="true" visible="false" position="absolute 699 121 807 141" style="align:right middle;" mask="#,###,###"/>
  42. <Static id="caption18" text="총 검사수" class="cell_1" visible="false" position="absolute 810 119 895 143" style="align:left middle;"/>
  43. <Edit id="opt_totalspc" taborder="7" readonly="true" visible="false" position="absolute 898 121 998 141" style="align:right middle;" mask="#,###,###"/>
  44. <Static id="caption2" text="검체목록" class="tit_2" position="absolute 12 154 152 174"/>
  45. <Grid id="grd_acptspclist" taborder="8" useinputpanel="false" position="absolute 12 174 1002 657" binddataset="ds_acptspclist">
  46. <Formats>
  47. <Format id="default">
  48. <Columns>
  49. <Column size="30"/>
  50. <Column size="30"/>
  51. <Column size="0"/>
  52. <Column size="85"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="80"/>
  56. <Column size="0"/>
  57. <Column size="70"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="80"/>
  65. <Column size="80"/>
  66. <Column size="80"/>
  67. <Column size="80"/>
  68. <Column size="60"/>
  69. <Column size="80"/>
  70. <Column size="80"/>
  71. <Column size="80"/>
  72. <Column size="80"/>
  73. <Column size="60"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="80"/>
  77. <Column size="79"/>
  78. <Column size="0"/>
  79. <Column size="0"/>
  80. </Columns>
  81. <Rows>
  82. <Row size="22" band="head"/>
  83. <Row size="20"/>
  84. </Rows>
  85. <Band id="head">
  86. <Cell text="No"/>
  87. <Cell col="1" text="상태"/>
  88. <Cell col="2" text="상태"/>
  89. <Cell col="3" text="바코드번호"/>
  90. <Cell col="4" text="기관코드"/>
  91. <Cell col="5" text="ptno"/>
  92. <Cell col="6" text="병리번호"/>
  93. <Cell col="7" text="육안검사의"/>
  94. <Cell col="8" text="등록번호"/>
  95. <Cell col="9" text="환자명"/>
  96. <Cell col="10" text="환자구분"/>
  97. <Cell col="11" text="진료과"/>
  98. <Cell col="12" text="진료의사"/>
  99. <Cell col="13" text="처방일자"/>
  100. <Cell col="14" text="처방시간"/>
  101. <Cell col="15" text="출력일자"/>
  102. <Cell col="16" text="출력시간"/>
  103. <Cell col="17" text="채취일자"/>
  104. <Cell col="18" text="채취시간"/>
  105. <Cell col="19" text="채취자"/>
  106. <Cell col="20" text="수신일자"/>
  107. <Cell col="21" text="수신시간"/>
  108. <Cell col="22" text="접수일자"/>
  109. <Cell col="23" text="접수시간"/>
  110. <Cell col="24" text="접수자"/>
  111. <Cell col="25" text="검사코드"/>
  112. <Cell col="26" text="처방명"/>
  113. <Cell col="27" text="판독일자"/>
  114. <Cell col="28" text="판독의사"/>
  115. <Cell col="29" text="execprcpuniqno"/>
  116. <Cell col="30" text="prcpgenrflag"/>
  117. </Band>
  118. <Band id="body">
  119. <Cell celltype="head" expr="currow+1"/>
  120. <Cell col="1" displaytype="image" expr="expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  121. <Cell col="2" text="bind:spcstatnm"/>
  122. <Cell col="3" text="bind:spcbarcdno"/>
  123. <Cell col="4"/>
  124. <Cell col="5"/>
  125. <Cell col="6" text="bind:ptno"/>
  126. <Cell col="7" class="text_center" text="bind:grosdrnm"/>
  127. <Cell col="8" class="text_center" text="bind:pid"/>
  128. <Cell col="9" class="text_center" text="bind:patnm"/>
  129. <Cell col="10" class="text_center"/>
  130. <Cell col="11"/>
  131. <Cell col="12"/>
  132. <Cell col="13" class="text_center" text="bind:prcpdd" mask="####-##-##"/>
  133. <Cell col="14" class="text_center" text="bind:prcptm" mask="##:##:##"/>
  134. <Cell col="15" class="text_center" text="bind:trandd" mask="####-##-##"/>
  135. <Cell col="16" class="text_center" text="bind:trantm" mask="##:##:##"/>
  136. <Cell col="17" class="text_center" text="bind:delivedd" mask="####-##-##"/>
  137. <Cell col="18" class="text_center" text="bind:delivetm" mask="##:##:##"/>
  138. <Cell col="19" class="text_center" text="bind:delivenm"/>
  139. <Cell col="20" class="text_center" text="bind:cnfmdd" mask="####-##-##"/>
  140. <Cell col="21" class="text_center" text="bind:cnfmtm" mask="##:##:##"/>
  141. <Cell col="22" class="text_center" text="bind:acptdd" mask="####-##-##"/>
  142. <Cell col="23" class="text_center" text="bind:acpttm" mask="##:##:##"/>
  143. <Cell col="24" class="text_center" text="bind:acptnm"/>
  144. <Cell col="25"/>
  145. <Cell col="26"/>
  146. <Cell col="27" text="bind:readdd" mask="####-##-##"/>
  147. <Cell col="28"/>
  148. <Cell col="29"/>
  149. <Cell col="30"/>
  150. </Band>
  151. </Format>
  152. </Formats>
  153. </Grid>
  154. </Layout>
  155. </Layouts>
  156. <Objects>
  157. <Dataset id="ds_hospenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="instcd" type="STRING"/>
  160. <Column id="lendrtnterm" type="STRING"/>
  161. <Column id="recvqualmthdcd" type="STRING"/>
  162. <Column id="plgydeptcd" type="STRING"/>
  163. <Column id="plgyteamcd" type="STRING"/>
  164. <Column id="doctjobgradcd" type="STRING"/>
  165. <Column id="teamjobgradcd" type="STRING"/>
  166. <Column id="csteeqmtip" type="STRING"/>
  167. <Column id="csteeqmtport" type="STRING"/>
  168. <Column id="slideqmtip" type="STRING"/>
  169. <Column id="norcptacptyn" type="STRING"/>
  170. <Column id="slidbceqmtip" type="STRING"/>
  171. <Column id="acptreaddr" type="STRING"/>
  172. <Column id="slidbceqmtip2" type="STRING"/>
  173. <Column id="slidbceqmtport2" type="STRING"/>
  174. <Column id="repttitl" type="STRING"/>
  175. <Column id="repttitl2" type="STRING"/>
  176. <Column id="plgyrecroom1" type="STRING"/>
  177. <Column id="plgyrecroom2" type="STRING"/>
  178. <Column id="ptnoacptflag" type="STRING"/>
  179. <Column id="autoacptflagcd" type="STRING"/>
  180. </ColumnInfo>
  181. </Dataset>
  182. <Dataset id="ds_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  183. <ColumnInfo>
  184. <Column id="sysdd" type="STRING"/>
  185. <Column id="systm" type="STRING"/>
  186. </ColumnInfo>
  187. </Dataset>
  188. <Dataset id="ds_rsltlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  189. <ColumnInfo>
  190. <Column id="instcd" type="STRING"/>
  191. <Column id="ptnocd" type="STRING"/>
  192. <Column id="ptnonm" type="STRING"/>
  193. </ColumnInfo>
  194. </Dataset>
  195. <Dataset id="ds_acptspclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="instcd" type="STRING"/>
  198. <Column id="ptno" type="STRING"/>
  199. <Column id="dispptno" type="STRING"/>
  200. <Column id="prcpdd" type="STRING"/>
  201. <Column id="prcptm" type="STRING"/>
  202. <Column id="execprcpuniqno" type="STRING"/>
  203. <Column id="trandd" type="STRING"/>
  204. <Column id="trantm" type="STRING"/>
  205. <Column id="testcd" type="STRING"/>
  206. <Column id="testnm" type="STRING"/>
  207. <Column id="delivedd" type="STRING"/>
  208. <Column id="delivetm" type="STRING"/>
  209. <Column id="delivenm" type="STRING"/>
  210. <Column id="cnfmdd" type="STRING"/>
  211. <Column id="cnfmtm" type="STRING"/>
  212. <Column id="pid" type="STRING"/>
  213. <Column id="patnm" type="STRING"/>
  214. <Column id="patflagnm" type="STRING"/>
  215. <Column id="spcbarcdno" type="STRING"/>
  216. <Column id="spcacptdd" type="STRING"/>
  217. <Column id="spcacptno" type="STRING"/>
  218. <Column id="acptdd" type="STRING"/>
  219. <Column id="acpttm" type="STRING"/>
  220. <Column id="acptnm" type="STRING"/>
  221. <Column id="readdd" type="STRING"/>
  222. <Column id="readdrnm" type="STRING"/>
  223. <Column id="grosdrnm" type="STRING"/>
  224. <Column id="orddrnm" type="STRING"/>
  225. <Column id="orddeptnm" type="STRING"/>
  226. <Column id="spcnm" type="STRING"/>
  227. </ColumnInfo>
  228. </Dataset>
  229. </Objects>
  230. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  231. * System Name : KU2.0
  232. * Job Name :
  233. * File Name : SPLPP02800_frozen검체현황조회.xfdl
  234. * Creator :
  235. * Make Date : 2015-11-11
  236. *
  237. * Description :
  238. *---------------------------------------------------------------------------------------
  239. * Modify Date Modifier Modify Description
  240. *---------------------------------------------------------------------------------------
  241. * 2015-11-11 DBS Converting Program(TF->XP)
  242. *
  243. *---------------------------------------------------------------------------------------
  244. ****************************************************************************************/
  245. //=======================================================================================
  246. // Lib Include
  247. //---------------------------------------------------------------------------------------
  248. include "com_commonxp::comm_main.xjs";
  249. //=======================================================================================
  250. // Function
  251. //---------------------------------------------------------------------------------------
  252. //콜백함수
  253. function cbf_SPLPP02800(strSvcID, nErrorCode, strErrorMag){
  254. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  255. }
  256. function lf_exeInitialize(){
  257. var sInDsName = dsf_createDsRow("ds_temp_search"
  258. , [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  259. // 서브밋호출
  260. tranf_submit({ id: "TRLPZ00101"
  261. , service: "plgycomnusemngtapp.BaseInfoCode"
  262. , method: "reqGetHospitalEnvironmentSetInfo"
  263. , inds : "refData="+sInDsName
  264. , outds: "ds_hospenvinfo=hospenvinfo"
  265. , callback: "cbf_SPLPP02800"
  266. , async: false
  267. });
  268. sInDsName = dsf_createDsRow("ds_temp_search"
  269. , [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  270. // 서브밋호출
  271. tranf_submit({ id: "TRLPZ00102"
  272. , service: "plgycomnusemngtapp.BaseInfoCode"
  273. , method: "reqGetSystemDateTimeInformation"
  274. , inds : "refData="+sInDsName
  275. , outds: "ds_sysdtinfo=sysdtinfo"
  276. , callback: "cbf_SPLPP02800"
  277. , async: false
  278. });
  279. sInDsName = dsf_createDsRow("ds_temp_search"
  280. , [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
  281. , {col: "refflagcd", val: "0"}]);
  282. // 서브밋호출
  283. tranf_submit({ id: "TRLPZ00109"
  284. , service: "plgycomnusemngtapp.BaseInfoCode"
  285. , method: "reqGetPtNoCdList"
  286. , inds : "refdata="+sInDsName
  287. , outds: "ds_rsltlist=rsltlist"
  288. , callback: "cbf_SPLPP02800"
  289. , async: false
  290. });
  291. if(frmf_checkOpener()){
  292. var param = opener.frmf_getParameter("opener_parameter_id");
  293. if(param != ""){
  294. div_search.ipt_refval.value = param;
  295. }
  296. }
  297. // 병리번호 목록 조회
  298. lf_getSpcStatList();
  299. }
  300. function lf_getSpcStatList(){
  301. var sPtNoFrom = "";
  302. var sPtNoTo = "";
  303. var sFromDD = "";
  304. var sToDD = "";
  305. var sTemp = "";
  306. var nCntdelive = 0 ;
  307. var nCntcnfm = 0 ;
  308. var nCntacpt = 0 ;
  309. if(utlf_isNull(div_search.ipt_refval.value)){
  310. sysf_messageBox("바코드번호를", "C001", "");
  311. div_search.ipt_refval.setFocus();
  312. return false;
  313. }
  314. sInDsName = dsf_createDsRow("ds_temp_search"
  315. , [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
  316. , {col: "refmthd", val: "0"}
  317. , {col: "refval", val: div_search.ipt_refval.value}
  318. , {col: "acptfromdd", val: ""}
  319. , {col: "acpttodd", val: ""}
  320. , {col: "ptnocode", val: sTemp.replace("-", "")}
  321. , {col: "fromyear", val: sFromDD.substr(2,2)}
  322. , {col: "fromptno", val: "000000"}
  323. , {col: "toyear", val: sToDD.substr(2,2)}
  324. , {col: "toptno", val: "999999"}]);
  325. // 서브밋호출
  326. tranf_submit({ id: "TRLPP01101"
  327. , service: "plgyrefmngtapp.TestRsltRef"
  328. , method: "reqGetSpcStatList"
  329. , inds : "refData="+sInDsName
  330. , outds: "ds_acptspclist=acptspclist"
  331. , callback: "cbf_SPLPP02800"
  332. , async: false
  333. });
  334. for(i = 0; i < ds_acptspclist.rowcount; i++){
  335. if(ds_acptspclist.getColumn(i, "delivedd") != "-" && !utlf_isNull(ds_acptspclist.getColumn(i, "delivedd"))){
  336. nCntdelive = nCntdelive + 1;
  337. }
  338. if(ds_acptspclist.getColumn(i, "cnfmdd") != "-" && !utlf_isNull(ds_acptspclist.getColumn(i, "cnfmdd"))){
  339. nCntcnfm = nCntcnfm + 1;
  340. }
  341. if(ds_acptspclist.getColumn(i, "acptdd") != "-" && !utlf_isNull(ds_acptspclist.getColumn(i, "acptdd"))){
  342. nCntacpt = nCntacpt + 1;
  343. }
  344. }
  345. opt_spctran.value = nCntdelive;
  346. opt_spcrecv.value = nCntcnfm;
  347. opt_spcacpt.value = nCntacpt;
  348. }
  349. //=======================================================================================
  350. // Event
  351. //---------------------------------------------------------------------------------------
  352. /****************************************************************************************
  353. * Components :
  354. * Components ID : SPLPP02800
  355. * Event : onload
  356. * Argument : 01.obj : Object Event has occurred
  357. * : 02.e : Event Object
  358. * Description :
  359. ****************************************************************************************/
  360. function SPLPP02800_onload(obj:Form, e:LoadEventInfo){
  361. //폼 초기화 함수
  362. frmf_initForm(obj);
  363. lf_exeInitialize();
  364. }
  365. /****************************************************************************************
  366. * Components :
  367. * Components ID : ipt_refval
  368. * Event : onkeydown
  369. * Argument : 01.obj : Object Event has occurred
  370. * : 02.e : Event Object
  371. * Description :
  372. ****************************************************************************************/
  373. function div_search_ipt_refval_onkeydown(obj:Edit, e:KeyEventInfo){
  374. if(e.keycode == 13){
  375. lf_getSpcStatList();
  376. div_search.ipt_refval.setSelect(0, div_search.ipt_refval.getLength());
  377. }
  378. }
  379. /****************************************************************************************
  380. * Components :
  381. * Components ID : ipt_refval
  382. * Event : oneditclick
  383. * Argument : 01.obj : Object Event has occurred
  384. * : 02.e : Event Object
  385. * Description :
  386. ****************************************************************************************/
  387. function div_search_ipt_refval_oneditclick(obj:Edit, e:EditClickEventInfo){
  388. div_search.ipt_refval.setSelect(0, div_search.ipt_refval.getLength());
  389. }
  390. /****************************************************************************************
  391. * Components :
  392. * Components ID : btn_exit
  393. * Event : onclick
  394. * Argument : 01.obj : Object Event has occurred
  395. * : 02.e : Event Object
  396. * Description :
  397. ****************************************************************************************/
  398. function btn_exit_onclick(obj:Button, e:ClickEventInfo){
  399. close("return value");
  400. }
  401. /****************************************************************************************
  402. * Components :
  403. * Components ID : btn_search
  404. * Event : onclick
  405. * Argument : 01.obj : Object Event has occurred
  406. * : 02.e : Event Object
  407. * Description :
  408. ****************************************************************************************/
  409. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo){
  410. lf_getSpcStatList();
  411. }
  412. ]]></Script>
  413. </Form>
  414. </FDL>