SPAHA00801_추가검사선택.xfdl 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAHA00801" position="absolute 0 0 565 737" titletext="추가/재검/타과의뢰/연장 선택" oninit="SPAHA00801_oninit" onload="SPAHA00801_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="0" class="div_SA2" position="absolute 0 0 560 40">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 490 7 546 29" onclick="group2_btn_search_onclick"/>
  11. <Shape id="line13" linetype="vertical" position="absolute 471 5 477 29"/>
  12. <Static id="cap_srchpkgflag" text="검색구분 :" class="search_name" position="absolute 6 12 92 29"/>
  13. <Radio id="rdo_srchpkgflag" taborder="2" columncount="8" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 82 10 466 30" onitemchanged="group2_rdo_srchpkgflag_onitemchanged">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" size="256"/>
  17. <Column id="datacolumn" size="256"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">A</Col>
  22. <Col id="datacolumn">추가</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">B</Col>
  26. <Col id="datacolumn">재검</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">C</Col>
  30. <Col id="datacolumn">타과</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">D</Col>
  34. <Col id="datacolumn">연장</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">G</Col>
  38. <Col id="datacolumn">유소견</Col>
  39. </Row>
  40. <Row>
  41. <Col id="codecolumn">E</Col>
  42. <Col id="datacolumn">전화</Col>
  43. </Row>
  44. <Row>
  45. <Col id="codecolumn">F</Col>
  46. <Col id="datacolumn">방문</Col>
  47. </Row>
  48. </Rows>
  49. </Dataset>
  50. </Radio>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Shape id="line1" class="line_10" position="absolute 0 44 560 50"/>
  55. <Grid id="grd_etclst" taborder="1" binddataset="ds_main_detlcodelst_item" useinputpanel="false" position="absolute 0 49 560 704" autoenter="select" cellsizingtype="col" oncelldblclick="grd_etclst_oncelldblclick">
  56. <Formats>
  57. <Format id="default">
  58. <Columns>
  59. <Column size="27"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="100"/>
  63. <Column size="165"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="24" band="head"/>
  70. <Row size="24"/>
  71. </Rows>
  72. <Band id="head">
  73. <Cell/>
  74. <Cell col="1" text="etccd"/>
  75. <Cell col="2" text="etcdetlcdkey"/>
  76. <Cell col="3" text="코드"/>
  77. <Cell col="4" text="상세코드명"/>
  78. <Cell col="5" text="기타1"/>
  79. <Cell col="6" text="기타2"/>
  80. <Cell col="7" text="적용여부"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell celltype="head" expr="currow+1"/>
  84. <Cell col="1" text="bind:etccd"/>
  85. <Cell col="2" text="bind:etcdetlcdkey"/>
  86. <Cell col="3" edittype="none" style="align:left middle;padding:0 0 0 10;" text="bind:etcdetlcd" enable="true"/>
  87. <Cell col="4" edittype="none" style="align:left middle;padding:0 0 0 10;" text="bind:etcdetlnm" enable="true"/>
  88. <Cell col="5" displaytype="none" edittype="none" text="bind:etcitemcnts"/>
  89. <Cell col="6" displaytype="none" edittype="none" text="bind:etcitemcnts2"/>
  90. <Cell col="7" displaytype="checkbox" edittype="checkbox" text="bind:useyn" enable="false"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Button id="btn_cfm" taborder="2" text="확인" class="btn4" position="absolute 445 709 501 731" onclick="btn_cfm_onclick"/>
  96. <Button id="button9" taborder="3" text="취소" class="btn4" position="absolute 504 709 560 731" onclick="button9_onclick"/>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="clscd" type="STRING" size="256"/>
  103. <Column id="etccd" type="STRING" size="256"/>
  104. <Column id="etcitemcnts" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row>
  108. <Col id="clscd">G</Col>
  109. <Col id="etccd">G20</Col>
  110. <Col id="etcitemcnts">A</Col>
  111. </Row>
  112. </Rows>
  113. </Dataset>
  114. <Dataset id="ds_main_detlcodelst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="sel" type="STRING" size="256" sumtext="선택"/>
  117. <Column id="etcdetlcdkey" type="STRING" size="256" sumtext="상세코드키"/>
  118. <Column id="etcdetlcd" type="STRING" size="256" sumtext="상세코드"/>
  119. <Column id="etccd" type="STRING" size="256" sumtext="코드"/>
  120. <Column id="etcdetlnm" type="STRING" size="256" sumtext="상세코드명"/>
  121. <Column id="etcitemcnts" type="STRING" size="256" sumtext="기타1"/>
  122. <Column id="etcitemcnts2" type="STRING" size="256" sumtext="기타2"/>
  123. <Column id="etcitemcnts3" type="STRING" size="256" sumtext="기타3"/>
  124. <Column id="useyn" type="STRING" size="256" sumtext="사용여부 "/>
  125. </ColumnInfo>
  126. </Dataset>
  127. </Objects>
  128. <Bind>
  129. <BindItem id="item0" compid="group2.rdo_srchpkgflag" propid="value" datasetid="ds_send" columnid="etcitemcnts"/>
  130. </Bind>
  131. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  132. * System Name :
  133. * Job Name :
  134. * Creator :
  135. * Make Date : 2015-11-13
  136. * Description :
  137. *---------------------------------------------------------------------------------------
  138. * Modify Date Modifier Modify Description
  139. *---------------------------------------------------------------------------------------
  140. * 2015-11-13 Live Converter TF->XP
  141. *
  142. *---------------------------------------------------------------------------------------
  143. ****************************************************************************************/
  144. include "com_commonxp::comm_main.xjs";
  145. function SPAHA00801_oninit(obj:Form, e:InitEventInfo)
  146. {
  147. frmf_initForm(obj);
  148. }
  149. function SPAHA00801_onload(obj:Form, e:LoadEventInfo)
  150. {
  151. grdf_initGrid(grd_etclst);
  152. var flag = opener.frmf_getParameter("SPAHA00801_FLAG");
  153. if(!utlf_isNull(flag))
  154. {
  155. group2.rdo_srchpkgflag.value = flag;
  156. }
  157. else
  158. {
  159. group2.rdo_srchpkgflag.index = 0;
  160. }
  161. group2.btn_search.click();
  162. }
  163. function group2_rdo_srchpkgflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  164. {
  165. group2.btn_search.click();
  166. }
  167. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  168. {
  169. fGetDetlCodeList();
  170. }
  171. function fGetDetlCodeList()
  172. {
  173. ds_main_detlcodelst_item.clearData();
  174. var oParam = {};
  175. oParam.id = "TRAHB00602";
  176. oParam.service = "healexambaseapp.EtcCode";
  177. oParam.method = "reqGetDetlCodeList";
  178. oParam.inds = "req=ds_send";
  179. oParam.outds = "ds_main_detlcodelst_item=item";
  180. oParam.async = false;
  181. //oParam.callback = "cf_TRAHB00602";
  182. tranf_submit(oParam);
  183. ds_main_detlcodelst_item.updatecontrol = false;
  184. dsf_setFixVal(ds_main_detlcodelst_item, "sel:N");
  185. ds_main_detlcodelst_item.updatecontrol = true;
  186. }
  187. function grd_etclst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  188. {
  189. fSetData();
  190. }
  191. function fSetData()
  192. {
  193. var receiveref = eval("opener.ds_main_detlcodelst_item");
  194. var receiveref2 = eval("opener.ds_temp");
  195. opener.dsf_makeValue(receiveref, "aftype", "string", ds_main_detlcodelst_item.getColumn(ds_main_detlcodelst_item.rowposition,"etcitemcnts"), 0);
  196. opener.dsf_makeValue(receiveref, "etcdetlcd", "string", ds_main_detlcodelst_item.getColumn(ds_main_detlcodelst_item.rowposition,"etcdetlcd"), 0);
  197. opener.dsf_makeValue(receiveref, "etcdetlnm", "string", ds_main_detlcodelst_item.getColumn(ds_main_detlcodelst_item.rowposition,"etcdetlnm"), 0);
  198. opener.dsf_makeValue(receiveref2, "okflag", "string", "ok", 0);
  199. this.close();
  200. }
  201. function button9_onclick(obj:Button, e:ClickEventInfo)
  202. {
  203. if(frmf_checkOpener())
  204. {
  205. var receiveref2 = eval("opener.ds_temp");
  206. opener.dsf_makeValue(receiveref2, "okflag", "string", "", 0);
  207. }
  208. this.close();
  209. }
  210. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  211. {
  212. fSetData();
  213. }
  214. ]]></Script>
  215. </Form>
  216. </FDL>