SMAHS03600_월별건진내시경현황.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS03600" position="absolute 0 0 1196 745" titletext="월별건진내시경현황" oninit="SMAHS03600_oninit" onload="SMAHS03600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 65" id="group2" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 1124 5 1130 37" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  11. <Button position="absolute 1134 10 1190 32" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
  12. <Button position="absolute 1041 10 1121 32" id="btn_excelsave" class="btn7" visible="true" text="엑셀저장" anchor="top right" onclick="group2_btn_excelsave_onclick"/>
  13. <Button position="absolute 970 10 1026 32" id="btn_prt" class="btn6" text="출력" anchor="top right" onclick="group2_btn_prt_onclick"/>
  14. <Shape position="absolute 1030 5 1036 37" linetype="vertical" id="line3" class="line_4" visible="false" anchor="top right"/>
  15. <Static text="기준월 :" position="absolute 10 11 83 28" id="caption3" class="search_name" anchor="default"/>
  16. <Calendar position="absolute 90 10 200 29" id="ipt_srchfromdd" class="input_search" mask="yyyy-mm" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" style="align:center middle;" onkeyup="group2_ipt_srchfromdd_onkeyup" onchanged="group2_ipt_srchfromdd_onchanged"/>
  17. <Static text="조회기준 :" position="absolute 240 13 335 30" id="caption1" class="search_name" anchor="default"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Tab position="absolute 0 72 1195 744" id="swt_endo" anchor="all">
  22. <Tabpages>
  23. <Tabpage text="판독의별" id="case_cnfmmanlst">
  24. <Layouts>
  25. <Layout>
  26. <Grid position="absolute 0 0 1195 645" id="grd_cnfmmanlst" binddataset="ds_main_cnfmmanlst_item" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="26" band="left"/>
  31. <Column size="100"/>
  32. <Column size="68"/>
  33. <Column size="120"/>
  34. <Column size="120"/>
  35. <Column size="120"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="24" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell/>
  43. <Cell col="1" text="판독의"/>
  44. <Cell col="2" text="날짜"/>
  45. <Cell col="3" text="상부내시경"/>
  46. <Cell col="4" text="수면내시경"/>
  47. <Cell col="5" text="대장내시경"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head" expr="currow+1"/>
  51. <Cell col="1" displaytype="text" style="align:center middle;background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:cnfmmanid" suppress="1" suppressalign="middle,over"/>
  52. <Cell col="2" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:prcpdd"/>
  53. <Cell col="3" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:endo"/>
  54. <Cell col="4" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:sendo" calendardisplaynulltype="nulltext"/>
  55. <Cell col="5" style="background:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');background2:EXPR(getRowLevel(currow) == 1 ? '#7CBBDD' : '');color:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');color2:EXPR(getRowLevel(currow) == 1 ? '#ffffff' : '');font:EXPR(getRowLevel(currow) == 1 ? 'arial,9,bold' : '');" text="bind:colon"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. </Layout>
  61. </Layouts>
  62. </Tabpage>
  63. <Tabpage text="환자명단" id="case_endodetllst">
  64. <Layouts>
  65. <Layout>
  66. <Grid position="absolute 0 0 1195 645" id="grd_endodetllst" binddataset="ds_main_endodetllst_item" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  67. <Formats>
  68. <Format id="default">
  69. <Columns>
  70. <Column size="27" band="left"/>
  71. <Column size="135"/>
  72. <Column size="106"/>
  73. <Column size="100"/>
  74. <Column size="110"/>
  75. <Column size="135"/>
  76. <Column size="100"/>
  77. </Columns>
  78. <Rows>
  79. <Row size="24" band="head"/>
  80. <Row size="24"/>
  81. </Rows>
  82. <Band id="head">
  83. <Cell/>
  84. <Cell col="1" text="처방일자"/>
  85. <Cell col="2" text="차트번호"/>
  86. <Cell col="3" text="성명"/>
  87. <Cell col="4" text="처방명"/>
  88. <Cell col="5" text="실시일자"/>
  89. <Cell col="6" text="판독의"/>
  90. </Band>
  91. <Band id="body">
  92. <Cell celltype="head" expr="currow+1"/>
  93. <Cell col="1" displaytype="date" text="bind:prcpdd" calendardisplaynulltype="nulltext"/>
  94. <Cell col="2" text="bind:pid"/>
  95. <Cell col="3" text="bind:hngnm"/>
  96. <Cell col="4" text="bind:calcscorcd"/>
  97. <Cell col="5" displaytype="date" text="bind:excuexectodd" calendardisplaynulltype="nulltext"/>
  98. <Cell col="6" text="bind:cnfmman"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. </Layout>
  104. </Layouts>
  105. </Tabpage>
  106. </Tabpages>
  107. </Tab>
  108. <Radio position="absolute 340 35 490 55" id="rdo_search" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
  109. <Dataset id="innerdataset">
  110. <ColumnInfo>
  111. <Column id="codecolumn"/>
  112. <Column id="datacolumn"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row>
  116. <Col id="codecolumn">1</Col>
  117. <Col id="datacolumn">처방일자</Col>
  118. </Row>
  119. <Row>
  120. <Col id="codecolumn">2</Col>
  121. <Col id="datacolumn">실시일자</Col>
  122. </Row>
  123. </Rows>
  124. </Dataset>
  125. </Radio>
  126. <Static id="caption60" text="월별 건진내시경 현황" class="tit_1" position="absolute 0 0 183 25"/>
  127. </Layout>
  128. </Layouts>
  129. <Objects>
  130. <Dataset id="ds_init_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="fromdd" type="STRING" size="256"/>
  133. <Column id="srchdate" type="STRING" size="256"/>
  134. </ColumnInfo>
  135. <Rows>
  136. <Row>
  137. <Col id="fromdd"/>
  138. <Col id="srchdate">1</Col>
  139. </Row>
  140. </Rows>
  141. </Dataset>
  142. <Dataset id="ds_main_endodetllst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  145. <Column id="pid" type="STRING" size="256" sumtext="차트번호"/>
  146. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  147. <Column id="calcscorcd" type="STRING" size="256" sumtext="처방명"/>
  148. <Column id="excuexectodd" type="STRING" size="256" sumtext="실시일자"/>
  149. <Column id="cnfmman" type="STRING" size="256" sumtext="판독의"/>
  150. </ColumnInfo>
  151. </Dataset>
  152. <Dataset id="ds_main_cnfmmanlst_item" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  153. <ColumnInfo>
  154. <Column id="cnfmmanid" type="STRING" size="256" sumtext="소계" prop="TEXT"/>
  155. <Column id="prcpdd" type="STRING" size="256" sumtext="일자"/>
  156. <Column id="endo" type="BIGDECIMAL" size="256" sumtext="이수옥일반" prop="SUM"/>
  157. <Column id="sendo" type="BIGDECIMAL" size="256" sumtext="이수옥수면" prop="SUM"/>
  158. <Column id="colon" type="BIGDECIMAL" size="256" sumtext="이수옥대장" prop="SUM"/>
  159. </ColumnInfo>
  160. </Dataset>
  161. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="srchfromdd" type="STRING" size="256"/>
  164. <Column id="srchtodd" type="STRING" size="256"/>
  165. <Column id="srchdate" type="STRING" size="256"/>
  166. </ColumnInfo>
  167. <Rows>
  168. <Row>
  169. <Col id="srchfromdd"/>
  170. <Col id="srchtodd"/>
  171. <Col id="srchdate"/>
  172. </Row>
  173. </Rows>
  174. </Dataset>
  175. <Dataset id="ds_print_cnfmmanlst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="cnfmmanid" type="STRING" size="256" prop="NONE"/>
  178. <Column id="prcpdd" type="STRING" size="256" sumtext="일자"/>
  179. <Column id="endo" type="BIGDECIMAL" size="256" sumtext="이수옥일반" prop="SUM"/>
  180. <Column id="sendo" type="BIGDECIMAL" size="256" sumtext="이수옥수면" prop="SUM"/>
  181. <Column id="colon" type="BIGDECIMAL" size="256" sumtext="이수옥대장" prop="SUM"/>
  182. </ColumnInfo>
  183. </Dataset>
  184. </Objects>
  185. <Bind>
  186. <BindItem id="item0" compid="group2.ipt_srchfromdd" propid="value" datasetid="ds_init_srch" columnid="fromdd"/>
  187. <BindItem id="item1" compid="rdo_search" propid="value" datasetid="ds_init_srch" columnid="srchdate"/>
  188. </Bind>
  189. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  190. * System Name :
  191. * Job Name :
  192. * Creator :
  193. * Make Date : 2015-11-13
  194. * Description :
  195. *---------------------------------------------------------------------------------------
  196. * Modify Date Modifier Modify Description
  197. *---------------------------------------------------------------------------------------
  198. * 2015-11-13 Live Converter TF->XP
  199. *
  200. *---------------------------------------------------------------------------------------
  201. ****************************************************************************************/
  202. include "com_commonxp::comm_main.xjs";
  203. function SMAHS03600_oninit(obj:Form, e:InitEventInfo)
  204. {
  205. frmf_initForm(obj);
  206. }
  207. function SMAHS03600_onload(obj:Form, e:LoadEventInfo)
  208. {
  209. grdf_initGrid(swt_endo.case_cnfmmanlst.grd_cnfmmanlst);
  210. grdf_initGrid(swt_endo.case_endodetllst.grd_endodetllst);
  211. fInit();
  212. }
  213. function fInit()
  214. {
  215. var curDt = String(utlf_getCurrentDate()).substr(0,6);
  216. group2.ipt_srchfromdd.value = curDt;
  217. rdo_search.enable = true;
  218. }
  219. function group2_ipt_srchfromdd_onkeyup(obj:Calendar, e:KeyEventInfo)
  220. {
  221. if(e.keycode == 13)
  222. {
  223. obj.updateToDataset();
  224. group2.btn_search.click();
  225. }
  226. }
  227. function group2_ipt_srchfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  228. {
  229. ds_init_srch.setColumn(0, "fromdd", String(obj.value).substr(0,6));
  230. }
  231. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  232. {
  233. var idx = swt_endo.tabindex;
  234. var ret = false;
  235. var initdd = ds_init_srch.getColumn(0, "fromdd");
  236. //trace("initdd = " + initdd.substr(0,6));
  237. var fromdd = initdd.substr(0,6) + "01";
  238. var todd = initdd.substr(0,6) + "31";
  239. ds_send.setColumn(0, "srchfromdd", fromdd);
  240. ds_send.setColumn(0, "srchtodd", todd);
  241. ds_send.setColumn(0, "srchdate", ds_init_srch.getColumn(0, "srchdate"));
  242. if(idx == 0)
  243. {
  244. var oParam = {};
  245. oParam.id = "TRAHS03601";
  246. oParam.service = "healexamstatapp.StatRef";
  247. oParam.method = "reqGetHealEndoCntList";
  248. oParam.inds = "req=ds_send";
  249. oParam.outds = "ds_main_cnfmmanlst_item=item";
  250. oParam.async = false;
  251. //oParam.callback = "cf_TRAHS03601";
  252. tranf_submit(oParam);
  253. ds_main_cnfmmanlst_item.keystring = "G:cnfmmanid";
  254. }
  255. else
  256. {
  257. var oParam = {};
  258. oParam.id = "TRAHS03602";
  259. oParam.service = "healexamstatapp.StatRef";
  260. oParam.method = "reqGetHealEndoPatList";
  261. oParam.inds = "req=ds_send";
  262. oParam.outds = "ds_main_endodetllst_item=item";
  263. oParam.async = false;
  264. //oParam.callback = "cf_TRAHS03602";
  265. tranf_submit(oParam);
  266. }
  267. }
  268. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  269. {
  270. var idx = swt_endo.tabindex;
  271. if(idx == 0)
  272. {
  273. grdf_exportExcel(swt_endo.case_cnfmmanlst.grd_cnfmmanlst, "excel", "Sheet1", "true", "", "");
  274. }
  275. else if(idx == 1)
  276. {
  277. grdf_exportExcel(swt_endo.case_endodetllst.grd_endodetllst, "excel", "Sheet1", "true", "", "");
  278. }
  279. }
  280. function group2_btn_prt_onclick(obj:Button, e:ClickEventInfo)
  281. {
  282. var idx = swt_endo.tabindex;
  283. if(idx == 0)
  284. {
  285. for(var i = 0; i < ds_main_cnfmmanlst_item.rowcount; i++)
  286. {
  287. if(ds_main_cnfmmanlst_item.getColumn(i, "cnfmmanid") != "소계")
  288. {
  289. var addRow = ds_print_cnfmmanlst.addRow();
  290. ds_print_cnfmmanlst.copyRow(addRow, ds_main_cnfmmanlst_item, i)
  291. }
  292. }
  293. var objDOM = rptf_createDOM();
  294. rptf_setNodeListToDOM(objDOM, "/root/main/export", ds_init_srch);
  295. rptf_setNodeListToDOM(objDOM, "/root/main/cnfmmanlst/item", ds_print_cnfmmanlst);
  296. var objParam = new Object();
  297. objParam.xml_data_XML1 = objDOM.documentElement.source;
  298. var option = "";
  299. rptf_exeReportPreview30(["RPAHS03601"],[objParam], option);
  300. }
  301. else if(idx == 1)
  302. {
  303. var objDOM = rptf_createDOM();
  304. rptf_setNodeListToDOM(objDOM, "/root/main/export", ds_init_srch);
  305. rptf_setNodeListToDOM(objDOM, "/root/main/endodetllst/item", ds_main_endodetllst_item);
  306. var objParam = new Object();
  307. objParam.xml_data_XML1 = objDOM.documentElement.source;
  308. var option = "";
  309. rptf_exeReportPreview30(["RPAHS03602"],[objParam], option);
  310. }
  311. }
  312. ]]></Script>
  313. </Form>
  314. </FDL>