SMRFE02100_예방점검 접수 및 상세등록.xrw 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982
  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. <rfchprvnlist/>
  11. <control>
  12. <rfchprvnlist/>
  13. </control>
  14. <prtprvnlist/>
  15. </main>
  16. <send>
  17. <instcd/>
  18. <prvnchkfrdd/>
  19. <tempmngtdeptcd/>
  20. <tempmngtdeptnm/>
  21. <save/>
  22. <prvnchktodd/>
  23. <prvnchkprcsstat_search/>
  24. <mngtdeptcd/>
  25. <mngtdeptnm/>
  26. <fixasetcode/>
  27. <installplcecd/>
  28. <installplcenm/>
  29. <fixasetcd_search/>
  30. <fixasetnm/>
  31. <fileupcolumn>
  32. <instcd/>
  33. <goodflag/>
  34. <reqdd/>
  35. <reqno/>
  36. <reqseqno/>
  37. <fileseqno/>
  38. <attfilenm/>
  39. <attfilepathnm/>
  40. <purccondd/>
  41. <purcconno/>
  42. <fileupload>
  43. <file>
  44. <filename/>
  45. </file>
  46. </fileupload>
  47. </fileupcolumn>
  48. <id>SMRFE02100</id>
  49. </send>
  50. <init>
  51. <prvnchkprcsstat>
  52. <label>점검중</label>
  53. <value>1</value>
  54. <label>점검완료</label>
  55. <value>2</value>
  56. </prvnchkprcsstat>
  57. <prvnchkprcsstat_grid>
  58. <label>점검중</label>
  59. <value>1</value>
  60. <label>점검완료</label>
  61. <value>2</value>
  62. <label>결제완료</label>
  63. <value>3</value>
  64. <label>부서결재</label>
  65. <value>4</value>
  66. </prvnchkprcsstat_grid>
  67. <prvnchkprcsstat_search>
  68. <label>전체</label>
  69. <value/>
  70. <label>점검중</label>
  71. <value>1</value>
  72. <label>점검완료</label>
  73. <value>2</value>
  74. <label>결재완료</label>
  75. <value>3</value>
  76. <label>부서결재</label>
  77. <value>4</value>
  78. </prvnchkprcsstat_search>
  79. <fixtrseqmflag>
  80. <label>의료장비</label>
  81. <value>EQ</value>
  82. <label>의료비품</label>
  83. <value>GE</value>
  84. </fixtrseqmflag>
  85. <check>
  86. <label>GOOD</label>
  87. <value>G</value>
  88. <label>BAD</label>
  89. <value>B</value>
  90. </check>
  91. <itslfchkyn>
  92. <label>자체점검</label>
  93. <value>1</value>
  94. <label>외부점검</label>
  95. <value>2</value>
  96. </itslfchkyn>
  97. <rpircvrtyn>
  98. <label>Yes</label>
  99. <value>Y</value>
  100. <label>No</label>
  101. <value>N</value>
  102. </rpircvrtyn>
  103. </init>
  104. <temp/>
  105. <barcode>
  106. <code/>
  107. </barcode>
  108. <print>
  109. <rfchprvnlist/>
  110. </print>
  111. </root>
  112. </instance>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. var mainObj = getMainViewer();
  116. var scrnID = mainObj.javascript.getScreenID();
  117. if(model.getValue("/root/barcode/code") != "") autochk = "1";
  118. misfMsterDetailSet(grd_rfchprvnlist, null, "TRRFE02001", "Y");
  119. fInitialize();
  120. // 공통코드 설정
  121. //misfComboComCdListMulti("Z0007,030R0033","cmb_instcd,grd_rfchprvnlist.mngtgrade");
  122. //model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  123. if(autochk == "1"){
  124. grd_rfchprvnlist.dispatch("onrowchanged");
  125. }else{
  126. if (isPopup() && scrnID == "SMRFE00400") // 수리신청등록
  127. {
  128. if (opener.window.javascript.getParameter("paraminstcd") == ""){
  129. cmb_instcd.value = getUserInfo("dutplceinstcd");
  130. }else{
  131. model.setValue(cmb_instcd.attribute("ref") , opener.window.javascript.getParameter("paraminstcd"));
  132. }
  133. model.setValue(ipt_tempmngtdeptcd.attribute("ref") , opener.window.javascript.getParameter("paratempmngtdeptcd"));
  134. model.setValue(ipt_tempmngtdeptnm.attribute("ref") , opener.window.javascript.getParameter("paratempmngtdeptnm"));
  135. model.setValue(ipt_prvnchkfrdd.attribute("ref") , opener.window.javascript.getParameter("paramreqdd"));
  136. model.setValue(ipt_prvnchktodd.attribute("ref") , opener.window.javascript.getParameter("paramreqdd"));
  137. btn_search.dispatch("DOMActivate");
  138. model.setFocus("grd_rfchprvnlist");
  139. for (var i = grd_rfchprvnlist.fixedRows; i <= grd_rfchprvnlist.rows; i++){
  140. if (grd_rfchprvnlist.valueMatrix(i, grd_rfchprvnlist.colRef("fixasetcd")) == opener.window.javascript.getParameter("paramfixasetcd")){
  141. grd_rfchprvnlist.row = i;
  142. break;
  143. }
  144. }
  145. grd_rfchprvnlist.dispatch("onrowchanged");
  146. }
  147. }
  148. ]]>
  149. </script>
  150. <submission id="TRRFE02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rfchprvnlist"/>
  151. <submission id="TRRFE02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prtprvnlist"/>
  152. <submission id="TXRFE02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  153. <submission id="TXRFE02101" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
  154. </model>
  155. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  156. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  157. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  158. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  159. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  160. <script type="javascript">
  161. <![CDATA[
  162. var autochk = "";
  163. function fInitialize()
  164. {
  165. var mainObj = getMainViewer();
  166. var scrnID = mainObj.javascript.getScreenID();
  167. //조회 컴포넌트 초기화.
  168. model.resetInstanceNode("/root/send");
  169. model.resetInstanceNode("/root/main");
  170. // 그리드 초기화
  171. misfGridInit(grd_rfchprvnlist);
  172. // 공통코드 설정
  173. misfComboComCdListMulti("Z0007,030R0033","cmb_instcd,grd_rfchprvnlist.mngtgrade");
  174. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  175. if(autochk == "1"){
  176. model.setValue("/root/send/fixasetcode",model.getValue("/root/barcode/code"));
  177. grp_sea.disabled = true;
  178. }
  179. // 사용자 기관코드 설정.
  180. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  181. // 현재 날짜 기본 입력(6개월 간격 설정)
  182. var acptdate = getCurrentDate().toDate("YYYYMMDD");
  183. model.setValue(ipt_prvnchkfrdd.attribute("ref"), getCurrentDate());
  184. model.setValue(ipt_prvnchktodd.attribute("ref"), getCurrentDate());
  185. if (isPopup() && scrnID == "SMRFE02000") // 수리신청등록
  186. {
  187. model.setValue(ipt_tempmngtdeptcd.attribute("ref") , opener.window.javascript.getParameter("paramtempmngtdeptcd"));
  188. model.setValue(ipt_tempmngtdeptnm.attribute("ref") , opener.window.javascript.getParameter("paramtempmngtdeptnm"));
  189. model.setValue(ipt_prvnchkfrdd.attribute("ref") , opener.window.javascript.getParameter("paramprvnchkdd"));
  190. model.setValue(ipt_prvnchktodd.attribute("ref") , opener.window.javascript.getParameter("paramprvnchkdd"));
  191. model.setValue(cmb_prvnchkprcsstat_search.attribute("ref") , opener.window.javascript.getParameter("paramprvnchkprcsstat"));
  192. btn_search.dispatch("DOMActivate");
  193. }
  194. model.refresh();
  195. model.setFocus("ipt_fixasetcd_search");
  196. }
  197. function fAfterRetr()
  198. {
  199. for(var fRow = grd_rfchprvnlist.fixedRows; fRow < grd_rfchprvnlist.rows ; fRow++ )
  200. {
  201. if(grd_rfchprvnlist.valueMatrix(fRow, grd_rfchprvnlist.colRef("prvnchkprcsstat")) != "1")
  202. {
  203. grd_rfchprvnlist.isReadOnly(fRow, grd_rfchprvnlist.fixedCols-1, fRow, grd_rfchprvnlist.cols-1) = true;
  204. }
  205. }
  206. }
  207. /*--------------------------------------------------------------------------------*/
  208. /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
  209. /*--------------------------------------------------------------------------------*/
  210. function fAllControlDisabled(pDisable)
  211. {
  212. rdo_vischk.disabled=pDisable;
  213. txt_viscmt.disabled=pDisable;
  214. rdo_pwrchk.disabled=pDisable;
  215. txt_pwrcmt.disabled=pDisable;
  216. rdo_syschk.disabled=pDisable;
  217. txt_syscmt.disabled=pDisable;
  218. rdo_itslfchkyn.disabled=pDisable;
  219. cmb_prvnchkprcsstat.disabled=pDisable;
  220. ipt_todd.disabled=pDisable;
  221. ipt_chkpsnid.disabled=pDisable;
  222. ipt_chkpsnnm.disabled=pDisable;
  223. btn_chrgpsnid.disabled=pDisable;
  224. rdo_rpircvrtyn.disabled=pDisable;
  225. opt_reqdd.disabled=pDisable;
  226. opt_reqno.disabled=pDisable;
  227. //ipt_bugtyy.disabled=pDisable;
  228. //cmb_bugtcd.disabled=pDisable;
  229. //ipt_stdysubjno.disabled=pDisable;
  230. //ipt_stdysubjnm.disabled=pDisable;
  231. //btn_stdysubjnm.disabled=pDisable;
  232. }
  233. //파일 다운로드 하는 기능
  234. function fAttfileAdd(){
  235. var maxsize = upd_uploadfile.attribute("filesize");
  236. model.makeValue("/root/send/fileupcolumn/instcd" , model.getValue(cmb_instcd.attribute("ref")) );
  237. model.makeValue("/root/send/fileupcolumn/goodflag" , "EQ" );
  238. model.makeValue("/root/send/fileupcolumn/prvnchkdd" , grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("prvnchkdd")));
  239. model.makeValue("/root/send/fileupcolumn/acptno" , grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("acptno")));
  240. model.makeValue("/root/send/fileupcolumn/attfilenm" , model.getValue(ipt_attfilenm.attribute("ref")));
  241. model.makeValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
  242. submit("TXRFE02101");
  243. if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
  244. var focus = grd_rfchprvnlist.row;
  245. messageBox("첨부파일이 업로드" , "I002");
  246. btn_search.dispatch("DOMActivate");
  247. model.setFocus("grd_rfchprvnlist");
  248. grd_rfchprvnlist.row = focus;
  249. grd_rfchprvnlist.dispatch("onrowchanged");
  250. }
  251. //파일 업로드 후 첨부파일 팝업창을 띄워서 해당 파일이 잘 올라갔는지 확인할수 있도록 해준다.?????
  252. }
  253. function fAttfileDown(){ //첨부파일 다운로드
  254. model.makeValue("/root/send/fileupcolumn/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  255. model.makeValue("/root/send/fileupcolumn/reqdd" , grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("prvnchkdd")));
  256. model.makeValue("/root/send/fileupcolumn/fileseqno" , model.getValue("root/main/control/rfchprvnlist/attfilepathnm"));
  257. model.makeValue("/root/send/fileupcolumn/goodflag" , "EQ" );
  258. model.makeValue("/root/send/fileupcolumn/reqno" , grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("acptno")));
  259. model.makeValue("/root/send/fileupcolumn/reqseqno" , "-" );
  260. model.makeValue("/root/send/fileupcolumn/attfilenm" , model.getValue(ipt_attfilenm.attribute("ref")));
  261. model.makeValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
  262. model.removenode("/root/copynode");
  263. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  264. model.makeNode("/root/copynode");
  265. setParameter("para_instcd" , model.getValue(cmb_instcd.attribute("ref")));
  266. setParameter("para_reqdd" , grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("prvnchkdd")));
  267. setParameter("para_fileseqno" , model.getValue("root/main/control/rfchprvnlist/attfilepathnm") );
  268. setParameter("para_goodflag" , "EQ" );
  269. setParameter("para_reqno" , grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("acptno")));
  270. setParameter("para_reqseqno" , "-" );
  271. setParameter("para_attfilenm" , model.getValue(ipt_attfilenm.attribute("ref")));
  272. setParameter("para_attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
  273. modal("SPRFE02500");
  274. //grd_rfchprvnlist.dispatch("onrowchanged");
  275. var focus = grd_rfchprvnlist.row;
  276. btn_search.dispatch("DOMActivate");
  277. model.setFocus("grd_rfchprvnlist");
  278. grd_rfchprvnlist.row = focus;
  279. grd_rfchprvnlist.dispatch("onrowchanged");
  280. }
  281. ]]>
  282. </script>
  283. </xhtml:head>
  284. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  285. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  286. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:207px; height:14px; ">예방점검 접수 및 상세등록</caption>
  287. </group>
  288. <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
  289. <button id="btn_print" class="btn6_letter9" style="left:0px; top:3px; width:128px; height:22px; ">
  290. <caption>예방점검내용출력</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. if( instance1.selectNodes("/root/main/rfchprvnlist[select = 'Y']").length > 0 ){
  294. model.removeNodeset("/root/print/rfchprvnlist");
  295. model.makeNode("/root/print/rfchprvnlist");
  296. copyNodesetType("/root/print/rfchprvnlist","/root/main/rfchprvnlist[select = 'Y']","replace");
  297. if(instance1.selectNodes("/root/print/rfchprvnlist").length > 0)
  298. exeReportPreview("RPRFE01405", "XMLSTR");
  299. }
  300. ]]>
  301. </script>
  302. </button>
  303. <button id="btn_init" class="btn4_letter3" navindex="17" style="left:1126px; top:3; width:68px; height:22px; ">
  304. <caption>초기화</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. if(getGridUpdateData(grd_rfchprvnlist) != "")
  308. {
  309. if(messageBox("변경된 데이터가 있습니다. \n초기화 작업을", "Q003") == 7)
  310. return;
  311. }
  312. fInitialize();
  313. ]]>
  314. </script>
  315. </button>
  316. <line id="line15" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  317. <button id="btn_save" class="btn4_letter2" navindex="16" style="left:1066px; top:3px; width:56px; height:22px; ">
  318. <caption>저장</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. if( instance1.selectNodes("/root/main/rfchprvnlist[select = 'Y']").length > 0 ){
  322. btn_save_grid.dispatch("DOMActivate");
  323. return;
  324. }
  325. //if(fCheckSaveData() == false)return;
  326. //model.copyNode("/root/main/rfchprvnlist["+ grd_rfchprvnlist.row +"]","/root/main/com_rfchprvnlist");
  327. // ** 예방점검시 결과등록하여 변경된 값들을 다시 grid에 적용시킨다.(/root/main/control/rfchprvnlist --> /root/main/rfchprvnlist ********
  328. //alert(grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("acptpsnid")) );
  329. //grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("acptpsnid")) = ipt_chkpsnid.value;
  330. //alert(grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("acptpsnid")) );
  331. ipt_acptpsnid.value = ipt_chkpsnid.value;
  332. misfGridRowStatusChange(grd_rfchprvnlist,"/root/main","/root/main/control");
  333. model.refresh();
  334. //이현민
  335. for (var i=grd_rfchprvnlist.fixedRows; i< grd_rfchprvnlist.rows; i++){
  336. grd_rfchprvnlist.valueMatrix(i, grd_rfchprvnlist.colRef("bizscrnid")) = "SMRFE02100_예방점검 접수 및 상세등록.xrw";
  337. }
  338. misfSave("TXRFE02001");
  339. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  340. var focus = grd_rfchprvnlist.row;
  341. btn_search.dispatch("DOMActivate");
  342. model.setFocus("grd_rfchprvnlist");
  343. grd_rfchprvnlist.row = focus;
  344. grd_rfchprvnlist.dispatch("onrowchanged");
  345. }
  346. ]]>
  347. </script>
  348. </button>
  349. <button id="button1" class="btn6_letter9" visibility="hidden" style="left:144px; top:3px; width:140px; height:22px; ">
  350. <caption>예방점검이력출력</caption>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. var instcdtmp = model.getValue("/root/send/instcd");
  354. if (instcdtmp == "031"){
  355. var mngtdeptcd = model.getValue("/root/send/mngtdeptcd");
  356. if(mngtdeptcd != ""){
  357. submit("TRRFE02002");
  358. exeReportPreview("RPRFE01406","XMLSTR");
  359. }else{
  360. messageBox("사용부서를 " ,"C001");
  361. }
  362. }else{
  363. var installplcecd = model.getValue("/root/send/installplcecd");
  364. if(installplcecd != ""){
  365. submit("TRRFE02002");
  366. exeReportPreview("RPRFE01406","XMLSTR");
  367. }else{
  368. messageBox("설치장소를 " ,"C001");
  369. }
  370. }
  371. ]]>
  372. </script>
  373. </button>
  374. </group>
  375. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:740; ">
  376. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:70px; vertical-align:top; ">
  377. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1189px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  378. <caption id="cap_instcd" class="search_name" style="left:10px; top:14px; width:86px; height:17px; ">기관코드 :</caption>
  379. <button id="btn_search" class="btn1_letter2" navindex="15" style="left:1120px; top:24px; width:56px; height:22px; ">
  380. <caption>조회</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. if(!isRequiredControls("cmb_instcd")) return;
  384. //if(!isRequiredControls("ipt_prvnchkfrdd")) return;
  385. //if(!isRequiredControls("ipt_prvnchktodd")) return;
  386. //그리드 초기화.
  387. misfGridInit(grd_rfchprvnlist);
  388. model.resetInstanceNode("/root/main/control/rfchprvnlist");
  389. // 자산마스터 조회
  390. if(submit("TRRFE02001",false)) {
  391. fAfterRetr();
  392. grd_rfchprvnlist.refresh();
  393. if(autochk == "1"){
  394. for(i = 1 ; i < grd_rfchprvnlist.rows ; i++){
  395. if(grd_rfchprvnlist.valueMatrix(i, grd_rfchprvnlist.colRef("prvnchkdd")) == getCurrentDate().substr(0,8))
  396. grd_rfchprvnlist.row = i;
  397. }
  398. grd_rfchprvnlist.dispatch("onrowchanged");
  399. }
  400. }
  401. ]]>
  402. </script>
  403. </button>
  404. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" navindex="2" appearance="minimal" style="left:94px; top:14px; width:141px; height:19px; text-align:center; ">
  405. <choices>
  406. <itemset>
  407. <label/>
  408. <value/>
  409. </itemset>
  410. </choices>
  411. </select1>
  412. <line id="line13" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  413. <input id="ipt_tempmngtdeptcd" ref="/root/send/tempmngtdeptcd" class="input_default" navindex="12" visibility="hidden" style="left:90px; top:40px; width:34px; height:19px; ">
  414. <script type="javascript" ev:event="xforms-value-changed">
  415. <![CDATA[
  416. misfSearchDept(ipt_tempmngtdeptnm);
  417. ]]>
  418. </script>
  419. </input>
  420. <button id="btn_tempmngtdeptcd" class="icon_search" navindex="13" visibility="hidden" style="left:124px; top:40px; width:16px; height:16px; ">
  421. <caption/>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. misfOpenPopUpList("02", ipt_tempmngtdeptcd,"","tempmngtdeptcd,tempmngtdeptnm");
  425. model.refresh();
  426. ]]>
  427. </script>
  428. </button>
  429. <caption id="cap_tempmngtdeptcd" class="search_name" visibility="hidden" style="left:9px; top:40px; width:85px; height:17px; ">관리부서:</caption>
  430. <input id="ipt_tempmngtdeptnm" ref="/root/send/tempmngtdeptnm" class="output_fix" navindex="14" visibility="hidden" editable="false" appearance="input" style="left:145px; top:40px; width:49px; height:19px; "/>
  431. <caption id="caption1" class="search_name" style="left:815px; top:15px; width:117px; height:17px; ">계획일자 :</caption>
  432. <input id="ipt_prvnchkfrdd" ref="/root/send/prvnchkfrdd" class="input_default" navindex="9" inputtype="date" style="left:905px; top:15px; width:89px; height:19px; text-align:center; "/>
  433. <input id="ipt_prvnchktodd" ref="/root/send/prvnchktodd" class="input_default" navindex="10" inputtype="date" style="left:1009px; top:15px; width:89px; height:19px; text-align:center; "/>
  434. <caption id="caption13" style="left:995px; top:15px; width:20px; height:20px; font-weight:bold; ">~</caption>
  435. <caption id="caption19" class="search_name" style="left:815px; top:41px; width:92px; height:17px; ">상 태 :</caption>
  436. <select1 id="cmb_prvnchkprcsstat_search" ref="/root/send/prvnchkprcsstat_search" navindex="11" appearance="minimal" style="left:904px; top:41px; width:90px; height:19px; ">
  437. <choices>
  438. <itemset nodeset="/root/init/prvnchkprcsstat_search">
  439. <label ref="label"/>
  440. <value ref="value"/>
  441. </itemset>
  442. </choices>
  443. </select1>
  444. <button id="btn_mngtdeptcd" class="icon_search" navindex="4" style="left:423px; top:14px; width:16px; height:16px; ">
  445. <caption/>
  446. <script type="javascript" ev:event="DOMActivate">
  447. <![CDATA[
  448. misfOpenPopUpList("02", ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  449. model.refresh();
  450. ]]>
  451. </script>
  452. </button>
  453. <input id="ipt_mngtdeptnm" ref="/root/send/mngtdeptnm" class="output_fix" navindex="5" editable="false" appearance="input" style="left:442px; top:14px; width:135px; height:19px; "/>
  454. <caption id="cap_mngtdeptcd" class="search_name" style="left:250px; top:14px; width:95px; height:17px; ">사용부서 :</caption>
  455. <input id="ipt_mngtdeptcd" ref="/root/send/mngtdeptcd" class="input_default" navindex="3" style="left:340px; top:14px; width:80px; height:19px; ">
  456. <script type="javascript" ev:event="xforms-value-changed">
  457. <![CDATA[
  458. misfSearchDept(ipt_mngtdeptnm);
  459. ]]>
  460. </script>
  461. </input>
  462. <button id="btn_installplcecd_search" class="icon_search" navindex="-1" visibility="visible" style="left:423px; top:40px; width:16px; height:16px; ">
  463. <caption/>
  464. <script type="javascript" ev:event="DOMActivate">
  465. <![CDATA[
  466. misfOpenPopUpList("19", ipt_installplcecd,"", "installplcecd,installplcenm") ;
  467. ipt_installplcecd.refresh();
  468. ipt_installplcenm.refresh();
  469. ]]>
  470. </script>
  471. </button>
  472. <input id="ipt_installplcenm" ref="/root/send/installplcenm" class="output_fix" navindex="-1" visibility="visible" editable="false" appearance="input" style="left:442px; top:40px; width:135px; height:19px; "/>
  473. <input id="ipt_installplcecd" ref="/root/send/installplcecd" class="input_default" navindex="6" visibility="visible" style="left:340px; top:40px; width:80px; height:19px; ">
  474. <script type="javascript" ev:event="xforms-value-changed">
  475. <![CDATA[
  476. if(ipt_installplcecd.value.length == 0)
  477. ipt_installplcenm.value = "";
  478. else
  479. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  480. "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
  481. ipt_installplcecd, "PPRAC00700", "","");
  482. ipt_installplcecd.refresh();
  483. ipt_installplcenm.refresh();
  484. ]]>
  485. </script>
  486. </input>
  487. <caption id="caption21" class="search_name" style="left:250px; top:40px; width:95px; height:17px; ">설치장소 :</caption>
  488. <caption id="cap_fixasetcd_search" class="search_name" style="left:600px; top:15px; width:89px; height:17px; ">자산코드 :</caption>
  489. <input id="ipt_fixasetcd_search" ref="/root/send/fixasetcd_search" class="input_search" navindex="7" visibility="visible" imemode="disabled" _chartype="upper" style="left:685px; top:15px; width:115px; height:19px; ">
  490. <script type="javascript" ev:event="onkeyup">
  491. <![CDATA[
  492. inputEnterKey("btn_search", "DOMActivate");
  493. if(event.keyCode == "13") {
  494. model.setFocus("ipt_fixasetcd_search");
  495. }
  496. ]]>
  497. </script>
  498. </input>
  499. <input id="ipt_name_search" ref="/root/send/fixasetnm" class="input_search" navindex="8" style="left:685px; top:41px; width:115px; height:19px; ">
  500. <script type="javascript" ev:event="onkeyup">
  501. <![CDATA[
  502. inputEnterKey("btn_search", "DOMActivate");
  503. ]]>
  504. </script>
  505. </input>
  506. <caption id="cap_goodflagnm_search" class="search_name" style="left:600px; top:41px; width:110px; height:17px; ">
  507. <![CDATA[자 산 명 :]]>
  508. <hint>
  509. <![CDATA[자산명(한글), 모델]]>
  510. </hint>
  511. </caption>
  512. </group>
  513. <caption id="caption2" class="tit_2" style="left:5px; top:99px; width:95px; height:13px; ">예방점검목록</caption>
  514. <line id="line1" class="line_1" style="x1:0px; y1:116px; x2:780px; y2:115px; "/>
  515. <button id="btn_save_grid" class="btn2_letter4" navindex="18" visibility="hidden" style="left:585px; top:90px; width:64px; height:19px; ">
  516. <caption>일괄저장</caption>
  517. <script type="javascript" ev:event="DOMActivate">
  518. <![CDATA[
  519. var target = "/root/main/rfchprvnlist";
  520. var origin = "/root/main/control/rfchprvnlist";
  521. if( messageBox(" 선택하신 자산의 점검 결과가 일괄적으로 적용 됩니다.\n","Q002") != "6" )return;
  522. for(var cnt = grd_rfchprvnlist.fixedRows; cnt < grd_rfchprvnlist.rows; cnt++){
  523. if(model.getValue(target + "[" + cnt + "]/select") == "Y"){
  524. model.setValue(target + "[" + cnt + "]/vischk", model.getValue(origin + "/vischk"));
  525. model.setValue(target + "[" + cnt + "]/viscmt", model.getValue(origin + "/viscmt"));
  526. model.setValue(target + "[" + cnt + "]/pwrchk", model.getValue(origin + "/pwrchk"));
  527. model.setValue(target + "[" + cnt + "]/pwrcmt", model.getValue(origin + "/pwrcmt"));
  528. model.setValue(target + "[" + cnt + "]/syschk", model.getValue(origin + "/syschk"));
  529. model.setValue(target + "[" + cnt + "]/syscmt", model.getValue(origin + "/syscmt"));
  530. model.setValue(target + "[" + cnt + "]/clnchk", model.getValue(origin + "/clnchk"));
  531. model.setValue(target + "[" + cnt + "]/clncmt", model.getValue(origin + "/clncmt"));
  532. model.setValue(target + "[" + cnt + "]/itslfchkyn", model.getValue(origin + "/itslfchkyn"));
  533. model.setValue(target + "[" + cnt + "]/prvnchkprcsstat",model.getValue(origin + "/prvnchkprcsstat"));
  534. model.setValue(target + "[" + cnt + "]/todd", model.getValue(origin + "/todd"));
  535. model.setValue(target + "[" + cnt + "]/chkpsnid", model.getValue(origin + "/chkpsnid"));
  536. model.setValue(target + "[" + cnt + "]/acptpsnid", model.getValue(origin + "/chkpsnid"));
  537. model.setValue(target + "[" + cnt + "]/chkpsnnm", model.getValue(origin + "/chkpsnnm"));
  538. model.setValue(target + "[" + cnt + "]/rpircvrtyn", model.getValue(origin + "/rpircvrtyn"));
  539. }
  540. }
  541. grd_rfchprvnlist.refresh();
  542. misfSave("TXRFE02001");
  543. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  544. var focus = grd_rfchprvnlist.row;
  545. btn_search.dispatch("DOMActivate");
  546. model.setFocus("grd_rfchprvnlist");
  547. grd_rfchprvnlist.row = focus;
  548. grd_rfchprvnlist.dispatch("onrowchanged");
  549. }
  550. ]]>
  551. </script>
  552. </button>
  553. <button id="btn_excel" class="btn5_letter3" navindex="19" style="left:725px; top:94px; width:53px; height:19px; ">
  554. <caption>Excel</caption>
  555. <script type="javascript" ev:event="DOMActivate">
  556. <![CDATA[
  557. var fileName = window.fileDialog("save", ",", false, "예방점검목록", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  558. if (fileName != "")
  559. {
  560. grd_rfchprvnlist.saveExcel(fileName, "예방점검목록List",true,true, "");
  561. }
  562. ]]>
  563. </script>
  564. </button>
  565. <group id="grp_detail" style="left:785px; top:95px; width:407px; height:635px; ">
  566. <output id="opt_mngtno" ref="/root/main/control/rfchprvnlist/mngtno" class="output_fix" style="left:92px; top:26px; width:312px; height:19px; "/>
  567. <caption id="caption60" class="cell_1" style="left:0px; top:609px; width:95px; height:23px; vertical-align:middle; ">첨부파일</caption>
  568. <output id="opt_reqdd" ref="/root/main/control/rfchprvnlist/reqdd" class="output_fix" format="yyyy-mm-dd" style="left:97px; top:586px; width:116px; height:19px; text-align:center; "/>
  569. <output id="opt_installplcenm" ref="/root/main/control/rfchprvnlist/installplcenm" class="output_fix" style="left:92px; top:101px; width:312px; height:19px; "/>
  570. <output id="opt_reqno" ref="/root/main/control/rfchprvnlist/reqno" class="output_fix" style="left:216px; top:586px; width:60px; height:19px; text-align:center; "/>
  571. <select1 id="rdo_vischk" ref="/root/main/control/rfchprvnlist/vischk" class="input_fix" navindex="21" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:97px; top:154px; width:210px; height:20px; border-style:none; ">
  572. <choices>
  573. <itemset nodeset="/root/init/check">
  574. <label ref="label"/>
  575. <value ref="value"/>
  576. </itemset>
  577. </choices>
  578. </select1>
  579. <input id="ipt_attfilenm" ref="/root/main/control/rfchprvnlist/attfilenm" class="input_default" disabled="true" navindex="39" style="left:97px; top:611px; width:223px; height:19px; "/>
  580. <select1 id="rdo_itslfchkyn" ref="/root/main/control/rfchprvnlist/itslfchkyn" class="input_fix" navindex="29" appearance="full" cellspacing="40" cols="2" overflow="visible" style="left:97px; top:490px; width:210px; height:20px; border-style:none; ">
  581. <choices>
  582. <itemset nodeset="/root/init/itslfchkyn">
  583. <label ref="label"/>
  584. <value ref="value"/>
  585. </itemset>
  586. </choices>
  587. </select1>
  588. <select1 id="rdo_syschk" ref="/root/main/control/rfchprvnlist/syschk" class="input_fix" navindex="25" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:97px; top:322px; width:210px; height:20px; border-style:none; ">
  589. <choices>
  590. <itemset nodeset="/root/init/check">
  591. <label ref="label"/>
  592. <value ref="value"/>
  593. </itemset>
  594. </choices>
  595. </select1>
  596. <textarea id="txt_clncmt" ref="/root/main/control/rfchprvnlist/clncmt" navindex="28" scroll="vertical" style="left:96px; top:427px; width:310px; height:60px; "/>
  597. <caption id="caption20" class="cell_1" style="left:0px; top:405px; width:95px; height:83px; vertical-align:middle; ">
  598. <![CDATA[ CLEANING
  599. CHECK]]>
  600. </caption>
  601. <input id="ipt_chkpsnid" ref="/root/main/control/rfchprvnlist/chkpsnid" class="input_search" navindex="33" style="left:97px; top:538px; width:85px; height:19px; text-align:center; ">
  602. <script type="javascript" ev:event="xfroms-value-changed">
  603. <![CDATA[
  604. if(ipt_chkpsnid.value.length == 0)
  605. {
  606. chkpsnnm.value = "";
  607. }else{
  608. misfValidationCheck("01-1", "", "chkpsnid,chkpsnnm");
  609. }
  610. model.refresh();
  611. ]]>
  612. </script>
  613. </input>
  614. <select1 id="rdo_pwrchk" ref="/root/main/control/rfchprvnlist/pwrchk" class="input_fix" navindex="23" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:97px; top:237px; width:210px; height:20px; border-style:none; ">
  615. <choices>
  616. <itemset nodeset="/root/init/check">
  617. <label ref="label"/>
  618. <value ref="value"/>
  619. </itemset>
  620. </choices>
  621. </select1>
  622. <caption id="caption10" class="cell_1" style="left:0px; top:75px; width:90px; height:23px; vertical-align:middle; ">제조회사</caption>
  623. <input id="ipt_acptpsnid" ref="/root/main/control/rfchprvnlist/acptpsnid" class="input_search" disabled="true" navindex="30" visibility="hidden" style="left:310px; top:490px; width:75px; height:19px; text-align:center; "/>
  624. <button id="btn_chrgpsnid" class="icon_search" disabled="false" navindex="34" style="left:185px; top:538px; width:16px; height:16px; ">
  625. <caption/>
  626. <script type="javascript" ev:event="xforms-value-changed">
  627. <![CDATA[
  628. // misfOpenPopUpList("01", ipt_chrgpsnid, "", "chrgpsnid,chrgpsnnm");
  629. // model.refresh();
  630. ]]>
  631. </script>
  632. <script type="javascript" ev:event="onclick">
  633. <![CDATA[
  634. misfOpenPopUpList("01", ipt_chkpsnid, "", "chkpsnid,chkpsnnm");
  635. model.refresh();
  636. ]]>
  637. </script>
  638. </button>
  639. <caption id="caption11" class="cell_1" style="left:0px; top:100px; width:90px; height:23px; vertical-align:middle; ">설치장소</caption>
  640. <caption id="caption12" class="tit_2" style="left:5px; top:130px; width:95px; height:13px; ">예방결과등록</caption>
  641. <caption id="caption3" class="tit_2" style="left:5px; top:4px; width:95px; height:13px; ">상세</caption>
  642. <button id="btn_addfile" class="btn2_letter5" navindex="40" style="left:323px; top:611px; width:75px; height:19px; ">
  643. <caption>파일업로드</caption>
  644. <script type="javascript" ev:event="DOMActivate">
  645. <![CDATA[
  646. //첨부파일이 이미 있다면 파일 업로드 가 안되도록 막아버리자.
  647. if ( model.getValue( ipt_attfilenm.attribute("ref")).length > 0) {
  648. messageBox( "이미 첨부파일이 존재하여 첨부파일을 저장할수" , "I004" );
  649. return;
  650. }
  651. //행추가를 통한 비품신규청구일경우 파일 업로드막기(저장후에 업로드가능해짐)
  652. var files = window.fileDialog("open", "|", false);
  653. var replacepath = "";
  654. if ( files.length <= 0 ) return;
  655. model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
  656. var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  657. model.setValue(ipt_attfilenm.attribute("ref") , filename);
  658. if (model.getValue( ipt_uploadfile.attribute("ref") ).length >0 && model.getValue( ipt_attfilenm.attribute("ref") ).length>0 ) {
  659. fAttfileAdd(); //첨부파일 서버로 저장하는 메소드 호출
  660. }
  661. //btn_search.dispatch("DOMActivate");
  662. model.refresh();
  663. ]]>
  664. </script>
  665. </button>
  666. <button id="btn_downfile" class="btn2_letter8" navindex="38" style="left:290px; top:586px; width:108px; height:19px; ">
  667. <caption>파일수정/다운로드</caption>
  668. <script type="javascript" ev:event="DOMActivate">
  669. <![CDATA[
  670. //첨부파일이 있는 경우에만 파일 다운로드하는 기능
  671. // if ( ipt_attfilenm.value != '')
  672. // {
  673. //첨부파일 다운로드함수 호출
  674. fAttfileDown();
  675. // }else{
  676. // messageBox("첨부된 파일이 없어서 다운로드 할수" , "I004");
  677. // }
  678. ]]>
  679. </script>
  680. </button>
  681. <caption id="caption4" class="cell_1" style="left:0px; top:489px; width:95px; height:23px; vertical-align:middle; ">점검구분</caption>
  682. <input id="ipt_todd" ref="/root/main/control/rfchprvnlist/todd" class="input_search" navindex="32" inputtype="date" style="left:187px; top:515px; width:100px; height:19px; text-align:center; ">
  683. <script type="javascript" ev:event="xfroms-value-changed">
  684. <![CDATA[
  685. if(ipt_chkpsnid.value.length == 0)
  686. {
  687. chkpsnnm.value = "";
  688. }else{
  689. misfValidationCheck("01-1", "", "chkpsnid,chkpsnnm");
  690. }
  691. model.refresh();
  692. ]]>
  693. </script>
  694. </input>
  695. <input id="ipt_chkpsnnm" ref="/root/main/control/rfchprvnlist/chkpsnnm" class="input_search" navindex="35" appearance="output" style="left:205px; top:538px; width:175px; height:19px; text-align:center; ">
  696. <script type="javascript" ev:event="xforms-value-changed">
  697. <![CDATA[
  698. if(ipt_chkpsnnm.value.length == 0)
  699. {
  700. ipt_chkpsnnm.value = "";
  701. }else {
  702. misfValidationCheck("01-2", "", "chkpsnid,chkpsnnm");
  703. }
  704. model.refresh();
  705. ]]>
  706. </script>
  707. </input>
  708. <caption id="caption5" class="cell_1" style="left:0px; top:513px; width:95px; height:23px; vertical-align:middle; ">점검상태/일자</caption>
  709. <caption id="caption14" class="cell_1" style="left:0px; top:153px; width:95px; height:83px; vertical-align:middle; ">
  710. <![CDATA[ VISUAL
  711. CHECK]]>
  712. </caption>
  713. <select1 id="rdo_rpircvrtyn" ref="/root/main/control/rfchprvnlist/rpircvrtyn" class="input_fix" navindex="36" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:97px; top:562px; width:210px; height:20px; border-style:none; ">
  714. <choices>
  715. <itemset nodeset="/root/init/rpircvrtyn">
  716. <label ref="label"/>
  717. <value ref="value"/>
  718. </itemset>
  719. </choices>
  720. <script type="javascript" ev:event="xforms-value-changed">
  721. <![CDATA[
  722. if (rdo_rpircvrtyn.value== "N" && opt_reqdd.value.length > 0 )
  723. //if (rdo_rpircvrtyn.value== "N")
  724. {
  725. /* 실행취소*/
  726. if(messageBox("수리전환 취소입니다.! ", "Q003") == "6") model.setValue(rdo_rpircvrtyn.attribute("ref"),"N");
  727. else model.setValue(rdo_rpircvrtyn.attribute("ref"),"Y");
  728. model.refresh();
  729. }
  730. ]]>
  731. </script>
  732. </select1>
  733. <caption id="caption15" class="cell_1" style="left:0px; top:237px; width:95px; height:83px; vertical-align:middle; ">
  734. <![CDATA[ FUNCTION
  735. CHECK]]>
  736. </caption>
  737. <textarea id="txt_viscmt" ref="/root/main/control/rfchprvnlist/viscmt" navindex="22" scroll="vertical" style="left:96px; top:175px; width:310px; height:60px; "/>
  738. <output id="opt_suplplcenm" ref="/root/main/control/rfchprvnlist/suplplcenm" class="output_fix" style="left:92px; top:51px; width:312px; height:19px; "/>
  739. <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:400px; y2:21px; "/>
  740. <select1 id="rdo_clnchk" ref="/root/main/control/rfchprvnlist/clnchk" class="input_fix" navindex="27" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:97px; top:406px; width:210px; height:20px; border-style:none; ">
  741. <choices>
  742. <itemset nodeset="/root/init/check">
  743. <label ref="label"/>
  744. <value ref="value"/>
  745. </itemset>
  746. </choices>
  747. </select1>
  748. <caption id="caption7" class="cell_1" style="left:0px; top:561px; width:95px; height:23px; vertical-align:middle; ">수리전환</caption>
  749. <caption id="caption16" class="cell_1" style="left:0px; top:321px; width:95px; height:83px; vertical-align:middle; ">
  750. <![CDATA[ SYSTEM
  751. CHECK]]>
  752. </caption>
  753. <line id="line3" class="line_1" style="x1:0px; y1:148px; x2:400px; y2:149px; "/>
  754. <caption id="caption17" class="cell_1" style="left:0px; top:585px; width:95px; height:23px; vertical-align:middle; ">수리의뢰번호</caption>
  755. <textarea id="txt_syscmt" ref="/root/main/control/rfchprvnlist/syscmt" navindex="26" scroll="vertical" style="left:96px; top:343px; width:310px; height:60px; "/>
  756. <caption id="caption8" class="cell_1" style="left:0px; top:25px; width:90px; height:23px; vertical-align:middle; ">SERIAL_NO</caption>
  757. <caption id="caption18" class="cell_1" style="left:0px; top:537px; width:95px; height:23px; vertical-align:middle; ">점검자</caption>
  758. <caption id="caption9" class="cell_1" style="left:0px; top:50px; width:90px; height:23px; vertical-align:middle; ">거래처</caption>
  759. <input id="ipt_uploadfile" ref="/root/send/fileupcolumn/fileupload/file" navindex="37" visibility="hidden" style="left:335px; top:562px; width:60px; height:19px; "/>
  760. <upload id="upd_uploadfile" nodeset="/root/send/fileupcolumn/fileupload/file" filecount="5" validate="true" style="left:315px; top:560px; width:25px; height:20px; "/>
  761. <select1 id="cmb_prvnchkprcsstat" ref="/root/main/control/rfchprvnlist/prvnchkprcsstat" navindex="31" appearance="minimal" style="left:97px; top:515px; width:85px; height:19px; ">
  762. <choices>
  763. <itemset nodeset="/root/init/prvnchkprcsstat">
  764. <label ref="label"/>
  765. <value ref="value"/>
  766. </itemset>
  767. </choices>
  768. <script type="javascript" ev:event="xforms-value-changed">
  769. <![CDATA[
  770. if(cmb_prvnchkprcsstat.value=="2")
  771. {
  772. model.setValue(ipt_todd.attribute("ref"),getCurrentDate());
  773. model.setValue(ipt_chkpsnid.attribute("ref"),getUserInfo("userid"));
  774. model.setValue(ipt_chkpsnnm.attribute("ref"),getUserInfo("usernm"));
  775. model.setValue(rdo_rpircvrtyn.attribute("ref"),"N");
  776. }
  777. else if(cmb_prvnchkprcsstat.value=="1")
  778. {
  779. model.setValue(ipt_todd.attribute("ref"),"");
  780. model.setValue(ipt_chkpsnid.attribute("ref"),"");
  781. model.setValue(ipt_chkpsnnm.attribute("ref"),"");
  782. model.setValue(rdo_rpircvrtyn.attribute("ref"),"N");
  783. }
  784. model.refresh();
  785. ]]>
  786. </script>
  787. </select1>
  788. <textarea id="txt_pwrcmt" ref="/root/main/control/rfchprvnlist/pwrcmt" navindex="24" scroll="vertical" style="left:96px; top:258px; width:310px; height:60px; "/>
  789. <output id="opt_prodcmpynm" ref="/root/main/control/rfchprvnlist/prodcmpynm" class="output_fix" style="left:92px; top:76px; width:312px; height:19px; "/>
  790. </group>
  791. <button id="btn_grdsize" class="btn2_letter4" navindex="33" style="left:660px; top:94px; width:64px; height:19px; ">
  792. <caption>펼치기</caption>
  793. <script type="javascript" ev:event="DOMActivate">
  794. <![CDATA[
  795. if( btn_grdsize.attribute("text") == "펼치기"){
  796. btn_grdsize.attribute("text") = "줄이기";
  797. grd_rfchprvnlist.attribute("width") =1190 ;
  798. }
  799. else {
  800. btn_grdsize.attribute("text") ="펼치기";
  801. grd_rfchprvnlist.attribute("width") =780 ;
  802. }
  803. ]]>
  804. </script>
  805. </button>
  806. <datagrid id="grd_rfchprvnlist" nodeset="/root/main/rfchprvnlist" caption="선택^점검상태^계획일자^계획일자^관리등급^자산코드^자산명칭^규격^사용부서^설치장소^관리부서^모델^담당자^medelectacptyn^medelectacptpsnid^사용부서장확인^수리전환여부^수리접수일자^수리접수번호^예방점검진행상태^결재여부^결재일자^기관코드^visualcheck^visualcheckcomment^powercheck^powercomment^systemcheck^systemcomment^cleaningcheck^cleaningcomment^자체점검여부^부품활용여부^종료일자^점검자ID^설치장소명^공급처명^제조회사명^serialno^old수리전환여부^물품구분^사용부서^점검자명^담당자ID^예산년도^예산계정^연구과제^연구과제명^caption1^caption2^caption3^4^R1^R2^R3^주기" colsep="^" colwidth="30, 68, 70, 35, 60, 100, 198, 95, 100, 100,100, 100, 100, 100, 111, 100, 100, 100, 100, 109, 100, 100, 100, 100, 138, 100, 100, 100, 100, 100, 116, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="20" style="left:0px; top:120px; width:780px; height:610px; ">
  807. <col checkvalue="Y,N" ref="select" type="checkbox"/>
  808. <col disabled="true" ref="prvnchkprcsstat" type="combo" style="text-align:left; ">
  809. <choices>
  810. <itemset nodeset="/root/init/prvnchkprcsstat_grid">
  811. <label ref="label"/>
  812. <value ref="value"/>
  813. </itemset>
  814. </choices>
  815. </col>
  816. <col ref="prvnchkdd" format="yyyy-mm-dd" style="text-align:center; "/>
  817. <col ref="acptno" visibility="visible" style="text-align:center; "/>
  818. <col disabled="true" ref="mngtgrade" type="combo" style="text-align:center; ">
  819. <choices>
  820. <itemset>
  821. <label/>
  822. <value/>
  823. </itemset>
  824. </choices>
  825. </col>
  826. <col ref="fixasetcd" style="text-align:left; "/>
  827. <col ref="goodflagengnm"/>
  828. <col ref="goodspec"/>
  829. <col ref="mngtdeptnm"/>
  830. <col ref="installplcenm"/>
  831. <col ref="tempmngtdeptnm"/>
  832. <col ref="goodmodel" visibility="hidden"/>
  833. <col ref="acptpsnnm" style="text-align:center; "/>
  834. <col ref="medelectacptyn" visibility="hidden"/>
  835. <col ref="medelectacptpsnid" visibility="hidden"/>
  836. <col ref="usedeprtmangrcnfm" visibility="hidden"/>
  837. <col ref="rpircvrtyn" visibility="hidden"/>
  838. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
  839. <col ref="reqno" visibility="hidden"/>
  840. <col ref="prvnchkprcsstat" visibility="hidden"/>
  841. <col ref="sanctyn" visibility="hidden"/>
  842. <col ref="sanctdd" visibility="hidden" format="yyyy-mm-dd"/>
  843. <col ref="instcd" visibility="hidden"/>
  844. <col ref="vischk" visibility="hidden"/>
  845. <col ref="viscmt" visibility="hidden"/>
  846. <col ref="pwrchk" visibility="hidden"/>
  847. <col ref="pwrcmt" visibility="hidden"/>
  848. <col ref="syschk" visibility="hidden"/>
  849. <col ref="syscmt" visibility="hidden"/>
  850. <col ref="clnchk" visibility="hidden"/>
  851. <col ref="clncmt" visibility="hidden"/>
  852. <col ref="itslfchkyn" visibility="hidden"/>
  853. <col ref="acsrsuseyn" visibility="hidden"/>
  854. <col ref="todd" visibility="hidden" format="yyyy-mm-dd"/>
  855. <col ref="chkpsnid" visibility="hidden"/>
  856. <col ref="installplcenm" visibility="hidden"/>
  857. <col ref="suplplcenm" visibility="hidden"/>
  858. <col ref="prodcmpynm" visibility="hidden"/>
  859. <col ref="mngtno" visibility="hidden"/>
  860. <col ref="prerpircvrtyn" visibility="hidden"/>
  861. <col ref="goodflag" visibility="hidden"/>
  862. <col ref="mngtdeptcd" visibility="hidden"/>
  863. <col ref="chkpsnnm" visibility="hidden"/>
  864. <col ref="acptpsnid" visibility="hidden"/>
  865. <col ref="bugtyy" visibility="hidden"/>
  866. <col ref="bugtcd" visibility="hidden"/>
  867. <col ref="stdysubjno" visibility="hidden"/>
  868. <col ref="stdysubjnm" visibility="hidden"/>
  869. <col ref="bizscrnid" visibility="hidden"/>
  870. <col ref="attfilenm" visibility="hidden"/>
  871. <col ref="attfilepathnm" visibility="hidden"/>
  872. <col ref="tempmngtdeptcd" visibility="hidden"/>
  873. <col ref="r1"/>
  874. <col ref="r2"/>
  875. <col ref="r3"/>
  876. <col ref="chkprid"/>
  877. <script type="javascript" ev:event="onaftersort">
  878. <![CDATA[
  879. grd_rfchprvnlist.gridToInstance();
  880. ]]>
  881. </script>
  882. <script type="javascript" ev:event="onrowchanged">
  883. <![CDATA[
  884. var setValue = true;
  885. if( grd_rfchprvnlist.rows >= grd_rfchprvnlist.fixedRows )
  886. {
  887. model.resetInstanceNode("/root/main/control/rfchprvnlist");
  888. // *********** 조회된 grid에서 한건을 선택하면 그 선택한 row의 컬럼값들을 root/main/contro/rfchprvnlist 쪽으로 옮겨놓는다 ********
  889. model.copyNode("/root/main/control/rfchprvnlist" ,grd_rfchprvnlist.nodeset + "["+ (grd_rfchprvnlist.row-grd_rfchprvnlist.fixedrows+1) + "]");
  890. if(grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("prvnchkprcsstat"))=="1"
  891. || grd_rfchprvnlist.valueMatrix(grd_rfchprvnlist.row, grd_rfchprvnlist.colRef("prvnchkprcsstat"))=="2" )
  892. {
  893. setValue = false;
  894. }
  895. }
  896. fAllControlDisabled(setValue);
  897. grp_detail.refresh();
  898. ]]>
  899. </script>
  900. <script type="javascript" ev:event="xforms-value-changed">
  901. <![CDATA[
  902. if (grd_rfchprvnlist.col == grd_rfchprvnlist.colRef("select"))
  903. {
  904. }
  905. ]]>
  906. </script>
  907. </datagrid>
  908. </group>
  909. </xhtml:body>
  910. </xhtml:html>