SPCHT00800_판정코드검색.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCHT00800" position="absolute 0 0 756 509" titletext="판정코드 검색" oninit="SPCHT00800_oninit" onload="SPCHT00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="분류코드" class="tit_2" position="absolute 0 51 78 72"/>
  8. <Shape id="line1" class="line_10" position="absolute 0 67 360 73"/>
  9. <Div id="grp_sea" taborder="1" class="div_SA2" position="absolute 0 0 750 40">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption2" text="대분류 :" class="search_name" position="absolute 16 12 102 29"/>
  13. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 659 8 665 30"/>
  14. <Combo id="cmb_clscd" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 105 11 255 30" onitemchanged="grp_sea_cmb_clscd_onitemchanged">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn"/>
  18. <Column id="datacolumn"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">F</Col>
  23. <Col id="datacolumn">1차건진</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">S</Col>
  27. <Col id="datacolumn">2차건진</Col>
  28. </Row>
  29. </Rows>
  30. </Dataset>
  31. </Combo>
  32. <Combo id="cmb_clscd2" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 105 11 255 30">
  33. <Dataset id="innerdataset">
  34. <ColumnInfo>
  35. <Column id="codecolumn"/>
  36. <Column id="datacolumn"/>
  37. </ColumnInfo>
  38. <Rows>
  39. <Row>
  40. <Col id="codecolumn">R</Col>
  41. <Col id="datacolumn">선택형결과</Col>
  42. </Row>
  43. </Rows>
  44. </Dataset>
  45. </Combo>
  46. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 678 8 734 30"/>
  47. </Layout>
  48. </Layouts>
  49. </Div>
  50. <Static id="caption3" text="상세코드" class="tit_2" position="absolute 366 51 444 72"/>
  51. <Shape id="line2" class="line_10" position="absolute 366 67 750 73"/>
  52. <Grid id="grd_etclst" taborder="2" binddataset="ds_main_etclst_item" useinputpanel="false" position="absolute 0 72 360 472" autoenter="select" cellsizingtype="col" oncelldblclick="grd_etclst_oncelldblclick">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="25"/>
  57. <Column size="0"/>
  58. <Column size="100"/>
  59. <Column size="214"/>
  60. </Columns>
  61. <Rows>
  62. <Row size="24" band="head"/>
  63. <Row size="24"/>
  64. </Rows>
  65. <Band id="head">
  66. <Cell/>
  67. <Cell col="1" text="caption1"/>
  68. <Cell col="2" text="코드"/>
  69. <Cell col="3" text="분류코드명"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head" expr="currow+1"/>
  73. <Cell col="1" text="bind:etccdkey"/>
  74. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:etccd"/>
  75. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:etcdetlnm"/>
  76. </Band>
  77. </Format>
  78. </Formats>
  79. </Grid>
  80. <Grid id="grd_detlcodelst" taborder="3" binddataset="ds_main_detlcodelst_item" useinputpanel="false" position="absolute 366 72 750 472" autoenter="select" cellsizingtype="col" oncelldblclick="grd_detlcodelst_oncelldblclick">
  81. <Formats>
  82. <Format id="default">
  83. <Columns>
  84. <Column size="28"/>
  85. <Column size="100"/>
  86. <Column size="240"/>
  87. </Columns>
  88. <Rows>
  89. <Row size="24" band="head"/>
  90. <Row size="24"/>
  91. </Rows>
  92. <Band id="head">
  93. <Cell/>
  94. <Cell col="1" text="코드"/>
  95. <Cell col="2" text="상세코드명"/>
  96. </Band>
  97. <Band id="body">
  98. <Cell celltype="head" expr="currow+1"/>
  99. <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:etcdetlcd"/>
  100. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:etcdetlnm"/>
  101. </Band>
  102. </Format>
  103. </Formats>
  104. </Grid>
  105. <Button id="btn_cancel" taborder="4" text="취소" class="btn4" position="absolute 694 481 750 503"/>
  106. <Button id="btn_conform" taborder="5" text="확인" class="btn4" position="absolute 635 481 691 503"/>
  107. </Layout>
  108. </Layouts>
  109. <Objects>
  110. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="clscd" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row/>
  116. </Rows>
  117. </Dataset>
  118. <Dataset id="ds_main_etclst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  119. <ColumnInfo>
  120. <Column id="etccdkey" type="STRING" size="256" sumtext="코드"/>
  121. <Column id="etccd" type="STRING" size="256" sumtext="코드"/>
  122. <Column id="etcdetlnm" type="STRING" size="256" sumtext="분류코드명"/>
  123. </ColumnInfo>
  124. </Dataset>
  125. <Dataset id="ds_main_detlcodelst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  126. <ColumnInfo>
  127. <Column id="etcdetlcd" type="STRING" size="256" sumtext="상세코드"/>
  128. <Column id="etcdetlnm" type="STRING" size="256" sumtext="상세코드명"/>
  129. </ColumnInfo>
  130. </Dataset>
  131. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <Column id="clscd" type="STRING" size="256"/>
  134. <Column id="etccd" type="STRING" size="256"/>
  135. </ColumnInfo>
  136. <Rows>
  137. <Row>
  138. <Col id="clscd"/>
  139. <Col id="etccd"/>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. </Objects>
  144. <Bind>
  145. <BindItem id="item0" compid="grp_sea.cmb_clscd2" propid="value" datasetid="ds_send" columnid="clscd"/>
  146. <BindItem id="item1" compid="grp_sea.cmb_clscd" propid="value" datasetid="ds_send" columnid="clscd"/>
  147. </Bind>
  148. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  149. * System Name :
  150. * Job Name :
  151. * Creator :
  152. * Make Date : 2016-05-24
  153. * Description :
  154. *---------------------------------------------------------------------------------------
  155. * Modify Date Modifier Modify Description
  156. *---------------------------------------------------------------------------------------
  157. * 2016-05-24 Live Converter TF->XP
  158. *
  159. *---------------------------------------------------------------------------------------
  160. ****************************************************************************************/
  161. include "com_commonxp::comm_main.xjs";
  162. function SPCHT00800_oninit(obj:Form, e:InitEventInfo)
  163. {
  164. frmf_initForm(obj);
  165. }
  166. function SPCHT00800_onload(obj:Form, e:LoadEventInfo)
  167. {
  168. grdf_initGrid(grd_detlcodelst);
  169. grdf_initGrid(grd_etclst);
  170. var rsltflag = opener.frmf_getParameter("rsltflag");
  171. if( rsltflag == "O")
  172. {
  173. grp_sea.cmb_clscd.visible = false;
  174. grp_sea.cmb_clscd2.enable = false;
  175. ds_send.setColumn(0, "clscd", "R");//선택형
  176. fGetEtcList();
  177. }
  178. else
  179. {
  180. grp_sea.cmb_clscd.visible = true;
  181. grp_sea.cmb_clscd2.visible = false;
  182. }
  183. }
  184. function grp_sea_cmb_clscd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  185. {
  186. fGetEtcList();
  187. }
  188. function fGetEtcList()
  189. {
  190. ds_main_etclst_item.clearData();
  191. ds_main_detlcodelst_item.clearData();
  192. var oParam = {};
  193. oParam.id = "TRCHT00801";
  194. oParam.service = "healexammngtapp.HealExamTrgt";
  195. oParam.method = "reqGetHealExamJudgCodeList";
  196. oParam.inds = "req=ds_send";
  197. oParam.outds = "ds_main_etclst_item=item";
  198. oParam.async = false;
  199. //oParam.callback = "cf_TRCHT00801";
  200. tranf_submit(oParam);
  201. }
  202. function grd_etclst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  203. {
  204. fGetDetlCodeList();
  205. }
  206. function fGetDetlCodeList()
  207. {
  208. var idx = ds_main_etclst_item.rowposition;
  209. if( idx < 0) return ;
  210. ds_main_detlcodelst_item.clearData();
  211. ds_send_req.setColumn(0, "clscd", ds_send.getColumn(0, "clscd"));
  212. ds_send_req.setColumn(0, "etccd", ds_main_etclst_item.getColumn(idx, "etccd"));
  213. var oParam = {};
  214. oParam.id = "TRCHT00802";
  215. oParam.service = "healexammngtapp.HealExamTrgt";
  216. oParam.method = "reqGetHealExamJudgDetCodeList";
  217. oParam.inds = "req=ds_send_req";
  218. oParam.outds = "ds_main_detlcodelst_item=item";
  219. oParam.async = false;
  220. //oParam.callback = "cf_TRCHT00802";
  221. tranf_submit(oParam);
  222. }
  223. function grd_detlcodelst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  224. {
  225. fGetOpenerSend();
  226. }
  227. function fGetOpenerSend()
  228. {
  229. var grid = ds_main_detlcodelst_item;
  230. var rsltflag = opener.frmf_getParameter("rsltflag");
  231. if (ds_main_detlcodelst_item.rowposition >= 0)
  232. {
  233. var clscd = ds_send_req.getColumn(0, "clscd");
  234. var etccd = ds_send_req.getColumn(0, "etccd");
  235. var etcdetlcd = grid.getColumn(grid.rowposition, "etcdetlcd");
  236. var etcdetlnm = grid.getColumn(grid.rowposition, "etcdetlnm");
  237. var joincd = clscd + etccd + etcdetlcd;
  238. var objArg = new Object();
  239. if(rsltflag == "joincode")
  240. {
  241. objArg.joincd = joincd;
  242. objArg.etcdetlnm = etcdetlnm;
  243. }
  244. else if(rsltflag == "O")
  245. {//선택형
  246. objArg.etcdetlnm = etcdetlnm;
  247. }
  248. else if(rsltflag == "4code")
  249. {//4code
  250. objArg.clscd = clscd;
  251. objArg.etccd = etccd;
  252. objArg.etcdetlcd = etcdetlcd;
  253. objArg.etcdetlnm = etcdetlnm;
  254. }
  255. this.close(objArg);
  256. }
  257. else
  258. {
  259. sysf_messageBox("조회하신 후 목록을 ","C002");
  260. }
  261. }
  262. ]]></Script>
  263. </Form>
  264. </FDL>