SMLNP00800_핵의학재검리스트조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLNP00800" position="absolute 0 0 1256 805" titletext="핵의학 재검 일지" oninit="SMLNP00800_oninit" onload="SMLNP00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="button11" taborder="1" text="출력" class="btn6" position="absolute 2 28 58 50" onclick="button11_onclick"/>
  8. <Div id="group3" taborder="2" position="absolute 0 40 1195 784">
  9. <Layouts>
  10. <Layout width="1195" height="744">
  11. <Div id="group5" taborder="3" position="absolute 15 15 335 40"/>
  12. <Static id="cap_countlist" position="absolute 390 105 1140 125"/>
  13. <Static id="caption7" visible="false" position="absolute 910 105 1145 125"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Static id="caption1" text="자체 재검 리스트" class="tit_2" position="absolute 2 96 136 110"/>
  18. <Static id="caption5" text="자체 재검 건수 :" position="absolute 744 96 844 111"/>
  19. <Edit id="output1" taborder="3" readonly="true" position="absolute 846 93 911 112"/>
  20. <Static id="caption8" text="임상 재검 건수 :" position="absolute 931 96 1031 111"/>
  21. <Edit id="output2" taborder="4" readonly="true" position="absolute 1031 93 1096 112"/>
  22. <Button id="button2" taborder="5" text="엑셀" class="btn2_letter2" position="absolute 1131 93 1173 112" onclick="button2_onclick"/>
  23. <Grid id="datagrid1" taborder="6" binddataset="ds_datagrid1" useinputpanel="false" position="absolute 0 116 1194 661" autosizingtype="none" autofittype="col">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="90"/>
  28. <Column size="90"/>
  29. <Column size="80"/>
  30. <Column size="80"/>
  31. <Column size="200"/>
  32. <Column size="150"/>
  33. <Column size="110"/>
  34. <Column size="110"/>
  35. <Column size="110"/>
  36. <Column size="0"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell text="등록번호"/>
  44. <Cell col="1" text="환자명"/>
  45. <Cell col="2" text="성별/나이"/>
  46. <Cell col="3" text="주치의"/>
  47. <Cell col="4" text="검사명"/>
  48. <Cell col="5" text="검체명"/>
  49. <Cell col="6" text="첫번째결과"/>
  50. <Cell col="7" text="재검결과"/>
  51. <Cell col="8" text="보고결과"/>
  52. <Cell col="9" text="결과상태"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell text="bind:pid"/>
  56. <Cell col="1" text="bind:hngnm"/>
  57. <Cell col="2" text="bind:sexage"/>
  58. <Cell col="3" text="bind:orddrnm"/>
  59. <Cell col="4" text="bind:tclsscrnnm"/>
  60. <Cell col="5" text="bind:spcnm"/>
  61. <Cell col="6" text="bind:fir"/>
  62. <Cell col="7" text="bind:sec"/>
  63. <Cell col="8" text="bind:last"/>
  64. <Cell col="9" text="bind:rsltstat"/>
  65. </Band>
  66. </Format>
  67. </Formats>
  68. </Grid>
  69. <Static id="caption2" text="임상 재검 리스트" class="tit_2" position="absolute 5 669 139 683"/>
  70. <Grid id="datagrid2" taborder="7" binddataset="ds_datagrid2" useinputpanel="false" position="absolute 0 688 1194 790" autofittype="col">
  71. <Formats>
  72. <Format id="default">
  73. <Columns>
  74. <Column size="90"/>
  75. <Column size="90"/>
  76. <Column size="80"/>
  77. <Column size="80"/>
  78. <Column size="200"/>
  79. <Column size="150"/>
  80. <Column size="110"/>
  81. <Column size="110"/>
  82. <Column size="110"/>
  83. <Column size="0"/>
  84. </Columns>
  85. <Rows>
  86. <Row size="24" band="head"/>
  87. <Row size="24"/>
  88. </Rows>
  89. <Band id="head">
  90. <Cell text="등록번호"/>
  91. <Cell col="1" text="환자명"/>
  92. <Cell col="2" text="성별/나이"/>
  93. <Cell col="3" text="주치의"/>
  94. <Cell col="4" text="검사명"/>
  95. <Cell col="5" text="검체명"/>
  96. <Cell col="6" text="첫번째결과"/>
  97. <Cell col="7" text="재검결과"/>
  98. <Cell col="8" text="보고결과"/>
  99. <Cell col="9" text="결과상태"/>
  100. </Band>
  101. <Band id="body">
  102. <Cell text="bind:pid"/>
  103. <Cell col="1" text="bind:hngnm"/>
  104. <Cell col="2" text="bind:sexage"/>
  105. <Cell col="3" text="bind:orddrnm"/>
  106. <Cell col="4" text="bind:tclsscrnnm"/>
  107. <Cell col="5" text="bind:spcnm"/>
  108. <Cell col="6" text="bind:fir"/>
  109. <Cell col="7" text="bind:sec"/>
  110. <Cell col="8" text="bind:last"/>
  111. <Cell col="9" text="bind:rsltstat"/>
  112. </Band>
  113. </Format>
  114. </Formats>
  115. </Grid>
  116. <Div id="div_sea" taborder="8" class="div_SA" position="absolute 0 54 1192 88">
  117. <Layouts>
  118. <Layout>
  119. <Static id="caption3" text="검사일자 :" class="search_name" position="absolute 4 10 80 27" anchor="default"/>
  120. <Static id="caption4" text="~" position="absolute 198 9 218 29" anchor="default"/>
  121. <Calendar id="ipt_fromdd" taborder="7" class="input_s_essential" position="absolute 85 8 192 27" anchor="default"/>
  122. <Calendar id="ipt_todd" taborder="8" class="input_s_essential" position="absolute 212 8 318 27" anchor="default"/>
  123. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1093 8 1099 25" anchor="default"/>
  124. <Button id="button6" taborder="9" text="조회" class="btn1" position="absolute 1120 7 1176 29" anchor="default" onclick="div_sea_button6_onclick"/>
  125. </Layout>
  126. </Layouts>
  127. </Div>
  128. <Static id="caption6" text="일일 재검일지(핵의학 검체검사)" class="tit_1" position="absolute 0 0 240 24"/>
  129. </Layout>
  130. </Layouts>
  131. <Objects>
  132. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="pid" type="STRING"/>
  135. <Column id="hngnm" type="STRING"/>
  136. <Column id="sexage" type="STRING"/>
  137. <Column id="orddrnm" type="STRING"/>
  138. <Column id="tclsscrnnm" type="STRING"/>
  139. <Column id="spcnm" type="STRING"/>
  140. <Column id="fir" type="STRING"/>
  141. <Column id="sec" type="STRING"/>
  142. <Column id="last" type="STRING"/>
  143. <Column id="rsltstat" type="STRING"/>
  144. </ColumnInfo>
  145. </Dataset>
  146. <Dataset id="ds_datagrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  147. <ColumnInfo>
  148. <Column id="pid" type="STRING"/>
  149. <Column id="hngnm" type="STRING"/>
  150. <Column id="sexage" type="STRING"/>
  151. <Column id="orddrnm" type="STRING"/>
  152. <Column id="tclsscrnnm" type="STRING"/>
  153. <Column id="spcnm" type="STRING"/>
  154. <Column id="fir" type="STRING"/>
  155. <Column id="sec" type="STRING"/>
  156. <Column id="last" type="STRING"/>
  157. <Column id="rsltstat" type="STRING"/>
  158. </ColumnInfo>
  159. </Dataset>
  160. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  161. <ColumnInfo>
  162. <Column id="fromdd" type="STRING" size="256"/>
  163. <Column id="todd" type="STRING" size="256"/>
  164. </ColumnInfo>
  165. <Rows>
  166. <Row/>
  167. </Rows>
  168. </Dataset>
  169. <Dataset id="ds_rslt_count" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="cnt" type="STRING" size="256"/>
  172. <Column id="cnt2" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row/>
  176. </Rows>
  177. </Dataset>
  178. <Dataset id="ds_datagrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  179. <ColumnInfo>
  180. <Column id="pid" type="STRING"/>
  181. <Column id="hngnm" type="STRING"/>
  182. <Column id="sexage" type="STRING"/>
  183. <Column id="orddrnm" type="STRING"/>
  184. <Column id="tclsscrnnm" type="STRING"/>
  185. <Column id="spcnm" type="STRING"/>
  186. <Column id="fir" type="STRING"/>
  187. <Column id="sec" type="STRING"/>
  188. <Column id="last" type="STRING"/>
  189. <Column id="rsltstat" type="STRING"/>
  190. </ColumnInfo>
  191. </Dataset>
  192. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  193. <ColumnInfo>
  194. <Column id="cnt" type="STRING" size="256"/>
  195. <Column id="cnt2" type="STRING" size="256"/>
  196. <Column id="date" type="STRING" size="256"/>
  197. <Column id="rslt1" type="STRING" size="256"/>
  198. <Column id="rslt2" type="STRING" size="256"/>
  199. <Column id="lastflag" type="STRING" size="256"/>
  200. <Column id="pid" type="STRING" size="256"/>
  201. <Column id="hngnm" type="STRING" size="256"/>
  202. <Column id="sexage" type="STRING" size="256"/>
  203. <Column id="orddrnm" type="STRING" size="256"/>
  204. <Column id="tclsscrnnm" type="STRING" size="256"/>
  205. <Column id="spcnm" type="STRING" size="256"/>
  206. <Column id="fir" type="STRING" size="256"/>
  207. <Column id="sec" type="STRING" size="256"/>
  208. <Column id="last" type="STRING" size="256"/>
  209. <Column id="rsltstat" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. </Dataset>
  212. </Objects>
  213. <Bind>
  214. <BindItem id="item0" compid="div_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  215. <BindItem id="item1" compid="div_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  216. <BindItem id="item2" compid="output1" propid="value" datasetid="ds_hidden" columnid="cnt"/>
  217. <BindItem id="item3" compid="output2" propid="value" datasetid="ds_hidden" columnid="cnt2"/>
  218. </Bind>
  219. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  220. * System Name :
  221. * Job Name :
  222. * Creator :
  223. * Make Date : 2017-03-31
  224. * Description :
  225. *---------------------------------------------------------------------------------------
  226. * Modify Date Modifier Modify Description
  227. *---------------------------------------------------------------------------------------
  228. * 2017-03-31 Live Converter TF->XP
  229. *
  230. *---------------------------------------------------------------------------------------
  231. ****************************************************************************************/
  232. include "com_commonxp::comm_main.xjs";
  233. function SMLNP00800_oninit(obj:Form, e:InitEventInfo)
  234. {
  235. frmf_initForm(obj);
  236. }
  237. function SMLNP00800_onload(obj:Form, e:LoadEventInfo)
  238. {
  239. fInit();
  240. }
  241. function fInit()
  242. {
  243. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  244. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  245. }
  246. function div_sea_button6_onclick(obj:Button, e:ClickEventInfo)
  247. {
  248. var oParam = {};
  249. oParam.id = "TRLNP00801";
  250. oParam.service = "refprintmngtapp.NmedRefPrintMngt";
  251. oParam.method = "reqGetRetestTestList";
  252. oParam.inds = "cond=ds_send";
  253. oParam.outds = "ds_datagrid=retestlist";
  254. oParam.async = false;
  255. oParam.callback = "cf_TRLNP00801";
  256. tranf_submit(oParam);
  257. var cnt = 0;
  258. var cnt2 = 0;
  259. ds_datagrid1.enableevent = false;
  260. for(var i = 0; i < ds_datagrid.rowcount; i++){
  261. if(ds_datagrid.getColumn(i, "rsltstat") != "5"){
  262. ds_datagrid1.addRow();
  263. ds_datagrid1.copyRow(cnt, ds_datagrid, i);
  264. cnt++;
  265. }else{
  266. ds_datagrid2.addRow();
  267. ds_datagrid2.copyRow(cnt2, ds_datagrid, i);
  268. cnt2++;
  269. }
  270. }
  271. ds_datagrid1.enableevent = true;
  272. ds_hidden.setColumn(0, "cnt", cnt + "건");
  273. ds_hidden.setColumn(0, "cnt2", cnt2 + "건");
  274. ds_rslt_count.setColumn(0, "cnt", cnt);
  275. ds_rslt_count.setColumn(0, "cnt2", cnt2);
  276. }
  277. function cf_TRLNP00801(sSvcId, nErrorCode, sErrorMsg) {
  278. if(nErrorCode < 0) return;
  279. }
  280. function button2_onclick(obj:Button, e:ClickEventInfo)
  281. {
  282. var rowcnt = ds_datagrid1.rowcount;
  283. if(utlf_isNull(rowcnt)){
  284. sysf_messageBox("엑셀로 다운로드 할 데이터가", "I004");
  285. }else{
  286. grdf_exportExcel(datagrid1, "재검리스트_" , "재검리스트");
  287. }
  288. }
  289. function button11_onclick(obj:Button, e:ClickEventInfo)
  290. {
  291. var r1Cnt = ds_rslt_count.getColumn(0, "cnt");
  292. var r2Cnt = ds_rslt_count.getColumn(0, "cnt2");
  293. if(r2Cnt > 0){
  294. dsf_copyDs(ds_hidden, ds_datagrid2);
  295. }else{
  296. dsf_copyDs(ds_hidden, ds_datagrid1);
  297. }
  298. ds_hidden.addColumn("date", "string");
  299. ds_hidden.addColumn("cnt", "string");
  300. ds_hidden.addColumn("cnt2", "string");
  301. ds_hidden.addRow();
  302. ds_hidden.setColumn(0, "date", ds_send.getColumn(0, "todd"));
  303. ds_hidden.setColumn(0, "cnt", ds_rslt_count.getColumn(0, "cnt")+" 건");
  304. ds_hidden.setColumn(0, "cnt2", ds_rslt_count.getColumn(0, "cnt2")+" 건");
  305. var objDOM = rptf_createDOM(); // DOM 객체 설정
  306. rptf_setNodeListToDOM(objDOM, "root/hidden", ds_hidden); // 데이터셋 1
  307. var objParam = new Object();
  308. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상위노드 XML 스트링 추출
  309. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  310. rptf_exeReportPreview30(["RPLNP00800"],[objParam], option);
  311. }
  312. ]]></Script>
  313. </Form>
  314. </FDL>