SMRSC05300_물품코드등록.xrw 107 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422
  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. <good>
  12. <goodlist/>
  13. </good>
  14. <gooddet>
  15. <gooddetlist/>
  16. <goodconstlist/>
  17. <goodinstlist/>
  18. <excelgooddetlist/>
  19. <oldcdinfo/>
  20. <rscdgchglist/>
  21. </gooddet>
  22. </list>
  23. <costhistinfolist>
  24. <appdd/>
  25. <rctpdisburseunitcost/>
  26. <medcarecalcscor/>
  27. <suplplcecd/>
  28. </costhistinfolist>
  29. <item/>
  30. <gooddet>
  31. <gooddetlist/>
  32. </gooddet>
  33. <goodcopy>
  34. <goodlist/>
  35. </goodcopy>
  36. </main>
  37. <send>
  38. <save>
  39. <goodlist/>
  40. <gooddetlist/>
  41. <setautoins>
  42. <setyn>N</setyn>
  43. </setautoins>
  44. </save>
  45. <goodlist>
  46. <goodflag/>
  47. <goodnm/>
  48. <lrgcd/>
  49. <instcd/>
  50. <edicd/>
  51. <goodcd/>
  52. <mdlcd/>
  53. <spec/>
  54. <prodcmpy/>
  55. <smlcd/>
  56. <model/>
  57. <prodcmpynm/>
  58. <instflag/>
  59. <oldcd/>
  60. <nonusegoodview/>
  61. </goodlist>
  62. <gooddetlist>
  63. <goodcd/>
  64. <fromdd/>
  65. <useyn/>
  66. </gooddetlist>
  67. <goodcopy>
  68. <goodflag/>
  69. <lrgcd/>
  70. <mdlcd/>
  71. </goodcopy>
  72. </send>
  73. <init>
  74. <instflag>
  75. <label>기관</label>
  76. <value>Y</value>
  77. <label>전체</label>
  78. <value/>
  79. </instflag>
  80. <goodflag/>
  81. <deliveunit/>
  82. <reqprid/>
  83. <mngtflag/>
  84. <purcflag/>
  85. <instcd/>
  86. <proddrugsetflag/>
  87. <instnm/>
  88. <allsizeyn>
  89. <label>예</label>
  90. <value>Y</value>
  91. <label>아니오</label>
  92. <value>N</value>
  93. </allsizeyn>
  94. <tmpreqflag>
  95. <label>청구가능</label>
  96. <value>Y</value>
  97. <label>청구불가능</label>
  98. <value>N</value>
  99. </tmpreqflag>
  100. <radio2>
  101. <label>신청유</label>
  102. <value>Y</value>
  103. <label>신청무</label>
  104. <value>N</value>
  105. </radio2>
  106. <expnyn>
  107. <label>고가</label>
  108. <value>Y</value>
  109. <label>고가아님</label>
  110. <value>N</value>
  111. </expnyn>
  112. <insuyn>
  113. <label>예</label>
  114. <value>Y</value>
  115. <label>아니오</label>
  116. <value>N</value>
  117. </insuyn>
  118. <nonusegoodview>
  119. <label>포함</label>
  120. <value>Y</value>
  121. <label>제외</label>
  122. <value/>
  123. </nonusegoodview>
  124. </init>
  125. <hidden/>
  126. <temp/>
  127. </root>
  128. </instance>
  129. <script type="javascript" ev:event="xforms-ready">
  130. <![CDATA[
  131. //화면 Control을 초기화한다
  132. fCheckAuth();
  133. fInitialize();
  134. fOpenForm();
  135. ]]>
  136. </script>
  137. <submission id="TRRSC05301" ref="/root/send/goodlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/good"/>
  138. <submission id="TXRSC05302" ref="/root/send/save" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
  139. <submission id="TXRSC05303" ref="/root/main/list/gooddet/gooddetlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp"/>
  140. <submission id="TRRSC05302" ref="/root/send/gooddetlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/gooddet"/>
  141. <submission id="TRRSC05303" ref="/root/send/goodcopy" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/goodcopy"/>
  142. <submission id="TRRSC05306" ref="/root/send/goodlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/gooddet/excelgooddetlist"/>
  143. <submission id="TRRSC03702" ref="/root/send/gooddetlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/gooddet/rscdgchglist"/>
  144. </model>
  145. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  147. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  148. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  151. <script type="javascript">
  152. <![CDATA[
  153. /*
  154. 2008년 1월 9일 from : 송광호.
  155. 보험정보(보험여부 EDI,무신정구분) 을 삭제.
  156. 이유 : 구조상 사용되지 않는 부분이라 황병현과장님의 요청으로 컨트롤 삭제.
  157. */
  158. ////........
  159. // 화면이 다른 폼에 의해 불려졌을때 실행!!
  160. function fOpenForm()
  161. {
  162. if(checkOpener())
  163. {
  164. if(opener.window.javascript.getScreenID() == "SMPIC00100")
  165. {
  166. //입력및 저장관련 컨트롤 설정.
  167. fOpenFormControlSetting(true);
  168. model.makeNode("/root/temp/good");
  169. model.copyNode("/root/temp/good", opener.root.main.item1.mchrginfo);
  170. model.setValue("/root/send/goodlist/goodcd", model.getValue("/root/temp/good/calcscorcd"));
  171. //팝업으로 띄워졌을경우 물품구분 콤보에 "전체" Item을 추가
  172. //품목세부사항의 단위 콤보를 설정하기 위해 넘어온 goodcd의 물품구분을 가져와서 설정함.
  173. if(model.getValue("/root/send/goodlist/goodcd") != "")
  174. {
  175. addComboItem("cmb_goodflag_search", "", "", "above");
  176. var goodcdflag = model.getValue("/root/send/goodlist/goodcd");
  177. var flag = goodcdflag.substr(0,1);
  178. cmb_goodflag_search.value = flag;
  179. rszfComboUnitList (cmb_prcpunit, model.getValue(opt_instcd.attribute("ref")), model.getValue(cmb_goodflag_search.attribute("ref")));
  180. misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
  181. misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
  182. //cmb_goodflag_search.select(0);
  183. btn_search.dispatch("DOMActivate");
  184. }
  185. }else if(opener.window.javascript.getScreenID() == "SMRSI02600"){ // 평화드림 월정산에서 로드했을시....
  186. if(model.getValue("/root/temp/goodcd") != "")
  187. {
  188. cmb_goodflag_search.value = model.getValue("/root/temp/goodflag");
  189. ipt_goodcd_search.value = model.getValue("/root/temp/goodcd");
  190. btn_search.dispatch("DOMActivate");
  191. }
  192. }
  193. }
  194. }
  195. function fOpenFormControlSetting(fBool)
  196. {
  197. btn_save.disabled = fBool;
  198. btn_sgsave.disabled = fBool;
  199. button2.disabled = fBool;
  200. btn_choidel.disabled = fBool;
  201. btn_insert.disabled = fBool;
  202. btn_photinfo.disabled = fBool;
  203. btn_goodcdcopy.disabled = fBool;
  204. btn_useinstinfo.disabled = fBool;
  205. btn_allsizergst.disabled = fBool;
  206. btn_goodsetrgst.disabled = fBool;
  207. }
  208. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  209. function fInitialize() {
  210. model.resetInstanceNode("/root/send");
  211. model.setValue("/root/send/save/setautoins/setyn","N");
  212. //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  213. rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
  214. misfComboCopyItemSet(cmb_goodflag, "", cmb_goodflag_search, ""); //물품구분
  215. //rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y");
  216. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"1","P" );
  217. //[2007.12.08 HBH : cmb_mngtflag (R0094)삭제.
  218. misfComboComCdListMulti("R0092,R0069,R0068,R0047,R0035,R0106,R0093,R0095,R0110,R0111,R0107","cmb_reqmthd,cmb_stocmngtflag,cmb_proddrugsetflag,cmb_curncyunit,cmb_prodplce,cmb_plceordqtycretflag,cmb_reqprid,cmb_conflag,cmb_setplceordflag,cmb_purcflag,cmb_plceordbase");
  219. //기관코드 읽어오는 부분 넣기
  220. var instcd = getUserInfo("dutplceinstcd");
  221. var instnm = getUserInfo("dutplceinstnm");
  222. if(instcd.length > 0)model.setValue(opt_instcd.attribute("ref"), instcd);
  223. if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
  224. //물품구분일 경우 첫번째 index 자동 설정
  225. if(cmb_goodflag_search.length> 0) cmb_goodflag_search.selectedindex= 0;
  226. misfGridInit(grd_goodlist);
  227. misfGridInit(grd_gooddetlist);
  228. misfGridInit(grd_costhistinfo);
  229. misfGridInit(grd_instinfo);
  230. misfGridInit(grd_oldcdinfo);
  231. misfGridInit(grd_rscdgchglist);
  232. misfGridIUD(grd_gooddetlist, "A");
  233. rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(cmb_goodflag_search.attribute("ref")));
  234. misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
  235. misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
  236. // 대분류 코드 콤보 설정.
  237. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "", "Y");
  238. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  239. model.setValue(grd_gooddetlist.nodeset + "/goodflag", model.getValue(cmb_goodflag_search.attribute("ref")));
  240. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  241. misfMsterDetailSet(grd_goodlist,null, "TRRSC05301" ,"Y");
  242. misfMsterDetailSet(grd_gooddetlist,grd_goodlist, "TRRSC05302" ,"Y");
  243. misfMsterDetailSet(grd_costhistinfo,grd_goodlist, "TRRSC05302" ,"N");
  244. misfMsterDetailSet(grd_instinfo,grd_goodlist, "TRRSC05302" ,"N");
  245. misfMsterDetailSet(grd_oldcdinfo,grd_goodlist, "TRRSC05302" ,"N");
  246. misfMsterDetailSet(grd_rscdgchglist,grd_goodlist, "TRRSC03702" ,"N");
  247. // 물품구분별 권한
  248. fSetGoodFlagAuth();
  249. //rbo_instflag.select(1);
  250. model.setValue(rbo_instflag.attribute("ref"),"Y");
  251. grd_goodlist.explorerbar = "sortshow";
  252. model.setFocus("ipt_goodcd");
  253. model.refresh();
  254. }
  255. // 화면 전체 조회
  256. function fRetrGoodList(nodecopy) {
  257. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  258. misfMsterDetailRetrieve();
  259. //fAfterRetrGoodList();
  260. if(nodecopy == true)fAfterRetrGoodList();
  261. else if( nodecopy == false && grd_gooddetlist.rows - grd_gooddetlist.fixedRows== 0 )btn_insert.dispatch("DOMActivate");
  262. // 중분류/소분류 combo setting
  263. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  264. if (grd_gooddetlist.valueMatrix(grd_gooddetlist.row,grd_gooddetlist.colRef("mdlcd")).length > 0 )
  265. {
  266. rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  267. }
  268. if (grd_gooddetlist.valueMatrix(grd_gooddetlist.row,grd_gooddetlist.colRef("smlcd")).length > 0 )
  269. {
  270. rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  271. rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S", "", "Y");
  272. }
  273. }
  274. // 물품구분별 권한체크.
  275. function fSetGoodFlagAuth()
  276. {
  277. btn_save.disabled=true;
  278. btn_sgsave.disabled=true;
  279. rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , cmb_goodflag_search.value, getUserInfo("userid"), "%");
  280. if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")
  281. {
  282. btn_save.disabled=false;
  283. btn_sgsave.disabled=false;
  284. }
  285. }
  286. function fCheckSaveData()
  287. {
  288. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  289. {
  290. messageBox("물품코드는" ,"I003");
  291. model.setFocus("ipt_goodcd");
  292. return false;
  293. }
  294. if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
  295. {
  296. messageBox("물품코드명은" ,"I003");
  297. model.setFocus("ipt_goodnm");
  298. return false;
  299. }
  300. if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 )
  301. {
  302. messageBox("대분류코드는" ,"I003");
  303. model.setFocus("cmb_lrgcd");
  304. return false;
  305. }
  306. if(model.getValue(ipt_winacnt.attribute("ref")).length== 0 )
  307. {
  308. messageBox("비용계정은" ,"I003");
  309. model.setFocus("ipt_winacnt");
  310. return false;
  311. }
  312. if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length== 0 )
  313. {
  314. messageBox("주관리부서는" ,"I003");
  315. model.setFocus("ipt_mngtdeptcd");
  316. return false;
  317. }
  318. if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
  319. {
  320. messageBox("청구방법은" ,"I003");
  321. model.setFocus("cmb_reqmthd");
  322. return false;
  323. }
  324. if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
  325. {
  326. messageBox("구매단위은" ,"I003");
  327. model.setFocus("cmb_purcunit");
  328. return false;
  329. }
  330. if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
  331. {
  332. messageBox("환산수량은" ,"I003");
  333. model.setFocus("ipt_exchqty");
  334. return false;
  335. }
  336. if(model.getValue(cmb_deliveunit.attribute("ref")).length== 0 )
  337. {
  338. messageBox("불출단위는" ,"I003");
  339. model.setFocus("cmb_deliveunit");
  340. return false;
  341. }
  342. if(model.getValue(cmb_stocmngtflag.attribute("ref")).length== 0 )
  343. {
  344. messageBox("재고관리기준은" ,"I003");
  345. model.setFocus("cmb_stocmngtflag");
  346. return false;
  347. }
  348. if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
  349. {
  350. messageBox("청구방법은" ,"I003");
  351. model.setFocus("cmb_reqmthd");
  352. return false;
  353. }
  354. if(model.getValue(cmb_purcflag.attribute("ref")).length== 0 )
  355. {
  356. messageBox("구매구분은" ,"I003");
  357. model.setFocus("cmb_purcflag");
  358. return false;
  359. }
  360. if(model.getValue(rdo_insuyn.attribute("ref")).length== 0 )
  361. {
  362. messageBox("수가여부는" ,"I003");
  363. model.setFocus("rdo_insuyn");
  364. return false;
  365. }
  366. if(model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length== 0 )
  367. {
  368. messageBox("주거래처는" ,"I003");
  369. model.setFocus("ipt_maincustlastsuplplce");
  370. return false;
  371. }
  372. if(model.getValue(ipt_suppcustcd.attribute("ref")).length== 0 )
  373. {
  374. messageBox("보조거래처는" ,"I003");
  375. model.setFocus("ipt_suppcustcd");
  376. return false;
  377. }
  378. if(model.getValue(ipt_minexch.attribute("ref")).length== 0 )
  379. {
  380. messageBox("최소청구량은" ,"I003");
  381. model.setFocus("ipt_minexch");
  382. return false;
  383. }
  384. if(model.getValue(cmb_reqprid.attribute("ref")).length== 0 )
  385. {
  386. messageBox("청구주기는" ,"I003");
  387. model.setFocus("cmb_reqprid");
  388. return false;
  389. }
  390. if(model.getValue(rdo_reqflag.attribute("ref")).length== 0 )
  391. {
  392. messageBox("임의청구구분은" ,"I003");
  393. model.setFocus("rdo_reqflag");
  394. return false;
  395. }
  396. if(model.getValue(rdo_allsizeyny.attribute("ref")).length== 0 )
  397. {
  398. messageBox("ALLSIZE 유무는" ,"I003");
  399. model.setFocus("rdo_allsizeyny");
  400. return false;
  401. }
  402. if(model.getValue(cmb_reqflag.attribute("ref")).length== 0 )
  403. {
  404. messageBox("청구구분은" ,"I003");
  405. model.setFocus("cmb_reqflag");
  406. return false;
  407. }
  408. /*
  409. if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
  410. {
  411. messageBox("자산구분은" ,"I003");
  412. model.setFocus("cmb_asetflag");
  413. return false;
  414. }
  415. */
  416. if(model.getValue(chk_reuseyn.attribute("ref")) == "Y" && model.getValue(ipt_divusenvalqty.attribute("ref")) == 0)
  417. {
  418. messageBox("분할사용여부를 선택하신 경우에는 분할사용수치가 " ,"I003");
  419. model.setFocus("ipt_divusenvalqty");
  420. return false;
  421. }
  422. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(ipt_nonusetretresn.attribute("ref")) == 0)
  423. {
  424. messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
  425. model.setFocus("ipt_nonusetretresn");
  426. return false;
  427. }
  428. if(model.getValue(cmb_conflag.attribute("ref")).length > 0 )
  429. {
  430. /*
  431. if(model.getValue(ipt_fromconterm.attribute("ref")).length == 0 )
  432. {
  433. messageBox("계약구분을 선택하신 경우에는 계약시작일자가 " ,"I003");
  434. model.setFocus("ipt_fromconterm");
  435. return false;
  436. }
  437. if(model.getValue(ipt_toconterm.attribute("ref")).length == 0 )
  438. {
  439. messageBox("계약구분을 선택하신 경우에는 계약종료일자가 " ,"I003");
  440. model.setFocus("ipt_toconterm");
  441. return false;
  442. }
  443. model.setFocus("ipt_nonusetretresn");
  444. */
  445. }
  446. else
  447. {
  448. if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 || model.getValue(ipt_toconterm.attribute("ref")).length > 0)
  449. {
  450. messageBox("계약기간을 입력하신 경우에는 계약구분이 " ,"I003");
  451. model.setFocus("cmb_conflag");
  452. return false;
  453. }
  454. }
  455. if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  456. {
  457. messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  458. model.setFocus("ipt_fromconterm");
  459. return false;
  460. }
  461. if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  462. {
  463. messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  464. model.setFocus("ipt_toconterm");
  465. return false;
  466. }
  467. if(model.getValue(cmb_purcflag.attribute("ref")).length > 0 && model.getValue(ipt_lastpurcdd.attribute("ref")) == 0)
  468. {
  469. /*
  470. messageBox("구매구분이 설정되었을 경우에는 최종 구매일자가 " ,"I003");
  471. model.setFocus("cmb_purcflag");
  472. return false;
  473. */
  474. }
  475. return true;
  476. }
  477. function fAfterRetrGoodList()
  478. {
  479. // if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
  480. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  481. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
  482. else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
  483. grp_detail.refresh();
  484. grp_etcgood.refresh();
  485. grd_gooddetlist.row = 1;
  486. model.setFocus("ipt_goodcd");
  487. }
  488. function fCheckAuth() {
  489. btn_search.disabled = !checkAuth("R") ;
  490. btn_save.disabled = !checkAuth("X") ;
  491. //btn_prt.disabled = !checkAuth("P") ;
  492. }
  493. function fSetDataCopy(){
  494. if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
  495. misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
  496. grp_detail.refresh();
  497. }
  498. function fDefaultSetting()
  499. {
  500. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/goodflag" , model.getValue(cmb_goodflag_search.attribute("ref")));
  501. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/goodcd" , "");
  502. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/fromdd" , getCurrentDate());
  503. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/lrgcd" , model.getValue(cmb_lrgcd_search.attribute("ref")));
  504. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/mdlcd" , model.getValue(cmb_mdlcd_search.attribute("ref")));
  505. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/smlcd" , model.getValue(cmb_smlcd_search.attribute("ref")));
  506. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/prodcmpycd" , model.getValue(ipt_prodcmpy_search.attribute("ref")));
  507. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/prodcmpynm" , model.getValue(ipt_prodcmpynm_search.attribute("ref")));
  508. model.setValue(grd_gooddetlist.nodeset + "["+ grd_gooddetlist.row + "]/asetflag", "1");
  509. // model.setValue("/root/main/gooddet/gooddetlist/asetflag" , '1'); // 자산구부 : '1' 재고자산
  510. }
  511. function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
  512. var node1 = instance1.selectNodes(ptarget_node + "/*");
  513. var node2 = instance1.selectNodes(psource_node + "/*");
  514. for (var i = 0; i < node1.length ; i++) {
  515. for (var j = 0; j < node2.length; j++) {
  516. if (node1.item(i).nodeName == node2.item(j).nodeName) {
  517. var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
  518. var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
  519. var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
  520. var copysource = psource_node + "/" + node2.item(j).nodeName;
  521. for (var k = 0; k < nextnode1.length; k++) {
  522. for (var p = 0; p < nextnode2.length; p++) {
  523. if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
  524. if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
  525. model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
  526. }
  527. }
  528. }
  529. }
  530. }
  531. }
  532. return false;
  533. }
  534. function fCheckRetrieveData()
  535. {
  536. if(model.getValue(cmb_goodflag_search.attribute("ref")).length== 0 )
  537. {
  538. if(cmb_goodflag_search.label != "- 전 체 -")
  539. {
  540. messageBox("물품구분을 " ,"C002");
  541. model.setFocus("cmb_goodflag");
  542. return false;
  543. }
  544. }
  545. /*
  546. if(model.getValue(cmb_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
  547. {
  548. messageBox("대분류코드를 " ,"C002");
  549. model.setFocus("cmb_lrgcd_search");
  550. return false;
  551. }
  552. if(model.getValue(ipt_goodcd_search.attribute("ref")).length == 0 && model.getValue(ipt_goodnm_search.attribute("ref")).length < 4)
  553. {
  554. messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
  555. model.setFocus("ipt_goodcd_search");
  556. return false;
  557. }
  558. */
  559. return true;
  560. }
  561. function fInstGoodCdCopy()
  562. {
  563. if(grd_goodlist.rows - grd_goodlist.fixedRows == 0)return;
  564. btn_insert.dispatch("DOMActivate");
  565. model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
  566. model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
  567. model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
  568. model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
  569. model.SetValue(ipt_goodspec.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodspec"));
  570. model.SetValue(ipt_goodmodel.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodmodel"));
  571. model.SetValue(cmb_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
  572. cmb_lrgcd.dispatch("xforms-value-changed"); // 선택한 대분류에 대한 중분류 값을 얻기 위한 action
  573. model.SetValue(cmb_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
  574. model.SetValue(cmb_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
  575. model.refresh();
  576. model.setFocus("ipt_winacnt");
  577. }
  578. function fGoodCdCopy()
  579. {
  580. if(model.getValue(cmb_goodflag_search.attribute("ref")).length== 0 )
  581. {
  582. messageBox("물품구분을 " ,"C002");
  583. model.setFocus("cmb_goodflag");
  584. return false;
  585. }
  586. if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 )
  587. {
  588. messageBox("대분류코드를 " ,"C002");
  589. model.setFocus("cmb_lrgcd");
  590. return false;
  591. }
  592. if(model.getValue(cmb_mdlcd.attribute("ref")).length== 0 )
  593. {
  594. messageBox("중분류코드를 " ,"C002");
  595. model.setFocus("cmb_mdlcd");
  596. return false;
  597. }
  598. model.setValue("/root/send/goodcopy/goodflag", model.getValue(cmb_goodflag_search.attribute("ref")));
  599. model.setValue("/root/send/goodcopy/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
  600. model.setValue("/root/send/goodcopy/mdlcd", model.getValue(cmb_mdlcd.attribute("ref")));
  601. submit("TRRSC05303");
  602. var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
  603. if(goodcd.length == 0)goodcd = model.getValue(cmb_goodflag_search.attribute("ref")) + model.getValue(cmb_lrgcd.attribute("ref")) + model.getValue(cmb_mdlcd.attribute("ref")) + "0001";
  604. model.setValue(ipt_goodcd.attribute("ref"), goodcd);
  605. grp_detail.refresh();
  606. }
  607. ]]>
  608. </script>
  609. </xhtml:head>
  610. <xhtml:body>
  611. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1205px; height:737px; ">
  612. <caption id="caption9" class="tit_2" style="left:5px; top:105px; width:69px; height:13px; ">물품목록</caption>
  613. <line id="line7" class="line_1" style="x1:0px; y1:120px; x2:535px; y2:120px; "/>
  614. <caption id="caption1" class="tit_2" style="left:545px; top:105px; width:95px; height:13px; ">통합품목정보</caption>
  615. <switch id="switch2" style="left:0px; top:585px; width:535px; height:150px; border-color:#c7a3cf; border-style:solid; ">
  616. <case id="case1" style="left:0px; top:0px; width:533px; height:173px; ">
  617. <datagrid id="grd_costhistinfo" nodeset="/root/main/list/gooddet/goodconstlist" caption="적용일자*^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colwidth="80, 124, 127, 99, 83, 0, 80, 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, 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, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:29px; width:533px; height:118px; ">
  618. <col ref="fromdd"/>
  619. <col ref="maincustlastsuplplcenm"/>
  620. <col ref="suppcustnm"/>
  621. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  622. <col ref="forgncurncyunitcost" format="#,###" style="text-align:right; "/>
  623. <col ref="curncyunit"/>
  624. <col/>
  625. <col format="#,###" style="text-align:right; "/>
  626. <col ref="prodplce" format="#,###" style="text-align:right; "/>
  627. <col ref="goodnm"/>
  628. <col ref="goodhngnm"/>
  629. <col ref="goodengnm"/>
  630. <col ref="goodspec"/>
  631. <col ref="goodmodel"/>
  632. <col ref="mainmngtdeptnm"/>
  633. <col ref="winacntnm"/>
  634. <col ref="amtacntnm"/>
  635. <col ref="lastupdtrnm"/>
  636. <script type="javascript" ev:event="ondblclick">
  637. <![CDATA[
  638. if(grd_goodlist.row > 0)
  639. {
  640. model.setValue("/root/send/gooddetlist/goodcd", model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/goodcd" ));
  641. model.setValue("/root/send/gooddetlist/fromdd", model.getValue(grd_costhistinfo.nodeset + "["+ grd_costhistinfo.row + "]/fromdd" ));
  642. model.setValue("/root/send/gooddetlist/useyn", "N");
  643. submit("TRRSC05302");
  644. fAfterRetrGoodList();
  645. model.setValue("/root/send/gooddetlist/fromdd","" );
  646. }
  647. ]]>
  648. </script>
  649. </datagrid>
  650. <line id="line28" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
  651. <caption id="caption38" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">이력정보</caption>
  652. </case>
  653. <case id="case2">
  654. <line id="line49" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
  655. <group id="grp_etcgood" style="left:0px; top:29px; width:533px; height:106px; ">
  656. <line id="line50" class="line_2" style="x1:0px; y1:22px; x2:533px; y2:22px; "/>
  657. <line id="line53" class="line_3" style="x1:0px; y1:49px; x2:533px; y2:49px; "/>
  658. <caption id="caption74" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
  659. <caption id="caption76" class="cell_1" style="left:264px; top:0px; width:108px; height:23px; vertical-align:middle; ">발주생성구분</caption>
  660. <select1 id="cmb_plceordbase" ref="/root/main/gooddet/gooddetlist/plceordbase" class="combo_essential" appearance="minimal" style="left:110px; top:1px; width:152px; height:19px; ">
  661. <choices>
  662. <itemset nodeset="/root/init/plceordbase">
  663. <label ref="cdnm"/>
  664. <value ref="cdid"/>
  665. </itemset>
  666. </choices>
  667. </select1>
  668. <caption id="caption78" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">발주기준</caption>
  669. <input id="ipt_mmavguseqty" ref="/root/main/gooddet/gooddetlist/ddavguseqty" class="input_default" style="left:110px; top:26px; width:152px; height:19px; text-align:right; "/>
  670. <caption id="caption79" class="cell_1" style="left:264px; top:24px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
  671. <input id="ipt_prprtystocpossndayno" ref="/root/main/gooddet/gooddetlist/prprtystocpossndayno" class="input_default" style="left:374px; top:26px; width:155px; height:19px; text-align:right; "/>
  672. <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:374px; top:1px; width:155px; height:19px; ">
  673. <choices>
  674. <itemset nodeset="/root/init/plceordqtycretflag">
  675. <label ref="cdnm"/>
  676. <value ref="cdid"/>
  677. </itemset>
  678. </choices>
  679. </select1>
  680. </group>
  681. <caption id="caption26" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">부가입력정보</caption>
  682. </case>
  683. <case id="case4">
  684. <datagrid id="grd_instinfo" nodeset="/root/main/list/gooddet/goodinstlist" caption="기관코드^기관명" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:29px; width:533px; height:116px; ">
  685. <col ref="instcd"/>
  686. <col ref="instnm"/>
  687. </datagrid>
  688. <caption id="caption87" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">사용기관정보</caption>
  689. <line id="line35" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
  690. </case>
  691. <case id="case5">
  692. <datagrid id="grd_rscdgchglist" nodeset="/root/main/list/gooddet/rscdgchglist" caption="적용일자^고시^OLD 단가^NEW 단가^OLD Edi Code^NEW Edi Code^OLD 공급처 Code^NEW 공급처 Code^기관코드^물품코드" colwidth="93, 157, 100, 100, 100, 100, 110, 110, 100, 100" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:29px; width:533px; height:116px; ">
  693. <col ref="fromdd" format="yyyy-mm-dd" _key="true"/>
  694. <col ref="chgcmt"/>
  695. <col ref="oldgoodunitcost" format="#,###" style="text-align:right; "/>
  696. <col ref="newgoodunitcost" format="#,###" style="text-align:right; "/>
  697. <col ref="oldedicd"/>
  698. <col ref="newedicd"/>
  699. <col ref="oldsuppcustcd"/>
  700. <col ref="newsuppcustcd"/>
  701. <col ref="instcd" visibility="hidden" _key="true"/>
  702. <col ref="goodcd" visibility="hidden" _key="true"/>
  703. </datagrid>
  704. <line id="line13" class="line_1" style="x1:0px; y1:24px; x2:533px; y2:24px; "/>
  705. <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">고시내역</caption>
  706. </case>
  707. <case id="case3">
  708. <datagrid id="grd_oldcdinfo" nodeset="/root/main/list/gooddet/oldcdinfo" caption="구코드^물품명" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:29px; width:533px; height:116px; ">
  709. <col ref="oldcd"/>
  710. <col ref="goodnm"/>
  711. </datagrid>
  712. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">구코드</caption>
  713. <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:533; y2:24px; "/>
  714. </case>
  715. </switch>
  716. <button id="btn_insert" navindex="12" class="btn2_letter2" style="left:1152px; top:99px; width:42px; height:19px; ">
  717. <caption>입력</caption>
  718. <script type="javascript" ev:event="DOMActivate">
  719. <![CDATA[
  720. misfGridInit(grd_gooddetlist);
  721. misfGridIUD(grd_gooddetlist, "A");
  722. fDefaultSetting();
  723. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  724. //if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  725. if(ipt_fromdd.attribute("background-color") == "#c0c0c0")ipt_fromdd.attribute("background-color") = "#ffffff";
  726. model.refresh();
  727. model.setFocus("ipt_goodcd");
  728. ]]>
  729. </script>
  730. </button>
  731. <button id="btn_choidel" class="btn2_letter5" visibility="hidden" style="left:815px; top:99px; width:75px; height:19px; ">
  732. <caption>선택행삭제</caption>
  733. <script type="javascript" ev:event="DOMActivate">
  734. <![CDATA[
  735. misfGridIUD(grd_gooddetlist, "D");
  736. misfGridIUD(grd_goodlist, "D");
  737. ]]>
  738. </script>
  739. </button>
  740. <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" caption="물품코드^물품구분^물품명^물품한글명^물품영문명^규격^모델^자산^제조회사^제조회사명^EDI코드^대분류^대분류명^중분류^중분류명^소분류^소분류명" colwidth="85, 0,176, 0, 0, 60, 60, 0,0,80,0,0,80,0,80,0,80" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:125px; width:535px; height:430px; ">
  741. <col ref="goodcd" type="output" _key="true"/>
  742. <col ref="goodflag" visibility="hidden" _key="true"/>
  743. <col ref="goodnm" type="output" _key="true"/>
  744. <col ref="goodhngnm" type="output" _key="true"/>
  745. <col ref="goodengnm" type="output"/>
  746. <col ref="goodspec" type="output"/>
  747. <col ref="goodmodel" type="output"/>
  748. <col ref="asetflag" type="output"/>
  749. <col ref="prodcmpycd" type="output"/>
  750. <col ref="prodcmpynm"/>
  751. <col ref="edicd"/>
  752. <col ref="lrgcd" type="output"/>
  753. <col ref="lrgnm"/>
  754. <col ref="mdlcd" type="output"/>
  755. <col ref="mdlnm"/>
  756. <col ref="smlcd" type="output"/>
  757. <col ref="smlnm"/>
  758. <script type="javascript" ev:event="onrowchanged">
  759. <![CDATA[
  760. fRetrGoodList(true);
  761. ]]>
  762. </script>
  763. <script type="javascript" ev:event="onaftersort">
  764. <![CDATA[
  765. grd_goodlist.gridToInstance();
  766. ]]>
  767. </script>
  768. <script type="javascript" ev:event="ondblclick">
  769. <![CDATA[
  770. grd_goodlist.dispatch("onrowchanged");
  771. ]]>
  772. </script>
  773. </datagrid>
  774. <button id="btn_instcd" class="btn_sw" group="tab" style="left:180px; top:563px; width:90px; height:22px; ">
  775. <caption>사용기관정보</caption>
  776. <toggle case="case4" ev:event="DOMActivate"/>
  777. </button>
  778. <button id="btn_addinfo" class="btn_sw" group="tab" style="left:90px; top:563px; width:90px; height:22px; ">
  779. <caption>부가입력정보</caption>
  780. <toggle case="case2" ev:event="DOMActivate"/>
  781. </button>
  782. <button id="button2" class="btn2_letter8" style="left:1045px; top:99px; width:108px; height:19px; ">
  783. <caption>신규재료신청등록</caption>
  784. <script type="javascript" ev:event="DOMActivate">
  785. <![CDATA[
  786. model.removenode(gvParamPath +"/SMRSD04500_/SMRSD04500_value");
  787. rszfOpenPopUpListByWndName(ipt_winacnt,"","","SMRSD04500","newmatrprcsstat,openergoodmgt","5,Y");
  788. model.removenode("/root/copynode");
  789. model.makeNode("/root/copynode");
  790. var CSV = model.getValue(gvParamPath + "/SMRSD04500_/SMRSD04500_value");
  791. setCSVToNode("/root/copynode", CSV, "newmstgood");
  792. var copynode = "/root/copynode/newmstgood";
  793. var newgoodcd = model.getValue(copynode + "/goodcd");
  794. if(newgoodcd.length > 0)
  795. {
  796. var currow = grd_goodlist.findRow(newgoodcd,grd_goodlist.fixedRows, grd_goodlist.colRef("goodcd"), false,true);
  797. //신규코드로 등록된 코드가 존재한다면(존재할 경우는 없지만서도..)
  798. if(currow > -1)
  799. {
  800. grd_goodlist.row = currow;
  801. return;
  802. }
  803. else
  804. {
  805. /*
  806. if(model.getValue(grd_gooddetlist.nodeset + "/goodflag") != model.getValue(cmb_goodflag.attribute("ref"))
  807. {
  808. messageBox("신규재료 물품과 물품구분이 맞지 않습니다[" +model.getValue(grd_gooddetlist.nodeset + "/goodcd") + "]" ,"I");
  809. return;
  810. }
  811. */
  812. misfGridInit(grd_gooddetlist);
  813. misfGridIUD(grd_gooddetlist, "A");
  814. model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(copynode + "/goodflag"));
  815. model.setValue(grd_gooddetlist.nodeset + "/goodcd" ,model.getValue(copynode + "/goodcd"));
  816. model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
  817. model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(copynode + "/lrgcd"));
  818. model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , model.getValue(copynode + "/lrgnm"));
  819. model.setValue(grd_gooddetlist.nodeset + "/mdlcd" ,model.getValue(copynode + "/mdlcd"));
  820. model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , model.getValue(copynode + "/mdlnm"));
  821. model.setValue(grd_gooddetlist.nodeset + "/prodcmpycd" , model.getValue(copynode + "/prodcmpycd"));
  822. model.setValue(grd_gooddetlist.nodeset + "/prodcmpynm" , model.getValue(copynode + "/prodcmpynm"));
  823. model.setValue(grd_gooddetlist.nodeset + "/goodhngnm" , model.getValue(copynode + "/goodhngnm"));
  824. model.setValue(grd_gooddetlist.nodeset + "/goodengnm" , model.getValue(copynode + "/goodengnm"));
  825. model.setValue(grd_gooddetlist.nodeset + "/asetflag" , model.getValue(copynode + "/asetflag"));
  826. model.setValue(grd_gooddetlist.nodeset + "/goodspec" , model.getValue(copynode + "/goodspec"));
  827. model.setValue(grd_gooddetlist.nodeset + "/goodmodel" , model.getValue(copynode + "/goodmodel"));
  828. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  829. grp_detail.refresh();
  830. return;
  831. }
  832. }
  833. ]]>
  834. </script>
  835. </button>
  836. <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:563px; width:90px; height:22px; ">
  837. <caption>이력정보</caption>
  838. <toggle case="case1" ev:event="DOMActivate"/>
  839. </button>
  840. <line id="line2" class="line_1" style="x1:540px; y1:120px; x2:1195px; y2:120px; "/>
  841. <group id="grp_title" style="left:0px; top:9px; width:1195px; height:87px; vertical-align:top; ">
  842. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
  843. <caption id="caption88" class="search_name" style="left:10px; top:35px; width:82px; height:17px; ">EDI코드 :</caption>
  844. <caption id="caption89" class="search_name" style="left:204px; top:35px; width:86px; height:17px; ">물품코드 :</caption>
  845. <caption id="caption90" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
  846. <caption id="caption91" class="search_name" style="left:565px; top:9px; width:83px; height:17px; ">대 분 류 :</caption>
  847. <caption id="caption92" class="search_name" style="left:204px; top:9px; width:83px; height:17px; ">물 품 명 :</caption>
  848. <caption id="caption93" class="search_name" style="left:835px; top:35px; width:85px; height:17px; ">규 격 :</caption>
  849. <caption id="caption94" class="search_name" style="left:565px; top:35px; width:83px; height:17px; ">중 분 류 :</caption>
  850. <caption id="caption95" class="search_name" style="left:10px; top:61px; width:83px; height:17px; ">제 조 원 :</caption>
  851. <caption id="caption96" class="search_name" style="left:565px; top:61px; width:83px; height:17px; ">소 분 류 :</caption>
  852. <caption id="caption97" class="search_name" style="left:835px; top:61px; width:85px; height:17px; ">모 델 :</caption>
  853. <line id="line36" class="line_4" style="x1:1109px; y1:11px; x2:1109px; y2:77px; "/>
  854. <button id="btn_search" navindex="7" class="btn1_letter2" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
  855. <caption>조회</caption>
  856. <script type="javascript" ev:event="DOMActivate">
  857. <![CDATA[
  858. if(fCheckRetrieveData() == false)return;
  859. fRetrGoodList(false);
  860. ]]>
  861. </script>
  862. </button>
  863. <select1 id="cmb_goodflag_search" ref="/root/send/goodlist/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:95px; top:8px; width:95px; height:19px; ">
  864. <choices>
  865. <itemset nodeset="/root/init/goodflag">
  866. <label ref="cdnm"/>
  867. <value ref="cdid"/>
  868. </itemset>
  869. </choices>
  870. <script type="javascript" ev:event="xforms-value-changed">
  871. <![CDATA[
  872. misfGridInit(grd_goodlist);
  873. misfGridInit(grd_gooddetlist);
  874. misfGridInit(grd_costhistinfo);
  875. misfGridInit(grd_instinfo);
  876. misfGridInit(grd_oldcdinfo);
  877. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  878. //권한체크.
  879. fSetGoodFlagAuth();
  880. rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(cmb_goodflag_search.attribute("ref")));
  881. misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
  882. misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
  883. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "", "Y");
  884. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  885. cmb_mdlcd_search.value='';
  886. cmb_smlcd_search.value='';
  887. model.refresh();
  888. //misfGridInit(grd_gooddetlist);
  889. //btn_search.dispatch("DOMActivate");
  890. ]]>
  891. </script>
  892. </select1>
  893. <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" style="left:289px; top:8px; width:261px; height:19px; ">
  894. <script type="javascript" ev:event="onkeydown">
  895. <![CDATA[
  896. if (event.keyCode == 13)
  897. {
  898. ipt_goodnm_search.value = ipt_goodnm_search.currentText;
  899. ipt_goodnm_search.refresh();
  900. btn_search.dispatch("DOMActivate");
  901. }
  902. ]]>
  903. </script>
  904. </input>
  905. <input id="ipt_edicd_search" ref="/root/send/goodlist/edicd" class="input_search" _chartype="upper" style="left:95px; top:34px; width:95px; height:19px; "/>
  906. <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" maxlength="12" _chartype="upper" style="left:289px; top:34px; width:81px; height:19px; ">
  907. <script type="javascript" ev:event="onkeydown">
  908. <![CDATA[
  909. if (event.keyCode == 13)
  910. {
  911. ipt_goodcd_search.value = ipt_goodcd_search.currentText;
  912. ipt_goodcd_search.refresh();
  913. btn_search.dispatch("DOMActivate");
  914. }
  915. ]]>
  916. </script>
  917. </input>
  918. <input id="ipt_goodspec_search" ref="/root/send/goodlist/spec" class="input_search" style="left:921px; top:34px; width:180px; height:19px; "/>
  919. <input id="ipt_prodcmpy_search" ref="/root/send/goodlist/prodcmpy" class="input_search" style="left:95px; top:60px; width:95px; height:19px; ">
  920. <script type="javascript" ev:event="xforms-value-changed">
  921. <![CDATA[
  922. if(ipt_prodcmpy_search.value != "")
  923. {
  924. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  925. "prodcmpycd," + model.getValue(ipt_prodcmpy_search.attribute("ref")) + "," ,
  926. "","prodcmpy,prodcmpynm" ,ipt_prodcmpy_search,"SPRSD00160","","");
  927. }else{
  928. ipt_prodcmpynm_search.value = "";
  929. }
  930. model.refresh();
  931. ]]>
  932. </script>
  933. </input>
  934. <button id="button6" class="icon_search" style="left:196px; top:62px; width:16px; height:16px; ">
  935. <caption/>
  936. <script type="javascript" ev:event="DOMActivate">
  937. <![CDATA[
  938. rszfOpenPopUpListByWndName(ipt_prodcmpy_search,"","prodcmpy,prodcmpynm","SPRSD00160","","");
  939. model.refresh();
  940. ]]>
  941. </script>
  942. </button>
  943. <input id="ipt_prodcmpynm_search" ref="/root/send/goodlist/prodcmpynm" class="input_search" style="left:219px; top:60px; width:151px; height:19px; ">
  944. <script type="javascript" ev:event="xforms-value-changed">
  945. <![CDATA[
  946. if(ipt_prodcmpynm_search.value != "")
  947. {
  948. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  949. "prodcmpynm,," + model.getValue(ipt_prodcmpynm_search.attribute("ref")) ,
  950. "","prodcmpy,prodcmpynm" ,ipt_prodcmpy_search,"SPRSD00160","","");
  951. }else{
  952. ipt_prodcmpy_search.value = "";
  953. }
  954. model.refresh();
  955. ]]>
  956. </script>
  957. </input>
  958. <input id="ipt_goodmodel_search" ref="/root/send/goodlist/model" class="input_search" style="left:921px; top:60px; width:180px; height:19px; "/>
  959. <caption id="caption98" class="search_name" style="left:835px; top:9px; width:90px; height:17px; ">기 관 :</caption>
  960. <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" overflow="visible" appearance="full" cols="2" cellspacing="5" style="left:921px; top:9px; width:109px; height:15px; background-color:transparent; border-style:none; ">
  961. <choices>
  962. <itemset nodeset="/root/init/instflag">
  963. <label ref="label"/>
  964. <value ref="value"/>
  965. </itemset>
  966. </choices>
  967. </select1>
  968. <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" maxlength="12" _chartype="upper" style="left:460px; top:34px; width:90px; height:19px; ">
  969. <script type="javascript" ev:event="onkeydown">
  970. <![CDATA[
  971. if (event.keyCode == 13)
  972. {
  973. ipt_oldcd_search.value = ipt_oldcd_search.currentText;
  974. ipt_oldcd_search.refresh();
  975. btn_search.dispatch("DOMActivate");
  976. }
  977. ]]>
  978. </script>
  979. </input>
  980. <caption id="caption99" class="search_name" style="left:375px; top:35px; width:83px; height:17px; ">구 코 드 :</caption>
  981. <select1 id="cmb_lrgcd_search" ref="/root/send/goodlist/lrgcd" appearance="minimal" style="left:655px; top:11px; width:171px; height:19px; ">
  982. <choices>
  983. <itemset>
  984. <label/>
  985. <value/>
  986. </itemset>
  987. </choices>
  988. <script type="javascript" ev:event="xforms-value-changed">
  989. <![CDATA[
  990. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M", "", "Y");
  991. cmb_mdlcd_search.dispatch("xforms-value-changed");
  992. model.refresh();
  993. ]]>
  994. </script>
  995. </select1>
  996. <select1 id="cmb_smlcd_search" ref="/root/send/goodlist/smlcd" appearance="minimal" style="left:655px; top:59px; width:171px; height:19px; ">
  997. <choices>
  998. <itemset>
  999. <label/>
  1000. <value/>
  1001. </itemset>
  1002. </choices>
  1003. </select1>
  1004. <select1 id="cmb_mdlcd_search" ref="/root/send/goodlist/mdlcd" appearance="minimal" style="left:655px; top:35px; width:171px; height:19px; ">
  1005. <choices>
  1006. <itemset>
  1007. <label/>
  1008. <value/>
  1009. </itemset>
  1010. </choices>
  1011. <script type="javascript" ev:event="xforms-value-changed">
  1012. <![CDATA[
  1013. rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S", "", "Y");
  1014. model.refresh();
  1015. ]]>
  1016. </script>
  1017. </select1>
  1018. <caption id="caption15" class="search_name" style="left:375px; top:60px; width:86px; height:17px; ">불용코드 :</caption>
  1019. <select1 id="rdo_nonusegoodview" ref="/root/send/goodlist/nonusegoodview" overflow="visible" appearance="full" cols="2" style="left:460px; top:60px; width:89px; height:17px; border-style:none; ">
  1020. <choices>
  1021. <itemset nodeset="/root/init/nonusegoodview">
  1022. <label ref="label"/>
  1023. <value ref="value"/>
  1024. </itemset>
  1025. </choices>
  1026. </select1>
  1027. </group>
  1028. <button id="btn_excel" navindex="12" class="btn5_letter5" style="left:970px; top:99px; width:75px; height:19px; ">
  1029. <caption>Excel 저장</caption>
  1030. <script type="javascript" ev:event="DOMActivate">
  1031. <![CDATA[
  1032. if(fCheckRetrieveData() == false)return;
  1033. submit("TRRSC05306");
  1034. var fileName = window.fileDialog("save", ",", false, "물품코드List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1035. if (fileName != "")
  1036. {
  1037. grd_excelgooddetlist.saveExcel(fileName, "물품코드");
  1038. }
  1039. ]]>
  1040. </script>
  1041. </button>
  1042. <button id="button1" class="btn_sw" group="tab" style="left:270px; top:563px; width:100px; height:22px; ">
  1043. <caption>고시내역</caption>
  1044. <toggle case="case5" ev:event="DOMActivate"/>
  1045. </button>
  1046. <button id="button3" class="btn_sw" group="tab" style="left:370px; top:563px; width:100px; height:22px; ">
  1047. <caption>구코드</caption>
  1048. <toggle case="case3" ev:event="DOMActivate"/>
  1049. </button>
  1050. </group>
  1051. <group id="grp_detail" style="left:540px; top:163px; width:660px; height:607px; ">
  1052. <line id="line6" class="line_2" style="x1:0px; y1:532px; x2:653px; y2:532px; "/>
  1053. <line id="line5" class="line_2" style="x1:0px; y1:355px; x2:653px; y2:355px; "/>
  1054. <line id="line3" class="line_2" style="x1:0px; y1:580px; x2:653px; y2:580px; "/>
  1055. <line id="line19" class="line_2" style="x1:0px; y1:604px; x2:653px; y2:604px; "/>
  1056. <line id="line18" class="line_2" style="x1:0px; y1:460px; x2:653px; y2:460px; "/>
  1057. <line id="line16" class="line_3" style="x1:0px; y1:604px; x2:653px; y2:604px; "/>
  1058. <line id="line14" class="line_2" style="x1:0px; y1:508px; x2:653px; y2:508px; "/>
  1059. <line id="line24" class="line_2" style="x1:0px; y1:556px; x2:653px; y2:556px; "/>
  1060. <line id="line12" class="line_2" style="x1:0px; y1:484px; x2:653px; y2:484px; "/>
  1061. <line id="line21" class="line_2" style="x1:0px; y1:436px; x2:653px; y2:436px; "/>
  1062. <line id="line9" class="line_2" style="x1:0px; y1:415px; x2:653px; y2:415px; "/>
  1063. <line id="line8" class="line_2" style="x1:0px; y1:331px; x2:653px; y2:331px; "/>
  1064. <line id="line4" class="line_1" style="x1:0px; y1:305px; x2:653px; y2:305px; "/>
  1065. <line id="line23" class="line_2" style="x1:0px; y1:71px; x2:653px; y2:71px; "/>
  1066. <line id="line33" class="line_2" style="x1:0px; y1:143px; x2:653px; y2:143px; "/>
  1067. <line id="line11" class="line_2" style="x1:0px; y1:95px; x2:653px; y2:95px; "/>
  1068. <line id="line10" class="line_3" style="x1:0px; y1:167px; x2:653px; y2:167px; "/>
  1069. <line id="line32" class="line_2" style="x1:0px; y1:119px; x2:653px; y2:119px; "/>
  1070. <line id="line31" class="line_2" style="x1:0px; y1:47px; x2:653px; y2:47px; "/>
  1071. <line id="line30" class="line_2" style="x1:0px; y1:23px; x2:653px; y2:23px; "/>
  1072. <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_s_essential" imemode="hangul" maxlength="200" style="left:110px; top:27px; width:216; height:19px; ">
  1073. <script type="javascript" ev:event="onkeydown">
  1074. <![CDATA[
  1075. if(event.keyCode == 9)
  1076. {
  1077. if(event.shiftKey)model.setFocus("ipt_goodnm");
  1078. else model.setFocus("ipt_goodengnm");
  1079. }
  1080. //event.preventDefault();
  1081. ]]>
  1082. </script>
  1083. </input>
  1084. <caption id="caption72" class="cell_1" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">제조국</caption>
  1085. <button id="btn_prodcmpycd" class="icon_search" style="left:503px; top:77px; width:16px; height:16px; ">
  1086. <caption/>
  1087. <script type="javascript" ev:event="DOMActivate">
  1088. <![CDATA[
  1089. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  1090. model.refresh();
  1091. ]]>
  1092. </script>
  1093. </button>
  1094. <caption id="caption50" class="cell_1" style="left:0; top:1px; width:108px; height:23px; vertical-align:middle; ">물품코드</caption>
  1095. <caption id="caption30" class="cell_1" style="left:329px; top:49px; width:108px; height:23px; vertical-align:middle; ">모델명</caption>
  1096. <caption id="caption52" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(한글)</caption>
  1097. <button id="btn_goodcdcopy" class="btn2_letter4" style="left:263px; top:3px; width:64px; height:19px; ">
  1098. <caption>코드생성</caption>
  1099. <script type="javascript" ev:event="DOMActivate">
  1100. <![CDATA[
  1101. fGoodCdCopy();
  1102. ]]>
  1103. </script>
  1104. </button>
  1105. <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_s_essential" maxlength="12" _chartype="upper" style="left:110px; top:3px; width:108px; height:19px; ">
  1106. <script type="javascript" ev:event="onkeydown">
  1107. <![CDATA[
  1108. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1109. event.preventDefault();
  1110. ]]>
  1111. </script>
  1112. </input>
  1113. <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:194px; top:147px; width:132px; height:19px; "/>
  1114. <caption id="caption42" class="cell_1" style="left:329px; top:73px; width:108px; height:23px; vertical-align:middle; ">제조회사</caption>
  1115. <caption id="caption65" class="cell_1" style="left:329px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(영문)</caption>
  1116. <caption id="caption66" class="cell_1" style="left:0px; top:121px; width:108px; height:23px; vertical-align:middle; ">소분류</caption>
  1117. <output id="opt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="output_fix" appearance="output" style="left:524px; top:147px; width:132px; height:19px; "/>
  1118. <button id="btn_winacnt" class="icon_search" style="left:175px; top:149px; width:16px; height:16px; ">
  1119. <caption/>
  1120. <script type="javascript" ev:event="DOMActivate">
  1121. <![CDATA[
  1122. rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
  1123. model.refresh();
  1124. ]]>
  1125. </script>
  1126. </button>
  1127. <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" style="left:110px; top:51px; width:216; height:19px; ">
  1128. <script type="javascript" ev:event="onkeydown">
  1129. <![CDATA[
  1130. if(event.keyCode == 9)
  1131. {
  1132. if(event.shiftKey)model.setFocus("ipt_goodmodel");
  1133. //else model.setFocus("cmb_asetflag");
  1134. }
  1135. //event.preventDefault();
  1136. ]]>
  1137. </script>
  1138. </input>
  1139. <caption id="caption45" class="cell_1" style="left:0px; top:49px; width:108px; height:23px; vertical-align:middle; ">규격</caption>
  1140. <caption id="caption35" class="cell_1" style="left:0px; top:145px; width:108px; height:23px; vertical-align:middle; ">입고계정</caption>
  1141. <caption id="caption68" class="cell_1" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">대분류</caption>
  1142. <input id="ipt_goodmodel" ref="/root/main/gooddet/gooddetlist/goodmodel" class="input_default" maxlength="150" style="left:440px; top:51px; width:214px; height:19px; ">
  1143. <script type="javascript" ev:event="onkeydown">
  1144. <![CDATA[
  1145. if(event.keyCode == 9)
  1146. {
  1147. if(event.shiftKey)model.setFocus("ipt_prodcmpycd");
  1148. else model.setFocus("ipt_goodspec");
  1149. }
  1150. //event.preventDefault();
  1151. ]]>
  1152. </script>
  1153. <script type="javascript" ev:event="xforms-value-changed">
  1154. <![CDATA[
  1155. model.setFocus("ipt_goodspec");
  1156. ]]>
  1157. </script>
  1158. </input>
  1159. <caption id="caption47" class="cell_1" style="left:329px; top:1px; width:108px; height:23px; vertical-align:middle; ">물품명</caption>
  1160. <button id="btn_amtacnt" class="icon_search" style="left:505px; top:149px; width:16px; height:16px; ">
  1161. <caption/>
  1162. <script type="javascript" ev:event="DOMActivate">
  1163. <![CDATA[
  1164. rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
  1165. model.refresh();
  1166. ]]>
  1167. </script>
  1168. </button>
  1169. <caption id="caption7" class="cell_1" style="left:330px; top:145px; width:108px; height:23px; vertical-align:middle; ">비용계정</caption>
  1170. <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" style="left:110px; top:147px; width:59px; height:19px; ">
  1171. <script type="javascript" ev:event="xforms-value-changed">
  1172. <![CDATA[
  1173. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
  1174. model.refresh();
  1175. model.setFocus("ipt_amtacnt");
  1176. ]]>
  1177. </script>
  1178. <script type="javascript" ev:event="onkeydown">
  1179. <![CDATA[
  1180. if(event.keyCode == 9)
  1181. {
  1182. if(event.shiftKey)model.setFocus("cmb_lrgcd");
  1183. else model.setFocus("ipt_amtacnt");
  1184. }
  1185. //event.preventDefault();
  1186. ]]>
  1187. </script>
  1188. </input>
  1189. <caption id="caption29" class="cell_1" style="left:330px; top:97px; width:108px; height:23px; vertical-align:middle; ">중분류</caption>
  1190. <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" style="left:440px; top:75px; width:60px; height:19px; ">
  1191. <script type="javascript" ev:event="xforms-value-changed">
  1192. <![CDATA[
  1193. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(opt_prodcmpynm.attribute("ref"),"");
  1194. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  1195. model.refresh();
  1196. ]]>
  1197. </script>
  1198. <script type="javascript" ev:event="onkeydown">
  1199. <![CDATA[
  1200. if(event.keyCode == 9)
  1201. {
  1202. if(event.shiftKey)model.setFocus("cmb_prodplce");
  1203. else model.setFocus("ipt_goodmodel");
  1204. }
  1205. //event.preventDefault();
  1206. ]]>
  1207. </script>
  1208. </input>
  1209. <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" imemode="alpha" maxlength="200" style="left:440px; top:27px; width:214px; height:19px; ">
  1210. <script type="javascript" ev:event="onkeydown">
  1211. <![CDATA[
  1212. if(event.keyCode == 9)
  1213. {
  1214. if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  1215. else model.setFocus("cmb_prodplce");
  1216. }
  1217. //event.preventDefault();
  1218. ]]>
  1219. </script>
  1220. </input>
  1221. <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_default" style="left:440px; top:147px; width:60px; height:19px; ">
  1222. <script type="javascript" ev:event="xforms-value-changed">
  1223. <![CDATA[
  1224. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
  1225. model.refresh();
  1226. model.setFocus("ipt_fromdd");
  1227. ]]>
  1228. </script>
  1229. <script type="javascript" ev:event="onkeydown">
  1230. <![CDATA[
  1231. if(event.keyCode == 9)
  1232. {
  1233. if(event.shiftKey)model.setFocus("ipt_winacnt");
  1234. else model.setFocus("ipt_fromdd");
  1235. }
  1236. //event.preventDefault();
  1237. ]]>
  1238. </script>
  1239. </input>
  1240. <select1 id="cmb_prodplce" ref="/root/main/gooddet/gooddetlist/prodplce" class="combo" appearance="minimal" style="left:110px; top:75px; width:216; height:19px; ">
  1241. <choices>
  1242. <itemset nodeset="/root/init/prodplce">
  1243. <label ref="cdnm"/>
  1244. <value ref="cdid"/>
  1245. </itemset>
  1246. </choices>
  1247. <script type="javascript" ev:event="onkeydown">
  1248. <![CDATA[
  1249. if(event.keyCode == 9)
  1250. {
  1251. if(event.shiftKey)model.setFocus("ipt_goodengnm");
  1252. else model.setFocus("ipt_prodcmpycd");
  1253. }
  1254. if(event.keyCode == 9)model.setFocus("ipt_prodcmpycd");
  1255. //event.preventDefault();
  1256. ]]>
  1257. </script>
  1258. <script type="javascript" ev:event="xforms-value-changed">
  1259. <![CDATA[
  1260. model.setFocus("ipt_prodcmpycd");
  1261. ]]>
  1262. </script>
  1263. </select1>
  1264. <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" appearance="output" style="left:522px; top:75px; width:132px; height:19px; "/>
  1265. <select1 id="cmb_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" class="combo_essential" visibility="hidden" appearance="minimal" editmode="search" style="left:440px; top:2px; width:211px; height:19px; ">
  1266. <choices>
  1267. <itemset nodeset="/root/init/goodflag">
  1268. <label ref="cdnm"/>
  1269. <value ref="cdid"/>
  1270. </itemset>
  1271. </choices>
  1272. </select1>
  1273. <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_essential" maxlength="200" style="left:439px; top:2px; width:215px; height:19px; ">
  1274. <script type="javascript" ev:event="onkeydown">
  1275. <![CDATA[
  1276. if(event.keyCode == 9)
  1277. {
  1278. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1279. else model.setFocus("ipt_goodhngnm");
  1280. }
  1281. //event.preventDefault();
  1282. ]]>
  1283. </script>
  1284. </input>
  1285. <caption id="caption22" class="tit_2" style="left:5px; top:291px; width:95px; height:13px; ">품목세부사항</caption>
  1286. <button id="btn_mngtdeptcd" class="icon_search" style="left:175px; top:337px; width:16px; height:16px; ">
  1287. <caption/>
  1288. <script type="javascript" ev:event="DOMActivate">
  1289. <![CDATA[
  1290. var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
  1291. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
  1292. model.refresh();
  1293. ]]>
  1294. </script>
  1295. </button>
  1296. <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" appearance="minimal" style="left:530px; top:365px; width:124px; height:19px; text-align:center; ">
  1297. <choices>
  1298. <itemset nodeset="/root/init/purcunit">
  1299. <label ref="cdnm"/>
  1300. <value ref="cdid"/>
  1301. </itemset>
  1302. </choices>
  1303. <script type="javascript" ev:event="onkeydown">
  1304. <![CDATA[
  1305. if(event.keyCode == 9)
  1306. {
  1307. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1308. else model.setFocus("ipt_exchqty");
  1309. }
  1310. //event.preventDefault();
  1311. ]]>
  1312. </script>
  1313. </select1>
  1314. <button id="btn_useinstinfo" class="btn2_letter7" style="left:229px; top:311px; width:97px; height:19px; ">
  1315. <caption>타기관내용복사</caption>
  1316. <script type="javascript" ev:event="DOMActivate">
  1317. <![CDATA[
  1318. fInstGoodCdCopy();
  1319. ]]>
  1320. </script>
  1321. </button>
  1322. <input id="ipt_minexch" ref="/root/main/gooddet/gooddetlist/minexch" class="input_essential" maxlength="9" format="#,###" style="left:110px; top:418px; width:124px; height:19px; text-align:right; ">
  1323. <script type="javascript" ev:event="onkeydown">
  1324. <![CDATA[
  1325. if(event.keyCode == 9)
  1326. {
  1327. if(event.shiftKey)model.setFocus("cmb_deliveunit");
  1328. else model.setFocus("chk_reuseyn");
  1329. }
  1330. //event.preventDefault();
  1331. ]]>
  1332. </script>
  1333. </input>
  1334. <caption id="caption53" class="cell_1" style="left:0px; top:309px; width:108px; height:23px; vertical-align:middle; ">적용일자</caption>
  1335. <caption id="caption21" class="cell_1" style="left:0px; top:362px; width:108px; height:23px; vertical-align:middle; ">처방단위</caption>
  1336. <button id="btn_photinfo" class="btn2_letter2" style="left:220px; top:3px; width:42px; height:19px; ">
  1337. <caption>사진</caption>
  1338. <script type="javascript" ev:event="DOMActivate">
  1339. <![CDATA[
  1340. //SPRSC00210
  1341. rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1342. //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1343. ]]>
  1344. </script>
  1345. </button>
  1346. <caption id="caption14" class="cell_1" style="left:329px; top:333px; width:108px; height:23px; vertical-align:middle; ">청구구분</caption>
  1347. <input id="ipt_divusenvalqty" ref="/root/main/gooddet/gooddetlist/divusenvalqty" class="input_default" maxlength="9" format="#,###.##" style="left:551px; top:415px; width:103px; height:19px; text-align:right; ">
  1348. <script type="javascript" ev:event="onkeydown">
  1349. <![CDATA[
  1350. if(event.keyCode == 9)
  1351. {
  1352. if(event.shiftKey)model.setFocus("chk_reuseyn");
  1353. else model.setFocus("cmb_stocmngtflag");
  1354. }
  1355. //event.preventDefault();
  1356. ]]>
  1357. </script>
  1358. </input>
  1359. <select id="chk_reuseyn" ref="/root/main/gooddet/gooddetlist/reuseyn" overflow="visible" appearance="full" style="left:313px; top:418px; width:101px; height:15px; border-style:none; ">
  1360. <choices>
  1361. <item>
  1362. <label>분할사용여부</label>
  1363. <value>Y</value>
  1364. </item>
  1365. </choices>
  1366. <script type="javascript" ev:event="onkeydown">
  1367. <![CDATA[
  1368. if(event.keyCode == 9)
  1369. {
  1370. if(event.shiftKey)model.setFocus("ipt_minexch");
  1371. else model.setFocus("ipt_goodhngnm");
  1372. }
  1373. //event.preventDefault();
  1374. ]]>
  1375. </script>
  1376. </select>
  1377. <caption id="caption16" class="cell_1" style="left:0px; top:333px; width:108px; height:23px; vertical-align:middle; ">관리부서</caption>
  1378. <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_essential" style="left:110px; top:336px; width:60px; height:19px; ">
  1379. <script type="javascript" ev:event="xforms-value-changed">
  1380. <![CDATA[
  1381. misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
  1382. model.refresh();
  1383. model.setFocus("ipt_reqflag");
  1384. ]]>
  1385. </script>
  1386. <script type="javascript" ev:event="onkeydown">
  1387. <![CDATA[
  1388. if(event.keyCode == 9)
  1389. {
  1390. if(event.shiftKey)model.setFocus("ipt_fromdd");
  1391. else model.setFocus("ipt_reqflag");
  1392. }
  1393. //event.preventDefault();
  1394. ]]>
  1395. </script>
  1396. </input>
  1397. <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_essential" appearance="minimal" style="left:351px; top:365px; width:110px; height:19px; text-align:center; ">
  1398. <choices>
  1399. <itemset nodeset="/root/init/deliveunit">
  1400. <label ref="cdnm"/>
  1401. <value ref="cdid"/>
  1402. </itemset>
  1403. </choices>
  1404. <script type="javascript" ev:event="onkeydown">
  1405. <![CDATA[
  1406. if(event.keyCode == 9)
  1407. {
  1408. if(event.shiftKey)model.setFocus("cmb_deliveunit");
  1409. else model.setFocus("ipt_minexch");
  1410. }
  1411. //event.preventDefault();
  1412. ]]>
  1413. </script>
  1414. </select1>
  1415. <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_essential" maxlength="9" format="#,###" style="left:351px; top:388px; width:110px; height:19px; text-align:right; ">
  1416. <script type="javascript" ev:event="onkeydown">
  1417. <![CDATA[
  1418. if(event.keyCode == 9)
  1419. {
  1420. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1421. else model.setFocus("cmb_deliveunit");
  1422. }
  1423. //event.preventDefault();
  1424. ]]>
  1425. </script>
  1426. </input>
  1427. <output id="opt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="output_fix" appearance="output" style="left:194px; top:336px; width:132px; height:19px; "/>
  1428. <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_essential" appearance="minimal" style="left:440px; top:336px; width:214px; height:19px; ">
  1429. <choices>
  1430. <itemset nodeset="/root/init/reqflag">
  1431. <label ref="cdnm"/>
  1432. <value ref="cdid"/>
  1433. </itemset>
  1434. </choices>
  1435. </select1>
  1436. <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_search" inputtype="date" style="left:110px; top:311px; width:111px; height:19px; background-color:#ffffff; ">
  1437. <script type="javascript" ev:event="onkeydown">
  1438. <![CDATA[
  1439. if(event.keyCode == 9)
  1440. {
  1441. if(event.shiftKey)model.setFocus("ipt_fromdd");
  1442. else model.setFocus("cmb_smlcd");
  1443. }
  1444. //event.preventDefault();
  1445. ]]>
  1446. </script>
  1447. </input>
  1448. <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_essential" appearance="minimal" style="left:110px; top:440px; width:216px; height:19px; ">
  1449. <choices>
  1450. <itemset nodeset="/root/init/stocmngtflag">
  1451. <label ref="cdnm"/>
  1452. <value ref="cdid"/>
  1453. </itemset>
  1454. </choices>
  1455. <script type="javascript" ev:event="onkeydown">
  1456. <![CDATA[
  1457. if(event.keyCode == 9)
  1458. {
  1459. if(event.shiftKey)model.setFocus("ipt_divusenvalqty");
  1460. else model.setFocus("cmb_reqmthd");
  1461. }
  1462. //event.preventDefault();
  1463. ]]>
  1464. </script>
  1465. </select1>
  1466. <select1 id="cmb_setplceordflag" ref="/root/main/gooddet/gooddetlist/setplceordflag" class="combo_default" appearance="minimal" style="left:110px; top:488px; width:130px; height:19px; ">
  1467. <choices>
  1468. <itemset nodeset="/root/init/setplceordflag">
  1469. <label ref="cdnm"/>
  1470. <value ref="cdid"/>
  1471. </itemset>
  1472. </choices>
  1473. <script type="javascript" ev:event="onkeydown">
  1474. <![CDATA[
  1475. if(event.keyCode == 9)
  1476. {
  1477. if(event.shiftKey)model.setFocus("cmb_setplceordflag");
  1478. else model.setFocus("ipt_nonusetretdd");
  1479. }
  1480. //event.preventDefault();
  1481. ]]>
  1482. </script>
  1483. </select1>
  1484. <caption id="caption20" class="cell_1" style="left:337px; top:510px; width:99px; height:23px; vertical-align:middle; ">ALL SIZE 유무</caption>
  1485. <caption id="caption54" class="cell_1" style="left:337px; top:486px; width:99px; height:23px; vertical-align:middle; ">GROUP 구분</caption>
  1486. <button id="btn_goodsetrgst" class="btn2_letter2" style="left:610px; top:488px; width:42px; height:19px; ">
  1487. <caption>등록</caption>
  1488. <script type="javascript" ev:event="onclick">
  1489. <![CDATA[
  1490. if(model.getValue(cmb_proddrugsetflag.attribute("ref")).length == 0)
  1491. {
  1492. messageBox("SET등록을 하시려면 SET구분을 반드시" ,"C002");
  1493. model.setFocus("cmb_proddrugsetflag");
  1494. return;
  1495. }
  1496. /*
  1497. if(model.getValue(cmb_setplceordflag.attribute("ref")).length == 0)
  1498. {
  1499. messageBox("SET등록을 하시려면 SET발주구분을 반드시" ,"C002");
  1500. model.setFocus("cmb_setplceordflag");
  1501. return;
  1502. }
  1503. */
  1504. rszfOpenPopUpListByWndName(cmb_proddrugsetflag,"","","SPRSC00210","instcd,goodcd,goodnm,goodflag,proddrugsetflag","opt_instcd,ipt_goodcd,ipt_goodnm,cmb_goodflag,cmb_proddrugsetflag");
  1505. ]]>
  1506. </script>
  1507. </button>
  1508. <caption id="caption11" class="cell_1" style="left:0px; top:486px; width:108px; height:23px; vertical-align:middle; ">SET 발주구분</caption>
  1509. <select1 id="cmb_reqmthd" ref="/root/main/gooddet/gooddetlist/reqmthd" class="combo_essential" appearance="minimal" style="left:110px; top:464px; width:216px; height:19px; ">
  1510. <choices>
  1511. <itemset nodeset="/root/init/reqmthd">
  1512. <label ref="cdnm"/>
  1513. <value ref="cdid"/>
  1514. </itemset>
  1515. </choices>
  1516. <script type="javascript" ev:event="onkeydown">
  1517. <![CDATA[
  1518. if(event.keyCode == 9)
  1519. {
  1520. if(event.shiftKey)model.setFocus("cmb_stocmngtflag");
  1521. }
  1522. //event.preventDefault();
  1523. ]]>
  1524. </script>
  1525. </select1>
  1526. <caption id="caption12" class="cell_1" style="left:0px; top:438px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
  1527. <select1 id="cmb_proddrugsetflag" ref="/root/main/gooddet/gooddetlist/proddrugsetflag" class="combo_default" appearance="minimal" style="left:438px; top:488px; width:170px; height:19px; ">
  1528. <choices>
  1529. <itemset nodeset="/root/init/proddrugsetflag">
  1530. <label ref="cdnm"/>
  1531. <value ref="cdid"/>
  1532. </itemset>
  1533. </choices>
  1534. <script type="javascript" ev:event="onkeydown">
  1535. <![CDATA[
  1536. if(event.keyCode == 9)
  1537. {
  1538. if(event.shiftKey)model.setFocus("rdo_allsizeyny");
  1539. else model.setFocus("cmb_setplceordflag");
  1540. }
  1541. //event.preventDefault();
  1542. ]]>
  1543. </script>
  1544. </select1>
  1545. <select1 id="rdo_expnyny" ref="/root/main/gooddet/gooddetlist/expnyn" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:440px; top:440px; width:31px; height:19px; background-color:transparent; border-style:none; ">
  1546. <choices>
  1547. <itemset nodeset="/root/init/expnyn">
  1548. <label ref="label"/>
  1549. <value ref="value"/>
  1550. </itemset>
  1551. </choices>
  1552. </select1>
  1553. <caption id="caption59" class="cell_1" visibility="hidden" style="left:337px; top:438px; width:99px; height:23px; vertical-align:middle; ">고가여부</caption>
  1554. <select1 id="rdo_allsizeyny" ref="/root/main/gooddet/gooddetlist/allsizeyn" overflow="visible" appearance="full" cols="2" cellspacing="30" style="left:438px; top:514px; width:40px; height:19px; background-color:transparent; border-style:none; ">
  1555. <choices>
  1556. <itemset nodeset="/root/init/allsizeyn">
  1557. <label ref="label"/>
  1558. <value ref="value"/>
  1559. </itemset>
  1560. </choices>
  1561. <script type="javascript" ev:event="onkeydown">
  1562. <![CDATA[
  1563. if(event.keyCode == 9)
  1564. {
  1565. if(event.shiftKey)model.setFocus("ipt_plceordnonusedd");
  1566. else model.setFocus("cmb_proddrugsetflag");
  1567. }
  1568. //event.preventDefault();
  1569. ]]>
  1570. </script>
  1571. </select1>
  1572. <select1 id="rdo_reqflag" ref="/root/main/gooddet/gooddetlist/tmpreqflag" overflow="visible" appearance="full" cols="2" style="left:438px; top:465px; width:70px; height:20px; background-color:transparent; border-style:none; ">
  1573. <choices>
  1574. <itemset nodeset="/root/init/tmpreqflag">
  1575. <label ref="label"/>
  1576. <value ref="value"/>
  1577. </itemset>
  1578. </choices>
  1579. <script type="javascript" ev:event="onkeydown">
  1580. <![CDATA[
  1581. if(event.keyCode == 9)
  1582. {
  1583. if(event.shiftKey)model.setFocus("ipt_addtaxrate");
  1584. else model.setFocus("ipt_addtaxrate");
  1585. }
  1586. //event.preventDefault();
  1587. ]]>
  1588. </script>
  1589. </select1>
  1590. <caption id="caption18" class="cell_1" style="left:337px; top:462px; width:99px; height:23px; vertical-align:middle; ">임의청구구분</caption>
  1591. <caption id="caption19" class="cell_1" style="left:0px; top:462px; width:108px; height:23px; vertical-align:middle; ">청구방법구분</caption>
  1592. <button id="btn_allsizergst" class="btn2_letter2" style="left:610px; top:514px; width:42px; height:19px; ">
  1593. <caption>등록</caption>
  1594. <script type="javascript" ev:event="onclick">
  1595. <![CDATA[
  1596. if(model.getValue(ipt_goodcd.attribute("ref")).length == 0)
  1597. {
  1598. messageBox("물품코드를" ,"C001");
  1599. return;
  1600. }
  1601. if(model.getValue(rdo_allsizeyny.attribute("ref")) != "Y")
  1602. {
  1603. messageBox("ALL SIZE 여부를 [예]로" ,"C001");
  1604. return;
  1605. }
  1606. if(model.getValue(cmb_purcunit.attribute("ref")).length == 0)
  1607. {
  1608. messageBox("규격단위를" ,"C001");
  1609. return;
  1610. }
  1611. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","instcd,instnm,goodcd,goodnm,goodunit","SPRSC00211","instcd,instnm,goodcd,goodnm,goodunit","opt_instcd,opt_instnm,ipt_goodcd,ipt_goodnm,cmb_purcunit");
  1612. var allsizeinfo = model.getValue(gvParamPath +"/SPRSC00211_/SPRSC00211_value");
  1613. if(allsizeinfo != "" && allsizeinfo != null) {
  1614. allsizeinfo = allsizeinfo.split("|");
  1615. if(allsizeinfo[0] > 0)model.setValue(rdo_allsizeyny.attribute("ref"),"Y");
  1616. else model.setValue(rdo_allsizeyny.attribute("ref"),"N");
  1617. model.refresh();
  1618. }
  1619. ]]>
  1620. </script>
  1621. </button>
  1622. <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_essential" appearance="minimal" style="left:438px; top:440px; width:214px; height:19px; ">
  1623. <choices>
  1624. <itemset nodeset="/root/init/reqprid">
  1625. <label ref="cdnm"/>
  1626. <value ref="cdid"/>
  1627. </itemset>
  1628. </choices>
  1629. </select1>
  1630. <caption id="caption33" class="cell_1" style="left:337px; top:438px; width:99px; height:23px; vertical-align:middle; ">청구주기</caption>
  1631. <input id="ipt_mmavgusescheqty" ref="/root/main/gooddet/gooddetlist/mmavgusescheqty" class="input_default" maxlength="14.2" format="#,###.00" style="left:111px; top:512px; width:214px; height:19px; ">
  1632. <script type="javascript" ev:event="onkeydown">
  1633. <![CDATA[
  1634. if(event.keyCode == 9)
  1635. {
  1636. if(event.shiftKey)model.setFocus("cmb_mngtflag");
  1637. else model.setFocus("ipt_reqdeptcd");
  1638. }
  1639. //event.preventDefault();
  1640. ]]>
  1641. </script>
  1642. </input>
  1643. <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:110px; top:560px; width:114px; height:19px; "/>
  1644. <caption id="caption51" class="cell_1" style="left:337px; top:534px; width:99px; height:23px; vertical-align:middle; ">신청자</caption>
  1645. <output id="opt_reqpsnnm" ref="/root/main/gooddet/gooddetlist/reqpsnnm" class="output_fix" appearance="output" style="left:522px; top:536px; width:130px; height:19px; "/>
  1646. <button id="btn_reqpsn" class="icon_search" style="left:503px; top:538px; width:16px; height:16px; ">
  1647. <caption/>
  1648. <script type="javascript" ev:event="DOMActivate">
  1649. <![CDATA[
  1650. /*
  1651. rszfOpenPopUpListByWndName(ipt_reqpsn,"","reqpsn,reqpsnnm","SPZSU10100","","");
  1652. var userinfo = model.getValue(gvParamPath +"/SPZSU10100_/SPZSU10100_value");
  1653. if(userinfo != "" && userinfo != null) {
  1654. userinfo = userinfo.split("|");
  1655. model.setValue(ipt_reqpsn.attribute("ref"),userinfo[0]);
  1656. model.setValue(opt_reqpsnnm.attribute("ref"),userinfo[1]);
  1657. }
  1658. model.refresh();
  1659. */
  1660. var recv_list = "reqpsn,reqpsnnm";
  1661. misfOpenPopUpList("12", ipt_reqpsn,"", recv_list) ;
  1662. model.refresh();
  1663. ]]>
  1664. </script>
  1665. </button>
  1666. <input id="ipt_reqpsn" ref="/root/main/gooddet/gooddetlist/reqpsn" class="input_default" style="left:438px; top:536px; width:60px; height:19px; ">
  1667. <script type="javascript" ev:event="onkeydown">
  1668. <![CDATA[
  1669. if(event.keyCode == 9)
  1670. {
  1671. if(event.shiftKey)model.setFocus("ipt_reqdeptcd");
  1672. else model.setFocus("tar_cmt");
  1673. }
  1674. //event.preventDefault();
  1675. ]]>
  1676. </script>
  1677. </input>
  1678. <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" style="left:226px; top:560px; width:428px; height:19px; ">
  1679. <script type="javascript" ev:event="onkeydown">
  1680. <![CDATA[
  1681. if(event.keyCode == 9)
  1682. {
  1683. if(event.shiftKey)model.setFocus("ipt_nonusetretdd");
  1684. else model.setFocus("cmb_mngtflag");
  1685. }
  1686. //event.preventDefault();
  1687. ]]>
  1688. </script>
  1689. </input>
  1690. <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" style="left:110px; top:584px; width:543px; height:19px; ">
  1691. <script type="javascript" ev:event="onkeydown">
  1692. <![CDATA[
  1693. if(event.keyCode == 9)
  1694. {
  1695. if(event.shiftKey)model.setFocus("ipt_reqpsn");
  1696. else model.setFocus("ipt_lastpurcdd");
  1697. }
  1698. //event.preventDefault();
  1699. ]]>
  1700. </script>
  1701. </textarea>
  1702. <caption id="caption13" class="cell_1" style="left:0px; top:534px; width:108px; height:23px; vertical-align:middle; ">신청부서</caption>
  1703. <caption id="caption5" class="cell_1" style="left:0px; top:558px; width:108px; height:23px; vertical-align:middle; ">코드불용일/사유</caption>
  1704. <button id="btn_reqdeptcd" class="icon_search" style="left:175px; top:538px; width:16px; height:16px; ">
  1705. <caption/>
  1706. <script type="javascript" ev:event="DOMActivate">
  1707. <![CDATA[
  1708. var recv_list = "reqdeptcd,reqdeptnm";
  1709. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
  1710. model.refresh();
  1711. ]]>
  1712. </script>
  1713. </button>
  1714. <caption id="caption49" class="cell_1" style="left:0px; top:510px; width:108px; height:23px; vertical-align:middle; ">월평균예정사용량</caption>
  1715. <caption id="caption17" class="cell_1" style="left:0px; top:582px; width:108px; height:23px; vertical-align:middle; ">비고</caption>
  1716. <output id="opt_reqdeptnm" ref="/root/main/gooddet/gooddetlist/reqdeptnm" class="output_fix" appearance="output" style="left:196px; top:536px; width:130px; height:19px; "/>
  1717. <input id="ipt_reqdeptcd" ref="/root/main/gooddet/gooddetlist/reqdeptcd" class="input_default" style="left:110px; top:536px; width:60px; height:19px; ">
  1718. <script type="javascript" ev:event="xforms-value-changed">
  1719. <![CDATA[
  1720. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  1721. model.refresh();
  1722. model.setFocus("ipt_mmavgusescheqty");
  1723. ]]>
  1724. </script>
  1725. <script type="javascript" ev:event="onkeydown">
  1726. <![CDATA[
  1727. if(event.keyCode == 9)
  1728. {
  1729. if(event.shiftKey)model.setFocus("cmb_mngtflag");
  1730. else model.setFocus("ipt_reqpsn");
  1731. }
  1732. //event.preventDefault();
  1733. ]]>
  1734. </script>
  1735. </input>
  1736. <caption id="caption83" class="cell_1" style="left:329px; top:309px; width:108px; height:23px; vertical-align:middle; ">구코드</caption>
  1737. <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_search" editable="false" maxlength="12" style="left:440px; top:312px; width:214px; height:19px; "/>
  1738. <caption id="caption85" class="cell_1" style="left:0px; top:414px; width:108px; height:23px; vertical-align:middle; ">최소청구량</caption>
  1739. <caption id="caption25" class="cell_1" style="left:240px; top:386px; width:109px; height:23px; vertical-align:middle; ">수불/구매환산수량</caption>
  1740. <caption id="caption24" class="cell_1" style="left:240px; top:362px; width:109px; height:23px; vertical-align:middle; ">수불단위</caption>
  1741. <caption id="caption28" class="cell_1" style="left:469px; top:413px; width:80px; height:23px; vertical-align:middle; ">분할사용수치</caption>
  1742. <caption id="caption3" class="cell_1" style="left:465px; top:362px; width:64px; height:23px; vertical-align:middle; ">구매단위</caption>
  1743. <select1 id="cmb_prcpunit" ref="/root/main/gooddet/gooddetlist/prcpunit" class="combo_essential" appearance="minimal" style="left:110px; top:365px; width:124px; height:19px; text-align:center; ">
  1744. <choices>
  1745. <itemset>
  1746. <label/>
  1747. <value/>
  1748. </itemset>
  1749. </choices>
  1750. <script type="javascript" ev:event="onkeydown">
  1751. <![CDATA[
  1752. if(event.keyCode == 9)
  1753. {
  1754. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1755. else model.setFocus("ipt_exchqty");
  1756. }
  1757. //event.preventDefault();
  1758. ]]>
  1759. </script>
  1760. </select1>
  1761. <caption id="caption4" class="cell_1" style="left:0px; top:386px; width:109px; height:23px; vertical-align:middle; ">처방/수불환산수량</caption>
  1762. <input id="ipt_prcpexchqty" ref="/root/main/gooddet/gooddetlist/prcpexchqty" class="input_essential" format="#,###" style="left:111px; top:388px; width:124px; height:19px; text-align:right; ">
  1763. <script type="javascript" ev:event="onkeydown">
  1764. <![CDATA[
  1765. if(event.keyCode == 9)
  1766. {
  1767. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1768. else model.setFocus("ipt_plceordnonusedd");
  1769. }
  1770. //event.preventDefault();
  1771. ]]>
  1772. </script>
  1773. </input>
  1774. <line id="line15" class="line_1" style="x1:0px; y1:357px; x2:653px; y2:357px; "/>
  1775. <line id="line37" class="line_1" style="x1:0px; y1:409px; x2:653px; y2:409px; "/>
  1776. <select1 id="cmb_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="combo_s_essential" appearance="minimal" style="left:110px; top:98px; width:216px; height:19px; ">
  1777. <choices>
  1778. <itemset>
  1779. <label/>
  1780. <value/>
  1781. </itemset>
  1782. </choices>
  1783. <script type="javascript" ev:event="xforms-value-changed">
  1784. <![CDATA[
  1785. rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  1786. cmb_mdlcd.dispatch("xforms-value-changed");
  1787. model.refresh();
  1788. ]]>
  1789. </script>
  1790. </select1>
  1791. <select1 id="cmb_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="combo_s_essential" appearance="minimal" style="left:440px; top:98px; width:216px; height:19px; ">
  1792. <choices>
  1793. <itemset>
  1794. <label/>
  1795. <value/>
  1796. </itemset>
  1797. </choices>
  1798. <script type="javascript" ev:event="xforms-value-changed">
  1799. <![CDATA[
  1800. rszfLMSComboList(model.getValue("/root/main/gooddet/gooddetlist/goodflag"), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S", "", "Y");
  1801. model.refresh();
  1802. ]]>
  1803. </script>
  1804. </select1>
  1805. <select1 id="cmb_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" appearance="minimal" style="left:110px; top:123px; width:216px; height:19px; ">
  1806. <choices>
  1807. <itemset>
  1808. <label/>
  1809. <value/>
  1810. </itemset>
  1811. </choices>
  1812. </select1>
  1813. <caption id="caption6" class="cell_1" style="left:330px; top:121px; width:108px; height:23px; vertical-align:middle; ">EDI코드/수가여부</caption>
  1814. <input id="ipt_edicd" ref="/root/main/gooddet/gooddetlist/edicd" _chartype="upper" style="left:440px; top:123px; width:120px; height:19px; "/>
  1815. <select1 id="rdo_insuyn" ref="/root/main/gooddet/gooddetlist/insuyn" overflow="visible" appearance="full" cols="2" style="left:566px; top:124px; width:85px; height:20px; background-color:transparent; border-style:none; ">
  1816. <choices>
  1817. <itemset nodeset="/root/init/insuyn">
  1818. <label ref="label"/>
  1819. <value ref="value"/>
  1820. </itemset>
  1821. </choices>
  1822. <script type="javascript" ev:event="onkeydown">
  1823. <![CDATA[
  1824. if(event.keyCode == 9)
  1825. {
  1826. if(event.shiftKey)model.setFocus("ipt_addtaxrate");
  1827. else model.setFocus("ipt_addtaxrate");
  1828. }
  1829. //event.preventDefault();
  1830. ]]>
  1831. </script>
  1832. </select1>
  1833. <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:219px; top:266px; width:107px; height:19px; "/>
  1834. <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:545px; top:267px; width:111px; height:19px; "/>
  1835. <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_essential" style="left:111px; top:265px; width:85px; height:19px; ">
  1836. <script type="javascript" ev:event="xforms-value-changed">
  1837. <![CDATA[
  1838. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
  1839. model.refresh();
  1840. model.setFocus("ipt_suppcustcd");
  1841. ]]>
  1842. </script>
  1843. <script type="javascript" ev:event="onkeydown">
  1844. <![CDATA[
  1845. if(event.keyCode == 9)
  1846. {
  1847. if(event.shiftKey)model.setFocus("cmb_purcflag");
  1848. else model.setFocus("ipt_suppcustcd");
  1849. }
  1850. //event.preventDefault();
  1851. ]]>
  1852. </script>
  1853. </input>
  1854. <caption id="caption40" class="cell_1" style="left:330px; top:240px; width:108px; height:23px; vertical-align:middle; ">구매구분</caption>
  1855. <button id="btn_suppcustcd" class="icon_search" style="left:526px; top:269px; width:16px; height:16px; ">
  1856. <caption/>
  1857. <script type="javascript" ev:event="DOMActivate">
  1858. <![CDATA[
  1859. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
  1860. model.refresh();
  1861. ]]>
  1862. </script>
  1863. </button>
  1864. <caption id="caption31" class="tit_2" style="left:6px; top:171px; width:69px; height:13px; ">구매정보</caption>
  1865. <caption id="caption43" class="cell_1" style="left:1px; top:240px; width:108px; height:23px; vertical-align:middle; ">최종구매일자</caption>
  1866. <input id="ipt_lastpurcdd" ref="/root/main/gooddet/gooddetlist/lastpurcdd" class="input_default" inputtype="date" style="left:111px; top:241px; width:216px; height:19px; ">
  1867. <script type="javascript" ev:event="onkeydown">
  1868. <![CDATA[
  1869. if(event.keyCode == 9)
  1870. {
  1871. if(event.shiftKey)model.setFocus("tar_cmt");
  1872. else model.setFocus("cmb_purcflag");
  1873. }
  1874. //event.preventDefault();
  1875. ]]>
  1876. </script>
  1877. </input>
  1878. <line id="line26" class="line_1" style="x1:1px; y1:185px; x2:654px; y2:185px; "/>
  1879. <line id="line27" class="line_3" style="x1:1px; y1:287px; x2:654px; y2:287px; "/>
  1880. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:200px; top:267px; width:16px; height:16px; ">
  1881. <caption/>
  1882. <script type="javascript" ev:event="DOMActivate">
  1883. <![CDATA[
  1884. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  1885. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd");
  1886. model.refresh();
  1887. ]]>
  1888. </script>
  1889. </button>
  1890. <caption id="caption37" class="cell_1" style="left:330px; top:264px; width:108px; height:23px; vertical-align:middle; ">보조거래처</caption>
  1891. <select1 id="cmb_purcflag" ref="/root/main/gooddet/gooddetlist/purcflag" class="combo_essential" appearance="minimal" style="left:441px; top:241px; width:214px; height:19px; ">
  1892. <choices>
  1893. <itemset nodeset="/root/init/purcflag">
  1894. <label ref="cdnm"/>
  1895. <value ref="cdid"/>
  1896. </itemset>
  1897. </choices>
  1898. <script type="javascript" ev:event="onkeydown">
  1899. <![CDATA[
  1900. if(event.keyCode == 9)
  1901. {
  1902. if(event.shiftKey)model.setFocus("cmb_purcflag");
  1903. else model.setFocus("ipt_maincustlastsuplplce");
  1904. }
  1905. //event.preventDefault();
  1906. ]]>
  1907. </script>
  1908. </select1>
  1909. <caption id="caption27" class="cell_1" style="left:1px; top:264px; width:108px; height:23px; vertical-align:middle; ">주거래처</caption>
  1910. <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_essential" style="left:441px; top:267px; width:80px; height:19px; ">
  1911. <script type="javascript" ev:event="xforms-value-changed">
  1912. <![CDATA[
  1913. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
  1914. model.refresh();
  1915. ]]>
  1916. </script>
  1917. <script type="javascript" ev:event="onkeydown">
  1918. <![CDATA[
  1919. if(event.keyCode == 9)
  1920. {
  1921. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  1922. else model.setFocus("cmb_conflag");
  1923. }
  1924. //event.preventDefault();
  1925. ]]>
  1926. </script>
  1927. </input>
  1928. <input id="ipt_estmamt" ref="/root/main/gooddet/gooddetlist/estmamt" class="input_default" maxlength="14.2" format="#,###.00" style="left:246px; top:192px; width:80px; height:19px; text-align:right; ">
  1929. <script type="javascript" ev:event="onkeydown">
  1930. <![CDATA[
  1931. if(event.keyCode == 9)
  1932. {
  1933. if(event.shiftKey)model.setFocus("ipt_toconterm");
  1934. else model.setFocus("ipt_forgncurncyunitcost");
  1935. }
  1936. //event.preventDefault();
  1937. ]]>
  1938. </script>
  1939. </input>
  1940. <caption id="caption62" class="cell_1" style="left:493px; top:191px; width:80px; height:23px; vertical-align:middle; ">화폐단위</caption>
  1941. <caption id="caption41" class="cell_1" style="left:194px; top:216px; width:88px; height:23px; vertical-align:middle; ">계약구분/기간</caption>
  1942. <caption id="caption63" class="search_no_b" style="left:543px; top:218px; width:12px; height:17px; ">~</caption>
  1943. <input id="ipt_forgncurncyunitcost" ref="/root/main/gooddet/gooddetlist/forgncurncyunitcost" class="input_default" maxlength="14.2" format="#,###.00" style="left:410px; top:193px; width:80px; height:19px; text-align:right; ">
  1944. <script type="javascript" ev:event="onkeydown">
  1945. <![CDATA[
  1946. if(event.keyCode == 9)
  1947. {
  1948. if(event.shiftKey)model.setFocus("ipt_estmamt");
  1949. else model.setFocus("cmb_curncyunit");
  1950. }
  1951. //event.preventDefault();
  1952. ]]>
  1953. </script>
  1954. </input>
  1955. <line id="line17" class="line_2" style="x1:1px; y1:214px; x2:654px; y2:214px; "/>
  1956. <caption id="caption57" class="cell_1" style="left:193px; top:191px; width:50px; height:23px; vertical-align:middle; ">견적가</caption>
  1957. <select1 id="cmb_conflag" ref="/root/main/gooddet/gooddetlist/conflag" class="combo_default" appearance="minimal" style="left:285px; top:217px; width:145px; height:19px; ">
  1958. <choices>
  1959. <itemset nodeset="/root/init/conflag">
  1960. <label ref="cdnm"/>
  1961. <value ref="cdid"/>
  1962. </itemset>
  1963. </choices>
  1964. <script type="javascript" ev:event="onkeydown">
  1965. <![CDATA[
  1966. if(event.keyCode == 9)
  1967. {
  1968. if(event.shiftKey)model.setFocus("ipt_suppcustcd");
  1969. else model.setFocus("ipt_fromconterm");
  1970. }
  1971. //event.preventDefault();
  1972. ]]>
  1973. </script>
  1974. </select1>
  1975. <caption id="caption58" class="cell_1" style="left:328px; top:191px; width:80px; height:23px; vertical-align:middle; ">외화단가</caption>
  1976. <line id="line29" class="line_2" style="x1:1px; y1:238px; x2:654px; y2:238px; "/>
  1977. <select1 id="cmb_curncyunit" ref="/root/main/gooddet/gooddetlist/curncyunit" class="combo_default" appearance="minimal" style="left:575px; top:193px; width:80px; height:19px; ">
  1978. <choices>
  1979. <itemset nodeset="/root/init/curncyunit">
  1980. <label ref="cdnm"/>
  1981. <value ref="cdid"/>
  1982. </itemset>
  1983. </choices>
  1984. <script type="javascript" ev:event="onkeydown">
  1985. <![CDATA[
  1986. if(event.keyCode == 9)
  1987. {
  1988. if(event.shiftKey)model.setFocus("ipt_forgncurncyunitcost");
  1989. else model.setFocus("ipt_goodunitcost");
  1990. }
  1991. //event.preventDefault();
  1992. ]]>
  1993. </script>
  1994. </select1>
  1995. <input id="ipt_fromconterm" ref="/root/main/gooddet/gooddetlist/fromconterm" class="input_search" inputtype="date" style="left:441px; top:217px; width:98px; height:19px; ">
  1996. <script type="javascript" ev:event="xforms-value-changed">
  1997. <![CDATA[
  1998. if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  1999. {
  2000. messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  2001. model.setFocus("ipt_fromconterm");
  2002. }
  2003. ]]>
  2004. </script>
  2005. <script type="javascript" ev:event="onkeydown">
  2006. <![CDATA[
  2007. if(event.keyCode == 9)
  2008. {
  2009. if(event.shiftKey)model.setFocus("cmb_conflag");
  2010. else model.setFocus("ipt_toconterm");
  2011. }
  2012. //event.preventDefault();
  2013. ]]>
  2014. </script>
  2015. </input>
  2016. <input id="ipt_toconterm" ref="/root/main/gooddet/gooddetlist/toconterm" class="input_search" inputtype="date" style="left:557px; top:217px; width:98px; height:19px; ">
  2017. <script type="javascript" ev:event="xforms-value-changed">
  2018. <![CDATA[
  2019. if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  2020. {
  2021. messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  2022. model.setFocus("ipt_toconterm");
  2023. }
  2024. ]]>
  2025. </script>
  2026. <script type="javascript" ev:event="onkeydown">
  2027. <![CDATA[
  2028. if(event.keyCode == 9)
  2029. {
  2030. if(event.shiftKey)model.setFocus("ipt_fromconterm");
  2031. else model.setFocus("ipt_estmamt");
  2032. }
  2033. //event.preventDefault();
  2034. ]]>
  2035. </script>
  2036. </input>
  2037. <input id="ipt_addtaxrate" ref="/root/main/gooddet/gooddetlist/addtaxrate" class="input_default" style="left:111px; top:217px; width:79px; height:19px; ">
  2038. <script type="javascript" ev:event="onkeydown">
  2039. <![CDATA[
  2040. if(event.keyCode == 9)
  2041. {
  2042. if(event.shiftKey)model.setFocus("rdo_reqflag");
  2043. else model.setFocus("ipt_plceordnonusedd");
  2044. }
  2045. //event.preventDefault();
  2046. ]]>
  2047. </script>
  2048. </input>
  2049. <caption id="caption67" class="cell_1" style="left:1px; top:190px; width:108px; height:23px; vertical-align:middle; ">제품단가</caption>
  2050. <caption id="caption46" class="cell_1" style="left:1px; top:215px; width:108px; height:23px; vertical-align:middle; ">부가세율</caption>
  2051. <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" maxlength="14.2" format="#,###.00" style="left:111px; top:192px; width:79px; height:19px; text-align:right; ">
  2052. <script type="javascript" ev:event="onkeydown">
  2053. <![CDATA[
  2054. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2055. //event.preventDefault();
  2056. ]]>
  2057. </script>
  2058. </input>
  2059. <select id="checkbox1" ref="/root/main/gooddet/gooddetlist/mngtflag" overflow="visible" appearance="full" style="left:258px; top:489px; width:70px; height:20px; border-style:none; ">
  2060. <choices>
  2061. <item>
  2062. <label>SET여부</label>
  2063. <value>S</value>
  2064. </item>
  2065. </choices>
  2066. <script type="javascript" ev:event="onkeydown">
  2067. <![CDATA[
  2068. if(event.keyCode == 9)
  2069. {
  2070. if(event.shiftKey)model.setFocus("ipt_minexch");
  2071. else model.setFocus("ipt_goodhngnm");
  2072. }
  2073. //event.preventDefault();
  2074. ]]>
  2075. </script>
  2076. </select>
  2077. </group>
  2078. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  2079. <caption id="caption10" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">물품코드등록</caption>
  2080. </group>
  2081. <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" visibility="hidden" caption="물품코드^todd^prefromdd^기관코드^사용여부^fromdd^물품구분^goodnm^영문명^물품명^물품규격^모델^규격^모델^자산구분(R0043)^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^제제약SET구분^계정코드^계정명^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^재고관리기준^입고단위^수불단위^환산배수^최소환산수량^재사용여부^분할사용수치^수가정보등록상태^수가정보등록일자^EDI코드^신청부서코드^신청부서명^신청자ID^신청자명^청구기준^청구구분^청구방법^청구주기^제조국^제조회사코드^제조회사명^최종공급처^최종공급처명^보조거래처코드^보조거래처명^계약구분^계약기간From^계약기간To^견적가^외화단가^화폐단위^제품단가^구매구분^ALL SIZE 유무^SET 발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^규제약품여부^고가여부^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^임시청구구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colwidth="123, 61, 123, 92, 81, 92, 92, 92, 123, 61, 230, 153, 153, 153, 199, 123, 123, 214, 214, 199, 184, 123, 123, 123, 184, 153, 184, 245, 245, 123, 107, 184, 184, 123, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 153, 92, 123, 123, 123, 123, 199, 184, 123, 214, 184, 123, 184, 184, 123, 184, 184, 199, 123, 123, 123, 123, 123, 184, 199, 123, 123, 138, 153, 61, 61, 184, 61, 245, 153, 184, 245, 184, 245, 184, 184" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:25px; top:190px; width:385px; height:90px; ">
  2082. <!-- <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" caption="물품코드^todd^prefromdd^기관코드^사용여부^fromdd^물품구분^goodnm^영문명^물품명^물품규격^모델^규격^모델^자산구분(R0043)^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^제제약SET구분^계정코드^계정명^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^재고관리기준^입고단위^수불단위^환산배수^최소환산수량^재사용여부^분할사용수치^수가정보등록상태^수가정보등록일자^EDI코드^신청부서코드^신청부서명^신청자ID^신청자명^청구기준^청구구분^청구방법^청구주기^제조국^제조회사코드^제조회사명^최종공급처^최종공급처명^보조거래처코드^보조거래처명^계약구분^계약기간From^계약기간To^견적가^외화단가^화폐단위^제품단가^구매구분^ALL SIZE 유무^SET 발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^규제약품여부^고가여부^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^임시청구구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="123, 61, 123, 92, 81, 92, 92, 92, 123, 61, 230, 153, 153, 153, 199, 123, 123, 214, 214, 199, 184, 123, 123, 123, 184, 153, 184, 245, 245, 123, 107, 184, 184, 123, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 153, 92, 123, 123, 123, 123, 199, 184, 123, 214, 184, 123, 184, 184, 123, 184, 184, 199, 123, 123, 123, 123, 123, 184, 199, 123, 123, 138, 153, 61, 61, 184, 61, 245, 153, 184, 245, 184, 245, 184, 184" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:35px; top:290px; width:385px; height:90px; "> -->
  2083. <col ref="goodcd" _key="true"/>
  2084. <col ref="todd" _key="true"/>
  2085. <col ref="prefromdd"/>
  2086. <col ref="instcd" _key="true"/>
  2087. <col ref="useyn"/>
  2088. <col ref="fromdd"/>
  2089. <col ref="goodflag"/>
  2090. <col ref="goodnm"/>
  2091. <col ref="goodhngnm"/>
  2092. <col ref="goodengnm"/>
  2093. <col ref="goodspec"/>
  2094. <col ref="goodmodel"/>
  2095. <col ref="pregoodspec"/>
  2096. <col ref="pregoodmodel"/>
  2097. <col ref="asetflag" _key="true"/>
  2098. <col ref="lrgcd" _key="true"/>
  2099. <col ref="lrgnm"/>
  2100. <col ref="mdlcd"/>
  2101. <col ref="mdlnm"/>
  2102. <col ref="smlcd"/>
  2103. <col ref="smlnm"/>
  2104. <col ref="proddrugsetflag"/>
  2105. <col ref="winacnt" _key="true"/>
  2106. <col ref="winacntnm"/>
  2107. <col ref="amtacnt"/>
  2108. <col ref="amtacntnm"/>
  2109. <col ref="mainmngtdeptcd" _key="true"/>
  2110. <col ref="mainmngtdeptnm"/>
  2111. <col ref="mainusedeptcd"/>
  2112. <col ref="stocmngtflag"/>
  2113. <col ref="purcunit"/>
  2114. <col ref="deliveunit"/>
  2115. <col ref="exchqty"/>
  2116. <col ref="minexch"/>
  2117. <col ref="reuseyn"/>
  2118. <col ref="divusenvalqty"/>
  2119. <col ref="calcscorinfoacptstat"/>
  2120. <col ref="calcscorinfoacptdd"/>
  2121. <col ref="edicd"/>
  2122. <col ref="reqdeptcd"/>
  2123. <col ref="reqdeptnm"/>
  2124. <col ref="reqpsn"/>
  2125. <col ref="reqpsnnm"/>
  2126. <col ref="reqflag"/>
  2127. <col ref="reqflagnm"/>
  2128. <col ref="reqmthd" _key="true"/>
  2129. <col ref="reqprid"/>
  2130. <col ref="prodplce"/>
  2131. <col ref="prodcmpycd"/>
  2132. <col ref="prodcmpynm"/>
  2133. <col ref="maincustlastsuplplce" _key="true"/>
  2134. <col ref="maincustlastsuplplcenm"/>
  2135. <col ref="suppcustcd"/>
  2136. <col ref="suppcustnm"/>
  2137. <col ref="conflag"/>
  2138. <col ref="fromconterm"/>
  2139. <col ref="toconterm"/>
  2140. <col ref="estmamt"/>
  2141. <col ref="forgncurncyunitcost"/>
  2142. <col ref="curncyunit"/>
  2143. <col ref="goodunitcost"/>
  2144. <col ref="purcflag"/>
  2145. <col ref="allsizeyn"/>
  2146. <col ref="setplceordflag"/>
  2147. <col ref="plceordbase"/>
  2148. <col ref="plceordqtycretflag"/>
  2149. <col ref="plceordnonusedd"/>
  2150. <col ref="addtaxrate"/>
  2151. <col ref="lastpurcdd"/>
  2152. <col ref="nonusetretresn"/>
  2153. <col ref="mngtflag"/>
  2154. <col ref="expnyn"/>
  2155. <col ref="cmt"/>
  2156. <col ref="ddavguseqty"/>
  2157. <col ref="mmavgusescheqty"/>
  2158. <col ref="mmavguseqty"/>
  2159. <col ref="prprtystocpossndayno"/>
  2160. <col ref="tmpreqflag"/>
  2161. <col ref="oldcd"/>
  2162. <col ref="prcpunit"/>
  2163. <col ref="prcpexchqty"/>
  2164. <col ref="insucost"/>
  2165. <col ref="specunit"/>
  2166. <col ref="pemtkeepmthd"/>
  2167. <col ref="comnm"/>
  2168. <col ref="insuyn"/>
  2169. </datagrid>
  2170. <group id="group4" visibility="visible" style="left:0px; top:12px; width:1195px; height:27px; ">
  2171. <line id="line20" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  2172. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  2173. <caption>저장</caption>
  2174. <script type="javascript" ev:event="DOMActivate">
  2175. <![CDATA[
  2176. if(fCheckSaveData() == false)return;
  2177. fSetDataCopy();
  2178. model.refresh();
  2179. misfSave("TXRSC05302");
  2180. if (model.getValue(gvErrorMsgPath + "/type") != "error" && grd_goodlist.row > 0 )fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
  2181. /*
  2182. {
  2183. submit("TRRSC05301");
  2184. grd_goodlist.clearStatus();
  2185. }
  2186. */
  2187. ]]>
  2188. </script>
  2189. </button>
  2190. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  2191. <caption>초기화</caption>
  2192. <script type="javascript" ev:event="DOMActivate">
  2193. <![CDATA[
  2194. fInitialize();
  2195. ]]>
  2196. </script>
  2197. </button>
  2198. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
  2199. <caption>화면이동</caption>
  2200. </button>
  2201. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  2202. <caption>출력</caption>
  2203. </button>
  2204. <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:825px; top:4px; width:100px; height:19px; "/>
  2205. <output id="opt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:723px; top:4px; width:100px; height:19px; "/>
  2206. <button id="btn_sgsave" class="btn4_letter4" style="left:989px; top:3px; width:80px; height:22px; ">
  2207. <caption>수가전송</caption>
  2208. <script type="javascript" ev:event="DOMActivate">
  2209. <![CDATA[
  2210. if (messageBox("수가전송을", "Q004") != 7) {
  2211. if(grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 1)
  2212. {
  2213. messageBox("전송할 Data가 없습니다. 조회 후 다시 실행하세요.", "I999");
  2214. return;
  2215. }
  2216. if(fCheckSaveData() == false)return;
  2217. fSetDataCopy();
  2218. model.refresh();
  2219. if( grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 2)
  2220. {
  2221. messageBox("변경된 Data 가 있어 수가전송작업을 중단하겠습니다.\n 변경된 Data는 모두 복구됩니다.", "I999");
  2222. fRetrGoodList(false);
  2223. return;
  2224. }
  2225. submit("TXRSC05303");
  2226. messageBox("수가전송이 완료되었습니다.", "I999");
  2227. //if (model.getValue(gvErrorMsgPath + "/type") != "error" && grd_goodlist.row > 0 )fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
  2228. }
  2229. ]]>
  2230. </script>
  2231. </button>
  2232. <output id="output1" ref="/root/main/gooddet/gooddetlist/asetflag" visibility="hidden" style="left:595px; top:5px; width:100px; height:19px; "/>
  2233. </group>
  2234. <datagrid id="grd_excelgooddetlist" nodeset="/root/main/list/gooddet/excelgooddetlist" visibility="hidden" caption="기관명^물품코드^물품명^물품명(한글)^물품명(영문)^규격^모델명^제조국^제조회사코드^제조회사명^대분류^중분류^소분류^EDI코드^수가여부^입고계정코드^입고계정명^비용계정^비용계정명^적용일자^구코드^관리부서코드^관리부서명^청구구분^청구구분명^처방단위^처방/수불환산수량^구매단위^수불/구매환산수량^수불단위^최소청구량^분할사용여부^분할사용수치^재고관리기준^청구주기^청구주기명^청구방법구분^청구방법구분명^임의청구구분^SET발주구분^SET구분^월평균예정사용량^ALL SIZE 유무^신청부서코드^신청부서명^신청자코드^신청자명^코드불용일^코드불용사유^비고^최종구매일자^구매구분^구매구분명^주거래처코드^주거래처명^보조거래처코드^보조거래처명^계약구분^계약기간 from^계약기간 to^부가세율^견적가^외화단가^화폐단위^제품단가" colwidth="100, 123, 61, 123, 92, 81, 92, 92, 92, 123, 61, 230, 153, 153, 153, 199, 123, 123, 214, 139, 199, 184, 123, 123, 100, 123, 184, 75, 184, 108, 245, 89, 107, 184, 184, 100, 123, 105, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 110, 92, 123, 123, 100, 123, 123, 199, 184, 123, 149, 136, 123, 184, 184, 123, 184" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:25px; top:240px; width:470px; height:95px; ">
  2235. <col ref="instnm"/>
  2236. <col ref="goodcd"/>
  2237. <col ref="goodnm"/>
  2238. <col ref="goodhngnm"/>
  2239. <col ref="goodengnm"/>
  2240. <col ref="goodspec"/>
  2241. <col ref="goodmodel"/>
  2242. <col ref="prodplce"/>
  2243. <col ref="prodcmpycd"/>
  2244. <col ref="prodcmpynm"/>
  2245. <col ref="lrgcd"/>
  2246. <col ref="mdlcd"/>
  2247. <col ref="smlcd"/>
  2248. <col ref="edicd"/>
  2249. <col ref="insuyn"/>
  2250. <col ref="winacnt"/>
  2251. <col ref="winacntnm"/>
  2252. <col ref="amtacnt"/>
  2253. <col ref="amtacntnm"/>
  2254. <col ref="fromdd" format="yyyy-mm-dd"/>
  2255. <col ref="oldcd"/>
  2256. <col ref="mainmngtdeptcd"/>
  2257. <col ref="mainmngtdeptnm"/>
  2258. <col ref="reqflag"/>
  2259. <col ref="reqflagnm"/>
  2260. <col ref="prcpunit"/>
  2261. <col ref="prcpexchqty" format="#,###"/>
  2262. <col ref="purcunit"/>
  2263. <col ref="exchqty" format="#,###"/>
  2264. <col ref="deliveunit"/>
  2265. <col ref="minexch" format="#,###"/>
  2266. <col ref="reuseyn"/>
  2267. <col ref="divusenvalqty" format="#,###"/>
  2268. <col ref="stocmngtflag"/>
  2269. <col ref="reqprid"/>
  2270. <col ref="reqpridnm"/>
  2271. <col ref="reqmthd"/>
  2272. <col ref="reqmthdnm"/>
  2273. <col ref="tmpreqflag"/>
  2274. <col ref="setplceordflag"/>
  2275. <col ref="proddrugsetflag"/>
  2276. <col ref="mmavgusescheqty" format="#,###"/>
  2277. <col ref="allsizeyn"/>
  2278. <col ref="reqdeptcd"/>
  2279. <col ref="reqdeptnm"/>
  2280. <col ref="reqpsn"/>
  2281. <col ref="reqpsnnm"/>
  2282. <col ref="todd" format="yyyy-mm-dd"/>
  2283. <col ref="nonusetretresn"/>
  2284. <col ref="cmt"/>
  2285. <col ref="lastpurcdd" format="yyyy-mm-dd"/>
  2286. <col ref="purcflag"/>
  2287. <col ref="purcflagnm"/>
  2288. <col ref="maincustlastsuplplce"/>
  2289. <col ref="maincustlastsuplplcenm"/>
  2290. <col ref="suppcustcd"/>
  2291. <col ref="suppcustnm"/>
  2292. <col ref="conflag"/>
  2293. <col ref="fromconterm" format="yyyy-mm-dd"/>
  2294. <col ref="toconterm" format="yyyy-mm-dd"/>
  2295. <col ref="addtaxrate" format="#,###"/>
  2296. <col ref="estmamt" format="#,###"/>
  2297. <col ref="forgncurncyunitcost" format="#,###"/>
  2298. <col ref="curncyunit"/>
  2299. <col ref="goodunitcost" format="#,###"/>
  2300. </datagrid>
  2301. </xhtml:body>
  2302. </xhtml:html>