SPMMR06001_마취료통계집계.xfdl 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMR06001" position="absolute 0 0 394 261" titletext="통계집계" onload="SPMMR06001_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="roundrect3" anchor="default" type="roundrectangle" position="absolute 0 31 350 216" style=""/>
  8. <Static id="caption2" class="search_name" position="absolute 30 78 115 95" text="수술일"/>
  9. <Button id="btn_execute" class="btn4_letter2" position="absolute 266 137 322 159" text="실행" onclick="btn_execute_onclick"/>
  10. <Div id="grp_tle" position="absolute 0 1 1146 30" style="">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption6" class="tit_1" position="absolute 0 -3 163 20" text="마취료 통계집계" anchor="default"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Static id="caption3" position="absolute 212 80 227 100" style="" text="~"/>
  18. <Calendar id="ipt_fromdd" class="input_search" taborder="1" mask="yyyy-mm-dd" position="absolute 106 78 209 97" style="align:center ;" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  19. <Calendar id="ipt_todd" class="input_search" taborder="1" mask="yyyy-mm-dd" position="absolute 227 78 321 97" style="align:center ;" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  20. </Layout>
  21. </Layouts>
  22. <Objects>
  23. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  24. <ColumnInfo>
  25. <Column id="fromdd" type="STRING" size="256"/>
  26. <Column id="todd" type="STRING" size="256"/>
  27. </ColumnInfo>
  28. <Rows>
  29. <Row>
  30. <Col id="fromdd"/>
  31. <Col id="todd"/>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. <Dataset id="ds_hide" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  36. <ColumnInfo>
  37. <Column id="hide" type="STRING" size="256"/>
  38. </ColumnInfo>
  39. <Rows>
  40. <Row>
  41. <Col id="hide"/>
  42. </Row>
  43. </Rows>
  44. </Dataset>
  45. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  46. <ColumnInfo>
  47. <Column id="main" type="STRING" size="256"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row>
  51. <Col id="main"/>
  52. </Row>
  53. </Rows>
  54. </Dataset>
  55. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  56. <ColumnInfo>
  57. <Column id="init" type="STRING" size="256"/>
  58. </ColumnInfo>
  59. </Dataset>
  60. </Objects>
  61. <Bind>
  62. <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  63. <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  64. </Bind>
  65. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  66. * System Name :
  67. * Job Name :
  68. * Creator :
  69. * Make Date : 2015-05-01
  70. * Description :
  71. *---------------------------------------------------------------------------------------
  72. * Modify Date Modifier Modify Description
  73. *---------------------------------------------------------------------------------------
  74. * 2015-05-01 Live Converter TF->XP
  75. *
  76. *---------------------------------------------------------------------------------------
  77. ****************************************************************************************/
  78. include "com_commonxp::comm_main.xjs";
  79. include "com_basiccodexp::ZBC001.xjs";
  80. //스크립트 시작 ***
  81. //전체에서 event와 src를 제외한 script 를 모두포함.
  82. //스크립트 끝
  83. function SPMMR06001_onload(obj:Form, e:LoadEventInfo) {
  84. frmf_initForm(obj);
  85. ipt_fromdd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
  86. ipt_todd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
  87. }
  88. function btn_execute_onclick(obj:Button, e:ClickEventInfo) {
  89. var fromdd = ds_send.getColumn(0, "fromdd");
  90. var todd = ds_send.getColumn(0, "todd");
  91. if(fromdd>todd){
  92. alert("기간이 잘못되었습니다!");
  93. todd.setFocus();
  94. return;
  95. }
  96. if( utlf_getDateInterval(fromdd, todd) > 10 ){
  97. sysf_messageBox("배치 최대 기간은 10일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  98. return ;
  99. }
  100. if ( !utlf_isNull(fromdd) && !utlf_isNull(todd)) {
  101. trace('111');
  102. var oParam = {};
  103. oParam.id = "TXMMR04213";
  104. oParam.service = "anstrecapp.ApacheRec";
  105. oParam.method = "reqExeOPRSBatch";
  106. oParam.inds = "req=ds_send";
  107. oParam.outds = "";
  108. oParam.async = false;
  109. oParam.callback = "cf_TXMMR04213";
  110. tranf_submit(oParam);
  111. } else {
  112. sysf_messageBox("집계일자를 입력하세요");
  113. todd.setFocus();
  114. return;
  115. }
  116. }
  117. function cf_TXMMR04213(sSvcId, nErrorCode, sErrorMsg) {
  118. if(nErrorCode < 0) {
  119. sysf_messageBox("비정상적으로 배치를 수행 했습니다.");
  120. return;
  121. }else{
  122. sysf_messageBox("정상적으로 배치를 수행 했습니다.");
  123. }
  124. }
  125. ]]></Script>
  126. </Form>
  127. </FDL>