SMRNB01000_비정규직업체별현황.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRNB01000" inheritanceid="" position="absolute 0 0 1024 768" titletext="비정규직업체별현황" onload="SMRNB01000_onload" ontimer="SMRNB01000_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cap_title" text="비정규직업체별현황" class="tit_1" position="absolute 0 0 160 25"/>
  8. <Static id="cap_time" position="absolute 758 1 1023 24" style="background:darkseagreen;padding:0 0 0 4;align:center middle;font:Dotum,10,bold;" anchor="top right"/>
  9. <Button id="btn_print" taborder="27" text="출력" class="btn6" position="absolute 908 26 964 48" anchor="top right" onclick="btn_print_onclick" visible="true"/>
  10. <Button id="btn_close" taborder="30" text="종료" class="btn4" position="absolute 967 26 1023 48" anchor="top right" onclick="btn_close_onclick"/>
  11. <Static id="cap_messege_title" position="absolute 116 741 233 764" anchor="left bottom" style="background:lightblue;padding:0 0 0 4;"/>
  12. <Static id="cap_messege" position="absolute 235 741 908 764" anchor="left bottom" style="background:lightblue;padding:0 0 0 4;font:Dotum,9,bold;"/>
  13. <Shape id="line7" class="line_6" position="absolute 0 47 1023 53" anchor="left top right"/>
  14. <Static id="caption1" text="비정규직 업체별 현황" class="tit_2" position="absolute 0 99 165 115"/>
  15. <Shape id="line1" class="line_10" position="absolute 0 115 1023 121" anchor="left top right"/>
  16. <Div id="grp_search" taborder="34" class="div_SA2" position="absolute 0 51 1023 91" anchor="left top right">
  17. <Layouts>
  18. <Layout>
  19. <Static id="cap_searchdd" text="조회기간" class="search_name" position="absolute 10 12 84 29" anchor="default"/>
  20. <Button id="btn_search" taborder="4" text="조회" onclick="grp_search_btn_search_onclick" class="btn1" position="absolute 953 9 1009 31" style="align:center;" anchor="top right"/>
  21. <Shape id="line7" linetype="vertical" class="line_4" position="absolute 938 7 941 34" anchor="top right"/>
  22. <Calendar id="ipt_fromdd" taborder="5" autoselect="true" class="input_essential" position="absolute 87 9 205 30" anchor="default" value="null" dateformat="yyyy-MM-dd ddd"/>
  23. <Static id="cap_01" text="~" position="absolute 209 12 221 28" anchor="default"/>
  24. <Calendar id="ipt_todd" taborder="6" autoselect="true" class="input_essential" position="absolute 223 9 341 30" anchor="default" dateformat="yyyy-MM-dd ddd"/>
  25. <Static id="cap_gubun" text="구분" class="search_name" position="absolute 402 12 444 29"/>
  26. <Radio id="Radio00" taborder="7" columncount="3" rowcount="1" position="absolute 446 10 690 30" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1">
  27. <Dataset id="innerdataset">
  28. <ColumnInfo>
  29. <Column id="codecolumn" size="256"/>
  30. <Column id="datacolumn" size="256"/>
  31. </ColumnInfo>
  32. <Rows>
  33. <Row>
  34. <Col id="codecolumn">1</Col>
  35. <Col id="datacolumn">지역암센터</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">2</Col>
  39. <Col id="datacolumn">근로학생</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">3</Col>
  43. <Col id="datacolumn">연구원</Col>
  44. </Row>
  45. </Rows>
  46. </Dataset>
  47. </Radio>
  48. </Layout>
  49. </Layouts>
  50. </Div>
  51. <Button id="btn_excel" taborder="36" text="Excel" class="btn7" position="absolute 841 26 905 48" anchor="top right" onclick="btn_excel_onclick"/>
  52. <Grid id="grd_sicksulist" taborder="37" binddataset="ds_main_sicksulist" useinputpanel="false" autofittype="col" position="absolute 0 120 1023 736">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="25" band="left"/>
  57. <Column size="120"/>
  58. <Column size="120"/>
  59. <Column size="140"/>
  60. <Column size="120"/>
  61. <Column size="120"/>
  62. <Column size="120"/>
  63. <Column size="80"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="24"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell/>
  71. <Cell col="1" text="ID"/>
  72. <Cell col="2" text="성명"/>
  73. <Cell col="3" text="날짜"/>
  74. <Cell col="4" text="식사구분"/>
  75. <Cell col="5" text="OCS_ID"/>
  76. <Cell col="6" text="구분"/>
  77. <Cell col="7" text="Take Out"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell celltype="head" text="expr:currow+1"/>
  81. <Cell col="1" text="bind:id"/>
  82. <Cell col="2" text="bind:name"/>
  83. <Cell col="3" displaytype="date" text="bind:dietdate"/>
  84. <Cell col="4" text="bind:flag"/>
  85. <Cell col="5" displaytype="text" style="align:center middle;" text="bind:ocs_id"/>
  86. <Cell col="6" text="bind:gubun"/>
  87. <Cell col="7" text="bind:takeout"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. </Layout>
  93. </Layouts>
  94. <Bind>
  95. <BindItem id="item19" compid="cap_messege" propid="text" datasetid="ds_messege" columnid="cmt"/>
  96. <BindItem id="item15" compid="grp_search.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  97. <BindItem id="item20" compid="grp_search.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  98. <BindItem id="item0" compid="grp_search.Radio00" propid="value" datasetid="ds_send" columnid="gubun"/>
  99. </Bind>
  100. <Objects>
  101. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  102. <ColumnInfo>
  103. <Column id="instcd" type="STRING" size="256"/>
  104. <Column id="fromdd" type="STRING" size="256"/>
  105. <Column id="todd" type="STRING" size="256"/>
  106. <Column id="gubun" type="STRING" size="256"/>
  107. <Column id="ocs_id" type="STRING" size="256"/>
  108. </ColumnInfo>
  109. <Rows>
  110. <Row>
  111. <Col id="instcd"/>
  112. <Col id="fromdd"/>
  113. <Col id="todd"/>
  114. <Col id="gubun"/>
  115. <Col id="ocs_id">50000</Col>
  116. </Row>
  117. </Rows>
  118. </Dataset>
  119. <Dataset id="ds_main_sicksulist" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  120. </Objects>
  121. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  122. * System Name :
  123. * Job Name :
  124. * Creator :
  125. * Make Date : 2017-12-04
  126. * Description :
  127. *---------------------------------------------------------------------------------------
  128. * Modify Date Modifier Modify Description
  129. *---------------------------------------------------------------------------------------
  130. * 2017-06-19 Live Converter TF->XP
  131. *
  132. *---------------------------------------------------------------------------------------
  133. ****************************************************************************************/
  134. //=======================================================================================
  135. // Lib Include
  136. //---------------------------------------------------------------------------------------
  137. include "com_commonxp::comm_main.xjs";
  138. include "mis_miscommonxp::MIS.xjs";
  139. //=======================================================================================
  140. // Global Form Variable
  141. //---------------------------------------------------------------------------------------
  142. var arErrorCode = new HashArray();
  143. //=======================================================================================
  144. // Function
  145. //---------------------------------------------------------------------------------------
  146. /****************************************************************************************
  147. * Argument : N/A
  148. * Description : 초기화
  149. ****************************************************************************************/
  150. function lf_init() {
  151. var sInstcd = sysf_getUserInfo("dutplceinstcd");
  152. var sScrid = frmf_getMenuParam();
  153. ds_send.setColumn(0, "instcd", sInstcd);
  154. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  155. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  156. ds_send.setColumn(0, "gubun", "1");
  157. cap_messege_title.style.background = "lightblue";
  158. cap_messege.text = "";
  159. }
  160. /****************************************************************************************
  161. * Argument : N/A
  162. * Description : 시간설정
  163. ****************************************************************************************/
  164. function lf_setTime() {
  165. var cTime = utlf_getCurrentDateTime();
  166. cap_time.text = cTime.substr(0,4)+"/"+cTime.substr(4,2)+"/"+cTime.substr(6,2)+" "+cTime.substr(9,2)+":"+cTime.substr(11,2)+":"+cTime.substr(13,2);
  167. }
  168. /****************************************************************************************
  169. * Argument : N/A
  170. * Description : 출력후 메시지
  171. ****************************************************************************************/
  172. function lf_complete() {
  173. cap_messege_title.style.background = "lightblue";
  174. cap_messege.text = "출력이 완료되었습니다.";
  175. }
  176. //=======================================================================================
  177. // Event
  178. //---------------------------------------------------------------------------------------
  179. /****************************************************************************************
  180. * Components : Form
  181. * Description : 화면 처음 초기화시 폼초기화
  182. ****************************************************************************************/
  183. function SMRNB01000_onload(obj:Form, e:LoadEventInfo)
  184. {
  185. frmf_initForm(obj);
  186. lf_init();
  187. lf_setTime();
  188. this.setTimer(0, 1000);
  189. }
  190. /****************************************************************************************
  191. * Components : Form
  192. * Description : 화면 타이머 설정 시계표시
  193. ****************************************************************************************/
  194. function SMRNB01000_ontimer(obj:Form, e:TimerEventInfo)
  195. {
  196. if(e.timerid == 0) {
  197. lf_setTime();
  198. }
  199. }
  200. /****************************************************************************************
  201. * Components : Button
  202. * Description : 종료
  203. ****************************************************************************************/
  204. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  205. {
  206. this.close();
  207. }
  208. /****************************************************************************************
  209. * Components : Button
  210. * Description : 조회
  211. ****************************************************************************************/
  212. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. var oParam = {};
  215. oParam.id = "TRRNB00012";
  216. oParam.service = "sicksuapp.SicksuMngt";
  217. oParam.method = "reqGetIrregularList";
  218. oParam.inds = "req=ds_send";
  219. oParam.outds = "ds_main_sicksulist=foodprintlist";
  220. oParam.async = false;
  221. oParam.callback = "cf_TRRNB00012";
  222. tranf_submit(oParam);
  223. if(arErrorCode.pop("TRRNB00012") > -1) {
  224. cap_messege_title.style.background = "lightblue";
  225. cap_messege.text = "조회되었습니다.";
  226. } else {
  227. cap_messege_title.style.background = "red";
  228. cap_messege.text = "조회를 실패하였습니다.";
  229. }
  230. }
  231. function cf_TRRNB00012(sSvcId, nErrorCode, sErrorMsg) {
  232. arErrorCode.push(sSvcId, nErrorCode);
  233. }
  234. /****************************************************************************************
  235. * Components : Button
  236. * Description : 출력
  237. ****************************************************************************************/
  238. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  239. {
  240. var objDOM = rptf_createDOM(); // DOM 객체 설정
  241. rptf_setNodeListToDOM(objDOM, "/root/main/sicksulist" , ds_main_sicksulist);
  242. var objParam = new Object();
  243. objParam.xml_data_XML1 = objDOM.documentElement.source;
  244. objParam.fromdd = ds_send.getColumn(0,"fromdd");
  245. objParam.todd = ds_send.getColumn(0,"todd");
  246. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=1;callback=lf_complete";
  247. rptf_exeReportPreview30(["RPRNB01000"],[objParam], option);
  248. }
  249. /****************************************************************************************
  250. * Components : Button
  251. * Description : 엑셀저장
  252. ****************************************************************************************/
  253. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. if( ds_main_sicksulist.rowcount > 0 ){
  256. grdf_exportExcel(grd_sicksulist, "비정규직업체별현황", "SheetName", false, "", "user", false);
  257. } else {
  258. sysf_messageBox("조회된 데이터가 ", "I004");
  259. }
  260. }
  261. ]]></Script>
  262. </Form>
  263. </FDL>