SPAAA02600_탈단처리.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAAA02600" position="absolute 0 0 450 111" titletext="활동중지처리" onload="SPAAA02600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 449 105" id="group1" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 20 448 26" id="line8" class="line_2"/>
  11. <Static text="활동정지일" position="absolute 0 0 85 23" align="align:center middle;" id="caption5" class="cell_1"/>
  12. <Static text="활동정지사유" position="absolute 0 26 85 79" align="align:center middle;" id="caption7" class="cell_1"/>
  13. <Calendar position="absolute 88 2 208 21" id="ipt_benfdd" class="input_default" enable="true"/>
  14. <TextArea position="absolute 88 26 448 79" id="tar_rem" wordwrap="char" maxlength="100"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Div position="absolute 0 79 449 106" id="grp_btn" scrollbars="autoboth">
  19. <Layouts>
  20. <Layout>
  21. <Shape position="absolute 0 0 448 6" id="line32" class="line_6" anchor="default"/>
  22. <Button position="absolute 333 5 389 27" id="btn_confirm" class="btn4" text="저장" anchor="default" onclick="grp_btn_btn_confirm_onclick"/>
  23. <Button position="absolute 392 5 448 27" id="btn_cancel" class="btn4" text="취소" anchor="default" onclick="grp_btn_btn_cancel_onclick"/>
  24. </Layout>
  25. </Layouts>
  26. </Div>
  27. </Layout>
  28. </Layouts>
  29. <Objects>
  30. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  31. <Dataset id="ds_main_quitorginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  32. <ColumnInfo>
  33. <Column id="quitorgdd" type="STRING" size="256"/>
  34. <Column id="quitorgresn" type="STRING" size="256"/>
  35. <Column id="voluntrid" type="STRING" size="256"/>
  36. <Column id="actstatflag" type="STRING" size="256"/>
  37. <Column id="joinorgseqno" type="STRING" size="256"/>
  38. </ColumnInfo>
  39. <Rows>
  40. <Row>
  41. <Col id="quitorgdd"/>
  42. <Col id="quitorgresn"/>
  43. <Col id="voluntrid"/>
  44. <Col id="actstatflag"/>
  45. <Col id="joinorgseqno"/>
  46. </Row>
  47. </Rows>
  48. </Dataset>
  49. <Dataset id="ds_main_returnsts_statusinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  50. <ColumnInfo>
  51. <Column id="restatus" type="STRING" size="256"/>
  52. <Column id="voluntrid" type="STRING" size="256"/>
  53. <Column id="actstatflag" type="STRING" size="256"/>
  54. </ColumnInfo>
  55. <Rows>
  56. <Row>
  57. <Col id="restatus"/>
  58. <Col id="voluntrid"/>
  59. <Col id="actstatflag"/>
  60. </Row>
  61. </Rows>
  62. </Dataset>
  63. </Objects>
  64. <Bind>
  65. <BindItem id="item0" compid="group1.tar_rem" propid="value" datasetid="ds_main_quitorginfo" columnid="quitorgresn"/>
  66. <BindItem id="item1" compid="group1.ipt_benfdd" propid="value" datasetid="ds_main_quitorginfo" columnid="quitorgdd"/>
  67. </Bind>
  68. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  69. * System Name :
  70. * Job Name :
  71. * Creator :
  72. * Make Date : 2016-09-30
  73. * Description :
  74. *---------------------------------------------------------------------------------------
  75. * Modify Date Modifier Modify Description
  76. *---------------------------------------------------------------------------------------
  77. * 2016-09-30 Live Converter TF->XP
  78. *
  79. *---------------------------------------------------------------------------------------
  80. ****************************************************************************************/
  81. //=======================================================================================
  82. // Lib Include
  83. //---------------------------------------------------------------------------------------
  84. include "com_commonxp::comm_main.xjs";
  85. //=======================================================================================
  86. // Global Form Variable
  87. //---------------------------------------------------------------------------------------
  88. var arErrorCode = new HashArray();
  89. //=======================================================================================
  90. // Function
  91. //---------------------------------------------------------------------------------------
  92. /****************************************************************************************
  93. * Argument : N/A
  94. * Description : 초기값
  95. ****************************************************************************************/
  96. function fInit()
  97. {
  98. // opener.model.removeNodeset("/root/quitsource/reflag");
  99. // opener.model.refresh();
  100. }
  101. /****************************************************************************************
  102. * Argument : N/A
  103. * Description : 확인
  104. ****************************************************************************************/
  105. function fSendParam()
  106. {
  107. if(ds_main_quitorginfo.getColumn(0, "quitorgdd")=="") //탈단일이 공백이면
  108. {
  109. sysf_messageBox("활동정지일은","I003");
  110. return;
  111. }
  112. ds_send_savedata.clear();
  113. ds_send_savedata.copyData(ds_main_quitorginfo);
  114. var oParam = {};
  115. oParam.id = "TXAAA02601";
  116. oParam.service = "voluntractapp.VoluntrBasicMngt";
  117. oParam.method = "reqExeVoluntrQuitOrg";
  118. oParam.inds = "req=ds_send_savedata";
  119. oParam.outds = "ds_main_returnsts_statusinfo=statusinfo";
  120. oParam.async = false;
  121. oParam.callback = "cf_TXAAA02601";
  122. tranf_submit(oParam);
  123. if(arErrorCode.pop("TXAAA02601") > -1)
  124. {
  125. var restatus=ds_main_returnsts_statusinfo.getColumn(0, "restatus");
  126. if(restatus=='N')
  127. {
  128. sysf_messageBox("재입단일이나 입단일 보다 큰 활동정지일자를 입력하십시요.","I");
  129. group1.ipt_benfdd.setFocus();
  130. return;
  131. }
  132. else
  133. {
  134. dsf_makeValue( opener.ds_quitsource, "reflag", "string", "c"); //처리 완료되었음을 알리는 의미의 플래그 C반환
  135. sysf_messageBox("활동중지가 ","I002");
  136. }
  137. }
  138. this.close();
  139. }
  140. function cf_TXAAA02601(sSvcId, nErrorCode, sErrorMsg) {
  141. arErrorCode.push(sSvcId, nErrorCode);
  142. }
  143. //=======================================================================================
  144. // Event
  145. //---------------------------------------------------------------------------------------
  146. /****************************************************************************************
  147. * Components : Form
  148. * Description : 화면 처음 초기화시 폼초기화
  149. ****************************************************************************************/
  150. function SPAAA02600_onload(obj:Form, e:LoadEventInfo)
  151. {
  152. frmf_initForm(obj); // 폼 초기화
  153. try{
  154. ds_main_quitorginfo.copyData(arg_ds_main_quitorginfo);
  155. dsf_setDefaultVal(ds_main_quitorginfo,"all");
  156. }catch(e){}
  157. // fInit();
  158. }
  159. /****************************************************************************************
  160. * Components : Button
  161. * Description : 확인
  162. ****************************************************************************************/
  163. function grp_btn_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  164. {
  165. fSendParam();
  166. }
  167. /****************************************************************************************
  168. * Components : Button
  169. * Description : 취소
  170. ****************************************************************************************/
  171. function grp_btn_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  172. {
  173. this.close();
  174. }
  175. ]]></Script>
  176. </Form>
  177. </FDL>