SMAHS03700_업체별건진결과.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHS03700" position="absolute 0 0 1196 765" titletext="업체별건진결과" onload="SMAHS03700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 65" id="grp_srch" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="기간 :" position="absolute 15 12 88 29" id="caption2" class="search_name" anchor="default"/>
  11. <Shape position="absolute 1106 9 1112 31" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  12. <Button position="absolute 1124 9 1180 31" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_srch_btn_search_onclick"/>
  13. <Calendar position="absolute 82 11 195 30" id="ipt_fromdd" class="input_essential" taborder="7" anchor="default" autoselect="true" autoskip="true" onchanged="grp_srch_ipt_fromdd_onchanged"/>
  14. <Calendar id="ipt_todd" taborder="8" autoselect="true" autoskip="true" class="input_essential" position="absolute 210 11 323 30"/>
  15. <Static id="Static00" text="~" position="absolute 197 13 208 30"/>
  16. <Combo id="cmb_cmpycd" taborder="9" position="absolute 425 11 637 31" index="-1" class="combo_essential" innerdataset="ds_init_cmpylist" codecolumn="cdid" datacolumn="cdnm" onitemchanged="grp_srch_cmb_cmpycd_onitemchanged"/>
  17. <Static id="caption00" text="업체 :" class="search_name" position="absolute 359 12 424 29"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static id="caption60" text="업체별 건진결과" class="tit_1" position="absolute 0 0 140 25"/>
  22. <Button id="btn_excel" taborder="1" text="엑셀저장" position="absolute 1119 67 1195 89" class="btn7" onclick="btn_excel_onclick"/>
  23. <Shape id="line1" class="line_10" position="absolute 0 89 1195 95"/>
  24. <Grid id="grd_main" taborder="2" useinputpanel="false" position="absolute 0 94 1195 764" cellsizingtype="col" selecttype="multirow" scrollpixel="all" binddataset="ds_main_item" cellsizebandtype="allband">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25" band="left"/>
  29. <Column size="100" band="left"/>
  30. <Column size="50" band="left"/>
  31. <Column size="60" band="left"/>
  32. <Column size="100" band="left"/>
  33. <Column size="80" band="left"/>
  34. <Column size="300" band="left"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="30" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="검진기관"/>
  43. <Cell col="2" text="분류"/>
  44. <Cell col="3" text="이름"/>
  45. <Cell col="4" text="주민번호"/>
  46. <Cell col="5" text="검진일자"/>
  47. <Cell col="6" text="종합판정"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head" text="expr:currow+1"/>
  51. <Cell col="1" text="bind:hosp" wordwrap="char" suppress="1" suppressalign="middle,over"/>
  52. <Cell col="2" text="bind:gubun" wordwrap="char" suppress="2" suppressalign="middle,over"/>
  53. <Cell col="3" text="bind:name"/>
  54. <Cell col="4" text="bind:rgstno" mask="######-#######"/>
  55. <Cell col="5" text="bind:examdd" mask="####-##-##"/>
  56. <Cell col="6" displaytype="text" style="align:left top;padding:4 2 1 2;" text="bind:judg" wordwrap="char" autosizerow="limitmin"/>
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. </Layout>
  62. </Layouts>
  63. <Objects>
  64. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  65. <ColumnInfo>
  66. <Column id="fromdd" type="STRING" size="256"/>
  67. <Column id="todd" type="STRING" size="256"/>
  68. <Column id="cmpycd" type="STRING" size="256"/>
  69. <Column id="clscd" type="STRING" size="256"/>
  70. <Column id="etccd" type="STRING" size="256"/>
  71. </ColumnInfo>
  72. <Rows>
  73. <Row>
  74. <Col id="fromdd"/>
  75. <Col id="todd"/>
  76. <Col id="cmpycd"/>
  77. <Col id="clscd">G</Col>
  78. <Col id="etccd">P99</Col>
  79. </Row>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_init_cmpylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="cdid" type="STRING" size="256"/>
  85. <Column id="cdnm" type="STRING" size="256"/>
  86. </ColumnInfo>
  87. </Dataset>
  88. <Dataset id="ds_temp_title" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  89. <Dataset id="ds_main_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="hosp" type="STRING" size="256"/>
  92. <Column id="gubun" type="STRING" size="256"/>
  93. <Column id="name" type="STRING" size="256"/>
  94. <Column id="rgstno" type="STRING" size="256"/>
  95. <Column id="examdd" type="STRING" size="256"/>
  96. <Column id="judg" type="STRING" size="256"/>
  97. </ColumnInfo>
  98. </Dataset>
  99. </Objects>
  100. <Bind>
  101. <BindItem id="item0" compid="grp_srch.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  102. <BindItem id="item1" compid="grp_srch.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  103. <BindItem id="item2" compid="grp_srch.cmb_cmpycd" propid="value" datasetid="ds_send" columnid="cmpycd"/>
  104. </Bind>
  105. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  106. * System Name :
  107. * Job Name :
  108. * Creator :
  109. * Make Date : 2017-12-04
  110. * Description :
  111. *---------------------------------------------------------------------------------------
  112. * Modify Date Modifier Modify Description
  113. *---------------------------------------------------------------------------------------
  114. * 2017-06-19 Live Converter TF->XP
  115. *
  116. *---------------------------------------------------------------------------------------
  117. ****************************************************************************************/
  118. //=======================================================================================
  119. // Lib Include
  120. //---------------------------------------------------------------------------------------
  121. include "com_commonxp::comm_main.xjs";
  122. //=======================================================================================
  123. // Global Form Variable
  124. //---------------------------------------------------------------------------------------
  125. var arErrorCode = new HashArray();
  126. //=======================================================================================
  127. // Function
  128. //---------------------------------------------------------------------------------------
  129. /*-**************************************************************************************
  130. * Argument : N/A
  131. * Description : 업체리스트 조회
  132. ****************************************************************************************/
  133. function fn_getCmpyList() {
  134. ds_init_cmpylist.clearData();
  135. var oParam = {};
  136. oParam.id = "TRAHS03701";
  137. oParam.service = "healexamstatapp.StatRef";
  138. oParam.method = "reqGetCmpyCodeList";
  139. oParam.inds = "req=ds_send";
  140. oParam.outds = "ds_init_cmpylist=item";
  141. oParam.async = false;
  142. //oParam.callback = "cf_TRAHS03701";
  143. tranf_submit(oParam);
  144. }
  145. //=======================================================================================
  146. // Event
  147. //---------------------------------------------------------------------------------------
  148. /****************************************************************************************
  149. * Components : Form
  150. * Description : 화면 처음 초기화시 폼초기화
  151. ****************************************************************************************/
  152. function SMAHS03700_onload(obj:Form, e:LoadEventInfo)
  153. {
  154. frmf_initForm(obj);
  155. ds_send.setColumn(0, "fromdd" , String(utlf_getCurrentDate()).substr(0,8));
  156. ds_send.setColumn(0, "todd" , String(utlf_getCurrentDate()).substr(0,8));
  157. fn_getCmpyList();
  158. }
  159. /****************************************************************************************
  160. * Components : Button
  161. * Description : 조회
  162. ****************************************************************************************/
  163. function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
  164. {
  165. if(utlf_isNull(ds_send.getColumn(0, "cmpycd"))) {
  166. sysf_messageBox("업체는", "I003");
  167. grp_srch.cmb_cmpycd.setFocus();
  168. return;
  169. }
  170. ds_main_item.clearData();
  171. var oParam = {};
  172. oParam.id = "TRAHS03703";
  173. oParam.service = "healexamstatapp.StatRef";
  174. oParam.method = "reqGetStatExamcureResult";
  175. oParam.inds = "req=ds_send";
  176. oParam.outds = "ds_main_item=item";
  177. oParam.async = false;
  178. //oParam.callback = "cf_TRAHS03703";
  179. tranf_submit(oParam);
  180. }
  181. /****************************************************************************************
  182. * Components : Combo
  183. * Description : 업체 선택하여 그리드 헤더 조회
  184. ****************************************************************************************/
  185. function grp_srch_cmb_cmpycd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  186. {
  187. for(var i = grd_main.getCellCount("head") - 7; i >= 0 ; i--) {
  188. grd_main.deleteContentsCol(i);
  189. }
  190. ds_temp_title.clearData();
  191. ds_main_item.clearData();
  192. var oParam = {};
  193. oParam.id = "TRAHS03702";
  194. oParam.service = "healexamstatapp.StatRef";
  195. oParam.method = "reqGetStatHeader";
  196. oParam.inds = "req=ds_send";
  197. oParam.outds = "ds_temp_title=item";
  198. oParam.async = false;
  199. //oParam.callback = "cf_TRAHS03702";
  200. tranf_submit(oParam);
  201. var row = 0;
  202. var cnt = ds_temp_title.rowcount;
  203. var colidx = 0;
  204. if(ds_temp_title.rowcount > 0) {
  205. for(var i = 7 ; i < 7 + cnt ; i++) {
  206. var col = grd_main.appendContentsCol();
  207. var code = ds_temp_title.getColumn(row, "code");
  208. var title = ds_temp_title.getColumn(row, "title");
  209. grd_main.setCellProperty("head", col, "text", title);
  210. grd_main.setCellProperty("body", col, "text", "bind:col"+colidx);
  211. grd_main.setCellProperty("body", col, "displaytype", "text");
  212. grd_main.setCellProperty("body", col, "align", "left top");
  213. grd_main.setCellProperty("body", col, "padding", "4 2 1 2");
  214. colidx++;
  215. grd_main.setFormatColProperty(col, "size", title.length * 18);
  216. row++;
  217. }
  218. grdf_setToolTipBind(grd_main);
  219. }
  220. if(ds_init_cmpylist.getColumn(e.postindex, "pointyn") == "Y") {
  221. var ccol = grd_main.appendContentsCol();
  222. grd_main.setCellProperty("head", ccol, "text", "우울증평가");
  223. grd_main.setCellProperty("body", ccol, "text", "bind:point");
  224. grd_main.setFormatColProperty(ccol, "size", 70);
  225. // grd_main.setCellProperty("body", ccol, "displaytype", "text");
  226. // grd_main.setCellProperty("body", ccol, "align", "left top");
  227. // grd_main.setCellProperty("body", ccol, "padding", "4 2 1 2");
  228. }
  229. }
  230. /****************************************************************************************
  231. * Components : Button
  232. * Description : 엑셀저장
  233. ****************************************************************************************/
  234. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  235. {
  236. if( ds_main_item.rowcount > 0 ){
  237. var title = grp_srch.cmb_cmpycd.text + " 검진결과("+ds_send.getColumn(0, "fromdd")+"_"+ds_send.getColumn(0, "todd")+")";
  238. grdf_exportExcel(grd_main, title, "Sheet1", false, "", "user", false);
  239. } else {
  240. sysf_messageBox("조회된 데이터가 ", "I004");
  241. }
  242. }
  243. /**
  244. * 시작일자 클릭시 종료일자 자동 세팅
  245. */
  246. function grp_srch_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  247. {
  248. // ds_send.setColumn(0, "todd", utlf_getLastDate(utlf_addMonth(ds_send.getColumn(0, "fromdd"), 1)));
  249. }
  250. ]]></Script>
  251. </Form>
  252. </FDL>