SPASB00900_검사결과조회.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPASB00900" position="absolute 0 0 758 443" titletext="검사결과조회" oninit="SPASB00900_oninit" onload="SPASB00900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line56" linetype="horizontal" class="line_10" position="absolute 0 56 755 62"/>
  8. <Static id="caption5" text="검사결과조회" class="tit_2" position="absolute 5 7 108 25"/>
  9. <Shape id="line2" class="line_10" position="absolute 0 26 755 32"/>
  10. <Grid id="grd_testrsltlist" taborder="4" binddataset="ds_grd_testrsltlist" useinputpanel="false" position="absolute 0 60 755 418" cellsizingtype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="100"/>
  15. <Column size="100"/>
  16. <Column size="100"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. <Column size="100"/>
  21. <Column size="100"/>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell text="등록번호"/>
  31. <Cell col="1" text="이름"/>
  32. <Cell col="2" text="채혈일자"/>
  33. <Cell col="3" text="보고일자"/>
  34. <Cell col="4" text="Hb"/>
  35. <Cell col="5" text="WBC"/>
  36. <Cell col="6" text="Neutrophils"/>
  37. <Cell col="7" text="ESR"/>
  38. <Cell col="8" text="CRP"/>
  39. <Cell col="9" text="채혈일자전송값"/>
  40. </Band>
  41. <Band id="body">
  42. <Cell text="bind:pid" suppress="1"/>
  43. <Cell col="1" text="bind:patnm" suppress="1"/>
  44. <Cell col="2" text="bind:bcoldt_view" mask="expr:utlf_isNull(utlf_trim(bcoldt_view)) ? '' : '####-##-## ##:##'"/>
  45. <Cell col="3" text="bind:lastreptdt" mask="expr:utlf_isNull(utlf_trim(lastreptdt)) ? '' : '####-##-## ##:##'" maskchar=" "/>
  46. <Cell col="4" text="bind:hb"/>
  47. <Cell col="5" text="bind:wbc"/>
  48. <Cell col="6" text="bind:neutrophils"/>
  49. <Cell col="7" text="bind:esr"/>
  50. <Cell col="8" text="bind:crp"/>
  51. <Cell col="9" text="bind:bcoldt"/>
  52. </Band>
  53. </Format>
  54. </Formats>
  55. </Grid>
  56. <Combo id="cmb_flag" taborder="0" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" enable="false" position="absolute 58 32 215 51">
  57. <Dataset id="innerdataset">
  58. <ColumnInfo>
  59. <Column id="codecolumn"/>
  60. <Column id="datacolumn"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row>
  64. <Col id="codecolumn">H</Col>
  65. <Col id="datacolumn">Hb, WBC, Neutrophils</Col>
  66. </Row>
  67. <Row>
  68. <Col id="codecolumn">E</Col>
  69. <Col id="datacolumn">ESR</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">C</Col>
  73. <Col id="datacolumn">CRP</Col>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. </Combo>
  78. <Edit id="ipt_pid" taborder="1" class="input_s_essential" enable="false" position="absolute 282 32 373 51"/>
  79. <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 699 30 755 52" onclick="btn_search_onclick"/>
  80. <Static id="caption3" text="~" position="absolute 565 33 580 53"/>
  81. <Calendar id="ipt_todd" taborder="3" class="input_s_essential" position="absolute 578 32 691 51"/>
  82. <Calendar id="ipt_fromdd" taborder="2" class="input_s_essential" position="absolute 447 32 560 51"/>
  83. <Static id="cap_flag" text="구분" class="cell_1" position="absolute 1 30 56 53"/>
  84. <Static id="cap_pid" text="등록번호" class="cell_1" position="absolute 217 30 280 53"/>
  85. <Static id="cap_fromdd" text="조회기간" class="cell_1" visible="true" position="absolute 377 30 446 53"/>
  86. <Button id="btn_cnfm" taborder="7" text="확인" class="btn4" position="absolute 639 419 695 441" onclick="btn_cnfm_onclick"/>
  87. <Button id="btn_cncl" taborder="8" text="취소" class="btn4" position="absolute 696 419 752 441" onclick="btn_cncl_onclick"/>
  88. </Layout>
  89. </Layouts>
  90. <Objects>
  91. <Dataset id="ds_grd_testrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  92. <ColumnInfo>
  93. <Column id="pid" type="STRING"/>
  94. <Column id="patnm" type="STRING"/>
  95. <Column id="bcoldt_view" type="STRING"/>
  96. <Column id="lastreptdt" type="STRING"/>
  97. <Column id="hb" type="STRING"/>
  98. <Column id="wbc" type="STRING"/>
  99. <Column id="neutrophils" type="STRING"/>
  100. <Column id="esr" type="STRING"/>
  101. <Column id="crp" type="STRING"/>
  102. <Column id="bcoldt" type="STRING"/>
  103. </ColumnInfo>
  104. </Dataset>
  105. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  106. <ColumnInfo>
  107. <Column id="flag" type="STRING" size="256"/>
  108. <Column id="pid" type="STRING" size="256"/>
  109. <Column id="fromdd" type="STRING" size="256"/>
  110. <Column id="todd" type="STRING" size="256"/>
  111. <Column id="org_flag" type="STRING" size="256"/>
  112. </ColumnInfo>
  113. <Rows>
  114. <Row>
  115. <Col id="flag">H</Col>
  116. </Row>
  117. </Rows>
  118. </Dataset>
  119. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  120. <Dataset id="ds_init_initdate" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="today" type="STRING" size="256"/>
  123. </ColumnInfo>
  124. </Dataset>
  125. </Objects>
  126. <Bind>
  127. <BindItem id="item0" compid="cmb_flag" propid="value" datasetid="ds_main_cond" columnid="flag"/>
  128. <BindItem id="item1" compid="ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  129. <BindItem id="item2" compid="ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  130. <BindItem id="item3" compid="ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  131. </Bind>
  132. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  133. * System Name :
  134. * Job Name :
  135. * Creator :
  136. * Make Date : 2015-11-13
  137. * Description :
  138. *---------------------------------------------------------------------------------------
  139. * Modify Date Modifier Modify Description
  140. *---------------------------------------------------------------------------------------
  141. * 2015-11-13 Live Converter TF->XP
  142. *
  143. *---------------------------------------------------------------------------------------
  144. ****************************************************************************************/
  145. include "com_commonxp::comm_main.xjs";
  146. //include "ast_infcmngtxp::SPASB00900.xjs";
  147. function SPASB00900_oninit(obj:Form, e:InitEventInfo)
  148. {
  149. frmf_initForm(obj);
  150. }
  151. function SPASB00900_onload(obj:Form, e:LoadEventInfo)
  152. {
  153. grdf_initGrid(grd_testrsltlist);
  154. grdf_setToolTipBind(grd_testrsltlist);
  155. ds_main_cond.copyData(arg_ds_main_cond);
  156. fInitialize();
  157. var flag = ds_main_cond.getColumn(0, "flag");
  158. //dsf_makeValue(ds_main_cond, "org_flag", flag, 0);
  159. dsf_makeValue(ds_main_cond, "org_flag", "string",flag );
  160. flag = flag.substr(0, 1);
  161. ds_main_cond.setColumn(0, "flag", flag);
  162. ds_send_reqdata.copyData(ds_main_cond);
  163. ds_send_reqdata.setColumn(0, "flag", flag);
  164. if (flag != "-")
  165. {
  166. var oParam = {};
  167. oParam.id = "TRASB00901";
  168. oParam.service = "infcmngtapp.HospInfcMngt";
  169. oParam.method = "reqGetTestRsltList";
  170. oParam.inds = "req=ds_send_reqdata";
  171. oParam.outds = "ds_grd_testrsltlist=testrsltlist";
  172. oParam.async = false;
  173. //oParam.callback = "cf_TRASB00901";
  174. tranf_submit(oParam);
  175. fInit();
  176. }
  177. ds_grd_testrsltlist.clearData();
  178. }
  179. function fInitialize()
  180. {
  181. var today = utlf_getCurrentDate();
  182. var idate = new Date();
  183. var peveDate = idate.getAddDate(-1, "M");
  184. ds_init_initdate.setColumn(0, "today", today);
  185. dsf_createDsRow("ds_send_cond", [{col : "fromdd", val : peveDate.getDateFormat()}
  186. ,{col : "todd", val : today}]);
  187. ds_main_cond.setColumn(0, "fromdd", peveDate.getDateFormat());
  188. ds_main_cond.setColumn(0, "todd", today);
  189. }
  190. /**
  191. * 파 일 명 : SPASB00900.js
  192. * 설 명 : 검사결과 조회 화면 Javascript
  193. * 설 계 자 : 류민정
  194. * 작 성 자 : 류민정
  195. * 수정이력 : 2007.06.04 / 신규작성 / 류민정
  196. */
  197. /**
  198. * 초기화
  199. */
  200. function fInit()
  201. {
  202. var flag = ds_main_cond.getColumn(0, "flag");
  203. trace("flag = " + flag);
  204. if(flag == "-")
  205. {
  206. //grd_testrsltlist.setCellProperty("Head", 5, "size", "100");
  207. //grd_testrsltlist.setCellProperty("Head", 6, "size", "100");
  208. //grd_testrsltlist.setCellProperty("Head", 7, "size", "100");
  209. //grd_testrsltlist.setCellProperty("Head", 8, "size", "100");
  210. //grd_testrsltlist.setCellProperty("Head", 9, "size", "100");
  211. grd_testrsltlist.setRealColSize(4,100,false);
  212. grd_testrsltlist.setRealColSize(5,100,false);
  213. grd_testrsltlist.setRealColSize(6,100,false);
  214. grd_testrsltlist.setRealColSize(7,100,false);
  215. grd_testrsltlist.setRealColSize(8,100,false);
  216. grd_testrsltlist.setRealColSize(9,100,false);
  217. }
  218. else if(flag == "H")
  219. {
  220. //grd_testrsltlist.setCellProperty("Head", 5, "size", "100");
  221. //grd_testrsltlist.setCellProperty("Head", 6, "size", "100");
  222. //grd_testrsltlist.setCellProperty("Head", 7, "size", "100");
  223. //grd_testrsltlist.setCellProperty("Head", 8, "size", "0");
  224. //grd_testrsltlist.setCellProperty("Head", 9, "size", "0");
  225. grd_testrsltlist.setRealColSize(4,100,false);
  226. grd_testrsltlist.setRealColSize(5,100,false);
  227. grd_testrsltlist.setRealColSize(6,100,false);
  228. grd_testrsltlist.setRealColSize(7,0,false);
  229. grd_testrsltlist.setRealColSize(8,0,false);
  230. grd_testrsltlist.setRealColSize(9,0,false);
  231. }
  232. else if(flag == "E")
  233. {
  234. //grd_testrsltlist.setCellProperty("Head", 5, "size", 0);
  235. //grd_testrsltlist.setCellProperty("Head", 6, "size", 0);
  236. //grd_testrsltlist.setCellProperty("Head", 7, "size", 0);
  237. //grd_testrsltlist.setCellProperty("Head", 8, "size", 100);
  238. //grd_testrsltlist.setCellProperty("Head", 9, "size", 0);
  239. grd_testrsltlist.setRealColSize(4,0,false);
  240. grd_testrsltlist.setRealColSize(5,0,false);
  241. grd_testrsltlist.setRealColSize(6,0,false);
  242. grd_testrsltlist.setRealColSize(7,100,false);
  243. grd_testrsltlist.setRealColSize(8,0,false);
  244. grd_testrsltlist.setRealColSize(9,0,false);
  245. }
  246. else if(flag == "C")
  247. {
  248. //grd_testrsltlist.setCellProperty("Head", 5, "size", 0);
  249. //grd_testrsltlist.setCellProperty("Head", 6, "size", 0);
  250. //grd_testrsltlist.setCellProperty("Head", 7, "size", 0);
  251. //grd_testrsltlist.setCellProperty("Head", 8, "size", 0);
  252. //grd_testrsltlist.setCellProperty("Head", 9, "size", 100);
  253. grd_testrsltlist.setRealColSize(4,0,false);
  254. grd_testrsltlist.setRealColSize(5,0,false);
  255. grd_testrsltlist.setRealColSize(6,0,false);
  256. grd_testrsltlist.setRealColSize(7,0,false);
  257. grd_testrsltlist.setRealColSize(8,100,false);
  258. grd_testrsltlist.setRealColSize(9,0,false);
  259. }
  260. }
  261. //조회버튼
  262. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  263. {
  264. if( !frmf_isRequiredControls("cmb_flag","ipt_pid","ipt_fromdd","ipt_todd"))
  265. {
  266. return;
  267. }
  268. ds_send_reqdata.copyData(ds_main_cond);
  269. var oParam = {};
  270. oParam.id = "TRASB00901";
  271. oParam.service = "infcmngtapp.HospInfcMngt";
  272. oParam.method = "reqGetTestRsltList";
  273. oParam.inds = "req=ds_send_reqdata";
  274. oParam.outds = "ds_grd_testrsltlist=testrsltlist";
  275. oParam.async = false;
  276. //oParam.callback = "cf_TRASB00901";
  277. tranf_submit(oParam);
  278. fInit();
  279. }
  280. function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  281. {
  282. var iRow = ds_grd_testrsltlist.rowposition;
  283. var flag = ds_main_cond.getColumn(0, "org_flag");
  284. if (flag == "H1")
  285. {
  286. //alert(ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  287. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "hbtestdt1", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  288. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "hbtestrslt1", ds_grd_testrsltlist.getColumn(iRow, "hb"));
  289. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "wbctestdt1", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  290. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "wbctestrslt1", ds_grd_testrsltlist.getColumn(iRow, "wbc"));
  291. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "neutrophilstestdt1", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  292. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "neutrophilstestrslt1", ds_grd_testrsltlist.getColumn(iRow, "neutrophils"));
  293. }
  294. else if (flag == "H2")
  295. {
  296. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "hbtestdt2", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  297. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "hbtestrslt2", ds_grd_testrsltlist.getColumn(iRow, "hb"));
  298. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "wbctestdt2", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  299. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "wbctestrslt2", ds_grd_testrsltlist.getColumn(iRow, "wbc"));
  300. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "neutrophilstestdt2", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  301. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "neutrophilstestrslt2", ds_grd_testrsltlist.getColumn(iRow, "neutrophils"));
  302. }
  303. else if (flag == "E1")
  304. {
  305. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "esrtestdt1", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  306. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "esrtestrslt1", ds_grd_testrsltlist.getColumn(iRow, "esr"));
  307. }
  308. else if (flag == "E2")
  309. {
  310. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "esrtestdt2", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  311. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "esrtestrslt2", ds_grd_testrsltlist.getColumn(iRow, "esr"));
  312. }
  313. else if (flag == "C1")
  314. {
  315. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "crptestdt1", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  316. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "crptestrslt1", ds_grd_testrsltlist.getColumn(iRow, "crp"));
  317. }
  318. else if (flag == "C2")
  319. {
  320. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "crptestdt2", ds_grd_testrsltlist.getColumn(iRow, "prcpdd"));
  321. this.opener.ds_main_hospinfcinfo_hospinfc_info.setColumn(0, "crptestrslt2", ds_grd_testrsltlist.getColumn(iRow, "crp"));
  322. }
  323. this.close();
  324. }
  325. function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  326. {
  327. this.close();
  328. }
  329. ]]></Script>
  330. </Form>
  331. </FDL>