SMAHB01200_근무자관리.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHB01200" position="absolute 0 0 1195 773" titletext="근무자/실시자 관리" onload="SMAHB01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="근무자/실시자 관리" class="tit_1" position="absolute 0 0 160 25"/>
  8. <Div id="grp_sea" taborder="2" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 10 1110 32" anchor="top right"/>
  12. <Button id="btn_sea" taborder="4" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  13. <Static id="caption2" text="실시자코드 :" class="search_name" position="absolute 15 12 127 29" anchor="default"/>
  14. <Button id="button61" taborder="5" class="icon_search" position="absolute 270 13 286 29" anchor="default" onclick="grp_sea_button61_onclick" visible="false"/>
  15. <Edit id="ipt_basecd" taborder="6" class="input_search" position="absolute 130 11 265 30" anchor="default" onkeydown="grp_sea_ipt_basecd_onkeydown"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Button id="btn_gedadd" taborder="3" text="행추가" class="btn2" position="absolute 1085 67 1138 89" onclick="btn_gedadd_onclick" anchor="top right"/>
  20. <Button id="btn_grddel" taborder="4" text="행삭제" class="btn2" position="absolute 1141 67 1194 89" onclick="btn_grddel_onclick" anchor="top right"/>
  21. <Static id="caption1" text="실시자관리" class="tit_2" position="absolute 0 73 120 90"/>
  22. <Shape id="line1" class="line_10" position="absolute 0 89 1194 95" anchor="left top right"/>
  23. <Grid id="grd_execrlst" taborder="5" binddataset="ds_main_dutplst_item" useinputpanel="false" position="absolute 0 94 1194 744" anchor="all">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="25" band="left"/>
  28. <Column size="71"/>
  29. <Column size="97"/>
  30. <Column size="139"/>
  31. <Column size="858"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" text="순번 "/>
  42. <Cell col="2" text="사번"/>
  43. <Cell col="3" text="성명"/>
  44. <Cell col="4" text="비고"/>
  45. <Cell col="5" text="부서코드"/>
  46. <Cell col="6" text="원본사원번호"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell celltype="head"/>
  50. <Cell col="1" displaytype="text" edittype="text" text="bind:seqno"/>
  51. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd"/>
  52. <Cell col="3" displaytype="text" edittype="text" text="bind:basenm"/>
  53. <Cell col="4" displaytype="text" edittype="text" text="bind:remfact"/>
  54. <Cell col="5" text="bind:deptcd"/>
  55. <Cell col="6" text="bind:orgbasecd"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. <Button id="btn_save" taborder="6" text="저장" class="btn4" position="absolute 1138 747 1194 769" onclick="btn_save_onclick" anchor="right bottom"/>
  61. </Layout>
  62. </Layouts>
  63. <Objects>
  64. <Dataset id="ds_send_savedutp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  65. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  66. <ColumnInfo>
  67. <Column id="basecd" type="STRING" size="256"/>
  68. <Column id="srchinstcd" type="STRING" size="256"/>
  69. </ColumnInfo>
  70. <Rows>
  71. <Row>
  72. <Col id="basecd"/>
  73. <Col id="srchinstcd"/>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. <Dataset id="ds_main_dutplst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_dutplst_item_oncolumnchanged">
  78. <ColumnInfo>
  79. <Column id="seqno" type="STRING" size="256"/>
  80. <Column id="basecd" type="STRING" size="256"/>
  81. <Column id="basenm" type="STRING" size="256"/>
  82. <Column id="remfact" type="STRING" size="256"/>
  83. <Column id="deptcd" type="STRING" size="256"/>
  84. <Column id="orgbasecd" type="STRING" size="256"/>
  85. </ColumnInfo>
  86. <Rows>
  87. <Row>
  88. <Col id="seqno"/>
  89. <Col id="basecd"/>
  90. <Col id="basenm"/>
  91. <Col id="remfact"/>
  92. <Col id="deptcd"/>
  93. <Col id="orgbasecd"/>
  94. </Row>
  95. </Rows>
  96. </Dataset>
  97. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  98. <ColumnInfo>
  99. <Column id="hidden" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. </Dataset>
  102. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  103. <ColumnInfo>
  104. <Column id="deptcd" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row>
  108. <Col id="deptcd"/>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. </Objects>
  113. <Bind>
  114. <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
  115. </Bind>
  116. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  117. * System Name :
  118. * Job Name :
  119. * Creator :
  120. * Make Date : 2017-12-04
  121. * Description :
  122. *---------------------------------------------------------------------------------------
  123. * Modify Date Modifier Modify Description
  124. *---------------------------------------------------------------------------------------
  125. * 2017-06-19 Live Converter TF->XP
  126. *
  127. *---------------------------------------------------------------------------------------
  128. ****************************************************************************************/
  129. //=======================================================================================
  130. // Lib Include
  131. //---------------------------------------------------------------------------------------
  132. include "com_commonxp::comm_main.xjs";
  133. //=======================================================================================
  134. // Global Form Variable
  135. //---------------------------------------------------------------------------------------
  136. var arErrorCode = new HashArray();
  137. //=======================================================================================
  138. // Function
  139. //---------------------------------------------------------------------------------------
  140. /*-**************************************************************************************
  141. * Argument : N/A
  142. * Description : 조회
  143. ****************************************************************************************/
  144. function call_TRAHB01201() {
  145. var oParam = {};
  146. oParam.id = "TRAHB01201";
  147. oParam.service = "healexambaseapp.DutpCode";
  148. oParam.method = "reqGetExecrList";
  149. oParam.inds = "req=ds_send";
  150. oParam.outds = "ds_main_dutplst_item=item";
  151. oParam.async = false;
  152. oParam.callback = "cf_TRAHB01201";
  153. tranf_submit(oParam);
  154. }
  155. function cf_TRAHB01201(sSvcId, nErrorCode, sErrorMsg) {
  156. arErrorCode.push(sSvcId, nErrorCode);
  157. }
  158. /*-**************************************************************************************
  159. * Argument : N/A
  160. * Description : 부서설정
  161. ****************************************************************************************/
  162. function fSetSuppDeptcd() {
  163. var dutplcecd = sysf_getUserInfo("dutplcecd");
  164. //var selectplcecd = getScreenPrestDeptCd();
  165. ds_init.setColumn( 0, "deptcd" , dutplcecd);
  166. ds_send.setColumn( 0, "srchinstcd" , sysf_getUserInfo("dutplceinstcd"));
  167. }
  168. /*-**************************************************************************************
  169. * Argument : N/A
  170. * Description : 저장
  171. ****************************************************************************************/
  172. function fSaveExer() {
  173. var dsUpdate = grdf_getGridUpdateData(grd_execrlst, "all");
  174. grdf_setStatusColumn(dsUpdate, "m");
  175. ds_send_savedutp.copyData(dsUpdate, true);
  176. //trace(ds_send_savedutp.saveXML());
  177. var oParam = {};
  178. oParam.id = "TXAHB01201";
  179. oParam.service = "healexambaseapp.DutpCode";
  180. oParam.method = "reqExeExecrCode";
  181. oParam.inds = "req=ds_send base=ds_send_savedutp";
  182. oParam.outds = "ds_main_dutplst_item=item";
  183. oParam.async = false;
  184. //oParam.typeStr = "m"
  185. //oParam.callback = "cf_TXAHB01201";
  186. tranf_submit(oParam);
  187. }
  188. //=======================================================================================
  189. // Event
  190. //---------------------------------------------------------------------------------------
  191. /****************************************************************************************
  192. * Components : Form
  193. * Description : 화면 처음 초기화시 폼초기화
  194. ****************************************************************************************/
  195. function SMAHB01200_onload(obj:Form, e:LoadEventInfo) {
  196. frmf_initForm(obj);
  197. //grdf_initGrid(grd_XXX);
  198. //grdf_setGridSort(grd_XXX);
  199. grdf_setRowTypeIcon(grd_execrlst, 0);
  200. fSetSuppDeptcd();
  201. call_TRAHB01201();
  202. }
  203. /****************************************************************************************
  204. * Components : Button
  205. * Description : 조회
  206. ****************************************************************************************/
  207. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo) {
  208. call_TRAHB01201();
  209. }
  210. /****************************************************************************************
  211. * Components : Edit
  212. * Description : 조회조건 입력 후 조회
  213. ****************************************************************************************/
  214. function grp_sea_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo) {
  215. if(e.keycode == 13) {
  216. obj.updateToDataset();
  217. grp_sea.btn_sea.click();
  218. }
  219. }
  220. /****************************************************************************************
  221. * Components : Button
  222. * Description : 행추가
  223. ****************************************************************************************/
  224. function btn_gedadd_onclick(obj:Button, e:ClickEventInfo) {
  225. var addRow = ds_main_dutplst_item.addRow();
  226. ds_main_dutplst_item.setColumn(addRow , "deptcd", ds_init.getColumn(0, "deptcd"));
  227. }
  228. /****************************************************************************************
  229. * Components : Button
  230. * Description : 행삭제
  231. ****************************************************************************************/
  232. function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
  233. var cRow = ds_main_dutplst_item.rowposition;
  234. if( ds_main_dutplst_item.getRowType(cRow) == 2 ) {
  235. ds_main_dutplst_item.deleteRow(cRow);
  236. }else{
  237. grdf_setStatus(grd_execrlst, "D", [cRow]);
  238. }
  239. }
  240. /****************************************************************************************
  241. * Components : Button
  242. * Description : 저장
  243. ****************************************************************************************/
  244. function btn_save_onclick(obj:Button, e:ClickEventInfo) {
  245. fSaveExer();
  246. }
  247. /****************************************************************************************
  248. * Components : Dataset
  249. * Description : 데이터 입력시
  250. ****************************************************************************************/
  251. function ds_main_dutplst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  252. {
  253. var col = e.col;
  254. var row = e.row;
  255. if(e.columnid == "basecd") {
  256. var count = -1;
  257. var chkRow = 0;
  258. var baseCd = obj.getColumn(row, col);
  259. //선행검사 중복체크
  260. for(var i = 0 ; i < obj.rowcount ; i++) {
  261. if(i != e.row && obj.getColumn(i, col) == baseCd) {
  262. sysf_messageBox("사번이 ","E006");
  263. obj.setColumn(row, col, "");
  264. return;
  265. }
  266. }
  267. }
  268. }
  269. ]]></Script>
  270. </Form>
  271. </FDL>