SMRSM00200_화학물질종합관리.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  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. <condition>
  11. <matrcd/>
  12. </condition>
  13. <matrinfo>
  14. <detail>
  15. <status/>
  16. <matrcd/>
  17. <matrnm/>
  18. <prodcmpynm/>
  19. <harmcomp/>
  20. <harmgrde/>
  21. <sgnl/>
  22. <msdsfileyn/>
  23. <workfileyn/>
  24. <warnyn1/>
  25. <warnyn2/>
  26. <warnyn3/>
  27. <warnyn4/>
  28. <warnyn5/>
  29. <warnyn6/>
  30. <warnyn7/>
  31. <warnyn8/>
  32. <warnyn9/>
  33. <envinspyn/>
  34. <spcldiagyn/>
  35. <msdsfilepath/>
  36. <msdsfilenm/>
  37. <workfilepath/>
  38. <workfilenm/>
  39. </detail>
  40. <alist>
  41. <matrcd/>
  42. <harmcls/>
  43. <harmcd/>
  44. <chkval/>
  45. </alist>
  46. <blist>
  47. <matrcd/>
  48. <harmcls/>
  49. <harmcd/>
  50. <chkval/>
  51. </blist>
  52. <clist>
  53. <matrcd/>
  54. <harmcls/>
  55. <harmcd/>
  56. <chkval/>
  57. </clist>
  58. </matrinfo>
  59. </main>
  60. <send/>
  61. <init/>
  62. <hidden>
  63. <file/>
  64. </hidden>
  65. <temp>
  66. </temp>
  67. <delete>
  68. <fiepath/>
  69. </delete>
  70. </root>
  71. </instance>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  76. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  77. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  79. <!--script type="javascript" src="../../../mis/purcbaseweb/js/SMRSC05302.js"/-->
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. fOpenForm();
  83. ]]>
  84. </script>
  85. <script type="javascript">
  86. <![CDATA[
  87. //========================================================================================
  88. //화면 로드시 초기화 함수
  89. //========================================================================================
  90. function fOpenForm() {
  91. model.removeNodeset("/root/main/matrinfo/alist");
  92. model.removeNodeset("/root/main/matrinfo/blist");
  93. model.removeNodeset("/root/main/matrinfo/clist");
  94. model.refresh();
  95. //misfGridInit(grd_deptlist);
  96. fGetMatrInfo();//코드 종합정보 조회
  97. // if(model.getValue("/root/main/matrlist[1]/matrcd") != "") {
  98. // grd_matrlist.isSelected(1) = true;
  99. // fGetMatrInfo(1);
  100. // }else {
  101. // fCopyInstance();
  102. // }
  103. }
  104. //========================================================================================
  105. //인스턴스 Copy 함수
  106. //========================================================================================
  107. function fCopyInstance() {
  108. //----model.copyNode("/root/hidden/matrinfo/detail", "/root/main/matrinfo/detail");
  109. model.copyNode("/root/hidden/matrinfo", "/root/main/matrinfo");
  110. model.refresh();
  111. }
  112. //========================================================================================
  113. //코드 목록 조회 함수
  114. //========================================================================================
  115. function fGetMatrList() {
  116. //model.removenode("/root/main/matrlist");//조회시 기존 데이터 삭제
  117. misfGridInit(grd_matrlist);
  118. model.copyNode("/root/send", "/root/main/condition");
  119. submit("TRRSM00101");
  120. model.refresh();
  121. }
  122. //========================================================================================
  123. //화학물질 종합정보 조회
  124. //========================================================================================
  125. function fGetMatrInfo() {
  126. /*
  127. if ( pRow > 0 ) {
  128. model.resetInstanceNode("/root/send");
  129. model.copyNode("/root/send", "/root/main/matrlist["+ pRow + "]");
  130. submit("TRRSM00102");
  131. ipt_matrcd.disabled = true;
  132. fCopyInstance();
  133. }
  134. */
  135. model.copyNode("/root/send", "/root/main/condition");
  136. submit("TRRSM00201");
  137. //2015.03.24 추가
  138. if(model.getValue("/root/main/matrinfo/detail/msdsfileyn") != "Y") {
  139. btn_filedel1.disabled = true;
  140. btn_filedown1.disabled = true;
  141. }
  142. if(model.getValue("/root/main/matrinfo/detail/workfileyn") != "Y") {
  143. btn_filedel2.disabled = true;
  144. btn_filedown2.disabled = true;
  145. }
  146. model.refresh();
  147. }
  148. //========================================================================================
  149. //신규 버턴 클릭시 인스턴스 초기화
  150. //========================================================================================
  151. function fSetMatrInfo() {
  152. ipt_matrcd.disabled = false;
  153. // 아래 두줄로 변경
  154. //model.resetInstanceNode("/root/main/matrinfo");
  155. model.resetInstanceNode("/root/main/matrinfo/detail");
  156. //model.resetInstanceNode("/root/main/matrinfo/deptlist");
  157. misfGridInit(grd_deptlist);
  158. //return;
  159. model.setFocus("ipt_matrcd");
  160. model.setValue("/root/main/matrinfo/detail/status", "i");
  161. model.setValue("/root/main/matrinfo/detail/msdsflag", "Y");
  162. // 서식에서 징수의무자 상호(법인명)으로 쓰임. 기본값으로 경북대학교병원장 셋팅.
  163. //model.setValue("/root/main/matrinfo/prntnm1" , "경북대학교병원장");
  164. fCopyInstance();
  165. }
  166. //========================================================================================
  167. // 저장버튼 클릭시 저장 수행 함수
  168. //========================================================================================
  169. function fClickSaveBtn() {
  170. if(opt_matrnm.value.length == 0) {
  171. messageBox("화학물질이 지정되지 않았습니다. " + "\n" + "닫기 버튼을 누른 후 다시 여시기 바랍니다. ", "I999", "");
  172. return;
  173. }
  174. //if(!fIsValidForSave())//저장전 유효성 검사
  175. // return;
  176. //for(var i = 1; i <= grd_deptlist.rows; i++) {
  177. // grd_deptlist.valueMatrix(i, grd_deptlist.colRef("matrcd")) = ipt_matrcd.value;
  178. //}
  179. model.resetInstanceNode("/root/send");
  180. //model.makeNode("root/send/detail");
  181. model.copyNode("/root/send", "/root/main/matrinfo/detail");
  182. model.makeValue("/root/send/alist", grd_alist.getUpdateDataAll("i"));
  183. model.makeValue("/root/send/blist", grd_blist.getUpdateDataAll("i"));
  184. model.makeValue("/root/send/clist", grd_clist.getUpdateDataAll("i"));
  185. //return;
  186. if(submit("TXRSM00201")) {
  187. //fGetMatrList();// 재조회
  188. //model.copyNode("/root/send", "/root/main/matrinfo/detail");
  189. //2015.03.24 아래 2줄 comment처리 후 fGetMatrInfo()로 변경
  190. //model.copyNode("/root/send", "/root/main/condition");
  191. //submit("TRRSM00201"); //상세내역 재조회
  192. fGetMatrInfo()
  193. grd_alist.topRow = 1;
  194. grd_blist.topRow = 1;
  195. grd_clist.topRow = 1;
  196. //model.setValue("/root/main/matrinfo/detail/status", "-");
  197. //grd_deptlist.clearStatus();
  198. //--model.makeNode("/root/hidden/matrinfo/detail");
  199. //model.makeNode("/root/hidden/matrinfo");
  200. //fCopyInstance();
  201. //ipt_matrcd.disabled = true;
  202. messageBox("저장되었습니다. ", "I999", "");
  203. }
  204. }
  205. //========================================================================================
  206. //저장전 유효성 검사
  207. //========================================================================================
  208. function fIsValidForSave() {
  209. //필수 입력 항목 체크(공통 ftHelper.js)
  210. if(!isRequiredControls("ipt_matrcd","ipt_matrnm")) { //,"ipt_prodcmpycd"
  211. return false;
  212. }
  213. var sStatus = model.getValue("/root/main/matrinfo/detail/status");
  214. var sNewData = fGetNodeText("/root/main/matrinfo/detail");
  215. var sOldData = fGetNodeText("/root/hidden/matrinfo/detail");
  216. //상세내역에 변경된 정보가 있는지 확인
  217. if(sNewData != sOldData && sStatus == "-") { // 데이터 수정일 경우
  218. model.setValue("/root/main/matrinfo/detail/status","u");
  219. return true;
  220. } else if(sNewData == sOldData && sStatus == "-" ) { //변경된 값이 없을경우
  221. //messageBox("변경된 정보가 ", "I004");
  222. //return false;
  223. return true;
  224. }else if(sStatus == "i") { //데이터 입력일 경우
  225. return true;
  226. }else if(sStatus = "d") { //데이터 삭제일 경우
  227. return true;
  228. }
  229. }
  230. //========================================================================================
  231. //엑셀입력(excel file을 그리드에 입력)
  232. //========================================================================================
  233. function fInputExcel(pGrid) {
  234. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  235. if(fileName != "") {
  236. pGrid.loadExcel(fileName, 1, true);
  237. pGrid.deleteRow(1);
  238. pGrid.refresh();
  239. }
  240. }
  241. //========================================================================================
  242. //동일한 Depth의 인스턴스의 값을 스트링형으로 변환
  243. //========================================================================================
  244. function fGetNodeText(pNode) {
  245. var trgNdoe = instance1.selectSingleNode(pNode);
  246. var trgNdoeList = trgNdoe.childNodes;
  247. var childNode;
  248. var allText = "";
  249. while( childNode = trgNdoeList.nextNode() ) {
  250. allText += childNode.text;
  251. }
  252. return allText;
  253. }
  254. function fOpenPopupDeptHelp(pControl, pInstance)
  255. {
  256. misfOpenPopUpList("02", pControl, "", pInstance);
  257. model.refresh();
  258. }
  259. function fupload(flag){
  260. var files = window.fileDialog("open", ",", false);
  261. var replacepath = "";
  262. if ( files.length <= 0 ) return;
  263. model.makeValue(ipt_updpath.attribute("ref") , files); //전체 파일경로 와 이름을 셋팅
  264. var filename = files.substring(files.lastIndexOf('\\') + 1 , files.length ); //파일이름만 나오게 문자 정리
  265. if(flag == "1") {
  266. model.setValue("/root/main/matrinfo/detail/msdsfilenm", filename);
  267. submit("TXRSC20203");
  268. if(model.getValue("/root/main/filepath[1]/filepath") != ""){
  269. model.setValue("/root/main/matrinfo/detail/msdsfilepath", model.getValue("/root/main/filepath[1]/filepath"));
  270. }
  271. } else if (flag == "2") {
  272. model.setValue("/root/main/matrinfo/detail/workfilenm", filename);
  273. submit("TXRSC20203");
  274. if(model.getValue("/root/main/filepath[1]/filepath") != ""){
  275. model.setValue("/root/main/matrinfo/detail/workfilepath", model.getValue("/root/main/filepath[1]/filepath"));
  276. }
  277. }
  278. }
  279. function fdelete(flag){
  280. if(flag == "1") {
  281. model.setValue("/root/delete/fiepath", model.getValue("/root/main/matrinfo/detail/msdsfilepath"));
  282. if(submit("TXRSC20204") == true){
  283. model.setValue("/root/main/matrinfo/detail/msdsfileyn", "N");
  284. model.setValue("/root/main/matrinfo/detail/msdsfilepath", "");
  285. model.setValue("/root/main/matrinfo/detail/msdsfilenm", "");
  286. }
  287. } else if (flag == "2") {
  288. model.setValue("/root/delete/fiepath", model.getValue("/root/main/matrinfo/detail/workfilepath"));
  289. if(submit("TXRSC20204") == true){
  290. model.setValue("/root/main/matrinfo/detail/workfileyn", "N");
  291. model.setValue("/root/main/matrinfo/detail/workfilepath", "");
  292. model.setValue("/root/main/matrinfo/detail/workfilenm", "");
  293. }
  294. }
  295. }
  296. function fdown(flag){
  297. var filepath = "";
  298. var filenm = "";
  299. if(flag == "1") {
  300. filepath = model.getValue("/root/main/matrinfo/detail/msdsfilepath");
  301. filenm = model.getValue("/root/main/matrinfo/detail/msdsfilenm");
  302. } else if (flag == "2") {
  303. filepath = model.getValue("/root/main/matrinfo/detail/workfilepath");
  304. filenm = model.getValue("/root/main/matrinfo/detail/workfilenm");
  305. }
  306. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  307. if (localfile != "") {
  308. model.download(getActionURL("TRRWC03003")+"&filepath="+filepath,localfile);
  309. var rtn = messageBox("파일을", "Q004");
  310. if( rtn == 6 ) {
  311. window.exec(localfile);
  312. }
  313. }
  314. }
  315. ]]>
  316. </script>
  317. <submission id="TRRSM00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/matrinfo"/>
  318. <submission id="TXRSM00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  319. <submission id="TXRSC20203" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/hidden/file" resultref="/root/main/filepath"/>
  320. <submission id="TXRSC20204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/delete" resultref="/root/temp"/>
  321. </model>
  322. </xhtml:head>
  323. <xhtml:body pagewidth="835" pageheight="580" guideline="1,815;1,1406;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  324. <group id="group1" style="left:0px; top:0px; width:815px; height:13px; ">
  325. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">화학물질 종합관리</caption>
  326. </group>
  327. <group id="group3" scroll="auto" style="left:0px; top:40px; width:815px; height:532px; ">
  328. <group id="grp_sea" style="left:0px; top:10px; width:815px; height:35px; vertical-align:top; ">
  329. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:815px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  330. <button id="btn_search" class="btn1_letter2" navindex="4" visibility="hidden" style="left:675px; top:6px; width:56px; height:22px; text-align:left; ">
  331. <caption>조회</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. fGetMatrInfo();
  335. ]]>
  336. </script>
  337. </button>
  338. <caption id="caption1" style="left:45px; top:10px; width:45px; height:16px; ">물질명</caption>
  339. <caption id="caption7" style="left:355px; top:10px; width:55px; height:16px; ">제조회사</caption>
  340. </group>
  341. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:815px; y2:75px; "/>
  342. <line id="line13" class="line_2" style="x1:1px; y1:103px; x2:813px; y2:103px; "/>
  343. <caption id="caption20" class="tit_2" style="left:4px; top:60px; width:121px; height:13px; ">종합정보</caption>
  344. <caption id="cap_matrcd" class="cell_1" style="left:0px; top:80px; width:160px; height:23px; text-align:center; vertical-align:middle; ">유해 구성성분</caption>
  345. <caption id="cap_matrnm" class="cell_1" style="left:0px; top:105px; width:160px; height:23px; text-align:center; vertical-align:middle; ">유해등급</caption>
  346. <line id="line4" class="line_2" style="x1:1px; y1:128px; x2:813px; y2:128px; "/>
  347. <line id="line16" class="line_2" style="x1:0px; y1:461px; x2:813px; y2:461px; "/>
  348. <line id="line17" class="line_2" style="x1:0px; y1:488px; x2:813px; y2:488px; "/>
  349. <line id="line18" class="line_2" style="x1:0px; y1:513px; x2:813px; y2:513px; "/>
  350. <caption id="caption24" class="cell_1" style="left:0px; top:353px; width:160px; height:110px; text-align:center; vertical-align:middle; ">제품 경고표시 그림문자</caption>
  351. <caption id="caption25" class="cell_1" style="left:0px; top:130px; width:160px; height:145px; text-align:center; vertical-align:middle; ">유해위험성</caption>
  352. <caption id="caption29" class="cell_1" style="left:0px; top:465px; width:160px; height:23px; text-align:center; vertical-align:middle; ">작업환경측정 물질</caption>
  353. <line id="line7" class="line_2" style="x1:1px; y1:276px; x2:813px; y2:276px; "/>
  354. <line id="line20" class="line_2" style="x1:1px; y1:301px; x2:813px; y2:301px; "/>
  355. <caption id="caption11" class="cell_1" style="left:0px; top:278px; width:160px; height:23px; text-align:center; vertical-align:middle; ">신호어</caption>
  356. <line id="line9" class="line_2" style="x1:1px; y1:326px; x2:813px; y2:326px; "/>
  357. <line id="line10" class="line_2" style="x1:1px; y1:351px; x2:813px; y2:351px; "/>
  358. <caption id="caption12" class="cell_1" style="left:0px; top:328px; width:160px; height:23px; text-align:center; vertical-align:middle; ">작업 공정별 관리요령</caption>
  359. <output id="opt_prodcmpynm" ref="/root/main/matrinfo/detail/prodcmpynm" class="output_fix" appearance="output" style="left:409px; top:18px; width:240px; height:19px; padding-left:2; "/>
  360. <select1 id="rdo_envinspyn" ref="/root/main/matrinfo/detail/envinspyn" navindex="19" appearance="full" cellspacing="6" cols="2" overflow="visible" style="left:165px; top:468px; width:105px; height:20px; border-style:none; ">
  361. <choices>
  362. <item>
  363. <label>Yes</label>
  364. <value>Y</value>
  365. </item>
  366. <item>
  367. <label>No</label>
  368. <value>N</value>
  369. </item>
  370. </choices>
  371. </select1>
  372. <caption id="caption3" class="cell_1" style="left:0px; top:303px; width:160px; height:23px; text-align:center; vertical-align:middle; ">물질안전보건자료(MSDS)</caption>
  373. <select1 id="cmb_fileyn1" ref="/root/main/matrinfo/detail/msdsfileyn" disabled="true" appearance="minimal" style="left:165px; top:305px; width:40px; height:19px; ">
  374. <choices>
  375. <item>
  376. <label>Y</label>
  377. <value>Y</value>
  378. </item>
  379. <item>
  380. <label>N</label>
  381. <value>N</value>
  382. </item>
  383. </choices>
  384. </select1>
  385. <button id="btn_fileup1" class="btn2_letter2" navindex="35" style="left:210px; top:305px; width:42px; height:19px; ">
  386. <caption>등록</caption>
  387. <script type="javascript" ev:event="DOMActivate">
  388. <![CDATA[
  389. fupload("1");
  390. if(model.getValue("/root/main/filepath[1]/filepath") != ""){
  391. model.setValue("/root/main/matrinfo/detail/msdsfileyn", "Y"); ///root/main/reqeqmtlist/fileyn1
  392. cmb_fileyn1.refresh();
  393. //2015.03.24 comment처리 후 아래와 같이 변경
  394. //btn_filedel1.visible = true;
  395. btn_filedel1.disabled = false;
  396. btn_filedown1.disabled = false;
  397. }
  398. ]]>
  399. </script>
  400. </button>
  401. <button id="btn_filedel1" class="btn2_letter2" navindex="35" style="left:255px; top:305px; width:42px; height:19px; ">
  402. <caption>삭제</caption>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. fdelete("1");
  406. cmb_fileyn1.refresh();
  407. //2015.03.24 comment처리 후 아래와 같이 변경
  408. //btn_filedel1.visible = false;
  409. btn_filedel1.disabled = true;
  410. btn_filedown1.disabled = true;
  411. ]]>
  412. </script>
  413. </button>
  414. <button id="btn_filedown1" class="btn2_letter2" navindex="35" style="left:300px; top:305px; width:42px; height:19px; ">
  415. <caption>다운</caption>
  416. <script type="javascript" ev:event="DOMActivate">
  417. <![CDATA[
  418. if(cmb_fileyn1.value == "Y"){
  419. fdown("1");
  420. }else{
  421. messageBox("내려받을 첨부 파일이 없습니다.", "E999", "");
  422. }
  423. ]]>
  424. </script>
  425. </button>
  426. <button id="btn_fileup2" class="btn2_letter2" navindex="35" style="left:210px; top:330px; width:42px; height:19px; ">
  427. <caption>등록</caption>
  428. <script type="javascript" ev:event="DOMActivate">
  429. <![CDATA[
  430. fupload("2");
  431. if(model.getValue("/root/main/filepath[1]/filepath") != ""){
  432. model.setValue("/root/main/matrinfo/detail/workfileyn", "Y"); ///root/main/reqeqmtlist/fileyn1
  433. cmb_fileyn2.refresh();
  434. //2015.03.24 comment처리
  435. //btn_filedel2.visible = true;
  436. btn_filedel2.disabled = false;
  437. btn_filedown2.disabled = false;
  438. }
  439. ]]>
  440. </script>
  441. </button>
  442. <button id="btn_filedown2" class="btn2_letter2" navindex="35" style="left:300px; top:330px; width:42px; height:19px; ">
  443. <caption>다운</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. if(cmb_fileyn2.value == "Y"){
  447. fdown("2");
  448. }else{
  449. messageBox("내려받을 첨부 파일이 없습니다.", "E999", "");
  450. }
  451. ]]>
  452. </script>
  453. </button>
  454. <select1 id="cmb_fileyn2" ref="/root/main/matrinfo/detail/workfileyn" disabled="true" appearance="minimal" style="left:165px; top:330px; width:40px; height:19px; ">
  455. <choices>
  456. <item>
  457. <label>Y</label>
  458. <value>Y</value>
  459. </item>
  460. <item>
  461. <label>N</label>
  462. <value>N</value>
  463. </item>
  464. </choices>
  465. </select1>
  466. <button id="btn_filedel2" class="btn2_letter2" navindex="35" style="left:255px; top:330px; width:42px; height:19px; ">
  467. <caption>삭제</caption>
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. fdelete("2");
  471. cmb_fileyn2.refresh();
  472. //2015.03.24 comment처리 후 아래와 같이 변경
  473. //btn_filedel2.visible = false;
  474. btn_filedel2.disabled = true;
  475. btn_filedown2.disabled = true;
  476. ]]>
  477. </script>
  478. </button>
  479. <img id="img1" src="../../../mis/purcbaseweb/images/warn1.jpg" style="left:165px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  480. <img id="img2" src="../../../mis/purcbaseweb/images/warn2.jpg" style="left:220px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  481. <img id="img3" src="../../../mis/purcbaseweb/images/warn3.jpg" style="left:275px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  482. <img id="img4" src="../../../mis/purcbaseweb/images/warn4.jpg" style="left:330px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  483. <img id="img5" src="../../../mis/purcbaseweb/images/warn5.jpg" style="left:385px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  484. <img id="img6" src="../../../mis/purcbaseweb/images/warn6.jpg" style="left:440px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  485. <img id="img7" src="../../../mis/purcbaseweb/images/warn7.jpg" style="left:495px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  486. <img id="img8" src="../../../mis/purcbaseweb/images/warn8.jpg" style="left:550px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  487. <img id="img9" src="../../../mis/purcbaseweb/images/warn9.jpg" style="left:605px; top:358px; width:50px; height:50px; background-stretch:stretch; "/>
  488. <caption id="caption8" style="left:170px; top:408px; width:40px; height:20px; ">인화성</caption>
  489. <caption id="caption9" style="left:225px; top:405px; width:40px; height:38px; ">
  490. <![CDATA[ 흡인
  491. 유해성]]>
  492. </caption>
  493. <caption id="caption10" style="left:275px; top:408px; width:50px; height:20px; ">급성독성</caption>
  494. <caption id="caption13" style="left:335px; top:408px; width:40px; height:20px; ">부식성</caption>
  495. <caption id="caption14" style="left:390px; top:408px; width:40px; height:20px; ">산화성</caption>
  496. <caption id="caption15" style="left:440px; top:408px; width:50px; height:20px; ">고압가스</caption>
  497. <caption id="caption16" style="left:500px; top:408px; width:40px; height:20px; ">폭발성</caption>
  498. <caption id="caption17" style="left:550px; top:405px; width:50px; height:38px; ">
  499. <![CDATA[수생환경
  500. 유해성]]>
  501. </caption>
  502. <caption id="caption18" style="left:620px; top:408px; width:40px; height:20px; ">경고</caption>
  503. <caption id="caption5" class="cell_1" style="left:0px; top:490px; width:160px; height:23px; text-align:center; vertical-align:middle; ">특수건강진단 물질</caption>
  504. <select1 id="rdo_spcldiagyn" ref="/root/main/matrinfo/detail/spcldiagyn" navindex="19" appearance="full" cellspacing="6" cols="2" overflow="visible" style="left:165px; top:493px; width:105px; height:20px; border-style:none; ">
  505. <choices>
  506. <item>
  507. <label>Yes</label>
  508. <value>Y</value>
  509. </item>
  510. <item>
  511. <label>No</label>
  512. <value>N</value>
  513. </item>
  514. </choices>
  515. </select1>
  516. <output id="opt_matrnm" ref="/root/main/matrinfo/detail/matrnm" class="output_fix" appearance="output" style="left:86px; top:18px; width:240px; height:19px; padding-left:2; "/>
  517. <input id="ipt_harmcomp" ref="/root/main/matrinfo/detail/harmcomp" class="input_default" navindex="10" appearance="input" style="left:164px; top:82px; width:631px; height:19px; "/>
  518. <select1 id="rdo_harmgrde" ref="/root/main/matrinfo/detail/harmgrde" navindex="19" appearance="full" cellspacing="6" cols="4" overflow="visible" style="left:165px; top:109px; width:350px; height:20px; border-style:none; ">
  519. <choices>
  520. <item>
  521. <label>1 등급</label>
  522. <value>1</value>
  523. </item>
  524. <item>
  525. <label>2 등급</label>
  526. <value>2</value>
  527. </item>
  528. <item>
  529. <label>3 등급</label>
  530. <value>3</value>
  531. </item>
  532. <item>
  533. <label>4 등급</label>
  534. <value>4</value>
  535. </item>
  536. </choices>
  537. </select1>
  538. <datagrid id="grd_alist" nodeset="/root/main/matrinfo/alist" caption="물리적위험성^물리적위험성^matrcd^harmcls^harmcd" colsep="^" colwidth="24, 172, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheight="16" rowsep="|" navindex="5" style="left:164px; top:133px; width:215px; height:140px; ">
  539. <col checkvalue="Y,N" ref="chkval" type="checkbox"/>
  540. <col ref="harmnm"/>
  541. <col ref="matrcd" visibility="hidden"/>
  542. <col ref="harmcls" visibility="hidden"/>
  543. <col ref="harmcd" visibility="hidden"/>
  544. <script type="javascript" ev:event="onbuttonclick">
  545. <![CDATA[
  546. if(grd_deptlist.col == grd_deptlist.colRef("deptcd")){
  547. misfOpenPopUpList("02", grd_deptlist, "", "deptcd,deptnm");
  548. }
  549. if(grd_deptlist.col == grd_deptlist.colRef("deptnm")){
  550. misfOpenPopUpList("02", grd_deptlist, "", "deptcd,deptnm");
  551. }
  552. ]]>
  553. </script>
  554. </datagrid>
  555. <datagrid id="grd_blist" nodeset="/root/main/matrinfo/blist" caption="건강유해성^건강유해성^matrcd^harmcls^harmcd" colsep="^" colwidth="24, 172, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheight="16" rowsep="|" navindex="5" style="left:380px; top:133px; width:215px; height:140px; ">
  556. <col checkvalue="Y,N" ref="chkval" type="checkbox"/>
  557. <col ref="harmnm"/>
  558. <col ref="matrcd" visibility="hidden"/>
  559. <col ref="harmcls" visibility="hidden"/>
  560. <col ref="harmcd" visibility="hidden"/>
  561. <script type="javascript" ev:event="onbuttonclick">
  562. <![CDATA[
  563. if(grd_deptlist.col == grd_deptlist.colRef("deptcd")){
  564. misfOpenPopUpList("02", grd_deptlist, "", "deptcd,deptnm");
  565. }
  566. if(grd_deptlist.col == grd_deptlist.colRef("deptnm")){
  567. misfOpenPopUpList("02", grd_deptlist, "", "deptcd,deptnm");
  568. }
  569. ]]>
  570. </script>
  571. </datagrid>
  572. <datagrid id="grd_clist" nodeset="/root/main/matrinfo/clist" caption="환경유해성^환경유해성^matrcd^harmcls^harmcd" colsep="^" colwidth="24, 172, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheight="16" rowsep="|" navindex="5" style="left:596px; top:133px; width:215px; height:140px; ">
  573. <col checkvalue="Y,N" ref="chkval" type="checkbox"/>
  574. <col ref="harmnm"/>
  575. <col ref="matrcd" visibility="hidden"/>
  576. <col ref="harmcls" visibility="hidden"/>
  577. <col ref="harmcd" visibility="hidden"/>
  578. <script type="javascript" ev:event="onbuttonclick">
  579. <![CDATA[
  580. if(grd_deptlist.col == grd_deptlist.colRef("deptcd")){
  581. misfOpenPopUpList("02", grd_deptlist, "", "deptcd,deptnm");
  582. }
  583. if(grd_deptlist.col == grd_deptlist.colRef("deptnm")){
  584. misfOpenPopUpList("02", grd_deptlist, "", "deptcd,deptnm");
  585. }
  586. ]]>
  587. </script>
  588. </datagrid>
  589. <select1 id="rdo_sgnl" ref="/root/main/matrinfo/detail/sgnl" navindex="19" appearance="full" cellspacing="8" cols="4" overflow="visible" style="left:165px; top:282px; width:350px; height:20px; border-style:none; ">
  590. <choices>
  591. <item>
  592. <label>위험</label>
  593. <value>위험</value>
  594. </item>
  595. <item>
  596. <label>경고</label>
  597. <value>경고</value>
  598. </item>
  599. <item>
  600. <label>해당없음</label>
  601. <value>해당없음</value>
  602. </item>
  603. </choices>
  604. </select1>
  605. <select id="cbx_1" ref="/root/main/matrinfo/detail/warnyn1" overflow="visible" appearance="full" style="left:180px; top:438px; width:20px; height:20px; border-style:none; ">
  606. <choices>
  607. <item>
  608. <label/>
  609. <value>Y</value>
  610. </item>
  611. </choices>
  612. </select>
  613. <select id="cbx_2" ref="/root/main/matrinfo/detail/warnyn2" overflow="visible" appearance="full" style="left:235px; top:438px; width:20px; height:20px; border-style:none; ">
  614. <choices>
  615. <item>
  616. <label/>
  617. <value>Y</value>
  618. </item>
  619. </choices>
  620. </select>
  621. <select id="cbx_3" ref="/root/main/matrinfo/detail/warnyn3" overflow="visible" appearance="full" style="left:290px; top:438px; width:20px; height:20px; border-style:none; ">
  622. <choices>
  623. <item>
  624. <label/>
  625. <value>Y</value>
  626. </item>
  627. </choices>
  628. </select>
  629. <select id="cbx_4" ref="/root/main/matrinfo/detail/warnyn4" overflow="visible" appearance="full" style="left:345px; top:438px; width:20px; height:20px; border-style:none; ">
  630. <choices>
  631. <item>
  632. <label/>
  633. <value>Y</value>
  634. </item>
  635. </choices>
  636. </select>
  637. <select id="cbx_5" ref="/root/main/matrinfo/detail/warnyn5" overflow="visible" appearance="full" style="left:400px; top:438px; width:20px; height:20px; border-style:none; ">
  638. <choices>
  639. <item>
  640. <label/>
  641. <value>Y</value>
  642. </item>
  643. </choices>
  644. </select>
  645. <select id="cbx_6" ref="/root/main/matrinfo/detail/warnyn6" overflow="visible" appearance="full" style="left:455px; top:438px; width:20px; height:20px; border-style:none; ">
  646. <choices>
  647. <item>
  648. <label/>
  649. <value>Y</value>
  650. </item>
  651. </choices>
  652. </select>
  653. <select id="cbx_7" ref="/root/main/matrinfo/detail/warnyn7" overflow="visible" appearance="full" style="left:510px; top:438px; width:20px; height:20px; border-style:none; ">
  654. <choices>
  655. <item>
  656. <label/>
  657. <value>Y</value>
  658. </item>
  659. </choices>
  660. </select>
  661. <select id="cbx_8" ref="/root/main/matrinfo/detail/warnyn8" overflow="visible" appearance="full" style="left:565px; top:438px; width:20px; height:20px; border-style:none; ">
  662. <choices>
  663. <item>
  664. <label/>
  665. <value>Y</value>
  666. </item>
  667. </choices>
  668. </select>
  669. <select id="cbx_9" ref="/root/main/matrinfo/detail/warnyn9" overflow="visible" appearance="full" style="left:620px; top:438px; width:20px; height:20px; border-style:none; ">
  670. <choices>
  671. <item>
  672. <label/>
  673. <value>Y</value>
  674. </item>
  675. </choices>
  676. </select>
  677. <input id="ipt_updpath" ref="/root/hidden/file" visibility="hidden" style="left:430px; top:305px; width:100px; height:19px; "/>
  678. <upload id="upload1" nodeset="/root/hidden/file" style="left:410px; top:304px; width:15px; height:20px; "/>
  679. <!-- 파일 업로드와 관련하여 참고사항 : FTP 칠곡운영AP#1 에 /files/BEMR023/mis030/attach/mis/rpv/req/20140605 아래에 들어감.-->
  680. </group>
  681. <group id="group4" scroll="auto" style="left:0px; top:13px; width:815px; height:27px; ">
  682. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:815px; y2:25px; "/>
  683. <button id="btn_save" class="btn4_letter2" style="left:696px; top:2px; width:56px; height:22px; ">
  684. <caption>저장</caption>
  685. <script type="javascript" ev:event="DOMActivate">
  686. <![CDATA[
  687. fClickSaveBtn();
  688. ]]>
  689. </script>
  690. </button>
  691. <button id="btn_close" class="btn4_letter2" style="left:755px; top:2px; width:56px; height:22px; ">
  692. <caption>닫기</caption>
  693. <script type="javascript" ev:event="DOMActivate">
  694. <![CDATA[
  695. window.close();
  696. ]]>
  697. </script>
  698. </button>
  699. </group>
  700. </xhtml:body>
  701. </xhtml:html>