SMMQK00322_지표관리목록조회(NEW).xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMQK00322" position="absolute 0 0 1196 765" titletext="지표관리목록조회" oninit="SMMQK00322_oninit" onload="SMMQK00322_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 94 1195 764" id="grd_list" class="datagrid2" binddataset="ds_main_list_row" onmousemove="grd_list_onmousemove" onheadclick="grd_list_onheadclick" oncelldblclick="grd_list_oncelldblclick" taborder="1" cellsizebandtype="allband" cellsizingtype="col" anchor="all">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="25" band="left"/>
  12. <Column size="60" band="left"/>
  13. <Column size="60" band="left"/>
  14. <Column size="380" band="left"/>
  15. <Column size="70" band="left"/>
  16. <Column size="78" band="left"/>
  17. <Column size="85" band="left"/>
  18. <Column size="90" band="left"/>
  19. <Column size="50" band="left"/>
  20. <Column size="50" band="left"/>
  21. <Column size="45" band="left"/>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. <Column size="100"/>
  25. <Column size="100"/>
  26. <Column size="100"/>
  27. <Column size="40"/>
  28. <Column size="60"/>
  29. <Column size="100"/>
  30. <Column size="100"/>
  31. <Column size="108"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="100"/>
  35. <Column size="100"/>
  36. <Column size="100"/>
  37. <Column size="100"/>
  38. <Column size="100"/>
  39. <Column size="100"/>
  40. <Column size="60"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="100"/>
  44. <Column size="100"/>
  45. <Column size="60"/>
  46. <Column size="100"/>
  47. <Column size="100"/>
  48. <Column size="100"/>
  49. <Column size="100"/>
  50. <Column size="60"/>
  51. <Column size="100"/>
  52. <Column size="100"/>
  53. <Column size="100"/>
  54. <Column size="100"/>
  55. <Column size="60"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="30" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell/>
  63. <Cell col="1" text="접수번호"/>
  64. <Cell col="2" text="지표번호"/>
  65. <Cell col="3" text="지표명"/>
  66. <Cell col="4" text="인증기준"/>
  67. <Cell col="5" text="영역"/>
  68. <Cell col="6" text="유형"/>
  69. <Cell col="7" text="부서명"/>
  70. <Cell col="8" text="부서장"/>
  71. <Cell col="9" text="담당자"/>
  72. <Cell col="10" text="연락처"/>
  73. <Cell col="11" text="지표설명"/>
  74. <Cell col="12" text="산출식_분자"/>
  75. <Cell col="13" text="산출식_분모"/>
  76. <Cell col="14" text="제외조건"/>
  77. <Cell col="15" text="선정배경 및 근거"/>
  78. <Cell col="16" text="목표값"/>
  79. <Cell col="17" text="이상/이하"/>
  80. <Cell col="18" text="설정근거"/>
  81. <Cell col="19" text="수집방법"/>
  82. <Cell col="20" text="자료수집"/>
  83. <Cell col="21" text="자료출처"/>
  84. <Cell col="22" text="산출주기"/>
  85. <Cell col="23" text="공유부서"/>
  86. <Cell col="24" text="비고"/>
  87. <Cell col="25" text="1분기 원인분석"/>
  88. <Cell col="26" text="1분기 개선활동"/>
  89. <Cell col="27" text="1분기 개선활동&#13;&#10;효과평가"/>
  90. <Cell col="28" text="1분기 추후활동&#13;&#10;계획"/>
  91. <Cell col="29" text="1분기결과"/>
  92. <Cell col="30" text="2분기 원인분석"/>
  93. <Cell col="31" text="2분기 개선활동"/>
  94. <Cell col="32" text="2분기 개선활동&#13;&#10;효과평가"/>
  95. <Cell col="33" text="2분기 추후활동&#13;&#10;계획"/>
  96. <Cell col="34" text="2분기 결과"/>
  97. <Cell col="35" text="3분기 원인분석"/>
  98. <Cell col="36" text="3분기 개선활동"/>
  99. <Cell col="37" text="3분기 개선활동&#13;&#10;효과평가"/>
  100. <Cell col="38" text="3분기 추후활동&#13;&#10;계획"/>
  101. <Cell col="39" text="3분기 결과"/>
  102. <Cell col="40" text="4분기 원인분석"/>
  103. <Cell col="41" text="4분기 개선활동"/>
  104. <Cell col="42" text="4분기 개선활동&#13;&#10;효과평가"/>
  105. <Cell col="43" text="4분기 추후활동&#13;&#10;계획"/>
  106. <Cell col="44" text="4분기 결과"/>
  107. </Band>
  108. <Band id="body">
  109. <Cell celltype="head" expr="expr:currow + 1"/>
  110. <Cell col="1" style="align:center middle;" text="bind:acptno"/>
  111. <Cell col="2" text="bind:acptindexno"/>
  112. <Cell col="3" style="align:left middle;" text="bind:subj"/>
  113. <Cell col="4" text="bind:certstd"/>
  114. <Cell col="5" displaytype="combo" style="align:left middle;" text="bind:idxarea" combodataset="ds_idxarea" combocodecol="value" combodatacol="label"/>
  115. <Cell col="6" displaytype="combo" style="align:left middle;" text="bind:idxtype" combodataset="ds_idxtype" combocodecol="value" combodatacol="label"/>
  116. <Cell col="7" style="align:left middle;" text="bind:majrdeptnm"/>
  117. <Cell col="8" style="align:center middle;" text="bind:chfhngnm"/>
  118. <Cell col="9" style="align:center middle;" text="bind:staffhngnm"/>
  119. <Cell col="10" text="bind:staffcntctel"/>
  120. <Cell col="11" style="align:left middle;" text="bind:idxdesc"/>
  121. <Cell col="12" style="align:left middle;" text="bind:idxcalcuno"/>
  122. <Cell col="13" style="align:left middle;" text="bind:idxcalcudeno"/>
  123. <Cell col="14" style="align:left middle;" text="bind:idxexcpcond"/>
  124. <Cell col="15" style="align:left middle;" text="bind:idxselbck"/>
  125. <Cell col="16" style="align:center;" text="bind:trgtvlue"/>
  126. <Cell col="17" displaytype="combo" style="align:center;" text="bind:trgtgrde" combodataset="ds_trgtgrde" combocodecol="value" combodatacol="label"/>
  127. <Cell col="18" style="align:left middle;" text="bind:trgtsetnm"/>
  128. <Cell col="19" displaytype="combo" style="align:left middle;" text="bind:dataclctmeth" combodataset="ds_dataclctmeth" combocodecol="value" combodatacol="label"/>
  129. <Cell col="20" style="align:left middle;" text="bind:dataclctnm"/>
  130. <Cell col="21" style="align:left middle;" text="bind:datasrc"/>
  131. <Cell col="22" style="align:left middle;" text="bind:datacalcprdnm"/>
  132. <Cell col="23" style="align:left middle;" text="bind:rsltshadeptnm"/>
  133. <Cell col="24" style="align:left middle;" text="bind:bigo"/>
  134. <Cell col="25" displaytype="text" text="bind:bigo11"/>
  135. <Cell col="26" displaytype="text" text="bind:impact_1"/>
  136. <Cell col="27" displaytype="text" text="bind:bigo13"/>
  137. <Cell col="28" displaytype="text" style="align:left;" text="bind:bigo14"/>
  138. <Cell col="29" text="bind:idx03_1"/>
  139. <Cell col="30" displaytype="text" text="bind:bigo21"/>
  140. <Cell col="31" displaytype="text" text="bind:impact_2"/>
  141. <Cell col="32" displaytype="text" text="bind:bigo23"/>
  142. <Cell col="33" displaytype="text" style="align:left;" text="bind:bigo24"/>
  143. <Cell col="34" text="bind:idx03_2"/>
  144. <Cell col="35" displaytype="text" text="bind:bigo31"/>
  145. <Cell col="36" displaytype="text" text="bind:impact_3"/>
  146. <Cell col="37" displaytype="text" text="bind:bigo33"/>
  147. <Cell col="38" displaytype="text" style="align:left;" text="bind:bigo34"/>
  148. <Cell col="39" text="bind:idx03_3"/>
  149. <Cell col="40" displaytype="text" text="bind:bigo41"/>
  150. <Cell col="41" displaytype="text" text="bind:impact_4"/>
  151. <Cell col="42" displaytype="text" text="bind:bigo43"/>
  152. <Cell col="43" displaytype="text" style="align:left;" text="bind:bigo44"/>
  153. <Cell col="44" text="bind:idx03_4"/>
  154. </Band>
  155. </Format>
  156. </Formats>
  157. </Grid>
  158. <Div id="grp_sea" anchor="left top right" taborder="0" style="align:center top;" class="div_SA" position="absolute 0 25 1195 65">
  159. <Layouts>
  160. <Layout width="1188" height="67">
  161. <Static id="caption8" text="등록일자 :" class="search_name" position="absolute 12 12 83 29" anchor="default" onclick="grp_sea_caption8_onclick"/>
  162. <Static id="caption7" text="~" class="search_no_b" position="absolute 174 11 186 28" anchor="default"/>
  163. <Static id="caption2" text="주무부서 :" class="search_name" position="absolute 301 12 372 29" anchor="default"/>
  164. <Calendar id="ipt_fromdd" taborder="0" autoselect="true" class="input_search" position="absolute 87 10 172 29" anchor="default"/>
  165. <Calendar id="ipt_todd" taborder="1" autoselect="true" class="input_search" position="absolute 187 10 272 29" anchor="default"/>
  166. <Shape id="line2" linetype="vertical" position="absolute 1053 9 1059 32" anchor="right"/>
  167. <Button id="btn_search" taborder="3" text="조회" onclick="group3_grp_sea_btn_search_onclick" class="btn1" position="absolute 1068 9 1124 31" anchor="right"/>
  168. <Edit id="ipt_deptnm" taborder="2" position="absolute 376 10 526 29" anchor="default"/>
  169. <Button id="btn_excel" taborder="4" text="엑셀" onclick="group3_btn_excel_onclick" class="btn7" position="absolute 1132 9 1184 31" anchor="right"/>
  170. <Button id="btn_delt" taborder="5" text="삭제" class="btn4" visible="false" position="absolute 987 10 1043 30" anchor="right" onclick="grp_sea_btn_delt_onclick"/>
  171. </Layout>
  172. </Layouts>
  173. </Div>
  174. <Static id="caption6" text="지표관리목록조회" class="tit_1" position="absolute 0 0 140 25"/>
  175. <Static id="caption11" text="지표관리목록조회" class="tit_2" position="absolute 0 73 189 92" wordwrap="both"/>
  176. <Shape id="line1" class="line_10" position="absolute 0 89 1195 95" anchor="left top right"/>
  177. </Layout>
  178. </Layouts>
  179. <Objects>
  180. <Dataset id="ds_main_list_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  181. <ColumnInfo>
  182. <Column id="acptno" type="STRING" size="256"/>
  183. <Column id="prcsstagecd" type="STRING" size="256"/>
  184. <Column id="subj" type="STRING" size="256"/>
  185. <Column id="acptindexno" type="STRING" size="256"/>
  186. <Column id="certstd" type="STRING" size="256"/>
  187. <Column id="idxarea" type="STRING" size="256"/>
  188. <Column id="idxtype" type="STRING" size="256"/>
  189. <Column id="idxdesc" type="STRING" size="256"/>
  190. <Column id="idxcalcuno" type="STRING" size="256"/>
  191. <Column id="idxcalcudeno" type="STRING" size="256"/>
  192. <Column id="idxexcpcond" type="STRING" size="256"/>
  193. <Column id="idxselbck" type="STRING" size="256"/>
  194. <Column id="trgtvlue" type="STRING" size="256"/>
  195. <Column id="trgtgrde" type="STRING" size="256"/>
  196. <Column id="trgtset" type="STRING" size="256"/>
  197. <Column id="dataclctmeth" type="STRING" size="256"/>
  198. <Column id="dataclct" type="STRING" size="256"/>
  199. <Column id="dataclctdesc" type="STRING" size="256"/>
  200. <Column id="datasrc" type="STRING" size="256"/>
  201. <Column id="dataproc" type="STRING" size="256"/>
  202. <Column id="datacalcprd" type="STRING" size="256"/>
  203. <Column id="datacalcprddesc" type="STRING" size="256"/>
  204. <Column id="rsltshadept" type="STRING" size="256"/>
  205. <Column id="rsltshadeptdesc" type="STRING" size="256"/>
  206. <Column id="bigo" type="STRING" size="256"/>
  207. <Column id="majrdeptnm" type="STRING" size="256"/>
  208. <Column id="majrdeptcd" type="STRING" size="256"/>
  209. <Column id="chfid" type="STRING" size="256"/>
  210. <Column id="chfhngnm" type="STRING" size="256"/>
  211. <Column id="staffid" type="STRING" size="256"/>
  212. <Column id="staffhngnm" type="STRING" size="256"/>
  213. <Column id="staffcntctel" type="STRING" size="256"/>
  214. <Column id="dataclctnm" type="STRING" size="256"/>
  215. <Column id="trgtsetnm" type="STRING" size="256"/>
  216. <Column id="datacalcprdnm" type="STRING" size="256"/>
  217. <Column id="rsltshadeptnm" type="STRING" size="256"/>
  218. <Column id="idx03_1" type="STRING" size="256"/>
  219. <Column id="impact_1" type="STRING" size="256"/>
  220. <Column id="idx03_2" type="STRING" size="256"/>
  221. <Column id="impact_2" type="STRING" size="256"/>
  222. <Column id="idx03_3" type="STRING" size="256"/>
  223. <Column id="impact_3" type="STRING" size="256"/>
  224. <Column id="idx03_4" type="STRING" size="256"/>
  225. <Column id="impact_4" type="STRING" size="256"/>
  226. <Column id="bigo11" type="STRING" size="256"/>
  227. <Column id="bigo12" type="STRING" size="256"/>
  228. <Column id="bigo13" type="STRING" size="256"/>
  229. <Column id="bigo14" type="STRING" size="256"/>
  230. <Column id="bigo21" type="STRING" size="256"/>
  231. <Column id="bigo22" type="STRING" size="256"/>
  232. <Column id="bigo23" type="STRING" size="256"/>
  233. <Column id="bigo24" type="STRING" size="256"/>
  234. <Column id="bigo31" type="STRING" size="256"/>
  235. <Column id="bigo32" type="STRING" size="256"/>
  236. <Column id="bigo33" type="STRING" size="256"/>
  237. <Column id="bigo34" type="STRING" size="256"/>
  238. <Column id="bigo41" type="STRING" size="256"/>
  239. <Column id="bigo42" type="STRING" size="256"/>
  240. <Column id="bigo43" type="STRING" size="256"/>
  241. <Column id="bigo44" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. <Rows>
  244. <Row>
  245. <Col id="acptno"/>
  246. <Col id="prcsstagecd"/>
  247. <Col id="subj"/>
  248. <Col id="acptindexno"/>
  249. <Col id="certstd"/>
  250. </Row>
  251. </Rows>
  252. </Dataset>
  253. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="fromdd" type="STRING" size="256"/>
  256. <Column id="todd" type="STRING" size="256"/>
  257. <Column id="deptnm" type="STRING" size="256"/>
  258. <Column id="userAuth" type="STRING" size="256"/>
  259. <Column id="auth" type="STRING" size="256"/>
  260. </ColumnInfo>
  261. <Rows>
  262. <Row>
  263. <Col id="fromdd"/>
  264. <Col id="todd"/>
  265. <Col id="deptnm"/>
  266. </Row>
  267. </Rows>
  268. </Dataset>
  269. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  270. <Dataset id="ds_idxarea" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  271. <ColumnInfo>
  272. <Column id="label" type="STRING" size="256"/>
  273. <Column id="value" type="STRING" size="256"/>
  274. </ColumnInfo>
  275. <Rows>
  276. <Row>
  277. <Col id="label">환자안전영역</Col>
  278. <Col id="value">1</Col>
  279. </Row>
  280. <Row>
  281. <Col id="label">질환영역</Col>
  282. <Col id="value">2</Col>
  283. </Row>
  284. <Row>
  285. <Col id="label">진료영역</Col>
  286. <Col id="value">3</Col>
  287. </Row>
  288. <Row>
  289. <Col id="label">관리영역</Col>
  290. <Col id="value">4</Col>
  291. </Row>
  292. </Rows>
  293. </Dataset>
  294. <Dataset id="ds_idxtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  295. <ColumnInfo>
  296. <Column id="label" type="STRING" size="256"/>
  297. <Column id="value" type="STRING" size="256"/>
  298. </ColumnInfo>
  299. <Rows>
  300. <Row>
  301. <Col id="label">Structure(구조)</Col>
  302. <Col id="value">1</Col>
  303. </Row>
  304. <Row>
  305. <Col id="label">Process(과정)</Col>
  306. <Col id="value">2</Col>
  307. </Row>
  308. <Row>
  309. <Col id="label">Outcome(결과)</Col>
  310. <Col id="value">3</Col>
  311. </Row>
  312. </Rows>
  313. </Dataset>
  314. <Dataset id="ds_trgtgrde" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  315. <ColumnInfo>
  316. <Column id="label" type="STRING" size="256"/>
  317. <Column id="value" type="STRING" size="256"/>
  318. </ColumnInfo>
  319. <Rows>
  320. <Row>
  321. <Col id="label">이상</Col>
  322. <Col id="value">1</Col>
  323. </Row>
  324. <Row>
  325. <Col id="label">이하</Col>
  326. <Col id="value">2</Col>
  327. </Row>
  328. </Rows>
  329. </Dataset>
  330. <Dataset id="ds_dataclctmeth" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  331. <ColumnInfo>
  332. <Column id="label" type="STRING" size="256"/>
  333. <Column id="value" type="STRING" size="256"/>
  334. </ColumnInfo>
  335. <Rows>
  336. <Row>
  337. <Col id="value">1</Col>
  338. <Col id="label">후향적수집(Retrospective)</Col>
  339. </Row>
  340. <Row>
  341. <Col id="value">2</Col>
  342. <Col id="label">동시수집(Concurrent)</Col>
  343. </Row>
  344. </Rows>
  345. </Dataset>
  346. <Dataset id="ds_hidden_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  347. <ColumnInfo>
  348. <Column id="acptno" type="STRING" size="256"/>
  349. </ColumnInfo>
  350. <Rows>
  351. <Row/>
  352. </Rows>
  353. </Dataset>
  354. <Dataset id="ds_hidden_cnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  355. </Objects>
  356. <Bind>
  357. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send_cond" columnid="fromdd"/>
  358. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send_cond" columnid="todd"/>
  359. <BindItem id="item2" compid="grp_sea.ipt_deptnm" propid="value" datasetid="ds_send_cond" columnid="deptnm"/>
  360. </Bind>
  361. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  362. * System Name :
  363. * Job Name :
  364. * Creator :
  365. * Make Date : 2018-01-08
  366. * Description :
  367. *---------------------------------------------------------------------------------------
  368. * Modify Date Modifier Modify Description
  369. *---------------------------------------------------------------------------------------
  370. * 2018-01-08 최초개발
  371. *
  372. *---------------------------------------------------------------------------------------
  373. ****************************************************************************************/
  374. include "com_commonxp::comm_main.xjs";
  375. include "emr_qixp::SMMQK00100.xjs";
  376. var arErrorCode = new HashArray();
  377. function SMMQK00322_oninit(obj:Form, e:InitEventInfo)
  378. {
  379. frmf_initForm(obj);
  380. }
  381. function SMMQK00322_onload(obj:Form, e:LoadEventInfo)
  382. {
  383. fInitialize();
  384. }
  385. function fInitialize(){
  386. grp_sea.ipt_fromdd.value = utlf_getCurrentDate().substring(0,4).concat("0101");
  387. grp_sea.ipt_todd.value = utlf_getCurrentDate();
  388. // Grid 툴팁 세팅
  389. grdf_setToolTipBind(grd_list);
  390. //배포시 삭제
  391. //ds_send_cond.setColumn(0,"fromdd","20180101");
  392. //ds_send_cond.setColumn(0,"todd","20190101");
  393. var userAuth = fchkUser();
  394. if(userAuth == "Q"){
  395. grp_sea.btn_delt.visible = true;
  396. }else{
  397. grp_sea.btn_delt.visible = false;
  398. }
  399. ds_send_cond.setColumn(0,"userAuth","userAuth");
  400. fGetList();
  401. }
  402. /**
  403. * @---------------------------------------------------
  404. * @desc : Login User 권한 조회
  405. * @param :
  406. * @return : userAuth(사용자권한) U:사용자 Q:QI관리자 O:Other
  407. * @---------------------------------------------------
  408. */
  409. function fchkUser(){
  410. var userAuth = "";
  411. var loginID = sysf_getUserId();
  412. var rgstID = ds_main_cond.getColumn(0, "rgstrid");
  413. var chfID = ds_main_cond.getColumn(0, "chfid");
  414. var staffid = ds_main_cond.getColumn(0, "staffid");
  415. //테스트를위해 생성한 하드코딩
  416. var TestQI = "DEVB03";
  417. //Test 용
  418. //if(loginID == TestQI){
  419. // userAuth = "Q";
  420. //}
  421. //원래이거다 테스트를위해 막아놨음
  422. if(sysf_checkUserGroup("UGE_QIO") || sysf_checkUserGroup("UGE_QIT")){
  423. userAuth = "Q";
  424. }
  425. else if(loginID == rgstID || loginID == chfID || loginID == staffid){
  426. userAuth = "U";
  427. }
  428. else if(loginID != rgstID && loginID != chfID && loginID != staffid){
  429. userAuth = "O";
  430. }
  431. return userAuth;
  432. }
  433. function fGetList(){
  434. var auth = fchkUser();
  435. ds_send_cond.setColumn(0, "auth", auth);
  436. var oParam = {};
  437. oParam.id = "TRMQK00322";
  438. oParam.service = "qiapp.QiActivityMngt";
  439. oParam.method = "reqGetQIandIndicatorsActivityListNEW";
  440. oParam.inds = "req=ds_send_cond";
  441. oParam.outds = "ds_main_list_row=list";
  442. oParam.async = false;
  443. tranf_submit(oParam);
  444. var cnt = ds_main_list_row.rowcount;
  445. if(cnt > 0){
  446. var tmpDataclct = "";
  447. var tmpTrgtset = "";
  448. var tmpDatacalcprd = "";
  449. var tmpRsltshadept = "";
  450. for( var i=0 ; i<cnt ; i++ ){
  451. tmpDataclct = ds_main_list_row.getColumn(i, "dataclct");
  452. tmpTrgtset = ds_main_list_row.getColumn(i, "trgtset");
  453. tmpDatacalcprd = ds_main_list_row.getColumn(i, "datacalcprd");
  454. tmpRsltshadept = ds_main_list_row.getColumn(i, "rsltshadept");
  455. if(!utlf_isNull(tmpDataclct)){
  456. tmpDataclct = (tmpDataclct).setReplaceWord("01","EMR자료");
  457. tmpDataclct = (tmpDataclct).setReplaceWord("02","전산자료요청");
  458. tmpDataclct = (tmpDataclct).setReplaceWord("03","보고서자료");
  459. tmpDataclct = (tmpDataclct).setReplaceWord("04","관찰조사");
  460. tmpDataclct = (tmpDataclct).setReplaceWord("05","수기자료");
  461. tmpDataclct = (tmpDataclct).setReplaceWord("06","설문조사");
  462. tmpDataclct = (tmpDataclct).setReplaceWord("99","기타");
  463. ds_main_list_row.setColumn(i, "dataclctnm", tmpDataclct);
  464. }
  465. if(!utlf_isNull(tmpTrgtset)){
  466. tmpTrgtset = (tmpTrgtset).setReplaceWord("01","타기관자료");
  467. tmpTrgtset = (tmpTrgtset).setReplaceWord("02","과학적근거");
  468. tmpTrgtset = (tmpTrgtset).setReplaceWord("99","기타");
  469. ds_main_list_row.setColumn(i, "trgtsetnm", tmpTrgtset);
  470. }
  471. if(!utlf_isNull(tmpDatacalcprd)){
  472. tmpDatacalcprd = (tmpDatacalcprd).setReplaceWord("01","월별");
  473. tmpDatacalcprd = (tmpDatacalcprd).setReplaceWord("02","분기별");
  474. tmpDatacalcprd = (tmpDatacalcprd).setReplaceWord("03","반기별");
  475. tmpDatacalcprd = (tmpDatacalcprd).setReplaceWord("99","기타");
  476. ds_main_list_row.setColumn(i, "datacalcprdnm", tmpDatacalcprd);
  477. }
  478. if(!utlf_isNull(tmpRsltshadept)){
  479. tmpRsltshadept = (tmpRsltshadept).setReplaceWord("01","전부서");
  480. tmpRsltshadept = (tmpRsltshadept).setReplaceWord("02","행정부서");
  481. tmpRsltshadept = (tmpRsltshadept).setReplaceWord("03","간호부서");
  482. tmpRsltshadept = (tmpRsltshadept).setReplaceWord("04","약제부서");
  483. tmpRsltshadept = (tmpRsltshadept).setReplaceWord("05","임상각과");
  484. tmpRsltshadept = (tmpRsltshadept).setReplaceWord("99","기타");
  485. ds_main_list_row.setColumn(i, "rsltshadeptnm", tmpRsltshadept);
  486. }
  487. }
  488. }
  489. }
  490. function cf_TRMQK00320(sSvcId, nErrorCode, sErrorMsg) {
  491. if(nErrorCode < 0) return;
  492. }
  493. function group3_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  494. {
  495. fGetList();
  496. }
  497. function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  498. {
  499. grdf_exportExcel(grd_list, "지표관리목록_" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  500. }
  501. function grd_list_onheadclick(obj:Grid, e:GridClickEventInfo)
  502. {
  503. grdf_gridSort(grd_list,e);
  504. }
  505. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  506. {
  507. var acptno = ds_main_list_row.getColumn(ds_main_list_row.rowposition, "acptno");
  508. if ( !utlf_isNull(acptno) ) {
  509. frmf_setParameter("ano", acptno);
  510. }
  511. frmf_open("SMMQK00112", "SMMQK00112", null, null, 1, 10, 10, null, null, null, null, null, "M");
  512. }
  513. //자료 수집
  514. function lf_setDataclct(aClct){
  515. /*
  516. 01 : EMR자료수집
  517. 02 : 전산자료요청
  518. 03 : 보고서자료
  519. 04 : 관찰조사
  520. 05 : 수기자료
  521. 06 : 설문조사
  522. 07 : 기타
  523. */
  524. aClct = (aClct).setReplaceWord("01","EMR자료");
  525. aClct = (aClct).setReplaceWord("02","전산자료요청");
  526. aClct = (aClct).setReplaceWord("03","보고서자료");
  527. aClct = (aClct).setReplaceWord("04","관찰조사");
  528. aClct = (aClct).setReplaceWord("05","수기자료");
  529. aClct = (aClct).setReplaceWord("06","설문조사");
  530. aClct = (aClct).setReplaceWord("07","기타");
  531. return aClct;
  532. }
  533. function grp_sea_btn_delt_onclick(obj:Button, e:ClickEventInfo)
  534. {
  535. ds_hidden_cond.setColumn(0,"acptno",ds_main_list_row.getColumn(ds_main_list_row.rowposition,"acptno"));
  536. if(utlf_isNull(ds_hidden_cond.getColumn(0,"acptno"))){
  537. sysf_messageBox("삭제할 항목을 선택하시기 바랍니다");
  538. return;
  539. }
  540. var rtnval = sysf_messageBox("삭제 하시겠습니까?","Q");
  541. if(rtnval == 6){ //예
  542. var oParam = {};
  543. oParam.id = "TXMQK00200";
  544. oParam.service = "qiapp.QiActivityMngt";
  545. oParam.method = "reqDelQiActivityPlanNEW";
  546. oParam.inds = "req=ds_hidden_cond attach=ds_send_cond_attach";
  547. oParam.outds = "ds_hidden_cnt=cnt";
  548. oParam.async = false;
  549. //oParam.callback = "cf_TXMQK00200";
  550. tranf_submit(oParam);
  551. fGetList();
  552. }
  553. }
  554. function grp_sea_caption8_onclick(obj:Static, e:ClickEventInfo)
  555. {
  556. }
  557. ]]></Script>
  558. </Form>
  559. </FDL>