SMZWT00000_AWT조회.xfdl 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMZWT00000" position="absolute 0 0 380 220" oninit="SMZWT00000_oninit" onload="SMZWT00000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape position="absolute 2 2 380 48" id="awt_rect" class="roundrect_search" type="roundrectangle"/>
  8. <Grid position="absolute 2 50 380 220" id="awt_grd" binddataset="ds_awt_grd" autosizingtype="row" extendsizetype="row" oncelldblclick="awt_grd_oncelldblclick" onkeydown="awt_grd_onkeydown">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="20"/>
  13. <Column size="296"/>
  14. <Column size="61"/>
  15. </Columns>
  16. <Rows>
  17. <Row size="24" band="head"/>
  18. <Row size="24"/>
  19. </Rows>
  20. <Band id="head">
  21. <Cell/>
  22. <Cell col="1" text="단어/구문"/>
  23. <Cell col="2" text="약어"/>
  24. </Band>
  25. <Band id="body">
  26. <Cell celltype="head" text="expr:currow + 1"/>
  27. <Cell col="1" style="align:left;padding:4;linespace:2;" text="bind:data" wordwrap="both" autosizerow="limitmin"/>
  28. <Cell col="2" text="bind:keyword"/>
  29. </Band>
  30. </Format>
  31. </Formats>
  32. </Grid>
  33. <Static text="대상그룹:" position="absolute 5 6 87 23" id="awt_cap1" class="search_name"/>
  34. <Static text="검 색 어:" position="absolute 5 28 87 45" id="awt_cap2" class="search_name"/>
  35. <Radio position="absolute 85 4 177 24" id="awt_rdo" class="radio_search" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onkeydown="awt_rdo_onkeydown" onitemchanged="awt_rdo_onitemchanged">
  36. <Dataset id="innerdataset">
  37. <ColumnInfo>
  38. <Column id="codecolumn"/>
  39. <Column id="datacolumn"/>
  40. </ColumnInfo>
  41. <Rows>
  42. <Row>
  43. <Col id="codecolumn">P</Col>
  44. <Col id="datacolumn">개인</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">C</Col>
  48. <Col id="datacolumn">공용</Col>
  49. </Row>
  50. </Rows>
  51. </Dataset>
  52. </Radio>
  53. <Edit position="absolute 84 26 170 45" id="awt_ipt" onkeydown="awt_ipt_onkeydown"/>
  54. <Button position="absolute 172 25 228 47" id="awt_btn_search" class="btn1" text="조회" onclick="awt_btn_search_onclick" onkeyup="awt_btn_search_onkeyup"/>
  55. <Button position="absolute 312 25 368 47" id="awt_btn_manage" class="btn4" text="관리" onclick="awt_btn_manage_onclick"/>
  56. <Button position="absolute 255 25 311 47" id="awt_btn_close" class="btn3" text="닫기" onclick="awt_btn_close_onclick"/>
  57. <Button id="awt_btn_sav" class="btn2" visible="false" text="기본그룹저장"/>
  58. </Layout>
  59. </Layouts>
  60. <Objects>
  61. <Dataset id="ds_awt_grd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  62. <ColumnInfo>
  63. <Column id="data" type="STRING"/>
  64. <Column id="keyword" type="STRING"/>
  65. </ColumnInfo>
  66. </Dataset>
  67. </Objects>
  68. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  69. * System Name :
  70. * Job Name :
  71. * Creator :
  72. * Make Date : 2014-12-23
  73. * Description :
  74. *---------------------------------------------------------------------------------------
  75. * Modify Date Modifier Modify Description
  76. *---------------------------------------------------------------------------------------
  77. * 2014-12-23 Live Converter TF->XP
  78. *
  79. *---------------------------------------------------------------------------------------
  80. ****************************************************************************************/
  81. //=======================================================================================
  82. // Lib Include
  83. //---------------------------------------------------------------------------------------
  84. include "com_commonxp::comm_main.xjs"
  85. //=======================================================================================
  86. // Global Form Variable
  87. //---------------------------------------------------------------------------------------
  88. var gvUserAwtGrpCd;
  89. var parentForm;
  90. //=======================================================================================
  91. // Function
  92. //---------------------------------------------------------------------------------------
  93. function SMZWT00000_oninit(obj:Form, e:InitEventInfo)
  94. {
  95. frmf_initForm(obj);
  96. }
  97. function SMZWT00000_onload(obj:Form, e:LoadEventInfo)
  98. {
  99. gvUserAwtGrpCd = sysf_getUserInfo("awtgrpcd");
  100. }
  101. function initSearch(obj, awtSendWord) {
  102. parentForm = obj;
  103. //if (frmf_checkOpener()) {
  104. if(awtSendWord != null){
  105. awt_ipt.value = awtSendWord;
  106. }
  107. //}
  108. awt_rdo.value = gvUserAwtGrpCd;
  109. doSearch();
  110. }
  111. function doSearch() {
  112. // model.removenode("/root/main/words");
  113. // model.makeNode("/root/main/words");
  114. // model.refresh();
  115. // parent.javascript.AwtSearchLike(model.getValue("/root/send/keyword"), model.getValue("/root/send/awttype"));
  116. ds_awt_grd.clearData();
  117. var arg_ipt = awt_ipt.value;
  118. if(arg_ipt == undefined){
  119. arg_ipt = "";
  120. }
  121. awtf_AwtSearchLike(arg_ipt, awt_rdo.value);
  122. }
  123. function doSel(row) {
  124. //parent.javascript.AwtSetResult(model.getValue("/root/main/words/item[" + row + "]/data"), parent.javascript.AwtMode);
  125. //awtf_AwtSetResult(ds_awt_grd.getColumn(row, "data"), AwtMode);
  126. var iParam = ds_awt_grd.getColumn(row, "data");
  127. //if ( frmf_checkOpener() ) {
  128. parentForm.awtf_AwtSetResult(iParam, parentForm.AwtMode);
  129. this.visible = false;
  130. //} else {
  131. // var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  132. //}
  133. }
  134. function doRefresh() {
  135. // awt_grd.resizeCells();
  136. // model.refresh();
  137. }
  138. function doFocus() {
  139. awt_ipt.setFocus();
  140. if (awt_grd.rowcount > 0) {
  141. awt_grd.setFocus();
  142. awt_grd.currentrow = 0;
  143. }
  144. }
  145. function awt_btn_close_onclick(obj:Button, e:ClickEventInfo)
  146. {
  147. this.visible = false;
  148. }
  149. function awt_btn_search_onclick(obj:Button, e:ClickEventInfo)
  150. {
  151. doSearch();
  152. }
  153. function awt_rdo_onkeydown(obj:Radio, e:KeyEventInfo)
  154. {
  155. if (e.keycode == 40) {
  156. awt_ipt.setFocus();
  157. }
  158. }
  159. function awt_rdo_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  160. {
  161. //getViewer("sysMessage").window.javascript.fSetUserAwtGrpCd(model.getValue("/root/send/awttype"));
  162. fSetUserAwtGrpCd(awt_rdo.value);
  163. doSearch();
  164. }
  165. function fSetUserAwtGrpCd(awt_rdo)
  166. {
  167. var sInDsName = dsf_createDsRow("in_ds_search"
  168. , [ {col: "awtgrpcd", val: awt_rdo} ]);
  169. var oParam = {};
  170. oParam.id = "TXZUM00303";
  171. oParam.service = "awtapp.AwtUser";
  172. oParam.method = "reqExeUserAwtGrp";
  173. oParam.inds = "req="+sInDsName;
  174. oParam.outds = "null";
  175. oParam.async = false;
  176. oParam.callback = "cf_TXZUM00303";
  177. tranf_submit(oParam);
  178. }
  179. function cf_TXZUM00303(sSvcId, nErrorCode, sErrorMsg) {
  180. if(nErrorCode < 0) return;
  181. }
  182. function awt_grd_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  183. {
  184. doSel(e.row);
  185. }
  186. function awt_grd_onkeydown(obj:Grid, e:KeyEventInfo)
  187. {
  188. if (e.keycode == 13 || e.keycode == 32) {
  189. doSel(awt_grd.currentrow);
  190. }
  191. if (e.keycode == 38) {
  192. if (awt_grd.rowcount <= 0) {
  193. awt_ipt.setFocus();
  194. }
  195. if (awt_grd.currentrow == 0) {
  196. awt_grd.currentrow = -1;
  197. awt_ipt.setFocus();
  198. }
  199. }
  200. }
  201. function awt_ipt_onkeydown(obj:Edit, e:KeyEventInfo)
  202. {
  203. if (e.keycode == 13) {
  204. awt_grd.setFocus();
  205. awt_ipt.setFocus();
  206. doSearch();
  207. }
  208. if (e.keycode == 40) {
  209. if (awt_grd.rowcount > 0) {
  210. awt_grd.setFocus();
  211. awt_grd.currentrow = 1;
  212. }
  213. }
  214. if (e.keycode == 38) {
  215. awt_rdo.setFocus();
  216. }
  217. }
  218. function awt_btn_search_onkeyup(obj:Button, e:KeyEventInfo)
  219. {
  220. if (event.keyCode == 27) {
  221. //parent.window.javascript.AwtHide();
  222. this.visible = false;
  223. }
  224. }
  225. function awt_btn_manage_onclick(obj:Button, e:ClickEventInfo)
  226. {
  227. frmf_modal("SMZWT00110", "SMZWT00110");
  228. }]]></Script>
  229. </Form>
  230. </FDL>