SMRFE02200_재물조사(비품답사).xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <list>
  11. <fixtrscnfminfo>
  12. <fixtrscnfmlist/>
  13. </fixtrscnfminfo>
  14. <bcfixtrsinfo>
  15. <bcfixtrslist>
  16. <chk/>
  17. <inptflag/>
  18. <rowno/>
  19. <execyy/>
  20. <goodflag/>
  21. <instcd/>
  22. <usedeptcd/>
  23. <usedeptnm/>
  24. <fixasetcd/>
  25. <seqno/>
  26. <goodflagengnm/>
  27. <goodmodel/>
  28. <possndd/>
  29. <suplplcenm/>
  30. <prodcmpynm/>
  31. <orginsprst/>
  32. <possndeptcd/>
  33. <possndeptnm/>
  34. <mvflag/>
  35. <cmt/>
  36. </bcfixtrslist>
  37. </bcfixtrsinfo>
  38. <bcfixtrstempinfo>
  39. <bcfixtrsinfotemplist/>
  40. </bcfixtrstempinfo>
  41. </list>
  42. </main>
  43. <send>
  44. <search>
  45. <instcd/>
  46. <goodflag/>
  47. <usedeptcd/>
  48. <usedeptnm/>
  49. <fixasetcd/>
  50. <goodflagengnm/>
  51. <infoflag>M</infoflag>
  52. </search>
  53. <fixtrscnfmlist/>
  54. <savetype/>
  55. <barcdinfo>
  56. <instcd/>
  57. <fixasetcd/>
  58. <goodflag/>
  59. </barcdinfo>
  60. <bcfixtrslist/>
  61. </send>
  62. <init>
  63. </init>
  64. <temp/>
  65. </root>
  66. </instance>
  67. <submission id="TRRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/fixtrscnfminfo"/>
  68. <submission id="TRRFE02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/barcdinfo" resultref="/root/main/list/bcfixtrstempinfo"/>
  69. <submission id="TXRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  70. <submission id="TXRFE02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  71. </model>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. //화면 Control을 초기화한다
  75. fInitialize();
  76. ]]>
  77. </script>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  83. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  84. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  85. <script type="javascript">
  86. <![CDATA[
  87. function fInitialize()
  88. {
  89. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  90. misfComboComCdList('Z0007', cmb_instcd);
  91. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  92. model.setValue(ipt_usedeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  93. model.setValue(ipt_usedeptnm.attribute("ref"), getUserInfo("dutplcenm"));
  94. model.removeNodeset("/root/main/list/fixtrscnfminfo");
  95. model.removeNodeset("/root/main/list/bcfixtrsinfo");
  96. model.refresh();
  97. }
  98. function fCheckSaveData()
  99. {
  100. if(model.getValue(ipt_usedeptcd.attribute("ref")).length== 0 )
  101. {
  102. messageBox("사용부서를" ,"C002");
  103. model.setFocus("ipt_usedeptcd");
  104. return false;
  105. }
  106. }
  107. ]]>
  108. </script>
  109. </xhtml:head>
  110. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  111. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  112. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">재물조사(비품답사)</caption>
  113. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  114. </group>
  115. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  116. <line id="line1" class="line_1" style="x1:0px; y1:107px; x2:1194px; y2:107px; "/>
  117. <caption id="caption21" class="tit_2" style="left:5px; top:91px; width:143px; height:13px; ">비품 답사(의료 장비)</caption>
  118. <datagrid id="grd_fixtrscnfmlist" nodeset="/root/main/list/fixtrscnfminfo/fixtrscnfmlist" visibility="visible" caption="입력^조회 방식^(고정자산) 순번^순번^실시년도^물품구분^기관코드^사용부서코드^자산코드^장비명^모델명^구입일자^거래처^제조원^실사결과^현보유부서코드^현보유부서명^이동^비고" colsep="^" colwidth="45, 73, 99, 49, 80, 69, 80, 80, 98, 192, 88, 80, 94, 119, 69, 100, 149, 46, 166" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:114px; width:1194px; height:352px; font-weight:normal; text-align:center; ">
  119. <col checkvalue="Y,N" ref="chk" type="checkbox" visibility="visible" style="text-align:center; "/>
  120. <col ref="inptflag" visibility="hidden"/>
  121. <col ref="seqno" visibility="hidden" style="text-align:center; "/>
  122. <col ref="rowno" visibility="visible" style="text-align:center; "/>
  123. <col ref="execyy" visibility="hidden" style="text-align:center; "/>
  124. <col ref="goodflag" type="combo">
  125. <choices>
  126. <item>
  127. <label>의료장비</label>
  128. <value>E</value>
  129. </item>
  130. <item>
  131. <label>일반비품</label>
  132. <value>G</value>
  133. </item>
  134. </choices>
  135. </col>
  136. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  137. <col ref="usedeptcd" visibility="hidden" style="text-align:center; "/>
  138. <col ref="fixasetcd" style="text-align:center; "/>
  139. <col ref="goodflagengnm" style="text-align:left; padding-left:10; "/>
  140. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  141. <col ref="possndd" format="yyyy/mm/dd" style="text-align:center; "/>
  142. <col ref="suplplcenm" style="text-align:left; padding-left:10; "/>
  143. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  144. <col checkvalue="Y,N" ref="orginsprst" type="checkbox" style="text-align:left; "/>
  145. <col ref="possndeptcd" type="inputbutton" style="text-align:center; "/>
  146. <col ref="possndeptnm" style="text-align:left; padding-left:10; "/>
  147. <col checkvalue="Y,N" ref="mvflag" type="checkbox" style="text-align:left; "/>
  148. <col ref="cmt" type="input" style="text-align:left; padding-left:10; "/>
  149. <script type="javascript" ev:event="onclick">
  150. <![CDATA[
  151. var orginsprst = grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("orginsprst"));
  152. var inptflag = grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("inptflag"));
  153. var chk = grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("chk"));
  154. if ( grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("orginsprst")
  155. && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("possndeptcd")
  156. && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("mvflag")
  157. && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("cmt")
  158. && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("chk") ){
  159. return;
  160. }
  161. if (inptflag == "R"){
  162. if (grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("chk")){
  163. grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 0;
  164. messageBox("미입력된 건이므로 수정" ,"E001");
  165. grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("orginsprst")) = "N";
  166. grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("mvflag")) = "N";
  167. }
  168. if (chk == "Y"){
  169. grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 1;
  170. }else{
  171. grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 0;
  172. }
  173. return;
  174. }else{
  175. if (grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("chk")){
  176. grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("chk")) = "N";
  177. grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 0;
  178. }
  179. }
  180. //title click시 접근 자체를 금지
  181. if (grd_fixtrscnfmlist.row == grd_fixtrscnfmlist.fixedRows-1){
  182. return;
  183. }
  184. //항목이 이동 및 현보유부서코드 아닌 경우 접근 금지.
  185. if (!( grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("mvflag")
  186. || grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("possndeptcd"))){
  187. return;
  188. }
  189. //이동 처리 관련 로직
  190. if (grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("mvflag")){
  191. if (orginsprst == "Y"){
  192. grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("mvflag")) = "N";
  193. grd_fixtrscnfmlist.rebuild();
  194. messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
  195. return;
  196. }
  197. if (grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptcd")).length == 0){
  198. grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("mvflag")) = "N";
  199. grd_fixtrscnfmlist.rebuild();
  200. messageBox("현사용부서를" ,"C001");
  201. return;
  202. }
  203. }
  204. //현보유부서 관련 로직
  205. if (grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("possndeptcd")){
  206. if (orginsprst == "Y"){
  207. messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
  208. return;
  209. }else{
  210. if(grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("possndeptcd")){
  211. //현보유부서코드 버튼을 눌렀을 때
  212. var recv_list = "possndeptcd,possndeptnm";
  213. rpbfOpenDeptCdHelp(grd_fixtrscnfmlist,recv_list, model.getValue("/root/send/search/instcd"), "instcd");
  214. if ( grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("usedeptcd"))
  215. == grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptcd"))){
  216. messageBox("사용부서와 현보유부서가 일치하여 변경할 수","I004");
  217. grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptcd")) = "";
  218. grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptnm")) = "";
  219. return;
  220. }
  221. }
  222. }
  223. grd_fixtrscnfmlist.col = 17;
  224. }
  225. ]]>
  226. </script>
  227. </datagrid>
  228. <caption id="caption1" class="tit_2" style="left:5px; top:485px; width:143px; height:14px; ">바코드 물품 정보</caption>
  229. <line id="line2" class="line_1" style="x1:0px; y1:501px; x2:1194px; y2:501px; "/>
  230. <button id="button2" class="btn2_letter4" style="left:1125px; top:480px; width:64px; height:19px; ">
  231. <caption>엑셀저장</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. var fileName = window.fileDialog ("save", ",", false, "자산변동사항이력List", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  235. if (fileName != "")
  236. {
  237. grd_rfchcgmtlist.saveExcel(fileName);
  238. }
  239. ]]>
  240. </script>
  241. </button>
  242. <button id="btn_deptmove" class="btn2_letter7" style="left:1090px; top:85px; width:97px; height:19px; ">
  243. <caption>부서 이동 실시</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. model.setValue("/root/send/savetype", "M");
  247. var retMes = messageBox("부서 이동을 실시 하시겠습니까?", "Q999");
  248. if ( retMes != 6) {
  249. return;
  250. }
  251. var updtdata = getGridUpdateData(grd_fixtrscnfmlist);
  252. if (updtdata == "")
  253. {
  254. messageBox("변경된 데이터가","I004");
  255. return;
  256. }
  257. model.setValue("/root/send/fixtrscnfmlist", updtdata);
  258. misfSave("TXRFE02201");
  259. btn_search.dispatch("DOMActivate");
  260. model.refresh();
  261. ]]>
  262. </script>
  263. </button>
  264. <group id="grp_sea" style="left:0px; top:17px; width:1195px; height:63px; vertical-align:top; ">
  265. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  266. <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
  267. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  268. <caption>조회</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. if(!isRequiredControls("cmb_instcd")) return;
  272. if(!isRequiredControls("cmb_goodflag")) return;
  273. if(!isRequiredControls("ipt_usedeptcd")) return;
  274. submit("TRRFE02201");
  275. for(i=grd_fixtrscnfmlist.fixedRows; i < grd_fixtrscnfmlist.rows;i++){
  276. var jobtype = grd_fixtrscnfmlist.valueMatrix(i,grd_fixtrscnfmlist.colRef("inptflag"));
  277. if( jobtype == 'X'){
  278. grd_fixtrscnfmlist.rowStyle(i, "all", "background-color") = "white";
  279. }else{
  280. grd_fixtrscnfmlist.rowStyle(i, "all", "background-color") ="#ffff99";
  281. }
  282. }
  283. model.refresh();
  284. ]]>
  285. </script>
  286. </button>
  287. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:125px; top:10px; width:170px; height:19px; ">
  288. <choices>
  289. <itemset nodeset="/root/main/init">
  290. <label ref="cnstnm"/>
  291. <value ref="cnstcd"/>
  292. </itemset>
  293. </choices>
  294. </select1>
  295. <caption id="cap_instcd" class="search_name" style="left:30px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  296. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:125px; top:36px; width:170px; height:19px; ">
  297. <choices>
  298. <itemset nodeset="/root/init/goodflag">
  299. <label ref="label"/>
  300. <value ref="value"/>
  301. </itemset>
  302. </choices>
  303. </select1>
  304. <caption id="cap_goodflag" class="search_name" style="left:30px; top:35px; width:86px; height:17px; ">물품구분 :</caption>
  305. <caption id="cap_usedeptcd" class="search_name" style="left:500px; top:10px; width:89px; height:17px; ">사용부서 :</caption>
  306. <input id="ipt_usedeptnm" ref="/root/send/search/usedeptnm" class="input_search" style="left:758px; top:9px; width:232px; height:19px; text-align:center; ">
  307. <script type="javascript" ev:event="xforms-value-changed">
  308. <![CDATA[
  309. if(ipt_usedeptnm.value == ""){
  310. ipt_usedeptcd.value = "";
  311. }else {
  312. misfValidationCheck("02", "", "usedeptcd,usedeptnm");
  313. }
  314. model.refresh();
  315. ]]>
  316. </script>
  317. </input>
  318. <button id="btn_deptcd" class="icon_search" style="left:735px; top:12px; width:16px; height:16px; ">
  319. <caption/>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. //misfOpenPopUpList("02", ipt_usedeptcd,"","usedeptcd,usedeptnm");
  323. var recv_list = "usedeptcd,usedeptnm";
  324. misfOpenPopUpList("02", ipt_usedeptcd,"", recv_list, model.getValue("/root/send/instcd"), "instcd") ;
  325. //misfOpenPopUpList("02", ipt_usedeptcd,"", recv_list, cmb_instcd.value, "instcd") ;
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </button>
  330. <input id="ipt_usedeptcd" ref="/root/send/search/usedeptcd" class="input_search" style="left:595px; top:9px; width:135px; height:19px; text-align:center; ">
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. if(ipt_usedeptcd.value == ""){
  334. ipt_usedeptnm.value = "";
  335. }else {
  336. misfValidationCheck("02", "", "usedeptcd,usedeptnm");
  337. }
  338. model.refresh();
  339. ]]>
  340. </script>
  341. </input>
  342. <button id="btn_fixasetcd" class="icon_search" style="left:735px; top:37px; width:16px; height:16px; ">
  343. <caption/>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. // ,cntrdeptcd,installplcenm,possnamt,goodspec,mngtno,possndd,installplcecd,depthngnm
  347. var temp = "fixasetcd,goodflagengnm";
  348. rszfOpenPopUpListByWndName(ipt_fixasetcd,"", temp, "SPRSD00240","instcd,goodflag","cmb_instcd,cmb_goodflag");
  349. model.refresh();
  350. ]]>
  351. </script>
  352. </button>
  353. <input id="ipt_fixasetnm" ref="/root/send/search/goodflagengnm" class="input_search" style="left:758px; top:36px; width:232px; height:19px; text-align:left; padding-left:10; ">
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. if(ipt_fixasetnm.value != "")
  357. {
  358. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  359. "goodflagengnm," + cmb_instcd.value + "," + ipt_fixasetnm.value, "", "fixasetcd,goodflagengnm",
  360. ipt_fixasetnm, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
  361. }else{
  362. ipt_fixasetcd.value = "";
  363. }
  364. model.refresh();
  365. ]]>
  366. </script>
  367. </input>
  368. <input id="ipt_fixasetcd" ref="/root/send/search/fixasetcd" class="input_search" style="left:595px; top:36px; width:135px; height:19px; text-align:center; ">
  369. <script type="javascript" ev:event="xforms-value-changed">
  370. <![CDATA[
  371. if(ipt_fixasetcd.value != "")
  372. {
  373. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
  374. "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "", "fixasetcd,goodflagengnm",
  375. ipt_fixasetcd, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
  376. }else{
  377. ipt_fixasetnm.value = "";
  378. }
  379. model.refresh();
  380. ]]>
  381. </script>
  382. </input>
  383. <caption id="cap_fixasetcd" class="search_name" style="left:500px; top:36px; width:89px; height:17px; ">자산코드 :</caption>
  384. </group>
  385. <button id="btn_excel" class="btn2_letter2" style="left:1040px; top:85px; width:42px; height:19px; ">
  386. <caption>저장</caption>
  387. <script type="javascript" ev:event="DOMActivate">
  388. <![CDATA[
  389. var chk;
  390. for (var i=grd_fixtrscnfmlist.fixedRows; i<grd_fixtrscnfmlist.rows; i++){
  391. chk = grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("chk"));
  392. inptflag = grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("inptflag"));
  393. if (chk == "Y" && inptflag == "R"){
  394. grd_fixtrscnfmlist.rowStatus(i) = 1;
  395. }
  396. }
  397. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  398. if ( retMes != 6) {
  399. return;
  400. }
  401. model.setValue("/root/send/savetype", "S");
  402. for (i=grd_fixtrscnfmlist.fixedRows;i<grd_fixtrscnfmlist.rows;i++){
  403. if ( grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("inptflag")) == "R"
  404. && grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("chk")) == "Y" ){
  405. grd_fixtrscnfmlist.rowStatus(i) = 1
  406. }
  407. }
  408. var updtdata = getGridUpdateData(grd_fixtrscnfmlist);
  409. if (updtdata == "")
  410. {
  411. messageBox("변경된 데이터가","I004");
  412. return;
  413. }
  414. model.setValue("/root/send/fixtrscnfmlist", updtdata);
  415. misfSave("TXRFE02201");
  416. btn_search.dispatch("DOMActivate");
  417. model.refresh();
  418. ]]>
  419. </script>
  420. </button>
  421. <input id="ipt_fixasetcd_barcd" ref="/root/send/barcdinfo/fixasetcd" style="left:135px; top:480px; width:120px; height:19px; "/>
  422. <button id="btn_input" class="btn2_letter2" style="left:260px; top:480px; width:42px; height:19px; ">
  423. <caption>입력</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. if(!isRequiredControls("cmb_instcd")) return;
  427. if(!isRequiredControls("cmb_goodflag")) return;
  428. if(!isRequiredControls("ipt_usedeptcd")) return;
  429. model.setValue("/root/send/barcdinfo/instcd", model.getValue(cmb_instcd.attribute("ref")));
  430. model.setValue("/root/send/barcdinfo/goodflag", model.getValue(cmb_goodflag.attribute("ref")));
  431. for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
  432. if ( grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("instcd")) == model.getValue(cmb_instcd.attribute("ref"))
  433. && grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("fixasetcd")) == model.getValue(ipt_fixasetcd_barcd.attribute("ref"))){
  434. messageBox("이미 입력된 데이타 ","I009");
  435. return;
  436. }
  437. }
  438. submit("TRRFE02202");
  439. if (model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/fixasetcd").length == 0){
  440. messageBox("존재하지 않는 데이타 ","I009");
  441. return;
  442. }
  443. grd_bcfixtrsinfo.addRow();
  444. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("chk")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/chk");
  445. if (grd_bcfixtrsinfo.row == 1){
  446. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("rowno")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/rowno");
  447. }else{
  448. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("rowno")) = parseInt(grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row-1, grd_bcfixtrsinfo.colRef("rowno")))+1;
  449. }
  450. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("execyy")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/execyy");
  451. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("goodflag")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/goodflag");
  452. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("instcd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/instcd");
  453. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("usedeptcd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/usedeptcd");
  454. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("usedeptnm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/usedeptnm");
  455. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("fixasetcd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/fixasetcd");
  456. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("goodflagengnm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/goodflagengnm");
  457. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("goodmodel")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/goodmodel");
  458. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("possndd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/possndd");
  459. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("suplplcenm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/suplplcenm");
  460. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("prodcmpynm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/prodcmpynm");
  461. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("orginsprst")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/orginsprst");
  462. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("mvflag")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/mvflag");
  463. if (grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("usedeptcd")) == model.getValue("/root/send/search/usedeptcd")){
  464. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("possndeptcd")) = "";
  465. }else{
  466. grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("possndeptcd")) = model.getValue("/root/send/search/usedeptcd");
  467. }
  468. model.refresh();
  469. ]]>
  470. </script>
  471. </button>
  472. <button id="btn_exec" class="btn2_letter5" style="left:1045px; top:480px; width:75px; height:19px; ">
  473. <caption>실사 적용</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
  477. if (grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("usedeptcd")) == model.getValue(ipt_usedeptcd.attribute("ref"))){
  478. grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("orginsprst")) = "Y";
  479. grd_bcfixtrsinfo.rowStatus(i) = 2;
  480. }else{
  481. grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("orginsprst")) = "N";
  482. grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("possndeptcd")) = model.getValue(ipt_usedeptcd.attribute("ref"));
  483. grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("mvflag")) = "Y";
  484. grd_bcfixtrsinfo.rowStatus(i) = 1;
  485. }
  486. }
  487. model.refresh();
  488. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  489. if ( retMes != 6) {
  490. return;
  491. }
  492. var updtdata = getGridUpdateData(grd_bcfixtrsinfo);
  493. if (updtdata == "")
  494. {
  495. messageBox("변경된 데이터가","I004");
  496. return;
  497. }
  498. model.setValue("/root/send/bcfixtrslist", updtdata);
  499. misfSave("TXRFE02202");
  500. for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
  501. grd_bcfixtrsinfo.deleteRow(i);
  502. }
  503. btn_search.dispatch("DOMActivate");
  504. model.refresh();
  505. ]]>
  506. </script>
  507. </button>
  508. <button id="btn_del" class="btn2_letter2" style="left:305px; top:480px; width:42px; height:19px; ">
  509. <caption>삭제</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. var chk, count=0;
  513. for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
  514. chk = grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("chk"));
  515. if (chk == "Y"){
  516. grd_bcfixtrsinfo.deleteRow(i);
  517. }
  518. ++count;
  519. grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("rowno")) = count;
  520. }
  521. model.refresh();
  522. ]]>
  523. </script>
  524. </button>
  525. <button id="btn_fixasetcd_barcd" class="btn2_letter6" style="left:350px; top:480px; width:86px; height:19px; ">
  526. <caption>자산코드 조회</caption>
  527. <script type="javascript" ev:event="DOMActivate">
  528. <![CDATA[
  529. var temp = "fixasetcd,goodflagengnm";
  530. if(!isRequiredControls("cmb_instcd")) return;
  531. if(!isRequiredControls("cmb_goodflag")) return;
  532. if(!isRequiredControls("ipt_usedeptcd")) return;
  533. rszfOpenPopUpListByWndName(ipt_fixasetcd_barcd,"", temp, "SPRSD00240","instcd,goodflag","cmb_instcd,cmb_goodflag");
  534. model.refresh();
  535. ]]>
  536. </script>
  537. </button>
  538. <datagrid id="grd_bcfixtrsinfo" nodeset="/root/main/list/bcfixtrsinfo/bcfixtrslist" caption="삭제^순번^실시년도^기관코드^물품코드^실사결과^현보유 부서코드^이동^부서 코드^부서명^장비코드^장비명^모델^구입일자^거래처^제조원" colsep="^" colwidth="40, 51, 100, 100, 100, 100, 100, 50, 100, 100, 100, 241, 120, 110, 164, 83" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:507px; width:1194px; height:230px; ">
  539. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  540. <col ref="rowno" format="yyyy-mm-dd" style="text-align:center; "/>
  541. <col ref="execyy" visibility="hidden"/>
  542. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  543. <col ref="goodflag" visibility="hidden"/>
  544. <col ref="orginsprst" visibility="hidden"/>
  545. <col ref="possndeptcd" visibility="hidden"/>
  546. <col ref="mvflag" visibility="hidden"/>
  547. <col ref="usedeptcd" style="text-align:center; "/>
  548. <col ref="usedeptnm" style="text-align:left; padding-left:10; "/>
  549. <col ref="fixasetcd" style="text-align:center; "/>
  550. <col ref="goodflagengnm" style="text-align:left; padding-left:10; "/>
  551. <col disabled="true" ref="goodmodel" _key="true" style="text-align:left; padding-left:10; "/>
  552. <col ref="possndd" format="yyyy/mm/dd" style="text-align:center; "/>
  553. <col disabled="true" ref="suplplcenm" style="text-align:left; padding-left:10; "/>
  554. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  555. </datagrid>
  556. </group>
  557. <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  558. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  559. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  560. <caption>초기화</caption>
  561. <script type="javascript" ev:event="DOMActivate">
  562. <![CDATA[
  563. fInitialize();
  564. ]]>
  565. </script>
  566. </button>
  567. </group>
  568. </xhtml:body>
  569. </xhtml:html>