SPRSD20002_소모품도움말.xfdl 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRSD20002" position="absolute 0 0 840 800" titletext="소모품청구 도움말" onload="SPRSD20002_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 56 840 768" id="group2" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <ImageViewer position="absolute 126 0 700 804" id="img1" image="URL('IMG::mis/con_help01.png')" anchor="default" imagealign="center top"/>
  11. <ImageViewer position="absolute 126 804 700 1668" id="img2" image="URL('IMG::mis/con_help02.png')" anchor="default" imagealign="center top"/>
  12. <ImageViewer position="absolute 126 1660 700 2541" id="img3" image="URL('IMG::mis/con_help03.png')" anchor="default" imagealign="center top"/>
  13. <ImageViewer position="absolute 126 2542 700 3439" id="img5" image="URL('IMG::mis/con_help04.png')" anchor="default" imagealign="center top"/>
  14. <ImageViewer position="absolute 126 3440 700 4243" id="img6" image="URL('IMG::mis/con_help05.png')" anchor="default" imagealign="center top"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Div position="absolute 0 23 805 48" id="grp_btn" scrollbars="autoboth">
  19. <Layouts>
  20. <Layout>
  21. <Button position="absolute 17 2 137 24" id="btn_help" class="btn1" text="도움말다운로드" anchor="default" onclick="grp_btn_btn_help_onclick"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Static id="caption6" text="소모품청구 도움말" class="tit_3" position="absolute 0 0 142 25"/>
  26. <Button id="button3" taborder="1" text="확인" class="btn4" position="absolute 768 773 824 795" onclick="button3_onclick"/>
  27. </Layout>
  28. </Layouts>
  29. <Objects>
  30. <Dataset id="ds_file_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  31. </Objects>
  32. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  33. * System Name :
  34. * Job Name :
  35. * Creator :
  36. * Make Date : 2017-06-19
  37. * Description :
  38. *---------------------------------------------------------------------------------------
  39. * Modify Date Modifier Modify Description
  40. *---------------------------------------------------------------------------------------
  41. * 2017-06-19 Live Converter TF->XP
  42. *
  43. *---------------------------------------------------------------------------------------
  44. ****************************************************************************************/
  45. //=======================================================================================
  46. // Lib Include
  47. //---------------------------------------------------------------------------------------
  48. include "com_commonxp::comm_main.xjs";
  49. //=======================================================================================
  50. // Event
  51. //---------------------------------------------------------------------------------------
  52. /****************************************************************************************
  53. * Components : Form
  54. * Description : 화면 처음 초기화시 폼초기화
  55. ****************************************************************************************/
  56. function SPRSD20002_onload(obj:Form, e:LoadEventInfo)
  57. {
  58. frmf_initForm(obj);
  59. }
  60. /****************************************************************************************
  61. * Components : Button
  62. * Description : 도움말다운로드
  63. ****************************************************************************************/
  64. function grp_btn_btn_help_onclick(obj:Button, e:ClickEventInfo)
  65. {
  66. var filepath = "mis/rpv/req//20130104/20130104103314836666_MIS";
  67. dsf_createDsRow("ds_req", [
  68. {col:"filepath", type:"STRING", size:256, val:filepath}
  69. ]);
  70. var oParam = {};
  71. oParam.id = "TRRWC03003";
  72. oParam.service = "paybaseinfomngtapp.PayBaseInfoMngt";
  73. oParam.method = "reqGetManualAtt";
  74. oParam.inds = "req=ds_req";
  75. oParam.outds = "ds_file_attachfile=attachfile";
  76. oParam.async = false;
  77. oParam.callback = "cf_TRRWC03003";
  78. tranf_submit(oParam);
  79. }
  80. function cf_TRRWC03003(sSvcId, nErrorCode, sErrorMsg) {
  81. if(nErrorCode < 0) return;
  82. var filenm = "소모품청구 도움말.hwp";
  83. var fd = new FileDialog;
  84. var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
  85. if (objVFile != null)
  86. {
  87. var temp = dsf_readFileFromDs(objVFile.fullpath, ds_file_attachfile, 0, "filedata"); // 파일저장
  88. sleep(1000);
  89. if( !utlf_isNull(temp) )
  90. {
  91. var rtn = sysf_messageBox("파일을", "Q004");
  92. if( rtn == 6 )
  93. {
  94. var text = new String(objVFile.fullpath);
  95. var replaceText = text.replace(" ", "");
  96. if( text.length != replaceText.length )
  97. {
  98. sysf_messageBox("공백이 포함된 [파일명/폴더]는 자동열기가 실행되지 않습니다.", "E999", "");
  99. return;
  100. }
  101. else
  102. {
  103. // system.execShell(objVFile.fullpath);
  104. var path = objVFile.fullpath;
  105. var sArg = "";
  106. var objExtCommon = new ExtCommon();
  107. objExtCommon.executeProcess(path, sArg);
  108. }
  109. }
  110. }
  111. }
  112. }
  113. /****************************************************************************************
  114. * Components : Button
  115. * Description : 확인
  116. ****************************************************************************************/
  117. function button3_onclick(obj:Button, e:ClickEventInfo)
  118. {
  119. this.close();
  120. }
  121. ]]></Script>
  122. </Form>
  123. </FDL>