SPLPJ01700_검체접수조회.xfdl 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPJ01700" position="absolute 0 0 983 606" titletext="접수검체조회" oninit="SPLPJ01700_oninit" onload="SPLPJ01700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 574 980 601" id="grp_btn" scrollbars="autoboth" anchor="left right bottom">
  8. <Layouts>
  9. <Layout width="980" height="27">
  10. <Button position="absolute 924 5 980 27" id="btn_exit" class="btn4" taborder="12" text="닫기" onclick="grp_btn_btn_exit_onclick" anchor="right"/>
  11. <Button position="absolute 0 5 92 27" id="button26" class="btn3" text="프린터설정" onclick="grp_btn_button26_onclick" anchor="left top"/>
  12. <Button position="absolute 94 5 186 27" id="btn_prnt" class="btn3" text="바코드출력" onclick="grp_btn_btn_prnt_onclick" anchor="left top"/>
  13. <Button position="absolute 188 5 280 27" id="button1" class="btn3" text="의뢰지출력" onclick="grp_btn_button1_onclick" anchor="left top"/>
  14. <Button position="absolute 282 5 374 27" id="button2" class="btn3" text="보고서출력" onclick="grp_btn_button2_onclick" anchor="left top"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Static id="caption1" text="바코드번호 목록" class="tit_2" position="absolute 1 71 118 87" anchor="left top"/>
  19. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 980 93" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  20. <Grid id="grd_acptspclist" class="datagrid2" taborder="5" binddataset="ds_grd_acptspclist" useinputpanel="false" position="absolute 0 91 980 574" autofittype="col" anchor="all" cellsizingtype="col">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="26"/>
  25. <Column size="32"/>
  26. <Column size="0"/>
  27. <Column size="90"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="70"/>
  31. <Column size="0"/>
  32. <Column size="80"/>
  33. <Column size="70"/>
  34. <Column size="80"/>
  35. <Column size="90"/>
  36. <Column size="0"/>
  37. <Column size="110"/>
  38. <Column size="196"/>
  39. <Column size="120"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell/>
  55. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  56. <Cell col="2" text="기관코드"/>
  57. <Cell col="3" text="바코드번호"/>
  58. <Cell col="4" text="처방일자"/>
  59. <Cell col="5" text="이송일자"/>
  60. <Cell col="6" text="접수일자"/>
  61. <Cell col="7" text="ptno"/>
  62. <Cell col="8" text="병리번호"/>
  63. <Cell col="9" text="등록번호"/>
  64. <Cell col="10" text="환자명"/>
  65. <Cell col="11" text="진료과"/>
  66. <Cell col="12" text="진료의"/>
  67. <Cell col="13" text="병동/병실"/>
  68. <Cell col="14" text="처방"/>
  69. <Cell col="15" text="검체명"/>
  70. <Cell col="16" text="isolabbrcd"/>
  71. <Cell col="17" text="최대검체번호"/>
  72. <Cell col="18" text="의뢰지번호"/>
  73. <Cell col="19" text="prntprcpdispnm"/>
  74. <Cell col="20" text="prntprcpdispnm2"/>
  75. <Cell col="21" text="workflagcd"/>
  76. <Cell col="22" text="sexage"/>
  77. <Cell col="23" text="spcacptseqno"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell text="expr:currow + 1"/>
  81. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  82. <Cell col="2" text="bind:instcd"/>
  83. <Cell col="3" text="bind:spcbarcdno"/>
  84. <Cell col="4" text="bind:prcpdd" mask="yyyy-mm-dd"/>
  85. <Cell col="5" text="bind:trandd" mask="yyyy-mm-dd"/>
  86. <Cell col="6" displaytype="date" edittype="date" text="bind:acptdd" mask="yyyy-MM-dd"/>
  87. <Cell col="7" text="bind:ptno"/>
  88. <Cell col="8" text="bind:dispptno"/>
  89. <Cell col="9" text="bind:pid"/>
  90. <Cell col="10" text="bind:patnm"/>
  91. <Cell col="11" text="bind:orddeptnm"/>
  92. <Cell col="12" text="bind:orddrnm"/>
  93. <Cell col="13" text="bind:wardroom"/>
  94. <Cell col="14" style="align:left;" text="bind:testnmlist"/>
  95. <Cell col="15" style="align:left middle;" text="bind:spcnm"/>
  96. <Cell col="16" text="bind:isolabbrcd"/>
  97. <Cell col="17" text="bind:maxseqno"/>
  98. <Cell col="18" text="bind:reqfrmno"/>
  99. <Cell col="19" text="bind:prntprcpdispnm"/>
  100. <Cell col="20" text="bind:prntprcpdispnm2"/>
  101. <Cell col="21" text="bind:workflagcd"/>
  102. <Cell col="22" text="bind:sexage"/>
  103. <Cell col="23" text="bind:spcacptseqno"/>
  104. </Band>
  105. </Format>
  106. </Formats>
  107. </Grid>
  108. <Div id="grp_biz" taborder="13" class="div_SA" position="absolute 0 0 980 64" anchor="left top right">
  109. <Layouts>
  110. <Layout>
  111. <Static id="caption3" text="검색방법 :" class="search_name" position="absolute 15 36 90 53" anchor="left top"/>
  112. <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 568 9 642 26" anchor="top right"/>
  113. <Static id="caption4" text="~" class="search_no_b" position="absolute 762 11 778 28" anchor="top right"/>
  114. <Calendar id="ipt_ordddfrom" taborder="1" class="input_s_essential" position="absolute 642 8 757 27" anchor="top right"/>
  115. <Calendar id="ipt_ordddto" taborder="2" class="input_s_essential" position="absolute 776 8 891 27" anchor="top right" onkeyup="grp_biz_ipt_ordddto_onkeyup"/>
  116. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 891 8 897 51" anchor="top right"/>
  117. <Edit id="ipt_refval" taborder="3" class="input_search" position="absolute 209 36 339 55" anchor="left top" onkeydown="grp_biz_ipt_refval_onkeydown"/>
  118. <Combo id="cmb_srchmthd" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 107 36 207 55" anchor="left top">
  119. <Dataset id="innerdataset">
  120. <ColumnInfo>
  121. <Column id="codecolumn"/>
  122. <Column id="datacolumn"/>
  123. </ColumnInfo>
  124. <Rows>
  125. <Row>
  126. <Col id="codecolumn">0</Col>
  127. <Col id="datacolumn">등록번호</Col>
  128. </Row>
  129. <Row>
  130. <Col id="codecolumn">2</Col>
  131. <Col id="datacolumn">바코드번호</Col>
  132. </Row>
  133. </Rows>
  134. </Dataset>
  135. </Combo>
  136. <Combo id="cbo_ptnocd" taborder="5" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 107 8 207 27" anchor="left top"/>
  137. <Edit id="ipt_fromptno" taborder="6" class="text_center" position="absolute 239 8 289 27" anchor="left top"/>
  138. <Static id="caption5" text="병리번호 :" class="search_name" position="absolute 15 9 89 26" anchor="left top"/>
  139. <Static id="caption6" text="~" class="search_no_b" position="absolute 292 8 304 25" anchor="left top"/>
  140. <Edit id="input1" taborder="7" class="text_center" position="absolute 337 8 387 27" anchor="left top"/>
  141. <Edit id="input2" taborder="8" class="text_center" position="absolute 307 8 334 27" anchor="left top"/>
  142. <Edit id="ipt_fromyear" taborder="9" class="text_center" position="absolute 209 8 236 27" anchor="left top"/>
  143. <Static id="caption7" text="바 코 드 :" class="search_name" position="absolute 569 36 640 52" anchor="top right"/>
  144. <Radio id="rdo_barcdtype" taborder="10" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 651 35 885 59" anchor="top right">
  145. <Dataset id="innerdataset">
  146. <ColumnInfo>
  147. <Column id="codecolumn"/>
  148. <Column id="datacolumn"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="codecolumn">0</Col>
  153. <Col id="datacolumn">접수라벨</Col>
  154. </Row>
  155. <Row>
  156. <Col id="codecolumn">1</Col>
  157. <Col id="datacolumn">바코드</Col>
  158. </Row>
  159. <Row>
  160. <Col id="codecolumn">2</Col>
  161. <Col id="datacolumn">의뢰지/보고서</Col>
  162. </Row>
  163. </Rows>
  164. </Dataset>
  165. </Radio>
  166. <Button id="btn_sea" taborder="11" text="검색" class="btn1" position="absolute 909 19 965 41" anchor="top right" onclick="grp_biz_btn_sea_onclick"/>
  167. </Layout>
  168. </Layouts>
  169. </Div>
  170. </Layout>
  171. </Layouts>
  172. <Objects>
  173. <Dataset id="ds_grd_acptspclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="choi" type="STRING"/>
  176. <Column id="instcd" type="STRING"/>
  177. <Column id="spcbarcdno" type="STRING"/>
  178. <Column id="prcpdd" type="STRING"/>
  179. <Column id="trandd" type="STRING"/>
  180. <Column id="acptdd" type="STRING"/>
  181. <Column id="ptno" type="STRING"/>
  182. <Column id="dispptno" type="STRING"/>
  183. <Column id="pid" type="STRING"/>
  184. <Column id="patnm" type="STRING"/>
  185. <Column id="orddeptnm" type="STRING"/>
  186. <Column id="orddrnm" type="STRING"/>
  187. <Column id="wardroom" type="STRING"/>
  188. <Column id="prcpdispnm" type="STRING"/>
  189. <Column id="spcdispnm" type="STRING"/>
  190. <Column id="isolabbrcd" type="STRING"/>
  191. <Column id="maxseqno" type="STRING"/>
  192. <Column id="reqfrmno" type="STRING"/>
  193. <Column id="prntprcpdispnm" type="STRING"/>
  194. <Column id="prntprcpdispnm2" type="STRING"/>
  195. <Column id="workflagcd" type="STRING"/>
  196. <Column id="sexage" type="STRING"/>
  197. <Column id="spcacptseqno" type="STRING"/>
  198. <Column id="testnmlist" type="STRING" size="256"/>
  199. <Column id="spcnm" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. </Dataset>
  202. <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  203. <ColumnInfo>
  204. <Column id="ptnonm" type="STRING"/>
  205. <Column id="ptnocd" type="STRING"/>
  206. </ColumnInfo>
  207. </Dataset>
  208. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="sysdd" type="STRING" size="256"/>
  211. <Column id="systm" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. </Dataset>
  214. <Dataset id="ds_barcdprntsetup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="prntsetupinfo" type="STRING" size="256"/>
  217. <Column id="macaddr" type="STRING" size="256"/>
  218. </ColumnInfo>
  219. </Dataset>
  220. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  221. <ColumnInfo>
  222. <Column id="ptnocode" type="STRING" size="256"/>
  223. <Column id="fromyear" type="STRING" size="256"/>
  224. <Column id="fromptno" type="STRING" size="256"/>
  225. <Column id="toyear" type="STRING" size="256"/>
  226. <Column id="toptno" type="STRING" size="256"/>
  227. <Column id="acptfromdd" type="STRING" size="256"/>
  228. <Column id="acpttodd" type="STRING" size="256"/>
  229. <Column id="refmthdcd" type="STRING" size="256"/>
  230. <Column id="refval" type="STRING" size="256"/>
  231. <Column id="barcdtype" type="STRING" size="256"/>
  232. <Column id="sysdt" type="STRING" size="256"/>
  233. <Column id="ptnocd" type="STRING" size="256"/>
  234. </ColumnInfo>
  235. <Rows>
  236. <Row/>
  237. </Rows>
  238. </Dataset>
  239. <Dataset id="ds_data_setupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  240. <ColumnInfo>
  241. <Column id="dsvaluepath" type="STRING" size="256"/>
  242. <Column id="prntkind" type="STRING" size="256"/>
  243. <Column id="commkind" type="STRING" size="256"/>
  244. <Column id="rexgbn" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. </Dataset>
  247. <Dataset id="ds_data_blank" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  248. <ColumnInfo>
  249. <Column id="dsvaluepath" type="STRING" size="256"/>
  250. <Column id="left" type="STRING" size="256"/>
  251. <Column id="top" type="STRING" size="256"/>
  252. <Column id="b472size" type="STRING" size="256"/>
  253. </ColumnInfo>
  254. </Dataset>
  255. <Dataset id="ds_data_comm01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  256. <ColumnInfo>
  257. <Column id="setupval" type="STRING" size="256"/>
  258. </ColumnInfo>
  259. </Dataset>
  260. <Dataset id="ds_data_comm02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="dsvaluepath" type="STRING" size="256"/>
  263. <Column id="comm" type="STRING" size="256"/>
  264. <Column id="databit" type="STRING" size="256"/>
  265. <Column id="stopbit" type="STRING" size="256"/>
  266. <Column id="baudrate" type="STRING" size="256"/>
  267. <Column id="parity" type="STRING" size="256"/>
  268. </ColumnInfo>
  269. <Rows>
  270. <Row>
  271. <Col id="dsvaluepath">/setupinfo</Col>
  272. <Col id="comm">2</Col>
  273. <Col id="databit">8</Col>
  274. <Col id="stopbit">1</Col>
  275. <Col id="baudrate">9600</Col>
  276. <Col id="parity">n</Col>
  277. </Row>
  278. </Rows>
  279. </Dataset>
  280. <Dataset id="ds_data_comm03" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  281. <ColumnInfo>
  282. <Column id="dsvaluepath" type="STRING" size="256"/>
  283. <Column id="comm" type="STRING" size="256"/>
  284. <Column id="databit" type="STRING" size="256"/>
  285. <Column id="stopbit" type="STRING" size="256"/>
  286. <Column id="baudrate" type="STRING" size="256"/>
  287. <Column id="parity" type="STRING" size="256"/>
  288. <Column id="daegiip" type="STRING" size="256"/>
  289. </ColumnInfo>
  290. <Rows>
  291. <Row>
  292. <Col id="dsvaluepath">/setupinfo</Col>
  293. <Col id="comm">2</Col>
  294. <Col id="databit">8</Col>
  295. <Col id="stopbit">1</Col>
  296. <Col id="baudrate">9600</Col>
  297. <Col id="parity">n</Col>
  298. </Row>
  299. </Rows>
  300. </Dataset>
  301. <Dataset id="ds_init_prntinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  302. <Dataset id="ds_prntinfo_acptspclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  303. <ColumnInfo>
  304. <Column id="choi" type="STRING" size="256"/>
  305. <Column id="instcd" type="STRING" size="256"/>
  306. <Column id="spcbarcdno" type="STRING" size="256"/>
  307. <Column id="prcpdd" type="STRING" size="256"/>
  308. <Column id="trandd" type="STRING" size="256"/>
  309. <Column id="acptdd" type="STRING" size="256"/>
  310. <Column id="ptno" type="STRING" size="256"/>
  311. <Column id="pid" type="STRING" size="256"/>
  312. <Column id="patnm" type="STRING" size="256"/>
  313. <Column id="sexage" type="STRING" size="256"/>
  314. <Column id="orddeptnm" type="STRING" size="256"/>
  315. <Column id="orddrnm" type="STRING" size="256"/>
  316. <Column id="wardroom" type="STRING" size="256"/>
  317. <Column id="maxseqno" type="STRING" size="256"/>
  318. <Column id="reqfrmno" type="STRING" size="256"/>
  319. <Column id="workflagcd" type="STRING" size="256"/>
  320. <Column id="isolabbrcd" type="STRING" size="256"/>
  321. <Column id="spcdispnm" type="STRING" size="256"/>
  322. <Column id="prntprcpdispnm" type="STRING" size="256"/>
  323. <Column id="prntprcpdispnm2" type="STRING" size="256"/>
  324. <Column id="dispptno" type="STRING" size="256"/>
  325. <Column id="prcpdispnm" type="STRING" size="256"/>
  326. </ColumnInfo>
  327. </Dataset>
  328. </Objects>
  329. <Bind>
  330. <BindItem id="item0" compid="grp_biz.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
  331. <BindItem id="item1" compid="grp_biz.input2" propid="value" datasetid="ds_init" columnid="toyear"/>
  332. <BindItem id="item2" compid="grp_biz.ipt_ordddfrom" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
  333. <BindItem id="item3" compid="grp_biz.ipt_ordddto" propid="value" datasetid="ds_init" columnid="acpttodd"/>
  334. <BindItem id="item4" compid="grp_biz.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
  335. <BindItem id="item5" compid="grp_biz.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
  336. <BindItem id="item6" compid="grp_biz.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
  337. <BindItem id="item7" compid="grp_biz.cmb_srchmthd" propid="value" datasetid="ds_init" columnid="refmthdcd"/>
  338. <BindItem id="item8" compid="grp_biz.ipt_refval" propid="value" datasetid="ds_init" columnid="refval"/>
  339. <BindItem id="item9" compid="grp_biz.rdo_barcdtype" propid="value" datasetid="ds_init" columnid="barcdtype"/>
  340. </Bind>
  341. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  342. * System Name :
  343. * Job Name :
  344. * Creator :
  345. * Make Date : 2015-11-13
  346. * Description :
  347. *---------------------------------------------------------------------------------------
  348. * Modify Date Modifier Modify Description
  349. *---------------------------------------------------------------------------------------
  350. * 2015-11-13 Live Converter TF->XP
  351. *
  352. *---------------------------------------------------------------------------------------
  353. ****************************************************************************************/
  354. include "com_commonxp::comm_main.xjs";
  355. include "lis_commonxp::LLZ001.xjs";
  356. include "lis_commonxp::LPZ001.xjs";
  357. include "lis_commonxp::LZZ002.xjs";
  358. include "com_commodulexp::SSZFM00901.xjs";
  359. function SPLPJ01700_oninit(obj:Form, e:InitEventInfo)
  360. {
  361. frmf_initForm(obj);
  362. }
  363. function SPLPJ01700_onload(obj:Form, e:LoadEventInfo)
  364. {
  365. grdf_initGrid(grd_acptspclist);
  366. fExeInitialize();
  367. lzzfMakeBrcdPrntObjHanDo("CommAX");
  368. }
  369. function fExeInitialize()
  370. {
  371. var sCurDate = "";
  372. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  373. var oParam = {};
  374. oParam.id = "TRLPZ00102";
  375. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  376. oParam.method = "reqGetSystemDateTimeInformation";
  377. oParam.inds = "refData=ds_send";
  378. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  379. oParam.async = false;
  380. //oParam.callback = "cf_TRLPZ00102";
  381. tranf_submit(oParam);
  382. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  383. ,{col : "refflagcd", val : "0"}]);
  384. var oParam = {};
  385. oParam.id = "TRLPZ00109";
  386. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  387. oParam.method = "reqGetPtNoCdList";
  388. oParam.inds = "refdata=ds_send";
  389. oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
  390. oParam.async = false;
  391. //oParam.callback = "cf_TRLPZ00109";
  392. tranf_submit(oParam);
  393. dsf_createDsRow("ds_send", [{col: "scrnid", val: frmf_getScreenID()}]);
  394. var oParam = {};
  395. oParam.id = "TRLLC90101";
  396. oParam.service = "diagtestapplib.LisCommon";
  397. oParam.method = "reqGetSetUpInfo";
  398. oParam.inds = "scrnid=ds_send";
  399. oParam.outds = "ds_barcdprntsetup=getSetUpInfo";
  400. oParam.async = false;
  401. //oParam.callback = "cf_TRLLC90101";
  402. tranf_submit(oParam);
  403. lf_convertXmlToDs(ds_barcdprntsetup.getColumn(0,"prntsetupinfo")); //XML데이터로 프리터설정 관련 DS생성
  404. var sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
  405. ds_init.setColumn(0, "acptfromdd", sCurDate);
  406. ds_init.setColumn(0, "acpttodd", sCurDate);
  407. // ds_init.setColumn(0, "acptfromdd", "20170102");
  408. // ds_init.setColumn(0, "acpttodd", "20170102");
  409. ds_init.setColumn(0, "refmthdcd", "0");
  410. ds_init.setColumn(0, "refval", "");
  411. ds_init.setColumn(0, "barcdtype", "0");
  412. ds_init.setColumn(0, "ptnocode", "");
  413. ds_init.setColumn(0, "fromptno", "");
  414. ds_init.setColumn(0, "toptno", "");
  415. ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
  416. ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
  417. if( !utlf_isNull(ds_init.getColumn(0, "refval")))
  418. {
  419. fGetPatList();
  420. }
  421. grp_biz.ipt_refval.setFocus();
  422. }
  423. function fGetPatList()
  424. {
  425. var sTemp = "";
  426. if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
  427. {
  428. if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
  429. {
  430. ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
  431. }
  432. else
  433. {
  434. sTemp = ds_init.getColumn(0, "fromyear");
  435. ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
  436. }
  437. if( utlf_isNull(ds_init.getColumn(0, "toyear")))
  438. {
  439. ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
  440. }
  441. else
  442. {
  443. sTemp = ds_init.getColumn(0, "toyear");
  444. ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
  445. }
  446. if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
  447. {
  448. ds_init.setColumn(0, "fromptno", "000000");
  449. }
  450. else
  451. {
  452. sTemp = ds_init.getColumn(0, "fromptno");
  453. ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
  454. }
  455. if( utlf_isNull(ds_init.getColumn(0, "toptno")))
  456. {
  457. ds_init.setColumn(0, "toptno", "999999");
  458. }
  459. else
  460. {
  461. sTemp = ds_init.getColumn(0, "toptno");
  462. ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
  463. }
  464. }
  465. sTemp = ds_init.getColumn(0, "ptnocode");
  466. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  467. ,{col : "refmthdcd", val : ds_init.getColumn(0, "refmthdcd")}
  468. ,{col : "refval", val : ds_init.getColumn(0, "refval")}
  469. ,{col : "ptnocode", val : utlf_transNullToEmpty(sTemp).replace("-", "")}
  470. ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
  471. ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
  472. ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
  473. ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}
  474. ,{col : "acptfromdd", val : ds_init.getColumn(0, "acptfromdd")}
  475. ,{col : "acpttodd", val : ds_init.getColumn(0, "acpttodd")}
  476. ,{col : "barcdtype", val : ds_init.getColumn(0, "barcdtype")}]);
  477. var oParam = {};
  478. oParam.id = "TRLPJ01701";
  479. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  480. oParam.method = "reqGetPatList";
  481. oParam.inds = "refdata=ds_send";
  482. oParam.outds = "ds_grd_acptspclist=refrslt";
  483. oParam.async = false;
  484. //oParam.callback = "cf_TRLPJ01701";
  485. tranf_submit(oParam);
  486. ds_grd_acptspclist.addColumn("apcdispnm","string");
  487. ds_grd_acptspclist.addColumn("prcpgenrflag","string");
  488. ds_grd_acptspclist.addColumn("reptflagcd","string");
  489. ds_grd_acptspclist.addColumn("adddiagprtn","string");
  490. ds_grd_acptspclist.addColumn("adddiaglist","string");
  491. ds_grd_acptspclist.addColumn("addrsltlist","string");
  492. ds_grd_acptspclist.addColumn("prntflagcd","string");
  493. ds_grd_acptspclist.addColumn("copyflagcd","string");
  494. ds_grd_acptspclist.addColumn("prntflagcd","string");
  495. }
  496. function fExeBarCdPrnt()
  497. {
  498. var re = /▨/g; // i:1회실행, g:모두실행, gi:전역실행(대소문자 안가림)
  499. var bState = false;
  500. var iCnt = 0;
  501. var sPrcpNm = "";
  502. var sSpcNm = "";
  503. var sPrntPrcpDispNm2 = "";
  504. ds_prntinfo_acptspclist.clearData();
  505. for(var iNo=0; iNo < ds_grd_acptspclist.rowcount; iNo++)
  506. {
  507. if ((ds_grd_acptspclist.getColumn(iNo, "choi") == true) || (ds_grd_acptspclist.getColumn(iNo, "choi") == "1"))
  508. {
  509. trace("iNo="+iNo);
  510. ds_prntinfo_acptspclist.addRow();
  511. trace("rowcount="+ds_prntinfo_acptspclist.rowcount);
  512. // dsf_createDsRow("ds_prntinfo_acptspclist", [{col : "choi", val : ds_grd_acptspclist.getColumn(iNo, "choi")}
  513. // ,{col : "instcd", val : ds_grd_acptspclist.getColumn(iNo, "instcd")}
  514. // ,{col : "spcbarcdno", val : ds_grd_acptspclist.getColumn(iNo, "spcbarcdno")}
  515. // ,{col : "prcpdd", val : ds_grd_acptspclist.getColumn(iNo, "prcpdd")}
  516. // ,{col : "trandd", val : ds_grd_acptspclist.getColumn(iNo, "trandd")}
  517. // ,{col : "acptdd", val : ds_grd_acptspclist.getColumn(iNo, "acptdd")}
  518. // ,{col : "ptno", val : ds_grd_acptspclist.getColumn(iNo, "ptno")}
  519. // ,{col : "pid", val : ds_grd_acptspclist.getColumn(iNo, "pid")}
  520. // ,{col : "patnm", val : ds_grd_acptspclist.getColumn(iNo, "patnm")}
  521. // ,{col : "sexage", val : ds_grd_acptspclist.getColumn(iNo, "sexage")}
  522. // ,{col : "orddeptnm", val : ds_grd_acptspclist.getColumn(iNo, "orddeptnm")}
  523. // ,{col : "orddrnm", val : ds_grd_acptspclist.getColumn(iNo, "orddrnm")}
  524. // ,{col : "wardroom", val : ds_grd_acptspclist.getColumn(iNo, "wardroom")}
  525. // ,{col : "maxseqno", val : ds_grd_acptspclist.getColumn(iNo, "maxseqno")}
  526. // ,{col : "reqfrmno", val : ds_grd_acptspclist.getColumn(iNo, "reqfrmno")}
  527. // ,{col : "workflagcd", val : ds_grd_acptspclist.getColumn(iNo, "workflagcd")}
  528. // ,{col : "isolabbrcd", val : ds_grd_acptspclist.getColumn(iNo, "isolabbrcd")}]);
  529. ds_prntinfo_acptspclist.setColumn(iCnt, "choi", ds_grd_acptspclist.getColumn(iNo, "choi"));
  530. ds_prntinfo_acptspclist.setColumn(iCnt, "instcd", ds_grd_acptspclist.getColumn(iNo, "instcd"));
  531. ds_prntinfo_acptspclist.setColumn(iCnt, "spcbarcdno", ds_grd_acptspclist.getColumn(iNo, "spcbarcdno"));
  532. ds_prntinfo_acptspclist.setColumn(iCnt, "prcpdd", ds_grd_acptspclist.getColumn(iNo, "prcpdd"));
  533. ds_prntinfo_acptspclist.setColumn(iCnt, "trandd", ds_grd_acptspclist.getColumn(iNo, "trandd"));
  534. ds_prntinfo_acptspclist.setColumn(iCnt, "acptdd", ds_grd_acptspclist.getColumn(iNo, "acptdd"));
  535. ds_prntinfo_acptspclist.setColumn(iCnt, "ptno", ds_grd_acptspclist.getColumn(iNo, "ptno"));
  536. ds_prntinfo_acptspclist.setColumn(iCnt, "pid", ds_grd_acptspclist.getColumn(iNo, "pid"));
  537. ds_prntinfo_acptspclist.setColumn(iCnt, "patnm", ds_grd_acptspclist.getColumn(iNo, "patnm"));
  538. ds_prntinfo_acptspclist.setColumn(iCnt, "sexage", ds_grd_acptspclist.getColumn(iNo, "sexage"));
  539. ds_prntinfo_acptspclist.setColumn(iCnt, "orddeptnm", ds_grd_acptspclist.getColumn(iNo, "orddeptnm"));
  540. ds_prntinfo_acptspclist.setColumn(iCnt, "orddrnm", ds_grd_acptspclist.getColumn(iNo, "orddrnm"));
  541. ds_prntinfo_acptspclist.setColumn(iCnt, "wardroom", ds_grd_acptspclist.getColumn(iNo, "wardroom"));
  542. ds_prntinfo_acptspclist.setColumn(iCnt, "maxseqno", ds_grd_acptspclist.getColumn(iNo, "maxseqno"));
  543. ds_prntinfo_acptspclist.setColumn(iCnt, "reqfrmno", ds_grd_acptspclist.getColumn(iNo, "reqfrmno"));
  544. ds_prntinfo_acptspclist.setColumn(iCnt, "workflagcd", ds_grd_acptspclist.getColumn(iNo, "workflagcd"));
  545. ds_prntinfo_acptspclist.setColumn(iCnt, "isolabbrcd", ds_grd_acptspclist.getColumn(iNo, "isolabbrcd"));
  546. //ds_prntinfo_acptspclist.setColumn(iCnt, "choi", ds_grd_acptspclist.getColumn(iNo, "choi"));
  547. //ds_prntinfo_acptspclist.setColumn(iNo, "choi", ds_grd_acptspclist.
  548. // ds_prntinfo_acptspclist.copyData(ds_grd_acptspclist);
  549. // ds_prntinfo_acptspclist.filterstr = "choi == 1";
  550. // 0:접수바코드, 1:이송(전달)바코드
  551. // 검체순번을 채혈바코드는 검체명 옆에 붙이고, 접수바코드는 병리번호 옆에 붙인다.
  552. if( ds_init.getColumn(0, "barcdtype") == "1")
  553. {
  554. sSpcNm = Number(ds_grd_acptspclist.getColumn(iNo, "spcacptseqno")) + "/";
  555. sSpcNm += Number(ds_grd_acptspclist.getColumn(iNo, "maxseqno"));
  556. sSpcNm += " " + ds_grd_acptspclist.getColumn(iNo, "spcdispnm");
  557. //dsf_makeValue(ds_prntinfo_acptspclist, "spcdispnm", sSpcNm, iNo);
  558. ds_prntinfo_acptspclist.setColumn(iCnt, "spcdispnm", sSpcNm);
  559. //원처방표시명
  560. sPrcpNm = ds_grd_acptspclist.getColumn(iNo, "testnmlist");
  561. if (!utlf_isNull(sPrcpNm))
  562. {
  563. sPrcpNm = sPrcpNm.replace(re, ",");
  564. }
  565. //dsf_makeValue(ds_prntinfo_acptspclist, "prntprcpdispnm", "string",sPrcpNm);
  566. ds_prntinfo_acptspclist.setColumn(iCnt, "prntprcpdispnm", sPrcpNm);
  567. sPrntPrcpDispNm2 = ds_grd_acptspclist.getColumn(iNo, "prntprcpdispnm2");
  568. sPrntPrcpDispNm2 = sPrntPrcpDispNm2.replace("▨", ",");
  569. //dsf_makeValue(ds_prntinfo_acptspclist, "prntprcpdispnm2", sPrntPrcpDispNm2, iNo);
  570. ds_prntinfo_acptspclist.setColumn(iCnt, "prntprcpdispnm2", sPrntPrcpDispNm2);
  571. }
  572. else
  573. {
  574. //dsf_makeValue(ds_prntinfo_acptspclist, "spcdispnm", "string", ds_grd_acptspclist.getColumn(iNo, "spcnm"));
  575. ds_prntinfo_acptspclist.setColumn(iCnt, "spcdispnm", ds_grd_acptspclist.getColumn(iNo, "spcnm"));
  576. sSpcNm = ds_grd_acptspclist.getColumn(iNo, "dispptno") + " ";
  577. sSpcNm += Number(ds_grd_acptspclist.getColumn(iNo, "spcacptseqno")) + "/";
  578. sSpcNm += Number(ds_grd_acptspclist.getColumn(iNo, "maxseqno"));
  579. //dsf_makeValue(ds_prntinfo_acptspclist, "dispptno", "string",sSpcNm);
  580. ds_prntinfo_acptspclist.setColumn(iCnt, "dispptno", sSpcNm);
  581. sPrcpNm = ds_grd_acptspclist.getColumn(iNo, "testnmlist");
  582. if (!utlf_isNull(sPrcpNm))
  583. {
  584. sPrcpNm = sPrcpNm.replace(re, ",");
  585. }
  586. //dsf_makeValue(ds_prntinfo_acptspclist, "prcpdispnm", "string",sPrcpNm);
  587. ds_prntinfo_acptspclist.setColumn(iCnt, "prcpdispnm", sPrcpNm);
  588. }
  589. iCnt++;
  590. bState = true;
  591. }
  592. }
  593. trace("bState="+bState);
  594. if (bState)
  595. {
  596. lpzfAcptBarCd(ds_init.getColumn(0,"barcdtype"), ds_barcdprntsetup, ds_prntinfo_acptspclist);
  597. }
  598. }
  599. //의뢰지출력
  600. function fExeReqFrmPrnt()
  601. {
  602. for(var iNo = 0; iNo < ds_grd_acptspclist.rowcount; iNo++)
  603. {
  604. if ((ds_grd_acptspclist.getColumn(iNo, "choi") == "1") || (ds_grd_acptspclist.getColumn(iNo, "choi") == "true"))
  605. {
  606. if(ds_grd_acptspclist.getColumn(iNo, "reqfrmno") != "0")
  607. {
  608. var nPrcpgenrflag = "O";
  609. if (ds_grd_acptspclist.getColumn(iNo, "prcpgenrflag") == "건진")
  610. {
  611. nPrcpgenrflag = "S";
  612. }
  613. else if(ds_grd_acptspclist.getColumn(iNo, "prcpgenrflag") == "건진")
  614. {
  615. nPrcpgenrflag = "S";
  616. }
  617. else
  618. {
  619. nPrcpgenrflag = "I";
  620. }
  621. dsf_createDsRow("ds_init_prntinfo", [{col : "ptno", val : ds_grd_acptspclist.getColumn(iNo, "ptno")} // 병리번호
  622. ,{col : "pid", val : ds_grd_acptspclist.getColumn(iNo, "pid")} //
  623. ,{col : "acptdd", val : ds_grd_acptspclist.getColumn(iNo, "acptdd")}
  624. ,{col : "prcpgenrflag", val : nPrcpgenrflag}
  625. ,{col : "reptflagcd", val : "0"} // 의뢰지(0), 보고서(1)
  626. ,{col : "adddiagprtn", val : ds_grd_acptspclist.getColumn(iNo, "adddiagprtn")}
  627. ,{col : "adddiaglist", val : ds_grd_acptspclist.getColumn(iNo, "adddiaglist")}
  628. ,{col : "addrsltlist", val : ds_grd_acptspclist.getColumn(iNo, "addrsltlist")}
  629. ,{col : "prntflagcd", val : "0"} // 출력(0), 미리보기(1)
  630. ,{col : "copyflagcd", val : "0"}]);
  631. lpzfExeFrmPrnt(ds_init_prntinfo);
  632. }
  633. }
  634. }
  635. }
  636. //보고서출력
  637. function fExeReprtFrmPrnt()
  638. {
  639. for(var iNo = 0; iNo < ds_grd_acptspclist.rowcount; iNo++)
  640. {
  641. if ((ds_grd_acptspclist.getColumn(iNo, "choi") == "1") || (ds_grd_acptspclist.getColumn(iNo, "choi") == "true"))
  642. {
  643. var nPrcpgenrflag = "O";
  644. if (ds_grd_acptspclist.getColumn(iNo, "prcpgenrflag") == "건진")
  645. {
  646. nPrcpgenrflag = "S";
  647. }
  648. else if(ds_grd_acptspclist.getColumn(iNo, "prcpgenrflag") == "건진")
  649. {
  650. nPrcpgenrflag = "S";
  651. }
  652. else
  653. {
  654. nPrcpgenrflag = "I";
  655. }
  656. dsf_createDsRow("ds_init_prntinfo", [{col : "ptno", val : ds_grd_acptspclist.getColumn(iNo, "ptno")} // 병리번호
  657. ,{col : "pid", val : ds_grd_acptspclist.getColumn(iNo, "pid")} //
  658. ,{col : "acptdd", val : ds_grd_acptspclist.getColumn(iNo, "acptdd")}
  659. //,{col : "prcpgenrflag", val : nPrcpgenrflag}
  660. ,{col : "reptflagcd", val : "1"} // 의뢰지(0), 보고서(1)
  661. ,{col : "adddiagprtn", val : ds_grd_acptspclist.getColumn(iNo, "adddiagprtn")}
  662. ,{col : "adddiaglist", val : ds_grd_acptspclist.getColumn(iNo, "adddiaglist")}
  663. ,{col : "addrsltlist", val : ds_grd_acptspclist.getColumn(iNo, "addrsltlist")}
  664. ,{col : "prntflagcd", val : "0"} // 출력(0), 미리보기(1)
  665. ,{col : "copyflagcd", val : "0"}]);
  666. //return true;
  667. lpzfExeFrmPrnt(ds_init_prntinfo);
  668. }
  669. }
  670. }
  671. //프린터설정
  672. function fExeBarCdPopupCall()
  673. {
  674. var objArg = new Object();
  675. objArg.arg_sSetupInfo = ds_barcdprntsetup.getColumn(0,"prntsetupinfo");
  676. objArg.arg_sCallBackFunction = "lf_convertXmlToDs";
  677. frmf_open("SPLLC90100", "SPLLC90100", objArg, "", "", "", "", "", "", "", "", "", "M");
  678. }
  679. //조회
  680. function grp_biz_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  681. {
  682. fGetPatList();
  683. }
  684. //조회
  685. function grp_biz_ipt_ordddto_onkeyup(obj:Calendar, e:KeyEventInfo)
  686. {
  687. if(e.keycode == 13)
  688. {
  689. fGetPatList();
  690. }
  691. }
  692. //닫기
  693. function grp_btn_btn_exit_onclick(obj:Button, e:ClickEventInfo)
  694. {
  695. this.close();
  696. }
  697. //프린터설정
  698. function grp_btn_button26_onclick(obj:Button, e:ClickEventInfo)
  699. {
  700. fExeBarCdPopupCall();
  701. }
  702. //바코드출력
  703. function grp_btn_btn_prnt_onclick(obj:Button, e:ClickEventInfo)
  704. {
  705. fExeBarCdPrnt();
  706. }
  707. //의뢰지출력
  708. function grp_btn_button1_onclick(obj:Button, e:ClickEventInfo)
  709. {
  710. fExeReqFrmPrnt();
  711. }
  712. //보고서출력
  713. function grp_btn_button2_onclick(obj:Button, e:ClickEventInfo)
  714. {
  715. fExeReprtFrmPrnt();
  716. }
  717. function grp_biz_ipt_refval_onkeydown(obj:Edit, e:KeyEventInfo)
  718. {
  719. if(e.keycode == 13)
  720. {
  721. ds_init.setColumn(0, "refval", obj.value);
  722. fGetPatList();
  723. }
  724. }
  725. ]]></Script>
  726. </Form>
  727. </FDL>