SPMMR06002_권역외상수술배치.xfdl 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMR06002" position="absolute 0 0 350 210" titletext="통계집계" oninit="SPMMR06002_oninit" onload="SPMMR06002_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 24 350 210" id="roundrect3" class="div_SA"/>
  8. <Static text="수술일" position="absolute 30 79 115 96" id="caption2" class="search_name"/>
  9. <Button position="absolute 266 138 322 160" id="btn_execute" class="btn4" text="실행"/>
  10. <Static text="~" position="absolute 212 81 227 101" id="caption3"/>
  11. <Calendar position="absolute 115 79 209 98" align="align:center middle;" id="ipt_fromdd" class="input_search" taborder="1" mask="yyyy-mm-dd" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  12. <Calendar position="absolute 227 79 321 98" align="align:center middle;" id="ipt_todd" class="input_search" taborder="1" mask="yyyy-mm-dd" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  13. <Static text="외상수술대장배치" position="absolute 0 0 143 24" id="caption6" class="tit_1"/>
  14. </Layout>
  15. </Layouts>
  16. <Objects>
  17. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  18. <ColumnInfo>
  19. <Column id="fromdd" type="STRING" size="256"/>
  20. <Column id="todd" type="STRING" size="256"/>
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="fromdd"/>
  25. <Col id="todd"/>
  26. </Row>
  27. </Rows>
  28. </Dataset>
  29. </Objects>
  30. <Bind>
  31. <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  32. <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  33. </Bind>
  34. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  35. * System Name :
  36. * Job Name :
  37. * Creator :
  38. * Make Date : 2015-05-05
  39. * Description :
  40. *---------------------------------------------------------------------------------------
  41. * Modify Date Modifier Modify Description
  42. *---------------------------------------------------------------------------------------
  43. * 2015-05-05 Live Converter TF->XP
  44. *
  45. *---------------------------------------------------------------------------------------
  46. ****************************************************************************************/
  47. //=======================================================================================
  48. // Lib Include
  49. //---------------------------------------------------------------------------------------
  50. include "com_commonxp::comm_main.xjs";
  51. //=======================================================================================
  52. // Global Form Variable
  53. //---------------------------------------------------------------------------------------
  54. //var arErrorCode = new HashArray();
  55. //=======================================================================================
  56. // Function
  57. //---------------------------------------------------------------------------------------
  58. /****************************************************************************************
  59. * Argument : N/A
  60. * Description : N/A
  61. ****************************************************************************************/
  62. //=======================================================================================
  63. // Event
  64. //---------------------------------------------------------------------------------------
  65. /****************************************************************************************
  66. * Components : Form
  67. * Components ID : SPMMR06002
  68. * Event : oninit
  69. * Argument : 01.obj : Object Event has occurred
  70. * : 02.e : Event Object
  71. * Description : 화면 초기화
  72. ****************************************************************************************/
  73. function SPMMR06002_oninit(obj:Form, e:InitEventInfo)
  74. {
  75. frmf_initForm(obj);
  76. }
  77. /****************************************************************************************
  78. * Components : Form
  79. * Components ID : SPMMR06002
  80. * Event : onload
  81. * Argument : 01.obj : Object Event has occurred
  82. * : 02.e : Event Object
  83. * Description : 화면 초기화
  84. ****************************************************************************************/
  85. function SPMMR06002_onload(obj:Form, e:LoadEventInfo)
  86. {
  87. ipt_fromdd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
  88. ipt_todd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
  89. }
  90. /****************************************************************************************
  91. * Components : Button
  92. * Components ID : btn_execute
  93. * Event : onclick
  94. * Argument : 01.obj : Object Event has occurred
  95. * : 02.e : Event Object
  96. * Description : 실행 버튼
  97. ****************************************************************************************/
  98. function btn_execute_onclick(obj:Button, e:ClickEventInfo)
  99. {
  100. var fromdd = ds_send.getColumn(0, "fromdd");
  101. var todd = ds_send.getColumn(0, "todd");
  102. if(fromdd > todd){
  103. alert("기간이 잘못되었습니다!");
  104. ipt_todd.setFocus();
  105. return;
  106. }
  107. if ( !utlf_isNull(fromdd) && !utlf_isNull(todd)) {
  108. var oParam = {};
  109. oParam.id = "TXMMR04214";
  110. oParam.service = "anstrecapp.ApacheRec";
  111. oParam.method = "reqExeTROPBatch";
  112. oParam.inds = "req=ds_send";
  113. oParam.outds = "";
  114. oParam.async = false;
  115. oParam.callback = "cf_TXMMR04214";
  116. tranf_submit(oParam);
  117. } else {
  118. alert("집계일자를 입력하세요");
  119. ipt_todd.setFocus();
  120. return;
  121. }
  122. }
  123. function cf_TXMMR04214(sSvcId, nErrorCode, sErrorMsg) {
  124. if(nErrorCode < 0){
  125. alert("비정상적으로 배치를 수행 했습니다.");
  126. return;
  127. }
  128. alert("정상적으로 배치를 수행 했습니다.");
  129. }
  130. ]]></Script>
  131. </Form>
  132. </FDL>