SMLLR91100_현장검사결과등록.xfdl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLR91100" position="absolute 0 0 783 724" titletext="현장검사결과등록" oninit="SMLLR91100_oninit" onload="SMLLR91100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="현장검사결과등록" class="tit_2" position="absolute 1 1 127 17"/>
  8. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 70 780 76" style="strokepen:3 solid #33bbbbff;"/>
  9. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 17 775 23" style="strokepen:3 solid #33bbbbff;"/>
  10. <Static id="caption5" text="환자명" class="cell_1" position="absolute 0 -140 72 -117"/>
  11. <Edit id="patnm" taborder="1" readonly="true" position="absolute 350 23 485 42" autoselect="true" class="output"/>
  12. <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 0 41 775 47"/>
  13. <Static id="caption3" text="검 사 자" class="cell_1" position="absolute 490 21 562 44"/>
  14. <Static id="caption4" text="등 록 번 호" class="cell_1" position="absolute 0 21 72 44" style="padding:0 0 0 5;"/>
  15. <Static id="caption9" text="환 자 명" class="cell_1" position="absolute 275 21 347 44"/>
  16. <Edit id="ipt_userid" taborder="3" position="absolute 565 23 635 42" autoselect="true" onkeydown="ipt_userid_onkeydown"/>
  17. <Edit id="output1" taborder="4" readonly="true" position="absolute 638 23 713 42" autoselect="true" class="output"/>
  18. <Button id="button23" taborder="5" text="저장" class="btn3" position="absolute 719 21 775 43" onclick="button23_onclick"/>
  19. <Grid id="grd_TestInfoCnts" class="datagrid2" taborder="6" binddataset="ds_grd_TestInfoCnts" useinputpanel="false" position="absolute 0 74 780 385" cellsizingtype="col" oncellclick="grd_TestInfoCnts_oncellclick">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="0"/>
  24. <Column size="45"/>
  25. <Column size="25"/>
  26. <Column size="70"/>
  27. <Column size="0"/>
  28. <Column size="80"/>
  29. <Column size="200"/>
  30. <Column size="65"/>
  31. <Column size="55"/>
  32. <Column size="90"/>
  33. <Column size="85"/>
  34. <Column size="40"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  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 text="바코드^바코드^바코드^바코드번호^bcno^처방일자^검사명^검사결과^단위^검체명^참고치^수납^처방구분^execdeptcd^tclscd^testlrgkind^execdd"/>
  55. <Cell col="1" colspan="2" text="바코드" taborder="undefined"/>
  56. <Cell col="3" text="바코드번호"/>
  57. <Cell col="4"/>
  58. <Cell col="5" text="처방일자"/>
  59. <Cell col="6" text="검사명"/>
  60. <Cell col="7" text="검사결과"/>
  61. <Cell col="8" text="단위"/>
  62. <Cell col="9" text="검체명"/>
  63. <Cell col="10" text="참고치"/>
  64. <Cell col="11" text="수납"/>
  65. <Cell col="12"/>
  66. <Cell col="13"/>
  67. <Cell col="14"/>
  68. <Cell col="15"/>
  69. <Cell col="16"/>
  70. <Cell col="17"/>
  71. <Cell col="18"/>
  72. <Cell col="19"/>
  73. <Cell col="20"/>
  74. <Cell col="21"/>
  75. <Cell col="22"/>
  76. <Cell col="23"/>
  77. <Cell col="24"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell displaytype="none" edittype="none" text="bind:bcgbn"/>
  81. <Cell col="1" displaytype="normal" edittype="none" style="background:EXPR(utlf_isNull(selchk) ? '' : (selchk == '1' ? &quot;URL('IMG::lis/chkBC1.png') center middle&quot; : (selchk == '0' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : (selchk == '-' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : ''))));background2:EXPR(utlf_isNull(selchk) ? '' : (selchk == '1' ? &quot;URL('IMG::lis/chkBC1.png') center middle&quot; : (selchk == '0' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : (selchk == '-' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : ''))));selectbackground:EXPR(utlf_isNull(selchk) ? '' : (selchk == '1' ? &quot;URL('IMG::lis/chkBC1.png') center middle&quot; : (selchk == '0' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : (selchk == '-' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : ''))));" text="bind:bcbtn"/>
  82. <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:choi" expr="expr:(choi==&quot;true&quot;||choi==1)?1:0"/>
  83. <Cell col="3" text="bind:bcno2"/>
  84. <Cell col="4" text="bind:bcno"/>
  85. <Cell col="5" displaytype="date" text="bind:prcpdd" mask="yyyy-MM-dd"/>
  86. <Cell col="6" style="align:left middle;" text="bind:tclsscrnnm"/>
  87. <Cell col="7" displaytype="text" edittype="text" text="bind:reptrslt"/>
  88. <Cell col="8" text="bind:rsltunit"/>
  89. <Cell col="9" text="bind:spcnm"/>
  90. <Cell col="10" text="bind:ref"/>
  91. <Cell col="11" text="bind:rcptyn"/>
  92. <Cell col="12" text="bind:prcpgenrflagnm"/>
  93. <Cell col="13" text="bind:execdeptcd"/>
  94. <Cell col="14" text="bind:testcd"/>
  95. <Cell col="15" text="bind:tclscd"/>
  96. <Cell col="16" text="bind:testlrgkind"/>
  97. <Cell col="17" text="bind:spccd"/>
  98. <Cell col="18" text="bind:prcpgenrflag"/>
  99. <Cell col="19" text="bind:prcpno"/>
  100. <Cell col="20" text="bind:prcphopedd"/>
  101. <Cell col="21" text="bind:execprcpuniqno"/>
  102. <Cell col="22" text="bind:prcpdd2"/>
  103. <Cell col="23" text="bind:rcptstatcd"/>
  104. <Cell col="24" text="bind:execdd"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. <Static id="caption6" text="조 회 구 간" class="cell_1" position="absolute 0 391 72 414" style="padding:0 0 0 5;"/>
  110. <Static id="caption7" text="~" position="absolute 192 393 207 413"/>
  111. <Shape id="line4" linetype="horizontal" class="line_1" position="absolute 0 416 780 422" style="strokepen:3 solid #33bbbbff;"/>
  112. <Button id="button1" taborder="7" text="조회" class="btn3" position="absolute 666 392 722 414" onclick="button1_onclick"/>
  113. <Button id="button2" taborder="8" text="수정" class="btn3" position="absolute 724 392 780 414" onclick="button2_onclick"/>
  114. <Grid id="poctgrid" class="datagrid2" taborder="9" binddataset="ds_poctgrid" useinputpanel="false" position="absolute 0 420 780 700" oncellclick="poctgrid_oncellclick" cellsizingtype="col">
  115. <Formats>
  116. <Format id="default">
  117. <Columns>
  118. <Column size="0"/>
  119. <Column size="50"/>
  120. <Column size="25"/>
  121. <Column size="80"/>
  122. <Column size="0"/>
  123. <Column size="170"/>
  124. <Column size="65"/>
  125. <Column size="50"/>
  126. <Column size="80"/>
  127. <Column size="80"/>
  128. <Column size="125"/>
  129. <Column size="100"/>
  130. <Column size="0"/>
  131. <Column size="0"/>
  132. <Column size="0"/>
  133. <Column size="0"/>
  134. </Columns>
  135. <Rows>
  136. <Row size="24" band="head"/>
  137. <Row size="24"/>
  138. </Rows>
  139. <Band id="head">
  140. <Cell text="바코드^바코드^바코드^바코드번호^bcno^검사명^검사결과^단위^검체명^참고치^결과일시^검사자"/>
  141. <Cell col="1" colspan="2" text="바코드" taborder="undefined"/>
  142. <Cell col="3" text="바코드번호"/>
  143. <Cell col="4"/>
  144. <Cell col="5" text="검사명"/>
  145. <Cell col="6" text="검사결과"/>
  146. <Cell col="7" text="단위"/>
  147. <Cell col="8" text="검체명"/>
  148. <Cell col="9" text="참고치"/>
  149. <Cell col="10" displaytype="normal" edittype="none" text="결과일시"/>
  150. <Cell col="11" text="검사자"/>
  151. <Cell col="12"/>
  152. <Cell col="13"/>
  153. <Cell col="14"/>
  154. <Cell col="15"/>
  155. </Band>
  156. <Band id="body">
  157. <Cell displaytype="none" edittype="none" text="bind:bcgbn"/>
  158. <Cell col="1" displaytype="normal" edittype="none" style="background:EXPR(utlf_isNull(bcchk) ? '' : (bcchk == 'true' ? &quot;URL('IMG::lis/chkBC1.png') center middle&quot; : (bcchk == 'false' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : (bcchk == '-' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : ''))));background2:EXPR(utlf_isNull(bcchk) ? '' : (bcchk == 'true' ? &quot;URL('IMG::lis/chkBC1.png') center middle&quot; : (bcchk == 'false' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : (bcchk == '-' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : ''))));selectbackground:EXPR(utlf_isNull(bcchk) ? '' : (bcchk == 'true' ? &quot;URL('IMG::lis/chkBC1.png') center middle&quot; : (bcchk == 'false' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : (bcchk == '-' ? &quot;URL('IMG::lis/chkBC0.png') center middle&quot; : ''))));" text="bind:bcbtn"/>
  159. <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:choi" expr="expr:(choi==&quot;true&quot;||choi==1)?1:0"/>
  160. <Cell col="3" text="bind:bcno2"/>
  161. <Cell col="4" text="bind:bcno"/>
  162. <Cell col="5" style="align:left middle;" text="bind:tclsscrnnm"/>
  163. <Cell col="6" displaytype="text" edittype="text" text="bind:reptrslt"/>
  164. <Cell col="7" text="bind:rsltunit"/>
  165. <Cell col="8" text="bind:spcnm"/>
  166. <Cell col="9" text="bind:refh"/>
  167. <Cell col="10" displaytype="date" edittype="date" text="bind:lastreptdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  168. <Cell col="11" text="bind:lastupdtrid"/>
  169. <Cell col="12" text="bind:testcd"/>
  170. <Cell col="13" text="bind:spccd"/>
  171. <Cell col="14" text="bind:rsltseq"/>
  172. <Cell col="15" text="bind:testlrgkind"/>
  173. </Band>
  174. </Format>
  175. </Formats>
  176. </Grid>
  177. <Calendar id="ipt_usdt" taborder="10" class="input_s_essential" position="absolute 77 393 184 412" autoselect="true" autoskip="true"/>
  178. <Calendar id="ipt_uedt" taborder="11" class="input_s_essential" position="absolute 211 393 318 412" autoselect="true"/>
  179. <Edit id="iptSearch" taborder="12" class="input_button" position="absolute 75 23 216 42" onkeyup="iptSearch_onkeyup" autoselect="true"/>
  180. <Static id="caption1" text="처 방 구 분" class="cell_1" position="absolute 1 47 73 67" style="padding:0 0 0 5;"/>
  181. <Radio id="rad_prcpgenrflag" taborder="13" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 76 49 181 69" onitemchanged="rad_prcpgenrflag_onitemchanged">
  182. <Dataset id="innerdataset">
  183. <ColumnInfo>
  184. <Column id="codecolumn"/>
  185. <Column id="datacolumn"/>
  186. </ColumnInfo>
  187. <Rows>
  188. <Row>
  189. <Col id="codecolumn">1</Col>
  190. <Col id="datacolumn">외래</Col>
  191. </Row>
  192. <Row>
  193. <Col id="codecolumn">2</Col>
  194. <Col id="datacolumn">입원</Col>
  195. </Row>
  196. </Rows>
  197. </Dataset>
  198. </Radio>
  199. <Edit id="ipt_3" taborder="14" visible="false" position="absolute 326 49 426 68" autoselect="true"/>
  200. <Static id="caption8" text="바코드번호" class="cell_1" visible="false" position="absolute 251 49 323 72"/>
  201. <Static id="caption10" text="수납:V는 VIP 대상자임" position="absolute 627 50 772 65" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  202. <Button id="button9" taborder="15" text="닫기" class="btn4" position="absolute 724 701 780 723"/>
  203. </Layout>
  204. </Layouts>
  205. <Objects>
  206. <Dataset id="ds_grd_TestInfoCnts" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_TestInfoCnts_oncolumnchanged">
  207. <ColumnInfo>
  208. <Column id="selchk" type="STRING" size="256" sumtext="검체구분"/>
  209. <Column id="choi" type="STRING" size="256" sumtext="검사항목구분"/>
  210. <Column id="bcno" type="STRING" size="256" sumtext="검체번호"/>
  211. <Column id="tclscd" type="STRING" size="256" sumtext="검사코드"/>
  212. <Column id="tclsscrnnm" type="STRING" size="256" sumtext="검사명"/>
  213. <Column id="reptrslt" type="STRING" size="256" sumtext="보고결과"/>
  214. <Column id="rsltunit" type="STRING" size="256" sumtext="단휘"/>
  215. <Column id="testlrgkind" type="STRING" size="256" sumtext="대분류유형"/>
  216. <Column id="execdeptcd" type="STRING" size="256" sumtext="시행부서"/>
  217. <Column id="ref" type="STRING" size="256" sumtext="참고치"/>
  218. <Column id="rcptyn" type="STRING" size="256" sumtext="수납여부"/>
  219. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  220. <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
  221. <Column id="bcno2" type="STRING" size="256" sumtext="검체번호"/>
  222. <Column id="diffcntyn" type="STRING" size="256" sumtext="diff여부"/>
  223. <Column id="tclskind" type="STRING" size="256" sumtext="검사분류"/>
  224. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  225. <Column id="prcpgenrflag" type="STRING" size="256" sumtext="처방구분"/>
  226. <Column id="prcpgenrflagnm" type="STRING" size="256" sumtext="처방구분"/>
  227. <Column id="prcpno" type="STRING" size="256" sumtext="처방번호"/>
  228. <Column id="prcphopedd" type="STRING" size="256" sumtext="처방희망일자"/>
  229. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  230. <Column id="execprcpuniqno" type="STRING" size="256" sumtext="처방유일키"/>
  231. <Column id="prcpdd2" type="STRING" size="256" sumtext="처방일자"/>
  232. <Column id="spcnm" type="STRING" size="256" sumtext="처방일자"/>
  233. <Column id="rcptstatcd" type="STRING" size="256" sumtext="처방일자"/>
  234. <Column id="execdd" type="STRING" size="256" sumtext="엑팅일자"/>
  235. <Column id="bcgbn" type="STRING" size="256"/>
  236. <Column id="prcphopedt" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. </Dataset>
  239. <Dataset id="ds_poctgrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  240. <ColumnInfo>
  241. <Column id="bcgbn" type="STRING"/>
  242. <Column id="bcbtn" type="STRING"/>
  243. <Column id="choi" type="STRING"/>
  244. <Column id="bcno2" type="STRING"/>
  245. <Column id="bcno" type="STRING"/>
  246. <Column id="tclsnm" type="STRING"/>
  247. <Column id="reptrslt" type="STRING"/>
  248. <Column id="ref" type="STRING"/>
  249. <Column id="spcnm" type="STRING"/>
  250. <Column id="refval" type="STRING"/>
  251. <Column id="reptdd" type="STRING"/>
  252. <Column id="reptnm" type="STRING"/>
  253. <Column id="testcd" type="STRING"/>
  254. <Column id="spccd" type="STRING"/>
  255. <Column id="rsltseq" type="STRING"/>
  256. <Column id="testlrgkind" type="STRING"/>
  257. </ColumnInfo>
  258. </Dataset>
  259. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  260. <ColumnInfo>
  261. <Column id="pid" type="STRING" size="256"/>
  262. <Column id="usernm" type="STRING" size="256"/>
  263. <Column id="userid" type="STRING" size="256"/>
  264. <Column id="sdd" type="STRING" size="256"/>
  265. <Column id="edd" type="STRING" size="256"/>
  266. <Column id="pidstr" type="STRING" size="256"/>
  267. <Column id="prcpgenrflag" type="STRING" size="256"/>
  268. <Column id="bcno" type="STRING" size="256"/>
  269. </ColumnInfo>
  270. <Rows>
  271. <Row/>
  272. </Rows>
  273. </Dataset>
  274. <Dataset id="ds_getJaeWonTrue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  275. <ColumnInfo>
  276. <Column id="jaewonyn" type="STRING" size="256"/>
  277. </ColumnInfo>
  278. </Dataset>
  279. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  280. <ColumnInfo>
  281. <Column id="pid" type="STRING" size="256"/>
  282. <Column id="prcpgenrflag" type="STRING" size="256"/>
  283. <Column id="sdd" type="STRING" size="256"/>
  284. <Column id="edd" type="STRING" size="256"/>
  285. <Column id="userid" type="STRING" size="256"/>
  286. <Column id="data1" type="STRING" size="256"/>
  287. <Column id="data2" type="STRING" size="256"/>
  288. <Column id="codeflag" type="STRING" size="256"/>
  289. </ColumnInfo>
  290. <Rows>
  291. <Row/>
  292. </Rows>
  293. </Dataset>
  294. <Dataset id="ds_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  295. <ColumnInfo>
  296. <Column id="pname" type="STRING" size="256" sumtext="환자명"/>
  297. </ColumnInfo>
  298. </Dataset>
  299. <Dataset id="ds_getUsernm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="usernm" type="STRING" size="256" sumtext="검사자명"/>
  302. </ColumnInfo>
  303. </Dataset>
  304. </Objects>
  305. <Bind>
  306. <BindItem id="item1" compid="iptSearch" propid="value" datasetid="ds_hidden_ref" columnid="pid"/>
  307. <BindItem id="item2" compid="ipt_userid" propid="value" datasetid="ds_hidden_ref" columnid="userid"/>
  308. <BindItem id="item3" compid="rad_prcpgenrflag" propid="value" datasetid="ds_hidden_ref" columnid="prcpgenrflag"/>
  309. <BindItem id="item4" compid="ipt_3" propid="value" datasetid="ds_hidden_ref" columnid="bcno"/>
  310. <BindItem id="item5" compid="patnm" propid="value" datasetid="ds_patlist" columnid="pname"/>
  311. <BindItem id="item6" compid="ipt_usdt" propid="value" datasetid="ds_hidden_ref" columnid="sdd"/>
  312. <BindItem id="item7" compid="ipt_uedt" propid="value" datasetid="ds_hidden_ref" columnid="edd"/>
  313. <BindItem id="item8" compid="output1" propid="value" datasetid="ds_getUsernm" columnid="usernm"/>
  314. </Bind>
  315. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  316. * System Name :
  317. * Job Name :
  318. * Creator :
  319. * Make Date : 2015-05-01
  320. * Description :
  321. *---------------------------------------------------------------------------------------
  322. * Modify Date Modifier Modify Description
  323. *---------------------------------------------------------------------------------------
  324. * 2015-05-01 Live Converter TF->XP
  325. *
  326. *---------------------------------------------------------------------------------------
  327. ****************************************************************************************/
  328. include "com_commonxp::comm_main.xjs";
  329. include "lis_commonxp::LLZ001.xjs";
  330. include "lis_commonxp::LZZ002.xjs";
  331. function SMLLR91100_oninit(obj:Form, e:InitEventInfo)
  332. {
  333. frmf_initForm(obj);
  334. }
  335. function SMLLR91100_onload(obj:Form, e:LoadEventInfo)
  336. {
  337. grdf_initGrid(grd_TestInfoCnts);
  338. grdf_initGrid(poctgrid);
  339. //grdf_setRowTypeIcon(grd_TestInfoCnts, 0);
  340. fOpenList();
  341. }
  342. function fOpenList()
  343. {
  344. var toDay = utlf_getCurrentDate();
  345. ds_hidden_ref.setColumn(0, "sdd", toDay);
  346. ds_hidden_ref.setColumn(0, "edd", toDay);
  347. ds_hidden_ref.setColumn(0, "userid", sysf_getUserId());
  348. ds_hidden_ref.setColumn(0, "pid", appf_getPatientInfo("pid"));
  349. dsf_makeValue(ds_send, "pid", "string", ds_hidden_ref.getColumn(0, "pid"));
  350. //입원 환자 여부 조회
  351. var oParam = {};
  352. oParam.id = "TRLLR91103";
  353. oParam.service = "bcollmngtapp.BCollMngt";
  354. oParam.method = "reqGetJaeWonTrue";
  355. oParam.inds = "cond=ds_send";
  356. oParam.outds = "ds_getJaeWonTrue=jaewon";
  357. oParam.async = false;
  358. tranf_submit(oParam);
  359. ds_getJaeWonTrue.updateColID("jaewon", "jaewonyn");
  360. var jaewonyn = ds_getJaeWonTrue.getColumn(0, "jaewonyn");
  361. if(jaewonyn == "Y")
  362. {
  363. ds_hidden_ref.setColumn(0, "prcpgenrflag", "2");
  364. }
  365. else
  366. {
  367. ds_hidden_ref.setColumn(0, "prcpgenrflag", "1");
  368. }
  369. dsf_makeValue(ds_send, "prcpgenrflag", "string", ds_hidden_ref.getColumn(0, "prcpgenrflag"));
  370. ds_hidden_ref.setColumn(0, "pidstr", ds_hidden_ref.getColumn(0, "pid"));
  371. var oParam = {};
  372. oParam.id = "TRLLR91101";
  373. oParam.service = "rsltmngtapp.RsltMngt";
  374. oParam.method = "reqGetPoctTestList";
  375. oParam.inds = "cond=ds_send";
  376. oParam.outds = "ds_grd_TestInfoCnts=testlist ds_patlist=patlist";
  377. oParam.async = false;
  378. //oParam.callback = "cf_TRLLR91101";
  379. tranf_submit(oParam);
  380. //return true;
  381. fRemark(1);
  382. freprint();
  383. iptSearch.setFocus();
  384. }
  385. function fRemark(flag)
  386. {
  387. var sunab = false;
  388. var sunabcnts = "";
  389. var returnvalue = "";
  390. if(flag == 1)
  391. {
  392. for(iRow = 0; iRow < ds_grd_TestInfoCnts.rowcount; iRow++)
  393. {
  394. //바코드 이미지 넣기 expr로 구현
  395. // if(ds_grd_TestInfoCnts.getColumn(iRow,"choi")=="true")
  396. // {
  397. // returnvalue = "#c0c0c0";
  398. // } else {
  399. // returnvalue = "#EEFFFF";
  400. // }
  401. if(ds_grd_TestInfoCnts.getColumn(iRow,"tclscd") == ds_grd_TestInfoCnts.getColumn(iRow,"testcd"))
  402. {
  403. // trace("같다");
  404. // trace(ds_grd_TestInfoCnts.getColumn(iRow,"prcpgenrflag"));
  405. // trace(ds_grd_TestInfoCnts.getColumn(iRow,"rcptstatcd"));
  406. if((ds_grd_TestInfoCnts.getColumn(iRow,"prcpgenrflag")=="O" && ds_grd_TestInfoCnts.getColumn(iRow,"rcptstatcd") != "230") ||
  407. (ds_grd_TestInfoCnts.getColumn(iRow,"prcpgenrflag") == "D" && ds_grd_TestInfoCnts.getColumn(iRow,"rcptstatcd")!= "230") ||
  408. (ds_grd_TestInfoCnts.getColumn(iRow,"prcpgenrflag") == "S" && ds_grd_TestInfoCnts.getColumn(iRow,"rcptstatcd") != "230"))
  409. {
  410. if(ds_grd_TestInfoCnts.getColumn(iRow,"rcptyn") == "V" )
  411. {
  412. sunab = false;
  413. }
  414. else
  415. {
  416. sunab = true;
  417. }
  418. sunabcnts = sunabcnts +" "+ds_grd_TestInfoCnts.getColumn(iRow,"tclsscrnnm")+",";
  419. trace("sunabcnts="+sunabcnts);
  420. trace("sunab2222="+sunab);
  421. }
  422. }
  423. trace("sunab="+sunab);
  424. }
  425. if(sunab)
  426. {
  427. sunabcnts = utlf_transNullToEmpty(sunabcnts).substring(0, sunabcnts.length -1);
  428. sysf_messageBox(sunabcnts + " 항목은 수납되지 않았습니다. ","I");
  429. }
  430. }
  431. }
  432. function freprint()
  433. {
  434. ds_send.clearData();
  435. dsf_makeValue(ds_send, "pid", "string", ds_hidden_ref.getColumn(0, "pid"));
  436. dsf_makeValue(ds_send, "sdd", "string", ds_hidden_ref.getColumn(0, "sdd"));
  437. dsf_makeValue(ds_send, "edd", "string", ds_hidden_ref.getColumn(0, "edd"));
  438. ds_poctgrid.clearData();
  439. var oParam = {};
  440. oParam.id = "TRLLR91102";
  441. oParam.service = "rsltmngtapp.RsltMngt";
  442. oParam.method = "reqGetPoctList";
  443. oParam.inds = "cond=ds_send";
  444. oParam.outds = "ds_poctgrid=getPoctList";
  445. oParam.async = false;
  446. //oParam.callback = "cf_TRLLR91102";
  447. tranf_submit(oParam);
  448. fRemark(2);
  449. }
  450. function iptSearch_onkeyup(obj:Edit, e:KeyEventInfo)
  451. {
  452. if(e.keycode == 13)
  453. {
  454. fpidset();
  455. iptSearch.setSelect(0,10);
  456. }
  457. //iptSearch.setSelect(0,10);
  458. }
  459. function fpidset()
  460. {
  461. var inputval = iptSearch.text;
  462. ds_hidden_ref.setColumn(0, "pid", inputval);
  463. if( !utlf_isNull(ds_hidden_ref.getColumn(0, "bcno")))
  464. {
  465. }
  466. var inputval = iptSearch.text;
  467. ds_hidden_ref.setColumn(0, "pid", inputval);
  468. if( !utlf_isNull(ds_hidden_ref.getColumn(0, "pid")))
  469. {
  470. ds_hidden_ref.setColumn(0, "pidstr", inputval);
  471. ds_send.setColumn(0, "pid", inputval);
  472. //입원 환자 여부 조회
  473. var oParam = {};
  474. oParam.id = "TRLLR91103";
  475. oParam.service = "bcollmngtapp.BCollMngt";
  476. oParam.method = "reqGetJaeWonTrue";
  477. oParam.inds = "cond=ds_send";
  478. oParam.outds = "ds_getJaeWonTrue=jaewon";
  479. oParam.async = false;
  480. tranf_submit(oParam);
  481. ds_getJaeWonTrue.updateColID("jaewon", "jaewonyn");
  482. var jaewonyn = ds_getJaeWonTrue.getColumn(0, "jaewonyn");
  483. if(jaewonyn == "Y")
  484. {
  485. ds_hidden_ref.setColumn(0, "prcpgenrflag", "2");
  486. }
  487. else
  488. {
  489. ds_hidden_ref.setColumn(0, "prcpgenrflag", "1");
  490. }
  491. ds_send.setColumn(0, "prcpgenrflag", ds_hidden_ref.getColumn(0, "prcpgenrflag"));
  492. ds_grd_TestInfoCnts.clearData();
  493. ds_poctgrid.clearData();
  494. var oParam = {};
  495. oParam.id = "TRLLR91101";
  496. oParam.service = "rsltmngtapp.RsltMngt";
  497. oParam.method = "reqGetPoctTestList";
  498. oParam.inds = "cond=ds_send";
  499. oParam.outds = "ds_grd_TestInfoCnts=testlist ds_patlist=patlist";
  500. oParam.async = false;
  501. //oParam.callback = "cf_TRLLR91101";
  502. tranf_submit(oParam);
  503. fRemark(1);
  504. freprint();
  505. iptSearch.setFocus();
  506. }
  507. }
  508. function fUserNMRef()
  509. {
  510. var inputval = ipt_userid.text;
  511. ds_hidden_ref.setColumn(0, "userid", inputval);
  512. if(!utlf_isNull(ds_hidden_ref.getColumn(0, "userid")))
  513. {
  514. //model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/ref/userid"));
  515. ds_send.setColumn(0, "userid", ds_hidden_ref.getColumn(0, "userid"));
  516. //submit("TRLZZ00104");
  517. var oParam = {};
  518. oParam.id = "TRLZZ00104";
  519. oParam.service = "diagtestapplib.LisCommon";
  520. oParam.method = "reqGetUserNM";
  521. oParam.inds = "cond=ds_send";
  522. oParam.outds = "ds_getUsernm=usernm";
  523. oParam.async = false;
  524. //oParam.callback = "cf_TRLZZ00104";
  525. tranf_submit(oParam);
  526. }
  527. }
  528. //조회
  529. function button1_onclick(obj:Button, e:ClickEventInfo)
  530. {
  531. freprint();
  532. }
  533. function poctgrid_oncellclick(obj:Grid, e:GridClickEventInfo)
  534. {
  535. var nCol = poctgrid.currentcol;
  536. if(nCol == 1 || nCol == poctgrid.getBindCellIndex("Body","choi"))
  537. {
  538. //그리드에서 row선택시
  539. //lf_setGridChoi(0);
  540. fSetGridChoi(0);
  541. }
  542. }
  543. //그리드에서 row 선택시
  544. function fSetGridChoi(flag)
  545. {
  546. if (flag == 0)
  547. {
  548. var nRow = ds_poctgrid.rowposition;
  549. var nCol = poctgrid.currentcol;
  550. if ( nCol == 1 ) //selchk
  551. {
  552. if(ds_poctgrid.getColumn(nRow,"bcchk") == "true") // 체크 되어 있는거 풀렸을때 true->1
  553. {
  554. ds_poctgrid.setColumn(nRow,"bcchk","false");
  555. ds_poctgrid.setColumn(nRow,"choi","false");
  556. if(nRow+1 <= ds_poctgrid.rowcount-1)
  557. {
  558. for(iRow = nRow + 1 ; ; iRow ++)
  559. {
  560. if( ds_poctgrid.getColumn(iRow,"bcchk")== "true" || ds_poctgrid.getColumn(iRow,"bcchk")== "false" ||iRow > ds_poctgrid.rowcount-1)
  561. {
  562. break;
  563. }
  564. ds_poctgrid.setColumn(iRow,"choi","false");
  565. }
  566. }
  567. }
  568. else if(ds_poctgrid.getColumn(nRow,"bcchk") == "false") // 선택 안돼있다가 체크했을때
  569. {
  570. ds_poctgrid.setColumn(nRow, "bcchk", "true");
  571. ds_poctgrid.setColumn(nRow, "choi", "true");
  572. if(nRow+1 <= ds_poctgrid.rowcount-1)
  573. {
  574. for(iRow = nRow + 1 ; ; iRow ++ )
  575. {
  576. if( ds_poctgrid.getColumn(iRow,"bcchk")== "true" || ds_poctgrid.getColumn(iRow,"bcchk")== "false" ||iRow > ds_poctgrid.rowcount-1)
  577. {
  578. break;
  579. }
  580. ds_grid_poctgrid.setColumn(iRow,"choi","true");
  581. }
  582. }
  583. }
  584. }
  585. }
  586. else
  587. {
  588. var row = ds_grd_TestInfoCnts.rowposition;
  589. var col = grd_TestInfoCnts.currentcol;
  590. if(col == 1)
  591. {
  592. if(ds_grd_TestInfoCnts.getColumn(row, "selchk") == "1")
  593. {
  594. ds_grd_TestInfoCnts.setColumn(row, "selchk", "0");
  595. ds_grd_TestInfoCnts.setColumn(row, "choi", "false");
  596. if(row + 1 <= ds_grd_TestInfoCnts.rowcount-1)
  597. {
  598. for(iRow = row + 1 ; ; iRow ++ )
  599. {
  600. if(ds_grd_TestInfoCnts.getColumn(iRow,"selchk") == "1" ||
  601. ds_grd_TestInfoCnts.getColumn(iRow,"selchk") == "0" ||
  602. iRow > ds_grd_TestInfoCnts.rowcount- 1){
  603. break;
  604. }
  605. ds_grd_TestInfoCnts.setColumn(iRow,"choi" , "false");
  606. }
  607. }
  608. }
  609. else if(ds_grd_TestInfoCnts.getColumn(row,"selchk") == "0")
  610. {
  611. ds_grd_TestInfoCnts.setColumn(row, "selchk", "1");
  612. ds_grd_TestInfoCnts.setColumn(row, "choi", "true");
  613. if(row + 1 <= ds_grd_TestInfoCnts.rowcount-1)
  614. {
  615. for(iRow = row + 1 ; ; iRow ++)
  616. {
  617. if(ds_grd_TestInfoCnts.getColumn(iRow,"selchk") == "1"
  618. || ds_grd_TestInfoCnts.getColumn(iRow,"selchk") == "0"
  619. || iRow > ds_grd_TestInfoCnts.rowcount-1)
  620. {
  621. break;
  622. }
  623. ds_grd_TestInfoCnts.setColumn(iRow, "choi", "true");
  624. }
  625. }
  626. }
  627. }
  628. }
  629. }
  630. //수정
  631. function button2_onclick(obj:Button, e:ClickEventInfo)
  632. {
  633. fReExeSave();
  634. }
  635. //수정
  636. function fReExeSave()
  637. {
  638. var chk = false;
  639. for(i=0; i<ds_poctgrid.rowcount; i++)
  640. {
  641. if(ds_poctgrid.getColumn(i,"choi")=="1")
  642. {
  643. if(ds_poctgrid.getColumn(i,"testcd") == "LOS101")
  644. {
  645. ds_poctgrid.setColumn(i,"choi","0");
  646. chk = true;
  647. }
  648. }
  649. else
  650. {
  651. if(ds_poctgrid.getColumn(i,"testcd")== "LOS101")
  652. {
  653. ds_poctgrid.setColumn(i,"choi","0");
  654. }
  655. }
  656. }
  657. if(chk){
  658. sysf_messageBox("Glucose(Strip)(POCT) 검사는 조회만 가능 합니다.","I");
  659. }
  660. if(ds_poctgrid.rowcount <= 0)
  661. {
  662. return;
  663. }
  664. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "userid", val: ipt_userid.value}]);
  665. var oParam = {};
  666. oParam.id = "TXLLR91102";
  667. oParam.service = "rsltmngtapp.RsltMngt";
  668. oParam.method = "reqReExeSave";
  669. oParam.inds = "cond=ds_poctgrid:U user=ds_temp_search";
  670. oParam.async = false;
  671. //oParam.callback = "cf_TXLLR91102";
  672. tranf_submit(oParam);
  673. freprint();
  674. }
  675. function grd_TestInfoCnts_oncellclick(obj:Grid, e:GridClickEventInfo)
  676. {
  677. var nCol = grd_TestInfoCnts.currentcol;
  678. if(nCol == 1 || nCol == grd_TestInfoCnts.getBindCellIndex("Body","choi"))
  679. {
  680. //그리드에서 row선택시
  681. fSetGridChoi(1);
  682. }
  683. }
  684. function button23_onclick(obj:Button, e:ClickEventInfo)
  685. {
  686. fExeSave();
  687. }
  688. function fExeSave()
  689. {
  690. var jaewonyn = ds_getJaeWonTrue.getColumn(0, "jaewonyn");
  691. var prcpgenrflag = ds_hidden_ref.getColumn(0, "prcpgenrflag");
  692. var execddyncnt = 0;
  693. var count = 0;
  694. for(i = 0; i < ds_grd_TestInfoCnts.rowcount; i++)
  695. {
  696. var nRowType = ds_grd_TestInfoCnts.getRowType(i);
  697. trace("rowtype :" + nRowType);
  698. if(ds_grd_TestInfoCnts.getColumn(i,"choi")== "1" || ds_grd_TestInfoCnts.getColumn(i, "choi") == "true" || nRowType = "4")
  699. {
  700. //액팅이 된 처방인지 체크
  701. if(ds_grd_TestInfoCnts.getColumn(i,"execdd") != "00000000")
  702. {
  703. execddyncnt++;
  704. }
  705. }
  706. }
  707. if(jaewonyn == "Y" && prcpgenrflag == "1")
  708. {
  709. if(execddyncnt == 0)
  710. {
  711. sysf_messageBox("입원 환자는 외래처방의 채혈 및 접수가 불가능합니다.", "I");
  712. return;
  713. }
  714. }
  715. else if(jaewonyn == "N" && prcpgenrflag == "2")
  716. {
  717. if(execddyncnt == 0)
  718. {
  719. sysf_messageBox("재원중인 환자만 입원처방의 채혈 및 접수가 가능합니다.", "I");
  720. return;
  721. }
  722. }
  723. ds_grd_TestInfoCnts.updatecontrol = false;
  724. for(i = 0; i < ds_grd_TestInfoCnts.rowcount; i++)
  725. {
  726. var nRowType = ds_grd_TestInfoCnts.getRowType(i);
  727. trace("nRowType = " + nRowType);
  728. if(ds_grd_TestInfoCnts.getColumn(i, "choi")== "1" || ds_grd_TestInfoCnts.getColumn(i, "choi") == "true" && nRowType == "4" )
  729. {
  730. trace("dddd");
  731. ++count;
  732. ds_grd_TestInfoCnts.setRowType(i,Dataset.ROWTYPE_UPDATE);
  733. ds_grd_TestInfoCnts.setColumn(i, "bcgbn", "true");
  734. ds_grd_TestInfoCnts.setColumn(i, "choi", "true");
  735. ds_grd_TestInfoCnts.setColumn(i, "prcphopedt", ds_grd_TestInfoCnts.getColumn(i, "prcphopedd"));
  736. }
  737. if(ds_grd_TestInfoCnts.getColumn(i, "choi")== "1" || ds_grd_TestInfoCnts.getColumn(i, "choi") == "true" && utlf_isNull(ds_grd_TestInfoCnts.getColumn(i, "reptrslt")))
  738. {
  739. sysf_messageBox("저장할 검사결과가 없습니다.");
  740. return;
  741. }
  742. }
  743. if(count < 1)
  744. {
  745. sysf_messageBox("저장할", "E013", "");
  746. return;
  747. }
  748. ds_grd_TestInfoCnts.updatecontrol = true;
  749. dsf_createDsRow("ds_userinfo", [{col : "userid", val : ds_hidden_ref.getColumn(0, "userid")}
  750. ,{col : "pid", val : ds_hidden_ref.getColumn(0, "pid")}]);
  751. var up = grdf_getGridUpdateData(grd_TestInfoCnts, "update");
  752. //ds_grd_TestInfoCnts.updateColID
  753. /* trace(up.saveXML())*/
  754. var oParam = {};
  755. oParam.id = "TXLLR91101";
  756. oParam.service = "rsltmngtapp.RsltMngt";
  757. oParam.method = "reqExecPoctTestList";
  758. oParam.inds = "cond=ds_grd_TestInfoCnts:U user=ds_userinfo";
  759. oParam.transaction = false;
  760. oParam.async = false;
  761. //oParam.callback = "cf_TXLLR91101";
  762. tranf_submit(oParam);
  763. fOpenList();
  764. }
  765. function ipt_userid_onkeydown(obj:Edit, e:KeyEventInfo)
  766. {
  767. if(e.keycode == 13)
  768. {
  769. fUserNMRef();
  770. }
  771. }
  772. //처방구분 변경
  773. function rad_prcpgenrflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  774. {
  775. fprcpgenrflagset();
  776. }
  777. function fprcpgenrflagset()
  778. {
  779. var inputval = iptSearch.text;
  780. ds_hidden_ref.setColumn(0, "pid", inputval);
  781. if(!utlf_isNull(ds_hidden_ref.getColumn(0, "pid")))
  782. {
  783. ds_hidden_ref.setColumn(0, "pidstr", inputval);
  784. ds_send.setColumn(0, "pid", inputval);
  785. if(utlf_isNull(ds_hidden_ref.getColumn(0, "prcpgenrflag")))
  786. {
  787. sysf_messageBox("처방구분을 선택해주세요.", "I");
  788. return;
  789. }
  790. ds_send.setColumn(0, "prcpgenrflag", ds_hidden_ref.getColumn(0, "prcpgenrflag"));
  791. var oParam = {};
  792. oParam.id = "TRLLR91101";
  793. oParam.service = "rsltmngtapp.RsltMngt";
  794. oParam.method = "reqGetPoctTestList";
  795. oParam.inds = "cond=ds_send";
  796. oParam.outds = "ds_grd_TestInfoCnts=testlist ds_patlist=patlist";
  797. oParam.async = false;
  798. //oParam.callback = "cf_TRLLR91101";
  799. tranf_submit(oParam);
  800. fRemark(1);
  801. freprint();
  802. iptSearch.setFocus();
  803. }
  804. }
  805. ]]></Script>
  806. </Form>
  807. </FDL>