SMZSA20501_화면및보고서관리(통합).xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>화면 및 보고서 관리(통합)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <scrnlist/>
  12. <msgfrmtlist/>
  13. </list>
  14. <item>
  15. <scrncd/>
  16. <scrnflag/>
  17. <scrnnm/>
  18. <scrnurl/>
  19. <scrnpos/>
  20. <scrnsize/>
  21. <useyn/>
  22. <releaseState/>
  23. </item>
  24. <listcnt>
  25. <scrnlistcnt/>
  26. </listcnt>
  27. </main>
  28. <send>
  29. <scrnkind/>
  30. <scrncd/>
  31. <scrnurl/>
  32. <scrnlist/>
  33. <instids/>
  34. <offset/>
  35. <pagesize/>
  36. <worktotal/>
  37. <workcds/>
  38. <paging/>
  39. </send>
  40. <init>
  41. <comcd>
  42. </comcd>
  43. <instlist>
  44. <inst>
  45. <name>본원운영</name>
  46. <instcd>031</instcd>
  47. <id>his031</id>
  48. <value/>
  49. </inst>
  50. <inst>
  51. <name>칠곡운영</name>
  52. <instcd>032</instcd>
  53. <id>his032</id>
  54. <value/>
  55. </inst>
  56. <inst>
  57. <name>MIS운영</name>
  58. <instcd>030</instcd>
  59. <id>mis030</id>
  60. <value/>
  61. </inst>
  62. <inst>
  63. <name>CRM운영</name>
  64. <instcd>030</instcd>
  65. <id>crm030</id>
  66. <value/>
  67. </inst>
  68. </instlist>
  69. <worklist>
  70. <work>
  71. <label>기반기술</label>
  72. <value>1</value>
  73. </work>
  74. <work>
  75. <label>원무심사</label>
  76. <value>2</value>
  77. </work>
  78. <work>
  79. <label>진료/의무기록</label>
  80. <value>3</value>
  81. </work>
  82. <work>
  83. <label>진료지원</label>
  84. <value>4</value>
  85. </work>
  86. <work>
  87. <label>간호</label>
  88. <value>5</value>
  89. </work>
  90. <work>
  91. <label>약제</label>
  92. <value>210</value>
  93. </work>
  94. <work>
  95. <label>MIS</label>
  96. <value>6</value>
  97. </work>
  98. <work>
  99. <label>기타</label>
  100. <value>etc</value>
  101. </work>
  102. </worklist>
  103. </init>
  104. <hidden>
  105. <comcd>
  106. </comcd>
  107. </hidden>
  108. <temp/>
  109. </root>
  110. </instance>
  111. <script type="javascript" ev:event="xforms-ready">
  112. <![CDATA[
  113. // 검색조건에서 기본으로 첫번째 항목이 나타나도록 한다.
  114. fInitComcd();
  115. fInitialize();
  116. ]]>
  117. </script>
  118. <submission id="TRZSA20502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list">
  119. <script type="javascript" ev:event="xforms-submit-error">
  120. <![CDATA[
  121. ]]>
  122. </script>
  123. </submission>
  124. <submission id="TRZBC00101" method="post" replace="instance"/>
  125. <submission id="submission1" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/list"/>
  126. <submission id="TRZSA20503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/listcnt"/>
  127. <submission id="TXZSA20502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  128. </model>
  129. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  130. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  131. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  132. <script type="javascript">
  133. <![CDATA[
  134. var ICON_PATH = "com/hismainweb/images/"
  135. /**
  136. * @group :
  137. * @ver : 2006.12.20
  138. * @by : 이상준
  139. * @---------------------------------------------------
  140. * @type : function
  141. * @access : public
  142. * @desc : 공통코드 초기화
  143. * @return :
  144. * @---------------------------------------------------
  145. */
  146. function fInitComcd() {
  147. zbcfGetCodeList( new Array("Z0005"), new Array("/root/init/comcd"));
  148. zbcfGetCodeList( new Array("Z0006"), new Array("/root/init/comcd"));
  149. zbcfGetCodeList( new Array("Z0013"), new Array("/root/init/comcd"));
  150. fInsertInstance("Z0005", "전체", "-");
  151. }
  152. /**
  153. * @group :
  154. * @ver : 2006.12.20
  155. * @by : 이상준
  156. * @---------------------------------------------------
  157. * @type : function
  158. * @access : public
  159. * @desc : 초기화
  160. * @return :
  161. * @---------------------------------------------------
  162. */
  163. function fInitialize() {
  164. model.removeNodeset("/root/main/list/scrnlist");
  165. model.resetInstanceNode("/root/send");
  166. model.resetInstanceNode("/root/main/item");
  167. for(var i=0;i<grd_scrnlist.cols;i++){
  168. grd_scrnlist.mergeCol(i) = false;
  169. }
  170. grd_scrnlist.mergeCol(grd_scrnlist.colRef("rank")) = true;
  171. grd_scrnlist.mergeCol(grd_scrnlist.colRef("scrncd")) = true;
  172. model.makeValue("/root/send/offset","0");
  173. model.makeValue("/root/send/pagesize","25");
  174. model.refresh();
  175. cmc_scrncd.select(0);
  176. }
  177. /* @group :
  178. * @ver : 2006.12.20
  179. * @by : 이상준
  180. * @---------------------------------------------------
  181. * @type : function
  182. * @access : public
  183. * @desc : 그리드의 특정행을 아이콘 종류로 노드셋 바꿈
  184. * @return :
  185. * @---------------------------------------------------
  186. */
  187. function changeNodeSet() {
  188. // 각각의 행을 체크하여 아이콘이면 아이콘 종류로 노드셋 바꿈
  189. var scrnflag;
  190. for (var i=grd_scrnlist.fixedRows; i<grd_scrnlist.rows; i++)
  191. {
  192. scrnflag = model.getValue("/root/main/list/scrnlist["+i+"]/scrnflag"); // 현재 행의 화면 이름을 가져온다.
  193. //alert(scrnflag);
  194. if (scrnflag == "gif") //
  195. {
  196. grd_scrnlist.cellComboNodeset(i, 6) = "/root/init/comcd/Z0013";
  197. }
  198. }
  199. }
  200. /* @group :
  201. * @ver : 2006.12.26
  202. * @by : 이상준
  203. * @-----------------------------------
  204. * @type : function
  205. * @access : public
  206. * @desc : 조회 및 검색
  207. */
  208. function fbtnSearch() {
  209. model.removeNodeset("/root/main/list");
  210. model.makeNode("/root/main/list");
  211. //model.send("TRZSA20501");
  212. submit("TRZSA20503");
  213. submit("TRZSA20502");
  214. //grd_scrnlist.select(1, 3)=true;
  215. changeNodeSet();
  216. grd_scrnlist.row=1;
  217. }
  218. /**
  219. * @group :
  220. * @ver : 2006.12.20
  221. * @by : 이상준
  222. * @---------------------------------------------------
  223. * @type : function
  224. * @access : public
  225. * @desc : 화면명에 따라서 화면코드를 만들어줌
  226. * @return :
  227. * @---------------------------------------------------
  228. */
  229. function fbtnmakecode()
  230. {
  231. var cur_row = grd_scrnlist.row; // 추가된 행 번호 가져오기
  232. var iStatus = grd_scrnlist.rowstatus(cur_row);
  233. var scrnflag = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag"); // 현재 행의 화면 화면구분 가져온다.
  234. var scrncd = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrncd"); // 현재 행의 화면 이름을 가져온다.
  235. //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl",scrncd+"."+scrnflag);
  236. //if (grd_scrnlist.col == 1 && scrnflag == "gif")
  237. //{
  238. // grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0013";
  239. //}
  240. if (grd_scrnlist.col != 1 && grd_scrnlist.col != 2)
  241. {
  242. return;
  243. }
  244. if (scrnflag == "xrw")
  245. {
  246. //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl", "web/xrw/"+scrncd+"_.xrw");
  247. grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0006";
  248. }
  249. else if (scrnflag == "rex")
  250. {
  251. //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl", "web/rex/"+scrncd+"_.rex");
  252. grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0006";
  253. }
  254. else if (scrnflag == "gif")
  255. {
  256. //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl", ICON_PATH+scrncd+".gif");
  257. grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0013";
  258. }
  259. }
  260. /**
  261. * @group :
  262. * @ver : 2006.12.20
  263. * @by : 이상준
  264. * @---------------------------------------------------
  265. * @type : function
  266. * @access : public
  267. * @desc : 그리드 클릭시
  268. * @return :
  269. * @---------------------------------------------------
  270. */
  271. function fgrdClick()
  272. {
  273. var cur_row = grd_scrnlist.row;
  274. var iStatus = grd_scrnlist.rowstatus(cur_row);
  275. if(iStatus=="1" || iStatus=="3") // 삽입이거나 삽입후 변경되었다면...
  276. {
  277. grd_scrnlist.colDisabled(2)=false;
  278. // grd_scrnlist.colDisabled(3)=false;
  279. }
  280. else
  281. {
  282. grd_scrnlist.colDisabled(2)=true;
  283. // grd_scrnlist.colDisabled(3)=true;
  284. }
  285. }
  286. ]]>
  287. </script>
  288. </xhtml:head>
  289. <xhtml:body guideline="1,1191;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  290. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  291. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">화면 및 보고서 관리(통합)</caption>
  292. </group>
  293. <group id="group3" scroll="auto" style="left:0px; top:36px; width:1195px; height:744px; ">
  294. <caption id="caption14" class="cell_1" style="left:795px; top:116px; width:75px; height:23px; ">약재:</caption>
  295. <output id="output9" ref="/root/main/listcnt/scrnlistcnt/work7cnt" style="left:870px; top:116px; width:55px; height:19px; text-align:right; "/>
  296. <caption id="caption12" class="cell_1" style="left:1055px; top:116px; width:75px; height:23px; ">기타 :</caption>
  297. <output id="output3" ref="/root/main/listcnt/scrnlistcnt/work2cnt" style="left:335px; top:116px; width:55px; height:19px; text-align:right; "/>
  298. <output id="output2" ref="/root/main/listcnt/scrnlistcnt/work1cnt" style="left:205px; top:116px; width:55px; height:19px; text-align:right; "/>
  299. <output id="output1" ref="/root/main/listcnt/scrnlistcnt/totalcnt" style="left:75px; top:116px; width:55px; height:19px; text-align:right; "/>
  300. <caption id="caption9" class="cell_1" style="left:665px; top:116px; width:75px; height:23px; ">간호:</caption>
  301. <caption id="caption8" class="cell_1" style="left:535px; top:116px; width:75px; height:23px; ">진료지원:</caption>
  302. <caption id="caption7" class="cell_1" style="left:390px; top:116px; width:89px; height:23px; ">진료/의무기록:</caption>
  303. <caption id="caption5" class="cell_1" style="left:260px; top:116px; width:75px; height:23px; ">원무심사:</caption>
  304. <caption id="caption4" class="cell_1" style="left:130px; top:116px; width:75px; height:23px; ">기반기술:</caption>
  305. <caption id="caption44" class="cell_1" style="left:0px; top:116px; width:75px; height:23px; ">전체:</caption>
  306. <caption id="caption10" class="cell_1" style="left:925px; top:116px; width:75px; height:23px; ">MIS:</caption>
  307. <output id="output7" ref="/root/main/listcnt/scrnlistcnt/work6cnt" style="left:1000px; top:116px; width:55px; height:19px; text-align:right; "/>
  308. <output id="output6" ref="/root/main/listcnt/scrnlistcnt/work5cnt" style="left:740px; top:116px; width:55px; height:19px; text-align:right; "/>
  309. <output id="output5" ref="/root/main/listcnt/scrnlistcnt/work4cnt" style="left:610px; top:116px; width:55px; height:19px; text-align:right; "/>
  310. <output id="output4" ref="/root/main/listcnt/scrnlistcnt/work3cnt" style="left:479px; top:116px; width:55px; height:19px; text-align:right; "/>
  311. <line id="line4" class="line_2" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
  312. <group id="group2" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
  313. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  314. <caption id="caption2" class="search_name" style="left:356px; top:8px; width:86px; height:17px; ">화면구분</caption>
  315. <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
  316. <caption id="caption22" class="search_name" style="left:811px; top:8px; width:94px; height:17px; ">화면URL</caption>
  317. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:22px; width:56px; height:22px; ">
  318. <caption>조회</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. model.setValue("/root/send/offset","0");
  322. fbtnSearch();
  323. ]]>
  324. </script>
  325. </button>
  326. <select1 id="cmc_scrncd" ref="/root/send/scrnkind" class="combo_default" appearance="minimal" style="left:440px; top:8px; width:125px; height:19px; ">
  327. <choices>
  328. <itemset nodeset="/root/hidden/comcd/Z0005">
  329. <label ref="cdnm"/>
  330. <value ref="cdid"/>
  331. </itemset>
  332. </choices>
  333. </select1>
  334. <input id="ipt_scrnurl" ref="/root/send/scrnurl" class="input_search" style="left:897px; top:8px; width:200px; height:19px; ">
  335. <script type="javascript" ev:event="onkeypress">
  336. <![CDATA[
  337. if (event.keycode == 13)
  338. {
  339. ipt_scrnurl.value = ipt_scrnurl.currentText;
  340. fbtnSearch();
  341. }
  342. ]]>
  343. </script>
  344. </input>
  345. <input id="ipt_scrncd" ref="/root/send/scrncd" class="input_search" style="left:675px; top:8px; width:114px; height:19px; ">
  346. <script type="javascript" ev:event="onkeypress">
  347. <![CDATA[
  348. if (event.keycode == 13)
  349. {
  350. ipt_scrncd.value = ipt_scrncd.currentText;
  351. fbtnSearch();
  352. }
  353. ]]>
  354. </script>
  355. </input>
  356. <caption id="caption1" class="search_name" style="left:589px; top:8px; width:94px; height:17px; ">화면코드</caption>
  357. <caption id="caption3" class="search_name" style="left:5px; top:8px; width:65px; height:17px; ">기관</caption>
  358. <select id="chk_inst" ref="/root/send/instids" overflow="visible" appearance="full" cols="4" sep="^" style="left:65px; top:8px; width:275px; height:20px; border-style:none; ">
  359. <choices>
  360. <itemset nodeset="/root/init/instlist/inst">
  361. <label ref="name"/>
  362. <value ref="id"/>
  363. </itemset>
  364. </choices>
  365. </select>
  366. <select id="chk_worktotal" ref="/root/send/worktotal" overflow="visible" appearance="full" style="left:65px; top:40px; width:50px; height:20px; border-style:none; ">
  367. <choices>
  368. <item>
  369. <label>전체</label>
  370. <value>Y</value>
  371. </item>
  372. </choices>
  373. <script type="javascript" ev:event="xforms-value-changed">
  374. <![CDATA[
  375. if(chk_worktotal.value == "Y"){
  376. model.setValue("/root/send/workcds","1^2^3^4^5^6^210^etc");
  377. chk_workcds.disabled=true;
  378. }else{
  379. model.setValue("/root/send/workcds","");
  380. chk_workcds.disabled=false;
  381. }
  382. model.refresh();
  383. ]]>
  384. </script>
  385. </select>
  386. <caption id="caption13" class="search_name" style="left:5px; top:40px; width:65px; height:17px; ">업무</caption>
  387. <select id="chk_workcds" ref="/root/send/workcds" overflow="visible" appearance="full" cols="8" sep="^" style="left:115px; top:40px; width:430px; height:20px; border-style:none; ">
  388. <choices>
  389. <itemset nodeset="/root/init/worklist/work">
  390. <label ref="label"/>
  391. <value ref="value"/>
  392. </itemset>
  393. </choices>
  394. </select>
  395. <select id="checkbox1" ref="/root/send/paging" overflow="visible" appearance="full" style="left:1005px; top:40px; width:100px; height:20px; border-style:none; ">
  396. <choices>
  397. <item>
  398. <label>페이징보기</label>
  399. <value>Y</value>
  400. </item>
  401. </choices>
  402. </select>
  403. </group>
  404. <caption id="caption20" class="tit_2" style="left:6px; top:157px; width:136px; height:13px; ">화면 및 보고서 목록</caption>
  405. <line id="line8" class="line_1" style="x1:0px; y1:172px; x2:1194px; y2:172px; "/>
  406. <line id="line7" class="line_3" style="x1:0px; y1:741px; x2:1194px; y2:741px; "/>
  407. <datagrid id="grd_scrnlist" nodeset="/root/main/list/scrnlist" caption="화면코드^기관^화면구분^화면URL^종류^사용^공개상태^업무^수정일자^수정자" colwidth="97, 69, 72, 521, 82, 34, 59, 88, 64, 45" dataheight="25" defaultrows="0" explorerbar="sortshowmove" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" style="left:0px; top:176px; width:1194px; height:553px; text-align:center; border-color:#808080; ">
  408. <col ref="scrncd" type="input" maxlength="10"/>
  409. <col ref="instid" type="combo">
  410. <choices>
  411. <itemset nodeset="/root/init/instlist/inst">
  412. <label ref="name"/>
  413. <value ref="id"/>
  414. </itemset>
  415. </choices>
  416. </col>
  417. <col ref="scrnflag" type="combo">
  418. <choices>
  419. <itemset nodeset="/root/init/comcd/Z0005">
  420. <label ref="cdnm"/>
  421. <value ref="cdid"/>
  422. </itemset>
  423. </choices>
  424. </col>
  425. <col ref="scrnurl" type="input" style="text-align:left; "/>
  426. <col ref="scrnpos" type="combo" style="text-align:center; ">
  427. <choices>
  428. <itemset nodeset="/root/init/comcd/Z0006">
  429. <label ref="cdnm"/>
  430. <value ref="cdid"/>
  431. </itemset>
  432. </choices>
  433. </col>
  434. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  435. <col ref="releasestate" type="combo">
  436. <choices>
  437. <item>
  438. <label>Y</label>
  439. <value>Y</value>
  440. </item>
  441. <item>
  442. <label>N</label>
  443. <value>N</value>
  444. </item>
  445. </choices>
  446. </col>
  447. <col ref="workcd" type="combo">
  448. <choices>
  449. <item>
  450. <label/>
  451. <value/>
  452. </item>
  453. <item>
  454. <label>기반기술</label>
  455. <value>1</value>
  456. </item>
  457. <item>
  458. <label>원무심사</label>
  459. <value>2</value>
  460. </item>
  461. <item>
  462. <label>진료/기록</label>
  463. <value>3</value>
  464. </item>
  465. <item>
  466. <label>진료지원</label>
  467. <value>4</value>
  468. </item>
  469. <item>
  470. <label>간호</label>
  471. <value>5</value>
  472. </item>
  473. <item>
  474. <label>약제</label>
  475. <value>210</value>
  476. </item>
  477. <item>
  478. <label>MIS</label>
  479. <value>6</value>
  480. </item>
  481. </choices>
  482. </col>
  483. <col ref="lastupdtdt" type="output"/>
  484. <col ref="lastupdtrnm" type="output"/>
  485. <script type="javascript" ev:event="onrowchanged">
  486. <![CDATA[
  487. var cur_row = grd_scrnlist.row;
  488. if ( cur_row > 0 ) {
  489. model.copyNode("/root/main/item","/root/main/list/scrnlist["+cur_row+"]");
  490. model.refresh();
  491. }
  492. ]]>
  493. </script>
  494. <script type="javascript" ev:event="xforms-value-changed">
  495. <![CDATA[
  496. fbtnmakecode();
  497. ]]>
  498. </script>
  499. <script type="javascript" ev:event="ondblclick">
  500. <![CDATA[
  501. fgrdClick();
  502. ]]>
  503. </script>
  504. <script type="javascript" ev:event="onkeydown">
  505. <![CDATA[
  506. // grd_scrnlist.row
  507. //alert(event.keyCode);
  508. ]]>
  509. </script>
  510. <script type="javascript" ev:event="xforms-select">
  511. <![CDATA[
  512. if( grd_scrnlist.col == 5 ){ // 아이콘 종류를 선택했을 경우
  513. var cur_row = grd_scrnlist.row;
  514. var scrnflag = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag"); // 현재 행의 화면구분을 가져온다.
  515. var icontype = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnpos"); // 현재 행의 화면구분을 가져온다.
  516. if (scrnflag == "gif" && icontype=="A")
  517. {
  518. //alert("팝업화면");
  519. }
  520. }
  521. ]]>
  522. </script>
  523. <script type="javascript" ev:event="onbuttonclick">
  524. <![CDATA[
  525. var cur_row = grd_scrnlist.row;
  526. var scrnflag = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag"); // 현재 행의 화면구분을 가져온다.
  527. if( grd_scrnlist.col == 4 && scrnflag=="gif"){ // 아이콘 종류를 선택했을 경우
  528. alert("하이");
  529. }
  530. ]]>
  531. </script>
  532. <script type="javascript" ev:event="onscroll">
  533. <![CDATA[
  534. if(model.getValue("/root/send/paging") == "Y" && grd_scrnlist.vscroll.attribute("max") == grd_scrnlist.vscroll.attribute("pos")) {
  535. // end of scroll
  536. model.setValue("/root/send/offset", grd_scrnlist.rows-grd_scrnlist.fixedRows);
  537. submit("TRZSA20502");
  538. grd_scrnlist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  539. }
  540. ]]>
  541. </script>
  542. <script type="javascript" ev:event="onaftersort">
  543. <![CDATA[
  544. grd_scrnlist.gridToInstance();
  545. ]]>
  546. </script>
  547. </datagrid>
  548. <group id="group4" style="left:874px; top:140px; width:321px; height:32px; ">
  549. <button id="button8" class="btn2_letter3" style="left:210px; top:11px; width:53px; height:19px; ">
  550. <caption>행추가</caption>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. grd_scrnlist.addRow(); // 입력할 행 추가.
  554. var cur_row = grd_scrnlist.row; // 추가된 행 번호 가져오기
  555. var cnt_row = grd_scrnlist.rows; // 현재 행의 갯수 가져오기
  556. var scrnflag;
  557. var scrncd;
  558. var scrnurl;
  559. var scrnpos;
  560. var useryn;
  561. var releasestate;
  562. if (cnt_row > 2) // 이미 데이터가 있으면
  563. {
  564. scrnflag = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/scrnflag");
  565. //scrnurl = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/scrnurl");
  566. scrnpos = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/scrnpos");
  567. useyn = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/useyn");
  568. releasestate = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/releasestate");
  569. grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0013";
  570. }
  571. else // 데이터가 하나도 없으면
  572. {
  573. scrnflag = 'xrw';
  574. scrnurl ="web/xrw/SM_.xrw";
  575. scrnpos = 'M';
  576. useyn = 'Y';
  577. releasestate = 'N';
  578. }
  579. model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag",scrnflag);
  580. model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrncd",scrncd);
  581. model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl",scrnurl);
  582. model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnpos",scrnpos);
  583. model.setValue("/root/main/list/scrnlist["+cur_row+"]/useyn",useyn);
  584. model.setValue("/root/main/list/scrnlist["+cur_row+"]/releasestate",releasestate);
  585. // 그리드에 추가
  586. //model.copyNode("/root/main/list/scrnlist["+cur_row+"]","/root/main/item");
  587. model.refresh();
  588. grd_scrnlist.row = cur_row;
  589. //grd_scrnlist.select(cur_row, 2)=true;
  590. //grd_scrnlist.editcell();
  591. ]]>
  592. </script>
  593. </button>
  594. <button id="button9" class="btn2_letter3" style="left:266px; top:11px; width:53px; height:19px; ">
  595. <caption>행삭제</caption>
  596. <script type="javascript" ev:event="DOMActivate">
  597. <![CDATA[
  598. var cur_row = grd_scrnlist.row; // 행 번호 가져오기
  599. var iStatus = grd_scrnlist.rowstatus(cur_row);
  600. if(cur_row<0) {
  601. alert("삭제할 행을 선택해주세요.");
  602. return;
  603. }
  604. if (iStatus == 1) // 새로 삽입된 행이면
  605. {
  606. grd_scrnlist.deleteitem(cur_row);
  607. }
  608. else if (iStatus == 4) // 삭제로 표시된 행이면
  609. {
  610. grd_scrnlist.removestatus(cur_row, "delete");
  611. }
  612. else
  613. {
  614. grd_scrnlist.addStatus(cur_row, "delete");
  615. }
  616. ]]>
  617. </script>
  618. </button>
  619. <button id="button10" class="btn2_letter4" style="left:143px; top:11px; width:64px; height:19px; ">
  620. <caption>엑셀입력</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. var fileName = window.fileDialog("open", "", false);
  624. grd_scrnlist.loadExcel(fileName);
  625. for (i=grd_scrnlist.fixedRows; i<grd_scrnlist.rows; i++)
  626. {
  627. grd_scrnlist.rowStatus(i) = 1;
  628. }
  629. ]]>
  630. </script>
  631. </button>
  632. <button id="button11" class="btn2_letter4" style="left:76px; top:11px; width:64px; height:19px; ">
  633. <caption>엑셀저장</caption>
  634. <script type="javascript" ev:event="DOMActivate">
  635. <![CDATA[
  636. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  637. if (fileName != "")
  638. {
  639. grd_scrnlist.saveExcel(fileName);
  640. }
  641. ]]>
  642. </script>
  643. </button>
  644. </group>
  645. <line id="line27" class="line_3" style="x1:0px; y1:116px; x2:1186px; y2:116px; "/>
  646. <line id="line5" class="line_3" style="x1:0px; y1:139px; x2:1186px; y2:139px; "/>
  647. <caption id="caption11" class="tit_2" style="left:6px; top:100px; width:136px; height:13px; ">화면 및 보고서 개수</caption>
  648. <output id="output8" ref="/root/main/listcnt/scrnlistcnt/worketccnt" style="left:1130px; top:116px; width:55px; height:19px; text-align:right; "/>
  649. <line id="line30" class="line_3" style="x1:1185px; y1:116px; x2:1185px; y2:139px; border-color:#ffe4bb; border-left-style:solid; "/>
  650. <line id="line6" class="line_3" style="x1:0px; y1:116px; x2:0px; y2:139px; border-color:#ffe4bb; border-left-style:solid; "/>
  651. </group>
  652. <line id="line32" class="line_6" style="x1:0px; y1:120px; x2:1194px; y2:120px; "/>
  653. <group id="group6" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  654. <button id="button1" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  655. <caption>초기화</caption>
  656. <script type="javascript" ev:event="DOMActivate">
  657. <![CDATA[
  658. fInitialize();
  659. ]]>
  660. </script>
  661. </button>
  662. <button id="button2" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  663. <caption>저장</caption>
  664. <script type="javascript" ev:event="DOMActivate">
  665. <![CDATA[
  666. //if(!checkGridUpdate(grd_scrnlist))
  667. // {
  668. // alert("저장할 자료가 존재하지 않습니다.");
  669. // return;
  670. // }
  671. // if(checkGridField(grd_scrnlist,"scrncd")==false)
  672. // {
  673. // alert("데이터중에 비어있는 필수필드가 있습니다.");
  674. // return;
  675. // }
  676. model.setValue("/root/send/scrnlist",grd_scrnlist.getUpdateData());
  677. if ( submit("TXZSA20502") ) {
  678. grd_scrnlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  679. changeNodeSet();
  680. }
  681. ]]>
  682. </script>
  683. </button>
  684. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  685. </group>
  686. </xhtml:body>
  687. </xhtml:html>