SPCVO02800_VOC고객회신관리.xfdl 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCVO02800" position="absolute 0 0 612 359" titletext="VOC 고객회신관리" oninit="SPCVO02800_oninit" onload="SPCVO02800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="VOC 고객회신 정보" class="tit_1" position="absolute 0 0 164 24"/>
  8. <Shape id="line2" class="line_10" position="absolute 0 24 610 30"/>
  9. <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 0 51 610 57"/>
  10. <Shape id="line1" linetype="horizontal" class="line_3" position="absolute 0 324 610 330"/>
  11. <Static id="caption6" text="고객통보일시" class="cell_1" position="absolute 0 29 105 52" style="padding:0 0 0 0;align:center middle;"/>
  12. <MaskEdit id="ipt_Notidt" taborder="1" mask="####-##-## ##:##" class="input_essential" position="absolute 109 31 224 50" maskchar=" " type="string" trimtype="both" style="align:left middle;" autoselect="true"/>
  13. <Static id="caption2" text="고객통보내역" class="cell_1" position="absolute 0 55 105 325" style="padding:0 0 0 0;align:center middle;"/>
  14. <TextArea id="tar_Noticnts" taborder="2" position="absolute 108 57 608 324" wordwrap="word" autoselect="true"/>
  15. <Static id="caption18" text="예) 2009-05-01 15:30 처럼 몇 시 몇 분까지 입력하세요." position="absolute 235 34 573 48" style="font:Dotum,9,bold;"/>
  16. <Button id="btn_close" taborder="3" text="닫기" class="btn4" position="absolute 553 329 609 351" onclick="btn_close_onclick"/>
  17. <Button id="btn_input" taborder="4" text="저장" class="btn4" position="absolute 495 329 551 351" onclick="btn_input_onclick"/>
  18. <Button id="btn_rplcustomer" taborder="5" text="고객회신 완료" class="btn4" visible="false" position="absolute 382 329 493 351" onclick="btn_rplcustomer_onclick"/>
  19. <Static id="cpt_Notice" text="고객회신 완료 버튼을 누르시면 고객회신 상태가 됩니다." class="hand" visible="false" position="absolute 2 331 367 348"/>
  20. </Layout>
  21. </Layouts>
  22. <Objects>
  23. <Dataset id="ds_main_aprvdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  24. <ColumnInfo>
  25. <Column id="acptdd" type="STRING" size="256"/>
  26. <Column id="acptseq" type="STRING" size="256"/>
  27. <Column id="aprvreqdd" type="STRING" size="256"/>
  28. <Column id="aprvreqnm" type="STRING" size="256"/>
  29. <Column id="aprvdd" type="STRING" size="256"/>
  30. <Column id="aprvkindflag" type="STRING" size="256"/>
  31. <Column id="csteamclntnotidt" type="STRING" size="256"/>
  32. <Column id="csteamclntnoticnts" type="STRING" size="256"/>
  33. <Column id="prcsstat" type="STRING" size="256"/>
  34. <Column id="rgstseq" type="STRING" size="256"/>
  35. <Column id="pid" type="STRING" size="256"/>
  36. <Column id="acpviewdd" type="STRING" size="256"/>
  37. </ColumnInfo>
  38. <Rows>
  39. <Row>
  40. <Col id="acptdd"/>
  41. <Col id="acptseq"/>
  42. <Col id="aprvreqdd"/>
  43. <Col id="aprvreqnm"/>
  44. <Col id="aprvdd"/>
  45. <Col id="aprvkindflag"/>
  46. <Col id="csteamclntnotidt"/>
  47. <Col id="csteamclntnoticnts"/>
  48. <Col id="prcsstat"/>
  49. <Col id="rgstseq"/>
  50. <Col id="pid"/>
  51. <Col id="acpviewdd"/>
  52. </Row>
  53. </Rows>
  54. </Dataset>
  55. <Dataset id="ds_main_temp_key" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  56. </Objects>
  57. <Bind>
  58. <BindItem id="item0" compid="ipt_Notidt" propid="value" datasetid="ds_main_aprvdata" columnid=""/>
  59. <BindItem id="item1" compid="tar_Noticnts" propid="value" datasetid="ds_main_aprvdata" columnid="csteamclntnoticnts"/>
  60. </Bind>
  61. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  62. * System Name :
  63. * Job Name :
  64. * Creator :
  65. * Make Date : 2016-05-24
  66. * Description :
  67. *---------------------------------------------------------------------------------------
  68. * Modify Date Modifier Modify Description
  69. *---------------------------------------------------------------------------------------
  70. * 2016-05-24 Live Converter TF->XP
  71. *
  72. *---------------------------------------------------------------------------------------
  73. ****************************************************************************************/
  74. include "com_commonxp::comm_main.xjs";
  75. var arErrorCode = new HashArray();
  76. function SPCVO02800_oninit(obj:Form, e:InitEventInfo)
  77. {
  78. frmf_initForm(obj);
  79. }
  80. function SPCVO02800_onload(obj:Form, e:LoadEventInfo)
  81. {
  82. try
  83. {
  84. ds_main_temp_key.copyData(arg_ds_main_temp_key);
  85. }
  86. catch(e){}
  87. var reAcptDD = ds_main_temp_key.getColumn(0, "sndacptdd");
  88. var reAcptSeq = ds_main_temp_key.getColumn(0, "sndacptseq");
  89. var reRgstSeq = ds_main_temp_key.getColumn(0, "sndrgstseq");
  90. // var pid = ds_main_temp_key.getColumn(0, "pid");
  91. // var acpviewdd = ds_main_temp_key.getColumn(0, "acpviewdd");
  92. if (utlf_isNull(reAcptDD) || utlf_isNull(reAcptSeq)|| utlf_isNull(reRgstSeq))
  93. {
  94. var rtn = sysf_messageBox("조회에 필요한 항목이 전달되지", "E007");
  95. if(rtn == 1)
  96. {
  97. this.close();
  98. }
  99. }
  100. else
  101. {
  102. var oParam = {};
  103. oParam.id = "TRCVO01701";
  104. oParam.service = "vocapp.Voc";
  105. oParam.method = "reqGetVOCAprvNotiData";
  106. oParam.inds = "req=ds_main_temp_key";
  107. oParam.outds = "ds_main_aprvdata=aprvdata";
  108. oParam.async = false;
  109. //oParam.callback = "cf_TRCVO01701";
  110. tranf_submit(oParam);
  111. // ds_main_aprvdata.setColumn(0, "pid", pid);
  112. // ds_main_aprvdata.setColumn(0, "acpviewdd", acpviewdd);
  113. var rePrcsstat = ds_main_aprvdata.getColumn(0, "prcsstat")
  114. if(( rePrcsstat == "승인요청" ) || ( rePrcsstat == "부서장승인" ))
  115. {
  116. btn_rplcustomer.visible = true;
  117. cpt_Notice.visible = true;
  118. }
  119. else
  120. {
  121. btn_rplcustomer.visible = false;
  122. cpt_Notice.visible = false;
  123. }
  124. }
  125. fCheckAuth();
  126. }
  127. function fCheckAuth()
  128. {
  129. // 권한체크
  130. if (!frmf_checkAuth("x"))
  131. {
  132. btn_rplcustomer.enable = true;
  133. btn_input.enable = true;
  134. }
  135. }
  136. function btn_rplcustomer_onclick(obj:Button, e:ClickEventInfo)
  137. {
  138. var rePrcsstat = ds_main_aprvdata.getColumn(0, "prcsstat");
  139. if(( rePrcsstat == "승인요청" ) || ( rePrcsstat == "부서장승인" ))
  140. {
  141. var rtn = sysf_messageBox("고객회신 내용 저장 및 고객회신 처리가 끝나게 됩니다.", "Q003");
  142. if(rtn == 6)
  143. {
  144. arrCompId = new Array("ipt_Notidt");
  145. if(frmf_isRequiredControls(arrCompId))
  146. {
  147. if ( String( ipt_Notidt.value).length > 0 && String(ipt_Notidt.value).length < 12)
  148. {
  149. sysf_messageBox("고객통보일시는 2009-05-01 15:30 처럼 날짜와 시간을 함께 ", "C001");
  150. ipt_Notidt.setFocus();
  151. }
  152. else
  153. {
  154. var oParam = {};
  155. oParam.id = "TXCVO01701";
  156. oParam.service = "vocapp.Voc";
  157. oParam.method = "reqSetVOCNotiFlag";
  158. oParam.inds = "req=ds_main_aprvdata";
  159. oParam.outds = "";
  160. oParam.async = false;
  161. oParam.callback = "cf_TXCVO01701";
  162. tranf_submit(oParam);
  163. if(arErrorCode.pop("TXCVO01701") > -1)
  164. {
  165. sysf_messageBox("고객회신 처리가 ", "I002");
  166. var objArg = new Object();
  167. objArg.sndacptdd = ds_main_temp_key.getColumn(0, "sndacptdd");
  168. objArg.sndacptseq = ds_main_temp_key.getColumn(0, "sndacptseq");
  169. objArg.sndrgstseq = ds_main_temp_key.getColumn(0, "sndrgstseq");
  170. opener.frmf_openForm("SMCVO01900", null, objArg) //.navigate("SMCVO01900", "", "", "", "SMCVO01900", "/root/main/temp", "/root/main/temp");
  171. this.close();
  172. }
  173. }
  174. }
  175. }
  176. }
  177. else
  178. {
  179. sysf_messageBox("승인요청이나 부서장승인 상태가 아니면 고객회신 완료 처리를 ", "E001");
  180. }
  181. }
  182. function cf_TXCVO01701(sSvcId, nErrorCode, sErrorMsg)
  183. {
  184. arErrorCode.push(sSvcId, nErrorCode);
  185. if(nErrorCode < 0) return;
  186. }
  187. function btn_input_onclick(obj:Button, e:ClickEventInfo)
  188. {
  189. var reAcptSeq = ds_main_temp_key.getColumn(0, "sndacptseq")
  190. if ( utlf_isNull(reAcptSeq))
  191. {
  192. var rtn = sysf_messageBox("저장에 필요한 항목이 전달되지", "E007");
  193. if(rtn == 1)
  194. {
  195. this.close();
  196. }
  197. }
  198. else
  199. {
  200. if ( String( ipt_Notidt.value).length > 0 && String(ipt_Notidt.value).length < 12)
  201. {
  202. sysf_messageBox("고객통보일시는 2009-05-01 15:30 처럼 날짜와 시간을 함께 ", "C001");
  203. ipt_Notidt.setFocus();
  204. }
  205. else
  206. {
  207. var oParam = {};
  208. oParam.id = "TXCVO01701";
  209. oParam.service = "vocapp.Voc";
  210. oParam.method = "reqSetVOCNotiFlag";
  211. oParam.inds = "req=ds_main_aprvdata";
  212. oParam.outds = "";
  213. oParam.async = false;
  214. oParam.callback = "cf_TXCVO01701";
  215. tranf_submit(oParam);
  216. if(arErrorCode.pop("TXCVO01701") > -1)
  217. {
  218. sysf_messageBox("고객회신 저장이 ", "I002");
  219. this.close();
  220. }
  221. }
  222. }
  223. }
  224. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  225. {
  226. this.close();
  227. }
  228. ]]></Script>
  229. </Form>
  230. </FDL>