SPPIE04300_심사결과통보서기준자료관리.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
  4. <xhtml:head>
  5. <xhtml:title>심사결과통보서기준자료관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <piemedillist>
  11. <instcd/>
  12. <docuno/>
  13. <verno/>
  14. <filenm/>
  15. <itemnm/>
  16. <itemcd/>
  17. <charsize/>
  18. <position/>
  19. <itemdesc/>
  20. <sortno/>
  21. <rem/>
  22. <fstrgstrid/>
  23. <fstrgstdt/>
  24. <lastupdtrid/>
  25. <lastupdtdt/>
  26. <chk/>
  27. </piemedillist>
  28. </main>
  29. <send>
  30. <req>
  31. <docuno/>
  32. <verno/>
  33. <filenm/>
  34. <itemnm/>
  35. </req>
  36. <setValue>
  37. <docuno/>
  38. <verno/>
  39. <filenm/>
  40. <itemcd/>
  41. </setValue>
  42. </send>
  43. <init>
  44. <PK098list>
  45. <PK098>
  46. <cdid/>
  47. <cdnm/>
  48. </PK098>
  49. </PK098list>
  50. <PK099list>
  51. <PK099>
  52. <cdid/>
  53. <cdnm/>
  54. </PK099>
  55. </PK099list>
  56. <filenmlist>
  57. <filenm/>
  58. </filenmlist>
  59. </init>
  60. <hidden>
  61. <piemedillist/>
  62. </hidden>
  63. <popupmenu>
  64. <item>
  65. <label>행추가</label>
  66. <func>fGridAddRow</func>
  67. </item>
  68. <item>
  69. <label>행삭제</label>
  70. <func>setRowDel</func>
  71. </item>
  72. <item>
  73. <label>행복사</label>
  74. <func>fSetCopyRow</func>
  75. </item>
  76. <item>
  77. <label>삭제 취소</label>
  78. <func>fRowsYCencel</func>
  79. </item>
  80. <item>
  81. <label>항목 일괄 변경</label>
  82. <func>fCellAllUpdate</func>
  83. </item>
  84. </popupmenu>
  85. </root>
  86. </instance>
  87. <submission id="TRPIE50301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/piemedillist"/>
  88. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  89. <submission id="TRPIE50302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/filenmlist"/>
  90. <submission id="TRPIE50303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/piemedillist" resultref="/root/main/piemedillist"/>
  91. <submission id="TXPIE50304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/piemedillist" resultref="/root/main/piemedillist"/>
  92. </model>
  93. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  96. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  97. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. //화면 초기화
  101. fInit();
  102. ]]>
  103. </script>
  104. <script type="javascript">
  105. <![CDATA[
  106. var row = grd_piemedillist.row;
  107. var rows = grd_piemedillist.selectedRows;
  108. var startRow = grd_piemedillist.fixedRows;
  109. var endRow = grd_piemedillist.row;
  110. //초기화
  111. function fInit(){
  112. getPamCode();
  113. submit("TRPIE50302");
  114. fSelectList();
  115. }
  116. //조회
  117. function fSelectList(){
  118. submit("TRPIE50301");
  119. grd_piemedillist.clearStatus();
  120. }
  121. //Pam 공통코드조회
  122. function getPamCode(){
  123. pamfGetCodeList(new Array("PK098","PK099"), new Array("/root/init/PK098list", "/root/init/PK099list"));
  124. }
  125. //행삭제
  126. function setRowDel(){
  127. var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
  128. var rowno = 1;
  129. for( var i=0; i < chkcnt; i++ ){
  130. rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
  131. grd_piemedillist.addStatus(rowno, "delete");
  132. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
  133. rowno = rowno + 1;
  134. }
  135. }
  136. //행복사
  137. function fSetCopyRow(){
  138. var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
  139. var row = grd_piemedillist.row;
  140. var rowno = 1;
  141. if( chkcnt > 0 ){
  142. for (var i=0; i < chkcnt; i++ ) {
  143. rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
  144. grd_piemedillist.insertRow(row+i, "below", false, false );
  145. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("docuno")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("docuno"));
  146. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("verno")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("verno"));
  147. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("filenm")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("filenm"));
  148. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("itemnm")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemnm"));
  149. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("itemcd")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemcd"));
  150. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("charsize")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("charsize"));
  151. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("position")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("position"));
  152. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("itemdesc")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemdesc"));
  153. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("sortno")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("sortno"));
  154. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("rem")) = grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("rem"));
  155. grd_piemedillist.valueMatrix(row+(i+1), grd_piemedillist.colRef("chk")) = "Y";
  156. grd_piemedillist.removeStatus(rowno, "update");
  157. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
  158. rowno = rowno + 1;
  159. }
  160. } else {
  161. messageBox("복사할 행을","C002");
  162. return;
  163. }
  164. }
  165. //행추가
  166. function fGridAddRow(){
  167. var rows = grd_piemedillist.selectedRows;
  168. if( rows >= 1 ){
  169. for( var i=0; i < rows; i++ ){
  170. grd_piemedillist.insertRow(grd_piemedillist.row, "below", false, false);
  171. }
  172. } else {
  173. grd_piemedillist.insertRow(0, "below", false, false);
  174. }
  175. }
  176. // 선택된 row 삭제 취소
  177. function fRowsYCencel(){
  178. var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
  179. var rowno = 1;
  180. for( var i=0; i < chkcnt; i++ ){
  181. rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
  182. grd_piemedillist.rowStatus(rowno) = 0;
  183. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
  184. rowno = rowno + 1;
  185. }
  186. }
  187. //처음 선택한 cell의 데이터로 일괄 변경
  188. function fCellAllUpdate(){
  189. var chkcnt = getNodesetCount(grd_piemedillist.nodeset+"[chk='Y']");
  190. var rowno = 1;
  191. if( chkcnt == 0 ){
  192. messageBox("변경 할 행을","C002");
  193. return;
  194. }
  195. for( var i=0; i < chkcnt; i++ ){
  196. rowno = grd_piemedillist.findRow("Y", rowno, grd_piemedillist.colRef("chk"), true, true );
  197. var setDocuno = model.getValue("/root/send/setValue/docuno");
  198. var setVerno = model.getValue("/root/send/setValue/verno");
  199. var setFilenm = model.getValue("/root/send/setValue/filenm");
  200. var setItemcd = model.getValue("/root/send/setValue/itemcd");
  201. if( setDocuno == "" && setFilenm == "" && setFilenm == "" && setItemcd == "" ){
  202. messageBox("일괄 입력 할 항목의 데이터를 ","C002");
  203. return;
  204. }
  205. //서식명 변경
  206. if( setDocuno != "" ){
  207. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("docuno")) = setDocuno;
  208. }
  209. //버전 변경
  210. if( setVerno != "" ){
  211. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("verno")) = setVerno;
  212. }
  213. //파일명 변경
  214. if( setFilenm != "" ){
  215. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("filenm")) = setFilenm;
  216. }
  217. //항목코드 변경
  218. if( setItemcd != "" ){
  219. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("itemcd")) = setItemcd;
  220. }
  221. grd_piemedillist.addStatus(rowno, "update");
  222. grd_piemedillist.valueMatrix(rowno, grd_piemedillist.colRef("chk")) = "N";
  223. rowno = rowno + 1;
  224. }
  225. }
  226. //엑셀업로드
  227. function fExcelUpload(){
  228. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  229. grd_piemedillist.loadExcel(fileName, 1, true);
  230. grd_piemedillist.refresh();
  231. var rows = grd_piemedillist.rows;
  232. for( var i=1; i < rows; i++){
  233. grd_piemedillist.addStatus(i, "insert");
  234. }
  235. }
  236. ]]>
  237. </script>
  238. </xhtml:head>
  239. <xhtml:body>
  240. <group id="group1" style="left:0px; top:0px; width:1185px; height:20px; ">
  241. <caption id="caption1" class="tit_1" style="left:0&#xA; px; top:0px; width:170px; height:13px; font-family:굴림; ">심사결과통보서 기준자료</caption>
  242. </group>
  243. <group id="group2" style="left:0px; top:20px; width:1185px; height:85px; ">
  244. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1185px; height:45px; background-color:#fffbf2; border-color:#ffd799; "/>
  245. <caption id="caption2" class="search_name" style="left:5px; top:15px; width:85px; height:17px; font-family:굴림; ">서 식 명 :</caption>
  246. <select1 id="cmb_docuno" ref="/root/send/req/docuno" class="combo_search" appearance="minimal" style="left:100px; top:15px; width:100px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/init/PK098list/PK098">
  249. <label ref="cdnm"/>
  250. <value ref="cdid"/>
  251. </itemset>
  252. </choices>
  253. </select1>
  254. <caption id="caption3" class="search_name" style="left:215px; top:15px; width:85px; height:17px; font-family:굴림; ">버 전 :</caption>
  255. <select1 id="cmb_verno" ref="/root/send/req/verno" class="combo_search" appearance="minimal" style="left:310px; top:15px; width:135px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/init/PK099list/PK099">
  258. <label ref="cdnm"/>
  259. <value ref="cdid"/>
  260. </itemset>
  261. </choices>
  262. </select1>
  263. <caption id="caption4" class="search_name" style="left:455px; top:15px; width:85px; height:17px; font-family:굴림; ">파 일 명 :</caption>
  264. <input id="inp_filenm" ref="/root/send/req/filenm" style="left:550px; top:15px; width:215px; height:19px; "/>
  265. <button id="btn_serch" class="btn1_letter2" style="left:1110px; top:15px; width:56px; height:22px; font-family:굴림; ">
  266. <caption>조회</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. fSelectList();
  270. ]]>
  271. </script>
  272. </button>
  273. <line id="line1" class="line_4" style="x1:1095px; y1:10px; x2:1095px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
  274. <caption id="caption5" class="search_name" style="left:775px; top:15px; width:85px; height:17px; font-family:굴림; ">항 목 명 :</caption>
  275. <input id="inp_itemnm" ref="/root/send/req/itemnm" style="left:870px; top:15px; width:215px; height:19px; "/>
  276. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:50px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  277. <caption id="caption6" style="left:10px; top:58px; width:85px; height:22px; font-family:굴림; font-weight:bold; ">일괄입력</caption>
  278. <line id="line2" class="line_4" style="x1:70px; y1:55px; x2:70px; y2:80px; border-color:#ffe4bb; border-left-style:solid; "/>
  279. <caption id="caption7" class="search_name" style="left:80px; top:62px; width:85px; height:17px; font-family:굴림; ">서 식 명 :</caption>
  280. <select1 id="set_docuno" ref="/root/send/setValue/docuno" class="combo_search" appearance="minimal" style="left:170px; top:60px; width:100px; height:19px; ">
  281. <choices>
  282. <itemset nodeset="/root/init/PK098list/PK098">
  283. <label ref="cdnm"/>
  284. <value ref="cdid"/>
  285. </itemset>
  286. </choices>
  287. </select1>
  288. <caption id="caption8" class="search_name" style="left:280px; top:60px; width:85px; height:17px; font-family:굴림; ">버 전 :</caption>
  289. <select1 id="combo2" ref="/root/send/setValue/verno" class="combo_search" appearance="minimal" style="left:370px; top:59px; width:135px; height:19px; ">
  290. <choices>
  291. <itemset nodeset="/root/init/PK099list/PK099">
  292. <label ref="cdnm"/>
  293. <value ref="cdid"/>
  294. </itemset>
  295. </choices>
  296. </select1>
  297. <caption id="caption9" class="search_name" style="left:520px; top:60px; width:85px; height:17px; font-family:굴림; ">파 일 명 :</caption>
  298. <select1 id="combo3" ref="/root/send/setValue/filenm" class="combo_search" appearance="minimal" style="left:615px; top:58px; width:135px; height:19px; ">
  299. <choices>
  300. <itemset nodeset="/root/init/filenmlist">
  301. <label ref="filenm"/>
  302. <value ref="filenm"/>
  303. </itemset>
  304. </choices>
  305. </select1>
  306. <caption id="caption10" class="search_name" style="left:765px; top:59px; width:95px; height:17px; font-family:굴림; ">항목코드 :</caption>
  307. <input id="input1" ref="/root/send/setValue/itemcd" style="left:865px; top:58px; width:215px; height:19px; "/>
  308. <button id="button8" class="btn2_letter3" style="left:1113px; top:57px; width:53px; height:19px; ">
  309. <caption>변 경</caption>
  310. <script type="javascript" ev:event="onclick">
  311. <![CDATA[
  312. fCellAllUpdate();
  313. ]]>
  314. </script>
  315. </button>
  316. </group>
  317. <group id="group3" style="left:0px; top:110px; width:1195px; height:595px; ">
  318. <button id="button1" class="btn2_letter3" style="left:860px; top:4px; width:53px; height:19px; ">
  319. <caption>행삭제</caption>
  320. <script type="javascript" ev:event="onclick">
  321. <![CDATA[
  322. setRowDel();
  323. ]]>
  324. </script>
  325. </button>
  326. <button id="button6" class="btn2_letter3" style="left:920px; top:4px; width:53px; height:19px; ">
  327. <caption>행추가</caption>
  328. <script type="javascript" ev:event="onclick">
  329. <![CDATA[
  330. fGridAddRow();
  331. ]]>
  332. </script>
  333. </button>
  334. <button id="button2" class="btn2_letter3" style="left:980px; top:4px; width:53px; height:19px; ">
  335. <caption>행복사</caption>
  336. <script type="javascript" ev:event="onclick">
  337. <![CDATA[
  338. fSetCopyRow();
  339. ]]>
  340. </script>
  341. </button>
  342. <button id="button3" class="btn2_letter4" style="left:1040px; top:4px; width:64px; height:19px; ">
  343. <caption>엑셀저장</caption>
  344. <script type="javascript" ev:event="onclick">
  345. <![CDATA[
  346. grd_piemedillist.gridToInstance();
  347. if( grd_piemedillist.rows > 1 ){
  348. var fileName = window.fileDialog("save", "", false, caption1.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  349. if( !isNull(fileName) ){
  350. grd_piemedillist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;");
  351. messageBox("EXCEL 저장이 완료되었습니다.","I999");
  352. }
  353. } else {
  354. messageBox("저장할 내역이", "I004");
  355. }
  356. ]]>
  357. </script>
  358. </button>
  359. <button id="button4" class="btn2_letter5" style="left:1110px; top:4px; width:75px; height:19px; ">
  360. <caption>엑셀업로드</caption>
  361. <script type="javascript" ev:event="onclick">
  362. <![CDATA[
  363. fExcelUpload();
  364. ]]>
  365. </script>
  366. </button>
  367. <datagrid id="grd_piemedillist" nodeset="/root/main/piemedillist" overflow="scroll" scroll="auto" caption="^서식명^버전^파일명^항목명^항목코드^항목길이^POSITION^항목상세설명^순번^비고" colsep="^" colwidth="30, 70, 70, 64, 100, 100, 70, 70, 460, 50, 120" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:25px; width:1185px; height:540px; ">
  368. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  369. <col disabled="true" editmode="input" ref="docuno" type="combo" maxlength="8">
  370. <choices>
  371. <itemset nodeset="/root/init/PK098list/PK098">
  372. <label ref="cdnm"/>
  373. <value ref="cdid"/>
  374. </itemset>
  375. </choices>
  376. </col>
  377. <col disabled="true" editmode="input" ref="verno" type="combo" format="#,###" maxbyte="12">
  378. <choices>
  379. <itemset nodeset="/root/init/PK099list/PK099">
  380. <label ref="cdnm"/>
  381. <value ref="cdid"/>
  382. </itemset>
  383. </choices>
  384. </col>
  385. <col disabled="true" editmode="input" ref="filenm" type="combo" maxbyte="8">
  386. <choices>
  387. <itemset nodeset="/root/init/filenmlist">
  388. <label ref="filenm"/>
  389. <value ref="filenm"/>
  390. </itemset>
  391. </choices>
  392. </col>
  393. <col ref="itemnm" type="input" maxbyte="500" style="text-align:left; "/>
  394. <col disabled="true" ref="itemcd" type="input" maxbyte="50" tyle="text-align:center;"/>
  395. <col ref="charsize" type="input" format="#,###" maxbyte="12" style="text-align:center; "/>
  396. <col ref="position" type="input" format="#,###" maxbyte="12" style="text-align:center; "/>
  397. <col ref="itemdesc" type="input" maxbyte="4000" style="text-align:left; "/>
  398. <col ref="sortno" type="input" format="#,###" maxbyte="12" style="text-align:center; "/>
  399. <col ref="rem" type="input" maxbyte="2630" style="text-align:center; "/>
  400. <script type="javascript" ev:event="onaftersort">
  401. <![CDATA[
  402. grd_piemedillist.gridToInstance();
  403. ]]>
  404. </script>
  405. <script type="javascript" ev:event="onmousedown">
  406. <![CDATA[
  407. if( event.button == 3 ){ // 마우스 오른쪽 버튼
  408. if( grd_piemedillist.isCell(event.target) && grd_piemedillist.mouseRow >= grd_piemedillist.fixedRows ){
  409. window.setPopupMenu(true, "/root/popupmenu/item", "label", "func", false);
  410. } else {
  411. window.setPopupMenu(false);
  412. }
  413. }
  414. ]]>
  415. </script>
  416. <script type="javascript" ev:event="DOMFocusOut">
  417. <![CDATA[
  418. window.setPopupMenu(false);
  419. ]]>
  420. </script>
  421. <script type="javascript" ev:event="xforms-ready">
  422. <![CDATA[
  423. grd_piemedillist.colStatus(grd_piemedillist.colRef("chk")) = false;
  424. ]]>
  425. </script>
  426. </datagrid>
  427. <button id="button5" class="btn2_letter3" style="left:1130px; top:570px; width:53px; height:19px; ">
  428. <caption>저장</caption>
  429. <script type="javascript" ev:event="onclick">
  430. <![CDATA[
  431. var updtdata = grd_piemedillist.getUpdateData();
  432. if( getGridUpdateData(grd_piemedillist) == "" ){
  433. messageBox("변경된 데이터가", "I004");
  434. return;
  435. }
  436. if( messageBox("저장", "S001") != 6 ){
  437. return;
  438. }
  439. var docunoCnt = getNodesetCount(grd_piemedillist.nodeset+"[docuno='']");
  440. if( docunoCnt > 0 ){
  441. messageBox("서식명은 필수 항목입니다.", "I000");
  442. return;
  443. }
  444. var vernoCnt = getNodesetCount(grd_piemedillist.nodeset+"[verno='']");
  445. if( vernoCnt > 0 ){
  446. messageBox("버전은 필수 항목입니다.", "I000");
  447. return;
  448. }
  449. var filenmCnt = getNodesetCount(grd_piemedillist.nodeset+"[filenm='']");
  450. if( filenmCnt > 0 ){
  451. messageBox("파일명은 필수 항목입니다.", "I000");
  452. return;
  453. }
  454. var itemcdCnt = getNodesetCount(grd_piemedillist.nodeset+"[itemcd='']");
  455. if( itemcdCnt > 0 ){
  456. messageBox("항목코드는 필수 항목입니다.", "I000");
  457. return;
  458. }
  459. model.removenode("/root/hidden/piemedillist");
  460. model.makeValue("/root/hidden/piemedillist", updtdata);
  461. if( submit("TXPIE50304", false)){
  462. messageBox("정상적으로 저장", "I002");
  463. grd_piemedillist.clearStatus();
  464. model.refresh();
  465. }
  466. ]]>
  467. </script>
  468. </button>
  469. <button id="button7" class="btn2_letter3" style="left:1070px; top:570px; width:53px; height:19px; ">
  470. <caption>초기화</caption>
  471. <script type="javascript" ev:event="onclick">
  472. <![CDATA[
  473. fInit();
  474. ]]>
  475. </script>
  476. </button>
  477. </group>
  478. </xhtml:body>
  479. </xhtml:html>