SMLNP00700_핵의학구분별검사수.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLNP00700" position="absolute 0 0 1256 805" titletext="핵의학구분별조회" onload="SMLNP00700_onload" oninit="SMLNP00700_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="핵의학 구분별 검사수" class="tit_1" position="absolute 0 0 168 24"/>
  8. <Button id="button11" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 28 56 50" onclick="button11_onclick"/>
  9. <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1167 28 1235 50"/>
  10. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn2" visible="false" position="absolute 0 768 64 787" onclick="btn_excel_onclick"/>
  11. <Grid id="grd_cntlist" taborder="4" binddataset="ds_grd_cntlist" useinputpanel="false" position="absolute 0 120 220 760" autofittype="col" cellsizingtype="col">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="150"/>
  16. <Column size="65"/>
  17. <Column size="0"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="검사명"/>
  25. <Cell col="1" text="건수"/>
  26. <Cell col="2"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell style="align:left;" text="bind:tclsnm"/>
  30. <Cell col="1" text="bind:tclscnt"/>
  31. <Cell col="2" text="bind:testcd"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Grid id="grd_cntdetlist" taborder="5" binddataset="ds_grd_cntdetlist" useinputpanel="false" position="absolute 230 120 1235 760" cellsizingtype="col">
  37. <Formats>
  38. <Format id="default">
  39. <Columns>
  40. <Column size="20"/>
  41. <Column size="75"/>
  42. <Column size="75"/>
  43. <Column size="35"/>
  44. <Column size="35"/>
  45. <Column size="80"/>
  46. <Column size="75"/>
  47. <Column size="180"/>
  48. <Column size="80"/>
  49. <Column size="130"/>
  50. <Column size="90"/>
  51. <Column size="130"/>
  52. <Column size="130"/>
  53. <Column size="130"/>
  54. </Columns>
  55. <Rows>
  56. <Row size="24" band="head"/>
  57. <Row size="24"/>
  58. </Rows>
  59. <Band id="head">
  60. <Cell/>
  61. <Cell col="1" text="등록번호"/>
  62. <Cell col="2" text="환자명"/>
  63. <Cell col="3" text="연령"/>
  64. <Cell col="4" text="성별"/>
  65. <Cell col="5" text="진료과"/>
  66. <Cell col="6" text="주치의"/>
  67. <Cell col="7" text="검사명"/>
  68. <Cell col="8" text="결과"/>
  69. <Cell col="9" text="등록일자"/>
  70. <Cell col="10" text="처방일자"/>
  71. <Cell col="11" text="채혈일자"/>
  72. <Cell col="12" text="접수일자"/>
  73. <Cell col="13" text="결과일자"/>
  74. </Band>
  75. <Band id="body">
  76. <Cell text="bind:dispseq" expr="expr:dispseq != &quot;0&quot; ? dispseq:&quot;&quot;"/>
  77. <Cell col="1" text="bind:pid"/>
  78. <Cell col="2" text="bind:patnm"/>
  79. <Cell col="3" text="bind:patage"/>
  80. <Cell col="4" text="bind:patsex"/>
  81. <Cell col="5" text="bind:orddeptnm"/>
  82. <Cell col="6" text="bind:orddrnm"/>
  83. <Cell col="7" text="bind:tclsnm"/>
  84. <Cell col="8" text="bind:reptrslt"/>
  85. <Cell col="9" text="bind:rgstdd" mask="####-##-## ##:##:##"/>
  86. <Cell col="10" text="bind:prcpdd" mask="####-##-##"/>
  87. <Cell col="11" text="bind:bcolldt" mask="####-##-## ##:##:##"/>
  88. <Cell col="12" text="bind:spcacptdt" mask="####-##-## ##:##:##"/>
  89. <Cell col="13" text="bind:lastreptdt" mask="####-##-## ##:##:##"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Static id="caption3" text="검사별 건수" class="tit_2" position="absolute 5 100 139 114"/>
  95. <Static id="caption1" text="상세조회" class="tit_2" position="absolute 235 100 309 113"/>
  96. <CheckBox id="checkbox1" taborder="6" position="absolute 313 96 333 116" onclick="checkbox1_onclick"/>
  97. <Div id="group1" taborder="7" class="div_SA" position="absolute 0 56 1235 91">
  98. <Layouts>
  99. <Layout>
  100. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1145 7 1151 29" anchor="default"/>
  101. <Button id="btn_Ref" taborder="8" text="조회" class="btn1" position="absolute 1163 8 1219 30" anchor="default" onclick="group1_btn_Ref_onclick"/>
  102. <Static id="caption11" text="조회일자 :" class="search_name" position="absolute 9 11 82 28" anchor="default"/>
  103. <Calendar id="input3" taborder="9" class="input_default" position="absolute 130 9 234 28" mask="yyyy-mm" anchor="default"/>
  104. <Calendar id="input1" taborder="10" class="input_default" position="absolute 297 9 401 28" mask="yyyy-mm" anchor="default"/>
  105. <Static id="caption8" text="~" position="absolute 240 9 253 29" anchor="default"/>
  106. <Combo id="combo1" taborder="11" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 826 9 931 28" anchor="default" value="1" text="환자명순" index="0">
  107. <Dataset id="innerdataset">
  108. <ColumnInfo>
  109. <Column id="codecolumn"/>
  110. <Column id="datacolumn"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="codecolumn">1</Col>
  115. <Col id="datacolumn">환자명순</Col>
  116. </Row>
  117. <Row>
  118. <Col id="codecolumn">2</Col>
  119. <Col id="datacolumn">결과일순</Col>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. </Combo>
  124. <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 444 11 517 28" anchor="default"/>
  125. <CheckBox id="checkbox2" taborder="12" position="absolute 521 8 569 28" anchor="default" text="외래" onclick="group1_checkbox2_onclick"/>
  126. <CheckBox id="checkbox3" taborder="13" position="absolute 580 8 638 28" anchor="default" text="입원" onclick="group1_checkbox3_onclick"/>
  127. <CheckBox id="checkbox4" taborder="14" position="absolute 641 8 699 28" anchor="default" text="건진" onclick="group1_checkbox4_onclick"/>
  128. <Static id="caption4" text="채혈일" position="absolute 89 9 134 29" anchor="default"/>
  129. <Static id="caption5" text="결과일" position="absolute 257 9 302 29" anchor="default"/>
  130. <Static id="caption7" text="정렬순서 :" class="search_name" position="absolute 745 11 819 28" anchor="default"/>
  131. </Layout>
  132. </Layouts>
  133. </Div>
  134. </Layout>
  135. </Layouts>
  136. <Objects>
  137. <Dataset id="ds_grd_cntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="tclsnm" type="STRING"/>
  140. <Column id="tclscnt" type="STRING"/>
  141. <Column id="testcd" type="STRING"/>
  142. </ColumnInfo>
  143. </Dataset>
  144. <Dataset id="ds_grd_cntdetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  145. <ColumnInfo>
  146. <Column id="dispseq" type="STRING"/>
  147. <Column id="pid" type="STRING"/>
  148. <Column id="patnm" type="STRING"/>
  149. <Column id="patage" type="STRING"/>
  150. <Column id="patsex" type="STRING"/>
  151. <Column id="orddeptnm" type="STRING"/>
  152. <Column id="orddrnm" type="STRING"/>
  153. <Column id="tclsnm" type="STRING"/>
  154. <Column id="reptrslt" type="STRING"/>
  155. <Column id="rgstdd" type="STRING"/>
  156. <Column id="prcpdd" type="STRING"/>
  157. <Column id="bcolldt" type="STRING"/>
  158. <Column id="spcacptdt" type="STRING"/>
  159. <Column id="lastreptdt" type="STRING"/>
  160. </ColumnInfo>
  161. </Dataset>
  162. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="srchym" type="STRING" size="256"/>
  165. <Column id="srchym2" type="STRING" size="256"/>
  166. <Column id="srchbdioflag" type="STRING" size="256"/>
  167. <Column id="getgbn" type="STRING" size="256"/>
  168. <Column id="detgbn" type="STRING" size="256"/>
  169. <Column id="oflag" type="STRING" size="256"/>
  170. <Column id="iflag" type="STRING" size="256"/>
  171. <Column id="sflag" type="STRING" size="256"/>
  172. <Column id="ois" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="getgbn">1</Col>
  177. </Row>
  178. </Rows>
  179. </Dataset>
  180. </Objects>
  181. <Bind>
  182. <BindItem id="item0" compid="group1.input3" propid="value" datasetid="ds_send" columnid="srchym"/>
  183. <BindItem id="item1" compid="group1.input1" propid="value" datasetid="ds_send" columnid="srchym2"/>
  184. <BindItem id="item5" compid="group1.combo1" propid="value" datasetid="ds_send" columnid="getgbn"/>
  185. </Bind>
  186. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  187. * System Name :
  188. * Job Name :
  189. * Creator :
  190. * Make Date : 2017-05-02
  191. * Description :
  192. *---------------------------------------------------------------------------------------
  193. * Modify Date Modifier Modify Description
  194. *---------------------------------------------------------------------------------------
  195. * 2017-05-02 Live Converter TF->XP
  196. *
  197. *---------------------------------------------------------------------------------------
  198. ****************************************************************************************/
  199. include "com_commonxp::comm_main.xjs";
  200. function SMLNP00700_oninit(obj:Form, e:InitEventInfo)
  201. {
  202. frmf_initForm(obj);
  203. }
  204. function SMLNP00700_onload(obj:Form, e:LoadEventInfo)
  205. {
  206. fInit();
  207. }
  208. function fInit()
  209. {
  210. ds_send.setColumn(0, "srchym", utlf_getCurrentDate());
  211. ds_send.setColumn(0, "srchym2", utlf_getCurrentDate());
  212. }
  213. function fGetTestCntList()
  214. {
  215. var O = ds_send.getColumn(0, "oflag"); // 외래
  216. var I = ds_send.getColumn(0, "iflag"); // 입원
  217. var S = ds_send.getColumn(0, "sflag"); // 건진
  218. var OIS = "";
  219. if(O == "1"){
  220. OIS = OIS + "1";
  221. }else{
  222. OIS = OIS + "0";
  223. }
  224. if(I == "1"){
  225. OIS = OIS + "1";
  226. }else{
  227. OIS = OIS + "0";
  228. }
  229. if(S == "1"){
  230. OIS = OIS + "1";
  231. }else{
  232. OIS = OIS + "0";
  233. }
  234. // 000 전체
  235. // 001 건진
  236. // 010 입원
  237. // 011 입원 건진
  238. // 100 외래
  239. // 101 외래 건진
  240. // 110 외래 입원
  241. // 111 전체
  242. ds_send.setColumn(0, "ois", OIS);
  243. var oParam = {};
  244. oParam.id = "TRLNP00701";
  245. oParam.service = "refprintmngtapp.NmedRefPrintMngt";
  246. oParam.method = "reqGetTestCntList";
  247. oParam.inds = "cond=ds_send";
  248. oParam.outds = "ds_grd_cntlist=getTestCntList";
  249. oParam.async = true;
  250. oParam.callback = "cf_TRLNP00701";
  251. tranf_submit(oParam);
  252. var detgbn = ds_send.getColumn(0, "detgbn");
  253. if(detgbn == "1"){
  254. var oParam = {};
  255. oParam.id = "TRLNP00702";
  256. oParam.service = "refprintmngtapp.NmedRefPrintMngt";
  257. oParam.method = "reqGetTestCntDetList";
  258. oParam.inds = "cond=ds_send";
  259. oParam.outds = "ds_grd_cntdetlist=getTestCntDetList";
  260. oParam.async = true;
  261. oParam.callback = "cf_TRLNP00702";
  262. tranf_submit(oParam);
  263. }
  264. }
  265. function cf_TRLNP00701(sSvcId, nErrorCode, sErrorMsg) {
  266. if(nErrorCode < 0) return;
  267. }
  268. function cf_TRLNP00702(sSvcId, nErrorCode, sErrorMsg) {
  269. if(nErrorCode < 0) return;
  270. }
  271. function fReportPrint(){
  272. var objDOM = rptf_createDOM(); // DOM 객체 설정
  273. rptf_setNodeListToDOM(objDOM, "root/main/cntdetlist", ds_grd_cntdetlist); // 데이터셋 1
  274. var objParam = new Object();
  275. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상위노드 XML 스트링 추출
  276. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  277. rptf_exeReportPreview30(["RPLNP00600"],[objParam], option);
  278. }
  279. function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  280. {
  281. fGetTestCntList();
  282. }
  283. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  284. {
  285. var rowcnt = ds_grd_cntdetlist.rowcount;
  286. if(utlf_isNull(rowcnt)){
  287. sysf_messageBox("엑셀로 다운로드 할 데이터가", "I004");
  288. }else{
  289. grdf_exportExcel(grd_cntlist, "핵의학결과대장" , "핵의학결과대장");
  290. }
  291. }
  292. function checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  293. {
  294. if(checkbox1.value == true){
  295. ds_send.setColumn(0, "detgbn", "1");
  296. }else{
  297. ds_send.setColumn(0, "detgbn", "0");
  298. }
  299. }
  300. function group1_checkbox2_onclick(obj:CheckBox, e:ClickEventInfo)
  301. {
  302. if(group1.checkbox2.value == true){
  303. ds_send.setColumn(0, "oflag", "1");
  304. }else{
  305. ds_send.setColumn(0, "oflag", "0");
  306. }
  307. }
  308. function group1_checkbox3_onclick(obj:CheckBox, e:ClickEventInfo)
  309. {
  310. if(group1.checkbox3.value == true){
  311. ds_send.setColumn(0, "iflag", "1");
  312. }else{
  313. ds_send.setColumn(0, "iflag", "0");
  314. }
  315. }
  316. function group1_checkbox4_onclick(obj:CheckBox, e:ClickEventInfo)
  317. {
  318. if(group1.checkbox4.value == true){
  319. ds_send.setColumn(0, "sflag", "1");
  320. }else{
  321. ds_send.setColumn(0, "sflag", "0");
  322. }
  323. }
  324. function button11_onclick(obj:Button, e:ClickEventInfo)
  325. {
  326. var objDOM = rptf_createDOM(); // DOM 객체 설정
  327. rptf_setNodeListToDOM(objDOM, "root/main/cntdetlist", ds_grd_cntdetlist); // 데이터셋 1
  328. var objParam = new Object();
  329. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상위노드 XML 스트링 추출
  330. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  331. rptf_exeReportPreview30(["RPLNP00600"],[objParam], option);
  332. }
  333. ]]></Script>
  334. </Form>
  335. </FDL>