SMAEB00800_실시자코드관리.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB00800" position="absolute 0 0 1192 787" titletext="근무자/실시자 관리" onload="SMAEB00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="1" position="absolute 0 25 1191 65" class="div_SA"/>
  8. <Shape position="absolute 1104 35 1110 57" linetype="vertical" id="line13" class="line_4"/>
  9. <Button position="absolute 1123 35 1179 57" id="btn_sea" class="btn1" text="조회" onclick="btn_sea_onclick"/>
  10. <Static text="실시자코드 :" position="absolute 15 38 127 55" id="caption2" class="search_name"/>
  11. <Button position="absolute 270 37 286 53" id="button61" class="icon_search" text="" onclick="button61_onclick" visible="false"/>
  12. <Edit position="absolute 130 36 265 55" id="ipt_basecd" class="input_search" onkeydown="ipt_basecd_onkeydown"/>
  13. <Button position="absolute 1082 70 1135 92" id="btn_gedadd" class="btn2" text="행추가" onclick="btn_gedadd_onclick"/>
  14. <Button position="absolute 1138 70 1191 92" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
  15. <Static text="실시자관리" position="absolute 0 76 120 93" id="caption1" class="tit_2"/>
  16. <Shape position="absolute 0 93 1191 97" id="line1" class="line_10"/>
  17. <Grid position="absolute 0 97 1191 751" id="grd_execrcode" binddataset="ds_grd_execrcode" oncellclick="grd_execrcode_oncellclick" onchar="grd_execrcode_onchar">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="25"/>
  22. <Column size="25"/>
  23. <Column size="71"/>
  24. <Column size="97"/>
  25. <Column size="139"/>
  26. <Column size="808"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. </Columns>
  31. <Rows>
  32. <Row size="24" band="head"/>
  33. <Row size="24"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell/>
  37. <Cell col="1"/>
  38. <Cell col="2" text="순번"/>
  39. <Cell col="3" text="사번"/>
  40. <Cell col="4" text="성명"/>
  41. <Cell col="5" text="비고"/>
  42. <Cell col="6" text="basecdflag"/>
  43. <Cell col="7" text="basesuppdeptcd"/>
  44. <Cell col="8" text="seq"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell celltype="head" text="expr:currow+1"/>
  48. <Cell col="1" displaytype="image"/>
  49. <Cell col="2" displaytype="text" edittype="text" style="align:right middle;padding:0 3 0 3;" text="bind:sortno"/>
  50. <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:basecd"/>
  51. <Cell col="4" displaytype="text" edittype="text" style="padding:0 3 0 3;" text="bind:basecdflagdesc"/>
  52. <Cell col="5" displaytype="text" edittype="text" style="padding:0 3 0 3;" text="bind:basecdcnts"/>
  53. <Cell col="6" displaytype="text" edittype="text" text="bind:basecdflag"/>
  54. <Cell col="7" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
  55. <Cell col="8" text="bind:seq"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. <Div position="absolute 0 753 1191 780" id="grp_btn">
  61. <Layouts>
  62. <Layout>
  63. <Button position="absolute 1135 5 1191 27" id="btn_save" class="btn4" text="저장" onclick="grp_btn_btn_save_onclick" anchor="default"/>
  64. </Layout>
  65. </Layouts>
  66. </Div>
  67. <Static text="근무자/실시자 관리" position="absolute 0 0 160 25" id="caption6" class="tit_1"/>
  68. </Layout>
  69. </Layouts>
  70. <Objects>
  71. <Dataset id="ds_grd_execrcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  72. <ColumnInfo>
  73. <Column id="sortno" type="STRING"/>
  74. <Column id="basecd" type="STRING"/>
  75. <Column id="basecdflagdesc" type="STRING"/>
  76. <Column id="basecdcnts" type="STRING"/>
  77. <Column id="basecdflag" type="STRING"/>
  78. <Column id="basesuppdeptcd" type="STRING"/>
  79. <Column id="seq" type="STRING"/>
  80. </ColumnInfo>
  81. </Dataset>
  82. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="basecd" type="STRING" size="256"/>
  85. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  86. <Column id="ebasecdflag" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row/>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="m" type="STRING" size="256" sumtext="실행구분"/>
  95. <Column id="sortno" type="INT" size="256" sumtext="순번"/>
  96. <Column id="basecd" type="STRING" size="256" sumtext="사번"/>
  97. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="성명"/>
  98. <Column id="basecdcnts" type="STRING" size="256" sumtext="비고"/>
  99. <Column id="ebasecdflag" type="STRING" size="256" sumtext="부서코드"/>
  100. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  101. <Column id="seq" type="INT" size="256" sumtext="순번"/>
  102. </ColumnInfo>
  103. </Dataset>
  104. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  105. <ColumnInfo>
  106. <Column id="comprod" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row>
  110. <Col id="comprod">A</Col>
  111. </Row>
  112. </Rows>
  113. </Dataset>
  114. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="instance1" type="STRING" size="256"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row/>
  120. </Rows>
  121. </Dataset>
  122. </Objects>
  123. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  124. * System Name :
  125. * Job Name :
  126. * Creator :
  127. * Make Date : 2015-11-13
  128. * Description :
  129. *---------------------------------------------------------------------------------------
  130. * Modify Date Modifier Modify Description
  131. *---------------------------------------------------------------------------------------
  132. * 2015-11-13 Live Converter TF->XP
  133. *
  134. *---------------------------------------------------------------------------------------
  135. ****************************************************************************************/
  136. include "com_commonxp::comm_main.xjs";
  137. include "ast_examcurexp::AEZ0001.xjs";
  138. function fn_TRAEB00801() {
  139. if (ds_send.rowcount < 1 ) {
  140. ds_send.addRow();
  141. }
  142. ds_send.setColumn(0,'basecd', ipt_basecd.value); //검사실코드
  143. ds_send.setColumn(0,'basesuppdeptcd', utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))); //지원부서코드
  144. ds_send.setColumn(0,'ebasecdflag', 'E'); //부서코드
  145. var oParam = {};
  146. oParam.id = "TRAEB00801";
  147. oParam.service = "examcurebaseapp.ExecrCode";
  148. oParam.method = "reqGetExecrCodeList";
  149. oParam.inds = "req=ds_send";
  150. oParam.outds = "ds_grd_execrcode=execrcode";
  151. oParam.async = false;
  152. oParam.callback = "cf_TRAEB00801";
  153. tranf_submit(oParam);
  154. }
  155. function cf_TRAEB00801(sSvcId, nErrorCode, sErrorMsg) {
  156. if(nErrorCode < 0) return;
  157. //check칼럼추가
  158. if ( utlf_isNull(ds_grd_execrcode.getColumnInfo("ebasecdflag"))) {
  159. ds_grd_execrcode.addColumn("ebasecdflag","string");
  160. }
  161. }
  162. function fn_TXAEB00801() {
  163. if (ds_send.rowcount < 1 ) {
  164. ds_send.addRow();
  165. }
  166. ds_send.setColumn(0,'basecd', ipt_basecd.value); //검사실코드
  167. ds_send.setColumn(0,'basesuppdeptcd', utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))); //지원부서코드
  168. ds_send.setColumn(0,'ebasecdflag', 'E'); //부서코드
  169. var oParam = {};
  170. oParam.id = "TXAEB00801";
  171. oParam.service = "examcurebaseapp.ExecrCode";
  172. oParam.method = "reqExeExecrCodeList";
  173. oParam.inds = "req=ds_send_data";
  174. oParam.outds = "ds_hidden=item";
  175. oParam.async = false;
  176. oParam.callback = "cf_TXAEB00801";
  177. tranf_submit(oParam);
  178. }
  179. function cf_TXAEB00801(sSvcId, nErrorCode, sErrorMsg) {
  180. if(nErrorCode < 0) return;
  181. }
  182. function SMAEB00800_onload(obj:Form, e:LoadEventInfo)
  183. {
  184. frmf_initForm(obj);
  185. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  186. ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
  187. sysf_trace("suppdeptcd = " + frmf_getParameter("AST_DEPTCD"));
  188. ds_grd_execrcode.clearData();
  189. grdf_setRowTypeIcon(grd_execrcode, 1); //status 표시 : 입력, 삭제, 갱신
  190. ipt_basecd.setFocus();
  191. }
  192. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  193. {
  194. fn_TRAEB00801();
  195. }
  196. function btn_gedadd_onclick(obj:Button, e:ClickEventInfo)
  197. {
  198. var nRow = ds_grd_execrcode.addRow();
  199. grd_execrcode.setCellPos(nRow);
  200. ds_grd_execrcode.setColumn(nRow, "basesuppdeptcd",ds_send_globalinstance.getColumn(0,"instance1"));
  201. ds_grd_execrcode.setColumn(nRow, "ebasecdflag","E");
  202. sysf_trace("nRow = " + nRow);
  203. }
  204. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  205. {
  206. var arrRow = new Array();
  207. arrRow[0] = ds_grd_execrcode.rowposition;
  208. grdf_setStatus(grd_execrcode, "D", arrRow);
  209. ds_grd_execrcode.setColumn(arrRow, "ebasecdflag","E");
  210. }
  211. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
  212. {
  213. if ( sysf_messageBox("","Q002")==6 ) {
  214. var dsUpdate = grdf_getGridUpdateData(grd_execrcode, "all");
  215. grdf_setStatusColumn(dsUpdate, "m");
  216. if(dsUpdate.rowcount == 0){
  217. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  218. return 0;
  219. } else {
  220. ds_send_data.clear();
  221. ds_send_data.copyData(dsUpdate, true);
  222. dsf_setDefaultVal(ds_send_data, "ubasecdflag:U");
  223. fn_TXAEB00801();
  224. }
  225. }
  226. fn_TRAEB00801();
  227. }
  228. function grd_execrcode_onchar(obj:Grid, e:GridEditCharEventInfo)
  229. {
  230. ds_grd_execrcode.setColumn(e.row, "ebasecdflag","E");
  231. }
  232. function ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
  233. {
  234. if(e.keycode == 13)
  235. {
  236. obj.updateToDataset();
  237. fn_TRAEB00801();
  238. }
  239. }
  240. function button61_onclick(obj:Button, e:ClickEventInfo)
  241. {
  242. }
  243. ]]></Script>
  244. </Form>
  245. </FDL>