SMMQR03300_안전사고통합보고권한관리.xfdl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMQR03300" position="absolute 0 0 830 550" titletext="안전사고통합보고조회 권한관리" oninit="SMMQR03300_oninit" onload="SMMQR03300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab position="absolute 0 27 813 532" id="switch1" onchanged="switch1_onchanged">
  8. <Tabpages>
  9. <Tabpage text="조회권한" id="case1">
  10. <Layouts>
  11. <Layout>
  12. <Edit readonly="true" position="absolute 323 46 458 65" id="output1" visible="false"/>
  13. <Edit position="absolute 145 48 215 67" id="input1" visible="false"/>
  14. <Shape position="absolute 0 38 810 73" id="roundrect1" visible="false" type="roundrectangle"/>
  15. <Static text="사용자직급 :" position="absolute 225 47 366 64" id="caption1" class="search_name" visible="false"/>
  16. <Static text="사용자직급조회(ID) :" position="absolute 2 47 143 64" id="caption21" class="search_name" visible="false"/>
  17. <Div position="absolute 0 441 810 466" id="group4">
  18. <Layouts>
  19. <Layout>
  20. <Button position="absolute 746 1 802 23" id="btn_close" class="btn4" text="닫기" onclick="switch1_case1_group4_btn_close_onclick"/>
  21. <Button position="absolute 686 1 742 23" id="btn_save" class="btn4" text="저장" onclick="switch1_case1_group4_btn_save_onclick"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Div position="absolute 0 19 812 425" id="group5">
  26. <Layouts>
  27. <Layout>
  28. <Button position="absolute 361 0 414 19" id="btn_add1" class="btn2" text="행추가" onclick="switch1_case1_group5_btn_add1_onclick"/>
  29. <Button position="absolute 541 0 594 19" id="btn_add2" class="btn2" text="행추가" onclick="switch1_case1_group5_btn_add2_onclick"/>
  30. <Button position="absolute 695 0 748 19" id="btn_add3" class="btn2" text="행추가" onclick="switch1_case1_group5_btn_add3_onclick"/>
  31. <Button position="absolute 416 0 469 19" id="btn_del1" class="btn2" text="행삭제" onclick="switch1_case1_group5_btn_del1_onclick"/>
  32. <Button position="absolute 596 0 649 19" id="btn_del2" class="btn2" text="행삭제" onclick="switch1_case1_group5_btn_del2_onclick"/>
  33. <Button position="absolute 750 0 803 19" id="btn_del3" class="btn2" text="행삭제"/>
  34. <Div position="absolute 0 20 470 405" id="group2">
  35. <Layouts>
  36. <Layout>
  37. <Shape position="absolute 0 0 470 6" linetype="horizontal" id="line1" class="line_10"/>
  38. <Grid position="absolute 0 5 470 385" id="grd_grouplist" binddataset="ds_main_grouplist_grouplist" autofittype="col" oncelldblclick="switch1_case1_group5_group2_grd_grouplist_oncelldblclick">
  39. <Formats>
  40. <Format id="default">
  41. <Columns>
  42. <Column size="24"/>
  43. <Column size="126"/>
  44. <Column size="77"/>
  45. <Column size="81"/>
  46. <Column size="81"/>
  47. <Column size="82"/>
  48. <Column size="0"/>
  49. </Columns>
  50. <Rows>
  51. <Row size="24" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell/>
  56. <Cell col="1" text="권한그룹"/>
  57. <Cell col="2" text="직급"/>
  58. <Cell col="3" text="전체조회여부"/>
  59. <Cell col="4" text="익명조회여부"/>
  60. <Cell col="5" text="그룹분류코드"/>
  61. <Cell col="6" text="hardcdno"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell celltype="head"/>
  65. <Cell col="1" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:trgtcdnm" wordwrap="word"/>
  66. <Cell col="2" displaytype="combo" edittype="combo" style="align:left top;padding:5 2 1 2;" text="bind:trgtcdsnm" wordwrap="word" combodataset="ds_init_comcd_R0062" combocodecol="cdid" combodatacol="cdnm"/>
  67. <Cell col="3" displaytype="combo" edittype="combo" style="align:left middle;padding:1 2 1 2;" text="bind:hardspec" combodataset="ds_cbo_YN" combocodecol="value" combodatacol="label"/>
  68. <Cell col="4" displaytype="combo" edittype="combo" style="align:left middle;padding:1 2 1 2;" text="bind:ccode" combodataset="ds_cbo_YN" combocodecol="value" combodatacol="label"/>
  69. <Cell col="5" style="align:left middle;padding:1 2 1 2;" text="bind:trgtcd"/>
  70. <Cell col="6" text="bind:hardcdno"/>
  71. </Band>
  72. </Format>
  73. </Formats>
  74. </Grid>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. <Button position="absolute 475 205 501 224" id="btn_detail" class="icon_right" text="" onclick="switch1_case1_group5_btn_detail_onclick"/>
  79. <Grid position="absolute 506 25 651 405" id="grd_deptlist" binddataset="ds_main_deptlist_deptlist" autofittype="col" onexpanddown="switch1_case1_group5_grd_deptlist_onexpanddown" oncelldblclick="switch1_case1_group5_grd_deptlist_oncelldblclick">
  80. <Formats>
  81. <Format id="default">
  82. <Columns>
  83. <Column size="24"/>
  84. <Column size="120"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. </Columns>
  90. <Rows>
  91. <Row size="24" band="head"/>
  92. <Row size="24"/>
  93. </Rows>
  94. <Band id="head">
  95. <Cell/>
  96. <Cell col="1" text="주 과 (부서)"/>
  97. <Cell col="2" text="주과코드"/>
  98. <Cell col="3" text="trgtcd"/>
  99. <Cell col="4" text="cdseqno"/>
  100. <Cell col="5" text="hardcdno"/>
  101. </Band>
  102. <Band id="body">
  103. <Cell celltype="head"/>
  104. <Cell col="1" displaytype="text" edittype="text" text="bind:trgtcdsnm" expandshow="show"/>
  105. <Cell col="2" text="bind:trgtcdnm"/>
  106. <Cell col="3" text="bind:trgtcd"/>
  107. <Cell col="4" text="bind:cdseqno"/>
  108. <Cell col="5" text="bind:hardcdno"/>
  109. </Band>
  110. </Format>
  111. </Formats>
  112. </Grid>
  113. <Shape position="absolute 506 20 806 26" linetype="horizontal" id="line2" class="line_10"/>
  114. <Grid position="absolute 650 25 805 405" id="grd_ddeptlist" binddataset="ds_main_ddeptlist_ddeptlist" autofittype="col" onexpanddown="switch1_case1_group5_grd_ddeptlist_onexpanddown">
  115. <Formats>
  116. <Format id="default">
  117. <Columns>
  118. <Column size="24"/>
  119. <Column size="130"/>
  120. <Column size="0"/>
  121. <Column size="0"/>
  122. <Column size="0"/>
  123. <Column size="0"/>
  124. </Columns>
  125. <Rows>
  126. <Row size="24" band="head"/>
  127. <Row size="24"/>
  128. </Rows>
  129. <Band id="head">
  130. <Cell/>
  131. <Cell col="1" text="부 과(부서)"/>
  132. <Cell col="2" text="부과코드"/>
  133. <Cell col="3" text="trgtcd"/>
  134. <Cell col="4" text="cdseqno"/>
  135. <Cell col="5" text="hardcdno"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell celltype="head"/>
  139. <Cell col="1" displaytype="text" edittype="text" text="bind:trgtcdsnm" expandshow="show"/>
  140. <Cell col="2" text="bind:trgtcdnm"/>
  141. <Cell col="3" text="bind:trgtcd"/>
  142. <Cell col="4" text="bind:cdseqno"/>
  143. <Cell col="5" text="bind:hardcdno"/>
  144. </Band>
  145. </Format>
  146. </Formats>
  147. </Grid>
  148. </Layout>
  149. </Layouts>
  150. </Div>
  151. </Layout>
  152. </Layouts>
  153. </Tabpage>
  154. <Tabpage text="SMS대상자" id="case2">
  155. <Layouts>
  156. <Layout>
  157. <Div position="absolute 0 19 805 424" id="group3">
  158. <Layouts>
  159. <Layout>
  160. <Button position="absolute 691 0 744 19" id="button1" class="btn2" text="행추가" anchor="default" onclick="switch1_case2_group3_button1_onclick"/>
  161. <Button position="absolute 746 0 799 19" id="button4" class="btn2" text="행삭제" anchor="default" onclick="switch1_case2_group3_button4_onclick"/>
  162. <Div position="absolute 0 20 805 405" id="group6" anchor="default">
  163. <Layouts>
  164. <Layout>
  165. <Shape position="absolute 0 0 800 6" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
  166. <Grid position="absolute 0 5 800 379" id="datagridSMS" binddataset="ds_main_SMSlist_SMSlist" anchor="default" onexpanddown="switch1_case2_group3_group6_datagridSMS_onexpanddown">
  167. <Formats>
  168. <Format id="default">
  169. <Columns>
  170. <Column size="24"/>
  171. <Column size="97"/>
  172. <Column size="242"/>
  173. <Column size="116"/>
  174. <Column size="138"/>
  175. <Column size="163"/>
  176. <Column size="0"/>
  177. <Column size="0"/>
  178. </Columns>
  179. <Rows>
  180. <Row size="24" band="head"/>
  181. <Row size="24"/>
  182. </Rows>
  183. <Band id="head">
  184. <Cell/>
  185. <Cell col="1" text="사용자"/>
  186. <Cell col="2" text="직책"/>
  187. <Cell col="3" text="전화번호"/>
  188. <Cell col="4" text="소속부"/>
  189. <Cell col="5" text="소속과"/>
  190. <Cell col="6" text="hardcdno"/>
  191. <Cell col="7" text="caption1"/>
  192. </Band>
  193. <Band id="body">
  194. <Cell celltype="head"/>
  195. <Cell col="1" displaytype="text" edittype="text" text="bind:trgtcdnm" expandshow="show"/>
  196. <Cell col="2" displaytype="text" edittype="text" text="bind:trgtcdsnm"/>
  197. <Cell col="3" displaytype="text" edittype="text" text="bind:trgtcd"/>
  198. <Cell col="4" displaytype="combo" edittype="combo" text="bind:ccode" combodataset="ds_cbo_ccode" combocodecol="value" combodatacol="label"/>
  199. <Cell col="5" displaytype="text" edittype="text" text="bind:hardspec" expandshow="show" enable="false"/>
  200. <Cell col="6" displaytype="none" edittype="none" text="bind:hardcdno"/>
  201. <Cell col="7" text="bind:cdseqno"/>
  202. </Band>
  203. </Format>
  204. </Formats>
  205. </Grid>
  206. </Layout>
  207. </Layouts>
  208. </Div>
  209. <Static text="* 행추가 시 간호 과장 간호부장의 경우" position="absolute 10 1 665 21" id="caption2" anchor="default"/>
  210. </Layout>
  211. </Layouts>
  212. </Div>
  213. <Div position="absolute 0 423 810 478" id="group7">
  214. <Layouts>
  215. <Layout>
  216. <Button position="absolute 746 4 802 26" id="button2" class="btn4" text="닫기" onclick="switch1_case2_group7_button2_onclick"/>
  217. <Button position="absolute 686 4 742 26" id="button3" class="btn4" text="저장" onclick="switch1_case2_group7_button3_onclick"/>
  218. <Static text="※ 행추가 시 간호 과장 간호부장의 경우" position="absolute 10 16 365 36" id="caption3" style="color:red;"/>
  219. <Static text="- 소속과를 병동간호과장 : 0000000000 / 간호지원과장 : 0000000001 / 특수간호과장 : 0000000002 / 간호부장 : 7777777777로 입력" position="absolute 15 33 729 53" id="caption4"/>
  220. <Static text="※ 간호부 이외 센터나 외래쪽은 소속부를 기타로 선택" position="absolute 10 0 316 20" id="caption7" style="color:red;"/>
  221. </Layout>
  222. </Layouts>
  223. </Div>
  224. </Layout>
  225. </Layouts>
  226. </Tabpage>
  227. </Tabpages>
  228. </Tab>
  229. <Static id="caption6" text="안전사고통합보고조회 권한관리" class="tit_1" position="absolute 0 0 365 25"/>
  230. </Layout>
  231. </Layouts>
  232. <Objects>
  233. <Dataset id="ds_init_comcd_R0062" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  234. <Dataset id="ds_cbo_YN" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="label" type="STRING" size="256"/>
  237. <Column id="value" type="STRING" size="256"/>
  238. </ColumnInfo>
  239. <Rows>
  240. <Row>
  241. <Col id="label">Y</Col>
  242. <Col id="value">Y</Col>
  243. </Row>
  244. <Row>
  245. <Col id="label">N</Col>
  246. <Col id="value">N</Col>
  247. </Row>
  248. </Rows>
  249. </Dataset>
  250. <Dataset id="ds_main_grouplist_grouplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  251. <Dataset id="ds_main_deptlist_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  252. <Dataset id="ds_main_ddeptlist_ddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  253. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="hardcdno" type="STRING" size="256"/>
  256. <Column id="trgtcd" type="STRING" size="256"/>
  257. <Column id="grouplist" type="STRING" size="256"/>
  258. <Column id="deptlist" type="STRING" size="256"/>
  259. <Column id="ddeptlist" type="STRING" size="256"/>
  260. <Column id="SMSlist" type="STRING" size="256"/>
  261. <Column id="userinfo" type="STRING" size="256"/>
  262. <Column id="dddd" type="STRING" size="256"/>
  263. </ColumnInfo>
  264. <Rows>
  265. <Row>
  266. <Col id="hardcdno"/>
  267. <Col id="trgtcd"/>
  268. <Col id="grouplist"/>
  269. <Col id="deptlist"/>
  270. <Col id="ddeptlist"/>
  271. <Col id="SMSlist"/>
  272. <Col id="userinfo"/>
  273. </Row>
  274. </Rows>
  275. </Dataset>
  276. <Dataset id="ds_send_grouplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  277. <Dataset id="ds_send_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  278. <Dataset id="ds_send_ddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  279. <Dataset id="ds_cbo_ccode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  280. <ColumnInfo>
  281. <Column id="label" type="STRING" size="256"/>
  282. <Column id="value" type="STRING" size="256"/>
  283. </ColumnInfo>
  284. <Rows>
  285. <Row>
  286. <Col id="label">병동간호과</Col>
  287. <Col id="value">0000000000</Col>
  288. </Row>
  289. <Row>
  290. <Col id="label">간호지원과</Col>
  291. <Col id="value">0000000001</Col>
  292. </Row>
  293. <Row>
  294. <Col id="label">특수간호과</Col>
  295. <Col id="value">0000000002</Col>
  296. </Row>
  297. <Row>
  298. <Col id="label">간호과장</Col>
  299. <Col id="value">7777777777</Col>
  300. </Row>
  301. <Row>
  302. <Col id="label">간호부장</Col>
  303. <Col id="value">8888888888</Col>
  304. </Row>
  305. <Row>
  306. <Col id="label">관리자</Col>
  307. <Col id="value">9999999999</Col>
  308. </Row>
  309. <Row>
  310. <Col id="label">기타</Col>
  311. <Col id="value">1000000000</Col>
  312. </Row>
  313. </Rows>
  314. </Dataset>
  315. <Dataset id="ds_main_SMSlist_SMSlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_SMSlist_SMSlist_oncolumnchanged"/>
  316. <Dataset id="ds_send_SMSlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  317. </Objects>
  318. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  319. include "com_commodulexp::SSZFM00701.xjs";
  320. include "mis_miscommonxp::MIS.xjs";
  321. include "mis_miscommonxp::RSZ001.xjs";
  322. var arErrorCode = new HashArray();
  323. function SMMQR03300_oninit(obj:Form, e:InitEventInfo)
  324. {
  325. frmf_initForm(obj); //폼 초기화
  326. grdf_setRowTypeIcon(switch1.case1.group5.group2.grd_grouplist, 0);
  327. grdf_setRowTypeIcon(switch1.case1.group5.grd_ddeptlist, 0);
  328. grdf_setRowTypeIcon(switch1.case1.group5.grd_deptlist, 0);
  329. //grdf_setGridSort(switch1.case1.group5.group2.grd_grouplist);
  330. //grdf_setGridSort(switch1.case1.group5.grd_deptlist);
  331. //grdf_setGridSort(switch1.case1.group5.grd_ddeptlist);
  332. grdf_setGridSort(switch1.case2.group3.group6.datagridSMS);
  333. }
  334. function SMMQR03300_onload(obj:Form, e:LoadEventInfo)
  335. {
  336. var arrParam = [ {dsNm : "ds_init_comcd_R0062", cdGrpId: "R0062" } ];
  337. appf_getCodeList(arrParam);
  338. var vInstcd = sysf_getUserInfo("dutplceinstcd");
  339. if(vInstcd != "032"){
  340. lf_setTabPageVisble(switch1, "case2", false);
  341. }
  342. forminit();
  343. }
  344. function forminit(){
  345. ds_send.setColumn(0, "hardcdno", "5667");
  346. //권한그룹조회
  347. var oParam = {};
  348. oParam.id = "TRMQR03301";
  349. oParam.service = "qiapp.SafeAcdList";
  350. oParam.method = "reqGetGruopList";
  351. oParam.inds = "req=ds_send";
  352. oParam.outds = "ds_main_grouplist_grouplist=grouplist";
  353. oParam.async = false;
  354. tranf_submit(oParam);
  355. ds_main_deptlist_deptlist.clearData();
  356. ds_main_ddeptlist_ddeptlist.clearData();
  357. }
  358. function SMSinit(){
  359. ds_send.setColumn(0, "hardcdno","9952");
  360. //권한그룹조회
  361. var oParam = {};
  362. oParam.id = "TRMQR03304";
  363. oParam.service = "qiapp.SafeAcdList";
  364. oParam.method = "reqGetSMSList";
  365. oParam.inds = "req=ds_send";
  366. oParam.outds = "ds_main_SMSlist_SMSlist=SMSlist";
  367. oParam.async = false;
  368. tranf_submit(oParam);
  369. //model.copyNode("/root/main/SMSlist", "/root/temp/SMSlist");
  370. }
  371. function switch1_case1_group5_btn_add1_onclick(obj:Button, e:ClickEventInfo)
  372. {
  373. ds_main_grouplist_grouplist.addRow();
  374. var trgtcd = eval(ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition - 1, "trgtcd"));
  375. if( ds_main_grouplist_grouplist.rowposition < 1 ){
  376. trgtcd = 0;
  377. }
  378. ds_main_grouplist_grouplist.setColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd", trgtcd+1);
  379. ds_main_grouplist_grouplist.setColumn(ds_main_grouplist_grouplist.rowposition, "hardcdno", "5667");
  380. ds_main_deptlist_deptlist.clearData();
  381. ds_main_ddeptlist_ddeptlist.clearData();
  382. }
  383. function switch1_case1_group5_btn_del1_onclick(obj:Button, e:ClickEventInfo)
  384. {
  385. var cur_row = ds_main_grouplist_grouplist.rowposition;
  386. if(cur_row < 0) {
  387. sysf_messageBox("삭제할 권한그룹 행을","C002");
  388. return;
  389. }
  390. ds_main_grouplist_grouplist.enableevent = false;
  391. ds_main_grouplist_grouplist.updatecontrol = false;
  392. ds_main_grouplist_grouplist.setRowType(ds_main_grouplist_grouplist.rowposition, 8);
  393. ds_main_grouplist_grouplist.updatecontrol = true;
  394. ds_main_grouplist_grouplist.enableevent = true;
  395. }
  396. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  397. {
  398. if(switch1.tabindex == 0){
  399. switch1.case2.group3.visible = false;
  400. switch1.case2.group7.visible = false;
  401. switch1.case1.group4.visible = true;
  402. switch1.case1.group5.visible = true;
  403. forminit();
  404. }else{
  405. switch1.case2.group3.visible = true;
  406. switch1.case2.group7.visible = true;
  407. switch1.case1.group4.visible = false;
  408. switch1.case1.group5.visible = false;
  409. SMSinit();
  410. }
  411. }
  412. function switch1_case1_group5_group2_grd_grouplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  413. {
  414. ds_send.setColumn(0, "hardcdno","5668");
  415. ds_send.setColumn(0, "trgtcd", ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd"));
  416. //주과조회
  417. var oParam = {};
  418. oParam.id = "TRMQR03302";
  419. oParam.service = "qiapp.SafeAcdList";
  420. oParam.method = "reqGetDeptList";
  421. oParam.inds = "req=ds_send";
  422. oParam.outds = "ds_main_deptlist_deptlist=deptlist";
  423. oParam.async = false;
  424. tranf_submit(oParam);
  425. ds_main_ddeptlist_ddeptlist.clearData();
  426. }
  427. function switch1_case1_group5_btn_detail_onclick(obj:Button, e:ClickEventInfo)
  428. {
  429. ds_send.setColumn(0, "hardcdno","5668");
  430. ds_send.setColumn(0, "trgtcd", ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd"));
  431. //주과조회
  432. var oParam = {};
  433. oParam.id = "TRMQR03302";
  434. oParam.service = "qiapp.SafeAcdList";
  435. oParam.method = "reqGetDeptList";
  436. oParam.inds = "req=ds_send";
  437. oParam.outds = "ds_main_deptlist_deptlist=deptlist";
  438. oParam.async = false;
  439. tranf_submit(oParam);
  440. }
  441. function switch1_case1_group5_btn_add2_onclick(obj:Button, e:ClickEventInfo)
  442. {
  443. var cur_row = ds_main_grouplist_grouplist.rowposition;
  444. if(cur_row < 0) {
  445. sysf_messageBox("추가할 권한그룹 행을","C002");
  446. return;
  447. }
  448. ds_main_ddeptlist_ddeptlist.clearData();
  449. ds_main_deptlist_deptlist.addRow();
  450. switch1_case1_group5_grd_deptlist_onexpanddown();
  451. }
  452. function switch1_case1_group5_grd_deptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  453. {
  454. frmf_clearParameter("SPZSA20202_");
  455. var col = switch1.case1.group5.grd_deptlist.currentcol;
  456. var objArg = new Object();
  457. objArg.SPZSA20202_1 = eval(col);
  458. var iProperties = frmf_modal("SPZSA20202", "SPZSA20202", objArg);
  459. if(!utlf_isNull(iProperties)){
  460. var iSplit_Value = utlf_transNullToEmpty(iProperties).split("|");
  461. if(utlf_transNullToEmpty(iSplit_Value).length > 0 && !utlf_isNull(iSplit_Value[0])){
  462. var iRow = ds_main_deptlist_deptlist.rowposition;
  463. var iNode = ds_main_deptlist_deptlist;
  464. var trgtcd = ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd");
  465. var cdseqno = eval(ds_main_deptlist_deptlist.getColumn(ds_main_deptlist_deptlist.rowposition - 1, "cdseqno"));
  466. if( ds_main_deptlist_deptlist.rowposition < 1 ){
  467. cdseqno = eval(0);
  468. }
  469. var rsltCdseqno =trgtcd + grdf_getSelectedRows(switch1.case1.group5.grd_deptlist);
  470. if(iSplit_Value[0]=="D"){
  471. fSetRowValue(iNode, "trgtcdnm", iSplit_Value[1], iRow);
  472. fSetRowValue(iNode, "trgtcdsnm", iSplit_Value[2], iRow);
  473. fSetRowValue(iNode, "trgtcd", trgtcd, iRow);
  474. fSetRowValue(iNode, "cdseqno", rsltCdseqno, iRow);
  475. //fSetRowValue(iNode, "cdseqno", cdseqno+1, iRow);
  476. fSetRowValue(iNode, "hardcdno", "5668", iRow);
  477. }
  478. }
  479. }
  480. }
  481. function fSetRowValue(node, destinationelement, sourceelement, row) {
  482. dsf_makeValue(node, destinationelement, "string", sourceelement, row);
  483. }
  484. function switch1_case1_group5_btn_del2_onclick(obj:Button, e:ClickEventInfo)
  485. {
  486. var cur_row = ds_main_deptlist_deptlist.rowposition;
  487. if(cur_row < 0) {
  488. sysf_messageBox("삭제할 주과 행을","C002");
  489. return;
  490. }
  491. ds_main_deptlist_deptlist.enableevent = false;
  492. ds_main_deptlist_deptlist.updatecontrol = false;
  493. ds_main_deptlist_deptlist.setRowType(ds_main_deptlist_deptlist.rowposition, 8);
  494. ds_main_deptlist_deptlist.updatecontrol = true;
  495. ds_main_deptlist_deptlist.enableevent = true;
  496. }
  497. function switch1_case1_group5_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  498. {
  499. ds_send.setColumn(0, "hardcdno","5669");
  500. ds_send.setColumn(0, "trgtcd", ds_main_deptlist_deptlist.getColumn(ds_main_deptlist_deptlist.rowposition, "cdseqno"));
  501. //부과부서 조회
  502. var oParam = {};
  503. oParam.id = "TRMQR03303";
  504. oParam.service = "qiapp.SafeAcdList";
  505. oParam.method = "reqGetDetailDeptList";
  506. oParam.inds = "req=ds_send";
  507. oParam.outds = "ds_main_ddeptlist_ddeptlist=ddeptlist";
  508. oParam.async = false;
  509. tranf_submit(oParam);
  510. }
  511. function switch1_case1_group5_btn_add3_onclick(obj:Button, e:ClickEventInfo)
  512. {
  513. var cur_row = ds_main_deptlist_deptlist.rowposition;
  514. if(cur_row < 0) {
  515. sysf_messageBox("추가할 주 과의 행을","C002");
  516. return;
  517. }
  518. ds_main_ddeptlist_ddeptlist.addRow();
  519. switch1_case1_group5_grd_ddeptlist_onexpanddown();
  520. }
  521. function switch1_case1_group5_grd_ddeptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  522. {
  523. var col = switch1.case1.group5.grd_ddeptlist.currentcol;
  524. var objArg = new Object();
  525. objArg.SPZSA20202_1 = eval(col);
  526. var iProperties = frmf_modal("SPZSA20202", "SPZSA20202", objArg);
  527. if(!utlf_isNull(iProperties)){
  528. var iSplit_Value=utlf_transNullToEmpty(iProperties).split("|");
  529. if(utlf_transNullToEmpty(iSplit_Value).length > 0 && !utlf_isNull(iSplit_Value[0])){
  530. var iRow = ds_main_ddeptlist_ddeptlist.rowposition;
  531. var iNode = ds_main_ddeptlist_ddeptlist;
  532. var trgtcd = ds_main_deptlist_deptlist.getColumn(ds_main_deptlist_deptlist.rowposition, "cdseqno");
  533. var cdseqno = eval(ds_main_ddeptlist_ddeptlist.getColumn(ds_main_ddeptlist_ddeptlist.rowposition - 1, "cdseqno"));
  534. if( ds_main_ddeptlist_ddeptlist.rowposition < 1 ){
  535. cdseqno = eval(0);
  536. }
  537. if(iSplit_Value[0]=="D"){
  538. fSetRowValue(iNode, "trgtcdnm", iSplit_Value[1], iRow);
  539. fSetRowValue(iNode, "trgtcdsnm", iSplit_Value[2], iRow);
  540. fSetRowValue(iNode, "trgtcd", trgtcd, iRow);
  541. fSetRowValue(iNode, "cdseqno", cdseqno+1, iRow);
  542. fSetRowValue(iNode, "hardcdno", "5669", iRow);
  543. }
  544. }
  545. }
  546. }
  547. function switch1_case1_group4_btn_save_onclick(obj:Button, e:ClickEventInfo)
  548. {
  549. var updateData = grdf_getGridUpdateData(switch1.case1.group5.group2.grd_grouplist);
  550. grdf_setStatusColumn(updateData, "m");
  551. ds_send_grouplist.copyData(updateData, true);
  552. var updateData1 = grdf_getGridUpdateData(switch1.case1.group5.grd_deptlist);
  553. grdf_setStatusColumn(updateData1, "m");
  554. ds_send_deptlist.copyData(updateData1, true);
  555. var updateData2 = grdf_getGridUpdateData(switch1.case1.group5.grd_ddeptlist);
  556. grdf_setStatusColumn(updateData2, "m");
  557. ds_send_ddeptlist.copyData(updateData2, true);
  558. var oParam = {};
  559. oParam.id = "TXMQR03301";
  560. oParam.service = "qiapp.SafeAcdList";
  561. oParam.method = "reqSetGroupList";
  562. oParam.inds = "grouplist=ds_send_grouplist deptlist=ds_send_deptlist ddeptlist=ds_send_ddeptlist";
  563. oParam.outds = "ds_main_grouplist_grouplist=grouplist";
  564. oParam.async = false;
  565. oParam.callback = "cf_TXMQR03301";
  566. tranf_submit(oParam);
  567. if(arErrorCode.pop("TXMQR03301") > -1){
  568. sysf_messageBox("저장","I002");//완료되었습니다.
  569. ds_main_grouplist_grouplist.clearData();
  570. ds_main_deptlist_deptlist.clearData();
  571. ds_main_ddeptlist_ddeptlist.clearData();
  572. forminit();
  573. }else{
  574. sysf_messageBox("저장","E009");//실패하였습니다.
  575. }
  576. }
  577. function cf_TXMQR03301(sSvcId, nErrorCode, sErrorMsg) {
  578. arErrorCode.push(sSvcId, nErrorCode);
  579. }
  580. function switch1_case2_group3_button1_onclick(obj:Button, e:ClickEventInfo)
  581. {
  582. ds_main_SMSlist_SMSlist.addRow();
  583. ds_main_SMSlist_SMSlist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "hardcdno", "9952");
  584. }
  585. function switch1_case2_group3_button4_onclick(obj:Button, e:ClickEventInfo)
  586. {
  587. var cur_row = ds_main_SMSlist_SMSlist.rowposition;
  588. if(cur_row < 0) {
  589. sysf_messageBox("삭제할 권한그룹 행을","C002");
  590. return;
  591. }
  592. ds_main_SMSlist_SMSlist.enableevent = false;
  593. ds_main_SMSlist_SMSlist.updatecontrol = false;
  594. ds_main_SMSlist_SMSlist.setRowType(ds_main_SMSlist_SMSlist.rowposition, 8);
  595. ds_main_SMSlist_SMSlist.updatecontrol = true;
  596. ds_main_SMSlist_SMSlist.enableevent = true;
  597. }
  598. function switch1_case2_group3_group6_datagridSMS_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  599. {
  600. if( switch1.case2.group3.group6.datagridSMS.currentcol == switch1.case2.group3.group6.datagridSMS.getBindCellIndex("body", "hardspec") )
  601. {
  602. var recv_list = "hardspec";
  603. misfOpenPopUpList("02", switch1.case2.group3.group6.datagridSMS, "", recv_list, ds_main_SMSlist_SMSlist.getColumn(ds_main_SMSlist_SMSlist.rowposition, "hardspec"));
  604. }
  605. else if( datagridSMS.col == datagridSMS.colRef("trgtcdnm") )
  606. {
  607. frmf_setParameter("search_condition","김동규");
  608. frmf_setParameter("resultref","/root/send/userinfo");
  609. frmf_modal("SPZSU10100","SPZSU10100","", "", "", "","","", "", "", "", "", "M");
  610. var userinfo = ds_send.getColumn(0, "userinfo");
  611. userinfo = userinfo.split("|");
  612. if( utlf_isNull(userinfo)){
  613. return;
  614. }
  615. var rshid = userinfo[2];
  616. var rshnm = userinfo[3];
  617. var deptnm = userinfo[10];
  618. var deptcd = userinfo[11];
  619. var trgtmancntcphone = userinfo[18];
  620. var trgtmancntctel = userinfo[15];
  621. trgtmancntcphone = trgtmancntcphone.replace("-", "");
  622. ds_main_SMSlist_SMSlist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "trgtcdnm", userid);
  623. ds_main_SMSlist_SMSlist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "trgtcd", trgtmancntcphone);
  624. }
  625. }
  626. function ds_main_SMSlist_SMSlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  627. {
  628. if( switch1.case2.group3.group6.datagridSMS.currentcol == switch1.case2.group3.group6.datagridSMS.getBindCellIndex("body", "ccode") ){
  629. if(ds_main_SMSlist_SMSlist.getColumn(ds_main_SMSlist_SMSlist.rowposition, "ccode") == "0000000000"){
  630. ds_main_grouplist_grouplist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "hardspec", "0000000001");
  631. }
  632. }
  633. }
  634. function switch1_case2_group7_button3_onclick(obj:Button, e:ClickEventInfo)
  635. {
  636. var updateData = grdf_getGridUpdateData(switch1.case2.group3.group6.datagridSMS);
  637. grdf_setStatusColumn(updateData, "m");
  638. ds_send_SMSlist.copyData(updateData, true);
  639. var oParam = {};
  640. oParam.id = "TXMQR03302";
  641. oParam.service = "qiapp.SafeAcdList";
  642. oParam.method = "reqSetSMSList";
  643. oParam.inds = "SMSlist=ds_send_SMSlist";
  644. oParam.outds = "ds_main_SMSlist_SMSlist=SMSlist";
  645. oParam.async = false;
  646. oParam.callback = "cf_TXMQR03302";
  647. tranf_submit(oParam);
  648. if(arErrorCode.pop("TXMQR03302") > -1){
  649. sysf_messageBox("저장","I002");//완료되었습니다.
  650. ds_main_SMSlist_SMSlist.clearData();
  651. SMSinit();
  652. }else{
  653. sysf_messageBox("저장","E009");//실패하였습니다.
  654. }
  655. }
  656. function cf_TXMQR03302(sSvcId, nErrorCode, sErrorMsg) {
  657. arErrorCode.push(sSvcId, nErrorCode);
  658. }
  659. function switch1_case2_group7_button2_onclick(obj:Button, e:ClickEventInfo)
  660. {
  661. this.close();
  662. }
  663. function switch1_case1_group4_btn_close_onclick(obj:Button, e:ClickEventInfo)
  664. {
  665. this.close();
  666. }
  667. ]]></Script>
  668. </Form>
  669. </FDL>