SMLBP00520_혈소판수혈내역조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="workform" position="absolute 0 0 1256 805" titletext="환자별수혈내역조회" oninit="model1_oninit" onload="workform_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="혈소판준비내역조회" class="tit_1" position="absolute 0 0 158 25"/>
  8. <Button id="btn_excel" taborder="11" text="엑셀" onlbuttonup="btn_excel_onlbuttonup" class="btn7" position="absolute 1204 99 1254 119" anchor="top right"/>
  9. <Grid id="grd_tnslist" class="datagrid2" taborder="12" useinputpanel="false" position="absolute 0 122 1256 805" anchor="all" treeinitstatus="collapse,null" binddataset="ds_grid_grd_tnslist" treeuseexpandkey="false" treeuseimage="false" treeuseline="false" treeusecheckbox="false" cellsizingtype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="30"/>
  14. <Column size="53"/>
  15. <Column size="69"/>
  16. <Column size="79"/>
  17. <Column size="131"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="228"/>
  21. <Column size="40"/>
  22. <Column size="106"/>
  23. <Column size="102"/>
  24. <Column size="38"/>
  25. <Column size="46"/>
  26. <Column size="73"/>
  27. <Column size="58"/>
  28. <Column size="51"/>
  29. <Column size="51"/>
  30. <Column size="76"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="35" band="head"/>
  34. <Row size="32"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell text="No."/>
  38. <Cell col="1" text="혈액형"/>
  39. <Cell col="2" text="등록번호"/>
  40. <Cell col="3" text="환자명"/>
  41. <Cell col="4" text="병동"/>
  42. <Cell col="5" text="수혈희망일"/>
  43. <Cell col="6" text="수혈구분"/>
  44. <Cell col="7" text="성분제제"/>
  45. <Cell col="8" text="수량"/>
  46. <Cell col="9" text="준비일시"/>
  47. <Cell col="10" text="유효일시"/>
  48. <Cell col="11" text="일수"/>
  49. <Cell col="12" text="PLT"/>
  50. <Cell col="13" text="진료과"/>
  51. <Cell col="14" text="담담교수"/>
  52. <Cell col="15" text="담담의"/>
  53. <Cell col="16" text="N-Zone"/>
  54. <Cell col="17" text="수술예정일"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell celltype="head" expr="expr:currow+1"/>
  58. <Cell col="1" text="bind:abo"/>
  59. <Cell col="2" displaytype="text" edittype="none" style="align:center;" text="bind:pid"/>
  60. <Cell col="3" text="bind:patnm"/>
  61. <Cell col="4" style="align:left;" text="bind:wardnm"/>
  62. <Cell col="5" text="bind:prcphopedd" mask="expr:prcphopedd==null?'':'####-##-##'"/>
  63. <Cell col="6" text="bind:tnsreqacptflag"/>
  64. <Cell col="7" style="align:left;" text="bind:tclsscrnnm"/>
  65. <Cell col="8" text="bind:bno"/>
  66. <Cell col="9" displaytype="date" style="align:center middle;" text="bind:tnsreqacptdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  67. <Cell col="10" displaytype="date" edittype="none" style="align:center middle;" text="bind:validt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  68. <Cell col="11" style="align:center middle;" text="bind:day"/>
  69. <Cell col="12" text="bind:plt"/>
  70. <Cell col="13" style="align:center middle;" text="bind:orddeptnm"/>
  71. <Cell col="14" text="bind:orddrnm"/>
  72. <Cell col="15" style="align:center middle;" text="bind:junmun"/>
  73. <Cell col="16" text="bind:pdano"/>
  74. <Cell col="17" text="bind:OPSCHEDD"/>
  75. </Band>
  76. </Format>
  77. </Formats>
  78. </Grid>
  79. <Static id="caption1" text="수혈의뢰현황 목록" class="tit_2" position="absolute 0 102 145 122"/>
  80. <Div id="Div00" anchor="left top right" taborder="13" text="Div00" scrollbars="none" position="absolute 0 25 1256 92" class="div_SA">
  81. <Layouts>
  82. <Layout>
  83. <Button id="button1" taborder="60" text="조회" class="btn1" position="absolute 514 22 578 43" anchor="top right" onlbuttonup="btn_ref_onlbuttonup" onclick="Div00_button1_onclick"/>
  84. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1118 21 1118 70" anchor="default"/>
  85. <Static id="caption4" text="등록번호" class="search_name" position="absolute 308 23 382 43" style="align:left;" anchor="default"/>
  86. <Edit id="ipt_pid" taborder="62" class="input_s_essential" position="absolute 371 23 471 43" anchor="default" onkeydown="Div00_ipt_pid_onkeydown"/>
  87. <Static id="caption11" text="조회구분" class="search_name" position="absolute 23 24 101 44" style="align:left;" anchor="default" visible="true"/>
  88. <Calendar id="ipt_fromdd" taborder="70" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 92 23 179 43" visible="true"/>
  89. <Calendar id="ipt_todd" taborder="71" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 203 23 290 43" visible="true" usebitmapcache="true"/>
  90. <Static id="caption00" text="~" position="absolute 189 25 201 42"/>
  91. </Layout>
  92. </Layouts>
  93. </Div>
  94. <Button id="btn_reset" taborder="14" text="초기화" onclick="btn_reset_onclick" class="btn4" position="absolute 1187 1 1256 21" anchor="top right"/>
  95. </Layout>
  96. </Layouts>
  97. <Objects>
  98. <Dataset id="ds_grid_grd_tnslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  99. <ColumnInfo>
  100. <column id="pid" type="STRING" size="256"/>
  101. <Column id="prcpdd" type="STRING" size="256"/>
  102. <column id="patnm" type="STRING" size="256"/>
  103. <Column id="tclsscrnnm" type="STRING" size="256"/>
  104. <Column id="abo" type="STRING" size="256"/>
  105. <Column id="bno" type="STRING" size="256"/>
  106. <column id="wardnm" type="STRING" size="256"/>
  107. <column id="tnsreqacptdt" type="STRING" size="256"/>
  108. <column id="validt" type="STRING" size="256"/>
  109. <column id="orddrnm" type="STRING" size="256"/>
  110. <column id="plt" type="STRING" size="256"/>
  111. <column id="OPSCHEDD" type="STRING" size="256"/>
  112. <column id="pdano" type="STRING" size="256"/>
  113. <Column id="day" type="STRING" size="256"/>
  114. <Column id="junmun" type="STRING" size="256"/>
  115. <Column id="orddeptnm" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. </Dataset>
  118. </Objects>
  119. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  120. * System Name :
  121. * Job Name :
  122. * Creator :
  123. * Make Date : 2015-05-01
  124. * Description :
  125. *---------------------------------------------------------------------------------------
  126. * Modify Date Modifier Modify Description
  127. *---------------------------------------------------------------------------------------
  128. * 2015-05-01 Live Converter TF->XP
  129. *
  130. *---------------------------------------------------------------------------------------
  131. ****************************************************************************************/
  132. include "com_commonxp::comm_main.xjs";
  133. include "lis_commonxp::LZZ001.xjs";
  134. include "lis_commonxp::LLZ001.xjs";
  135. var tnsstatValue = "";
  136. function lf_setInit() {
  137. var toDay = utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-10);
  138. var todd = utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(10);
  139. Div00.ipt_fromdd.value = toDay.getDateFormat("YYYYMMDD");
  140. Div00.ipt_todd.value = todd.getDateFormat("YYYYMMDD") ;
  141. }
  142. // 키이벤트 엔터키 입력시
  143. function lf_keyEvent() {
  144. Div00.ipt_pid.setSelect();
  145. lf_getTnsReqList();
  146. }
  147. function lf_getTnsReqList() {
  148. var pid = Div00.ipt_pid.value; // 등록번호
  149. var fromdd = Div00.ipt_fromdd.value; // 시작일
  150. var todd = Div00.ipt_todd.value; // 종료일
  151. // var tnsflag = Div00.radio1.value; // 수혈구분
  152. // var tnsstat = tnsstatValue; // 상태
  153. var sInDsName = dsf_createDsRow("ds_temp_search"
  154. , [{col: "pid", val:pid }
  155. , {col: "hopefromdd", val:fromdd }
  156. , {col: "hopetodd", val:todd }
  157. ]);
  158. var oParam = {};
  159. oParam.id = "TRLBP00503";
  160. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  161. oParam.method = "reqGetTnsRetList2";
  162. oParam.inds = "cond="+sInDsName;
  163. oParam.outds = "ds_grid_grd_tnslist=getTnsReqList";
  164. oParam.async = false;
  165. oParam.callback = "cbf_SMLBP00500";
  166. tranf_submit(oParam);
  167. if(ds_grid_grd_tnslist.rowcount > 0){
  168. ds_grid_grd_tnslist.addColumn("backgroundcolor","string");
  169. for(i=0; i <ds_grid_grd_tnslist.rowcount; i++){
  170. if(ds_grid_grd_tnslist.getColumn(i, "day") == "0"){
  171. ds_grid_grd_tnslist.setColumn(i,"backgroundcolor","#f7a08b");
  172. }else if(ds_grid_grd_tnslist.getColumn(i, "day") == "1"){
  173. ds_grid_grd_tnslist.setColumn(i,"backgroundcolor","#ffe79d");
  174. }else {
  175. ds_grid_grd_tnslist.setColumn(i,"backgroundcolor","#FFFFFF");
  176. }
  177. }
  178. var sExpr = "EXPR(backgroundcolor)";
  179. for(var i=0; i< grd_tnslist.getCellCount("Head"); i++){
  180. grd_tnslist.setCellProperty("body", i, "background", sExpr);
  181. grd_tnslist.setCellProperty("body", i, "background2", sExpr);
  182. }
  183. }
  184. }
  185. // 수혈상태 변경
  186. function lf_setTnsStat(Ref) {
  187. tnsstatValue = "";
  188. if(Ref == "all"){
  189. if(Div00.chk_all.value == "1"){
  190. Div00.chk_a.value = "1";
  191. Div00.chk_b.value = "1";
  192. Div00.chk_c.value = "1";
  193. Div00.chk_d.value = "1";
  194. Div00.chk_e.value = "1";
  195. Div00.chk_f.value = "1";
  196. Div00.chk_g.value = "1";
  197. tnsstatValue = "'1','2','3','4','5','6','7','8'";
  198. }else{
  199. Div00.chk_a.value = "0";
  200. Div00.chk_b.value = "0";
  201. Div00.chk_c.value = "0";
  202. Div00.chk_d.value = "0";
  203. Div00.chk_e.value = "0";
  204. Div00.chk_f.value = "0";
  205. Div00.chk_g.value = "0";
  206. tnsstatValue = "";
  207. }
  208. }else{
  209. Div00.chk_all.value = "0";
  210. //접수
  211. if(Div00.chk_a.value == "1"){
  212. if(tnsstatValue == ""){
  213. tnsstatValue = "'1'";
  214. }else{
  215. tnsstatValue += ",'1'";
  216. }
  217. }
  218. //준비중
  219. if(Div00.chk_b.value == "1"){
  220. if(tnsstatValue == ""){
  221. tnsstatValue = "'2'";
  222. }else{
  223. tnsstatValue += ",'2'";
  224. }
  225. }
  226. //준비완료
  227. if(Div00.chk_c.value == "1"){
  228. if(tnsstatValue == ""){
  229. tnsstatValue = "'3'";
  230. }else{
  231. tnsstatValue += ",'3'";
  232. }
  233. }
  234. //불출완료
  235. if(Div00.chk_d.value == "1"){
  236. if(tnsstatValue == ""){
  237. tnsstatValue = "'4'";
  238. }else{
  239. tnsstatValue += ",'4'";
  240. }
  241. }
  242. //반납
  243. if(Div00.chk_e.value == "1"){
  244. if(tnsstatValue == ""){
  245. tnsstatValue = "'5'";
  246. }else{
  247. tnsstatValue += ",'5'";
  248. }
  249. }
  250. //폐기
  251. if(Div00.chk_f.value == "1"){
  252. if(tnsstatValue == ""){
  253. tnsstatValue = "'6'";
  254. }else{
  255. tnsstatValue += ",'6'";
  256. }
  257. }
  258. //잔량폐기
  259. if(Div00.chk_g.value == "1"){
  260. if(tnsstatValue == ""){
  261. tnsstatValue = "'7'";
  262. }else{
  263. tnsstatValue += ",'7'";
  264. }
  265. }
  266. }
  267. }
  268. // 엑셀 저장
  269. function lf_exeExcel(pGridId) {
  270. grdf_exportExcel(grd_tnslist, lf_lisGetTitle(this), "sheet1");
  271. }
  272. // callback 함수
  273. function cbf_SMLBP00500(strSvcID, nErrorCode, strErrorMag) {
  274. if(nErrorCode != 0) {
  275. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  276. }else{
  277. switch(strSvcID) {
  278. case "TRLBP00501":
  279. break;
  280. default:
  281. break;
  282. }
  283. }
  284. }
  285. function model1_oninit(obj:Form, e:InitEventInfo)
  286. {
  287. //폼 초기화 함수
  288. frmf_initForm(obj);
  289. lf_setInit();
  290. }
  291. function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
  292. {
  293. lf_exeExcel(grd_tnslist);
  294. }
  295. function btn_ref_onlbuttonup(obj:Button, e:MouseEventInfo)
  296. {
  297. lf_getTnsReqList();
  298. }
  299. function Div00_chk_a_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  300. {
  301. lf_setTnsStat("a");
  302. }
  303. function Div00_chk_b_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  304. {
  305. lf_setTnsStat("b");
  306. }
  307. function Div00_chk_c_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  308. {
  309. lf_setTnsStat("c");
  310. }
  311. function Div00_chk_d_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  312. {
  313. lf_setTnsStat("d");
  314. }
  315. function Div00_chk_e_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  316. {
  317. lf_setTnsStat("e");
  318. }
  319. function Div00_chk_f_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  320. {
  321. lf_setTnsStat("f");
  322. }
  323. function Div00_chk_g_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  324. {
  325. lf_setTnsStat("g");
  326. }
  327. function Div00_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  328. {
  329. if(e.keycode==13) {
  330. lf_keyEvent();
  331. }
  332. }
  333. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  334. {
  335. this.reload();
  336. }
  337. //수혈상태 All 체크박스
  338. function Div00_chk_all_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  339. {
  340. lf_setTnsStat("all");
  341. }
  342. function Div00_chk_all_onclick(obj:CheckBox, e:ClickEventInfo)
  343. {
  344. lf_setTnsStat("all");
  345. }
  346. function Div00_chk_a_onclick(obj:CheckBox, e:ClickEventInfo)
  347. {
  348. lf_setTnsStat("a");
  349. }
  350. function Div00_chk_b_onclick(obj:CheckBox, e:ClickEventInfo)
  351. {
  352. lf_setTnsStat("b");
  353. }
  354. function Div00_chk_c_onclick(obj:CheckBox, e:ClickEventInfo)
  355. {
  356. lf_setTnsStat("c");
  357. }
  358. function Div00_chk_d_onclick(obj:CheckBox, e:ClickEventInfo)
  359. {
  360. lf_setTnsStat("d");
  361. }
  362. function Div00_chk_e_onclick(obj:CheckBox, e:ClickEventInfo)
  363. {
  364. lf_setTnsStat("e");
  365. }
  366. function Div00_chk_f_onclick(obj:CheckBox, e:ClickEventInfo)
  367. {
  368. lf_setTnsStat("f");
  369. }
  370. function Div00_chk_g_onclick(obj:CheckBox, e:ClickEventInfo)
  371. {
  372. lf_setTnsStat("g");
  373. }
  374. function workform_onload(obj:Form, e:LoadEventInfo)
  375. {
  376. lf_getTnsReqList();
  377. }
  378. ]]></Script>
  379. </Form>
  380. </FDL>