SMANS00900_신규인사발령현황.xfdl 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMANS00900" position="absolute 0 0 730 714" titletext="신규인사발령 현황" oninit="SMANS00900_oninit" onload="SMANS00900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="기간별 신규 직원 리스트" position="absolute 1 64 204 81" id="caption1" class="tit_2"/>
  8. <Shape position="absolute 0 81 721 87" linetype="horizontal" id="line1" class="line_10"/>
  9. <Div position="absolute 0 25 724 55" align="align:center top;" id="grp_sea" class="div_SA">
  10. <Layouts>
  11. <Layout>
  12. <Static text="조회기간 :" position="absolute 15 7 101 24" id="caption2" class="search_name" anchor="default"/>
  13. <Shape position="absolute 651 4 657 26" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  14. <Button position="absolute 664 4 720 26" id="btn_sea" class="btn1" taborder="4" text="조회" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  15. <Calendar position="absolute 207 6 292 25" id="ipt_todd" class="input_default" taborder="2" anchor="default"/>
  16. <Static text="~" position="absolute 192 7 204 24" id="caption5" class="search_no_b" anchor="default"/>
  17. <Calendar position="absolute 106 6 191 25" id="ipt_fromdd" class="input_default" taborder="1" anchor="default"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Button position="absolute 646 60 719 79" id="btn_excsave" class="btn7" text="엑셀저장" onclick="btn_excsave_onclick"/>
  22. <Grid position="absolute 0 86 720 710" id="grd_insalist" class="datagrid2" binddataset="ds_main_list_item">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="24"/>
  27. <Column size="70"/>
  28. <Column size="100"/>
  29. <Column size="320"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="5"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell/>
  40. <Cell col="1" text="사번"/>
  41. <Cell col="2" text="성명"/>
  42. <Cell col="3" text="소속"/>
  43. <Cell col="4" text="발령일"/>
  44. <Cell col="5" text="직급"/>
  45. <Cell col="6" text="사용"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell celltype="head" expr="currow + 1"/>
  49. <Cell col="1" text="bind:emplno" enable="false"/>
  50. <Cell col="2" text="bind:name" enable="false"/>
  51. <Cell col="3" text="bind:dutplcedeptnm" enable="false"/>
  52. <Cell col="4" displaytype="date" text="bind:fstappntdd" calendardisplaynulltype="none" enable="false"/>
  53. <Cell col="5" text="bind:ojobgradnm" enable="false"/>
  54. <Cell col="6" text="bind:useflag" enable="false"/>
  55. </Band>
  56. </Format>
  57. </Formats>
  58. </Grid>
  59. <Static id="caption6" text="신규 인사발령 현황" class="tit_1" position="absolute 0 0 200 25"/>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="emplno" type="STRING" size="256"/>
  66. <Column id="name" type="STRING" size="256"/>
  67. <Column id="dutplcedeptnm" type="STRING" size="256"/>
  68. <Column id="fstappntdd" type="STRING" size="256"/>
  69. <Column id="ojobgradcd" type="STRING" size="256"/>
  70. <Column id="useflag" type="STRING" size="256"/>
  71. </ColumnInfo>
  72. <Rows>
  73. <Row>
  74. <Col id="emplno"/>
  75. <Col id="name"/>
  76. <Col id="dutplcedeptnm"/>
  77. <Col id="fstappntdd"/>
  78. <Col id="ojobgradcd"/>
  79. <Col id="useflag"/>
  80. </Row>
  81. </Rows>
  82. </Dataset>
  83. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  84. <ColumnInfo>
  85. <Column id="fromdd" type="STRING" size="256"/>
  86. <Column id="todd" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row>
  90. <Col id="fromdd"/>
  91. <Col id="todd"/>
  92. </Row>
  93. </Rows>
  94. </Dataset>
  95. </Objects>
  96. <Bind>
  97. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  98. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  99. </Bind>
  100. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  101. * System Name :
  102. * Job Name :
  103. * Creator :
  104. * Make Date : 2015-11-13
  105. * Description :
  106. *---------------------------------------------------------------------------------------
  107. * Modify Date Modifier Modify Description
  108. *---------------------------------------------------------------------------------------
  109. * 2015-11-13 Live Converter TF->XP
  110. *
  111. *---------------------------------------------------------------------------------------
  112. ****************************************************************************************/
  113. include "com_commonxp::comm_main.xjs";
  114. var arErrorCode = new HashArray();
  115. function SMANS00900_oninit(obj:Form, e:InitEventInfo)
  116. {
  117. frmf_initForm(obj); //폼 초기화
  118. grdf_initGrid(grd_insalist);
  119. }
  120. function SMANS00900_onload(obj:Form, e:LoadEventInfo)
  121. {
  122. var fromdd = utlf_getCurrentDate(); // 적용일자 현재일자 셋팅
  123. var todd = utlf_getCurrentDate(); // 적용일자 현재일자 셋팅
  124. ds_main_list_item.clearData();
  125. ds_send.setColumn(0, "fromdd", fromdd);
  126. ds_send.setColumn(0, "todd", todd);
  127. }
  128. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  129. {
  130. if (utlf_isNull(ds_send.getColumn(0, "fromdd"))){
  131. sysf_messageBox("조회시작일자는", "I003");
  132. grp_sea.ipt_fromdd.setFocus();
  133. return;
  134. }
  135. if (utlf_isNull(ds_send.getColumn(0, "todd"))){
  136. sysf_messageBox("조회종료일자는", "I003");
  137. grp_sea.ipt_todd.setFocus();
  138. return;
  139. }
  140. if (utlf_isValidDateTime(ds_send.getColumn(0, "fromdd"), "YYYYMMDD") == false){
  141. sysf_messageBox("조회 시작일자의 형식이", "E016");
  142. grp_sea.ipt_fromdd.setFocus();
  143. return;
  144. }
  145. if (utlf_isValidDateTime(ds_send.getColumn(0, "todd"), "YYYYMMDD") == false){
  146. sysf_messageBox("조회 종료일자의 형식이", "E016");
  147. grp_sea.ipt_todd.setFocus();
  148. return;
  149. }
  150. if (ds_send.getColumn(0, "fromdd") > ds_send.getColumn(0, "todd")){
  151. sysf_messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
  152. grp_sea.ipt_fromdd.setFocus();
  153. return;
  154. }
  155. var oParam = {};
  156. oParam.id = "TRANS00901";
  157. oParam.service = "dietstatsapp.DietStats";
  158. oParam.method = "reqGetNewInsaList";
  159. oParam.inds = "req=ds_send";
  160. oParam.outds = "ds_main_list_item=ret";
  161. oParam.async = false;
  162. tranf_submit(oParam);
  163. }
  164. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  165. {
  166. grdf_exportExcel(grd_insalist, "신규인사발령현황" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  167. }
  168. ]]></Script>
  169. </Form>
  170. </FDL>