SMAEB03200_핵종규격관리.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB03200" position="absolute 0 0 1256 805" titletext="핵종규격관리" onload="SMAEB03200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" class="tit_1" position="absolute 0 0 142 25" anchor="default" positiontype="position" text="핵종 규격 관리"/>
  8. <Shape id="line2" class="line_1" position="absolute 0 82 1195 82" anchor="default" positiontype="position" linetype="horizontal"/>
  9. <Button id="btn_grdadd" class="btn2" position="absolute 1141 74 1197 94" anchor="top right" positiontype="position" text="행추가" onclick="btn_grdadd_onclick"/>
  10. <Button id="btn_grddel" class="btn2" position="absolute 1200 74 1256 94" anchor="top right" positiontype="position" text="행삭제" onclick="btn_grddel_onclick"/>
  11. <Grid id="grd_speclist" position="absolute 0 96 1256 781" anchor="all" positiontype="position" autofittype="col" binddataset="ds_speclist" cellsizingtype="col">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="20"/>
  16. <Column size="131"/>
  17. <Column size="233"/>
  18. <Column size="128"/>
  19. <Column size="683"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="22" band="head"/>
  23. <Row size="20"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell/>
  27. <Cell col="1" text="규격코드"/>
  28. <Cell col="2" text="규격명"/>
  29. <Cell col="3" text="환산치"/>
  30. <Cell col="4" text="비고"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell celltype="head"/>
  34. <Cell col="1" edittype="expr:getRowType(currow)==2 ? 'text' : 'none'" style="align:left middle;" class="cell_nopadding" text="bind:speccd" editlimit="10" editlengthunit="utf8"/>
  35. <Cell col="2" edittype="text" class="cell_nopadding" text="bind:specnm" editlimit="100" editlengthunit="utf8"/>
  36. <Cell col="3" displaytype="number" edittype="masknumber" style="align:right middle;" class="cell_nopadding" text="bind:exchval" mask="###,##0.0000" editlimit="15" editlimitbymask="both" editlengthunit="utf8"/>
  37. <Cell col="4" displaytype="text" edittype="text" class="cell_nopadding" text="bind:rem" editlimit="100" editlengthunit="utf8"/>
  38. </Band>
  39. </Format>
  40. </Formats>
  41. </Grid>
  42. <Div id="grp_sea" taborder="1" text="Div00" class="div_SA" anchor="left top right" position="absolute 0 26 1256 68">
  43. <Layouts>
  44. <Layout>
  45. <Static id="caption25" text="규격코드" class="search_name" position="absolute 8 10 94 30" anchor="default"/>
  46. <Edit id="edt_speccd" taborder="1" class="input_search" position="absolute 82 10 182 30" anchor="default" onkeydown="grp_sea_edt_speccd_onkeydown"/>
  47. <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick"/>
  48. </Layout>
  49. </Layouts>
  50. </Div>
  51. <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1141 782 1197 802" anchor="right bottom" onclick="btn_save_onclick"/>
  52. <Button id="btn_close" taborder="3" text="닫기" onclick="btn_close_onclick" class="btn4" position="absolute 1199 782 1255 802" anchor="right bottom" visible="true"/>
  53. </Layout>
  54. </Layouts>
  55. <Objects>
  56. <Dataset id="ds_speclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  57. <ColumnInfo>
  58. <Column id="speccd" type="STRING" size="256"/>
  59. <Column id="instcd" type="STRING" size="256"/>
  60. <Column id="suppdeptcd" type="STRING" size="256"/>
  61. <Column id="specnm" type="STRING" size="256"/>
  62. <Column id="exchval" type="STRING" size="256"/>
  63. <Column id="rem" type="STRING" size="256"/>
  64. <Column id="fstrgstrid" type="STRING" size="256"/>
  65. <Column id="fstrgstdt" type="STRING" size="256"/>
  66. <Column id="lastupdtrid" type="STRING" size="256"/>
  67. <Column id="lastupdtdt" type="STRING" size="256"/>
  68. </ColumnInfo>
  69. </Dataset>
  70. <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  71. </Objects>
  72. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  73. * System Name : KU2.0
  74. * Job Name :
  75. * File Name : SMAEB03200_핵종규격관리.xfdl
  76. * Creator :
  77. * Make Date : 2016-06-15
  78. *
  79. * Description :
  80. *---------------------------------------------------------------------------------------
  81. * Modify Date Modifier Modify Description
  82. *---------------------------------------------------------------------------------------
  83. *
  84. *---------------------------------------------------------------------------------------
  85. ****************************************************************************************/
  86. //=======================================================================================
  87. // Lib Include
  88. //---------------------------------------------------------------------------------------
  89. include "com_commonxp::comm_main.xjs";
  90. include "ast_commonxp::AST.xjs";
  91. include "ast_examcurexp::AEZ0001.xjs";
  92. var lgv_suppdeptcd = "";
  93. /****************************************************************************************
  94. * Components :
  95. * Components ID : model1
  96. * Event : onload
  97. * Argument : 01.obj : Object Event has occurred
  98. * : 02.e : Event Object
  99. * Description :
  100. ****************************************************************************************/
  101. function SMAEB03200_onload(obj:Form, e:LoadEventInfo)
  102. {
  103. frmf_initForm(obj);
  104. lf_aezfSetSuppDeptcd();
  105. lgv_suppdeptcd = suppdeptcd;
  106. grdf_setRowTypeIcon(grd_speclist, 0);
  107. // 조회 버튼 클릭 함수
  108. fn_Search();
  109. }
  110. /****************************************************************************************
  111. * Components :
  112. * Components ID : btn_sea
  113. * Event : onclick
  114. * Argument : 01.obj : Object Event has occurred
  115. * : 02.e : Event Object
  116. * Description :
  117. ****************************************************************************************/
  118. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  119. {
  120. fn_Search();
  121. }
  122. function fn_Search()
  123. {
  124. ds_speclist.clearData();
  125. var objColInfo = new Array();
  126. objColInfo.push({col: "speccd", val: "%" + utlf_transNullToEmpty(grp_sea.edt_speccd.value)});
  127. objColInfo.push({col: "suppdeptcd", val: lgv_suppdeptcd});
  128. dsf_createDsRow("ds_req", objColInfo);
  129. // trace(ds_req.saveXML());
  130. tranf_submit({
  131. id: "TRAEB03201"
  132. , service: "examcurebaseapp.GoodCode"
  133. , method: "reqGetSpecList"
  134. , inds: "req=ds_req"
  135. , outds: "ds_speclist=item"
  136. // , args: "key1='value1' key2='value2' key3="+wrapQuote("value3")
  137. , async: true
  138. , callback: "cbf_TRAEB03201"
  139. , progress: false
  140. , alert: false
  141. // , surrogate: "userid='ENRBC' dutplcecd='B051'"
  142. , typeStr: "s"
  143. });
  144. }
  145. function cbf_TRAEB03201(sSvcId, objErrorCode, objErrorMsg)
  146. {
  147. // trace("ds_speclist-->[" + ds_speclist.saveXML() + "]");
  148. }
  149. /****************************************************************************************
  150. * Components :
  151. * Components ID : btn_grdadd
  152. * Event : onclick
  153. * Argument : 01.obj : Object Event has occurred
  154. * : 02.e : Event Object
  155. * Description :
  156. ****************************************************************************************/
  157. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  158. {
  159. var nRow = ds_speclist.addRow();
  160. ds_speclist.setColumn(nRow, "suppdeptcd", lgv_suppdeptcd);
  161. }
  162. /****************************************************************************************
  163. * Components :
  164. * Components ID : btn_grddel
  165. * Event : onclick
  166. * Argument : 01.obj : Object Event has occurred
  167. * : 02.e : Event Object
  168. * Description :
  169. ****************************************************************************************/
  170. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  171. {
  172. dsf_deleteSelectedRows(grd_speclist, true);
  173. }
  174. /****************************************************************************************
  175. * Components :
  176. * Components ID : btn_save
  177. * Event : onclick
  178. * Argument : 01.obj : Object Event has occurred
  179. * : 02.e : Event Object
  180. * Description :
  181. ****************************************************************************************/
  182. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  183. {
  184. fn_Save();
  185. }
  186. function fn_Validation()
  187. {
  188. for(var i = 0; i < ds_speclist.rowcount; i++)
  189. {
  190. if(utlf_isNull(ds_speclist.getColumn(i, "speccd")) == true)
  191. {
  192. sysf_messageBox("규격코드를", "C001", "");
  193. return false;
  194. }
  195. if(utlf_isNull(ds_speclist.getColumn(i, "specnm")) == true)
  196. {
  197. sysf_messageBox("규격명을", "C001", "");
  198. return false;
  199. }
  200. }
  201. return true;
  202. }
  203. function fn_Save()
  204. {
  205. if(fn_Validation() == true)
  206. {
  207. var objParam = new Object();
  208. objParam.id = "TXAEB03301";
  209. objParam.service = "examcurebaseapp.GoodCode"
  210. objParam.method = "reqExeSpecList";
  211. objParam.inds = "req=ds_speclist:U"
  212. objParam.callback = "cbf_TXAEB03201";
  213. objParam.typeStr = "m";
  214. objParam.error = false;
  215. tranf_submit(objParam);
  216. }
  217. }
  218. function cbf_TXAEB03201(sSvcId, objErrorCode, objErrorMsg){
  219. //에러 처리
  220. if(objErrorCode == 0){
  221. fn_Search();
  222. }else{
  223. astErrorMsg(objErrorMsg);
  224. }
  225. }
  226. /****************************************************************************************
  227. * Components :
  228. * Components ID : btn_close
  229. * Event : onclick
  230. * Argument : 01.obj : Object Event has occurred
  231. * : 02.e : Event Object
  232. * Description :
  233. ****************************************************************************************/
  234. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  235. {
  236. this.close();
  237. // if (checkOpener()) {
  238. // opener.model.setValue("/root/init/updtyn","N");
  239. // }
  240. // window.close();
  241. }
  242. /****************************************************************************************
  243. * Components :
  244. * Components ID : edt_speccd
  245. * Event : onkeydown
  246. * Argument : 01.obj : Object Event has occurred
  247. * : 02.e : Event Object
  248. * Description :
  249. ****************************************************************************************/
  250. function grp_sea_edt_speccd_onkeydown(obj:Edit, e:KeyEventInfo)
  251. {
  252. if(e.keycode == 13)
  253. {
  254. fn_Search();
  255. }
  256. }
  257. ]]></Script>
  258. </Form>
  259. </FDL>