SMMNR07600_혈액미불출리스트조회.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR07600" position="absolute 0 0 1187 770" titletext="혈액미불출리스트조회" oninit="SMMNR07600_oninit" onload="SMMNR07600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="0" class="div_SA" position="absolute 0 25 1184 80" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Button id="button3" taborder="1" text="조회" class="btn1" position="absolute 1030 15 1086 37" anchor="top right" onclick="grp_sea_button3_onclick"/>
  11. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1017 15 1023 37" anchor="top right"/>
  12. <Combo id="combo1" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 96 5 199 26" anchor="default">
  13. <Dataset id="innerdataset">
  14. <ColumnInfo>
  15. <Column id="codecolumn"/>
  16. <Column id="datacolumn"/>
  17. </ColumnInfo>
  18. <Rows>
  19. <Row>
  20. <Col id="codecolumn">prcpddselect</Col>
  21. <Col id="datacolumn">처방일</Col>
  22. </Row>
  23. <Row>
  24. <Col id="codecolumn">deliveselect</Col>
  25. <Col id="datacolumn">불출일</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">abnselect</Col>
  29. <Col id="datacolumn">폐기예정일</Col>
  30. </Row>
  31. </Rows>
  32. </Dataset>
  33. </Combo>
  34. <Static id="caption1" text="~" position="absolute 303 6 318 26" anchor="default"/>
  35. <Radio id="radio1" taborder="3" columncount="0" rowcount="2" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 430 6 490 51" anchor="default" onitemchanged="grp_sea_radio1_onitemchanged">
  36. <Dataset id="innerdataset">
  37. <ColumnInfo>
  38. <Column id="codecolumn"/>
  39. <Column id="datacolumn"/>
  40. </ColumnInfo>
  41. <Rows>
  42. <Row>
  43. <Col id="codecolumn">ward</Col>
  44. <Col id="datacolumn">병동별</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">patient</Col>
  48. <Col id="datacolumn">환자별</Col>
  49. </Row>
  50. </Rows>
  51. </Dataset>
  52. </Radio>
  53. <Static id="caption4" text="병실 :" class="search_name" position="absolute 715 7 760 24" anchor="default"/>
  54. <Static id="caption3" text="성명 :" class="search_name" position="absolute 715 33 760 50" anchor="default"/>
  55. <Static id="caption5" text="S/A :" class="search_name" position="absolute 885 33 929 50" anchor="default"/>
  56. <Radio id="radio2" taborder="4" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 22 33 207 50" anchor="default" onitemchanged="grp_sea_radio2_onitemchanged">
  57. <Dataset id="innerdataset">
  58. <ColumnInfo>
  59. <Column id="codecolumn"/>
  60. <Column id="datacolumn"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row>
  64. <Col id="codecolumn">1</Col>
  65. <Col id="datacolumn">전체</Col>
  66. </Row>
  67. <Row>
  68. <Col id="codecolumn">2</Col>
  69. <Col id="datacolumn">불출</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">3</Col>
  73. <Col id="datacolumn">미불출</Col>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. </Radio>
  78. <Calendar id="input2" taborder="5" class="input_default" position="absolute 203 5 298 26" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  79. <Calendar id="input11" taborder="6" class="input_default" position="absolute 319 5 414 26" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  80. <Combo id="combo7" taborder="7" innerdataset="@ds_main_cond_wardcdgrup" codecolumn="wardcd" datacolumn="wardnm" class="combo_s_essential" position="absolute 594 5 684 26" anchor="default" onitemchanged="grp_sea_combo7_onitemchanged"/>
  81. <Combo id="combo2" taborder="8" innerdataset="@ds_main_cond_roomcdgrup" codecolumn="roomcd" datacolumn="roomnm" class="combo_search" position="absolute 764 5 849 26" anchor="default" onitemchanged="grp_sea_combo2_onitemchanged"/>
  82. <Combo id="combo8" taborder="9" innerdataset="@ds_main_cond_patientgrup" codecolumn="pid" datacolumn="patientnm" class="combo_search" position="absolute 780 30 865 51" anchor="default" onitemchanged="grp_sea_combo8_onitemchanged"/>
  83. <Edit id="output3" taborder="10" readonly="true" class="output_search" position="absolute 932 31 982 52" anchor="default"/>
  84. <Edit id="input3" taborder="11" class="input_search" position="absolute 594 31 684 52" anchor="default" onkeyup="grp_sea_input3_onkeyup"/>
  85. <Edit id="output2" taborder="12" readonly="true" class="output_search" visible="false" position="absolute 764 30 849 51" anchor="default"/>
  86. <Static id="caption9" text="조회기준 :" class="search_name" position="absolute 22 7 93 24" anchor="default"/>
  87. <Button id="button1" taborder="13" text="엑셀저장" class="btn7" position="absolute 1092 15 1172 37" anchor="top right" onclick="grp_sea_button1_onclick"/>
  88. <Static id="caption2" text="병동 :" class="search_name" position="absolute 521 7 591 24"/>
  89. <Static id="caption7" text="등록번호 :" class="search_name" position="absolute 520 33 591 50"/>
  90. </Layout>
  91. </Layouts>
  92. </Div>
  93. <Grid id="datagrid5" taborder="1" binddataset="ds_main_execdetlgrup" useinputpanel="false" position="absolute 0 114 1184 748" anchor="all">
  94. <Formats>
  95. <Format id="default">
  96. <Columns>
  97. <Column size="25" band="left"/>
  98. <Column size="50" band="left"/>
  99. <Column size="80" band="left"/>
  100. <Column size="60" band="left"/>
  101. <Column size="45" band="left"/>
  102. <Column size="53" band="left"/>
  103. <Column size="65" band="left"/>
  104. <Column size="60" band="left"/>
  105. <Column size="70" band="left"/>
  106. <Column size="230" band="left"/>
  107. <Column size="30"/>
  108. <Column size="30"/>
  109. <Column size="80"/>
  110. <Column size="105"/>
  111. <Column size="105"/>
  112. <Column size="105"/>
  113. <Column size="70"/>
  114. <Column size="105"/>
  115. <Column size="70"/>
  116. <Column size="105"/>
  117. <Column size="70"/>
  118. <Column size="70"/>
  119. <Column size="110"/>
  120. <Column size="110"/>
  121. <Column size="90"/>
  122. <Column size="105"/>
  123. <Column size="90"/>
  124. <Column size="105"/>
  125. <Column size="90"/>
  126. <Column size="105"/>
  127. <Column size="90"/>
  128. <Column size="105"/>
  129. <Column size="90"/>
  130. <Column size="105"/>
  131. <Column size="90"/>
  132. <Column size="105"/>
  133. </Columns>
  134. <Rows>
  135. <Row size="24" band="head"/>
  136. <Row size="24"/>
  137. </Rows>
  138. <Band id="head">
  139. <Cell/>
  140. <Cell col="1" text="병실"/>
  141. <Cell col="2" text="등록번호"/>
  142. <Cell col="3" text="환자명"/>
  143. <Cell col="4" text="S/A"/>
  144. <Cell col="5" text="ABO RH"/>
  145. <Cell col="6" text="상태"/>
  146. <Cell col="7" text="처방구분"/>
  147. <Cell col="8" text="처방코드"/>
  148. <Cell col="9" text="처방명"/>
  149. <Cell col="10" text="Irr"/>
  150. <Cell col="11" text="Fil"/>
  151. <Cell col="12" text="혈액번호"/>
  152. <Cell col="13" text="폐기예정일"/>
  153. <Cell col="14" text="예약일시"/>
  154. <Cell col="15" text="처방일시"/>
  155. <Cell col="16" text="처방의"/>
  156. <Cell col="17" text="불출신청일시"/>
  157. <Cell col="18" text="불출신청자"/>
  158. <Cell col="19" text="불출일시"/>
  159. <Cell col="20" text="불출자"/>
  160. <Cell col="21" text="검사자"/>
  161. <Cell col="22" text="전달사항"/>
  162. <Cell col="23" text="간호사 remark"/>
  163. <Cell col="24" text="ALT"/>
  164. <Cell col="25" text="ALT 검사시간"/>
  165. <Cell col="26" text="Anti-HCV"/>
  166. <Cell col="27" text="Anti-HCV 검사시간"/>
  167. <Cell col="28" text="HIV"/>
  168. <Cell col="29" text="HIV 검사시간"/>
  169. <Cell col="30" text="VDRL"/>
  170. <Cell col="31" text="VDRL 검사시간"/>
  171. <Cell col="32" text="HbsAg"/>
  172. <Cell col="33" text="HbsAg 검사시간"/>
  173. <Cell col="34" text="NAT(사후)"/>
  174. <Cell col="35" text="NAT(사후) 검사시간"/>
  175. </Band>
  176. <Band id="body">
  177. <Cell celltype="head" text="expr:currow + 1"/>
  178. <Cell col="1" text="bind:roomcd"/>
  179. <Cell col="2" text="bind:pid"/>
  180. <Cell col="3" text="bind:patnm"/>
  181. <Cell col="4" text="bind:grdrage"/>
  182. <Cell col="5" text="bind:aborh"/>
  183. <Cell col="6" text="bind:prcpstat"/>
  184. <Cell col="7" text="bind:prcppreptfflag"/>
  185. <Cell col="8" text="bind:prcpcd"/>
  186. <Cell col="9" style="align:left middle;" text="bind:prcpnm"/>
  187. <Cell col="10" displaytype="checkbox" edittype="none" style="controlbackground:silver;controlborder:1 solid lightblue ;" text="bind:irr" expr="expr:irr == &quot;true&quot; || irr == &quot;1&quot; ? &quot;1&quot; : &quot;&quot;" enable="false"/>
  188. <Cell col="11" displaytype="checkbox" edittype="none" style="controlbackground:silver;controlborder:1 solid lightblue;" text="bind:fil" expr="expr:fil == &quot;true&quot; || fil == &quot;1&quot; ? &quot;1&quot; : &quot;&quot;" enable="false"/>
  189. <Cell col="12" text="bind:blodno"/>
  190. <Cell col="13" text="bind:validt" mask="expr:utlf_isNull(validt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  191. <Cell col="14" text="bind:prcphopedd" mask="expr:utlf_isNull(prcphopedd) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  192. <Cell col="15" text="bind:rgstdt" mask="expr:utlf_isNull(rgstdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  193. <Cell col="16" text="bind:orddridnm"/>
  194. <Cell col="17" text="bind:execdt" mask="expr:utlf_isNull(execdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  195. <Cell col="18" text="bind:fstrgstrnm"/>
  196. <Cell col="19" text="bind:deliveexecdt" mask="expr:utlf_isNull(deliveexecdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  197. <Cell col="20" text="bind:deliveexecnm"/>
  198. <Cell col="21" text="bind:testexecnm"/>
  199. <Cell col="22" text="bind:prcpdelivefact"/>
  200. <Cell col="23" text="bind:nurseremark"/>
  201. <Cell col="24" text="bind:alttest"/>
  202. <Cell col="25" text="bind:alttestdt" mask="expr:utlf_isNull(alttestdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  203. <Cell col="26" text="bind:antihcvtest"/>
  204. <Cell col="27" text="bind:antihcvtestdt" mask="expr:utlf_isNull(antihcvtestdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  205. <Cell col="28" text="bind:hivtest"/>
  206. <Cell col="29" text="bind:hivtestdt" mask="expr:utlf_isNull(hivtestdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  207. <Cell col="30" text="bind:vdrltest"/>
  208. <Cell col="31" text="bind:vdrltestdt" mask="expr:utlf_isNull(vdrltestdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  209. <Cell col="32" text="bind:hbsagtest"/>
  210. <Cell col="33" text="bind:hbsagtestdt" mask="expr:utlf_isNull(hbsagtestdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  211. <Cell col="34" text="bind:nattest"/>
  212. <Cell col="35" text="bind:nattestdt" mask="expr:utlf_isNull(nattestdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  213. </Band>
  214. </Format>
  215. </Formats>
  216. </Grid>
  217. <Shape id="line16" linetype="horizontal" class="line_10" position="absolute 0 111 1184 117" anchor="left top right"/>
  218. <Static id="caption26" text="수행처방내역" class="tit_2" position="absolute 0 93 109 110"/>
  219. <Static id="caption8" text="[표]" position="absolute 1155 755 1180 767"/>
  220. <Static id="caption6" text="혈액미불출리스트조회" class="tit_1" position="absolute 0 0 174 25"/>
  221. </Layout>
  222. </Layouts>
  223. <Objects>
  224. <Dataset id="ds_main_execdetlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="roomcd" type="STRING"/>
  227. <Column id="pid" type="STRING"/>
  228. <Column id="patnm" type="STRING"/>
  229. <Column id="grdrage" type="STRING"/>
  230. <Column id="aborh" type="STRING"/>
  231. <Column id="prcpstat" type="STRING"/>
  232. <Column id="prcppreptfflag" type="STRING"/>
  233. <Column id="prcpcd" type="STRING"/>
  234. <Column id="prcpnm" type="STRING"/>
  235. <Column id="irr" type="STRING"/>
  236. <Column id="fil" type="STRING"/>
  237. <Column id="blodno" type="STRING"/>
  238. <Column id="validt" type="STRING"/>
  239. <Column id="prcphopedd" type="STRING"/>
  240. <Column id="rgstdt" type="STRING"/>
  241. <Column id="orddridnm" type="STRING"/>
  242. <Column id="execdt" type="STRING"/>
  243. <Column id="fstrgstrnm" type="STRING"/>
  244. <Column id="deliveexecdt" type="STRING"/>
  245. <Column id="deliveexecnm" type="STRING"/>
  246. <Column id="testexecnm" type="STRING"/>
  247. <Column id="prcpdelivefact" type="STRING"/>
  248. <Column id="nurseremark" type="STRING"/>
  249. <Column id="alttest" type="STRING"/>
  250. <Column id="alttestdt" type="STRING"/>
  251. <Column id="antihcvtest" type="STRING"/>
  252. <Column id="antihcvtestdt" type="STRING"/>
  253. <Column id="hivtest" type="STRING"/>
  254. <Column id="hivtestdt" type="STRING"/>
  255. <Column id="vdrltest" type="STRING"/>
  256. <Column id="vdrltestdt" type="STRING"/>
  257. <Column id="hbsagtest" type="STRING"/>
  258. <Column id="hbsagtestdt" type="STRING"/>
  259. <Column id="nattest" type="STRING"/>
  260. <Column id="nattestdt" type="STRING"/>
  261. </ColumnInfo>
  262. </Dataset>
  263. <Dataset id="ds_main_cond_wardcdgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  264. <ColumnInfo>
  265. <Column id="wardcd" type="STRING" size="256"/>
  266. <Column id="wardnm" type="STRING" size="256"/>
  267. </ColumnInfo>
  268. <Rows>
  269. <Row/>
  270. </Rows>
  271. </Dataset>
  272. <Dataset id="ds_main_cond_roomcdgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  273. <ColumnInfo>
  274. <Column id="roomcd" type="STRING" size="256"/>
  275. <Column id="roomnm" type="STRING" size="256"/>
  276. </ColumnInfo>
  277. <Rows>
  278. <Row/>
  279. </Rows>
  280. </Dataset>
  281. <Dataset id="ds_main_cond_patientgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  282. <ColumnInfo>
  283. <Column id="patientnm" type="STRING" size="256"/>
  284. <Column id="pid" type="STRING" size="256"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row/>
  288. </Rows>
  289. </Dataset>
  290. <Dataset id="ds_main_cond_patientgrupInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  291. <ColumnInfo>
  292. <Column id="patientnm" type="STRING" size="256"/>
  293. <Column id="pid" type="STRING" size="256"/>
  294. <Column id="sexage" type="STRING" size="256"/>
  295. <Column id="abo" type="STRING" size="256"/>
  296. <Column id="rhname" type="STRING" size="256"/>
  297. <Column id="rh" type="STRING" size="256"/>
  298. <Column id="btype" type="STRING" size="256"/>
  299. <Column id="reptrslt" type="STRING" size="256"/>
  300. </ColumnInfo>
  301. <Rows>
  302. <Row>
  303. <Col id="patientnm"/>
  304. <Col id="pid"/>
  305. <Col id="sexage"/>
  306. <Col id="abo"/>
  307. <Col id="rhname"/>
  308. <Col id="rh"/>
  309. <Col id="btype"/>
  310. <Col id="reptrslt"/>
  311. </Row>
  312. </Rows>
  313. </Dataset>
  314. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  315. <ColumnInfo>
  316. <Column id="prcpddfrom" type="STRING" size="256"/>
  317. <Column id="prcdddto" type="STRING" size="256"/>
  318. <Column id="dateflag" type="STRING" size="256"/>
  319. <Column id="wardpatientflag" type="STRING" size="256"/>
  320. <Column id="deliveflag" type="STRING" size="256"/>
  321. </ColumnInfo>
  322. <Rows>
  323. <Row>
  324. <Col id="prcpddfrom"/>
  325. <Col id="prcdddto"/>
  326. <Col id="dateflag">prcpddselect</Col>
  327. <Col id="wardpatientflag">patient</Col>
  328. <Col id="deliveflag">1</Col>
  329. </Row>
  330. </Rows>
  331. </Dataset>
  332. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  333. </Objects>
  334. <Bind>
  335. <BindItem id="item0" compid="grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="dateflag"/>
  336. <BindItem id="item1" compid="grp_sea.input2" propid="value" datasetid="ds_main_cond" columnid="prcpddfrom"/>
  337. <BindItem id="item2" compid="grp_sea.input11" propid="value" datasetid="ds_main_cond" columnid="prcdddto"/>
  338. <BindItem id="item3" compid="grp_sea.radio2" propid="value" datasetid="ds_main_cond" columnid="deliveflag"/>
  339. <BindItem id="item4" compid="grp_sea.radio1" propid="value" datasetid="ds_main_cond" columnid="wardpatientflag"/>
  340. <BindItem id="item5" compid="grp_sea.input3" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="pid"/>
  341. <BindItem id="item6" compid="grp_sea.output2" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="patientnm"/>
  342. <BindItem id="item7" compid="grp_sea.output3" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="sexage"/>
  343. </Bind>
  344. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  345. * System Name :
  346. * Job Name :
  347. * Creator :
  348. * Make Date : 2015-11-13
  349. * Description :
  350. *---------------------------------------------------------------------------------------
  351. * Modify Date Modifier Modify Description
  352. *---------------------------------------------------------------------------------------
  353. * 2015-11-13 Live Converter TF->XP
  354. *
  355. *---------------------------------------------------------------------------------------
  356. ****************************************************************************************/
  357. include "com_commonxp::comm_main.xjs";
  358. var arErrorCode = new HashArray();
  359. /******************************************************************
  360. * Argument :
  361. * Description : 초기화
  362. ******************************************************************/
  363. function SMMNR07600_oninit(obj:Form, e:InitEventInfo)
  364. {
  365. frmf_initForm(obj);
  366. }
  367. function SMMNR07600_onload(obj:Form, e:LoadEventInfo)
  368. {
  369. ds_main_execdetlgrup.clearData();
  370. var addDy = utlf_getCurrentDate(); // 기준일에 현재날짜(디폴트)
  371. addDy = addDy.toDate().getAddDate(-3,"D");
  372. addDy = addDy.getDateFormat();
  373. ds_main_cond.setColumn(0, "prcpddfrom", addDy);
  374. ds_main_cond.setColumn(0, "prcdddto", utlf_getCurrentDate());
  375. fGetWardList();// 병동코드 리스트
  376. grp_sea.input3.setFocus();
  377. }
  378. /**
  379. * @group :
  380. * @ver : 2007.06.18
  381. * @by : 정찬성
  382. * @---------------------------------------------------
  383. * @type : function
  384. * @access : public
  385. * @desc : 병동 조회
  386. * @param :
  387. * @return :
  388. * @---------------------------------------------------
  389. */
  390. function fGetWardList(){
  391. ds_send.clear();
  392. ds_send.addColumn("wardcd", "string", 256);
  393. ds_send.addColumn("deptsearchyn", "string", 256);
  394. var iRow = ds_send.addRow();
  395. ds_send.setColumn(iRow, "wardcd", ds_main_cond_wardcdgrup.getColumn(0, "wardcd"));
  396. ds_send.setColumn(iRow, "deptsearchyn", "Y");
  397. var oParam = {};
  398. oParam.id = "TRMNR07602";
  399. oParam.service = "carerecapp.TnsCareRec";
  400. oParam.method = "reqGetWardList";
  401. oParam.inds = "refCond=ds_send";
  402. oParam.outds = "ds_main_cond_wardcdgrup=wardcdgruplist";
  403. oParam.async = false;
  404. oParam.callback = "cf_TRMNR07602";
  405. tranf_submit(oParam);
  406. if( arErrorCode.pop("TRMNR07602") > -1 ){
  407. if( ds_main_cond.getColumn(0, "wardpatientflag") == "ward" ){
  408. grp_sea.combo7.setFocus();
  409. }else{
  410. grp_sea.input3.setFocus();
  411. }
  412. }
  413. }
  414. function cf_TRMNR07602(sSvcId, nErrorCode, sErrorMsg) {
  415. arErrorCode.push(sSvcId, nErrorCode);
  416. }
  417. /******************************************************************
  418. * Argument :
  419. * Description : 전체/불출/미불출 radio event
  420. ******************************************************************/
  421. function grp_sea_radio2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  422. {
  423. fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
  424. }
  425. /******************************************************************
  426. * Argument :
  427. * Description : 병동별/환자별 radio event
  428. ******************************************************************/
  429. function grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  430. {
  431. var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
  432. if( wardpatientflag == 'ward') {
  433. grp_sea.combo2.enable = false ;
  434. grp_sea.combo8.enable = false ;
  435. grp_sea.input3.enable = false ;
  436. grp_sea.combo2.value = "" ;
  437. grp_sea.combo8.value = "" ;
  438. grp_sea.input3.value = "" ;
  439. grp_sea.output3.value = "" ;
  440. grp_sea.output2.value = "" ;
  441. grp_sea.combo7.index = 0 ;
  442. grp_sea.combo7.setFocus();
  443. } else {
  444. grp_sea.combo2.enable = true ;
  445. grp_sea.combo8.enable = true ;
  446. grp_sea.input3.enable = true ;
  447. grp_sea.output2.enable = true;
  448. grp_sea.combo2.value = "" ;
  449. grp_sea.combo8.value = "" ;
  450. grp_sea.input3.value = "" ;
  451. grp_sea.output3.value = "" ;
  452. grp_sea.output2.value = "" ;
  453. grp_sea.combo7.index = 0 ;
  454. grp_sea.combo7.setFocus();
  455. }
  456. ds_main_execdetlgrup.clearData();
  457. }
  458. /******************************************************************
  459. * Argument :
  460. * Description : 병동 combo event
  461. ******************************************************************/
  462. function grp_sea_combo7_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  463. {
  464. var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
  465. if( wardpatientflag == 'ward') {
  466. fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
  467. } else {
  468. grp_sea.input3.value = "" ;
  469. grp_sea.output2.value = "" ;
  470. grp_sea.output3.value = "" ;
  471. grp_sea.output2.visible = false;
  472. grp_sea.combo8.value = "";
  473. fGetRoomList();// 병실정보를 가져온다.
  474. }
  475. }
  476. /******************************************************************
  477. * Argument :
  478. * Description : 등록번호 input event
  479. ******************************************************************/
  480. function grp_sea_input3_onkeyup(obj:Edit, e:KeyEventInfo)
  481. {
  482. if( e.keycode == 13 ){
  483. fGetPatientInfo("entr");
  484. grp_sea.output2.visible = true;
  485. ds_main_cond_roomcdgrup.clearData();
  486. frmf_inputEnterKey("grp_sea.button3", "onclick", new ClickEventInfo);
  487. }
  488. }
  489. /******************************************************************
  490. * Argument :
  491. * Description : 병동 combo event
  492. ******************************************************************/
  493. function grp_sea_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  494. {
  495. grp_sea.input3.value = "" ;
  496. grp_sea.output2.value = "" ;
  497. grp_sea.output3.value = "" ;
  498. fGetPatientList();// 환자리스트 정보를 가져온다.
  499. }
  500. /******************************************************************
  501. * Argument :
  502. * Description : 성명 combo event
  503. ******************************************************************/
  504. function grp_sea_combo8_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  505. {
  506. var cRow = ds_main_cond_patientgrup.rowposition;
  507. grp_sea.input3.value = ds_main_cond_patientgrup.getColumn(cRow, "pid");
  508. grp_sea.output2.value = "" ;
  509. grp_sea.output3.value = "" ;
  510. fGetPatientInfo();// 환자 개인정보를 가져온다.
  511. fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
  512. }
  513. /******************************************************************
  514. * Argument :
  515. * Description : 조회 button event
  516. ******************************************************************/
  517. function grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
  518. {
  519. fGetBlodNoDeliveList();//혈액미불출 리스트 조회버튼
  520. }
  521. /**
  522. * @group :
  523. * @ver : 2007.06.18
  524. * @by : 정찬성
  525. * @---------------------------------------------------
  526. * @type : function
  527. * @access : public
  528. * @desc : 혈액미불출 리스트 조회
  529. * @param :
  530. * @return :
  531. * @---------------------------------------------------
  532. */
  533. function fGetBlodNoDeliveList(){
  534. var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
  535. if( wardpatientflag == "patient" ) {
  536. if( utlf_isNull(grp_sea.input3.value) ){
  537. sysf_messageBox("등록번호를 ","C001");
  538. grp_sea.input3.setFocus();
  539. return;
  540. }
  541. }
  542. ds_send.clear();
  543. ds_send.addColumn("prcpddfrom", "string", 256);
  544. ds_send.addColumn("prcpddto", "string", 256);
  545. ds_send.addColumn("wardcd", "string", 256);
  546. ds_send.addColumn("roomcd", "string", 256);
  547. ds_send.addColumn("hngnm", "string", 256);
  548. ds_send.addColumn("pid", "string", 256);
  549. ds_send.addColumn("dateflag", "string", 256);
  550. ds_send.addColumn("wardpatientflag", "string", 256);
  551. ds_send.addColumn("deliveflag", "string", 256);
  552. var iRow = ds_send.addRow();
  553. ds_send.setColumn(iRow, "prcpddfrom", grp_sea.input2.value);
  554. ds_send.setColumn(iRow, "prcpddto", grp_sea.input11.value);
  555. ds_send.setColumn(iRow, "wardcd", grp_sea.combo7.value);
  556. ds_send.setColumn(iRow, "roomcd", grp_sea.combo2.value);
  557. ds_send.setColumn(iRow, "hngnm", grp_sea.combo8.value);
  558. ds_send.setColumn(iRow, "pid", grp_sea.input3.value);
  559. ds_send.setColumn(iRow, "dateflag", grp_sea.combo1.value);
  560. ds_send.setColumn(iRow, "wardpatientflag", grp_sea.radio1.value);
  561. ds_send.setColumn(iRow, "deliveflag", grp_sea.radio2.value);
  562. var oParam = {};
  563. oParam.id = "TRMNR07606";
  564. oParam.service = "carerecapp.TnsCareRec";
  565. oParam.method = "reqGetBlodNoDeliveList";
  566. oParam.inds = "refCond=ds_send";
  567. oParam.outds = "ds_main_execdetlgrup=execdetlgruplist";
  568. oParam.async = false;
  569. //oParam.callback = "cf_TRMNR07606";
  570. tranf_submit(oParam);
  571. // if( arErrorCode.pop("TRMNR07606") > -1 ){
  572. //
  573. // }
  574. }
  575. // function cf_TRMNR07606(sSvcId, nErrorCode, sErrorMsg) {
  576. // arErrorCode.push(sSvcId, nErrorCode);
  577. // }
  578. /**
  579. * @group :
  580. * @ver : 2007.06.18
  581. * @by : 정찬성
  582. * @---------------------------------------------------
  583. * @type : function
  584. * @access : public
  585. * @desc : 환자 정보 조회 combo
  586. * @param :
  587. * @return :
  588. * @---------------------------------------------------
  589. */
  590. function fGetPatientList(){
  591. ds_send.clear();
  592. ds_send.addColumn("wardcd", "string", 256);
  593. ds_send.addColumn("roomcd", "string", 256);
  594. var iRow = ds_send.addRow();
  595. ds_send.setColumn(iRow, "wardcd", grp_sea.combo7.value);
  596. ds_send.setColumn(iRow, "roomcd", grp_sea.combo2.value);
  597. var oParam = {};
  598. oParam.id = "TRMNR07604";
  599. oParam.service = "carerecapp.TnsCareRec";
  600. oParam.method = "reqGetPatientList";
  601. oParam.inds = "refCond=ds_send";
  602. oParam.outds = "ds_main_cond_patientgrup=patientgruplist";
  603. oParam.async = false;
  604. //oParam.callback = "cf_TRMNR07604";
  605. tranf_submit(oParam);
  606. grp_sea.combo8.setFocus();
  607. }
  608. /**
  609. * @group :
  610. * @ver : 2007.06.18
  611. * @by : 정찬성
  612. * @---------------------------------------------------
  613. * @type : function
  614. * @access : public
  615. * @desc : 병실 조회 combo
  616. * @param :
  617. * @return :
  618. * @---------------------------------------------------
  619. */
  620. function fGetRoomList(){
  621. ds_send.clear();
  622. ds_send.addColumn("wardcd", "string", 256);
  623. var iRow = ds_send.addRow();
  624. ds_send.setColumn(iRow, "wardcd", grp_sea.combo7.value);
  625. var oParam = {};
  626. oParam.id = "TRMNR07603";
  627. oParam.service = "carerecapp.TnsCareRec";
  628. oParam.method = "reqGetRoomList";
  629. oParam.inds = "refCond=ds_send";
  630. oParam.outds = "ds_main_cond_roomcdgrup=roomcdgruplist";
  631. oParam.async = false;
  632. //oParam.callback = "cf_TRMNR07603";
  633. tranf_submit(oParam);
  634. grp_sea.combo2.setFocus();
  635. }
  636. /**
  637. * @group :
  638. * @ver : 2007.06.18
  639. * @by : 정찬성
  640. * @---------------------------------------------------
  641. * @type : function
  642. * @access : public
  643. * @desc : 환자 상세정보 조회 combo
  644. * @param :
  645. * @return :
  646. * @---------------------------------------------------
  647. */
  648. function fGetPatientInfo(pFlag){
  649. ds_send.clear();
  650. if( pFlag == "entr" ){
  651. grp_sea.combo7.value = "";
  652. grp_sea.combo2.value = "";
  653. grp_sea.combo8.value = "";
  654. ds_send.addColumn("pid", "string", 256);
  655. var iRow = ds_send.addRow();
  656. ds_send.setColumn(iRow, "pid", grp_sea.input3.value);
  657. }else{
  658. ds_send.addColumn("pid", "string", 256);
  659. ds_send.addColumn("pid", "string", 256);
  660. var nRow = ds_send.addRow();
  661. ds_send.setColumn(nRow, "wardcd", grp_sea.combo7.value);
  662. ds_send.setColumn(nRow, "roomcd", grp_sea.combo2.value);
  663. if( !utlf_isNull(grp_sea.combo8.value) ){
  664. ds_send.setColumn(nRow, "pid", grp_sea.combo8.value);
  665. }
  666. }
  667. var oParam = {};
  668. oParam.id = "TRMNR07605";
  669. oParam.service = "carerecapp.TnsCareRec";
  670. oParam.method = "reqGetPatientInto";
  671. oParam.inds = "refCond=ds_send";
  672. oParam.outds = "ds_main_cond_patientgrupInfo=patientgrupInfo";
  673. oParam.async = false;
  674. oParam.callback = "cf_TRMNR07605";
  675. tranf_submit(oParam);
  676. if( arErrorCode.pop("TRMNR07605") > -1 ){
  677. if( pFlag == "entr" ){
  678. ds_main_cond_patientgrup.copyData(ds_main_cond_patientgrupInfo);
  679. }
  680. }
  681. frmf_inputEnterKey("grp_sea.button3", "onclick", new ClickEventInfo);
  682. }
  683. function cf_TRMNR07605(sSvcId, nErrorCode, sErrorMsg) {
  684. arErrorCode.push(sSvcId, nErrorCode);
  685. }
  686. /******************************************************************
  687. * Argument :
  688. * Description : Excel button event
  689. ******************************************************************/
  690. function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  691. {
  692. if( ds_main_cond_execdetlgrup.rowcount > 1 ){
  693. grdf_exportExcel(grd_execdetlgruplist, "혈액미불출리스트", "혈액미불출리스트", false, "", "", false);
  694. } else {
  695. sysf_messageBox("조회된 데이터가 ", "I004");
  696. }
  697. }
  698. ]]></Script>
  699. </Form>
  700. </FDL>