SMRWP22110_정근수당내역확인.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRWP22110" position="absolute 0 0 1196 786" titletext="급여지급 내역 확인" onload="SMRWP22110_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 65" align="align:center top;" id="btn_madd" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Static id="caption6" text="급여 지급 내역 확인" class="tit_1" position="absolute 0 0 243 25"/>
  13. <Shape id="line12" linetype="vertical" class="line_4" position="absolute 1059 35 1065 57" anchor="top right"/>
  14. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1072 35 1128 57" anchor="top right" onclick="btn_search_onclick"/>
  15. <Static id="caption1" text="사원번호 :" class="search_name" position="absolute 15 38 101 55"/>
  16. <Edit id="ipt_emplnm" taborder="2" class="input_search" enable="false" position="absolute 200 36 350 55"/>
  17. <Button id="btn_emplno" taborder="3" class="icon_search" enable="false" position="absolute 180 38 196 54" onclick="btn_emplno_onclick"/>
  18. <Edit id="ipt_emplno" taborder="4" class="input_search" enable="false" position="absolute 106 36 176 55" onkeydown="ipt_emplno_onkeydown"/>
  19. <Button id="button1" taborder="5" text="저장" class="btn4" position="absolute 1131 35 1187 57" anchor="top right" onclick="button1_onclick"/>
  20. <Static id="caption21" text="급여 지급 내역 확인 리스트" class="tit_2" position="absolute 0 76 405 97"/>
  21. <Shape id="line16" class="line_10" position="absolute 0 92 1195 98" anchor="left top right"/>
  22. <Grid id="grd_paychklist" taborder="6" binddataset="ds_main_payinfo_paychklist" useinputpanel="false" position="absolute 0 97 1195 784" anchor="all">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="25" band="left"/>
  27. <Column size="60"/>
  28. <Column size="70"/>
  29. <Column size="50"/>
  30. <Column size="110"/>
  31. <Column size="90"/>
  32. <Column size="80"/>
  33. <Column size="0"/>
  34. <Column size="70"/>
  35. <Column size="70"/>
  36. <Column size="0"/>
  37. <Column size="100"/>
  38. <Column size="0"/>
  39. <Column size="100"/>
  40. <Column size="85"/>
  41. <Column size="85"/>
  42. <Column size="85"/>
  43. <Column size="0"/>
  44. <Column size="60"/>
  45. </Columns>
  46. <Rows>
  47. <Row size="24" band="head"/>
  48. <Row size="24"/>
  49. </Rows>
  50. <Band id="head">
  51. <Cell/>
  52. <Cell col="1" text="사번"/>
  53. <Cell col="2" text="이름"/>
  54. <Cell col="3" text="기관"/>
  55. <Cell col="4" text="부서"/>
  56. <Cell col="5" text="직종"/>
  57. <Cell col="6" text="직급"/>
  58. <Cell col="7" text="직위"/>
  59. <Cell col="8" text="급여지급월"/>
  60. <Cell col="9" text="급여지급일"/>
  61. <Cell col="10" text="급여구분"/>
  62. <Cell col="11" text="급여구분"/>
  63. <Cell col="12" text="급여항목"/>
  64. <Cell col="13" text="급여항목"/>
  65. <Cell col="14" text="기지급금액"/>
  66. <Cell col="15" text="재정산금액"/>
  67. <Cell col="16" text="차액"/>
  68. <Cell col="17" text="정산대상여부"/>
  69. <Cell col="18" text="확인여부"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head"/>
  73. <Cell col="1" text="bind:emplno"/>
  74. <Cell col="2" text="bind:name"/>
  75. <Cell col="3" displaytype="combo" edittype="combo" text="bind:instcd" combodataset="ds_cmb_instcd" combocodecol="value" combodatacol="label"/>
  76. <Cell col="4" text="bind:deptnm"/>
  77. <Cell col="5" text="bind:jobkindnm"/>
  78. <Cell col="6" text="bind:jobgradnm"/>
  79. <Cell col="7" text="bind:jobposnm"/>
  80. <Cell col="8" text="bind:payym" mask="@@@@-@@"/>
  81. <Cell col="9" text="bind:paydd" mask="@@@@-@@-@@"/>
  82. <Cell col="10" text="bind:saldfrayflag"/>
  83. <Cell col="11" text="bind:saldfrayflagnm"/>
  84. <Cell col="12" text="bind:payitemcd"/>
  85. <Cell col="13" text="bind:payitemnm"/>
  86. <Cell col="14" displaytype="number" text="bind:payitemamt"/>
  87. <Cell col="15" displaytype="number" text="bind:newpayamt"/>
  88. <Cell col="16" displaytype="number" text="bind:chaamt"/>
  89. <Cell col="17" text="bind:chkflag"/>
  90. <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:magamflag" expr="expr:(magamflag==&quot;Y&quot;||magamflag==1)?1:0"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Button id="btn_excsave" taborder="7" text="엑셀저장" class="btn7" position="absolute 1115 70 1195 92" anchor="top right" onclick="btn_excsave_onclick"/>
  96. </Layout>
  97. </Layouts>
  98. <Objects>
  99. <Dataset id="ds_main_payinfo_paychklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="emplno" type="STRING"/>
  102. <Column id="name" type="STRING"/>
  103. <Column id="instcd" type="STRING"/>
  104. <Column id="deptnm" type="STRING"/>
  105. <Column id="jobkindnm" type="STRING"/>
  106. <Column id="jobgradnm" type="STRING"/>
  107. <Column id="jobposnm" type="STRING"/>
  108. <Column id="payym" type="STRING"/>
  109. <Column id="paydd" type="STRING"/>
  110. <Column id="saldfrayflag" type="STRING"/>
  111. <Column id="saldfrayflagnm" type="STRING"/>
  112. <Column id="payitemcd" type="STRING"/>
  113. <Column id="payitemnm" type="STRING"/>
  114. <Column id="payitemamt" type="STRING"/>
  115. <Column id="newpayamt" type="STRING"/>
  116. <Column id="chaamt" type="STRING"/>
  117. <Column id="chkflag" type="STRING"/>
  118. <Column id="magamflag" type="STRING"/>
  119. </ColumnInfo>
  120. </Dataset>
  121. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
  122. <ColumnInfo>
  123. <Column id="emplno" type="STRING" size="256"/>
  124. <Column id="emplnm" type="STRING" size="256"/>
  125. <Column id="payym" type="STRING" size="256"/>
  126. <Column id="paydd" type="STRING" size="256"/>
  127. <Column id="saldfrayflag" type="STRING" size="256"/>
  128. <Column id="payitemcd" type="STRING" size="256"/>
  129. </ColumnInfo>
  130. <Rows>
  131. <Row>
  132. <Col id="emplno"/>
  133. <Col id="emplnm"/>
  134. <Col id="payym"/>
  135. <Col id="paydd"/>
  136. <Col id="saldfrayflag"/>
  137. <Col id="payitemcd"/>
  138. </Row>
  139. </Rows>
  140. </Dataset>
  141. <Dataset id="ds_send_saveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  142. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  143. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  144. <Dataset id="ds_cmbauth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  145. <Dataset id="ds_cmb_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="label" type="STRING" size="256"/>
  148. <Column id="value" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="label">본원</Col>
  153. <Col id="value">031</Col>
  154. </Row>
  155. <Row>
  156. <Col id="label">칠곡</Col>
  157. <Col id="value">032</Col>
  158. </Row>
  159. </Rows>
  160. </Dataset>
  161. </Objects>
  162. <Bind>
  163. <BindItem id="item0" compid="ipt_emplno" propid="value" datasetid="ds_send_search" columnid="emplno"/>
  164. <BindItem id="item1" compid="ipt_emplnm" propid="value" datasetid="ds_send_search" columnid="emplnm"/>
  165. </Bind>
  166. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  167. * System Name :
  168. * Job Name :
  169. * Creator :
  170. * Make Date : 2017-06-19
  171. * Description :
  172. *---------------------------------------------------------------------------------------
  173. * Modify Date Modifier Modify Description
  174. *---------------------------------------------------------------------------------------
  175. * 2017-06-19 Live Converter TF->XP
  176. *
  177. *---------------------------------------------------------------------------------------
  178. ****************************************************************************************/
  179. //=======================================================================================
  180. // Lib Include
  181. //---------------------------------------------------------------------------------------
  182. include "com_commonxp::comm_main.xjs";
  183. include "mis_miscommonxp::MIS.xjs";
  184. include "mis_miscommonxp::RSZ001.xjs";
  185. include "mis_humtrafactmngtxp::RPB001.xjs";
  186. //include "mis_purcbasexp::SMRFE00200.xjs";
  187. //=======================================================================================
  188. // Global Form Variable
  189. //---------------------------------------------------------------------------------------
  190. var arErrorCode = new HashArray();
  191. //=======================================================================================
  192. // Function
  193. //---------------------------------------------------------------------------------------
  194. /****************************************************************************************
  195. * Argument : N/A
  196. * Description : 초기화
  197. ****************************************************************************************/
  198. //=======================================================================================
  199. // Event
  200. //---------------------------------------------------------------------------------------
  201. /****************************************************************************************
  202. * Components : Form
  203. * Description : 화면 처음 초기화시 폼초기화
  204. ****************************************************************************************/
  205. function SMRWP22100_onload(obj:Form, e:LoadEventInfo)
  206. {
  207. frmf_initForm(obj); // 폼 초기화
  208. grdf_setRowTypeIcon(grd_paychklist, 0); // 그리드 상태 표시
  209. sysf_messageBox("★ [확인여부] 체크 후 저장 필수 ★", "I999");
  210. misfGetUserAuth();
  211. if(DUTY_PAY_YN == "Y"){
  212. ipt_emplno.enable = true;
  213. ipt_emplnm.enable = true;
  214. btn_emplno.enable = true;
  215. } else {
  216. ipt_emplno.enable = false;
  217. ipt_emplnm.enable = false;
  218. btn_emplno.enable = false;
  219. }
  220. ds_send_search.setColumn( 0, "emplno", sysf_getUserInfo("userid"));
  221. ds_send_search.setColumn( 0, "emplnm", sysf_getUserInfo("usernm"));
  222. ds_send_search.setColumn( 0, "payym", '201601');
  223. ds_send_search.setColumn( 0, "paydd", '20160115');
  224. ds_send_search.setColumn( 0, "saldfrayflag", '1');
  225. ds_send_search.setColumn( 0, "payitemcd", '10460');
  226. }
  227. /****************************************************************************************
  228. * Components : Edit
  229. * Description : 사원번호 입력 검색
  230. ****************************************************************************************/
  231. function ipt_emplno_onkeydown(obj:Edit, e:KeyEventInfo)
  232. {
  233. if(e.keycode == 13)
  234. {
  235. if(ds_send_search.getColumn(0,"emplno") == obj.text) return;
  236. obj.updateToDataset();
  237. }
  238. }
  239. /****************************************************************************************
  240. * Components : Dataset
  241. * Description : 사원번호 입력 검색
  242. ****************************************************************************************/
  243. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  244. {
  245. if(e.columnid == "emplno") {
  246. ipt_emplno.value = e.newvalue;
  247. ipt_emplno.setFocus();
  248. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  249. if(!utlf_isNull(ds_send_search.getColumn(0,"emplnm"))) btn_search.click();
  250. }
  251. }
  252. /****************************************************************************************
  253. * Components : Button
  254. * Description : 사원번호 검색 팝업
  255. ****************************************************************************************/
  256. function btn_emplno_onclick(obj:Button, e:ClickEventInfo)
  257. {
  258. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
  259. if(!utlf_isNull(ds_send.getColumn(0,"emplnm"))) btn_search.click();
  260. }
  261. /****************************************************************************************
  262. * Components : Button
  263. * Description : 조회
  264. ****************************************************************************************/
  265. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  266. {
  267. misfGridInit(grd_paychklist);
  268. var oParam = {};
  269. oParam.id = "TRRWP22111";
  270. oParam.service = "paybnusmngtapp.PayCalcMngt";
  271. oParam.method = "reqGetPayChkInfoList";
  272. oParam.inds = "req=ds_send_search";
  273. oParam.outds = "ds_main_payinfo_paychklist=paychklist";
  274. oParam.async = true;
  275. //oParam.callback = "cf_TRRWP22111";
  276. tranf_submit(oParam);
  277. }
  278. /****************************************************************************************
  279. * Components : Button
  280. * Description : 저장
  281. ****************************************************************************************/
  282. function button1_onclick(obj:Button, e:ClickEventInfo)
  283. {
  284. dsf_createDs("ds_send_saveinfo");
  285. var dsUpdate = grdf_getGridUpdateData(grd_famylist, "all");
  286. grdf_setStatusColumn(dsUpdate, "status");
  287. ds_send_saveinfo.copyData(dsUpdate, true);
  288. var oParam = {};
  289. oParam.id = "TXRWP22111";
  290. oParam.service = "paybnusmngtapp.PayCalcMngt";
  291. oParam.method = "reqSetPayChkInfoList";
  292. oParam.inds = "saveinfo=ds_send_saveinfo";
  293. oParam.outds = "";
  294. oParam.async = false;
  295. //oParam.callback = "cf_TXRWP22111";
  296. tranf_submit(oParam);
  297. btn_search.click();
  298. }
  299. /****************************************************************************************
  300. * Components : Button
  301. * Description : 엑셀저장
  302. ****************************************************************************************/
  303. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  304. {
  305. misfSaveExcel(grd_paychklist);
  306. }
  307. ]]></Script>
  308. </Form>
  309. </FDL>