SPLBT90410_외래혈종수혈처방조회.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLBT90410" position="absolute 0 0 984 747" titletext="외래수혈처방조회" oninit="SPLBT90410_oninit" onload="SPLBT90410_onload" onclose="SPLBT90410_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 14 982 747" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout width="990" height="756">
  10. <Grid position="absolute 1 77 976 732" align="align:center middle;" id="grd_dnorinfo" class="datagrid3" binddataset="ds_grd_dnorinfo" anchor="all" autofittype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="22"/>
  15. <Column size="52"/>
  16. <Column size="79"/>
  17. <Column size="71"/>
  18. <Column size="38"/>
  19. <Column size="69"/>
  20. <Column size="60"/>
  21. <Column size="55"/>
  22. <Column size="70"/>
  23. <Column size="34"/>
  24. <Column size="59"/>
  25. <Column size="88"/>
  26. <Column size="54"/>
  27. <Column size="76"/>
  28. <Column size="36"/>
  29. <Column size="72"/>
  30. <Column size="74"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" text="상태"/>
  42. <Cell col="2" text="처방일자"/>
  43. <Cell col="3" colspan="2" text="예약일시" taborder="undefined"/>
  44. <Cell col="5" text="등록번호"/>
  45. <Cell col="6" text="환자명"/>
  46. <Cell col="7" text="진료과"/>
  47. <Cell col="8" text="처방명"/>
  48. <Cell col="9" text="수량"/>
  49. <Cell col="10" text="Btype"/>
  50. <Cell col="11" text="최근수혈혈액형"/>
  51. <Cell col="12" text="보관검체"/>
  52. <Cell col="13" text="혈액은행확인"/>
  53. <Cell col="14" text="외래&#10;확인"/>
  54. <Cell col="15" text="확인일시"/>
  55. <Cell col="16" text="보관검체정보"/>
  56. <Cell col="17" text="tnsreqacptno"/>
  57. <Cell col="18" text="stat2"/>
  58. <Cell col="19" text="용량변경&#10;수량"/>
  59. </Band>
  60. <Band id="body">
  61. <Cell celltype="head" expr="expr:currow + 1"/>
  62. <Cell col="1" text="bind:prcpstat"/>
  63. <Cell col="2" displaytype="date" edittype="date" text="bind:prcpdd" mask="yyyy-MM-dd"/>
  64. <Cell col="3" displaytype="date" edittype="date" text="bind:prcphopedd" mask="yyyy-MM-dd"/>
  65. <Cell col="4" displaytype="date" edittype="date" text="bind:prcphopetm" mask="hh:mm"/>
  66. <Cell col="5" text="bind:pid"/>
  67. <Cell col="6" text="bind:hngnm"/>
  68. <Cell col="7" text="bind:deptnm"/>
  69. <Cell col="8" style="align:left middle;" text="bind:blodcomabbrnm"/>
  70. <Cell col="9" text="bind:reqqty"/>
  71. <Cell col="10" text="bind:btype"/>
  72. <Cell col="11" text="bind:bfaborh"/>
  73. <Cell col="12" text="bind:keepno"/>
  74. <Cell col="13" text="bind:bankcnfmyn"/>
  75. <Cell col="14" displaytype="checkbox" edittype="expr:getColumn(currow, 'edittype')" text="bind:outcnfmyn"/>
  76. <Cell col="15" displaytype="date" edittype="date" text="bind:rsrvcnfmdt" mask="yyyy-MM-dd"/>
  77. <Cell col="16" text="bind:bcnoinfo"/>
  78. <Cell col="17" text="bind:tnsreqacptno"/>
  79. <Cell col="18" text="bind:stat2"/>
  80. <Cell col="19" text="bind:voltrans"/>
  81. </Band>
  82. </Format>
  83. </Formats>
  84. </Grid>
  85. <Shape position="absolute 1 71 976 77" linetype="horizontal" id="line10" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  86. <Static text="외래환자 수혈처방 조회" position="absolute 1 55 168 76" id="caption32" class="tit_2" anchor="left top"/>
  87. <Div position="absolute 0 11 979 46" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  88. <Layouts>
  89. <Layout>
  90. <Shape position="absolute 890 7 896 29" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  91. <Static text="예약일시 :" position="absolute 16 9 110 26" id="caption2" class="search_name" anchor="left top"/>
  92. <Button position="absolute 908 7 964 29" id="btn_ref" class="btn1" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_ref_onclick"/>
  93. <Static text="~" position="absolute 207 10 222 27" id="caption3" class="search_no_b" anchor="left top"/>
  94. <Calendar position="absolute 97 8 200 27" id="input26" class="input_s_essential" anchor="left top" autoselect="true"/>
  95. <Calendar position="absolute 224 8 327 27" id="input1" class="input_s_essential" anchor="left top" onkeyup="grp_biz_grp_sea_input1_onkeyup" autoselect="true"/>
  96. <Static text="등록번호 :" position="absolute 381 9 475 26" id="caption1" class="search_name" anchor="default"/>
  97. <Edit position="absolute 475 8 575 27" id="ipt_pid" anchor="default" onkeyup="grp_biz_grp_sea_ipt_pid_onkeyup" onkeydown="grp_biz_grp_sea_ipt_pid_onkeydown"/>
  98. <Edit position="absolute 831 8 855 27" id="input2" class="input_search" anchor="top right"/>
  99. <Static text="분" position="absolute 855 8 870 25" id="caption8" class="search_no_b" anchor="top right"/>
  100. <Button position="absolute 738 8 830 27" id="button89" class="btn5" text="자동조회 On" anchor="top right" onclick="grp_biz_grp_sea_button89_onclick"/>
  101. </Layout>
  102. </Layouts>
  103. </Div>
  104. </Layout>
  105. </Layouts>
  106. </Div>
  107. <Static id="caption6" text="외래환자 수혈처방 조회" class="tit_1" position="absolute 0 0 179 25" anchor="left top"/>
  108. <Button id="button1" taborder="1" text="닫기" onclick="grp_biz_button1_onclick" class="btn4" position="absolute 921 63 977 85" anchor="top right"/>
  109. </Layout>
  110. </Layouts>
  111. <Objects>
  112. <Dataset id="ds_grd_dnorinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_dnorinfo_oncolumnchanged">
  113. <ColumnInfo>
  114. <Column id="prcpstat" type="STRING"/>
  115. <Column id="prcpdd" type="STRING"/>
  116. <Column id="prcphopedd" type="STRING"/>
  117. <Column id="prcphopetm" type="STRING"/>
  118. <Column id="pid" type="STRING"/>
  119. <Column id="hngnm" type="STRING"/>
  120. <Column id="deptnm" type="STRING"/>
  121. <Column id="blodcomabbrnm" type="STRING"/>
  122. <Column id="reqqty" type="STRING"/>
  123. <Column id="btype" type="STRING"/>
  124. <Column id="bfaborh" type="STRING"/>
  125. <Column id="keepno" type="STRING"/>
  126. <Column id="bankcnfmyn" type="STRING"/>
  127. <Column id="outcnfmyn" type="STRING"/>
  128. <Column id="rsrvcnfmdt" type="STRING"/>
  129. <Column id="bcnoinfo" type="STRING"/>
  130. <Column id="tnsreqacptno" type="STRING"/>
  131. <Column id="stat2" type="STRING"/>
  132. <Column id="voltrans" type="STRING"/>
  133. </ColumnInfo>
  134. </Dataset>
  135. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="fromdd" type="STRING" size="256"/>
  138. <Column id="todd" type="STRING" size="256"/>
  139. <Column id="pid" type="STRING" size="256"/>
  140. </ColumnInfo>
  141. <Rows>
  142. <Row/>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="fromdd" type="STRING" size="256"/>
  148. <Column id="todd" type="STRING" size="256"/>
  149. <Column id="pid" type="STRING" size="256"/>
  150. <Column id="outcnfmdata" type="STRING" size="256"/>
  151. </ColumnInfo>
  152. <Rows>
  153. <Row/>
  154. </Rows>
  155. </Dataset>
  156. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  157. <ColumnInfo>
  158. <Column id="ref" type="STRING" size="256"/>
  159. <Column id="autom" type="STRING" size="256"/>
  160. <Column id="autoref" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="autom">1</Col>
  165. <Col id="autoref">1</Col>
  166. </Row>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_bloodprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="outprcplist" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row/>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="nm" type="STRING" size="256"/>
  180. <Column id="cd" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. </Dataset>
  183. </Objects>
  184. <Bind>
  185. <BindItem id="item0" compid="grp_biz.grp_sea.input26" propid="value" datasetid="ds_hidden_ref" columnid="fromdd"/>
  186. <BindItem id="item1" compid="grp_biz.grp_sea.input1" propid="value" datasetid="ds_hidden_ref" columnid="todd"/>
  187. <BindItem id="item2" compid="grp_biz.grp_sea.ipt_pid" propid="value" datasetid="ds_hidden_ref" columnid="pid"/>
  188. <BindItem id="item3" compid="grp_biz.grp_sea.input2" propid="value" datasetid="ds_hidden" columnid="autom"/>
  189. </Bind>
  190. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  191. * System Name :
  192. * Job Name :
  193. * Creator :
  194. * Make Date : 2015-05-01
  195. * Description :
  196. *---------------------------------------------------------------------------------------
  197. * Modify Date Modifier Modify Description
  198. *---------------------------------------------------------------------------------------
  199. * 2015-05-01 Live Converter TF->XP
  200. *
  201. *---------------------------------------------------------------------------------------
  202. ****************************************************************************************/
  203. include "com_commonxp::comm_main.xjs";
  204. include "lis_commonxp::LLZ001.xjs";
  205. function SPLBT90410_oninit(obj:Form, e:InitEventInfo)
  206. {
  207. //폼 초기화 함수
  208. frmf_initForm(obj);
  209. }
  210. function SPLBT90410_onload(obj:Form, e:LoadEventInfo)
  211. {
  212. grdf_initGrid(grp_biz.grd_dnorinfo);
  213. fSetInit(); //초기화
  214. }
  215. var gTimerID;
  216. var iCnt = 1;
  217. function fTimer()
  218. {
  219. iCnt ++;
  220. if(iCnt%2 == 0)
  221. {
  222. m = grp_biz.grp_sea.input2.value;
  223. this.setTimer(gTimerID, m * 60000);
  224. grp_biz.grp_sea.button89.text = "자동조회 On";
  225. grp_biz.grp_sea.input2.enable = false;
  226. }
  227. else
  228. {
  229. ds_hidden.setColumn(0,"autoref" , "2");
  230. grp_biz.grp_sea.button89.text = "자동조회 Off";
  231. grp_biz.grp_sea.input2.enable = true;
  232. this.killTimer(gTimerID);
  233. }
  234. }
  235. //초기화
  236. function fSetInit()
  237. {
  238. grp_biz.grp_sea.ipt_pid.setFocus();
  239. lf_getDbDeptcd("0000|","cbf_TRLZZ00101");
  240. fTimer();
  241. grp_biz.grp_sea.input26.value = utlf_addDate(utlf_getCurrentDate(), -1);
  242. grp_biz.grp_sea.input1.value = utlf_getCurrentDate();
  243. fGetOutPrcpList();
  244. }
  245. // 조회
  246. function fGetOutPrcpList()
  247. {
  248. ds_send.setColumn(0, "fromdd", ds_hidden_ref.getColumn(0, "fromdd"));
  249. ds_send.setColumn(0, "todd", ds_hidden_ref.getColumn(0, "todd"));
  250. ds_send.setColumn(0, "pid", ds_hidden_ref.getColumn(0, "pid"));
  251. //submit("TRLBT90402");
  252. var oParam = {};
  253. oParam.id = "TRLBT90402";
  254. oParam.service = "transfusionmngtapp.PseuDeliveryRgst";
  255. oParam.method = "reqGetOutBlodPrcpList1";
  256. oParam.inds = "cond=ds_send";
  257. oParam.outds = "ds_grd_dnorinfo=getOutBlodPrcpList";
  258. oParam.async = false;
  259. oParam.callback = "cf_TRLBT90402";
  260. tranf_submit(oParam);
  261. }
  262. //혈액은행 확인, 외래확인 체크
  263. function fSetRsrvCNFM()
  264. {
  265. var oParam = {};
  266. oParam.id = "TXLBT90401";
  267. oParam.service = "transfusionmngtapp.PseuDeliveryRgst";
  268. oParam.method = "reqExeOutRsrvCnfm";
  269. oParam.inds = "data=ds_grd_dnorinfo:U";
  270. oParam.async = false;
  271. oParam.callback = "cbf_TXLBT90401";
  272. tranf_submit(oParam);
  273. }
  274. function KeyEvent(objName, keyCode)
  275. {
  276. if(keyCode == "13")
  277. {
  278. if(objName == "ipt_pid")
  279. {
  280. frmf_setInputNodeCurPid(grp_biz.grp_sea.ipt_pid);
  281. grp_biz.grp_sea.ipt_pid.value = String(grp_biz.grp_sea.ipt_pid.value).getTrim();
  282. fGetOutPrcpList();
  283. }
  284. }
  285. }
  286. //콜백_LIS공통코드조회
  287. function cbf_TRLZZ00101(strSvcID, nErrorCode, strErrorMag)
  288. {
  289. if(nErrorCode != 0)
  290. {
  291. sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  292. }
  293. else
  294. {
  295. }
  296. }
  297. //콜백_조회
  298. function cf_TRLBT90402(strSvcID, nErrorCode, strErrorMag)
  299. {
  300. if(nErrorCode != 0)
  301. {
  302. sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  303. }
  304. else
  305. {
  306. createColumn(ds_grd_dnorinfo, "edittype");
  307. ds_grd_dnorinfo.updatecontrol = false;
  308. for(var i=0; i<ds_grd_dnorinfo.rowcount; i++)
  309. {
  310. if(ds_grd_dnorinfo.getColumn(i, "stat2") == "000" || ds_grd_dnorinfo.getColumn(i, "stat2") == "0" ||ds_grd_dnorinfo.getColumn(i, "stat2") == "230")
  311. {
  312. ds_grd_dnorinfo.setColumn(i, "edittype", "none");
  313. }
  314. else
  315. {
  316. ds_grd_dnorinfo.setColumn(i, "edittype", "checkbox");
  317. }
  318. if(ds_grd_dnorinfo.getColumn(i, "outcnfmyn") == "N")
  319. {
  320. ds_grd_dnorinfo.setColumn(i, "outcnfmyn", 0);
  321. }
  322. ds_grd_dnorinfo.setRowType(i, Dataset.ROWTYPE_NORMAL);
  323. }
  324. ds_grd_dnorinfo.updatecontrol = true;
  325. }
  326. }
  327. function cbf_TXLBT90401(strSvcID, nErrorCode, strErrorMag)
  328. {
  329. if(nErrorCode != 0)
  330. {
  331. sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  332. }
  333. else
  334. {
  335. fGetOutPrcpList();
  336. }
  337. }
  338. function createColumn(objDs, strColID)
  339. {
  340. var isExist = false;
  341. if(!isExistCol(objDs, strColID))
  342. {
  343. objDs.addColumn(strColID,"string");
  344. }
  345. }
  346. function isExistCol(objDs, strColID)
  347. {
  348. var isExist = false;
  349. var colID = "";
  350. for(var i=0; i<objDs.getColCount(); i++)
  351. {
  352. colID = objDs.getColID(i);
  353. if(colID == strColID)
  354. {
  355. isExist = true;
  356. }
  357. }
  358. return isExist;
  359. }
  360. //조회
  361. function grp_biz_grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  362. {
  363. fGetOutPrcpList();
  364. }
  365. function grp_biz_grp_sea_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  366. {
  367. if(e.keycode == 13)
  368. {
  369. fGetOutPrcpList();
  370. }
  371. }
  372. function grp_biz_grp_sea_input1_onkeyup(obj:Calendar, e:KeyEventInfo)
  373. {
  374. if(e.keycode == 13)
  375. {
  376. fGetOutPrcpList();
  377. }
  378. }
  379. //자동조회
  380. function grp_biz_grp_sea_button89_onclick(obj:Button, e:ClickEventInfo)
  381. {
  382. fTimer();
  383. }
  384. function grp_biz_grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  385. {
  386. KeyEvent(obj.name, e.keycode);
  387. }
  388. function ds_grd_dnorinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  389. {
  390. if(obj.getColID(e.col) == "outcnfmyn")
  391. {
  392. obj.updatecontrol = false;
  393. if(obj.getColumn(e.row, obj.getColID(e.col)) == 1)
  394. {
  395. obj.setRowType(e.row, Dataset.ROWTYPE_INSERT);
  396. obj.setColumn(e.row, "outcnfmyn", "Y");
  397. }
  398. obj.updatecontrol = true;
  399. fSetRsrvCNFM();
  400. }
  401. }
  402. function SPLBT90410_onclose(obj:Form, e:CloseEventInfo)
  403. {
  404. this.killTimer(0);
  405. }
  406. //닫기
  407. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  408. {
  409. this.close();
  410. }
  411. ]]></Script>
  412. </Form>
  413. </FDL>