SMRPD02640_질병휴가및휴직자관리.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRPD02640" position="absolute 0 0 1197 782" titletext="SMRPD02640_질병휴가및휴직자관리" oninit="SMRPD02640_oninit" onload="SMRPD02640_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="질병휴가및휴직자관리" class="tit_1" position="absolute 0 0 230 25"/>
  8. <Shape id="line75" class="line_6" position="absolute 0 44 1195 50" anchor="left top right"/>
  9. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1136 23 1192 45" anchor="top right" onclick="btn_save_onclick"/>
  10. <Div id="group4" anchor="left top right" taborder="2" class="div_SA2" position="absolute 0 48 1195 108">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 8 1111 53" anchor="top right"/>
  14. <Button id="btn_search" taborder="4" text="조회" class="btn1" position="absolute 1124 19 1180 41" anchor="top right" onclick="group4_btn_search_onclick"/>
  15. <Static id="caption1" text="사원번호 :" class="search_name" position="absolute 452 34 538 51"/>
  16. <Button id="btn_emplno" taborder="5" class="icon_search" position="absolute 618 34 634 50" onclick="group4_btn_emplno_onclick"/>
  17. <Edit id="ipt_emplnm" taborder="6" class="input_search" enable="false" position="absolute 637 33 741 52"/>
  18. <Edit id="ipt_emplno" taborder="7" autoselect="true" autoskip="true" class="input_search" position="absolute 540 33 614 52" onkeyup="group4_ipt_emplno_onkeyup"/>
  19. <Static id="caption2" text="신청일자 :" class="search_name" position="absolute 451 11 540 27"/>
  20. <Calendar id="ipt_srvarmfromdd" taborder="8" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 540 9 639 28" mask="yyyy-mm-dd"/>
  21. <Calendar id="ipt_srvarmtodd" taborder="9" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 654 9 753 28" mask="yyyy-mm-dd"/>
  22. <Static id="caption7" text="~" position="absolute 642 12 653 27"/>
  23. <Combo id="cmb_instcd" taborder="10" class="combo_search" position="absolute 108 10 338 29"/>
  24. <Static id="caption8" text="소속기관 :" class="search_name" position="absolute 20 11 106 28"/>
  25. <Button id="btn_dutdept" taborder="11" class="icon_search" position="absolute 192 34 208 50" onclick="group4_btn_dutdept_onclick"/>
  26. <Static id="caption5" text="관리부서 :" class="search_name" position="absolute 20 33 107 50"/>
  27. <Edit id="ipt_dutdeptnm" taborder="12" class="input_search" enable="false" position="absolute 211 32 338 51"/>
  28. <Edit id="ipt_dutdeptcd" taborder="13" autoselect="true" autoskip="true" class="input_search" position="absolute 108 32 188 51" onkeyup="group4_ipt_dutdeptcd_onkeyup"/>
  29. </Layout>
  30. </Layouts>
  31. </Div>
  32. <Button id="btn_add" taborder="3" text="행추가" class="btn2" visible="false" position="absolute 1003 114 1056 133" anchor="top right" onclick="btn_add_onclick"/>
  33. <Button id="btn_del" taborder="4" text="행삭제" class="btn2" position="absolute 1059 114 1112 133" anchor="top right" onclick="btn_del_onclick"/>
  34. <Grid id="grd_dutschesicklist" taborder="5" binddataset="ds_main_dutschesick_dutschesicklist" useinputpanel="false" position="absolute 0 138 1194 778" autoenter="select" cellsizingtype="col" anchor="all" onexpanddown="grd_dutschesicklist_onexpanddown" onkeydown="grd_dutschesicklist_onkeydown">
  35. <Formats>
  36. <Format id="default">
  37. <Columns>
  38. <Column size="23" band="left"/>
  39. <Column size="53" band="left"/>
  40. <Column size="51" band="left"/>
  41. <Column size="57" band="left"/>
  42. <Column size="0" band="left"/>
  43. <Column size="80" band="left"/>
  44. <Column size="80" band="left"/>
  45. <Column size="40" band="left"/>
  46. <Column size="166" band="left"/>
  47. <Column size="60"/>
  48. <Column size="91"/>
  49. <Column size="60"/>
  50. <Column size="142"/>
  51. <Column size="80"/>
  52. <Column size="69"/>
  53. <Column size="66"/>
  54. <Column size="60"/>
  55. <Column size="227"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="24" band="head"/>
  61. <Row size="24"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell/>
  65. <Cell col="1" text="사번"/>
  66. <Cell col="2" text="성명"/>
  67. <Cell col="3" text="근무코드"/>
  68. <Cell col="4" text="신청일"/>
  69. <Cell col="5" text="시작일"/>
  70. <Cell col="6" text="종료일"/>
  71. <Cell col="7" text="일수"/>
  72. <Cell col="8" text="사유"/>
  73. <Cell col="9" text="질병코드"/>
  74. <Cell col="10" text="질병명"/>
  75. <Cell col="11" text="진단일수"/>
  76. <Cell col="12" text="진단병원"/>
  77. <Cell col="13" text="진단의사"/>
  78. <Cell col="14" text="면허번호"/>
  79. <Cell col="15" colspan="2" text="관리자사번 / 성명" taborder="undefined"/>
  80. <Cell col="17" text="비고"/>
  81. <Cell col="18" text="기관코드"/>
  82. <Cell col="19"/>
  83. </Band>
  84. <Band id="body">
  85. <Cell celltype="head"/>
  86. <Cell col="1" edittype="none" text="bind:emplno" enable="false"/>
  87. <Cell col="2" text="bind:emplnm"/>
  88. <Cell col="3" edittype="none" text="bind:dutcd"/>
  89. <Cell col="4" displaytype="none" edittype="none" text="bind:srvarmappdd"/>
  90. <Cell col="5" displaytype="date" edittype="none" text="bind:srvarmfromdd" calendardisplaynulltype="nulltext"/>
  91. <Cell col="6" displaytype="date" edittype="none" text="bind:srvarmtodd" calendardisplaynulltype="nulltext"/>
  92. <Cell col="7" text="bind:srvarmdayno"/>
  93. <Cell col="8" edittype="none" style="align:left top;padding:2 2 2 2;" text="bind:appresn" wordwrap="word"/>
  94. <Cell col="9" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:sickcode"/>
  95. <Cell col="10" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:sicknm"/>
  96. <Cell col="11" displaytype="text" edittype="text" style="align:right middle;background:#ff99ccff;" text="bind:diagday" maskchar=" "/>
  97. <Cell col="12" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:diaghosp"/>
  98. <Cell col="13" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:diagdr"/>
  99. <Cell col="14" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:licns"/>
  100. <Cell col="15" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:adminid" expandshow="show"/>
  101. <Cell col="16" style="background:#ff99ccff;" text="bind:adminnm"/>
  102. <Cell col="17" displaytype="text" edittype="text" style="background:#ff99ccff;" text="bind:cmt"/>
  103. <Cell col="18" text="bind:dutplcedeptcd"/>
  104. <Cell col="19" text="bind:instcd"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. <Shape id="line1" class="line_10" position="absolute 0 133 1194 139" anchor="left top right"/>
  110. <Static id="caption3" text="질병휴가 및 휴직자 현황" class="tit_2" position="absolute 0 117 185 138"/>
  111. <Button id="btn_excel" taborder="6" text="엑셀저장" class="btn7" position="absolute 1114 114 1194 133" anchor="top right" onclick="btn_excel_onclick"/>
  112. </Layout>
  113. </Layouts>
  114. <Objects>
  115. <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">
  116. <ColumnInfo>
  117. <Column id="instcd" type="STRING" size="256"/>
  118. <Column id="srvarmfromdd" type="STRING" size="256"/>
  119. <Column id="srvarmtodd" type="STRING" size="256"/>
  120. <Column id="dutunitcd" type="STRING" size="256"/>
  121. <Column id="dutunitnm" type="STRING" size="256"/>
  122. <Column id="emplno" type="STRING" size="256"/>
  123. <Column id="emplnm" type="STRING" size="256"/>
  124. </ColumnInfo>
  125. <Rows>
  126. <Row>
  127. <Col id="instcd"/>
  128. <Col id="srvarmfromdd"/>
  129. <Col id="srvarmtodd"/>
  130. <Col id="dutunitcd"/>
  131. <Col id="dutunitnm"/>
  132. <Col id="emplno"/>
  133. <Col id="emplnm"/>
  134. </Row>
  135. </Rows>
  136. </Dataset>
  137. <Dataset id="ds_main_dutschesick_dutschesicklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  140. <Column id="srvarmfromdd" type="STRING" size="256" sumtext="복무시작일자"/>
  141. <Column id="emplno" type="STRING" size="256" sumtext="사원번호"/>
  142. <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
  143. <Column id="dutcd" type="STRING" size="256" sumtext="근무코드"/>
  144. <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="근무지부서코드"/>
  145. <Column id="srvarmappdd" type="STRING" size="256" sumtext="복무신청일자"/>
  146. <Column id="srvarmtodd" type="STRING" size="256" sumtext="복무종료일자"/>
  147. <Column id="srvarmdayno" type="STRING" size="256" sumtext="일수"/>
  148. <Column id="appresn" type="STRING" size="256" sumtext="신청사유"/>
  149. <Column id="sickcode" type="STRING" size="256" sumtext="질병코드"/>
  150. <Column id="sicknm" type="STRING" size="256" sumtext="질병명"/>
  151. <Column id="diagday" type="STRING" size="256" sumtext="진단일수"/>
  152. <Column id="diaghosp" type="STRING" size="256" sumtext="진단병원"/>
  153. <Column id="diagdr" type="STRING" size="256" sumtext="진단의사"/>
  154. <Column id="licns" type="STRING" size="256" sumtext="면허번호"/>
  155. <Column id="adminid" type="STRING" size="256" sumtext="관리자"/>
  156. <Column id="adminnm" type="STRING" size="256" sumtext="관리자성명"/>
  157. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  158. </ColumnInfo>
  159. </Dataset>
  160. </Objects>
  161. <Bind>
  162. <BindItem id="item0" compid="group4.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  163. <BindItem id="item1" compid="group4.ipt_srvarmfromdd" propid="value" datasetid="ds_send_search" columnid="srvarmfromdd"/>
  164. <BindItem id="item2" compid="group4.ipt_srvarmtodd" propid="value" datasetid="ds_send_search" columnid="srvarmtodd"/>
  165. <BindItem id="item3" compid="group4.ipt_dutdeptcd" propid="value" datasetid="ds_send_search" columnid="dutunitcd"/>
  166. <BindItem id="item4" compid="group4.ipt_dutdeptnm" propid="value" datasetid="ds_send_search" columnid="dutunitnm"/>
  167. <BindItem id="item5" compid="group4.ipt_emplno" propid="value" datasetid="ds_send_search" columnid="emplno"/>
  168. <BindItem id="item6" compid="group4.ipt_emplnm" propid="value" datasetid="ds_send_search" columnid="emplnm"/>
  169. </Bind>
  170. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  171. * System Name :
  172. * Job Name :
  173. * Creator :
  174. * Make Date : 2017-06-19
  175. * Description :
  176. *---------------------------------------------------------------------------------------
  177. * Modify Date Modifier Modify Description
  178. *---------------------------------------------------------------------------------------
  179. * 2017-06-19 Live Converter TF->XP
  180. *
  181. *---------------------------------------------------------------------------------------
  182. ****************************************************************************************/
  183. include "com_commonxp::comm_main.xjs";
  184. include "mis_miscommonxp::MIS.xjs";
  185. include "mis_humtrafactmngtxp::RPB001.xjs";
  186. include "mis_dligclaznsmngtxp::RPD001.xjs";
  187. function SMRPD02640_oninit(obj:Form, e:InitEventInfo)
  188. {
  189. frmf_initForm(obj);
  190. }
  191. function SMRPD02640_onload(obj:Form, e:LoadEventInfo)
  192. {
  193. grdf_initGrid(grd_dutschesicklist);
  194. grdf_setRowTypeIcon(grd_dutschesicklist, 0);
  195. fInit();
  196. }
  197. function fInit()
  198. {
  199. misfGridInit(grd_dutschesicklist);
  200. misfComboInstCdListMulti("group4.cmb_instcd",utlf_getCurrentDate(),"","N");
  201. misfGetAndSetUserInfo();
  202. ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  203. ds_send_search.setColumn(0, "srvarmfromdd", utlf_getCurrentDate().toDate().getAddDate(-7).getDateFormat("YYYYMMDD"));
  204. ds_send_search.setColumn(0, "srvarmtodd", utlf_getCurrentDate());
  205. if(sysf_getUserInfo("userid") == "MIS" || sysf_getUserInfo("userid") == "97089")
  206. {
  207. group4.cmb_instcd.enable = true;
  208. }
  209. }
  210. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  211. {
  212. if(e.columnid == "dutunitcd")
  213. {
  214. group4.ipt_dutdeptcd.value = e.newvalue;
  215. group4.ipt_dutdeptcd.setFocus();
  216. misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd" );
  217. }
  218. if(e.columnid == "emplno")
  219. {
  220. group4.ipt_emplno.value = e.newvalue;
  221. group4.ipt_emplno.setFocus();
  222. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  223. }
  224. }
  225. function group4_ipt_dutdeptcd_onkeyup(obj:Edit, e:KeyEventInfo)
  226. {
  227. if(e.keycode == 13)
  228. {
  229. obj.updateToDataset();
  230. misfValidationCheck("02", "", "dutunitcd,dutunitnm", group4.cmb_instcd.value, "instcd" );
  231. }
  232. }
  233. function group4_btn_dutdept_onclick(obj:Button, e:ClickEventInfo)
  234. {
  235. misfOpenPopUpList("02", group4.ipt_dutdeptcd,"","dutunitcd,dutunitnm", group4.cmb_instcd.value + "," + group4.ipt_srvarmfromdd.value, "instcd,basedd");
  236. }
  237. function group4_ipt_emplno_onkeyup(obj:Edit, e:KeyEventInfo)
  238. {
  239. if(e.keycode == 13)
  240. {
  241. obj.updateToDataset();
  242. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  243. }
  244. }
  245. function group4_btn_emplno_onclick(obj:Button, e:ClickEventInfo)
  246. {
  247. rpbfOpenPopUpList("SPRPB00101", group4.ipt_emplno, "emplno,emplnm", "", "N");
  248. }
  249. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  250. {
  251. misfGridInit(grd_dutschesicklist);
  252. var oParam = {};
  253. oParam.id = "TRRPD02641";
  254. oParam.service = "dligclaznsmngtapp.DutAppMngt";
  255. oParam.method = "reqGetDutScheSickList";
  256. oParam.inds = "req=ds_send_search";
  257. oParam.outds = "ds_main_dutschesick_dutschesicklist=dutschesicklist";
  258. oParam.async = false;
  259. //oParam.callback = "cf_TRRPD02641";
  260. tranf_submit(oParam);
  261. }
  262. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  263. {
  264. var addRow = ds_main_dutschesick_dutschesicklist.addRow();
  265. ds_main_dutschesick_dutschesicklist.setColumn(addRow, "srvarmappdd", utlf_getCurrentDate());
  266. }
  267. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. misfGridIUD(grd_dutschesicklist, "D");
  270. }
  271. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  272. {
  273. misfSaveExcel(grd_dutschesicklist);
  274. }
  275. function grd_dutschesicklist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  276. {
  277. if (e.cell == obj.getBindCellIndex("Body", "emplno"))
  278. {
  279. rpbfOpenPopUpList("SPRPB00101", grd_dutschesicklist, "emplno,emplnm,jobkindnm,dutplcedeptnm", "", "N");
  280. }
  281. else if (e.cell == obj.getBindCellIndex("Body", "adminid"))
  282. {
  283. misfOpenPopUpList("01", grd_dutschesicklist, "", "adminid,adminnm");
  284. }
  285. }
  286. function grd_dutschesicklist_onkeydown(obj:Grid, e:KeyEventInfo)
  287. {
  288. if(e.keycode == 13)
  289. {
  290. if (e.cell == obj.getBindCellIndex("Body", "emplno"))
  291. {
  292. rpbfValidationCheck("EMPLNO", "emplno,emplnm,jobkindnm,dutplcedeptnm");
  293. }
  294. else if (e.cell == obj.getBindCellIndex("Body", "adminid"))
  295. {
  296. rpbfValidationCheck("EMPLNO", "adminid,adminnm");
  297. }
  298. var sickcode = obj.getBindCellIndex("Body", "sickcode");
  299. var licns = obj.getBindCellIndex("Body", "licns");
  300. if (obj.currentcell >= sickcode && obj.currentcell <= licns)
  301. {
  302. obj.setCellPos(parseInt(obj.currentcol+1));
  303. obj.showEditor(true);
  304. }
  305. }
  306. }
  307. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  308. {
  309. var oParam = {};
  310. oParam.id = "TXRPD02641";
  311. oParam.service = "dligclaznsmngtapp.DutAppMngt";
  312. oParam.method = "reqExeDutScheSickList";
  313. oParam.inds = "dutschesicklist=ds_main_dutschesick_dutschesicklist:u";
  314. oParam.outds = "";
  315. oParam.async = false;
  316. oParam.callback = "cf_TXRPD02641";
  317. tranf_submit(oParam);
  318. }
  319. function cf_TXRPD02641(sSvcId, nErrorCode, sErrorMsg)
  320. {
  321. if(nErrorCode < 0)
  322. {
  323. return;
  324. }
  325. else
  326. {
  327. group4.btn_search.click();
  328. }
  329. }
  330. ]]></Script>
  331. </Form>
  332. </FDL>