SMRNB00900_본원직원식수현황.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRNB00900" inheritanceid="" position="absolute 0 0 1024 768" titletext="본원직원식수현황" onload="SMRNB00800_onload" ontimer="SMRNB00800_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cap_title" text="본원직원식수현황" class="tit_1" position="absolute 0 0 140 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="false"/>
  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 133 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 314 12 388 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 391 9 509 30" anchor="default" value="null" dateformat="yyyy-MM-dd ddd"/>
  23. <Static id="cap_01" text="~" position="absolute 513 12 525 28" anchor="default"/>
  24. <Calendar id="ipt_todd" taborder="6" autoselect="true" class="input_essential" position="absolute 527 9 645 30" anchor="default" dateformat="yyyy-MM-dd ddd"/>
  25. <Static id="cap_gubun" text="식사구분" class="search_name" position="absolute 10 12 76 29"/>
  26. <Radio id="rdo_gubun" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 86 10 298 30" style="textpadding:0 10 0 3;" onitemchanged="grp_search_rdo_gubun_onitemchanged" columncount="-1" index="-1" rowcount="-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">J</Col>
  35. <Col id="datacolumn">조식</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">M</Col>
  39. <Col id="datacolumn">중식</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">S</Col>
  43. <Col id="datacolumn">석식</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">A</Col>
  47. <Col id="datacolumn">전체</Col>
  48. </Row>
  49. </Rows>
  50. </Dataset>
  51. </Radio>
  52. <CheckBox id="chk_takeout" taborder="8" text="TakeOut" position="absolute 673 9 773 29" falsevalue="N" truevalue="Y" value="N"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. <Div id="div_prt" taborder="35" position="absolute 1 120 1023 734" anchor="all" scrollbars="none"/>
  57. </Layout>
  58. </Layouts>
  59. <Bind>
  60. <BindItem id="item19" compid="cap_messege" propid="text" datasetid="ds_messege" columnid="cmt"/>
  61. <BindItem id="item15" compid="grp_search.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  62. <BindItem id="item20" compid="grp_search.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  63. <BindItem id="item0" compid="grp_search.rdo_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
  64. <BindItem id="item1" compid="grp_search.chk_takeout" propid="value" datasetid="ds_send" columnid="takeout"/>
  65. </Bind>
  66. <Objects>
  67. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  68. <ColumnInfo>
  69. <Column id="instcd" type="STRING" size="256"/>
  70. <Column id="fromdd" type="STRING" size="256"/>
  71. <Column id="todd" type="STRING" size="256"/>
  72. <Column id="gubun" type="STRING" size="256"/>
  73. <Column id="takeout" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="instcd"/>
  78. <Col id="fromdd"/>
  79. <Col id="todd"/>
  80. <Col id="gubun"/>
  81. <Col id="takeout"/>
  82. </Row>
  83. </Rows>
  84. </Dataset>
  85. <Dataset id="ds_main_sicksulist" firefirstcount="0" firenextcount="0" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  86. </Objects>
  87. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  88. * System Name :
  89. * Job Name :
  90. * Creator :
  91. * Make Date : 2017-12-04
  92. * Description :
  93. *---------------------------------------------------------------------------------------
  94. * Modify Date Modifier Modify Description
  95. *---------------------------------------------------------------------------------------
  96. * 2017-06-19 Live Converter TF->XP
  97. *
  98. *---------------------------------------------------------------------------------------
  99. ****************************************************************************************/
  100. //=======================================================================================
  101. // Lib Include
  102. //---------------------------------------------------------------------------------------
  103. include "com_commonxp::comm_main.xjs";
  104. include "mis_miscommonxp::MIS.xjs";
  105. //=======================================================================================
  106. // Global Form Variable
  107. //---------------------------------------------------------------------------------------
  108. var arErrorCode = new HashArray();
  109. //=======================================================================================
  110. // Function
  111. //---------------------------------------------------------------------------------------
  112. /****************************************************************************************
  113. * Argument : N/A
  114. * Description : 초기화
  115. ****************************************************************************************/
  116. function lf_init() {
  117. var sInstcd = sysf_getUserInfo("dutplceinstcd");
  118. var sScrid = frmf_getMenuParam();
  119. ds_send.setColumn(0, "instcd", sInstcd);
  120. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  121. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  122. ds_send.setColumn(0, "gubun", "M");
  123. cap_messege_title.style.background = "lightblue";
  124. cap_messege.text = "";
  125. }
  126. /****************************************************************************************
  127. * Argument : N/A
  128. * Description : 시간설정
  129. ****************************************************************************************/
  130. function lf_setTime() {
  131. var cTime = utlf_getCurrentDateTime();
  132. 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);
  133. }
  134. /****************************************************************************************
  135. * Argument : N/A
  136. * Description : 조회함수
  137. ****************************************************************************************/
  138. function lf_userAuth() {
  139. if(sysf_getUserInfo("userid").substr(0,4).toUpperCase() == "EVER") {
  140. btn_print.enable = false;
  141. grp_search.enable = false;
  142. }
  143. }
  144. //=======================================================================================
  145. // Event
  146. //---------------------------------------------------------------------------------------
  147. /****************************************************************************************
  148. * Components : Form
  149. * Description : 화면 처음 초기화시 폼초기화
  150. ****************************************************************************************/
  151. function SMRNB00800_onload(obj:Form, e:LoadEventInfo)
  152. {
  153. frmf_initForm(obj);
  154. lf_init();
  155. // lf_userAuth();
  156. lf_setTime();
  157. this.setTimer(0, 1000);
  158. }
  159. /****************************************************************************************
  160. * Components : Form
  161. * Description : 화면 타이머 설정 시계표시
  162. ****************************************************************************************/
  163. function SMRNB00800_ontimer(obj:Form, e:TimerEventInfo)
  164. {
  165. if(e.timerid == 0) {
  166. lf_setTime();
  167. }
  168. }
  169. /****************************************************************************************
  170. * Components : Button
  171. * Description : 종료
  172. ****************************************************************************************/
  173. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  174. {
  175. this.close();
  176. }
  177. /****************************************************************************************
  178. * Components : Button
  179. * Description : 조회
  180. ****************************************************************************************/
  181. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. var oParam = {};
  184. oParam.id = "TRRNB00014";
  185. oParam.service = "sicksuapp.SicksuMngt";
  186. oParam.method = "reqGetSicksuList";
  187. oParam.inds = "req=ds_send";
  188. oParam.outds = "ds_main_sicksulist=foodprintlist";
  189. oParam.async = false;
  190. oParam.callback = "cf_TRRNB00014";
  191. tranf_submit(oParam);
  192. if(arErrorCode.pop("TRRNB00014") > -1) {
  193. cap_messege_title.style.background = "lightblue";
  194. cap_messege.text = "조회되었습니다.";
  195. var objDOM = rptf_createDOM(); // DOM 객체 설정
  196. rptf_setNodeListToDOM(objDOM, "/root/main/sicksulist" , ds_main_sicksulist);
  197. var objParam = new Object();
  198. objParam.xml_data_XML1 = objDOM.documentElement.source;
  199. objParam.fromdd = ds_send.getColumn(0,"fromdd");
  200. objParam.todd = ds_send.getColumn(0,"todd");
  201. var sRexId = "";
  202. var sGubun = ds_send.getColumn(0,"gubun");
  203. if(sGubun == "J" || sGubun == "S") {
  204. sRexId = "RPRNB00902";
  205. } else if(sGubun == "M") {
  206. if(ds_send.getColumn(0,"takeout") == "Y") sRexId = "RPRNB00904";
  207. else sRexId = "RPRNB00901";
  208. } else if(sGubun == "A") {
  209. sRexId = "RPRNB00903";
  210. }
  211. var option = "open=1;save=1;directprint=0;printdialog=0;print=1;zoom=1;";
  212. rptf_exeReportPreview30([sRexId],[objParam], option, "", "div_prt");
  213. } else {
  214. cap_messege_title.style.background = "red";
  215. cap_messege.text = "조회를 실패하였습니다.";
  216. }
  217. }
  218. function cf_TRRNB00014(sSvcId, nErrorCode, sErrorMsg) {
  219. arErrorCode.push(sSvcId, nErrorCode);
  220. }
  221. /****************************************************************************************
  222. * Components : Button
  223. * Description : 출력
  224. ****************************************************************************************/
  225. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  226. {
  227. // var objDOM = rptf_createDOM(); // DOM 객체 설정
  228. // rptf_setNodeListToDOM(objDOM, "/root/main/statlist" , ds_main_statlist);
  229. // var objParam = new Object();
  230. // objParam.xml_data_XML1 = objDOM.documentElement.source;
  231. // objParam.searchdd = ds_send.getColumn(0,"searchdd");
  232. //
  233. // var option = "open=1;save=1;directprint=1;printdialog=1;print=1;zoom=1;callback=lf_complete";
  234. // rptf_exeReportPreview30([gRexId],[objParam], option);
  235. }
  236. function grp_search_rdo_gubun_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  237. {
  238. if(e.postvalue == "J" || e.postvalue == "S") {
  239. // grp_search.ipt_todd.visible = false;
  240. // grp_search.cap_01.visible = false;
  241. grp_search.chk_takeout.visible = false;
  242. } else if(e.postvalue == "M"){
  243. // grp_search.ipt_todd.visible = true;
  244. // grp_search.cap_01.visible = true;
  245. grp_search.chk_takeout.visible = true;
  246. } else {
  247. // grp_search.ipt_todd.visible = true;
  248. // grp_search.cap_01.visible = true;
  249. grp_search.chk_takeout.visible = false;
  250. }
  251. }
  252. ]]></Script>
  253. </Form>
  254. </FDL>