SPLLF10100_통합계코드조회.xfdl 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLF10100" position="absolute 0 0 668 282" titletext="검사시행부서코드관리" oninit="SPLLF10100_oninit" onload="SPLLF10100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="통합계코드목록" class="tit_2" position="absolute 2 3 114 19"/>
  8. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 17 665 30"/>
  9. <Grid id="grd_sect" taborder="1" binddataset="ds_main_sect" useinputpanel="false" position="absolute 0 25 665 255" autofittype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="32"/>
  14. <Column size="20"/>
  15. <Column size="85"/>
  16. <Column size="100"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. <Column size="100"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell/>
  28. <Cell col="1"/>
  29. <Cell col="2" text="계코드"/>
  30. <Cell col="3" text="계명"/>
  31. <Cell col="4" text="계명(화면)"/>
  32. <Cell col="5" text="계명(약어)"/>
  33. <Cell col="6" text="계명(출력)"/>
  34. <Cell col="7" text="계명(라벨)"/>
  35. </Band>
  36. <Band id="body">
  37. <Cell celltype="head" text="expr:currow + 1"/>
  38. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  39. <Cell col="2" displaytype="normal" edittype="none" text="bind:sectcd"/>
  40. <Cell col="3" displaytype="normal" edittype="none" text="bind:sectnm"/>
  41. <Cell col="4" displaytype="normal" edittype="none" text="bind:sectscrnnm"/>
  42. <Cell col="5" displaytype="normal" edittype="none" text="bind:sectabbrnm"/>
  43. <Cell col="6" displaytype="normal" edittype="none" text="bind:sectprntnm"/>
  44. <Cell col="7" displaytype="normal" edittype="none" text="bind:sectlblnm"/>
  45. </Band>
  46. </Format>
  47. </Formats>
  48. </Grid>
  49. <Button id="button1" taborder="2" text="추가" class="btn4" position="absolute 551 257 607 279" onclick="button1_onclick"/>
  50. <Button id="btn_cfm" taborder="3" text="닫기" class="btn4" position="absolute 610 257 666 279" onclick="btn_cfm_onclick"/>
  51. </Layout>
  52. </Layouts>
  53. <Objects>
  54. <Dataset id="ds_main_sect" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  55. <ColumnInfo>
  56. <Column id="chk" type="STRING"/>
  57. <Column id="sectcd" type="STRING"/>
  58. <Column id="sectnm" type="STRING"/>
  59. <Column id="sectscrnnm" type="STRING"/>
  60. <Column id="sectabbrnm" type="STRING"/>
  61. <Column id="sectprntnm" type="STRING"/>
  62. <Column id="sectlblnm" type="STRING"/>
  63. </ColumnInfo>
  64. </Dataset>
  65. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  66. <ColumnInfo>
  67. <Column id="refgbn" type="STRING" size="256"/>
  68. <Column id="sectcd" type="STRING" size="256"/>
  69. <Column id="sectdata" type="STRING" size="256"/>
  70. <Column id="tsectdata" type="STRING" size="256"/>
  71. <Column id="deptflag" type="STRING" size="256"/>
  72. <Column id="codeflag" type="STRING" size="256"/>
  73. </ColumnInfo>
  74. <Rows>
  75. <Row/>
  76. </Rows>
  77. </Dataset>
  78. <Dataset id="ds_init_LB0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  79. <ColumnInfo>
  80. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  81. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  82. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  83. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  84. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  85. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  86. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  87. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  88. </ColumnInfo>
  89. </Dataset>
  90. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  91. <ColumnInfo>
  92. <Column id="refgbn" type="STRING" size="256"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="refgbn">1</Col>
  97. </Row>
  98. </Rows>
  99. </Dataset>
  100. <Dataset id="ds_hidden_addlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="addstring" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row/>
  106. </Rows>
  107. </Dataset>
  108. </Objects>
  109. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  110. * System Name :
  111. * Job Name :
  112. * Creator :
  113. * Make Date : 2015-11-09
  114. * Description :
  115. *---------------------------------------------------------------------------------------
  116. * Modify Date Modifier Modify Description
  117. *---------------------------------------------------------------------------------------
  118. * 2015-11-09 Live Converter TF->XP
  119. *
  120. *---------------------------------------------------------------------------------------
  121. ****************************************************************************************/
  122. include "com_commonxp::comm_main.xjs";
  123. include "lis_commonxp::LLZ001.xjs";
  124. function SPLLF10100_oninit(obj:Form, e:InitEventInfo)
  125. {
  126. frmf_initForm(obj);
  127. }
  128. function SPLLF10100_onload(obj:Form, e:LoadEventInfo)
  129. {
  130. grdf_initGrid(grd_sect);
  131. // 초기정보 조회
  132. ds_send.setColumn(0, "codeflag", "0000|");
  133. var oParam = {};
  134. oParam.id = "TRLZZ00101";
  135. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  136. oParam.method = "reqGetInitCodeInfo";
  137. oParam.inds = "cond=ds_send";
  138. oParam.outds = "ds_init_LB0000=0000";
  139. oParam.async = false;
  140. //oParam.callback = "cf_TRLZZ00101";
  141. tranf_submit(oParam);
  142. //fSetInit();
  143. fGetSectTsect();
  144. }
  145. // 초기화 버튼
  146. function fSetInit()
  147. {
  148. this.reload();
  149. }
  150. // 계리스트 조회
  151. function fGetSectTsect()
  152. {
  153. //grd_sect.rebuildstyle();
  154. ds_send.setColumn(0, "refgbn", ds_hidden_ref.getColumn(0, "refgbn"));
  155. ds_send.setColumn(0, "deptflag", ds_init_LB0000.getColumn(0, "nm"));
  156. // 계 리스트 조회
  157. var oParam = {};
  158. oParam.id = "TRLLF00101";
  159. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  160. oParam.method = "reqGetUnitySectList";
  161. oParam.inds = "cond=ds_send";
  162. oParam.outds = "ds_main_sect=getUnitySectList";
  163. oParam.async = false;
  164. //oParam.callback = "cf_TRLLF00101";
  165. tranf_submit(oParam)
  166. }
  167. //추가
  168. function button1_onclick(obj:Button, e:ClickEventInfo)
  169. {
  170. fAddRow();
  171. }
  172. function fAddRow()
  173. {
  174. var AddRowString = "";
  175. //for(i = 1 ; i < grd_sect.rows ; i++ )
  176. for(i = 0; i < ds_main_sect.rowcount; i++)
  177. {
  178. //if(model.getValue("/root/main/sectlist["+i+"]/chk") == "true")
  179. if(ds_main_sect.getColumn(i, "chk") == "1")
  180. {
  181. AddRowString = AddRowString + ds_main_sect.getColumn(i, "sectcd") + "▦" //model.getValue("/root/main/sectlist["+i+"]/sectcd") + "▦"
  182. + ds_main_sect.getColumn(i, "sectnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectnm") + "▦"
  183. + ds_main_sect.getColumn(i, "sectscrnnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectscrnnm") + "▦"
  184. + ds_main_sect.getColumn(i, "sectabbrnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectabbrnm") + "▦"
  185. + ds_main_sect.getColumn(i, "sectprntnm") + "▦" //+ model.getValue("/root/main/sectlist["+i+"]/sectprntnm") + "▦"
  186. + ds_main_sect.getColumn(i, "sectlblnm") + "▩" ; //+ model.getValue("/root/main/sectlist["+i+"]/sectlblnm") + "▩" ;
  187. }
  188. }
  189. var strXML = ds_main_sect.saveXML("ds_main_sect","u");
  190. opener.ds_grid_grd_addlist.loadXML(strXML);
  191. this.close();
  192. }
  193. //닫기
  194. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  195. {
  196. this.close();
  197. }
  198. ]]></Script>
  199. </Form>
  200. </FDL>