SPAHR00400_소견선택.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAHR00400" position="absolute 0 0 518 489" titletext="결과예문선택" onload="SPAHR00400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 517 460" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 517 40" align="align:center top;" id="group2" class="div_SA2" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Edit position="absolute 230 10 420 29" id="ipt_rsltexmpnm" class="input_search" anchor="default" onkeyup="group3_group2_ipt_rsltexmpnm_onkeyup"/>
  14. <Edit position="absolute 67 10 157 29" id="ipt_rsltexmpcd" class="input_search" anchor="default" onkeyup="group3_group2_ipt_rsltexmpcd_onkeyup"/>
  15. <Shape position="absolute 430 9 436 31" linetype="vertical" id="line13" anchor="default"/>
  16. <Static text="내용 :" position="absolute 170 11 235 28" id="caption1" class="search_name" anchor="default"/>
  17. <Static text="코드 :" position="absolute 8 11 72 28" id="caption2" class="search_name" anchor="default"/>
  18. <Button position="absolute 447 9 503 31" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_search_onclick"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Shape position="absolute 0 40 517 46" id="line1" class="line_10" anchor="default"/>
  23. <Grid position="absolute 0 45 517 460" id="grd_exmplst" binddataset="ds_main_rsltexmpcdlst_item" anchor="default">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="25" band="left"/>
  28. <Column size="0"/>
  29. <Column size="56"/>
  30. <Column size="382"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell/>
  38. <Cell col="1" text="V"/>
  39. <Cell col="2" text="예문코드"/>
  40. <Cell col="3" text="결과예문내용"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell celltype="head" text="expr:currow+1"/>
  44. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel"/>
  45. <Cell col="2" text="bind:rsltexmpcd"/>
  46. <Cell col="3" text="bind:rsltexmpcnts"/>
  47. </Band>
  48. </Format>
  49. </Formats>
  50. </Grid>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Div position="absolute 0 458 517 485" id="grp_btn" scrollbars="autoboth">
  55. <Layouts>
  56. <Layout>
  57. <Button position="absolute 402 5 458 27" id="btn_confirm" class="btn4" text="확인" anchor="default" onclick="grp_btn_btn_confirm_onclick"/>
  58. <Button position="absolute 461 5 517 27" id="btn_cancel" class="btn4" text="취소" anchor="default"/>
  59. </Layout>
  60. </Layouts>
  61. </Div>
  62. </Layout>
  63. </Layouts>
  64. <Objects>
  65. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  66. <ColumnInfo>
  67. <Column id="hidden" type="STRING" size="256"/>
  68. </ColumnInfo>
  69. <Rows>
  70. <Row>
  71. <Col id="hidden"/>
  72. </Row>
  73. </Rows>
  74. </Dataset>
  75. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  76. <ColumnInfo>
  77. <Column id="srchrsltexmpcd" type="STRING" size="256"/>
  78. <Column id="srchrsltexmpcnts" type="STRING" size="256"/>
  79. <Column id="srchinstcd" type="STRING" size="256"/>
  80. <Column id="srchhealexamflag" type="STRING" size="256"/>
  81. </ColumnInfo>
  82. <Rows>
  83. <Row>
  84. <Col id="srchrsltexmpcd"/>
  85. <Col id="srchrsltexmpcnts"/>
  86. <Col id="srchinstcd"/>
  87. <Col id="srchhealexamflag"/>
  88. </Row>
  89. </Rows>
  90. </Dataset>
  91. <Dataset id="ds_main_rsltexmpcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  92. <ColumnInfo>
  93. <Column id="sel" type="STRING" size="256"/>
  94. <Column id="rsltexmpcd" type="STRING" size="256"/>
  95. <Column id="rsltexmpcnts" type="STRING" size="256"/>
  96. </ColumnInfo>
  97. <Rows>
  98. <Row>
  99. <Col id="sel"/>
  100. <Col id="rsltexmpcd"/>
  101. <Col id="rsltexmpcnts"/>
  102. </Row>
  103. </Rows>
  104. </Dataset>
  105. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  106. <ColumnInfo>
  107. <Column id="temp" type="STRING" size="256"/>
  108. </ColumnInfo>
  109. </Dataset>
  110. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  111. <ColumnInfo>
  112. <Column id="init" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row>
  116. <Col id="init"/>
  117. </Row>
  118. </Rows>
  119. </Dataset>
  120. </Objects>
  121. <Bind>
  122. <BindItem id="item0" compid="group3.group2.ipt_rsltexmpnm" propid="value" datasetid="ds_send" columnid="srchrsltexmpcnts"/>
  123. <BindItem id="item1" compid="group3.group2.ipt_rsltexmpcd" propid="value" datasetid="ds_send" columnid="srchrsltexmpcd"/>
  124. </Bind>
  125. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  126. * System Name :
  127. * Job Name :
  128. * Creator :
  129. * Make Date : 2017-12-04
  130. * Description :
  131. *---------------------------------------------------------------------------------------
  132. * Modify Date Modifier Modify Description
  133. *---------------------------------------------------------------------------------------
  134. * 2017-06-19 Live Converter TF->XP
  135. *
  136. *---------------------------------------------------------------------------------------
  137. ****************************************************************************************/
  138. //=======================================================================================
  139. // Lib Include
  140. //---------------------------------------------------------------------------------------
  141. include "com_commonxp::comm_main.xjs";
  142. include "ast_healexamxp::AHA001.xjs";
  143. //=======================================================================================
  144. // Global Form Variable
  145. //---------------------------------------------------------------------------------------
  146. var arErrorCode = new HashArray();
  147. /**
  148. * SPAHR00400_PARAM1: 다중선택여부(Y_N)
  149. * SPAHR00400_PARAM2: 목적노드Set
  150. * SPAHR00400_PARAM3: 코드 목적노드
  151. * SPAHR00400_PARAM4: 내용 목적노드
  152. * SPAHR00400_PARAM5: 검색코드
  153. * SPAHR00400_PARAM6: 검색내용
  154. * SPAHR00400_PARAM7: 건진구분
  155. */
  156. //=======================================================================================
  157. // Function
  158. //---------------------------------------------------------------------------------------
  159. /*-**************************************************************************************
  160. * Argument : N/A
  161. * Description : 초기화
  162. ****************************************************************************************/
  163. function fInit() {
  164. if( frmf_checkOpener() ){
  165. ds_send.setColumn( 0, "srchrsltexmpcd" ,opener.frmf_getParameter("SPAHR00400_PARAM5"));
  166. ds_send.setColumn( 0, "srchrsltexmpcnts" ,opener.frmf_getParameter("SPAHR00400_PARAM6"));
  167. ds_send.setColumn( 0, "srchhealexamflag" ,opener.frmf_getParameter("SPAHR00400_PARAM7"));
  168. if( utlf_isNull(ds_send.getColumn(0, "srchrsltexmpcd")) && utlf_isNull(ds_send.getColumn(0, "srchrsltexmpcnts")) ) {
  169. return ;
  170. }
  171. }
  172. fGetRsltExmpList();
  173. }
  174. /*-**************************************************************************************
  175. * Argument : N/A
  176. * Description : 결과예문(소견) 조회
  177. ****************************************************************************************/
  178. function fGetRsltExmpList(){
  179. ds_main_rsltexmpcdlst_item.clearData();
  180. ds_send.setColumn( 0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
  181. var oParam = {};
  182. oParam.id = "TRAHB00701";
  183. oParam.service = "healexambaseapp.RexmCode";
  184. oParam.method = "reqGetRexmCdList";
  185. oParam.inds = "req=ds_send";
  186. oParam.outds = "ds_main_rsltexmpcdlst_item=item";
  187. oParam.async = false;
  188. oParam.callback = "cf_TRAHB00701";
  189. tranf_submit(oParam);
  190. }
  191. function cf_TRAHB00701(sSvcId, nErrorCode, sErrorMsg) {
  192. if(nErrorCode < 0) return;
  193. dsf_setFixVal(ds_main_rsltexmpcdlst_item, "sel:N");
  194. }
  195. /*-**************************************************************************************
  196. * Argument : N/A
  197. * Description : 선택 결과문구 set(사용안함 미전환)
  198. ****************************************************************************************/
  199. function fSetData(){
  200. if( frmf_checkOpener() ){
  201. var vDestNodeSet = opener.javascript.frmf_getParameter("SPAHR00400_PARAM2"); //목적노드Set
  202. var vDestNodeCd = opener.javascript.frmf_getParameter("SPAHR00400_PARAM3"); //코드 목적노드
  203. var vDestNodeNm = opener.javascript.frmf_getParameter("SPAHR00400_PARAM4"); //내용 목적노드
  204. var vMulti = opener.javascript.frmf_getParameter("SPAHR00400_PARAM1");// 다중선택여부(Y_N)
  205. if( vMulti == "N" ){
  206. var idx = group3.grd_exmplst.row;
  207. if( idx < 1) return ;
  208. opener.model.setValue(vDestNodeCd , group3.grd_exmplst.valueMatrix(idx, 1)) ;
  209. opener.model.setValue(vDestNodeNm , group3.grd_exmplst.valueMatrix(idx, 2)) ;
  210. }
  211. else {
  212. var nodeList = instance1.selectNodes(group3.grd_exmplst.nodeset + "[sel='Y']");
  213. var rCSV = getNodeListCSV(nodeList);
  214. dsf_setCSVToDs("ds_temp", rCSV);
  215. copyNodeListType(vDestNodeSet, "ds_temp_list", "replace", opener.model , model);
  216. }
  217. dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
  218. opener.ds_temp.setColumn( 0, "okflag", "ok");
  219. }
  220. }
  221. //=======================================================================================
  222. // Event
  223. //---------------------------------------------------------------------------------------
  224. /****************************************************************************************
  225. * Components : Form
  226. * Description : 화면 처음 초기화시 폼초기화
  227. ****************************************************************************************/
  228. function SPAHR00400_onload(obj:Form, e:LoadEventInfo) {
  229. frmf_initForm(obj);
  230. //grdf_initGrid(grd_XXX);
  231. grdf_setGridSort(group3.grd_exmplst);
  232. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  233. fInit();
  234. }
  235. /****************************************************************************************
  236. * Components : Edit
  237. * Description : 조회조건 입력 후 조회
  238. ****************************************************************************************/
  239. function group3_group2_ipt_rsltexmpnm_onkeyup(obj:Edit, e:KeyEventInfo) {
  240. if(e.keycode == 13) {
  241. obj.updateToDataset();
  242. group3.group2.btn_search.click();
  243. }
  244. }
  245. function group3_group2_ipt_rsltexmpcd_onkeyup(obj:Edit, e:KeyEventInfo) {
  246. if(e.keycode == 13) {
  247. obj.updateToDataset();
  248. group3.group2.btn_search.click();
  249. }
  250. }
  251. /****************************************************************************************
  252. * Components : Button
  253. * Description : 조회
  254. ****************************************************************************************/
  255. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  256. fGetRsltExmpList();
  257. }
  258. /****************************************************************************************
  259. * Components : Button
  260. * Description : 확인
  261. ****************************************************************************************/
  262. function grp_btn_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  263. var idx = ds_main_rsltexmpcdlst_item.rowposition;
  264. dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
  265. dsf_makeValue( opener.ds_temp, "value", "string", ds_main_rsltexmpcdlst_item.getColumn(idx,"rsltexmpcnts") );
  266. dsf_makeValue( opener.ds_temp, "rsltexmpcd", "string", ds_main_rsltexmpcdlst_item.getColumn(idx,"rsltexmpcd") );
  267. this.close();
  268. }
  269. /****************************************************************************************
  270. * Components : Button
  271. * Description : 닫기
  272. ****************************************************************************************/
  273. function grp_btn_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  274. dsf_makeValue( opener.ds_temp, "okflag", "string", "" );
  275. this.close();
  276. }
  277. ]]></Script>
  278. </Form>
  279. </FDL>