SMLBP00200_혈액원지정헌혈정보조회.xfdl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBP00200" position="absolute 0 0 1196 791" titletext="지정헌혈정보조회" oninit="SMLBP00200_oninit" onload="SMLBP00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_apntdon" taborder="10" binddataset="ds_grd_apntdon" useinputpanel="false" position="absolute 0 120 1194 789">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="31"/>
  12. <Column size="24"/>
  13. <Column size="57"/>
  14. <Column size="70"/>
  15. <Column size="60"/>
  16. <Column size="75"/>
  17. <Column size="70"/>
  18. <Column size="50"/>
  19. <Column size="60"/>
  20. <Column size="60"/>
  21. <Column size="60"/>
  22. <Column size="105"/>
  23. <Column size="64"/>
  24. <Column size="74"/>
  25. <Column size="50"/>
  26. <Column size="65"/>
  27. <Column size="92"/>
  28. <Column size="60"/>
  29. <Column size="60"/>
  30. <Column size="126"/>
  31. <Column size="70"/>
  32. <Column size="90"/>
  33. <Column size="102"/>
  34. <Column size="105"/>
  35. <Column size="90"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell rowspan="2" taborder="undefined"/>
  48. <Cell col="1" rowspan="2" taborder="undefined"/>
  49. <Cell col="2" rowspan="2" style="align:center middle;" text="지정해제&#13;&#10;여부" taborder="undefined"/>
  50. <Cell col="3" colspan="8" text="수혜자" taborder="undefined"/>
  51. <Cell col="11" colspan="2" text="입력정보(병동)" taborder="undefined"/>
  52. <Cell col="13" colspan="6" text="공여자" taborder="undefined"/>
  53. <Cell col="19"/>
  54. <Cell col="20" colspan="4" text="공여자" taborder="undefined"/>
  55. <Cell col="24"/>
  56. <Cell col="25" text="확인정보(혈액은행)"/>
  57. <Cell col="26" text="확인정보(혈액은행)"/>
  58. <Cell col="27"/>
  59. <Cell col="28"/>
  60. <Cell row="1" col="3" text="병동"/>
  61. <Cell row="1" col="4" text="병실"/>
  62. <Cell row="1" col="5" text="등록번호"/>
  63. <Cell row="1" col="6" text="환자명"/>
  64. <Cell row="1" col="7" text="혈액형"/>
  65. <Cell row="1" col="8" text="관리번호"/>
  66. <Cell row="1" col="9" text="혈액종류"/>
  67. <Cell row="1" col="10" text="비고"/>
  68. <Cell row="1" col="11" text="입력시간"/>
  69. <Cell row="1" col="12" text="입력자"/>
  70. <Cell row="1" col="13" text="혈액원"/>
  71. <Cell row="1" col="14" text="혈액형"/>
  72. <Cell row="1" col="15" text="혈액상태"/>
  73. <Cell row="1" col="16" text="혈액번호"/>
  74. <Cell row="1" col="17" text="관리번호"/>
  75. <Cell row="1" col="18" text="성명"/>
  76. <Cell row="1" col="19" text="주민번호"/>
  77. <Cell row="1" col="20" text="성별/나이"/>
  78. <Cell row="1" col="21" text="공여일"/>
  79. <Cell row="1" col="22" text="연락처"/>
  80. <Cell row="1" col="23" text="확인시간"/>
  81. <Cell row="1" col="24" text="확인자"/>
  82. <Cell row="1" col="25" text="seqflag"/>
  83. <Cell row="1" col="26" text="입고테이블혈액형"/>
  84. <Cell row="1" col="27"/>
  85. <Cell row="1" col="28"/>
  86. </Band>
  87. <Band id="body">
  88. <Cell celltype="head" text="expr:currow + 1"/>
  89. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  90. <Cell col="2" text="bind:apntremvincl"/>
  91. <Cell col="3" text="bind:tnsrwardnm"/>
  92. <Cell col="4" text="bind:tnsrroomcd"/>
  93. <Cell col="5" displaytype="text" edittype="text" text="bind:tnsrpid"/>
  94. <Cell col="6" text="bind:patnm"/>
  95. <Cell col="7" text="bind:tnsrbtype"/>
  96. <Cell col="8" text="bind:apntdonseqno"/>
  97. <Cell col="9" displaytype="normal" edittype="normal" text="bind:tnsrblodcomnm" combodataset="ds_init_lb1001" combocodecol="nm" combodatacol="cd" enable="false"/>
  98. <Cell col="10" text="bind:rem"/>
  99. <Cell col="11" displaytype="date" edittype="date" text="bind:rgstdt" mask="yyyy-MM-dd hh:mm"/>
  100. <Cell col="12" text="bind:usernm"/>
  101. <Cell col="13" text="bind:blodcntr"/>
  102. <Cell col="14" text="bind:dnorbtype"/>
  103. <Cell col="15" text="bind:deliveyn"/>
  104. <Cell col="16" displaytype="text" edittype="text" text="bind:blodno" expandshow="show"/>
  105. <Cell col="17" text="bind:apntdonseqno"/>
  106. <Cell col="18" text="bind:dnornm"/>
  107. <Cell col="19" text="bind:dnorrrgstno"/>
  108. <Cell col="20" text="bind:dnorsexage"/>
  109. <Cell col="21" displaytype="date" edittype="date" text="bind:dnordd" mask="yyyy-MM-dd"/>
  110. <Cell col="22" text="bind:dnorcntctel"/>
  111. <Cell col="23" displaytype="date" edittype="date" text="bind:cnfmtm" mask="yyyy-MM-dd hh:mm"/>
  112. <Cell col="24" text="bind:cnfmnm"/>
  113. <Cell col="25" text="bind:blodbarcd"/>
  114. <Cell col="26" text="bind:blodstat"/>
  115. <Cell col="27" text="bind:seqflag"/>
  116. <Cell col="28" text="bind:bldwabo"/>
  117. </Band>
  118. </Format>
  119. </Formats>
  120. </Grid>
  121. <Button id="btn_cle" taborder="1" text="초기화" class="btn4" position="absolute 1126 27 1194 49" onclick="btn_cle_onclick"/>
  122. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 51 1194 57"/>
  123. <Button id="button2" taborder="2" text="지정헌혈정보등록" class="btn3" position="absolute 0 27 128 50" onclick="button2_onclick"/>
  124. <Button id="btn_Save" taborder="3" text="저장" class="btn4" position="absolute 1012 27 1068 49" onclick="btn_Save_onclick"/>
  125. <Button id="btn_del" taborder="4" text="삭제" class="btn4" position="absolute 1069 27 1125 49" onclick="btn_del_onclick"/>
  126. <Button id="button5" taborder="5" text="입원환자병실정보조회" class="btn3" position="absolute 130 27 285 50" onclick="button5_onclick"/>
  127. <Static id="caption5" text="지정헌혈정보조회" class="tit_1" position="absolute 0 0 151 25"/>
  128. <Static id="caption11" text="지정헌혈정보 리스트" class="tit_2" position="absolute 1 98 147 114"/>
  129. <Shape id="line7" linetype="horizontal" class="line_10" position="absolute 0 116 1196 122"/>
  130. <Button id="btn_setseq" taborder="7" text="혈액형별 끝번호설정" class="btn2" position="absolute 1065 94 1195 113" onclick="btn_setseq_onclick"/>
  131. <Div id="group2" taborder="9" position="absolute 0 55 1195 90" class="div_SA">
  132. <Layouts>
  133. <Layout>
  134. <Calendar id="input1" taborder="1" class="input_s_essential" position="absolute 104 8 204 27" anchor="default"/>
  135. <Calendar id="input3" taborder="2" class="input_s_essential" position="absolute 220 8 320 27" anchor="default" onkeyup="group2_input3_onkeyup"/>
  136. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1124 7 1180 29" anchor="default" onclick="group2_btn_sea_onclick"/>
  137. <Static id="caption2" text="일자구간 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
  138. <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 715 9 801 26" anchor="default"/>
  139. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1106 7 1112 29" anchor="default"/>
  140. <Static id="caption4" text="~" class="search_no_b" position="absolute 206 10 221 27" anchor="default"/>
  141. <Combo id="cmb_dept" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 809 8 885 27" anchor="default">
  142. <Dataset id="innerdataset">
  143. <ColumnInfo>
  144. <Column id="codecolumn"/>
  145. <Column id="datacolumn"/>
  146. </ColumnInfo>
  147. <Rows>
  148. <Row>
  149. <Col id="codecolumn">00</Col>
  150. <Col id="datacolumn">- 전체 -</Col>
  151. </Row>
  152. <Row>
  153. <Col id="codecolumn">01</Col>
  154. <Col id="datacolumn">수혜자</Col>
  155. </Row>
  156. <Row>
  157. <Col id="codecolumn">02</Col>
  158. <Col id="datacolumn">공여자</Col>
  159. </Row>
  160. <Row>
  161. <Col id="codecolumn">03</Col>
  162. <Col id="datacolumn">등록번호</Col>
  163. </Row>
  164. </Rows>
  165. </Dataset>
  166. </Combo>
  167. <Edit id="ipt_nm" taborder="5" class="input_search" position="absolute 888 8 1048 27" anchor="default"/>
  168. <Static id="caption3" text="완료여부 :" class="search_name" position="absolute 345 9 431 26" anchor="default"/>
  169. <Radio id="radio1" taborder="6" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 419 9 603 25" anchor="default" onitemchanged="group2_radio1_onitemchanged">
  170. <Dataset id="innerdataset">
  171. <ColumnInfo>
  172. <Column id="codecolumn"/>
  173. <Column id="datacolumn"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="codecolumn">1</Col>
  178. <Col id="datacolumn">지정헌혈완료</Col>
  179. </Row>
  180. <Row>
  181. <Col id="codecolumn">2</Col>
  182. <Col id="datacolumn">미완료</Col>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. </Radio>
  187. <CheckBox id="chk_apntremv" taborder="7" position="absolute 610 10 705 25" anchor="default" text="지정해제포함"/>
  188. </Layout>
  189. </Layouts>
  190. </Div>
  191. <Div id="grp_keep" taborder="8" visible="false" position="absolute 877 184 1175 349" style="background:white;border:2 solid #fec34dff ;">
  192. <Layouts>
  193. <Layout>
  194. <Edit id="input2" taborder="4" class="input_button" position="absolute 72 53 235 72" anchor="default"/>
  195. <Button id="ipt_endnoB" taborder="5" text="저장" class="btn2" position="absolute 238 53 280 72" anchor="default" onclick="grp_keep_ipt_endnoB_onclick"/>
  196. <Shape id="line120" linetype="horizontal" class="line_1" position="absolute 0 74 280 80" anchor="default"/>
  197. <Static id="caption119" text="O형" class="cell_1" position="absolute 0 77 70 100" anchor="default"/>
  198. <Edit id="ipt_endnoO" taborder="6" class="input_button" position="absolute 72 78 235 97" anchor="default"/>
  199. <Button id="button118" taborder="7" text="저장" class="btn2" position="absolute 238 78 280 97" anchor="default" onclick="grp_keep_button118_onclick"/>
  200. <Shape id="line121" linetype="horizontal" class="line_1" position="absolute 0 100 280 106" anchor="default"/>
  201. <Static id="caption120" text="AB형" class="cell_1" position="absolute 0 103 70 126" anchor="default"/>
  202. <Edit id="ipt_endnoAB" taborder="8" class="input_button" position="absolute 72 104 235 123" anchor="default"/>
  203. <Button id="button1" taborder="9" text="저장" class="btn2" position="absolute 238 104 280 123" anchor="default" onclick="grp_keep_button1_onclick"/>
  204. <Shape id="line122" linetype="horizontal" class="line_1" position="absolute 0 125 280 131" anchor="default"/>
  205. <Static id="caption121" text="이형혈액형" class="cell_1" position="absolute 0 129 70 152" anchor="default" style="padding:0 0 0 3;align:left middle;"/>
  206. <Edit id="ipt_endnoE" taborder="10" class="input_button" position="absolute 72 130 235 149" anchor="default"/>
  207. <Button id="button113" taborder="11" text="저장" class="btn2" position="absolute 238 130 280 149" anchor="default" onclick="grp_keep_button113_onclick"/>
  208. <Shape id="line123" linetype="horizontal" class="line_1" position="absolute 0 150 280 156" anchor="default"/>
  209. <Shape id="line118" linetype="horizontal" class="line_10" position="absolute 0 21 280 27" anchor="default"/>
  210. <Static id="caption115" text="지정헌혈 끝번호 설정" class="tit_2" position="absolute 2 4 150 20" anchor="default"/>
  211. <Button id="button112" taborder="1" text="닫기" class="btn2" position="absolute 238 0 280 19" anchor="default" onclick="grp_keep_button112_onclick"/>
  212. <Static id="caption116" text="A형" class="cell_1" position="absolute 0 25 70 48" anchor="default"/>
  213. <Edit id="ipt_endnoA" taborder="2" class="input_button" position="absolute 72 26 235 45" anchor="default"/>
  214. <Button id="button117" taborder="3" text="저장" class="btn2" position="absolute 238 26 280 45" anchor="default" onclick="grp_keep_button117_onclick"/>
  215. <Shape id="line119" linetype="horizontal" class="line_1" position="absolute 0 48 280 54" anchor="default"/>
  216. <Static id="caption118" text="B형" class="cell_1" position="absolute 0 51 70 74" anchor="default"/>
  217. </Layout>
  218. </Layouts>
  219. </Div>
  220. </Layout>
  221. </Layouts>
  222. <Objects>
  223. <Dataset id="ds_grd_apntdon" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="chk" type="STRING" size="256" sumtext="체크박스"/>
  226. <Column id="apntremvincl" type="STRING" size="256" sumtext="지정해제여부"/>
  227. <Column id="tnsrwardnm" type="STRING" size="256" sumtext="병동"/>
  228. <Column id="tnsrroomcd" type="STRING" size="256" sumtext="병실"/>
  229. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  230. <Column id="tnsrbtype" type="STRING" size="256" sumtext="혈액형"/>
  231. <Column id="tnsrblodcomnm" type="STRING" size="256" sumtext="혈액종류"/>
  232. <Column id="tnsrrem" type="STRING" size="256" sumtext="비고"/>
  233. <Column id="rgstdt" type="STRING" size="256" sumtext="입력시간"/>
  234. <Column id="usernm" type="STRING" size="256" sumtext="입력자"/>
  235. <Column id="dnornm" type="STRING" size="256" sumtext="공여자성명"/>
  236. <Column id="dnorrrgstno" type="STRING" size="256" sumtext="주민번호"/>
  237. <Column id="dnorsexage" type="STRING" size="256" sumtext="성별나이"/>
  238. <Column id="dnorbtype" type="STRING" size="256" sumtext="공여자혈액형"/>
  239. <Column id="dnorcntctel" type="STRING" size="256" sumtext="연락처"/>
  240. <Column id="dnordd" type="STRING" size="256" sumtext="공여일"/>
  241. <Column id="cnfmdt" type="STRING" size="256" sumtext="확인시간"/>
  242. <Column id="cnfmnm" type="STRING" size="256" sumtext="확인자"/>
  243. <Column id="blodno" type="STRING" size="256" sumtext="확인자"/>
  244. <Column id="tnsrpid" type="STRING" size="256" sumtext="수혜자등록번호"/>
  245. <Column id="dnorpid" type="STRING" size="256" sumtext="공여자아이디"/>
  246. <Column id="blodcntr" type="STRING" size="256" sumtext="혈액원"/>
  247. <Column id="blodbarcd" type="STRING" size="256" sumtext="혈액바코드"/>
  248. <Column id="blodstat" type="STRING" size="256" sumtext="혈액상태"/>
  249. <Column id="deliveyn" type="STRING" size="256" sumtext="혈액상태"/>
  250. <Column id="seqflag" type="STRING" size="256" sumtext="번호생성여부"/>
  251. <Column id="bldwabo" type="STRING" size="256" sumtext="인스턴스만생성"/>
  252. <Column id="apntdonseqno" type="STRING" size="256" sumtext="혈액형별지정헌혈순번"/>
  253. <Column id="status" type="STRING" size="256"/>
  254. <Column id="abo" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. </Dataset>
  257. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  258. <ColumnInfo>
  259. <Column id="usdd" type="STRING" size="256"/>
  260. <Column id="uedd" type="STRING" size="256"/>
  261. <Column id="refflag" type="STRING" size="256"/>
  262. <Column id="nm" type="STRING" size="256"/>
  263. <Column id="cnfmyn" type="STRING" size="256"/>
  264. <Column id="apntremvincl" type="STRING" size="256"/>
  265. </ColumnInfo>
  266. <Rows>
  267. <Row>
  268. <Col id="refflag">00</Col>
  269. <Col id="cnfmyn">2</Col>
  270. </Row>
  271. </Rows>
  272. </Dataset>
  273. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  274. <ColumnInfo>
  275. <Column id="usdd" type="STRING" size="256"/>
  276. <Column id="uedd" type="STRING" size="256"/>
  277. <Column id="refflag" type="STRING" size="256"/>
  278. <Column id="nm" type="STRING" size="256"/>
  279. <Column id="cnfmyn" type="STRING" size="256"/>
  280. <Column id="apntremvincl" type="STRING" size="256"/>
  281. <Column id="blodno" type="STRING" size="256"/>
  282. <Column id="tnsrpid" type="STRING" size="256"/>
  283. <Column id="donnm" type="STRING" size="256"/>
  284. <Column id="codeflag" type="STRING" size="256"/>
  285. <Column id="blodbarcd" type="STRING" size="256"/>
  286. <Column id="rgstdt" type="STRING" size="256"/>
  287. <Column id="data1" type="STRING" size="256"/>
  288. <Column id="noflag2" type="STRING" size="256"/>
  289. <Column id="endabo" type="STRING" size="256"/>
  290. <Column id="endno" type="STRING" size="256"/>
  291. </ColumnInfo>
  292. <Rows>
  293. <Row/>
  294. </Rows>
  295. </Dataset>
  296. <Dataset id="ds_init_lb1001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  297. <ColumnInfo>
  298. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  299. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  300. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  301. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  302. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  303. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  304. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  305. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  306. </ColumnInfo>
  307. </Dataset>
  308. <Dataset id="ds_main_keependno" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="endnoa" type="STRING" size="256" sumtext="A형보검끝번호"/>
  311. <Column id="endnob" type="STRING" size="256" sumtext="B형보검끝번호"/>
  312. <Column id="endnoo" type="STRING" size="256" sumtext="O형보검끝번호"/>
  313. <Column id="endnoab" type="STRING" size="256" sumtext="AB형보검끝번호"/>
  314. <Column id="endnoe" type="STRING" size="256" sumtext="이형보검끝번호"/>
  315. </ColumnInfo>
  316. </Dataset>
  317. <Dataset id="ds_data_message" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  318. </Objects>
  319. <Bind>
  320. <BindItem id="item0" compid="group2.input1" propid="value" datasetid="ds_hidden_ref" columnid="usdd"/>
  321. <BindItem id="item1" compid="group2.input3" propid="value" datasetid="ds_hidden_ref" columnid="uedd"/>
  322. <BindItem id="item2" compid="group2.radio1" propid="value" datasetid="ds_hidden_ref" columnid="cnfmyn"/>
  323. <BindItem id="item3" compid="group2.chk_apntremv" propid="value" datasetid="ds_hidden_ref" columnid="apntremvincl"/>
  324. <BindItem id="item4" compid="group2.cmb_dept" propid="value" datasetid="ds_hidden_ref" columnid="refflag"/>
  325. <BindItem id="item5" compid="group2.ipt_nm" propid="value" datasetid="ds_hidden_ref" columnid="nm"/>
  326. </Bind>
  327. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  328. * System Name :
  329. * Job Name :
  330. * Creator :
  331. * Make Date : 2015-05-01
  332. * Description :
  333. *---------------------------------------------------------------------------------------
  334. * Modify Date Modifier Modify Description
  335. *---------------------------------------------------------------------------------------
  336. * 2015-05-01 Live Converter TF->XP
  337. *
  338. *---------------------------------------------------------------------------------------
  339. ****************************************************************************************/
  340. include "com_commonxp::comm_main.xjs";
  341. function SMLBP00200_oninit(obj:Form, e:InitEventInfo)
  342. {
  343. frmf_initForm(obj);
  344. }
  345. function SMLBP00200_onload(obj:Form, e:LoadEventInfo)
  346. {
  347. grdf_initGrid(grd_apntdon);
  348. fSetInit();
  349. }
  350. //초기화
  351. function fSetInit()
  352. {
  353. var today = utlf_getCurrentDate();
  354. ds_hidden_ref.setColumn(0, "usdd", today);
  355. ds_hidden_ref.setColumn(0, "uedd", today);
  356. ds_hidden_ref.setColumn(0, "refflag", "00");
  357. ds_hidden_ref.setColumn(0, "nm", "");
  358. ds_grd_apntdon.clearData();
  359. ds_send.setColumn(0, "codeflag", "1001|");
  360. // submit("TRLZZ00101");
  361. var oParam = {};
  362. oParam.id = "TRLZZ00101";
  363. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  364. oParam.method = "reqGetInitCodeInfo";
  365. oParam.inds = "cond=ds_send";
  366. oParam.outds = "ds_init_lb1001=1001";
  367. oParam.async = false;
  368. //oParam.callback = "cf_TRLZZ00101";
  369. tranf_submit(oParam);
  370. fGridSet();
  371. }
  372. function fGridSet()
  373. {
  374. if(ds_hidden_ref.getColumn(0, "cnfmyn") == "1")
  375. {
  376. grd_apntdon.setFormatColProperty(8, "size", 60);
  377. btn_Save.enable = false;
  378. btn_del.enable = false;
  379. }
  380. else
  381. {
  382. grd_apntdon.setFormatColProperty(8, "size", 0);
  383. btn_Save.enable = true;
  384. btn_del.enable = true;
  385. }
  386. }
  387. //완료여부 값변경
  388. function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  389. {
  390. ds_grd_apntdon.clearData();
  391. fGridSet();
  392. }
  393. //조회
  394. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  395. {
  396. fGetApntDonInfoList();
  397. }
  398. //조회
  399. function fGetApntDonInfoList()
  400. {
  401. ds_send.setColumn(0, "usdd", ds_hidden_ref.getColumn(0, "usdd"));
  402. ds_send.setColumn(0, "uedd", ds_hidden_ref.getColumn(0, "uedd"));
  403. ds_send.setColumn(0, "refflag", ds_hidden_ref.getColumn(0, "refflag"));
  404. ds_send.setColumn(0, "nm", ds_hidden_ref.getColumn(0, "nm"));
  405. ds_send.setColumn(0, "cnfmyn", ds_hidden_ref.getColumn(0, "cnfmyn"));
  406. ds_send.setColumn(0, "apntremvincl", ds_hidden_ref.getColumn(0, "apntremvincl"));
  407. var oParam = {};
  408. oParam.id = "TRLBP00201";
  409. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  410. oParam.method = "reqGetApntDonInfoList";
  411. oParam.inds = "cond=ds_send";
  412. oParam.outds = "ds_grd_apntdon=getApntDonInfoList";
  413. oParam.async = false;
  414. //oParam.callback = "cf_TRLBP00201";
  415. tranf_submit(oParam);
  416. fGridSet();
  417. }
  418. //지정헌혈정보등록
  419. function button2_onclick(obj:Button, e:ClickEventInfo)
  420. {
  421. frmf_open("SPLBD90100", "SPLBD90100", "", "", "", "", "", "", "", "", "", "", "M");
  422. }
  423. //입원환자병실정보조회
  424. function button5_onclick(obj:Button, e:ClickEventInfo)
  425. {
  426. frmf_open("SPLLP90400", "SPLLP90400", "", "", "", "", "", "", "", "", "", "", "M");
  427. }
  428. //혈액행별 끝번호 설정
  429. function btn_setseq_onclick(obj:Button, e:ClickEventInfo)
  430. {
  431. fExeNoUpdateOpen();
  432. }
  433. // 번호설정 시작버튼 설정하기 강남=200까지
  434. function fExeNoUpdateOpen()
  435. {
  436. grp_keep.visible = true;
  437. // 끝번호 조회
  438. dsf_createDsRow("ds_temp_search", [{col : "noflag2", val : "G"}]);
  439. var oParam = {};
  440. oParam.id = "TRLBT10905";
  441. oParam.service = "transfusionmngtapp.KeepSpcMngt";
  442. oParam.method = "reqGetBGGCendNo";
  443. oParam.inds = "cond=ds_temp_search";
  444. oParam.outds = "ds_main_keependno=getBGGCendNo";
  445. oParam.async = false;
  446. //oParam.callback = "cf_TRLBT10905";
  447. tranf_submit(oParam);
  448. //grp_keep.refresh();
  449. }
  450. //조회
  451. function group2_input3_onkeyup(obj:Calendar, e:KeyEventInfo)
  452. {
  453. if(e.keycode == 13)
  454. {
  455. fGetApntDonInfoList();
  456. }
  457. }
  458. //지정헌혈 끝번호 설정 닫기
  459. function grp_keep_button112_onclick(obj:Button, e:ClickEventInfo)
  460. {
  461. grp_keep.visible = false;
  462. }
  463. //A형 저장
  464. function grp_keep_button117_onclick(obj:Button, e:ClickEventInfo)
  465. {
  466. fSetBGGCendNo("A");
  467. }
  468. //B형 저장
  469. function grp_keep_ipt_endnoB_onclick(obj:Button, e:ClickEventInfo)
  470. {
  471. fSetBGGCendNo("B");
  472. }
  473. //O형 저장
  474. function grp_keep_button118_onclick(obj:Button, e:ClickEventInfo)
  475. {
  476. fSetBGGCendNo("O");
  477. }
  478. //AB 저장
  479. function grp_keep_button1_onclick(obj:Button, e:ClickEventInfo)
  480. {
  481. fSetBGGCendNo("AB");
  482. }
  483. //이형혈액형 저장
  484. function grp_keep_button113_onclick(obj:Button, e:ClickEventInfo)
  485. {
  486. fSetBGGCendNo("E");
  487. }
  488. function fSetBGGCendNo(param)
  489. {
  490. var endno = "";
  491. if(param == "A")
  492. {
  493. ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoA"));
  494. }
  495. else if(param == "B")
  496. {
  497. ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoB"));
  498. }
  499. else if(param == "O")
  500. {
  501. ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoO"));
  502. }
  503. else if(param == "AB")
  504. {
  505. ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoAB"));
  506. }
  507. else if(param == "E")
  508. {
  509. ds_send.setColumn(0, "endno", ds_main_keependno.getOrgColumn(0, "endnoE"));
  510. }
  511. ds_send.setColumn(0, "endabo", param);
  512. if( utlf_isNull(ds_send.getColCount(0, "endno")))
  513. {
  514. sysf_messageBox("끝번호를 입력하십시오.", "I");
  515. return;
  516. }
  517. if(ds_send.getColumn(0, "endno") < 1)
  518. {
  519. sysf_messageBox("0보다 큰 수를 입력하십시오.", "I");
  520. return;
  521. }
  522. //submit("TXLBT10905");
  523. var oParam = {};
  524. oParam.id = "TXLBT10905";
  525. oParam.service = "transfusionmngtapp.KeepSpcMngt";
  526. oParam.method = "reqSetBGGCendNo";
  527. oParam.inds = "cond=ds_send";
  528. oParam.async = false;
  529. //oParam.callback = "cf_TXLBT10905";
  530. tranf_submit(oParam);
  531. }
  532. //저장
  533. function btn_Save_onclick(obj:Button, e:ClickEventInfo)
  534. {
  535. fApntSave();
  536. }
  537. //지정헌혈 맵핑 저장
  538. function fApntSave()
  539. {
  540. var row = ds_grd_apntdon.rowposition;
  541. var blodbarcd = "";
  542. var rows = ds_grd_apntdon.rowcount;
  543. if(ds_hidden_ref.getColumn(0, "cnfmyn") == "2")
  544. {
  545. var insTF = false;
  546. for(i = 0; i < rows; i++)
  547. {
  548. if(ds_grd_apntdon.getColumn(i, "chk") == 1)
  549. {
  550. if( utlf_isNull(ds_grd_apntdon.getColumn(0, "blodno")))
  551. {
  552. sysf_messageBox("혈액번호를 입력해주세요.","I");
  553. return;
  554. }
  555. ds_grd_apntdon.setColumn(i, "status", "u");
  556. insTF = true;
  557. }
  558. }
  559. if(insTF)
  560. {
  561. var oParam = {};
  562. oParam.id = "TXLBP00201";
  563. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  564. oParam.method = "reqExeBlodnoMap";
  565. oParam.inds = "datalist=ds_grd_apntdon:u";
  566. oParam.outds = "ds_data_message=message";
  567. oParam.async = false;
  568. //oParam.callback = "cf_TXLBP00201";
  569. tranf_submit(oParam);
  570. fGetApntDonInfoList();
  571. }
  572. else
  573. {
  574. sysf_messageBox("저장할 리스트를 선택해주세요.","I");
  575. return;
  576. }
  577. }
  578. else
  579. {
  580. sysf_messageBox("미완료 일때만 입력가능합니다. ", "I");
  581. }
  582. }
  583. //삭제
  584. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  585. {
  586. fApntDelete();
  587. }
  588. //지정헌혈등록 삭제
  589. function fApntDelete()
  590. {
  591. var row = ds_grd_apntdon.rowposition;
  592. var pid = "";
  593. var inpttm = "";
  594. var blodkind = ""; //혈액종류
  595. var rows = ds_grd_apntdon.rowcount;
  596. var delTF = false;
  597. var blodstat = "";
  598. var returnValue = "";
  599. for(i = 0; i < rows; i++)
  600. {
  601. if(ds_grd_apntdon.getColumn(i, "chk") == 1)
  602. {
  603. blodstat = ds_grd_apntdon.getColumn(i, "blodstat");
  604. if(blodstat != '-')
  605. {
  606. sysf_messageBox( i + " 번째는 삭제 할 수 없습니다. 지정완료되지 않은 경우만 삭제 가능합니다.","I");
  607. return;
  608. }
  609. ds_grd_apntdon.setColumn(i, "status", "u");
  610. delTF = true;
  611. }
  612. }
  613. //Q001=삭제 하시겠습니까? retrun yes=6, no=7
  614. returnValue = sysf_messageBox("선택한 내역을 ","Q001");
  615. if(returnValue == "6")
  616. {
  617. if(delTF)
  618. {
  619. var oParam = {};
  620. oParam.id = "TXLBP00202";
  621. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  622. oParam.method = "reqSetApntDonorDel";
  623. oParam.inds = "dellist=ds_grd_apntdon:u";
  624. oParam.outds = "ds_data_message=message";
  625. oParam.async = false;
  626. //oParam.callback = "cf_TXLBP00202";
  627. tranf_submit(oParam);
  628. fGetApntDonInfoList();
  629. }
  630. else
  631. {
  632. sysf_messageBox("삭제할 리스트를 선택해주세요.","I");
  633. return;
  634. }
  635. }
  636. }
  637. //초기화
  638. function btn_cle_onclick(obj:Button, e:ClickEventInfo)
  639. {
  640. fSetInit();
  641. }
  642. ]]></Script>
  643. </Form>
  644. </FDL>