SMRPD01500_월근태집계.xfdl 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRPD01500" position="absolute 0 0 581 275" titletext="월근태집계" oninit="SMRPD01500_oninit" onload="SMRPD01500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Edit id="ipt_errormsg" taborder="3" visible="false" position="absolute 89 78 304 97" autoselect="true" autoskip="true"/>
  8. <Static id="caption6" text="월근태집계" class="tit_1" position="absolute 0 0 220 25"/>
  9. <Shape id="line204" linetype="horizontal" class="line_2" position="absolute 0 97 280 103"/>
  10. <Shape id="line203" class="line_10" position="absolute 0 47 280 53"/>
  11. <Shape id="line1" class="line_3" position="absolute 0 125 280 131"/>
  12. <Static id="caption278" text="월근태집계" class="tit_2" position="absolute 0 31 157 52"/>
  13. <Calendar id="ipt_payym" taborder="1" class="input_default" position="absolute 89 103 274 122" mask="yyyy-mm" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="ipt_payym_onchanged"/>
  14. <Static id="cap_payym" text="근무년월" class="cell_1" position="absolute 0 100 87 126"/>
  15. <Radio id="rdo_idflag" taborder="2" columncount="2" rowcount="0" innerdataset="@ds_init_radio1" codecolumn="value" datacolumn="label" position="absolute 92 77 187 96"/>
  16. <Static id="cap_idflag" text="작업구분" class="cell_1" position="absolute 0 76 87 99"/>
  17. <Combo id="cmb_instcd" taborder="4" class="combo_search" position="absolute 89 54 280 73"/>
  18. <Static id="caption1" text="근무기관" class="cell_1" position="absolute 0 52 87 75"/>
  19. <Shape id="line2" class="line_6" position="absolute 0 128 306 134"/>
  20. <Button id="btn_save" taborder="5" text="작업" class="btn4" position="absolute 250 132 306 154" onclick="btn_save_onclick"/>
  21. </Layout>
  22. </Layouts>
  23. <Objects>
  24. <Dataset id="ds_send_paycalc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  25. <ColumnInfo>
  26. <Column id="instcd" type="STRING" size="256"/>
  27. <Column id="idflag" type="STRING" size="256"/>
  28. <Column id="payym" type="STRING" size="256"/>
  29. </ColumnInfo>
  30. <Rows>
  31. <Row>
  32. <Col id="idflag">I</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  37. <ColumnInfo>
  38. <Column id="errormsg" type="STRING" size="256"/>
  39. </ColumnInfo>
  40. <Rows>
  41. <Row/>
  42. </Rows>
  43. </Dataset>
  44. <Dataset id="ds_init_radio1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  45. <ColumnInfo>
  46. <Column id="label" type="STRING" size="256"/>
  47. <Column id="value" type="STRING" size="256"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row>
  51. <Col id="label">생성</Col>
  52. <Col id="value">I</Col>
  53. </Row>
  54. <Row>
  55. <Col id="label">삭제</Col>
  56. <Col id="value">D</Col>
  57. </Row>
  58. </Rows>
  59. </Dataset>
  60. </Objects>
  61. <Bind>
  62. <BindItem id="item0" compid="cmb_instcd" propid="value" datasetid="ds_send_paycalc" columnid="instcd"/>
  63. <BindItem id="item1" compid="rdo_idflag" propid="value" datasetid="ds_send_paycalc" columnid="idflag"/>
  64. <BindItem id="item2" compid="ipt_errormsg" propid="value" datasetid="ds_temp" columnid="errormsg"/>
  65. <BindItem id="item3" compid="ipt_payym" propid="value" datasetid="ds_send_paycalc" columnid="payym"/>
  66. </Bind>
  67. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  68. * System Name :
  69. * Job Name :
  70. * Creator :
  71. * Make Date : 2017-06-19
  72. * Description :
  73. *---------------------------------------------------------------------------------------
  74. * Modify Date Modifier Modify Description
  75. *---------------------------------------------------------------------------------------
  76. * 2017-06-19 Live Converter TF->XP
  77. *
  78. *---------------------------------------------------------------------------------------
  79. ****************************************************************************************/
  80. include "com_commonxp::comm_main.xjs";
  81. include "mis_miscommonxp::MIS.xjs";
  82. include "mis_humtrafactmngtxp::RPB001.xjs";
  83. function SMRPD01500_oninit(obj:Form, e:InitEventInfo)
  84. {
  85. frmf_initForm(obj);
  86. }
  87. function SMRPD01500_onload(obj:Form, e:LoadEventInfo)
  88. {
  89. fSetPreMonth();
  90. misfComboInstCdListMulti("cmb_instcd",ds_send_paycalc.getColumn(0, "payym")+String(utlf_getCurrentDate()).substr(6, 2),"","N");
  91. misfGetAndSetUserInfo();
  92. misfGetUserAuth();
  93. ds_send_paycalc.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  94. fSetControlAuth();
  95. btn_save.enable = frmf_checkAuth("X");
  96. }
  97. function fSetPreMonth()
  98. {
  99. var sYm = utlf_getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD").substr(0, 6);
  100. ds_send_paycalc.setColumn(0, "payym", sYm);
  101. }
  102. function fSetControlAuth()
  103. {
  104. if(sysf_getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  105. {
  106. cmb_instcd.enable = true;
  107. }
  108. else if(sysf_getUserInfo("dutplceinstcd") != "001" && DUTY_PART_YN == "Y")
  109. {
  110. cmb_instcd.enable = false;
  111. }
  112. }
  113. function ipt_payym_onchanged(obj:Calendar, e:ChangeEventInfo)
  114. {
  115. var instcd = cmb_instcd.value;
  116. var date = String(obj.value).substr(0,6);
  117. if( utlf_getStringLength(date) == "6" )
  118. {
  119. cmb_instcd.value = "";
  120. ds_send_paycalc.setColumn(0, "instcd", "");
  121. misfComboInstCdListMulti("cmb_instcd",date+"31","","Y");
  122. cmb_instcd.value = instcd;
  123. }
  124. }
  125. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  126. {
  127. if(DUTY_PART_YN != "Y")
  128. {
  129. sysf_messageBox("인사 담당자만 작업할 수 있습니다.", "I999");
  130. return;
  131. }
  132. var dlgRslt;
  133. if(ds_send_paycalc.getColumn(0, "idflag") == "D")
  134. {
  135. dlgRslt = sysf_messageBox("근태 집계를", "Q001");
  136. if(dlgRslt != 6)
  137. {
  138. return;
  139. }
  140. dlgRslt = sysf_messageBox("계속", "Q003");
  141. if(dlgRslt != 6)
  142. {
  143. return;
  144. }
  145. }
  146. if(!frmf_isRequiredControls("rdo_idflag", "ipt_payym"))
  147. {
  148. return;
  149. }
  150. var oParam = {};
  151. oParam.id = "TXRPD01501";
  152. oParam.service = "dligclaznsmngtapp.DligcLaznsSumMngt";
  153. oParam.method = "reqExeSPDligcLaznsSumProcess";
  154. oParam.inds = "req=ds_send_paycalc";
  155. oParam.outds = "ds_temp=temp";
  156. oParam.async = false;
  157. oParam.callback = "cf_TXRPD01501";
  158. tranf_submit(oParam);
  159. if(!utlf_isNull(ipt_errormsg.value))
  160. {
  161. sysf_messageBox(ipt_errormsg.value, "I999");
  162. }
  163. }
  164. ]]></Script>
  165. </Form>
  166. </FDL>