SMRWP22100_가족수당신청내역확인.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRWP22100" position="absolute 0 0 1197 793" titletext="가족수당 지급 대상 현황 확인" onload="SMRWP22100_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" taborder="2">
  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 967 35 973 57" anchor="top right"/>
  14. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 979 35 1035 57" onclick="btn_search_onclick" anchor="top right"/>
  15. <Static id="caption1" text="사원번호 :" class="search_name" position="absolute 15 38 101 55"/>
  16. <Edit id="ipt_emplnm" taborder="1" class="input_search" enable="false" position="absolute 200 36 350 55"/>
  17. <Button id="btn_emplno" taborder="4" class="icon_search" enable="false" position="absolute 180 38 196 54" onclick="btn_emplno_onclick"/>
  18. <Edit id="ipt_emplno" taborder="0" 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 1037 35 1093 57" onclick="button1_onclick" anchor="top right"/>
  20. <Button id="button2" taborder="6" text="확인 HELP" class="btn4" position="absolute 1095 35 1187 57" onclick="button2_onclick" anchor="top right"/>
  21. <Static id="caption21" text="가족수당 신청 리스트" class="tit_2" position="absolute 0 76 174 97"/>
  22. <Shape id="line16" class="line_10" position="absolute 0 92 1195 98" anchor="left top right"/>
  23. <Grid id="grd_famylist" taborder="7" binddataset="ds_main_famyinfo_famylist" useinputpanel="false" position="absolute 0 97 1195 562" anchor="all">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="25" band="left"/>
  28. <Column size="63"/>
  29. <Column size="110"/>
  30. <Column size="60"/>
  31. <Column size="70"/>
  32. <Column size="90"/>
  33. <Column size="80"/>
  34. <Column size="0"/>
  35. <Column size="70"/>
  36. <Column size="70"/>
  37. <Column size="100"/>
  38. <Column size="0"/>
  39. <Column size="60"/>
  40. <Column size="120"/>
  41. <Column size="95"/>
  42. <Column size="120"/>
  43. <Column size="60"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell/>
  51. <Cell col="1" text="기관"/>
  52. <Cell col="2" text="부서"/>
  53. <Cell col="3" text="사번"/>
  54. <Cell col="4" text="이름"/>
  55. <Cell col="5" text="직종"/>
  56. <Cell col="6" text="직급"/>
  57. <Cell col="7" text="관계코드"/>
  58. <Cell col="8" text="관계"/>
  59. <Cell col="9" text="가족이름"/>
  60. <Cell col="10" text="주민번호"/>
  61. <Cell col="11" text="주민번호전체"/>
  62. <Cell col="12" text="지급제외"/>
  63. <Cell col="13" text="제외사유"/>
  64. <Cell col="14" text="제외사유발생일"/>
  65. <Cell col="15" text="비고"/>
  66. <Cell col="16" text="확인여부"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell celltype="head"/>
  70. <Cell col="1" text="bind:instcd"/>
  71. <Cell col="2" text="bind:deptnm"/>
  72. <Cell col="3" text="bind:emplno"/>
  73. <Cell col="4" text="bind:name"/>
  74. <Cell col="5" text="bind:jobkindnm"/>
  75. <Cell col="6" text="bind:jobgradnm"/>
  76. <Cell col="7" text="bind:relation"/>
  77. <Cell col="8" text="bind:relationnm"/>
  78. <Cell col="9" text="bind:relname"/>
  79. <Cell col="10" text="bind:rregno"/>
  80. <Cell col="11" text="bind:rregnoall"/>
  81. <Cell col="12" displaytype="checkbox" edittype="checkbox" text="bind:nopayflag" expr="expr:(nopayflag==&quot;Y&quot;||nopayflag==1)?1:0"/>
  82. <Cell col="13" displaytype="combo" edittype="combo" text="bind:nopayresn" combodataset="ds_cmb_nopayresn" combocodecol="value" combodatacol="label"/>
  83. <Cell col="14" displaytype="date" edittype="date" style="padding:0 0 0 0;" text="bind:nopaydate" calendardisplay="display"/>
  84. <Cell col="15" displaytype="text" edittype="text" text="bind:cmt"/>
  85. <Cell col="16" displaytype="checkbox" edittype="checkbox" text="bind:magamflag" expr="expr:(magamflag==&quot;Y&quot;||magamflag==1)?1:0"/>
  86. </Band>
  87. </Format>
  88. </Formats>
  89. </Grid>
  90. <Button id="btn_excsave" taborder="8" text="엑셀저장" class="btn7" position="absolute 1115 70 1195 92" onclick="btn_excsave_onclick" anchor="top right"/>
  91. <ImageViewer id="img1" taborder="9" image="URL('IMG::mis/famycheck1.png')" position="absolute 0 564 726 789" anchor="left bottom"/>
  92. </Layout>
  93. </Layouts>
  94. <Objects>
  95. <Dataset id="ds_cmbauth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  96. <ColumnInfo>
  97. <Column id="cmbauth" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. </Dataset>
  100. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_search_oncolumnchanged">
  101. <ColumnInfo>
  102. <Column id="emplno" type="STRING" size="256"/>
  103. <Column id="emplnm" type="STRING" size="256"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row>
  107. <Col id="emplno"/>
  108. <Col id="emplnm"/>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  113. <ColumnInfo>
  114. <Column id="saveinfo" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_main_famyinfo_famylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_famyinfo_famylist_oncolumnchanged">
  118. </Dataset>
  119. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  120. <ColumnInfo>
  121. <Column id="temp" type="STRING" size="256"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row>
  125. <Col id="temp"/>
  126. </Row>
  127. </Rows>
  128. </Dataset>
  129. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  130. <ColumnInfo/>
  131. </Dataset>
  132. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  133. <ColumnInfo>
  134. <Column id="init" type="STRING" size="256"/>
  135. </ColumnInfo>
  136. <Rows>
  137. <Row>
  138. <Col id="init"/>
  139. </Row>
  140. </Rows>
  141. </Dataset>
  142. <Dataset id="ds_cmb_nopayresn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="label" type="STRING" size="256"/>
  145. <Column id="value" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. <Rows>
  148. <Row>
  149. <Col id="label">세대분가</Col>
  150. <Col id="value">01</Col>
  151. </Row>
  152. <Row>
  153. <Col id="label">연령도달</Col>
  154. <Col id="value">02</Col>
  155. </Row>
  156. <Row>
  157. <Col id="label">이혼</Col>
  158. <Col id="value">03</Col>
  159. </Row>
  160. <Row>
  161. <Col id="label">사망</Col>
  162. <Col id="value">04</Col>
  163. </Row>
  164. <Row>
  165. <Col id="label">기타</Col>
  166. <Col id="value">99</Col>
  167. </Row>
  168. </Rows>
  169. </Dataset>
  170. </Objects>
  171. <Bind>
  172. <BindItem id="item0" compid="ipt_emplnm" propid="value" datasetid="ds_send_search" columnid="emplnm"/>
  173. <BindItem id="item1" compid="ipt_emplno" propid="value" datasetid="ds_send_search" columnid="emplno"/>
  174. </Bind>
  175. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  176. * System Name :
  177. * Job Name :
  178. * Creator :
  179. * Make Date : 2017-06-19
  180. * Description :
  181. *---------------------------------------------------------------------------------------
  182. * Modify Date Modifier Modify Description
  183. *---------------------------------------------------------------------------------------
  184. * 2017-06-19 Live Converter TF->XP
  185. *
  186. *---------------------------------------------------------------------------------------
  187. ****************************************************************************************/
  188. //=======================================================================================
  189. // Lib Include
  190. //---------------------------------------------------------------------------------------
  191. include "com_commonxp::comm_main.xjs";
  192. include "mis_miscommonxp::MIS.xjs";
  193. include "mis_miscommonxp::RSZ001.xjs";
  194. include "mis_humtrafactmngtxp::RPB001.xjs";
  195. //include "mis_purcbasexp::SMRFE00200.xjs";
  196. //=======================================================================================
  197. // Global Form Variable
  198. //---------------------------------------------------------------------------------------
  199. var arErrorCode = new HashArray();
  200. //=======================================================================================
  201. // Function
  202. //---------------------------------------------------------------------------------------
  203. /****************************************************************************************
  204. * Argument : N/A
  205. * Description : 초기화
  206. ****************************************************************************************/
  207. //=======================================================================================
  208. // Event
  209. //---------------------------------------------------------------------------------------
  210. /****************************************************************************************
  211. * Components : Form
  212. * Description : 화면 처음 초기화시 폼초기화
  213. ****************************************************************************************/
  214. function SMRWP22100_onload(obj:Form, e:LoadEventInfo)
  215. {
  216. frmf_initForm(obj); // 폼 초기화
  217. grdf_setRowTypeIcon(grd_famylist, 0); // 그리드 상태 표시
  218. sysf_messageBox("★ [확인여부] 체크 후 저장 필수 ★", "I999");
  219. misfGetUserAuth();
  220. if(DUTY_WELF_YN == "Y"){
  221. ipt_emplno.enable = true;
  222. ipt_emplnm.enable = true;
  223. btn_emplno.enable = true;
  224. } else {
  225. ipt_emplno.enable = false;
  226. ipt_emplnm.enable = false;
  227. btn_emplno.enable = false;
  228. }
  229. ds_send_search.setColumn( 0, "emplno", sysf_getUserInfo("userid"));
  230. ds_send_search.setColumn( 0, "emplnm", sysf_getUserInfo("usernm"));
  231. }
  232. /****************************************************************************************
  233. * Components : Edit
  234. * Description : 사원번호 입력 검색
  235. ****************************************************************************************/
  236. function ipt_emplno_onkeydown(obj:Edit, e:KeyEventInfo)
  237. {
  238. if(e.keycode == 13)
  239. {
  240. if(ds_send_search.getColumn(0,"emplno") == obj.text) return;
  241. obj.updateToDataset();
  242. }
  243. }
  244. /****************************************************************************************
  245. * Components : Dataset
  246. * Description : 사원번호 입력 검색
  247. ****************************************************************************************/
  248. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  249. {
  250. if(e.columnid == "emplno") {
  251. ipt_emplno.value = e.newvalue;
  252. ipt_emplno.enable = true;
  253. ipt_emplno.setFocus();
  254. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  255. ipt_emplno.enable = false;
  256. if(!utlf_isNull(ds_send_search.getColumn(0,"emplnm"))) btn_search.click();
  257. }
  258. }
  259. /****************************************************************************************
  260. * Components : Button
  261. * Description : 사원번호 검색 팝업
  262. ****************************************************************************************/
  263. function btn_emplno_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
  266. if(!utlf_isNull(ds_send.getColumn(0,"emplnm"))) btn_search.click();
  267. }
  268. /****************************************************************************************
  269. * Components : Button
  270. * Description : 조회
  271. ****************************************************************************************/
  272. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  273. {
  274. var oParam = {};
  275. oParam.id = "TRRWP22101";
  276. oParam.service = "paybnusmngtapp.PayCalcMngt";
  277. oParam.method = "reqGetFamyInfoList";
  278. oParam.inds = "req=ds_send_search";
  279. oParam.outds = "ds_main_famyinfo_famylist=famylist";
  280. oParam.async = true;
  281. //oParam.callback = "cf_TRRWP22101";
  282. tranf_submit(oParam);
  283. }
  284. /****************************************************************************************
  285. * Components : Button
  286. * Description : 저장
  287. ****************************************************************************************/
  288. function button1_onclick(obj:Button, e:ClickEventInfo)
  289. {
  290. for (var i = 0 ; i < ds_main_famyinfo_famylist.rowcount ; i++) {
  291. if (ds_main_famyinfo_famylist.getColumn(i, "nopayflag") == "Y" && dsf_getColumnNullToEmpty(ds_main_famyinfo_famylist, i, "nopayresn") == "") {
  292. sysf_messageBox(i + "번째 행의 지급제외 사유가 입력되지 않았습니다", "E999");
  293. return;
  294. }
  295. }
  296. dsf_createDs("ds_send_saveinfo");
  297. var dsUpdate = grdf_getGridUpdateData(grd_famylist, "all");
  298. grdf_setStatusColumn(dsUpdate, "status");
  299. ds_send_saveinfo.copyData(dsUpdate, true);
  300. var oParam = {};
  301. oParam.id = "TXRWP22101";
  302. oParam.service = "paybnusmngtapp.PayCalcMngt";
  303. oParam.method = "reqSetFamyInfoList";
  304. oParam.inds = "saveinfo=ds_send_saveinfo";
  305. oParam.outds = "";
  306. oParam.async = false;
  307. //oParam.callback = "cf_TXRWP22101";
  308. tranf_submit(oParam);
  309. btn_search.click();
  310. }
  311. /****************************************************************************************
  312. * Components : Button
  313. * Description : 사원번호 검색 팝업
  314. ****************************************************************************************/
  315. function button2_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. var filepath = "mis/rpv/req//20160212/20160212162154785000_99207";
  318. dsf_createDsRow("ds_req", [
  319. {col:"filepath", type:"STRING", size:256, val:filepath}
  320. ]);
  321. var oParam = {};
  322. oParam.id = "TRRWC03003";
  323. oParam.service = "paybaseinfomngtapp.PayBaseInfoMngt";
  324. oParam.method = "reqGetManualAtt";
  325. oParam.inds = "req=ds_req";
  326. oParam.outds = "ds_file_attachfile=attachfile";
  327. oParam.async = false;
  328. oParam.callback = "cf_TRRWC03003";
  329. tranf_submit(oParam);
  330. }
  331. function cf_TRRWC03003(sSvcId, nErrorCode, sErrorMsg) {
  332. if(nErrorCode < 0) return;
  333. var filenm = "★가족수당 개별 지급현황 확인 및 정정방법.ppt";
  334. var fd = new FileDialog;
  335. var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
  336. if (objVFile != null)
  337. {
  338. var temp = dsf_readFileFromDs(objVFile.fullpath, ds_file_attachfile, 0, "filedata"); // 파일저장
  339. sleep(1000);
  340. if( !utlf_isNull(temp) )
  341. {
  342. var rtn = sysf_messageBox("파일을", "Q004");
  343. if( rtn == 6 )
  344. {
  345. var text = new String(objVFile.fullpath);
  346. var replaceText = text.replace(" ", "");
  347. if( text.length != replaceText.length )
  348. {
  349. sysf_messageBox("공백이 포함된 [파일명/폴더]는 자동열기가 실행되지 않습니다.", "E999", "");
  350. return;
  351. }
  352. else
  353. {
  354. // system.execShell(objVFile.fullpath);
  355. var path = objVFile.fullpath;
  356. var sArg = "";
  357. var objExtCommon = new ExtCommon();
  358. objExtCommon.executeProcess(path, sArg);
  359. }
  360. }
  361. }
  362. }
  363. }
  364. /****************************************************************************************
  365. * Components : Button
  366. * Description : 엑셀저장
  367. ****************************************************************************************/
  368. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  369. {
  370. misfSaveExcel(grd_famylist);
  371. }
  372. /****************************************************************************************
  373. * Components : Dataset
  374. * Description : 체크박스 설정
  375. ****************************************************************************************/
  376. function ds_main_famyinfo_famylist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  377. {
  378. if(e.columnid=="nopayflag" || e.columnid=="magamflag") {
  379. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  380. }
  381. }
  382. ]]></Script>
  383. </Form>
  384. </FDL>