SPCIT01900_만족도입력정보.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPCIT01900" position="absolute 0 0 1015 620" titletext="만족도 입력 정보" oninit="SPCIT01900_oninit" onload="SPCIT01900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape position="absolute 0 22 1000 28" linetype="horizontal" id="line3" class="line_2"/>
  8. <Static text="만족도 제목" position="absolute 0 0 100 23" id="caption1" class="cell_1"/>
  9. <Edit position="absolute 103 3 1007 22" id="input1" enable="false"/>
  10. <Shape position="absolute 0 48 1008 54" linetype="horizontal" id="line4" class="line_3"/>
  11. <Static text="설문지" position="absolute 0 26 100 49" id="caption2" class="cell_1"/>
  12. <Edit position="absolute 103 28 900 47" id="input2" enable="false"/>
  13. <Button position="absolute 902 28 1007 47" id="button1" class="btn2" text="설문지 미리보기" onclick="button1_onclick"/>
  14. <Button position="absolute 869 58 933 77" id="button2" class="btn2" text="샘플파일" onclick="button2_onclick"/>
  15. <Button position="absolute 934 58 1008 77" id="button3" class="btn7" text="엑셀입력" onclick="button3_onclick"/>
  16. <Shape position="absolute 0 77 1008 83" linetype="horizontal" id="line1" class="line_10"/>
  17. <Grid position="absolute 0 82 1008 582" id="datagrid1" selecttype="cell" autoenter="select" cellsizingtype="col" binddataset="ds_main_rsltlist_row">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="23"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="30" band="head"/>
  25. <Row size="24"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell/>
  29. </Band>
  30. <Band id="body">
  31. <Cell celltype="head" expr="currow+1"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Grid position="absolute 0 370 955 570" id="datagrid2" visible="false" binddataset="ds_datagrid2">
  37. <Formats>
  38. <Format id="default">
  39. <Columns>
  40. <Column size="100"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="100"/>
  44. <Column size="100"/>
  45. <Column size="100"/>
  46. <Column size="100"/>
  47. <Column size="100"/>
  48. <Column size="100"/>
  49. <Column size="100"/>
  50. <Column size="100"/>
  51. <Column size="100"/>
  52. <Column size="100"/>
  53. <Column size="100"/>
  54. <Column size="100"/>
  55. <Column size="100"/>
  56. <Column size="100"/>
  57. </Columns>
  58. <Rows>
  59. <Row size="24" band="head"/>
  60. <Row size="24"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell text="stinseqno"/>
  64. <Cell col="1" text="qpaprseqno"/>
  65. <Cell col="2" text="qestitemgrupseqno"/>
  66. <Cell col="3" text="answprsnseqno"/>
  67. <Cell col="4" text="qestseqno"/>
  68. <Cell col="5" text="stintrgtflagcd"/>
  69. <Cell col="6" text="pid"/>
  70. <Cell col="7" text="homepgid"/>
  71. <Cell col="8" text="userid"/>
  72. <Cell col="9" text="emailaddr"/>
  73. <Cell col="10" text="qestanswno"/>
  74. <Cell col="11" text="qestmltlanswno"/>
  75. <Cell col="12" text="descinptcnts"/>
  76. <Cell col="13" text="descinptaddcnts"/>
  77. <Cell col="14" text="qestrspsyn"/>
  78. <Cell col="15" text="baseqestgrupyn"/>
  79. <Cell col="16"/>
  80. </Band>
  81. <Band id="body">
  82. <Cell text="bind:stinseqno"/>
  83. <Cell col="1" text="bind:qpaprseqno"/>
  84. <Cell col="2" text="bind:qestitemgrupseqno"/>
  85. <Cell col="3" text="bind:answprsnseqno"/>
  86. <Cell col="4" text="bind:qestseqno"/>
  87. <Cell col="5" text="bind:stintrgtflagcd"/>
  88. <Cell col="6" text="bind:pid"/>
  89. <Cell col="7" text="bind:homepgid"/>
  90. <Cell col="8" text="bind:userid"/>
  91. <Cell col="9" text="bind:emailaddr"/>
  92. <Cell col="10" text="bind:qestanswno"/>
  93. <Cell col="11" text="bind:qestmltlanswno"/>
  94. <Cell col="12" text="bind:descinptcnts"/>
  95. <Cell col="13" text="bind:descinptaddcnts"/>
  96. <Cell col="14" text="bind:qestrspsyn"/>
  97. <Cell col="15" text="bind:baseqestgrupyn"/>
  98. <Cell col="16" text="bind:rowcount"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Grid position="absolute 5 215 525 315" id="datagrid3" visible="false" binddataset="ds_main_rsltlist_key">
  104. <Formats>
  105. <Format id="default">
  106. <Columns>
  107. <Column size="100"/>
  108. <Column size="100"/>
  109. <Column size="100"/>
  110. <Column size="100"/>
  111. </Columns>
  112. <Rows>
  113. <Row size="24" band="head"/>
  114. <Row size="24"/>
  115. </Rows>
  116. <Band id="head">
  117. <Cell text="itemkindcd"/>
  118. <Cell col="1" text="qestitemgrupseqno"/>
  119. <Cell col="2" text="answprsnseqno"/>
  120. <Cell col="3" text="qestseqno"/>
  121. </Band>
  122. <Band id="body">
  123. <Cell text="bind:itemkindcd"/>
  124. <Cell col="1" text="bind:qestitemgrupseqno"/>
  125. <Cell col="2" text="bind:answprsnseqno"/>
  126. <Cell col="3" text="bind:qestseqno"/>
  127. </Band>
  128. </Format>
  129. </Formats>
  130. </Grid>
  131. <Button id="button4" taborder="1" text="저장" class="btn4" position="absolute 443 589 499 611" onclick="button4_onclick"/>
  132. <Button id="button5" taborder="2" text="취소" class="btn4" position="absolute 502 589 558 611" onclick="button5_onclick"/>
  133. </Layout>
  134. </Layouts>
  135. <Objects>
  136. <Dataset id="ds_main_title" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="stinseqno" type="STRING" size="256"/>
  139. <Column id="stintitlcnts" type="STRING" size="256"/>
  140. <Column id="qpaprseqno" type="STRING" size="256"/>
  141. <Column id="qpaprtitlcnts" type="STRING" size="256"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row>
  145. <Col id="stinseqno"/>
  146. <Col id="stintitlcnts"/>
  147. <Col id="qpaprseqno"/>
  148. <Col id="qpaprtitlcnts"/>
  149. </Row>
  150. </Rows>
  151. </Dataset>
  152. <Dataset id="ds_main_rsltlist_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  153. <Dataset id="ds_send_qestprvw" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="qpaprseqno" type="STRING" size="256"/>
  156. <Column id="stinseqno" type="STRING" size="256"/>
  157. <Column id="mode" type="STRING" size="256"/>
  158. </ColumnInfo>
  159. <Rows>
  160. <Row>
  161. <Col id="qpaprseqno"/>
  162. <Col id="stinseqno"/>
  163. <Col id="mode">B</Col>
  164. </Row>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_hidden_sendgrd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="stinseqno" type="STRING" size="256"/>
  170. <Column id="qpaprseqno" type="STRING" size="256"/>
  171. <Column id="qestitemgrupseqno" type="STRING" size="256"/>
  172. <Column id="answprsnseqno" type="STRING" size="256"/>
  173. <Column id="qestseqno" type="STRING" size="256"/>
  174. <Column id="stintrgtflagcd" type="STRING" size="256"/>
  175. <Column id="pid" type="STRING" size="256"/>
  176. <Column id="homepgid" type="STRING" size="256"/>
  177. <Column id="userid" type="STRING" size="256"/>
  178. <Column id="emailaddr" type="STRING" size="256"/>
  179. <Column id="qestanswno" type="STRING" size="256"/>
  180. <Column id="qestmltlanswno" type="STRING" size="256"/>
  181. <Column id="descinptcnts" type="STRING" size="256"/>
  182. <Column id="descinptaddcnts" type="STRING" size="256"/>
  183. <Column id="qestrspsyn" type="STRING" size="256"/>
  184. <Column id="baseqestgrupyn" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. <Rows>
  187. <Row>
  188. <Col id="stinseqno"/>
  189. <Col id="qpaprseqno"/>
  190. <Col id="qestitemgrupseqno"/>
  191. <Col id="answprsnseqno"/>
  192. <Col id="qestseqno"/>
  193. <Col id="stintrgtflagcd"/>
  194. <Col id="pid"/>
  195. <Col id="homepgid"/>
  196. <Col id="userid"/>
  197. <Col id="emailaddr"/>
  198. <Col id="qestanswno"/>
  199. <Col id="qestmltlanswno"/>
  200. <Col id="descinptcnts"/>
  201. <Col id="descinptaddcnts"/>
  202. <Col id="qestrspsyn"/>
  203. <Col id="baseqestgrupyn"/>
  204. </Row>
  205. </Rows>
  206. </Dataset>
  207. <Dataset id="ds_hidden_grupgrd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  208. <ColumnInfo>
  209. <Column id="stinseqno" type="STRING" size="256"/>
  210. <Column id="qpaprseqno" type="STRING" size="256"/>
  211. <Column id="answprsnseqno" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row>
  215. <Col id="stinseqno"/>
  216. <Col id="qpaprseqno"/>
  217. <Col id="answprsnseqno"/>
  218. </Row>
  219. </Rows>
  220. </Dataset>
  221. <Dataset id="ds_temp_rsltlist_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  222. <Dataset id="ds_temp_rsltlist_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  223. <Dataset id="ds_temp_rsltlist_key" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  224. <Dataset id="ds_main_rsltlist_key" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  225. <Dataset id="ds_send_savedata_grupgrd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  226. <Dataset id="ds_send_savedata_sendgrd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  227. </Objects>
  228. <Bind>
  229. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_main_title" columnid="stintitlcnts"/>
  230. <BindItem id="item1" compid="input2" propid="value" datasetid="ds_main_title" columnid="qpaprtitlcnts"/>
  231. </Bind>
  232. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  233. * System Name :
  234. * Job Name :
  235. * Creator :
  236. * Make Date : 2016-05-24
  237. * Description :
  238. *---------------------------------------------------------------------------------------
  239. * Modify Date Modifier Modify Description
  240. *---------------------------------------------------------------------------------------
  241. * 2016-05-24 Live Converter TF->XP
  242. *
  243. *---------------------------------------------------------------------------------------
  244. ****************************************************************************************/
  245. include "com_commonxp::comm_main.xjs";
  246. function SPCIT01900_oninit(obj:Form, e:InitEventInfo)
  247. {
  248. frmf_initForm(obj);
  249. }
  250. function SPCIT01900_onload(obj:Form, e:LoadEventInfo)
  251. {
  252. grdf_initGrid(datagrid1);
  253. // 부모창의 설문지 일련번호를 가져온다.
  254. var qpaprseqno = opener.frmf_getParameter("qpaprseqno");
  255. ds_main_title.setColumn(0, "qpaprseqno", qpaprseqno);
  256. ds_send_qestprvw.setColumn(0, "qpaprseqno", qpaprseqno);
  257. var stinseqno = opener.frmf_getParameter("stinseqno");
  258. ds_main_title.setColumn(0, "stinseqno", stinseqno);
  259. ds_send_qestprvw.setColumn(0, "stinseqno", stinseqno);
  260. var qpaprtitlcnts = opener.frmf_getParameter("qpaprtitlcnts");
  261. ds_main_title.setColumn(0, "qpaprtitlcnts", qpaprtitlcnts);
  262. var stintitlcnts = opener.frmf_getParameter("stintitlcnts");
  263. ds_main_title.setColumn(0, "stintitlcnts", stintitlcnts);
  264. ds_hidden_sendgrd.clearData();
  265. ds_hidden_grupgrd.clearData();
  266. fGetNResultRef();
  267. }
  268. function fGetNResultRef()
  269. {
  270. if (ds_main_rsltlist_row.rowcount > 0)
  271. {
  272. ds_main_rsltlist_row.clearData();
  273. for(var l = 5; l > -1; l--)
  274. {
  275. datagrid1.setFormatColProperty(l, "band", "body");
  276. }
  277. for (var i = datagrid1.getFormatColCount(); i > 0; i--)
  278. {
  279. datagrid1.deleteContentsCol(i);
  280. }
  281. }
  282. var oParam = {};
  283. oParam.id = "TRCIT01901";
  284. oParam.service = "cssamngtapp.CssaMngt";
  285. oParam.method = "reqGetCsiAnswList2";
  286. oParam.inds = "req=ds_send_qestprvw";
  287. oParam.outds = "ds_temp_rsltlist_header=header ds_temp_rsltlist_row=row ds_temp_rsltlist_key=key";
  288. oParam.async = false;
  289. //oParam.callback = "cf_TRCIT01901";
  290. tranf_submit(oParam);
  291. var gridCaption = ds_temp_rsltlist_header.getColumn(0, "caption");
  292. var gridCaptionArray = gridCaption.split("^")
  293. if(utlf_isNull(gridCaption)) return;
  294. //ref 정보
  295. var gridColRef = ds_temp_rsltlist_header.getColumn(0, "colref");
  296. var gridColRefArray = gridColRef.split("^");
  297. var gridColType = ds_temp_rsltlist_header.getColumn(0, "type");
  298. var gridColTypeArray = gridColType.split("^");
  299. for( var i = 0; i < gridColRefArray.length; i++ )
  300. {
  301. datagrid1.appendContentsCol();
  302. datagrid1.setFormatColProperty(parseInt(i+1), "size", 90);
  303. datagrid1.setCellProperty("Head", parseInt(i+1), "text", gridCaptionArray[i]);
  304. datagrid1.setCellProperty("Body", parseInt(i+1), "text", "bind:"+gridColRefArray[i]);
  305. datagrid1.setCellProperty("Body", parseInt(i+1), "edittype", "normal");
  306. datagrid1.setCellProperty("Body", parseInt(i+1), "align", "left middle");
  307. datagrid1.setCellProperty("Body", parseInt(i+1), "padding", "0 0 0 3");
  308. }
  309. for(var j = 0; j < 4; j++)
  310. {
  311. datagrid1.setFormatColProperty(j, "band", "left");
  312. }
  313. ds_main_rsltlist_row.copyData(ds_temp_rsltlist_row);
  314. ds_main_rsltlist_key.copyData(ds_temp_rsltlist_key)
  315. // 부모창에서 넘어온 대상자구분 코드
  316. var stintrgtflagcd = opener.frmf_getParameter("stintrgtflagcd");
  317. ds_main_rsltlist_row.setColumn(0, "stintrgtflagcd", stintrgtflagcd);
  318. }
  319. function button1_onclick(obj:Button, e:ClickEventInfo)
  320. {
  321. var qpaprseqno = ds_send_qestprvw.getColumn(0, "qpaprseqno");
  322. frmf_setParameter("qpaprseqno", qpaprseqno);
  323. frmf_modal("SPCIT00400", "SPCIT00400", "", "", "", "", "", "", "", "", "", "", "M");
  324. frmf_clearParameter("qpaprseqno");
  325. }
  326. function button2_onclick(obj:Button, e:ClickEventInfo)
  327. {
  328. grdf_exportExcel(datagrid1, "결과입력샘플", "주소록", "true", "", "");
  329. }
  330. function button3_onclick(obj:Button, e:ClickEventInfo)
  331. {
  332. grdf_ImportExcel("ds_main_rsltlist_row ", 2, datagrid1, 0);
  333. datagrid1.setFocus();
  334. if (ds_main_rsltlist_row.rowcount > 500)
  335. {
  336. sysf_messageBox("한번에 100 명이 넘는 답변은 저장 ", "E001");
  337. this.close();
  338. }
  339. }
  340. function button4_onclick(obj:Button, e:ClickEventInfo)
  341. {
  342. var rowCount = ds_main_rsltlist_row.rowcount;
  343. var saveCount = 0;
  344. // 사용자 아이디를 검색
  345. for (var j = 0; j < rowCount; j++)
  346. {
  347. var stintrgtid = ds_main_rsltlist_row.getColumn(j, "stintrgtid");
  348. if (utlf_isNull(stintrgtid))
  349. {
  350. sysf_messageBox("설문지 ID를", "C001");
  351. saveCount = 0;
  352. break;
  353. }
  354. else
  355. {
  356. saveCount++;
  357. }
  358. }
  359. if (saveCount > 0)
  360. {
  361. fSaveMode();
  362. }
  363. }
  364. function fSaveMode()
  365. {
  366. var chk = ds_temp_rsltlist_header.getColumn(0, "colrefarray");
  367. var chkArray = chk.split("^");
  368. var qestCount = chkArray.length-1;
  369. var rowCount = ds_main_rsltlist_row.rowcount;
  370. var stinseqno = ds_main_title.getColumn(0, "stinseqno");
  371. var qpaprseqno = ds_main_title.getColumn(0, "qpaprseqno");
  372. var answprsnseqno = eval(ds_temp_rsltlist_key.getColumn(0, "answprsnseqno"));
  373. var baseqestgrupyn = "";
  374. var stintrgtflagcd = "";
  375. var pid = "";
  376. var userid = "";
  377. var rows = "";
  378. var sColSep = "▦";
  379. var sRowSep = "▩";
  380. var send_data1 = "m" + sColSep + "stinseqno" + sColSep + "qpaprseqno" + sColSep + "answprsnseqno" + sRowSep; //타이틀 map file 등에서 사용
  381. var send_data2 = "m" + sColSep + "stinseqno" + sColSep + "qpaprseqno" + sColSep + "qestitemgrupseqno" + sColSep + "answprsnseqno" +
  382. sColSep + "qestseqno" + sColSep + "pid" + sColSep + "userid" + sColSep + "stintrgtflagcd" + sColSep + "descinptcnts" + sColSep + "baseqestgrupyn" +
  383. sColSep + "qestanswno" + sColSep + "qestmltlanswno" + sColSep + "qestrspsyn" + sRowSep; //타이틀 map file 등에서 사용
  384. for (var i = 0; i < rowCount; i++)
  385. { // row 개수만큼
  386. stintrgtflagcd = ds_main_rsltlist_row.getColumn(i, "stintrgtflagcd");
  387. send_data1 += "m" + sColSep + stinseqno + sColSep + qpaprseqno + sColSep + (answprsnseqno+i) + sRowSep;
  388. for (var k = 0; k < qestCount; k++)
  389. { // 문항 개수만큼
  390. var qestseqno = ds_main_rsltlist_key.getColumn(parseInt(k+1), "qestseqno");
  391. var qestitemgrupseqno = ds_main_rsltlist_key.getColumn(parseInt(k+1), "qestitemgrupseqno");
  392. var itemkindcd = ds_main_rsltlist_key.getColumn(parseInt(k+1), "itemkindcd");
  393. var descinptcnts = ds_main_rsltlist_row.getColumn(parseInt(i+1), "descinptcnts"+k);
  394. var qestanswno = ds_main_rsltlist_row.getColumn(parseInt(i+1), "qestanswno"+k);
  395. var qestmltlanswno = ds_main_rsltlist_row.getColumn(parseInt(i+1), "qestmltlanswno"+k);
  396. // 답변자 id 설정
  397. if (stintrgtflagcd == "1" || stintrgtflagcd == "2" || stintrgtflagcd == "3")
  398. {
  399. pid = ds_main_rsltlist_row.getColumn(i, "stintrgtid");
  400. }
  401. else
  402. {
  403. userid = ds_main_rsltlist_row.getColumn(i, "stintrgtid");
  404. }
  405. if (qestitemgrupseqno == 1)
  406. {
  407. baseqestgrupyn = "Y";
  408. }
  409. else
  410. {
  411. baseqestgrupyn = "N";
  412. }
  413. if (itemkindcd == "1" || itemkindcd == "6" || itemkindcd == "7" || itemkindcd == "8" || itemkindcd == "10")
  414. {
  415. if (utlf_isNull(qestanswno) || qestanswno == "0")
  416. {
  417. qestanswno = "99";
  418. qestrspsyn = "N";
  419. }
  420. else
  421. {
  422. qestrspsyn = "Y";
  423. }
  424. }
  425. else if (itemkindcd == "2")
  426. {
  427. if (utlf_isNull(qestmltlanswno) || qestmltlanswno == "0")
  428. {
  429. qestmltlanswno = "99";
  430. qestrspsyn = "N";
  431. }
  432. else
  433. {
  434. qestrspsyn = "Y";
  435. }
  436. }
  437. else if (itemkindcd == "3")
  438. {
  439. if (utlf_isNull(qestmltlanswno) || qestmltlanswno == "0")
  440. {
  441. qestmltlanswno = "99:99";
  442. qestrspsyn = "N";
  443. }
  444. else
  445. {
  446. qestrspsyn = "Y";
  447. }
  448. }
  449. else
  450. {
  451. if (utlf_isNull(descinptcnts) || descinptcnts == "0")
  452. {
  453. qestanswno = "99";
  454. qestrspsyn = "N";
  455. }
  456. else
  457. {
  458. qestanswno = "1";
  459. qestrspsyn = "Y";
  460. }
  461. }
  462. send_data2 += "m" + sColSep + stinseqno + sColSep + qpaprseqno + sColSep + qestitemgrupseqno + sColSep + (answprsnseqno+i) +
  463. sColSep + qestseqno + sColSep + pid + sColSep + userid + sColSep + stintrgtflagcd + sColSep + descinptcnts + sColSep + baseqestgrupyn +
  464. sColSep + qestanswno + sColSep + qestmltlanswno + sColSep + qestrspsyn + sRowSep;
  465. }
  466. }
  467. dsf_setCSVToDs("ds_send_savedata_grupgrd", send_data1);
  468. dsf_setCSVToDs("ds_send_savedata_sendgrd", send_data2);
  469. var oParam = {};
  470. oParam.id = "TXCIT01901";
  471. oParam.service = "cssamngtapp.CssaMngt";
  472. oParam.method = "reqInsCsiExecAnswData";
  473. oParam.inds = "sendgrd=ds_send_savedata_sendgrd grupgrd=ds_send_savedata_grupgrd";
  474. oParam.outds = "";
  475. oParam.async = false;
  476. oParam.callback = "cf_TXCIT01901";
  477. tranf_submit(oParam);
  478. ds_hidden_sendgrd.clearData();
  479. ds_send_savedata_grupgrd.clearData();
  480. ds_send_savedata_sendgrd.clearData();
  481. }
  482. function cf_TXCIT01901(sSvcId, nErrorCode, sErrorMsg)
  483. {
  484. if(nErrorCode < 0) return;
  485. else
  486. {
  487. sysf_messageBox("만족도 답변정보 입력이","I002");
  488. this.close();
  489. }
  490. }
  491. function button5_onclick(obj:Button, e:ClickEventInfo)
  492. {
  493. this.close();
  494. }
  495. ]]></Script>
  496. </Form>
  497. </FDL>