SPMMR03500_아파치셋팅.xfdl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMR03500" position="absolute 0 0 400 220" titletext="APACHE II - 측정시간 설정" oninit="SPMMR03500_oninit" onload="SPMMR03500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute -193 47 192 82" id="grp_btn" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="* 최근 Setting 일자 :" position="absolute 19 6 139 26" id="caption1" anchor="default"/>
  11. <Static position="absolute 135 5 235 25" id="cpt_setting" mask="yyyy-mm-dd" anchor="default"/>
  12. </Layout>
  13. </Layouts>
  14. </Div>
  15. <Div id="div" taborder="1" position="absolute 0 0 400 220" class="div_Layer">
  16. <Layouts>
  17. <Layout>
  18. <Div id="grp_btn" taborder="0" position="absolute 5 171 390 206" anchor="default">
  19. <Layouts>
  20. <Layout>
  21. <Static id="caption1" text="* 최근 Setting 일자 :" position="absolute 19 6 139 26" anchor="default"/>
  22. <Button id="btn_setting" taborder="1" text="설정" class="btn4" position="absolute 260 5 316 27" anchor="default" onclick="div_grp_btn_btn_setting_onclick"/>
  23. <Button id="btn_close" taborder="2" text="닫기" class="btn4" position="absolute 320 5 376 27" anchor="default" onclick="div_grp_btn_btn_close_onclick"/>
  24. <Static id="cpt_setting" position="absolute 135 5 235 25" mask="yyyy-mm-dd" anchor="default" expr="expr:this.text.substr(0,4)+&quot;-&quot;+this.text.substr(4,2)+&quot;-&quot;+this.text.substr(6,2)"/>
  25. </Layout>
  26. </Layouts>
  27. </Div>
  28. <Static id="caption2" text="APACHE II - Setting" class="tit_3" position="absolute 5 10 194 26" anchor="default"/>
  29. <MaskEdit id="ipt_insptm" taborder="1" mask="##:##" class="input_default" position="absolute 215 70 320 89" anchor="default" style="align:center middle;" type="string" displaynulltext=" "/>
  30. <Static id="lbl_insptm" text="APACHE II 측정시간" class="cell_1" position="absolute 70 70 210 90" anchor="default"/>
  31. <Button id="button1" taborder="2" class="icon_clock" position="absolute 303 72 319 88" anchor="default" onclick="div_button1_onclick"/>
  32. <Static id="caption3" text="&lt; APACHE Ⅱ 는 측정시간 기준으로 &#13;&#10; 과거 24시간 내 검사 결과치를 참고합니다. &gt;" position="absolute 70 110 335 140" anchor="default"/>
  33. </Layout>
  34. </Layouts>
  35. </Div>
  36. </Layout>
  37. </Layouts>
  38. <Objects>
  39. <Dataset id="ds_main_apchdt" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  40. <ColumnInfo>
  41. <Column id="insptm" type="STRING" size="256"/>
  42. <Column id="lastupdtdt" type="STRING" size="256"/>
  43. </ColumnInfo>
  44. <Rows>
  45. <Row>
  46. <Col id="lastupdtdt"></Col>
  47. <Col id="insptm"/>
  48. </Row>
  49. </Rows>
  50. </Dataset>
  51. <Dataset id="ds_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  52. <ColumnInfo>
  53. <Column id="instcd" type="STRING" size="256"/>
  54. </ColumnInfo>
  55. <Rows>
  56. <Row>
  57. <Col id="instcd"/>
  58. </Row>
  59. </Rows>
  60. </Dataset>
  61. </Objects>
  62. <Bind>
  63. <BindItem id="item0" compid="div.grp_btn.cpt_setting" propid="text" datasetid="ds_main_apchdt" columnid="lastupdtdt"/>
  64. <BindItem id="item1" compid="div.ipt_insptm" propid="value" datasetid="ds_main_apchdt" columnid="insptm"/>
  65. </Bind>
  66. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  67. * System Name :
  68. * Job Name :
  69. * Creator :
  70. * Make Date : 2014-10-22
  71. * Description :
  72. *---------------------------------------------------------------------------------------
  73. * Modify Date Modifier Modify Description
  74. *---------------------------------------------------------------------------------------
  75. * 2014-10-22 Live Converter TF->XP
  76. *
  77. *---------------------------------------------------------------------------------------
  78. ****************************************************************************************/
  79. //=======================================================================================
  80. // Lib Include
  81. //---------------------------------------------------------------------------------------
  82. include "com_commonxp::comm_main.xjs"
  83. //=======================================================================================
  84. // Global Form Variable
  85. //---------------------------------------------------------------------------------------
  86. var arErrorCode = new HashArray();
  87. //=======================================================================================
  88. // Function
  89. //---------------------------------------------------------------------------------------
  90. /****************************************************************************************
  91. * Argument : 01.sKey : 코드아이디
  92. * : 02.sValue : 코드명
  93. * Description : 공통코드를 가져온다.
  94. ****************************************************************************************/
  95. //=======================================================================================
  96. // Transaction Callback
  97. //---------------------------------------------------------------------------------------
  98. /****************************************************************************************
  99. * Argument : 01.sSvcId : 서비스 ID
  100. * : 02.nErrorCode : 에러코드
  101. * : 03.sErrorMsg : 에러메시지
  102. * Description : tr_getCodeList의 콜백함수
  103. ****************************************************************************************/
  104. function cf_TRMMR03500(sSvcId, nErrorCode, sErrorMsg) {
  105. if(nErrorCode < 0) return;
  106. arErrorCode.push(sSvcId, nErrorCode);
  107. sysf_trace("***** cf_TRMMR03500 *****");
  108. }
  109. function cf_TXMMR03500(sSvcId, nErrorCode, sErrorMsg) {
  110. if(nErrorCode < 0) return;
  111. arErrorCode.push(sSvcId, nErrorCode);
  112. sysf_trace("***** cf_TXMMR03500 *****");
  113. }
  114. //=======================================================================================
  115. // Event
  116. //---------------------------------------------------------------------------------------
  117. /****************************************************************************************
  118. * Components :
  119. * Components ID : button5
  120. * Event : onlbuttonup
  121. * Argument : 01.obj : Object Event has occurred
  122. * : 02.e : Event Object
  123. * Description :
  124. ****************************************************************************************/
  125. function SPMMR03500_oninit(obj:Form, e:InitEventInfo)
  126. {
  127. frmf_initForm(obj);
  128. }
  129. function SPMMR03500_onload(obj:Form, e:LoadEventInfo)
  130. {
  131. var oParam = {};
  132. oParam.id = "TRMMR03500";
  133. oParam.service = "anstrecapp.ApacheRec";
  134. oParam.method = "reqGetApchLastDT";
  135. oParam.inds = "reqdata=ds_reqdata";
  136. oParam.outds = "ds_main_apchdt=apchdt";
  137. oParam.async = false;
  138. oParam.callback = "cf_TRMMR03500";
  139. tranf_submit(oParam);
  140. }
  141. function div_grp_btn_btn_setting_onclick(obj:Button, e:ClickEventInfo)
  142. {
  143. var apchsetdd = utlf_getCurrentDate();
  144. var apchsethh = ds_main_apchdt.getColumn(0, "insptm").substr(0,2);
  145. var apchsetnn = ds_main_apchdt.getColumn(0, "insptm").substr(2,2);
  146. apchsetdd = apchsetdd.substr(4, 2) + "/" + apchsetdd.substr(6, 2);
  147. if (sysf_messageBox("익일(" + apchsetdd + ")부터 APACHE II 측정시간이 " + apchsethh + "시" + apchsetnn + "분으로 적용됩니다.", "Q004") == 6) {
  148. var oParam = {};
  149. oParam.id = "TXMMR03500";
  150. oParam.service = "anstrecapp.ApacheRec";
  151. oParam.method = "reqExeSaveApchSetItem";
  152. oParam.inds = "apchdt=ds_main_apchdt";
  153. oParam.outds = "ds_main_apchdt=apchdt";
  154. oParam.async = false;
  155. oParam.callback = "cf_TXMMR03500";
  156. tranf_submit(oParam);
  157. var oParam = {};
  158. oParam.id = "TRMMR03500";
  159. oParam.service = "anstrecapp.ApacheRec";
  160. oParam.method = "reqGetApchLastDT";
  161. oParam.inds = "reqdata=ds_reqdata";
  162. oParam.outds = "ds_main_apchdt=apchdt";
  163. oParam.async = false;
  164. oParam.callback = "cf_TRMMR03500";
  165. tranf_submit(oParam);
  166. } else {
  167. return;
  168. }
  169. }
  170. function div_grp_btn_btn_close_onclick(obj:Button, e:ClickEventInfo)
  171. {
  172. this.close();
  173. }
  174. function div_button1_onclick(obj:Button, e:ClickEventInfo)
  175. {
  176. // 현재시각 입력
  177. ds_main_apchdt.setColumn(0, "insptm", utlf_getCurrentTime().substr(0,4));
  178. }
  179. ]]></Script>
  180. </Form>
  181. </FDL>