SMMQK00300_QI활동목록조회.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMQK00300" position="absolute 0 0 1198 761" titletext="QI활동 목록조회" oninit="SMMQK00300_oninit" onload="SMMQK00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 20 1195 764" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute -1 88 1193 94" linetype="horizontal" id="line1" class="line_10"/>
  11. <Div position="absolute 0 5 1194 60" align="align:center top;" id="grp_sea">
  12. <Layouts>
  13. <Layout>
  14. <Shape position="absolute 0 0 1194 51" id="roundrect1" type="roundrectangle"/>
  15. <Static text="등록일자" position="absolute 12 7 103 24" id="caption8" class="search_name"/>
  16. <Static text="~" position="absolute 188 8 200 25" id="caption7" class="search_no_b"/>
  17. <Static text="주무부서 :" position="absolute 291 7 380 24" id="caption2" class="search_name"/>
  18. <Shape position="absolute 709 5 715 46" linetype="vertical" id="line2"/>
  19. <Button position="absolute 720 12 776 34" id="btn_search" class="btn1" text="조회" onclick="group3_grp_sea_btn_search_onclick"/>
  20. <Combo position="absolute 360 29 505 48" id="cmb_dept" class="combo_search" visible="false" innerdataset="ds_init_cmb_dept" datacolumn="deptnm" codecolumn="deptcd"/>
  21. <Combo position="absolute 621 7 705 26" id="cmb_prizyn" class="combo_search" visible="false" codecolumn="codecolumn" datacolumn="datacolumn">
  22. <Dataset id="innerdataset">
  23. <ColumnInfo>
  24. <Column id="codecolumn"/>
  25. <Column id="datacolumn"/>
  26. </ColumnInfo>
  27. <Rows>
  28. <Row>
  29. <Col id="codecolumn">-</Col>
  30. <Col id="datacolumn">전체</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">Y</Col>
  34. <Col id="datacolumn">YES</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">N</Col>
  38. <Col id="datacolumn">NO</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. <Static text="우수사례 :" position="absolute 531 7 622 24" id="cap_prizyn" class="search_name" visible="false"/>
  44. <Button position="absolute 801 3 878 22" id="btn_plan" class="btn5" visible="false" text="계획서 양식" onclick="group3_grp_sea_btn_plan_onclick"/>
  45. <Button position="absolute 880 3 966 22" id="btn_first" class="btn5" visible="false" text="질지표정의서" onclick="group3_grp_sea_btn_first_onclick"/>
  46. <Button position="absolute 968 3 1087 22" id="btn_second" class="btn5" visible="false" text="질지표 분석 보고서" onclick="group3_grp_sea_btn_second_onclick"/>
  47. <Button position="absolute 1090 3 1190 22" id="btn_third" class="btn5" visible="false" text="중간활동 보고서" onclick="group3_grp_sea_btn_third_onclick"/>
  48. <Button position="absolute 801 25 878 44" id="btn_fourth" class="btn5" visible="false" text="중간 회의록" onclick="group3_grp_sea_btn_fourth_onclick"/>
  49. <Edit position="absolute 377 6 527 25" id="ipt_deptnm" autoselect="true"/>
  50. <Button position="absolute 880 25 955 44" id="btn_fifth" class="btn5" visible="false" text="최종보고서" onclick="group3_grp_sea_btn_fifth_onclick"/>
  51. <Button position="absolute 957 25 1087 44" id="btn_sixth" class="btn5" visible="false" text="질지표 분석 보고서2" onclick="group3_grp_sea_btn_sixth_onclick"/>
  52. <Button position="absolute 1091 25 1166 44" id="btn_seventh" class="btn5" visible="false" text="최종회의록" onclick="group3_grp_sea_btn_seventh_onclick"/>
  53. <Combo position="absolute 621 28 705 47" id="cmb_flag" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn">
  54. <Dataset id="innerdataset">
  55. <ColumnInfo>
  56. <Column id="codecolumn"/>
  57. <Column id="datacolumn"/>
  58. </ColumnInfo>
  59. <Rows>
  60. <Row>
  61. <Col id="codecolumn">Q</Col>
  62. <Col id="datacolumn">QI</Col>
  63. </Row>
  64. <Row>
  65. <Col id="codecolumn">I</Col>
  66. <Col id="datacolumn">질지표</Col>
  67. </Row>
  68. </Rows>
  69. </Dataset>
  70. </Combo>
  71. <Static text="QI&amp;질지표 :" position="absolute 520 29 621 46" id="caption1" class="search_name"/>
  72. <Calendar id="ipt_fromdd" taborder="1" autoselect="true" autoskip="true" class="input_search" position="absolute 101 7 186 26"/>
  73. <Calendar id="ipt_todd" taborder="2" class="input_search" position="absolute 201 7 286 26" autoselect="true"/>
  74. </Layout>
  75. </Layouts>
  76. </Div>
  77. <Button position="absolute 1127 64 1191 83" id="btn_excel" class="btn2" text="엑셀저장" onclick="group3_btn_excel_onclick"/>
  78. <Static text="QI활동목록" position="absolute 1 71 114 88" id="caption4" class="tit_2"/>
  79. <Button position="absolute 1033 64 1125 83" id="btn_prizyn" class="btn5" visible="false" text="포상유무 저장" onclick="group3_btn_prizyn_onclick"/>
  80. <Button position="absolute 989 64 1031 83" id="btn_hidden" class="btn2_letter2" visible="false" text="상태" onclick="group3_btn_hidden_onclick"/>
  81. </Layout>
  82. </Layouts>
  83. </Div>
  84. <Static text="QI활동목록조회" position="absolute 0 0 800 25" id="caption6" class="tit_1"/>
  85. <Grid position="absolute 0 113 1193 756" id="grd_list" class="datagrid2" binddataset="ds_main_list_row" oncellclick="grd_list_oncellclick" cellsizingtype="both">
  86. <Formats>
  87. <Format id="default">
  88. <Columns>
  89. <Column size="22"/>
  90. <Column size="61"/>
  91. <Column size="63"/>
  92. <Column size="320"/>
  93. <Column size="125"/>
  94. <Column size="51"/>
  95. <Column size="47"/>
  96. <Column size="82"/>
  97. <Column size="99"/>
  98. <Column size="131"/>
  99. <Column size="104"/>
  100. <Column size="82"/>
  101. <Column size="86"/>
  102. <Column size="105"/>
  103. <Column size="78"/>
  104. <Column size="75"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="130"/>
  116. </Columns>
  117. <Rows>
  118. <Row size="32" band="head"/>
  119. <Row size="24"/>
  120. </Rows>
  121. <Band id="head">
  122. <Cell/>
  123. <Cell col="1" text="접수번호"/>
  124. <Cell col="2" text="등록일자"/>
  125. <Cell col="3" text="주제명"/>
  126. <Cell col="4" text="주무부서"/>
  127. <Cell col="5" text="팀장"/>
  128. <Cell col="6" text="간사"/>
  129. <Cell col="7" text="활동계획서"/>
  130. <Cell col="8" text="질지표 정의서"/>
  131. <Cell col="9" text=" 질지표 분석보고서"/>
  132. <Cell col="10" text="중간활동 보고서"/>
  133. <Cell col="11" text="중간 회의록"/>
  134. <Cell col="12" text="최종보고서"/>
  135. <Cell col="13" text="질지표 분석보고서 3분기" wordwrap="char"/>
  136. <Cell col="14" text="최종회의록"/>
  137. <Cell col="15" text="구연발표"/>
  138. <Cell col="16" text="측정지표1"/>
  139. <Cell col="17" text="측정지표2"/>
  140. <Cell col="18" text="현재지표1"/>
  141. <Cell col="19" text="목표1"/>
  142. <Cell col="20" text="현재지표2"/>
  143. <Cell col="21" text="목표2"/>
  144. <Cell col="22" text="현재지표3"/>
  145. <Cell col="23" text="목표3"/>
  146. <Cell col="24" text="현재지표4"/>
  147. <Cell col="25" text="목표4"/>
  148. <Cell col="26" text="포상유무"/>
  149. </Band>
  150. <Band id="body">
  151. <Cell celltype="head" expr="currow + 1"/>
  152. <Cell col="1" text="bind:acptno"/>
  153. <Cell col="2" text="bind:rgstrdd"/>
  154. <Cell col="3" style="align:left top;padding:6 2 0 2;" text="bind:subj" wordwrap="char"/>
  155. <Cell col="4" text="bind:chfdeptnm"/>
  156. <Cell col="5" text="bind:chfhngnm"/>
  157. <Cell col="6" text="bind:staffhngnm"/>
  158. <Cell col="7" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat0"/>
  159. <Cell col="8" displaytype="text" edittype="text" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat1"/>
  160. <Cell col="9" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat2"/>
  161. <Cell col="10" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat3"/>
  162. <Cell col="11" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat4"/>
  163. <Cell col="12" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat5"/>
  164. <Cell col="13" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat6"/>
  165. <Cell col="14" style="color:blue;color2:blue;font:dotum,9, underline;" text="bind:prcsstat7"/>
  166. <Cell col="15"/>
  167. <Cell col="16" text="bind:inspindex1"/>
  168. <Cell col="17" text="bind:inspindex2"/>
  169. <Cell col="18" text="bind:prestindex1"/>
  170. <Cell col="19" text="bind:goalindex1"/>
  171. <Cell col="20" text="bind:prestindex2"/>
  172. <Cell col="21" text="bind:goalindex2"/>
  173. <Cell col="22" text="bind:prestindex3"/>
  174. <Cell col="23" text="bind:goalindex3"/>
  175. <Cell col="24" text="bind:prestindex4"/>
  176. <Cell col="25" text="bind:goalindex4"/>
  177. <Cell col="26" displaytype="combo" edittype="combo" text="bind:prizyn"/>
  178. </Band>
  179. </Format>
  180. </Formats>
  181. </Grid>
  182. </Layout>
  183. </Layouts>
  184. <Objects>
  185. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  186. <ColumnInfo>
  187. <Column id="fromdd" type="STRING" size="256" sumtext="시작일"/>
  188. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  189. <Column id="deptnm" type="STRING" size="256" sumtext="주무부서"/>
  190. <Column id="prizyn" type="STRING" size="256" sumtext="포상유무"/>
  191. <Column id="auth" type="STRING" size="256" sumtext="사용자권한"/>
  192. <Column id="flag" type="STRING" size="256" sumtext="QI_질지표Flag"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row>
  196. <Col id="flag">Q</Col>
  197. <Col id="prizyn">-</Col>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. <Dataset id="ds_main_list_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  202. <ColumnInfo>
  203. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  204. <Column id="rgstrdd" type="STRING" size="256" sumtext="등록일"/>
  205. <Column id="subj" type="STRING" size="256" sumtext="주제명"/>
  206. <Column id="chfdeptnm" type="STRING" size="256" sumtext="팀장부서명"/>
  207. <Column id="chfhngnm" type="STRING" size="256" sumtext="팀장명"/>
  208. <Column id="staffhngnm" type="STRING" size="256" sumtext="간사명"/>
  209. <Column id="prcsstat0" type="STRING" size="256" sumtext="활동계획서"/>
  210. <Column id="prcsstat1" type="STRING" size="256" sumtext="1차보고서"/>
  211. <Column id="prcsstat2" type="STRING" size="256" sumtext="2차보고서"/>
  212. <Column id="prcsstat3" type="STRING" size="256" sumtext="3차보고서"/>
  213. <Column id="prcsstat4" type="STRING" size="256" sumtext="4차보고서"/>
  214. <Column id="prcsstat5" type="STRING" size="256" sumtext="5차보고서"/>
  215. <Column id="prcsstat6" type="STRING" size="256" sumtext="6차보고서"/>
  216. <Column id="prcsstat7" type="STRING" size="256" sumtext="7차보고서"/>
  217. <Column id="inspindex1" type="STRING" size="256" sumtext="측정지표1"/>
  218. <Column id="inspindex2" type="STRING" size="256" sumtext="측정지표2"/>
  219. <Column id="prestindex1" type="STRING" size="256" sumtext="현재지표1"/>
  220. <Column id="goalindex1" type="STRING" size="256" sumtext="목표1"/>
  221. <Column id="prestindex2" type="STRING" size="256" sumtext="현재지표2"/>
  222. <Column id="goalindex2" type="STRING" size="256" sumtext="목표2"/>
  223. <Column id="prestindex3" type="STRING" size="256" sumtext="현재지표3"/>
  224. <Column id="goalindex3" type="STRING" size="256" sumtext="목표3"/>
  225. <Column id="prestindex4" type="STRING" size="256" sumtext="현재지표4"/>
  226. <Column id="goalindex4" type="STRING" size="256" sumtext="목표4"/>
  227. <Column id="prizyn" type="STRING" size="256" sumtext="포상유무"/>
  228. <Column id="rgstrid" type="STRING" size="256" sumtext="현재지표4"/>
  229. <Column id="chfid" type="STRING" size="256" sumtext="목표4"/>
  230. <Column id="staffid" type="STRING" size="256" sumtext="포상유무"/>
  231. </ColumnInfo>
  232. </Dataset>
  233. <Dataset id="ds_send_report" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="prcsstagecd" type="STRING" size="256"/>
  236. <Column id="flag" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row/>
  240. </Rows>
  241. </Dataset>
  242. <Dataset id="ds_send_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="filedata" type="BLOB" size="0"/>
  245. <Column id="filenm" type="STRING" size="256"/>
  246. <Column id="filesize" type="STRING" size="256"/>
  247. <Column id="filetype" type="STRING" size="256"/>
  248. </ColumnInfo>
  249. <Rows>
  250. <Row/>
  251. </Rows>
  252. </Dataset>
  253. <Dataset id="ds_send_prizinfo_saveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  254. </Objects>
  255. <Bind>
  256. <BindItem id="item1" compid="group3.grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  257. <BindItem id="item0" compid="group3.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  258. <BindItem id="item2" compid="group3.grp_sea.ipt_deptnm" propid="value" datasetid="ds_main_cond" columnid="deptnm"/>
  259. <BindItem id="item3" compid="group3.grp_sea.cmb_prizyn" propid="value" datasetid="ds_main_cond" columnid="prizyn"/>
  260. <BindItem id="item4" compid="group3.grp_sea.cmb_dept" propid="value" datasetid="ds_main_cond" columnid="deptnm"/>
  261. <BindItem id="item5" compid="group3.grp_sea.cmb_flag" propid="value" datasetid="ds_main_cond" columnid="flag"/>
  262. </Bind>
  263. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  264. * System Name :
  265. * Job Name :
  266. * Creator :
  267. * Make Date : 2017-02-20
  268. * Description :
  269. *---------------------------------------------------------------------------------------
  270. * Modify Date Modifier Modify Description
  271. *---------------------------------------------------------------------------------------
  272. * 2017-02-20 Live Converter TF->XP
  273. *
  274. *---------------------------------------------------------------------------------------
  275. ****************************************************************************************/
  276. include "com_commonxp::comm_main.xjs";
  277. include "emr_qixp::SMMQK00100.xjs";
  278. include "emr_qixp::SMMQK00300.xjs";
  279. var arErrorCode = new HashArray();
  280. var gMaxSize = 1048576;
  281. function SMMQK00300_oninit(obj:Form, e:InitEventInfo)
  282. {
  283. frmf_initForm(obj);
  284. grdf_initGrid(grd_list);
  285. }
  286. function SMMQK00300_onload(obj:Form, e:LoadEventInfo)
  287. {
  288. fInitialize();
  289. }
  290. function fInitialize(){
  291. group3.grp_sea.ipt_fromdd.value = utlf_getCurrentDate().substring(0,4).concat("0101");
  292. group3.grp_sea.ipt_todd.value = utlf_getCurrentDate();
  293. if(fchkUser() == "Q"){
  294. group3.grp_sea.cap_prizyn.visible = true;
  295. group3.grp_sea.cmb_prizyn.visible = true;
  296. group3.btn_prizyn.visible = true;
  297. group3.grp_sea.btn_plan.visible = true;
  298. group3.grp_sea.btn_first.visible = true;
  299. group3.grp_sea.btn_second.visible = true;
  300. group3.grp_sea.btn_third.visible = true;
  301. group3.grp_sea.btn_fourth.visible = true;
  302. group3.grp_sea.btn_fifth.visible = true;
  303. group3.grp_sea.btn_sixth.visible = true;
  304. group3.grp_sea.btn_seventh.visible = true;
  305. }
  306. else{
  307. group3.grp_sea.cap_prizyn.visible = false;
  308. group3.grp_sea.cmb_prizyn.visible = false;
  309. group3.btn_prizyn.visible = false;
  310. group3.grp_sea.btn_plan.visible = false;
  311. group3.grp_sea.btn_first.visible = false;
  312. group3.grp_sea.btn_second.visible = false;
  313. group3.grp_sea.btn_third.visible = false;
  314. group3.grp_sea.btn_fourth.visible = false;
  315. group3.grp_sea.btn_fifth.visible = false;
  316. group3.grp_sea.btn_sixth.visible = false;
  317. group3.grp_sea.btn_seventh.visible = false;
  318. }
  319. if(sysf_getUserId() == "DEVB07"){
  320. group3.btn_hidden.visible = true;
  321. group3.grp_sea.cap_prizyn.visible = true;
  322. group3.grp_sea.cmb_prizyn.visible = true;
  323. group3.btn_prizyn.visible = true;
  324. group3.grp_sea.btn_plan.visible = true;
  325. group3.grp_sea.btn_first.visible = true;
  326. group3.grp_sea.btn_second.visible = true;
  327. group3.grp_sea.btn_third.visible = true;
  328. group3.grp_sea.btn_fourth.visible = true;
  329. group3.grp_sea.btn_fifth.visible = true;
  330. group3.grp_sea.btn_sixth.visible = true;
  331. group3.grp_sea.btn_seventh.visible = true;
  332. }
  333. fGetList();
  334. }
  335. function fGetList(){
  336. var auth = fchkUser();
  337. ds_main_cond.setColumn(0, "auth", auth);
  338. var oParam = {};
  339. oParam.id = "TRMQK00300";
  340. oParam.service = "qiapp.QiActivityMngt";
  341. oParam.method = "reqGetQiActivityList";
  342. oParam.inds = "req=ds_main_cond";
  343. oParam.outds = "ds_main_list_row=list";
  344. oParam.async = false;
  345. tranf_submit(oParam);
  346. for(var i = 0; i < ds_main_list_row.rowcount ; i++){
  347. for(var a =0; a < 7 ; a++){
  348. var endFlag = ds_main_list_row.getColumn(i, "prcsstat"+a);
  349. if(endFlag.substr(0,2) != "마감"){
  350. ds_main_list_row.setColumn(i, "prcsstat"+(a+1), "");
  351. }
  352. else{
  353. }
  354. }
  355. }
  356. }
  357. function group3_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  358. {
  359. fGetList();
  360. }
  361. function group3_grp_sea_btn_plan_onclick(obj:Button, e:ClickEventInfo)
  362. {
  363. fFormSave("0");
  364. }
  365. //계획서, 보고서 양식 저장
  366. function fFormSave(prcsstagecd){
  367. var maxsize = gMaxSize;//upload1.attribute("filesize");
  368. //files = window.fileDialog("open");
  369. var fd = new FileDialog;
  370. var objVFile = fd.open("FileOpen", FileDialog.LOAD); //// 단일 파일 선택
  371. ds_send_file.clearData();
  372. ds_send_file.addRow();
  373. ds_send_report.clearData();
  374. ds_send_report.addRow();
  375. var files = dsf_writeFileToDs(objVFile, ds_send_file, 0, "filedata");
  376. filesize = file.filesize;
  377. //파일사이즈 체크
  378. //파일 크기가 너무 큰경우 메세지를 띄운다.
  379. if (filesize > maxsize){
  380. sysf_messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  381. }
  382. if (!utlf_isNull(files)) {
  383. ds_send_file.setColumn(0, "file", file.filename);
  384. ds_send_file.setColumn(0, "filenm", file.filename);
  385. ds_send_file.setColumn(0, "filesize", file.filesize);
  386. ds_send_file.setColumn(0, "filetype", file.filetype);
  387. ds_send_report.setColumn(0, "file", files);
  388. ds_send_report.setColumn(0, "prcsstagecd", prcsstagecd);
  389. var oParam = {};
  390. oParam.id = "TXMQK00301";
  391. oParam.service = "qiapp.QiActivityMngt";
  392. oParam.method = "reqExeUploadForm";
  393. oParam.inds = "attach=ds_send_file report=ds_send_report";
  394. oParam.outds = "";
  395. oParam.async = false;
  396. oParam.callback = "cf_TXMQK00301";
  397. tranf_submit(oParam);
  398. }
  399. }
  400. function group3_grp_sea_btn_first_onclick(obj:Button, e:ClickEventInfo)
  401. {
  402. fFormSave("1");
  403. }
  404. function group3_grp_sea_btn_second_onclick(obj:Button, e:ClickEventInfo)
  405. {
  406. fFormSave("2");
  407. }
  408. function group3_grp_sea_btn_third_onclick(obj:Button, e:ClickEventInfo)
  409. {
  410. fFormSave("3");
  411. }
  412. function group3_grp_sea_btn_fourth_onclick(obj:Button, e:ClickEventInfo)
  413. {
  414. fFormSave("4");
  415. }
  416. function group3_grp_sea_btn_fifth_onclick(obj:Button, e:ClickEventInfo)
  417. {
  418. fFormSave("5");
  419. }
  420. function group3_grp_sea_btn_sixth_onclick(obj:Button, e:ClickEventInfo)
  421. {
  422. fFormSave("6");
  423. }
  424. function group3_grp_sea_btn_seventh_onclick(obj:Button, e:ClickEventInfo)
  425. {
  426. fFormSave("7");
  427. }
  428. function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  429. {
  430. grdf_exportExcel(grd_list, "QI활동목록조회" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  431. }
  432. function group3_btn_prizyn_onclick(obj:Button, e:ClickEventInfo)
  433. {
  434. fPrizynSave();
  435. }
  436. function fPrizynSave() {
  437. if (sysf_messageBox("포상유무를 ", "Q002") == "7") {
  438. return false;
  439. }
  440. ds_main_list_row.filter("prizyn != 'N'");
  441. //var csv = getNodeListCSV(checkNodeList);
  442. ds_send_prizinfo_saveinfo.copyData(ds_main_list_row, true);
  443. ds_main_list_row.filter("");
  444. var oParam = {};
  445. oParam.id = "TXMQK00310";
  446. oParam.service = "qiapp.QiActivityMngt";
  447. oParam.method = "reqSetPrizyn";
  448. oParam.inds = "req=ds_send_prizinfo_saveinfo";
  449. oParam.outds = "";
  450. oParam.async = false;
  451. tranf_submit(oParam);
  452. }
  453. function group3_btn_hidden_onclick(obj:Button, e:ClickEventInfo)
  454. {
  455. if(sysf_getUserId() == "DEVB07"){
  456. auth = "A";
  457. }
  458. else{
  459. auth = fchkUser();
  460. }
  461. ds_main_cond.setColumn(0, "auth", auth);
  462. var oParam = {};
  463. oParam.id = "TRMQK00300";
  464. oParam.service = "qiapp.QiActivityMngt";
  465. oParam.method = "reqGetQiActivityList";
  466. oParam.inds = "req=ds_main_cond";
  467. oParam.outds = "ds_main_list_row=list";
  468. oParam.async = false;
  469. tranf_submit(oParam);
  470. }
  471. function grd_list_oncellclick(obj:Grid, e:GridClickEventInfo)
  472. {
  473. fGridOnclick();
  474. }
  475. function fGridOnclick(){
  476. var cur_row = ds_main_list_row.rowposition;
  477. var acptno = ds_main_list_row.getColumn(cur_row, "acptno");
  478. sysf_trace("acptno : " + acptno)
  479. if (!utlf_isNull(acptno)) {
  480. var col = grd_list.currentcol;
  481. frmf_setParameter("ano", acptno);
  482. if(col == "6"){
  483. frmf_modal("SMMQK00100", "SMMQK00100", "", null, "1", "", "", null, null, null, null, null, "M");
  484. //grd_list.select(cur_row) = false;
  485. fGetList();
  486. }
  487. else if(col == "7" || col == "8" || col == "9" || col == "10"|| col == "11"|| col == "12"|| col == "13"){
  488. var endFlag = utlf_transNullToEmpty(ds_main_list_row.getColumn(cur_row, "prcsstat" + (eval(col) - 8)));
  489. if(endFlag.substr(0,2) == "마감"){
  490. var prcsstagecd = "";
  491. var flag = ds_main_cond.getColumn(0, "flag");
  492. if(col == "8"){ // 질지표정의서
  493. if(flag == "Q"){
  494. prcsstagecd = "5";
  495. }else{
  496. prcsstagecd = "10";
  497. }
  498. }else if(col == "9"){ // 질지표분석 보고서
  499. if(flag == "Q"){
  500. prcsstagecd = "6";
  501. }else{
  502. prcsstagecd = "20";
  503. }
  504. }else if(col == "10"){ // 중간활동 보고서
  505. if(flag == "Q"){
  506. prcsstagecd = "10";
  507. }else{
  508. prcsstagecd = "25";
  509. }
  510. }else if(col == "11"){ // 중간회의록
  511. if(flag == "Q"){
  512. prcsstagecd = "15";
  513. }else{
  514. prcsstagecd = "26";
  515. }
  516. }else if(col == "12"){ // 최종보고서
  517. if(flag == "Q"){
  518. prcsstagecd = "20";
  519. }else{
  520. prcsstagecd = "27";
  521. }
  522. }else if(col == "13"){ // 질지표분석 3분기
  523. if(flag == "Q"){
  524. prcsstagecd = "25";
  525. }else{
  526. prcsstagecd = "40";
  527. }
  528. }else if(col == "14"){ // 최종회의록v
  529. if(flag == "Q"){
  530. prcsstagecd = "26";
  531. }else{
  532. prcsstagecd = "55";
  533. }
  534. }
  535. var screenID = "";
  536. if(flag == "Q"){
  537. screenID = "SMMQK00201";
  538. }else{
  539. screenID = "SMMQK00202";
  540. }
  541. frmf_setParameter("prcsstagecd", prcsstagecd);
  542. if(!utlf_isNull(ds_main_list_row.getColumn(cur_row, "prcsstat" + (col - 7)))){
  543. //modal(screenID, "1", "" , "" , "" , "" , "" , "left:100; top:100; width:1230; height:784;");
  544. frmf_modal(screenID, screenID, "", null, "1", "", "", null, null, null, null, null, "M");
  545. fGetList();
  546. }
  547. }
  548. }
  549. }
  550. else{
  551. return;
  552. }
  553. }]]></Script>
  554. </Form>
  555. </FDL>