SMLBP01620_과별성분제제별불출건수.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBP01600" position="absolute 0 0 1256 805" titletext="과별 성분제재별 출고건수조회" onload="SMLBP01600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption5" text="과별 성분제재별 출고건수조회" class="tit_1" position="absolute 0 0 257 25"/>
  8. <Div id="group2" taborder="4" position="absolute 0 25 1252 92" anchor="left top right" class="div_SA">
  9. <Layouts>
  10. <Layout>
  11. <Calendar id="input1" taborder="1" class="input_s_essential" position="absolute 81 18 171 38" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  12. <Button id="btn_sea" taborder="2" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 606 18 662 38" anchor="top right" onclick="group2_btn_sea_onclick"/>
  13. <Static id="caption9" text="조회일자" class="search_name" position="absolute 8 18 82 38" anchor="default"/>
  14. <Calendar id="input2" taborder="3" class="input_s_essential" position="absolute 230 18 320 38" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  15. <Static id="caption13" text="~" class="search_no_b" position="absolute 214 18 230 38" anchor="default" style="align:center;"/>
  16. <Static id="caption20" text="혈액성분" class="search_name" position="absolute 387 18 461 38" anchor="default"/>
  17. <Combo id="combo1" taborder="5" position="absolute 461 18 581 38" anchor="default" innerdataset="@ds_init_lb0606" codecolumn="cd" datacolumn="nm"/>
  18. <MaskEdit id="input6" taborder="8" mask="##:##" position="absolute 323 18 363 38" style="align:center middle;" anchor="default" type="string"/>
  19. <MaskEdit id="input3" taborder="12" mask="##:##" position="absolute 174 18 214 38" style="align:center middle;" anchor="default" type="string"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Button id="button51" taborder="7" text="엑셀" onlbuttonup="button51_onlbuttonup" class="btn7" position="absolute 1088 48 1144 68" anchor="top right" onclick="button51_onclick"/>
  24. <Static id="caption3" text="불출 내역" class="tit_2" position="absolute 0 102 117 122"/>
  25. <Button id="btn_cle" taborder="27" text="초기화" onlbuttonup="btn_cle_onlbuttonup" class="btn4" position="absolute 1147 48 1216 68" anchor="top right"/>
  26. <Grid id="grd_delive" taborder="29" binddataset="ds_grid_grd_delive" useinputpanel="false" oncellclick="grd_delive_oncellclick" position="absolute 640 280 941 560" anchor="all" onclick="grd_delive_onclick" selecttype="cell" autoenter="select" onheadclick="grd_delive_onheadclick">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="30"/>
  31. <Column size="60"/>
  32. <Column size="80"/>
  33. <Column size="46"/>
  34. <Column size="66"/>
  35. <Column size="112"/>
  36. <Column size="30"/>
  37. <Column size="80"/>
  38. <Column size="74"/>
  39. <Column size="90"/>
  40. <Column size="60"/>
  41. <Column size="60"/>
  42. <Column size="60"/>
  43. <Column size="60"/>
  44. <Column size="66"/>
  45. <Column size="66"/>
  46. <Column size="66"/>
  47. <Column size="66"/>
  48. <Column size="66"/>
  49. <Column size="66"/>
  50. <Column size="66"/>
  51. <Column size="106"/>
  52. <Column size="106"/>
  53. <Column size="106"/>
  54. <Column size="106"/>
  55. <Column size="100"/>
  56. <Column size="106"/>
  57. <Column size="70"/>
  58. <Column size="70"/>
  59. <Column size="40"/>
  60. <Column size="100"/>
  61. <Column size="114"/>
  62. <Column size="100"/>
  63. <Column size="500"/>
  64. <Column size="0"/>
  65. </Columns>
  66. <Rows>
  67. <Row size="24" band="head"/>
  68. <Row size="24"/>
  69. </Rows>
  70. <Band id="head">
  71. <Cell/>
  72. <Cell col="1" text="상태"/>
  73. <Cell col="2" text="혈액번호"/>
  74. <Cell col="3" text="seq"/>
  75. <Cell col="4" text="혈액형"/>
  76. <Cell col="5" text="성분제제"/>
  77. <Cell col="6" text="Irr"/>
  78. <Cell col="7" text="환자명"/>
  79. <Cell col="8" text="등록번호"/>
  80. <Cell col="9" text="병동/병실"/>
  81. <Cell col="10" text="접수자"/>
  82. <Cell col="11" text="검사자"/>
  83. <Cell col="12" text="불출자"/>
  84. <Cell col="13" text="수령자"/>
  85. <Cell col="14" text="검사결과"/>
  86. <Cell col="15" text="실온 Saline"/>
  87. <Cell col="16" text="37˚c ALB/LISS"/>
  88. <Cell col="17" text="Coombs"/>
  89. <Cell col="18" text="Special"/>
  90. <Cell col="19" text="4˚c Saline"/>
  91. <Cell col="20" text="Enzyme"/>
  92. <Cell col="21" text="불출일자"/>
  93. <Cell col="22" text="준비일자"/>
  94. <Cell col="23" text="검사일자"/>
  95. <Cell col="24" text="유효일자"/>
  96. <Cell col="25" text="반환,폐기"/>
  97. <Cell col="26" text="반환,폐기일"/>
  98. <Cell col="27" text="지정Donor"/>
  99. <Cell col="28" text="처방의"/>
  100. <Cell col="29" text="Filter"/>
  101. <Cell col="30" text="수혈시작시간"/>
  102. <Cell col="31" text="수혈부작용"/>
  103. <Cell col="32" text="수혈부서"/>
  104. <Cell col="33" text="Comment"/>
  105. <Cell col="34" text="caption2"/>
  106. </Band>
  107. <Band id="body">
  108. <Cell celltype="head" expr="expr:currow+1"/>
  109. <Cell col="1" text="bind:blodcomstat"/>
  110. <Cell col="2" displaytype="text" edittype="text" text="bind:blodno" editautoselect="true"/>
  111. <Cell col="3" text="bind:prepblodseqno"/>
  112. <Cell col="4" text="bind:btype"/>
  113. <Cell col="5" style="align:left middle;" text="bind:blodcomnm"/>
  114. <Cell col="6" style="align:center middle;" text="bind:iryn"/>
  115. <Cell col="7" style="align:center middle;" text="bind:patnm"/>
  116. <Cell col="8" displaytype="text" edittype="text" text="bind:pid" editautoselect="true"/>
  117. <Cell col="9" text="bind:wardroom"/>
  118. <Cell col="10" style="align:center middle;" text="bind:prepid"/>
  119. <Cell col="11" style="align:center middle;" text="bind:cmid"/>
  120. <Cell col="12" displaytype="normal" style="align:center middle;" text="bind:deliveid"/>
  121. <Cell col="13" style="align:center middle;" text="bind:acptid"/>
  122. <Cell col="14" displaytype="combo" text="bind:cmrslt" combodataset="ds_rslt" combocodecol="value" combodatacol="label"/>
  123. <Cell col="15" text="bind:cmrslt01"/>
  124. <Cell col="16" text="bind:cmrslt02"/>
  125. <Cell col="17" text="bind:cmrslt03"/>
  126. <Cell col="18" text="bind:cmrslt04"/>
  127. <Cell col="19" text="bind:cmrslt05"/>
  128. <Cell col="20" text="bind:cmrslt06"/>
  129. <Cell col="21" text="bind:delivedt" mask="expr:delivedt==null?'':'####-##-## ##:##'"/>
  130. <Cell col="22" text="bind:prepdt" mask="expr:prepdt==null?'':'####-##-## ##:##'"/>
  131. <Cell col="23" text="bind:testdt" mask="expr:testdt==null?'':'####-##-## ##:##'"/>
  132. <Cell col="24" text="bind:validt" mask="expr:validt==null?'':'####-##-## ##:##'"/>
  133. <Cell col="25" text="bind:rtnabn"/>
  134. <Cell col="26" text="bind:rtnabndt" mask="expr:rtnabndt==null?'':'####-##-## ##:##'"/>
  135. <Cell col="27" style="align:center middle;" text="bind:dnornm"/>
  136. <Cell col="28" style="align:center middle;" text="bind:orddrnm"/>
  137. <Cell col="29" style="align:center middle;" text="bind:filteryn"/>
  138. <Cell col="30" text="bind:tnsstrddtm" mask="expr:tnsstrddtm==null?'':'####-##-## ##:##'"/>
  139. <Cell col="31" text="bind:tnssideeffect"/>
  140. <Cell col="32" text="bind:dept"/>
  141. <Cell col="33" style="align:left;" text="bind:cmt"/>
  142. <Cell col="34"/>
  143. </Band>
  144. </Format>
  145. </Formats>
  146. </Grid>
  147. <Grid id="grd_tnslist" class="datagrid2" taborder="30" binddataset="ds_grid_grd_tnslist" useinputpanel="false" treeuseline="false" treeusecheckbox="false" treeuseimage="false" position="absolute 0 122 1248 805" anchor="all">
  148. <Formats>
  149. <Format id="default">
  150. <Columns>
  151. <Column size="30"/>
  152. <Column size="0"/>
  153. <Column size="0"/>
  154. <Column size="75"/>
  155. <Column size="248"/>
  156. <Column size="139"/>
  157. <Column size="122"/>
  158. </Columns>
  159. <Rows>
  160. <Row size="35" band="head"/>
  161. <Row size="32"/>
  162. </Rows>
  163. <Band id="head">
  164. <Cell text="No."/>
  165. <Cell col="1" text="수혈희망일"/>
  166. <Cell col="2" text="수혈구분"/>
  167. <Cell col="3" text="처방과"/>
  168. <Cell col="4" text="성분제제"/>
  169. <Cell col="5" text="제제코드"/>
  170. <Cell col="6" text="출고건수"/>
  171. </Band>
  172. <Band id="body">
  173. <Cell celltype="head" expr="expr:currow+1"/>
  174. <Cell col="1" text="bind:prcphopedd" mask="expr:prcphopedd==null?'':'####-##-##'"/>
  175. <Cell col="2" text="bind:tnsreqacptflag"/>
  176. <Cell col="3" text="bind:orddeptnm"/>
  177. <Cell col="4" style="align:left;" text="bind:blodcomnm"/>
  178. <Cell col="5" text="bind:blodcomcd"/>
  179. <Cell col="6" text="bind:cnt"/>
  180. </Band>
  181. </Format>
  182. </Formats>
  183. </Grid>
  184. </Layout>
  185. </Layouts>
  186. <Objects>
  187. <Dataset id="ds_cond_refgbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="label" type="STRING" size="256"/>
  190. <Column id="value" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row>
  194. <Col id="label">준비일자</Col>
  195. <Col id="value">1</Col>
  196. </Row>
  197. <Row>
  198. <Col id="label">불출일자</Col>
  199. <Col id="value">2</Col>
  200. </Row>
  201. </Rows>
  202. </Dataset>
  203. <Dataset id="ds_init_lb0606" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="cd" type="STRING" size="256"/>
  206. <Column id="nm" type="STRING" size="256"/>
  207. <Column id="etc01" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. </Dataset>
  210. <Dataset id="ds_cond_btype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  211. <ColumnInfo>
  212. <Column id="label" type="STRING" size="256"/>
  213. <Column id="value" type="STRING" size="256"/>
  214. </ColumnInfo>
  215. <Rows>
  216. <Row>
  217. <Col id="label">-전체-</Col>
  218. <Col id="value">00</Col>
  219. </Row>
  220. <Row>
  221. <Col id="label">A+</Col>
  222. <Col id="value">A+</Col>
  223. </Row>
  224. <Row>
  225. <Col id="label">B+</Col>
  226. <Col id="value">B+</Col>
  227. </Row>
  228. <Row>
  229. <Col id="label">O+</Col>
  230. <Col id="value">O+</Col>
  231. </Row>
  232. <Row>
  233. <Col id="label">AB+</Col>
  234. <Col id="value">AB+</Col>
  235. </Row>
  236. <Row>
  237. <Col id="label">other</Col>
  238. <Col id="value">E</Col>
  239. </Row>
  240. </Rows>
  241. </Dataset>
  242. <Dataset id="ds_grid_grd_delive" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  243. <ColumnInfo>
  244. <column id="blodcomstat" type="STRING" size="256"/>
  245. <column id="blodno" type="STRING" size="256"/>
  246. <column id="prepblodseqno" type="STRING" size="256"/>
  247. <column id="btype" type="STRING" size="256"/>
  248. <column id="blodcomnm" type="STRING" size="256"/>
  249. <column id="iryn" type="STRING" size="256"/>
  250. <column id="patnm" type="STRING" size="256"/>
  251. <column id="pid" type="STRING" size="256"/>
  252. <column id="wardroom" type="STRING" size="256"/>
  253. <column id="dept" type="STRING" size="256"/>
  254. <column id="prepid" type="STRING" size="256"/>
  255. <column id="cmid" type="STRING" size="256"/>
  256. <column id="deliveid" type="STRING" size="256"/>
  257. <column id="acptid" type="STRING" size="256"/>
  258. <column id="cmrslt" type="STRING" size="256"/>
  259. <column id="cmrslt01" type="STRING" size="256"/>
  260. <column id="cmrslt02" type="STRING" size="256"/>
  261. <column id="cmrslt03" type="STRING" size="256"/>
  262. <column id="cmrslt04" type="STRING" size="256"/>
  263. <column id="cmrslt05" type="STRING" size="256"/>
  264. <column id="cmrslt06" type="STRING" size="256"/>
  265. <column id="delivedt" type="STRING" size="256"/>
  266. <column id="prepdt" type="STRING" size="256"/>
  267. <column id="testdt" type="STRING" size="256"/>
  268. <column id="validt" type="STRING" size="256"/>
  269. <column id="rtnabn" type="STRING" size="256"/>
  270. <column id="rtnabndt" type="STRING" size="256"/>
  271. <column id="tnsstrddtm" type="STRING" size="256"/>
  272. <column id="tnssideeffect" type="STRING" size="256"/>
  273. <column id="orddrnm" type="STRING" size="256"/>
  274. <column id="filteryn" type="STRING" size="256"/>
  275. <column id="cmt" type="STRING" size="256"/>
  276. <column id="returncnt" type="BIGDECIMAL" size="256"/>
  277. <column id="dnornm" type="STRING" size="256"/>
  278. <column id="patcmt" type="STRING" size="256"/>
  279. </ColumnInfo>
  280. </Dataset>
  281. <Dataset id="ds_rslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  282. <ColumnInfo>
  283. <Column id="label" type="STRING" size="256"/>
  284. <Column id="value" type="STRING" size="256"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row>
  288. <Col id="label">적합</Col>
  289. <Col id="value">1</Col>
  290. </Row>
  291. <Row>
  292. <Col id="label">부적합</Col>
  293. <Col id="value">2</Col>
  294. </Row>
  295. <Row>
  296. <Col id="label">적합(응급)</Col>
  297. <Col id="value">3</Col>
  298. </Row>
  299. <Row>
  300. <Col id="label">준비</Col>
  301. <Col id="value">4</Col>
  302. </Row>
  303. <Row>
  304. <Col id="label">검사중</Col>
  305. <Col id="value">5</Col>
  306. </Row>
  307. <Row>
  308. <Col id="label">보류</Col>
  309. <Col id="value">6</Col>
  310. </Row>
  311. <Row>
  312. <Col id="label">최소적합</Col>
  313. <Col id="value">7</Col>
  314. </Row>
  315. </Rows>
  316. </Dataset>
  317. <Dataset id="ds_grid_grd_tnslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  318. <ColumnInfo>
  319. <Column id="orddeptnm" type="STRING" size="256"/>
  320. <Column id="blodcomnm" type="STRING" size="256"/>
  321. <Column id="blodcomcd" type="STRING" size="256"/>
  322. <Column id="cnt" type="STRING" size="256"/>
  323. </ColumnInfo>
  324. </Dataset>
  325. </Objects>
  326. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  327. * System Name :
  328. * Job Name :
  329. * Creator :
  330. * Make Date : 2015-05-01
  331. * Description :
  332. *---------------------------------------------------------------------------------------
  333. * Modify Date Modifier Modify Description
  334. *---------------------------------------------------------------------------------------
  335. * 2015-05-01 Live Converter TF->XP
  336. *
  337. *---------------------------------------------------------------------------------------
  338. ****************************************************************************************/
  339. include "com_commonxp::comm_main.xjs";
  340. include "lis_commonxp::LZZ001.xjs";
  341. include "lis_commonxp::LLZ001.xjs";
  342. function SMLBP01600_onload(obj:Form, e:LoadEventInfo)
  343. {
  344. //폼 초기화 함수
  345. frmf_initForm(obj);
  346. lf_setInit();
  347. }
  348. function lf_setInit() {
  349. //0121 혈액원기관코드
  350. lf_getDbDeptcd("0000|0606|");
  351. var toDay = utlf_getCurrentDate();
  352. var mDate = utlf_addDate(toDay, 1);
  353. group2.input1.value = toDay;
  354. group2.input2.value = mDate;
  355. group2.input3.value = "0800";
  356. group2.input6.value = "0759";
  357. group2.combo1.value = "00";
  358. group2.combo2.value = "00";
  359. group00.input5.value = "3";
  360. group2.combo3.value = "1";
  361. group2.ipt_blodno.value = "";
  362. group2.ipt_blodno2.value = "";
  363. }
  364. function lf_getPidDelive(cnt) {
  365. var fromdd = group2.input1.value;
  366. var todd = group2.input2.value;
  367. var fromtm = group2.input3.value;
  368. var totm = group2.input6.value;
  369. var blodcomcd = group2.combo1.value;
  370. var sInDsName = dsf_createDsRow("ds_temp_search"
  371. , [{col: "fromdd", val:fromdd }
  372. , {col: "todd", val:todd }
  373. , {col: "fromtm", val:fromtm }
  374. , {col: "totm", val:totm }
  375. , {col: "blodcomcd", val:blodcomcd }
  376. // , {col: "btype", val:btype }
  377. // , {col: "pid", val:pid }
  378. // , {col: "blodno", val:blodno }
  379. // , {col: "cnt", val:cnt }
  380. // , {col: "refgbn", val:refgbn }
  381. ]);
  382. var oParam = {};
  383. oParam.id = "TRLBP01601";
  384. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  385. oParam.method = "reqGetDeliveSumList";
  386. oParam.inds = "cond="+sInDsName;
  387. oParam.outds = "ds_grid_grd_tnslist=getTnsReqList";
  388. oParam.async = false;
  389. oParam.callback = "cbf_SMLBP01600";
  390. tranf_submit(oParam);
  391. }
  392. //키이벤트 엔터키 입력시
  393. function lf_keyEvent(target) {
  394. // 등록번호 바코드 리딩시
  395. if(target == "ipt_blodno") {
  396. if(utlf_isNull(group2.ipt_blodno.value)) {
  397. sysf_messageBox("등록번호를 입력하십시오","E");
  398. return;
  399. }
  400. group2.ipt_blodno.value = frmf_setInputNodeCurPid_Change(group2.ipt_blodno.value); //등록번호 9자리로 변경
  401. var val = group2.ipt_blodno.value;
  402. group2.ipt_blodno.value = val.toUpperCase();
  403. lf_getPidDelive();
  404. group2.ipt_blodno.setSelect();
  405. }
  406. // 혈액번호 바코드 리딩시
  407. if(target == "ipt_blodno2"){
  408. if(utlf_isNull(group2.ipt_blodno2.value)) {
  409. sysf_messageBox("혈액번호를 입력하십시오","E");
  410. return;
  411. }
  412. var val = group2.ipt_blodno2.value;
  413. val = val.toUpperCase();
  414. group2.ipt_blodno2.value = val.substr(0, 10);
  415. lf_getPidDelive();
  416. group2.ipt_blodno2.setSelect();
  417. }
  418. }
  419. //환자코멘트 가져오기
  420. function lf_getpatCMT() {
  421. var row = ds_grid_grd_delive.rowposition;
  422. if(!utlf_isNull(ds_grid_grd_delive.getColumn(row, "patcmt"))) {
  423. var cmt = ds_grid_grd_delive.getColumn(row, "patcmt");
  424. sysf_messageBox("* 환자별 코멘트 \n" + cmt, "I");
  425. }
  426. }
  427. // 엑셀 저장
  428. function lf_saveExcel(pGridId) {
  429. grdf_exportExcel(pGridId, lf_lisGetTitle(this), "sheet1", false);
  430. }
  431. // callback 함수
  432. function cbf_SMLBP01600(strSvcID, nErrorCode, strErrorMag) {
  433. if(nErrorCode != 0) {
  434. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  435. }else{
  436. switch(strSvcID) {
  437. case "TRLZZ00101":
  438. var toDay = utlf_getCurrentDate();
  439. var mDate = utlf_addDate(toDay, 1);
  440. group2.input1.value = toDay;
  441. group2.input2.value = mDate;
  442. group2.input3.value = "0800";
  443. group2.input6.value = "0759";
  444. group2.combo1.value = "00";
  445. group2.combo2.value = "00";
  446. group00.input5.value = "3";
  447. group2.combo3.value = "1";
  448. group2.ipt_blodno.value = "";
  449. group2.ipt_blodno2.value = "";
  450. break;
  451. case "TRLBP01601":
  452. // 환자명 보이기
  453. if(!utlf_isNull(group2.ipt_blodno.value)){
  454. if(ds_grid_grd_delive.rowcount > 1){
  455. ds_grid_grd_delive.rowposition = 0;
  456. group2.opt_patnm.value = ds_grid_grd_delive.getColumn(ds_grid_grd_delive.rowposition, "patnm");
  457. }
  458. }else{
  459. group2.opt_patnm.value = "";
  460. }
  461. // 반환 노란색으로
  462. if(ds_grid_grd_delive.rowcount > 1) {
  463. grdf_setRowStyle( grd_delive , "6" , "혈액반환" , "blodcomstat" , "equal"); // 7 - 주황색
  464. grdf_setRowStyle( grd_delive , "0" , "수혈접수" , "blodcomstat" , "equal");
  465. grdf_setRowStyle( grd_delive , "0" , "혈액준비" , "blodcomstat" , "equal");
  466. grdf_setRowStyle( grd_delive , "0" , "매칭검사" , "blodcomstat" , "equal");
  467. grdf_setRowStyle( grd_delive , "0" , "불출대기" , "blodcomstat" , "equal");
  468. }
  469. group2.out_return.value = ds_grid_grd_delive.getSum("returncnt");
  470. break;
  471. default:
  472. break;
  473. }
  474. }
  475. }
  476. function btn_sea_onlbuttonup(obj:Button, e:MouseEventInfo)
  477. {
  478. lf_getPidDelive();
  479. }
  480. function group2_ipt_blodno_onkeydown(obj:Edit, e:KeyEventInfo)
  481. {
  482. if(e.keycode==13) {
  483. lf_keyEvent(obj.name);
  484. }
  485. }
  486. function group2_ipt_blodno2_onkeydown(obj:Edit, e:KeyEventInfo)
  487. {
  488. if(e.keycode==13) {
  489. lf_keyEvent(obj.name);
  490. }
  491. }
  492. function button1_onlbuttonup(obj:Button, e:MouseEventInfo)
  493. {
  494. lf_getPidDelive(group00.input5.value);
  495. }
  496. function button51_onlbuttonup(obj:Button, e:MouseEventInfo)
  497. {
  498. lf_saveExcel(grd_tnslist);
  499. }
  500. function grd_delive_oncellclick(obj:Grid, e:GridClickEventInfo)
  501. {
  502. lf_getpatCMT(); // 환자별 코멘트 가져오기
  503. }
  504. function button2_onlbuttonup(obj:Button, e:MouseEventInfo)
  505. {
  506. var objArg = new Object();
  507. var rtn = frmf_modal("SMLBP02900", "SMLBP02900", objArg, "", "", 0, 0, "", "", "title=true,status=true close=true", "", "", "M");
  508. }
  509. function btn_cle_onlbuttonup(obj:Button, e:MouseEventInfo)
  510. {
  511. this.reload();
  512. }
  513. function button51_onclick(obj:Button, e:ClickEventInfo)
  514. {
  515. }
  516. function group3_btn_reftext_onclick(obj:Button, e:ClickEventInfo)
  517. {
  518. if( utlf_isNull(group2.ipt_blodno.value))
  519. {
  520. alert("등록번호를 입력하십시오");
  521. }else{
  522. lf_getPidDelive();
  523. }
  524. }
  525. function group2_btn_reftext00_onclick(obj:Button, e:ClickEventInfo)
  526. {
  527. if( utlf_isNull(group2.ipt_blodno2.value))
  528. {
  529. alert("혈액번호를 입력하십시오");
  530. }else{
  531. lf_getPidDelive();
  532. }
  533. }
  534. function grd_delive_onheadclick(obj:Grid, e:GridClickEventInfo)
  535. {
  536. if (e.col != e.oldcol)
  537. {
  538. var pos = grd_delive.hscrollbar.pos;
  539. grdf_clearSort(obj);
  540. grdf_gridSort(grd_delive,e);
  541. grd_delive.hscrollbar.pos = pos;
  542. }
  543. }
  544. ]]></Script>
  545. </Form>
  546. </FDL>