SMRSC03800_물품코드Excel등록.xrw 128 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>물품코드 일괄등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodexcelmap>
  12. <goodexcelmaplist/>
  13. </goodexcelmap>
  14. <rscdexcel>
  15. <rscdexcellist/>
  16. </rscdexcel>
  17. <orimasterlist>
  18. <old_fromdd/>
  19. <old_goodcd/>
  20. <old_oldcd/>
  21. <old_bnscd/>
  22. <old_goodnm/>
  23. <old_gnrlspcl/>
  24. <old_welfprt/>
  25. <old_prodcmpycd/>
  26. <old_prodcmpynm/>
  27. <old_edicd/>
  28. <old_suppcustcd/>
  29. <old_suppcustnm/>
  30. <old_reqflag/>
  31. <old_com/>
  32. <old_comnm/>
  33. <old_lrgnm/>
  34. <old_mdlnm/>
  35. <old_smlnm/>
  36. <old_winacnt/>
  37. <old_winacntnm/>
  38. <old_amtacnt/>
  39. <old_amtacntnm/>
  40. <old_keepmthd/>
  41. <old_pemtkeepmthd/>
  42. <old_cntsqty/>
  43. <old_cntsunit/>
  44. <old_specvol/>
  45. <old_specunit/>
  46. <old_prcpqty/>
  47. <old_prcpunit/>
  48. <old_prcpexchqty/>
  49. <old_exchqty/>
  50. <old_deliveunit/>
  51. <old_purcunit/>
  52. <old_insucost/>
  53. <old_estmamt/>
  54. <old_goodunitcost/>
  55. <old_goodpurccost/>
  56. </orimasterlist>
  57. <newmasterlist>
  58. <fromdd/>
  59. <goodcd/>
  60. <oldcd/>
  61. <bnscd/>
  62. <goodnm/>
  63. <gnrlspcl/>
  64. <welfprt/>
  65. <prodcmpycd/>
  66. <prodcmpynm/>
  67. <edicd/>
  68. <suppcustcd/>
  69. <suppcustnm/>
  70. <reqflag/>
  71. <com/>
  72. <comnm/>
  73. <lrgcd/>
  74. <mdlcd/>
  75. <smlcd/>
  76. <winacnt/>
  77. <winacntnm/>
  78. <amtacnt/>
  79. <amtacntnm/>
  80. <keepmthd/>
  81. <pemtkeepmthd/>
  82. <cntsqty/>
  83. <cntsunit/>
  84. <specvol/>
  85. <specunit/>
  86. <prcpqty/>
  87. <prcpunit/>
  88. <prcpexchqty/>
  89. <exchqty/>
  90. <deliveunit/>
  91. <purcunit/>
  92. <insucost/>
  93. <estmamt/>
  94. <goodunitcost/>
  95. <goodpurccost/>
  96. <inprodcmpynm/>
  97. <insuppcustcd/>
  98. <insuppcustnm/>
  99. <lrgnm/>
  100. <mdlnm/>
  101. <smlnm/>
  102. </newmasterlist>
  103. </list>
  104. </main>
  105. <target>
  106. <defaultvalue/>
  107. </target>
  108. <init>
  109. <keepmthd>
  110. <label>실온</label>
  111. <value>1</value>
  112. <label>냉소</label>
  113. <value>2</value>
  114. <label>냉장</label>
  115. <value>3</value>
  116. <label>냉동</label>
  117. <value>4</value>
  118. </keepmthd>
  119. <gnrlspcl>
  120. <label>전문</label>
  121. <value>1</value>
  122. <label>일반</label>
  123. <value>2</value>
  124. <label>공산품</label>
  125. <value>3</value>
  126. <label>의약외품</label>
  127. <value>4</value>
  128. <label>기타</label>
  129. <value>5</value>
  130. </gnrlspcl>
  131. <useyn>
  132. <label>사용</label>
  133. <value>Y</value>
  134. <label>불용</label>
  135. <value>N</value>
  136. </useyn>
  137. <popmenu>
  138. <grd_excelmaplist>
  139. <item>
  140. <name>품명일괄변경</name>
  141. <func>fSetGoodnm</func>
  142. </item>
  143. <item>
  144. <name>규격일괄변경</name>
  145. <func>fSetGoodSpec</func>
  146. </item>
  147. <item>
  148. <name>모델일괄변경</name>
  149. <func>fSetGoodModel</func>
  150. </item>
  151. <item>
  152. <name>제조회사일괄변경</name>
  153. <func>fSetGoodProdCmpy</func>
  154. </item>
  155. <item>
  156. <name>-</name>
  157. <func/>
  158. </item>
  159. <item>
  160. <name>포장단위일괄변경</name>
  161. <func>fSetPurcUnit</func>
  162. </item>
  163. <item>
  164. <name>환산수량일괄변경</name>
  165. <func>fSetExchQty</func>
  166. </item>
  167. <item>
  168. <name>수불단위일괄변경</name>
  169. <func>fSetDeliveUnit</func>
  170. </item>
  171. <item>
  172. <name>-</name>
  173. <func/>
  174. </item>
  175. <item>
  176. <name>단가일괄변경</name>
  177. <func>fSetGoodUnitCost</func>
  178. </item>
  179. <item>
  180. <name>-</name>
  181. <func/>
  182. </item>
  183. <item>
  184. <name>주거래처일괄변경</name>
  185. <func>fSetMainCustLastSuplplce</func>
  186. </item>
  187. <item>
  188. <name>판매회사일괄변경</name>
  189. <func>fSetSuppCustCd</func>
  190. </item>
  191. <item>
  192. <name>-</name>
  193. <func/>
  194. </item>
  195. <item>
  196. <name>분류코드일괄변경</name>
  197. <func>fSetLargeCd</func>
  198. </item>
  199. </grd_excelmaplist>
  200. </popmenu>
  201. <popinputcd/>
  202. <popinputnm/>
  203. <poptitle/>
  204. <popcond/>
  205. <popformat/>
  206. <purcunit/>
  207. <prcpunit/>
  208. <iopsnflag>
  209. <label>내자</label>
  210. <value>1</value>
  211. <label>외자</label>
  212. <value>2</value>
  213. </iopsnflag>
  214. <lrgcd/>
  215. <mdlcd/>
  216. <smlcd/>
  217. <workflag>
  218. <label>전체</label>
  219. <value/>
  220. <label>신규</label>
  221. <value>I</value>
  222. <label>변경</label>
  223. <value>U</value>
  224. </workflag>
  225. <saveyn>
  226. <label>전체</label>
  227. <value/>
  228. <label>저장</label>
  229. <value>Y</value>
  230. <label>미저장</label>
  231. <value>N</value>
  232. </saveyn>
  233. <delyn>
  234. <label>전체</label>
  235. <value/>
  236. <label>삭제</label>
  237. <value>Y</value>
  238. <label>미삭제</label>
  239. <value>N</value>
  240. </delyn>
  241. <ifflag>
  242. <label>Excel</label>
  243. <value>E</value>
  244. <label>보나에스</label>
  245. <value>I</value>
  246. </ifflag>
  247. <multiwork>
  248. <label> 세부내역 확인</label>
  249. <value>Y</value>
  250. </multiwork>
  251. </init>
  252. <send>
  253. <save>
  254. <rscdexcellist/>
  255. <goodexcelmaplist>
  256. <setautoins>
  257. <setyn>N</setyn>
  258. <insfromdd/>
  259. </setautoins>
  260. </goodexcelmaplist>
  261. </save>
  262. <searchlist>
  263. <instcd/>
  264. <goodflag/>
  265. <workflag/>
  266. <saveyn/>
  267. <delyn/>
  268. <ifflag/>
  269. <multiwork/>
  270. </searchlist>
  271. <orimasterlist>
  272. <instcd/>
  273. <goodflag/>
  274. <fromdd/>
  275. <goodcd/>
  276. </orimasterlist>
  277. </send>
  278. <temp>
  279. <uploadcnt/>
  280. </temp>
  281. </root>
  282. </instance>
  283. <bind id="bind1" ref="/root/main/list/goodexcelmap/goodexcelmaplist/workflag" readonly="../saveyn = 'Y'"/>
  284. <bind id="bind2" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodcd" readonly="../saveyn = 'Y'"/>
  285. <bind id="bind3" ref="/root/main/list/goodexcelmap/goodexcelmaplist/fromdd" readonly="../saveyn = 'Y'"/>
  286. <bind id="bind4" ref="/root/main/list/goodexcelmap/goodexcelmaplist/instcd" readonly="../saveyn = 'Y'"/>
  287. <bind id="bind5" ref="/root/main/list/goodexcelmap/goodexcelmaplist/todd" readonly="../saveyn = 'Y'"/>
  288. <bind id="bind6" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodnm" readonly="../saveyn = 'Y'"/>
  289. <bind id="bind7" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodengnm" readonly="../saveyn = 'Y'"/>
  290. <bind id="bind8" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodspec" readonly="../saveyn = 'Y'"/>
  291. <bind id="bind9" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodmodel" readonly="../saveyn = 'Y'"/>
  292. <bind id="bind10" ref="/root/main/list/goodexcelmap/goodexcelmaplist/lrgcd" readonly="../saveyn = 'Y'"/>
  293. <bind id="bind11" ref="/root/main/list/goodexcelmap/goodexcelmaplist/lrgnm" readonly="../saveyn = 'Y'"/>
  294. <bind id="bind12" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mdlcd" readonly="../saveyn = 'Y'"/>
  295. <bind id="bind13" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mdlnm" readonly="../saveyn = 'Y'"/>
  296. <bind id="bind14" ref="/root/main/list/goodexcelmap/goodexcelmaplist/smlcd" readonly="../saveyn = 'Y'"/>
  297. <bind id="bind15" ref="/root/main/list/goodexcelmap/goodexcelmaplist/smlnm" readonly="../saveyn = 'Y'"/>
  298. <bind id="bind16" ref="/root/main/list/goodexcelmap/goodexcelmaplist/oldcd" readonly="../saveyn = 'Y'"/>
  299. <bind id="bind17" ref="/root/main/list/goodexcelmap/goodexcelmaplist/winacnt" readonly="../saveyn = 'Y'"/>
  300. <bind id="bind18" ref="/root/main/list/goodexcelmap/goodexcelmaplist/winacntnm" readonly="../saveyn = 'Y'"/>
  301. <bind id="bind19" ref="/root/main/list/goodexcelmap/goodexcelmaplist/amtacnt" readonly="../saveyn = 'Y'"/>
  302. <bind id="bind20" ref="/root/main/list/goodexcelmap/goodexcelmaplist/amtacntnm" readonly="../saveyn = 'Y'"/>
  303. <bind id="bind21" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainmngtdeptcd" readonly="../saveyn = 'Y'"/>
  304. <bind id="bind22" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainmngtdeptnm" readonly="../saveyn = 'Y'"/>
  305. <bind id="bind23" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainusedeptcd" readonly="../saveyn = 'Y'"/>
  306. <bind id="bind24" ref="/root/main/list/goodexcelmap/goodexcelmaplist/mainusedeptnm" readonly="../saveyn = 'Y'"/>
  307. <bind id="bind25" ref="/root/main/list/goodexcelmap/goodexcelmaplist/stocmngtflag" readonly="../saveyn = 'Y'"/>
  308. <bind id="bind26" ref="/root/main/list/goodexcelmap/goodexcelmaplist/purcunit" readonly="../saveyn = 'Y'"/>
  309. <bind id="bind27" ref="/root/main/list/goodexcelmap/goodexcelmaplist/deliveunit" readonly="../saveyn = 'Y'"/>
  310. <bind id="bind28" ref="/root/main/list/goodexcelmap/goodexcelmaplist/exchqty" readonly="../saveyn = 'Y'"/>
  311. <bind id="bind29" ref="/root/main/list/goodexcelmap/goodexcelmaplist/edicd" readonly="../saveyn = 'Y'"/>
  312. <bind id="bind30" ref="/root/main/list/goodexcelmap/goodexcelmaplist/reqflag" readonly="../saveyn = 'Y'"/>
  313. <bind id="bind31" ref="/root/main/list/goodexcelmap/goodexcelmaplist/tmpreqflag" readonly="../saveyn = 'Y'"/>
  314. <bind id="bind32" ref="/root/main/list/goodexcelmap/goodexcelmaplist/reqmthd" readonly="../saveyn = 'Y'"/>
  315. <bind id="bind33" ref="/root/main/list/goodexcelmap/goodexcelmaplist/reqprid" readonly="../saveyn = 'Y'"/>
  316. <bind id="bind34" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prodplce" readonly="../saveyn = 'Y'"/>
  317. <bind id="bind35" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prodcmpycd" readonly="../saveyn = 'Y'"/>
  318. <bind id="bind36" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prodcmpynm" readonly="../saveyn = 'Y'"/>
  319. <bind id="bind37" ref="/root/main/list/goodexcelmap/goodexcelmaplist/maincustlastsuplplce" readonly="../saveyn = 'Y'"/>
  320. <bind id="bind38" ref="/root/main/list/goodexcelmap/goodexcelmaplist/maincustlastsuplplcenm" readonly="../saveyn = 'Y'"/>
  321. <bind id="bind39" ref="/root/main/list/goodexcelmap/goodexcelmaplist/suppcustcd" readonly="../saveyn = 'Y'"/>
  322. <bind id="bind40" ref="/root/main/list/goodexcelmap/goodexcelmaplist/suppcustnm" readonly="../saveyn = 'Y'"/>
  323. <bind id="bind41" ref="/root/main/list/goodexcelmap/goodexcelmaplist/estmamt" readonly="../saveyn = 'Y'"/>
  324. <bind id="bind42" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodunitcost" readonly="../saveyn = 'Y'"/>
  325. <bind id="bind43" ref="/root/main/list/goodexcelmap/goodexcelmaplist/purcflag" readonly="../saveyn = 'Y'"/>
  326. <bind id="bind44" ref="/root/main/list/goodexcelmap/goodexcelmaplist/allsizeyn" readonly="../saveyn = 'Y'"/>
  327. <bind id="bind45" ref="/root/main/list/goodexcelmap/goodexcelmaplist/addtaxrate" readonly="../saveyn = 'Y'"/>
  328. <bind id="bind46" ref="/root/main/list/goodexcelmap/goodexcelmaplist/bnscd" readonly="../saveyn = 'Y'"/>
  329. <bind id="bind47" ref="/root/main/list/goodexcelmap/goodexcelmaplist/cntsunit" readonly="../saveyn = 'Y'"/>
  330. <bind id="bind48" ref="/root/main/list/goodexcelmap/goodexcelmaplist/cntsqty" readonly="../saveyn = 'Y'"/>
  331. <bind id="bind49" ref="/root/main/list/goodexcelmap/goodexcelmaplist/specvol" readonly="../saveyn = 'Y'"/>
  332. <bind id="bind50" ref="/root/main/list/goodexcelmap/goodexcelmaplist/keepmthd" readonly="../saveyn = 'Y'"/>
  333. <bind id="bind51" ref="/root/main/list/goodexcelmap/goodexcelmaplist/gnrlspcl" readonly="../saveyn = 'Y'"/>
  334. <bind id="bind52" ref="/root/main/list/goodexcelmap/goodexcelmaplist/welfprt" readonly="../saveyn = 'Y'"/>
  335. <bind id="bind53" ref="/root/main/list/goodexcelmap/goodexcelmaplist/com" readonly="../saveyn = 'Y'"/>
  336. <bind id="bind54" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prcpunit" readonly="../saveyn = 'Y'"/>
  337. <bind id="bind55" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prcpexchqty" readonly="../saveyn = 'Y'"/>
  338. <bind id="bind56" ref="/root/main/list/goodexcelmap/goodexcelmaplist/insucost" readonly="../saveyn = 'Y'"/>
  339. <bind id="bind57" ref="/root/main/list/goodexcelmap/goodexcelmaplist/specunit" readonly="../saveyn = 'Y'"/>
  340. <bind id="bind58" ref="/root/main/list/goodexcelmap/goodexcelmaplist/pemtkeepmthd" readonly="../saveyn = 'Y'"/>
  341. <bind id="bind59" ref="/root/main/list/goodexcelmap/goodexcelmaplist/comnm" readonly="../saveyn = 'Y'"/>
  342. <bind id="bind60" ref="/root/main/list/goodexcelmap/goodexcelmaplist/purcqty" readonly="../saveyn = 'Y'"/>
  343. <bind id="bind61" ref="/root/main/list/goodexcelmap/goodexcelmaplist/prcpqty" readonly="../saveyn = 'Y'"/>
  344. <bind id="bind62" ref="/root/main/list/goodexcelmap/goodexcelmaplist/goodpurccost" readonly="../saveyn = 'Y'"/>
  345. <script type="javascript" ev:event="xforms-ready">
  346. <![CDATA[
  347. //화면 Control을 초기화한다
  348. fInitialize();
  349. ]]>
  350. </script>
  351. <!-- 입력된 Excel 데이터를 읽어오는 submmit-->
  352. <submission id="TRRSC03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/list/goodexcelmap"/>
  353. <!-- Excel 데이터를 저장하는 submmit-->
  354. <submission id="TXRSC03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rscdexcellist" add="bottom" resultref="/root/temp"/>
  355. <!-- 입력된 Excel 데이터를 수정하는 submmit-->
  356. <submission id="TXRSC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/goodexcelmaplist" add="bottom" resultref="/root/temp"/>
  357. <!-- Master에 적용 하는 submmit ( TXRSC05302 ) 과 동일 하나 적용 후 RSCDGDEXCEL TABLE을 업데이트 하기 위해 추가 작업 함-->
  358. <submission id="TXRSC03803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/goodexcelmaplist" resultref="/root/hidden/temp"/>
  359. <!-- 보나에스 Interface 데이터를 읽어오는 submmit-->
  360. <submission id="TRRSC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/list/rscdexcel/rscdexcellist"/>
  361. <!-- 기존 기관 Master 데이터를 읽어오는 submmit-->
  362. <submission id="TRRSC03803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/orimasterlist" resultref="/root/main/list/orimasterlist"/>
  363. </model>
  364. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  365. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  366. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  367. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  368. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  369. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  370. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  371. <script type="javascript">
  372. <![CDATA[
  373. var ViewRow = 1; // Grid dbclick 시 이전 선택한 위치를 기억하는 row number
  374. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  375. function fInitialize()
  376. {
  377. model.resetInstanceNode("/root/send");
  378. model.resetInstanceNode("/root/main/list/orimasterlist");
  379. model.resetInstanceNode("/root/main/list/newmasterlist");
  380. misfGridInit(grd_excelmaplist);
  381. misfGridInit(grd_rscdexcellist);
  382. // Spec 일괄 변경에서 사용하는 기존 명칭과 현 명칭을 비교하기 위한 구분으로
  383. // premodel 등.. 기존 데이터를 갖고 있는 변수 설정이 반드시 필요하다.
  384. model.makeNode("/root/send/save/setautoins/setyn");
  385. model.setValue("/root/send/save/setautoins/setyn","N");
  386. //2008.06.06 misfGridComboComCdList("R0032",grd_excelmaplist,"purcunit");
  387. //2008.06.06 misfGridComboComCdList("R0039",grd_excelmaplist,"deliveunit");
  388. // rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  389. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  390. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  391. //기관코드 읽어오는 부분 넣기
  392. var instcd = getUserInfo("dutplceinstcd");
  393. var instnm = getUserInfo("dutplceinstnm");
  394. if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
  395. else
  396. {
  397. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  398. }
  399. //물품구분일 경우 첫번째 index 자동 설정
  400. if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
  401. // 초기 저장구분 : 2 (미저장)
  402. rdo_saveyn.selectedindex = 2;
  403. // 초기 Interface 구분 : 0 (Excel)
  404. rdo_ifflag.selectedindex = 0;
  405. // 초기 삭제 유무 : 3(미삭제)
  406. rdo_delyn.selectedindex = 2;
  407. // misfMsterDetailSet(grd_excelmaplist,null, "TRRSC00601" ,"Y");
  408. /**********************************
  409. * GOODFLAG 물품구분 R0025
  410. * ASETFLAG 자산구분 R0043
  411. * PRODDRUGSETFLAG 제제약 SET 구분 R0068
  412. * STOCMNGTFLAG 재고관리기준 R0069
  413. * REQMTHD 청구방법 R0092
  414. * REQPRID 청구주기 R0093
  415. * PRODPLCE 제조국 R0035
  416. * CONFLAG 계약구분 R0095
  417. * CURNCYUNIT 화폐단위 R0047
  418. * PURCFLAG 구매구분 R0111
  419. * SETPLCEORDFLAG SET 발주구분 R0110
  420. * PLCEORDBASE 발주기준 R0107
  421. * PLCEORDQTYCRETFLAG 발주량생성구분 R0106
  422. * MNGTFLAG 관리구분 R0094
  423. * IOPSNFLAG 내외자구분
  424. * KEEPMTHD 보관방법 1:실온 2:냉소 3:냉장 4:냉동
  425. * GNRLSPCL 일반-전문 1:전문 2:일반 3:공산품 4:의약외품 5:기타
  426. ***********************************/
  427. misfComboComCdListMulti("Z0007,R0025,R0043,R0068,R0069,R0092,R0093,R0035,R0095,R0047,R0111,R0110,R0107,R0106,R0094",
  428. "grd_excelmaplist.instcd,grd_excelmaplist.goodflag,grd_excelmaplist.asetflag,grd_excelmaplist.proddrugsetflag,grd_excelmaplist.stocmngtflag,grd_excelmaplist.reqmthd,grd_excelmaplist.reqprid,grd_excelmaplist.prodplce,grd_excelmaplist.conflag,grd_excelmaplist.curncyunit,grd_excelmaplist.purcflag,grd_excelmaplist.setplceordflag,grd_excelmaplist.plceordbase,grd_excelmaplist.plceordqtycretflag,grd_excelmaplist.mngtflag");
  429. //계산방법, 그룹여부, 실사장소, 변경사유
  430. zbcfGetCodeList( new Array("P0133","P0142", "R0356"), new Array("/root/init/P0133list","/root/init/P0142list", "/root/init/R0356list"), true);
  431. // rszfComboUnitList (cmb_purcunit_search, model.getValue(cmb_instcd.attribute("ref")), model.getValue(cmb_goodflag.attribute("ref"))); // 포장단위
  432. // rszfComboUnitList (cmb_prcpunit_search, model.getValue(cmb_instcd.attribute("ref")),"D"); // 처방단위
  433. rszfComboUnitList (cmb_purcunit, model.getValue(cmb_instcd.attribute("ref")), model.getValue(cmb_goodflag.attribute("ref"))); // 포장단위
  434. rszfComboUnitList (cmb_prcpunit, model.getValue(cmb_instcd.attribute("ref")),"D"); // 처방단위
  435. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),"","2","P" ); // 집계구분(청구구분)
  436. addComboItem( "cmb_reqflag", "집계안함", "", "above" );
  437. /* Excel 입력 Grid Setting */
  438. misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "purcunit" ); //포장단위
  439. misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "specunit" ); //규격단위
  440. misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "cntsunit" ); //함량단위
  441. misfComboCopyItemSet(cmb_purcunit, "", grd_rscdexcellist, "deliveunit" ); //수불단위
  442. misfComboCopyItemSet(cmb_prcpunit, "", grd_rscdexcellist, "prcpunit" ); //처방단위
  443. misfComboCopyItemSet(cmb_prcpunit, "", grd_rscdexcellist, "hospdrguunit" ); //병원단위
  444. // [2009.09.22] hkjoo 주석처리, 엑셀 데이터 로드 시 코드명으로 덮어쓰기 때문에 의미 없음.
  445. //misfComboCopyItemSet(cmb_reqflag, "", grd_rscdexcellist, "reqflag" ); //집계구분(청구구분)
  446. /* Excel Map List Grid Setting */
  447. misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "purcunit" ); //포장단위
  448. misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "specunit" ); //규격단위
  449. misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "cntsunit" ); //함량단위
  450. misfComboCopyItemSet(cmb_purcunit, "", grd_excelmaplist, "deliveunit" ); //수불단위
  451. misfComboCopyItemSet(cmb_prcpunit, "", grd_excelmaplist, "prcpunit" ); //처방단위
  452. misfComboCopyItemSet(cmb_reqflag, "", grd_excelmaplist, "reqflag" ); //집계구분(청구구분)
  453. // [2008.07.30] YYJ 추가
  454. // [2009.09.22] hkjoo 주석처리, 엑셀 데이터 로드 시 코드명으로 덮어쓰기 때문에 의미 없음.
  455. //misfComboCopyItemSet(grd_excelmaplist, "reqmthd", grd_rscdexcellist, "reqmthd" ); //청구방법
  456. //misfComboCopyItemSet(grd_excelmaplist, "reqprid" , grd_rscdexcellist, "reqprid" ); //청구주기
  457. /* new Data detail Setting */
  458. // misfComboCopyItemSet(cmb_purcunit_search, "", cmb_purcunit, "" ); //포장단위
  459. misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit, "" ); //규격단위
  460. misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit, "" ); //함량단위
  461. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "" ); //수불단위
  462. // misfComboCopyItemSet(cmb_prcpunit_search, "", cmb_prcpunit, "" ); //처방단위
  463. /* old Data detail Setting */
  464. misfComboCopyItemSet(cmb_purcunit, "", cmb_purcunit_2, "" ); //포장단위
  465. misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit_2, "" ); //규격단위
  466. misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit_2, "" ); //함량단위
  467. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit_2, "" ); //수불단위
  468. misfComboCopyItemSet(cmb_prcpunit, "", cmb_prcpunit_2, "" ); //처방단위
  469. misfComboCopyItemSet(cmb_reqflag, "", cmb_reqflag_2, "" ); //집계구분(청구구분)
  470. misfMsterDetailSet(grd_excelmaplist,null, "TRRSC03801" ,"Y");
  471. // fSetGoodFlagAuth();
  472. grd_excelmaplist.explorerbar = "sortshow";
  473. grd_excelmaplist.selectionmode = "list";
  474. model.refresh();
  475. }
  476. function fDataLoad()
  477. {
  478. if( fCheckRetrieveData() == false ) return;
  479. /* 작업 구분이 Excel 일 경우 */
  480. if( model.getValue(rdo_ifflag.attribute("ref")) == "E" )
  481. {
  482. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  483. grd_rscdexcellist.loadExcel(fileName, 1);
  484. // grd_rscdexcellist.row = grd_rscdexcellist.fixedRows;
  485. // grd_rscdexcellist.deleteItem(grd_rscdexcellist.row);
  486. fGridInsertChanged();
  487. misfGridIUD(grd_rscdexcellist, "D"); // Excel의 1번째 제목행을 삭제한다.
  488. }
  489. /* 작업 구분이 보나에스일 경우 */
  490. else
  491. {
  492. /* 보나에스 물품 정보 가져오기 */
  493. submit("TRRSC03802");
  494. fGridInsertChanged();
  495. }
  496. model.setValue(opt_uploadcnt.attribute("ref"), grd_rscdexcellist.rows-grd_rscdexcellist.fixedRows);
  497. cpt_uploadcnt.visible = true;
  498. opt_uploadcnt.visible = true;
  499. model.refresh();
  500. }
  501. function fGridInsertChanged()
  502. {
  503. for(var fRow = grd_rscdexcellist.fixedRows; fRow < grd_rscdexcellist.rows; fRow++)
  504. {
  505. grd_rscdexcellist.addStatus(fRow, "insert");
  506. if( model.getValue(rdo_ifflag.attribute("ref")) != "E" ) { //작업구분이 보나에스 일 경우
  507. grd_rscdexcellist.valueMatrix(fRow, grd_rscdexcellist.colRef("instcd")) = model.getValue(cmb_instcd.attribute("ref"));
  508. }
  509. grd_rscdexcellist.valueMatrix(fRow, grd_rscdexcellist.colRef("goodflag")) = model.getValue(cmb_goodflag.attribute("ref"));
  510. grd_rscdexcellist.valueMatrix(fRow, grd_rscdexcellist.colRef("ifflag")) = model.getValue(rdo_ifflag.attribute("ref")) ; // Interface 구분 : E (excel 입력)
  511. }
  512. }
  513. function fSetGoodSpec()
  514. {
  515. model.setValue(opt_poptitle.attribute("ref"), "물품 규격을 입력해 주세요");
  516. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title","opt_poptitle");
  517. model.refresh();
  518. fSetAllApply(grd_excelmaplist,"goodspec", model.getValue(opt_popinputcd.attribute("ref")));
  519. }
  520. function fSetGoodModel()
  521. {
  522. model.setValue(opt_poptitle.attribute("ref"), "물품 모델을 입력해 주세요");
  523. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title","opt_poptitle");
  524. model.refresh();
  525. fSetAllApply(grd_excelmaplist,"goodmodel", model.getValue(opt_popinputcd.attribute("ref")));
  526. }
  527. function fSetGoodnm()
  528. {
  529. model.setValue(opt_poptitle.attribute("ref"), "물품명 입력해 주세요");
  530. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title","opt_poptitle");
  531. model.refresh();
  532. fSetAllApply(grd_excelmaplist,"goodnm", model.getValue(opt_popinputcd.attribute("ref")));
  533. }
  534. function fSetGoodUnitCost()
  535. {
  536. model.setValue(opt_poptitle.attribute("ref"), "제품 단가를 입력해 주세요");
  537. model.setValue(opt_popformat.attribute("ref"), "#,###");
  538. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,format","opt_poptitle,opt_popformat");
  539. model.refresh();
  540. fSetAllApply(grd_excelmaplist,"goodunitcost", model.getValue(opt_popinputcd.attribute("ref")));
  541. }
  542. function fSetExchQty()
  543. {
  544. model.setValue(opt_poptitle.attribute("ref"), "환산수량을 입력해 주세요");
  545. model.setValue(opt_popformat.attribute("ref"), "#,###");
  546. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,format","opt_poptitle,opt_popformat");
  547. model.refresh();
  548. fSetAllApply(grd_excelmaplist,"exchqty", model.getValue(opt_popinputcd.attribute("ref")));
  549. }
  550. function fSetMainCustLastSuplplce()
  551. {
  552. model.setValue(opt_popcond.attribute("ref"),"custom");
  553. model.setValue(opt_poptitle.attribute("ref"), "주거래처를 선택해 주세요");
  554. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  555. model.refresh();
  556. fSetAllApply(grd_excelmaplist,"maincustlastsuplplce,maincustlastsuplplcenm", model.getValue(opt_popinputcd.attribute("ref")));
  557. }
  558. function fSetSuppCustCd()
  559. {
  560. model.setValue(opt_popcond.attribute("ref"),"custom");
  561. model.setValue(opt_poptitle.attribute("ref"), "보조 거래처를 선택해 주세요");
  562. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  563. model.refresh();
  564. fSetAllApply(grd_excelmaplist,"suppcustcd,suppcustnm", model.getValue(opt_popinputcd.attribute("ref")));
  565. }
  566. function fSetGoodProdCmpy()
  567. {
  568. model.setValue(opt_popcond.attribute("ref"),"prodcmpy");
  569. model.setValue(opt_poptitle.attribute("ref"), "제조회사를 선택해 주세요");
  570. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  571. model.refresh();
  572. fSetAllApply(grd_excelmaplist,"prodcmpycd,prodcmpynm", model.getValue(opt_popinputcd.attribute("ref")));
  573. }
  574. function fSetPurcUnit()
  575. {
  576. model.setValue(opt_popcond.attribute("ref"),"purcunit");
  577. model.setValue(opt_poptitle.attribute("ref"), "포장단위를 선택해 주세요");
  578. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,cond","opt_poptitle,opt_popcond");
  579. model.refresh();
  580. fSetAllApply(grd_excelmaplist,"purcunit", model.getValue(opt_popinputcd.attribute("ref")));
  581. }
  582. function fSetDeliveUnit()
  583. {
  584. model.setValue(opt_popcond.attribute("ref"),"deliveunit");
  585. model.setValue(opt_poptitle.attribute("ref"), "수불단위를 선택해 주세요");
  586. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03801" ,"title,cond","opt_poptitle,opt_popcond");
  587. model.refresh();
  588. fSetAllApply(grd_excelmaplist,"deliveunit", model.getValue(opt_popinputcd.attribute("ref")));
  589. }
  590. function fSetLargeCd()
  591. {
  592. model.setValue(opt_popcond.attribute("ref"),"lrgnm");
  593. model.setValue(opt_poptitle.attribute("ref"), "분류코드를 선택해 주세요");
  594. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd,goodflag","opt_poptitle,opt_popcond,cmb_instcd,cmb_goodflag");
  595. fSetAllApply(grd_excelmaplist,"lrgcd,lrgnm,mdlcd,mdlnm,smlcd,smlnm", model.getValue(opt_popinputcd.attribute("ref")));
  596. }
  597. function fSetAllApply(f_grid, f_id , f_value)
  598. {
  599. if(f_id == null || f_id.length == 0 || f_value == null || f_value.length == 0 )return;
  600. var f_selid = f_id.split(",");
  601. var f_selvalue = f_value.split(",");
  602. for(currow = 0 ; currow < f_grid.selectedRows; currow++)
  603. {
  604. var lrgGubun = 0; // 대 / 중 / 소 분류의 값의 변경 체크
  605. for (var k = 0; k < f_selid.length; k++)
  606. {
  607. if(f_grid.colRef(f_selid[k]) != -1)
  608. {
  609. if(model.getValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k]) != f_selvalue[k])
  610. {
  611. if(f_grid.valueMatrix( (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) , f_grid.colRef("saveyn")) == "N")
  612. {
  613. // alert ( currow + " 번째 행의 " + f_grid.colRef("saveyn") + "번째 항목의 값 " + f_grid.valueMatrix( , f_grid.colRef("saveyn")) );
  614. model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k] ,f_selvalue[k]);
  615. if(f_grid.rowStatus(f_grid.selectedRow(currow)) == "0")
  616. {
  617. f_grid.rowStatus(f_grid.selectedRow(currow)) = "2"; // Update
  618. }
  619. if ( f_selid[k] == "lrgcd" || f_selid[k] == "lrgnm" || f_selid[k] == "mdlcd" || f_selid[k] == "mdlnm" || f_selid[k] == "smlcd" || f_selid[k] == "smlnm") { // 분류코드 변경시만 변경
  620. lrgGubun = lrgGubun + 1; // 대 / 중 / 소 분류의 값의 변경 체크
  621. }
  622. }
  623. }
  624. }
  625. }
  626. if (lrgGubun != 0) { // 대/중/소에서 한개라도 값이 변하면 유효성이 검증되어 오류체크 / 색상 수정
  627. model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + "getgubunchk", "0*0*0"); // 대, 중, 소분류 값이 수정이 되면 오류 값을 수정처리 한다.
  628. fMapListValid(f_grid, (f_grid.selectedRow(currow)- f_grid.fixedRows +1), (f_grid.selectedRow(currow)- f_grid.fixedRows +1), "EDIT" ); // 오류 수정에 따른 색상 수정
  629. }
  630. }
  631. grp_disp.attribute("visibility") ="hidden" ;
  632. }
  633. function fCheckRetrieveData()
  634. {
  635. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  636. {
  637. messageBox("기관코드를 " ,"C002");
  638. model.setFocus("cmb_instcd");
  639. return false;
  640. }
  641. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  642. {
  643. messageBox("물품구분을 " ,"C002");
  644. model.setFocus("cmb_goodflag");
  645. return false;
  646. }
  647. /*
  648. if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 )
  649. {
  650. messageBox("대분류코드를 " ,"C002");
  651. model.setFocus("ipt_lrgcd_search");
  652. return false;
  653. }
  654. if(model.getValue(ipt_goodcd.attribute("ref")).length < 3 && model.getValue(ipt_goodnm.attribute("ref")).length < 3)
  655. {
  656. messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
  657. model.setFocus("ipt_goodcd_search");
  658. return false;
  659. }
  660. */
  661. return true;
  662. }
  663. // 물품구분별 권한체크.
  664. function fSetGoodFlagAuth()
  665. {
  666. btn_save.disabled=true;
  667. rszfGetPurcGoodFlagAuthInfo(cmb_instcd.value , cmb_goodflag.value, getUserInfo("userid"), "%");
  668. if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")
  669. {
  670. btn_save.disabled=false;
  671. }
  672. }
  673. /******************************************
  674. * 대, 중, 소분류에 대한 valid check에 대한 err 시 색상 변화
  675. * pGrd = 대상이 되는 테이블
  676. * pFromRow = Grid 시작 위치
  677. * pToRow = Grid 종료 위치
  678. * pStatus = 수정후 그리드 색상 변경( 초기 조회시 변경하지 않아도 되는 Grid 색상 변경을 피하기 위해.. popup 으로 대/중/소 변경시만 사용
  679. * getgubunchk 항목에서 유효성 값 반환 = 0 : 이상 없음, 9 : 에러
  680. * ex) 0*0*0 : 대, 중, 소분류 유효한 값
  681. * 0*9*9 : 중, 소분류 오류
  682. * 상위 분류 에러 발생시 하위 분류에 대한 유효성은 보장 할 수 없기 때문에 err 처리
  683. ******************************************/
  684. function fMapListValid(pGrd, pFromRow, pToRow, pStatus)
  685. {
  686. var temValidItem = new Array("lrgcd","mdlcd","smlcd");
  687. var rowcnt = 0;
  688. if(pFromRow == "" || pFromRow == null) {
  689. rowcnt = pGrd.fixedRows;
  690. } else {
  691. rowcnt = pFromRow;
  692. }
  693. if(pToRow == "" || pToRow == null) {
  694. grdRow = pGrd.rows;
  695. } else {
  696. grdRow = pToRow;
  697. }
  698. for ( rowcnt ; rowcnt<=grdRow; rowcnt++ )
  699. {
  700. if ( pStatus == "EDIT" ) { // Popup에서 대/중/소 분류값 변경시 색상 변환
  701. // if ( pGrd.cellstyle("background-color", rowcnt, pGrd.colRef("lrgcd"), rowcnt, pGrd.colRef("smlcd")+1 ) != "white" )
  702. pGrd.cellstyle("background-color", rowcnt, pGrd.colRef("lrgcd"), rowcnt, pGrd.colRef("smlcd")+1 ) = "white";
  703. } else {
  704. var tmp_getgubunchk = pGrd.valueMatrix(rowcnt , pGrd.colRef("getgubunchk")).split("*");
  705. // if(pGrd.valueMatrix(rowcnt, pGrd.colRef("saveyn")) != "Y")
  706. // {
  707. for( colcnt = 0; colcnt < tmp_getgubunchk.length; colcnt++ )
  708. {
  709. if( tmp_getgubunchk[colcnt] == "9" )
  710. {
  711. pGrd.cellstyle("background-color", rowcnt, pGrd.colRef(temValidItem[colcnt]), rowcnt, pGrd.colRef(temValidItem[colcnt])+1 ) = "yellow";
  712. }
  713. // else
  714. // {
  715. // if ( tmp_getgubunchk[colcnt] != "9" && pGrd.cellstyle("background-color", rowcnt, pGrd.colRef(temValidItem[colcnt]), rowcnt, pGrd.colRef(temValidItem[colcnt]) ) != "white" )
  716. // pGrd.cellstyle("background-color", rowcnt, pGrd.colRef(temValidItem[colcnt]), rowcnt, pGrd.colRef(temValidItem[colcnt])+1 ) = "white";
  717. // }
  718. }
  719. // }
  720. }
  721. }
  722. // pGrd.editCell();
  723. }
  724. function fCheckSaveData( grd_id )
  725. {
  726. if( grd_id.rows - grd_id.fixedRows > 0 )
  727. {
  728. var currow = 0;
  729. for(currow = grd_id.fixedRows ; currow < grd_id.rows ; currow++)
  730. {
  731. if ( grd_id.colRef("getgubunchk") != -1 && grd_id.valueMatrix(currow , grd_id.colRef("getgubunchk")) != "0*0*0" )
  732. {
  733. messageBox( grd_id.valueMatrix(currow , grd_id.colRef("rownumber")) + " 번째 분류코드 가 유효하지", "I004");
  734. return false;
  735. /* 데이터가 너무 많아 임시 막는다.. 2008 07 30
  736. var temValidItem = new Array("대분류","중분류","소분류");
  737. var tmp_getgubunchk = grd_id.valueMatrix(currow , grd_id.colRef("getgubunchk")).split("*");
  738. for( cnt = 0; cnt < tmp_getgubunchk.length; cnt++ )
  739. {
  740. if ( tmp_getgubunchk[cnt] != "0" )
  741. {
  742. messageBox( grd_id.valueMatrix(currow , grd_id.colRef("rownumber")) + " 번째 " + temValidItem[cnt] + "가 유효하지", "I004");
  743. grd_id.row = currow;
  744. return false;
  745. // grd_id.col = grd_id.colRef( temValidItem[cnt+3] );
  746. }
  747. }
  748. */
  749. }
  750. if(grd_id.valueMatrix(currow, grd_id.colRef("lrgcd")).length == 0)
  751. {
  752. messageBox(currow + " 번째 대분류코드를 " ,"C001");
  753. grd_id.row = currow;
  754. grd_id.col = grd_id.colRef("lrgcd");
  755. grd_id.editCell();
  756. return false;
  757. }
  758. if(grd_id.valueMatrix(currow, grd_id.colRef("mdlcd")).length == 0)
  759. {
  760. messageBox(currow + " 번째 중분류코드를 " ,"C001");
  761. grd_id.row = currow;
  762. grd_id.col = grd_id.colRef("mdlcd");
  763. grd_id.editCell();
  764. return false;
  765. }
  766. if(grd_id.valueMatrix(currow, grd_id.colRef("smlcd")).length == 0)
  767. {
  768. messageBox(currow + " 번째 소분류코드를 " ,"C001");
  769. grd_id.row = currow;
  770. grd_id.col = grd_id.colRef("smlcd");
  771. grd_id.editCell();
  772. return false;
  773. }
  774. /* if(grd_id.valueMatrix(currow, grd_id.colRef("welfprt")).length == 0)
  775. {
  776. messageBox(currow + " 번째 복지부분류코드를 " ,"C001");
  777. grd_id.row = currow;
  778. grd_id.col = grd_id.colRef("welfprt");
  779. grd_id.editCell();
  780. return false;
  781. }
  782. */
  783. if(grd_id.valueMatrix(currow, grd_id.colRef("goodcd")).length == 0)
  784. {
  785. messageBox(currow + " 번째 신약품코드를 " ,"C001");
  786. grd_id.row = currow;
  787. grd_id.col = grd_id.colRef("goodcd");
  788. grd_id.editCell();
  789. return false;
  790. }
  791. else
  792. {
  793. for(srcrow = currow + 1 ; srcrow < grd_id.rows ; srcrow++)
  794. {
  795. if(grd_id.valueMatrix(currow , grd_id.colRef("goodcd")) == grd_id.valueMatrix(srcrow , grd_id.colRef("goodcd")) )
  796. {
  797. messageBox("동일 물품코드가 [" + grd_id.valueMatrix(currow , grd_id.colRef("rownumber")) + ", " + grd_id.valueMatrix(srcrow , grd_id.colRef("rownumber")) + "->" + grd_id.valueMatrix(currow , grd_id.colRef("goodcd")) + "] 존재하여 저장 " ,"E001");
  798. return false;
  799. }
  800. }
  801. }
  802. /*
  803. if(grd_id.valueMatrix(currow, grd_id.colRef("oldcd")).length == 0)
  804. {
  805. messageBox(currow + " 번째 구코드를 " ,"C001");
  806. grd_id.row = currow;
  807. grd_id.col = grd_id.colRef("oldcd");
  808. grd_id.editCell();
  809. return false;
  810. }
  811. if(grd_id.valueMatrix(currow, grd_id.colRef("bnscd")).length == 0)
  812. {
  813. messageBox(currow + " 번째 보나에스코드를 " ,"C001");
  814. grd_id.row = currow;
  815. grd_id.col = grd_id.colRef("bnscd");
  816. grd_id.editCell();
  817. return false;
  818. }
  819. if(grd_id.valueMatrix(currow, grd_id.colRef("edicd")).length == 0)
  820. {
  821. messageBox(currow + " 번째 EDI코드를 " ,"C001");
  822. grd_id.row = currow;
  823. grd_id.col = grd_id.colRef("edicd");
  824. grd_id.editCell();
  825. return false;
  826. }
  827. if(grd_id.valueMatrix(currow, grd_id.colRef("prodcmpycd")).length == 0)
  828. {
  829. messageBox(currow + " 번째 제조회사코드를 " ,"C001");
  830. grd_id.row = currow;
  831. grd_id.col = grd_id.colRef("prodcmpycd");
  832. grd_id.editCell();
  833. return false;
  834. }
  835. */
  836. if(grd_id.valueMatrix(currow, grd_id.colRef("suppcustcd")).length == 0)
  837. {
  838. messageBox(currow + " 번째 판매회사코드를 " ,"C001");
  839. grd_id.row = currow;
  840. grd_id.col = grd_id.colRef("suppcustcd");
  841. grd_id.editCell();
  842. return false;
  843. }
  844. if(grd_id.valueMatrix(currow, grd_id.colRef("goodnm")).length == 0)
  845. {
  846. messageBox(currow + " 번째 품명을 " ,"C001");
  847. grd_id.row = currow;
  848. grd_id.col = grd_id.colRef("goodnm ");
  849. grd_id.editCell();
  850. return false;
  851. }
  852. /*
  853. if(grd_id.valueMatrix(currow, grd_id.colRef("com")).length == 0)
  854. {
  855. messageBox(currow + " 번째 성분(코드)를 " ,"C001");
  856. grd_id.row = currow;
  857. grd_id.col = grd_id.colRef("com");
  858. grd_id.editCell();
  859. return false;
  860. }
  861. if(grd_id.valueMatrix(currow, grd_id.colRef("comnm")).length == 0)
  862. {
  863. messageBox(currow + " 번째 성분(명)을 " ,"C001");
  864. grd_id.row = currow;
  865. grd_id.col = grd_id.colRef("comnm");
  866. grd_id.editCell();
  867. return false;
  868. }
  869. */
  870. if(grd_id.valueMatrix(currow, grd_id.colRef("cntsqty")).length == 0)
  871. {
  872. messageBox(currow + " 번째 함량을 " ,"C001");
  873. grd_id.row = currow;
  874. grd_id.col = grd_id.colRef("cntsqty");
  875. grd_id.editCell();
  876. return false;
  877. }
  878. if(grd_id.valueMatrix(currow, grd_id.colRef("cntsunit")).length == 0)
  879. {
  880. messageBox(currow + " 번째 함량단위를 " ,"C001");
  881. grd_id.row = currow;
  882. grd_id.col = grd_id.colRef("cntsunit");
  883. grd_id.editCell();
  884. return false;
  885. }
  886. if(grd_id.valueMatrix(currow, grd_id.colRef("specvol")).length == 0)
  887. {
  888. messageBox(currow + " 번째 규격을 " ,"C001");
  889. grd_id.row = currow;
  890. grd_id.col = grd_id.colRef("specvol");
  891. grd_id.editCell();
  892. return false;
  893. }
  894. if(grd_id.valueMatrix(currow, grd_id.colRef("specunit")).length == 0)
  895. {
  896. messageBox(currow + " 번째 규격단위를 " ,"C001");
  897. grd_id.row = currow;
  898. grd_id.col = grd_id.colRef("specunit");
  899. grd_id.editCell();
  900. return false;
  901. }
  902. if(grd_id.valueMatrix(currow, grd_id.colRef("prcpqty")).length == 0)
  903. {
  904. messageBox(currow + " 번째 처방수량을 " ,"C001");
  905. grd_id.row = currow;
  906. grd_id.col = grd_id.colRef("prcpqty");
  907. grd_id.editCell();
  908. return false;
  909. }
  910. if(grd_id.valueMatrix(currow, grd_id.colRef("prcpunit")).length == 0)
  911. {
  912. messageBox(currow + " 번째 처방단위를 " ,"C001");
  913. grd_id.row = currow;
  914. grd_id.col = grd_id.colRef("prcpunit");
  915. grd_id.editCell();
  916. return false;
  917. }
  918. if(grd_id.valueMatrix(currow, grd_id.colRef("prcpexchqty")).length == 0)
  919. {
  920. messageBox(currow + " 번째 처방환산을 " ,"C001");
  921. grd_id.row = currow;
  922. grd_id.col = grd_id.colRef("prcpexchqty ");
  923. grd_id.editCell();
  924. return false;
  925. }
  926. if(grd_id.valueMatrix(currow, grd_id.colRef("exchqty")).length == 0)
  927. {
  928. messageBox(currow + " 번째 포장환산을 " ,"C001");
  929. grd_id.row = currow;
  930. grd_id.col = grd_id.colRef("exchqty");
  931. grd_id.editCell();
  932. return false;
  933. }
  934. if(grd_id.valueMatrix(currow, grd_id.colRef("deliveunit")).length == 0)
  935. {
  936. messageBox(currow + " 번째 낱개단위를 " ,"C001");
  937. grd_id.row = currow;
  938. grd_id.col = grd_id.colRef("deliveunit");
  939. grd_id.editCell();
  940. return false;
  941. }
  942. if(grd_id.valueMatrix(currow, grd_id.colRef("purcunit")).length == 0)
  943. {
  944. messageBox(currow + " 번째 포장단위를 " ,"C001");
  945. grd_id.row = currow;
  946. grd_id.col = grd_id.colRef("purcunit");
  947. grd_id.editCell();
  948. return false;
  949. }
  950. /*
  951. if(grd_id.valueMatrix(currow, grd_id.colRef("gnrlspcl")).length == 0)
  952. {
  953. messageBox(currow + " 번째 일반/전문코드를 " ,"C001");
  954. grd_id.row = currow;
  955. grd_id.col = grd_id.colRef("gnrlspcl");
  956. grd_id.editCell();
  957. return false;
  958. }
  959. if(grd_id.valueMatrix(currow, grd_id.colRef("winacnt")).length == 0)
  960. {
  961. messageBox(currow + " 번째 입고계정코드를 " ,"C001");
  962. grd_id.row = currow;
  963. grd_id.col = grd_id.colRef("winacnt");
  964. grd_id.editCell();
  965. return false;
  966. }
  967. if(grd_id.valueMatrix(currow, grd_id.colRef("amtacnt")).length == 0)
  968. {
  969. messageBox(currow + " 번째 비용계정코드를 " ,"C001");
  970. grd_id.row = currow;
  971. grd_id.col = grd_id.colRef("amtacnt ");
  972. grd_id.editCell();
  973. return false;
  974. }
  975. if(grd_id.valueMatrix(currow, grd_id.colRef("keepmthd")).length == 0)
  976. {
  977. messageBox(currow + " 번째 보관법을 " ,"C001");
  978. grd_id.row = currow;
  979. grd_id.col = grd_id.colRef("keepmthd");
  980. grd_id.editCell();
  981. return false;
  982. }
  983. if(grd_id.valueMatrix(currow, grd_id.colRef("pemtkeepmthd")).length == 0)
  984. {
  985. messageBox(currow + " 번째 보관법 설명을 " ,"C001");
  986. grd_id.row = currow;
  987. grd_id.col = grd_id.colRef("pemtkeepmthd");
  988. grd_id.editCell();
  989. return false;
  990. }
  991. */
  992. if(grd_id.valueMatrix(currow, grd_id.colRef("fromdd")).length == 0)
  993. {
  994. messageBox(currow + " 번째 적용일자를 " ,"C001");
  995. grd_id.row = currow;
  996. grd_id.col = grd_id.colRef("fromdd");
  997. grd_id.editCell();
  998. return false;
  999. }
  1000. if(grd_id.valueMatrix(currow, grd_id.colRef("todd")).length == 0)
  1001. {
  1002. messageBox(currow + " 번째 종료일자를 " ,"C001");
  1003. grd_id.row = currow;
  1004. grd_id.col = grd_id.colRef("todd");
  1005. grd_id.editCell();
  1006. return false;
  1007. }
  1008. /*
  1009. if(grd_id.valueMatrix(currow, grd_id.colRef("insucost")).length == 0)
  1010. {
  1011. messageBox(currow + " 번째 보험단가를 " ,"C001");
  1012. grd_id.row = currow;
  1013. grd_id.col = grd_id.colRef("insucost");
  1014. grd_id.editCell();
  1015. return false;
  1016. }
  1017. */
  1018. if(grd_id.valueMatrix(currow, grd_id.colRef("estmamt")).length == 0)
  1019. {
  1020. messageBox(currow + " 번째 처방단가를 " ,"C001");
  1021. grd_id.row = currow;
  1022. grd_id.col = grd_id.colRef("estmamt");
  1023. grd_id.editCell();
  1024. return false;
  1025. }
  1026. if(grd_id.valueMatrix(currow, grd_id.colRef("goodunitcost")).length == 0)
  1027. {
  1028. messageBox(currow + " 번째 구입단가를 " ,"C001");
  1029. grd_id.row = currow;
  1030. grd_id.col = grd_id.colRef("goodunitcost");
  1031. grd_id.editCell();
  1032. return false;
  1033. }
  1034. if(grd_id.valueMatrix(currow, grd_id.colRef("goodpurccost")).length == 0)
  1035. {
  1036. messageBox(currow + " 번째 구입가를 " ,"C001");
  1037. grd_id.row = currow;
  1038. grd_id.col = grd_id.colRef("goodpurccost");
  1039. grd_id.editCell();
  1040. return false;
  1041. }
  1042. /*
  1043. if(grd_id.valueMatrix(currow, grd_id.colRef("tmpreqflag")).length == 0)
  1044. {
  1045. messageBox(currow + " 번째 임의 청구구분을 " ,"C001");
  1046. grd_id.row = currow;
  1047. grd_id.col = grd_id.colRef("tmpreqflag");
  1048. grd_id.editCell();
  1049. return false;
  1050. }
  1051. if(grd_id.valueMatrix(currow, grd_id.colRef("reqmthd")).length == 0)
  1052. {
  1053. messageBox(currow + " 번째 청구방법을 " ,"C001");
  1054. grd_id.row = currow;
  1055. grd_id.col = grd_id.colRef("reqmthd");
  1056. grd_id.editCell();
  1057. return false;
  1058. }
  1059. if(grd_id.valueMatrix(currow, grd_id.colRef("reqprid")).length == 0)
  1060. {
  1061. messageBox(currow + " 번째 청구주기를 " ,"C001");
  1062. grd_id.row = currow;
  1063. grd_id.col = grd_id.colRef("reqprid");
  1064. grd_id.editCell();
  1065. return false;
  1066. }
  1067. */
  1068. if(grd_id.valueMatrix(currow, grd_id.colRef("maincustlastsuplplce")).length == 0)
  1069. {
  1070. messageBox(currow + " 번째 주거래처를 " ,"C001");
  1071. grd_id.row = currow;
  1072. grd_id.col = grd_id.colRef("maincustlastsuplplce");
  1073. grd_id.editCell();
  1074. return false;
  1075. }
  1076. /*
  1077. if(grd_id.valueMatrix(currow, grd_id.colRef("reqflag")).length == 0)
  1078. {
  1079. messageBox(currow + " 번째 청구구분을 " ,"C001");
  1080. grd_id.row = currow;
  1081. grd_id.col = grd_id.colRef("reqflag");
  1082. grd_id.editCell();
  1083. return false;
  1084. }
  1085. */
  1086. if(grd_id.valueMatrix(currow, grd_id.colRef("workvalid")) == "N")
  1087. {
  1088. messageBox(currow + " 번째 신규/변경 구분이","E016");
  1089. grd_id.row = currow;
  1090. grd_id.col = grd_id.colRef("workflag");
  1091. grd_id.editCell();
  1092. return false;
  1093. }
  1094. if(grd_id.valueMatrix(currow, grd_id.colRef("fromdd")) < grd_id.valueMatrix(currow, grd_id.colRef("prefromdd")))
  1095. {
  1096. messageBox(currow + " 번째 적용일자가","E016");
  1097. grd_id.row = currow;
  1098. grd_id.col = grd_id.colRef("fromdd");
  1099. grd_id.editCell();
  1100. return false;
  1101. }
  1102. }
  1103. }
  1104. else
  1105. {
  1106. messageBox("저장 데이터가","I004");
  1107. return false;
  1108. }
  1109. }
  1110. function fSetSaveData( grd_id )
  1111. {
  1112. if ( getGridUpdateData(grd_id) != "" )
  1113. {
  1114. messageBox("변경 데이터 저장 후 Master 적용이","I006");
  1115. return false;
  1116. }
  1117. var currow = 0;
  1118. for(currow = grd_id.fixedRows ; currow < grd_id.rows ; currow++)
  1119. {
  1120. if(grd_id.valueMatrix(currow, grd_id.colRef("saveyn")) == "N")
  1121. {
  1122. if(grd_id.valueMatrix(currow, grd_id.colRef("workflag")) == "I")
  1123. grd_id.rowStatus(currow) = "1";
  1124. else if (grd_id.valueMatrix(currow, grd_id.colRef("workflag")) == "U")
  1125. grd_id.rowStatus(currow) = "2";
  1126. }
  1127. }
  1128. }
  1129. /*
  1130. * Grid 데이터를 Input box에 셋팅 or 비교하여 Grid 값을 변경한다.
  1131. * ptarget_node : 복사할 원본 데이터를 가지고 있는 Grid
  1132. * psource_node : 복사가 되어지는 node
  1133. * pcopy_node : "Y" 값 일경우 Grid와 node를 비교하여 Grid Update 시킨다.
  1134. */
  1135. function fGridDataSet(ptarget_node, psource_node, pcopy_node)
  1136. {
  1137. var node1 = instance1.selectNodes(ptarget_node.nodeset+"["+ ptarget_node.row + "]" + "/*");
  1138. var node2 = instance1.selectNodes(psource_node + "/*");
  1139. for (var i = 0; i < node1.length ; i++) {
  1140. for (var j = 0; j < node2.length; j++) {
  1141. if (node1.item(i).nodeName == node2.item(j).nodeName) {
  1142. if( pcopy_node != "Y")
  1143. model.setValue( psource_node+"/"+node2.item(j).nodeName, model.getValue( ptarget_node.nodeset+"["+ ptarget_node.row + "]/" + node1.item(i).nodeName ) );
  1144. else {
  1145. if( model.getValue ( psource_node+"/"+node2.item(j).nodeName ) != model.getValue( ptarget_node.nodeset+"["+ ptarget_node.row + "]/" + node1.item(i).nodeName ) ){
  1146. model.setValue( ptarget_node.nodeset+"["+ ptarget_node.row + "]/" + node1.item(i).nodeName, model.getValue(psource_node+"/"+node2.item(j).nodeName) );
  1147. ptarget_node.rowstatus(ptarget_node.row) = 2;
  1148. }
  1149. }
  1150. }
  1151. }
  1152. }
  1153. model.refresh();
  1154. }
  1155. /*
  1156. * old & new 결과값을 비교 한다.
  1157. * pDefault : "Y" 일 경우 componets 초기화 ( 폰트 색상을 초기화 한다. )
  1158. */
  1159. function fOldNewCompare(pOriData_node, pNewData_node, pDefault) {
  1160. var child = window.document.body.group3.swt_select.cse_costlist.grp_disp.swt_map.children; // switch 안에 포함된 Case 묶음을 가지고 있는 객체
  1161. var node1 = instance1.selectNodes(pOriData_node + "/*"); // Ori Master Data
  1162. var node2 = instance1.selectNodes(pNewData_node + "/*"); // New Master Data
  1163. var nodeName;
  1164. var tempControl;
  1165. if ( pDefault == "Y" ) {
  1166. //. Grid Componets 초기화
  1167. fComponetInit();
  1168. return;
  1169. }
  1170. for (var i = 0; i < node1.length ; i++) {
  1171. nodeName = node1.item(i).nodeName.split("_"); // -> old_good 이런 형태의 노드이기때문에 new 코드와 mapping 하기 위해서 "_" split 처리함
  1172. // nodeName[1] 으로 비교 처리
  1173. for (var j = 0; j < node2.length; j++) {
  1174. if (nodeName[1] == node2.item(j).nodeName) {
  1175. // if( (model.getValue( pOriData_node + "/" + node1.item(i).nodeName) != model.getValue( pNewData_node + "/" + node2.item(j).nodeName))){
  1176. if (node1.item(i).value != node2.item(j).value ){
  1177. fComponetSearch( pNewData_node + node2.item(j).nodeName,"Y");
  1178. /*
  1179. try {
  1180. tempControl = window.document.controls("ipt_" + node2.item(j).nodeName); //node2.item(j).nodeName);
  1181. tempControl.attribute("color") = "red";
  1182. } catch( e ) {
  1183. tempControl = window.document.controls("cmb_" + node2.item(j).nodeName); //node2.item(j).nodeName);
  1184. tempControl.attribute("background-color") = "#ccffcc";
  1185. }
  1186. */
  1187. } else {
  1188. fComponetSearch( pNewData_node + node2.item(j).nodeName);
  1189. /*
  1190. try {
  1191. tempControl = window.document.controls("ipt_" + node2.item(j).nodeName); //node2.item(j).nodeName);
  1192. tempControl.initStyle("color");
  1193. } catch( e ) {
  1194. tempControl = window.document.controls("cmb_" + node2.item(j).nodeName); //node2.item(j).nodeName);
  1195. tempControl.initStyle("background-color");
  1196. }
  1197. */
  1198. }
  1199. }
  1200. }
  1201. }
  1202. }
  1203. /* ========================================
  1204. * 신구 데이터 비교를 후 색상 변화를 처리하는 함수
  1205. */
  1206. function fComponetSearch(pNode, pCls) {
  1207. var child = window.document.body.group3.swt_select.cse_costlist.grp_disp.swt_map.children;
  1208. for (ii = 0; ii < child.length; ii++) {
  1209. child2 = child.item(ii).children ;
  1210. for (jj = 0; jj < child2.length; jj++) {
  1211. if (child2.item(jj).attribute("ref") == pNode) {
  1212. if (pCls == "Y") {
  1213. if (child2.item(jj).elementName == "xforms:input" ) {
  1214. child2.item(jj).attribute("color") = "red";
  1215. }else {
  1216. child2.item(jj).attribute("background-color") = "#ccffcc";
  1217. }
  1218. return;
  1219. } else {
  1220. if (child2.item(jj).elementName == "xforms:input" ) {
  1221. child2.item(jj).initStyle("color");
  1222. }else {
  1223. child2.item(jj).initStyle("background-color");
  1224. }
  1225. }
  1226. }
  1227. }
  1228. }
  1229. }
  1230. /*
  1231. * 콤포넌트 초기화
  1232. */
  1233. function fComponetInit() {
  1234. var child = window.document.body.group3.swt_select.cse_costlist.grp_disp.swt_map.children;
  1235. for (ii = 0; ii < child.length; ii++) {
  1236. child2 = child.item(ii).children ;
  1237. for (jj = 0; jj < child2.length; jj++) {
  1238. if (child2.item(jj).elementName == "xforms:input" ) {
  1239. child2.item(jj).initStyle("color");
  1240. } else {
  1241. child2.item(jj).initStyle("background-color");
  1242. }
  1243. }
  1244. }
  1245. }
  1246. ]]>
  1247. </script>
  1248. </xhtml:head>
  1249. <xhtml:body guideline="2,787;2,792;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1250. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1251. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">물품코드 일괄등록</caption>
  1252. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  1253. </group>
  1254. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  1255. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:75px; vertical-align:top; ">
  1256. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
  1257. <caption id="cap_instcd" class="search_name" style="left:15; top:8px; width:86px; height:17px; ">기관코드 :</caption>
  1258. <caption id="cap_goodflag" class="search_name" style="left:364px; top:8px; width:86px; height:17px; ">물품구분 :</caption>
  1259. <caption id="caption30" class="search_name" style="left:15px; top:40px; width:90px; height:17px; ">저장구분 :</caption>
  1260. <caption id="cap_workflag" class="search_name" style="left:705px; top:8px; width:135px; height:17px; ">신규/변경구분 :</caption>
  1261. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:26px; width:56px; height:27px; ">
  1262. <caption>조회</caption>
  1263. <script type="javascript" ev:event="DOMActivate">
  1264. <![CDATA[
  1265. // size 원위치
  1266. if(fCheckRetrieveData() == false)return;
  1267. misfMsterDetailRetrieve();
  1268. if(grd_excelmaplist.rows - grd_excelmaplist.fixedRows > 0)
  1269. fMapListValid( grd_excelmaplist );
  1270. // setRowStyle("grd_excelmaplist", "6^2", "I^U", "workflag");
  1271. // setRowStyle("grd_excelmaplist", "1", "Y", "saveyn", "equal");
  1272. ]]>
  1273. </script>
  1274. </button>
  1275. <select1 id="cmb_goodflag" ref="/root/send/searchlist/goodflag" class="combo_search" appearance="minimal" style="left:449px; top:8px; width:225px; height:19px; ">
  1276. <choices>
  1277. <itemset nodeset="/root/init/goodflag">
  1278. <label ref="cdnm"/>
  1279. <value ref="cdid"/>
  1280. </itemset>
  1281. </choices>
  1282. <script type="javascript" ev:event="xforms-value-changed">
  1283. <![CDATA[
  1284. fSetGoodFlagAuth();
  1285. ]]>
  1286. </script>
  1287. </select1>
  1288. <line id="line_title" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
  1289. <select1 id="cmb_instcd" ref="/root/send/searchlist/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:238px; height:19px; ">
  1290. <choices>
  1291. <itemset nodeset="/root/init/instcd">
  1292. <label ref="cdnm"/>
  1293. <value ref="cdid"/>
  1294. </itemset>
  1295. </choices>
  1296. <script type="javascript" ev:event="xforms-value-changed">
  1297. <![CDATA[
  1298. misfGridInit(grd_rscdexcellist);
  1299. ]]>
  1300. </script>
  1301. </select1>
  1302. <input id="ipt_lrgcd_search" ref="/root/init/lrgcd" class="input_search" visibility="hidden" style="left:985px; top:45px; width:70px; height:19px; "/>
  1303. <input id="ipt_mdlcd_search" ref="/root/init/mdlcd" class="input_search" visibility="hidden" style="left:985px; top:25px; width:70px; height:19px; "/>
  1304. <input id="ipt_smlcd_search" ref="/root/init/smlcd" class="input_search" visibility="hidden" style="left:985px; top:5px; width:70px; height:19px; "/>
  1305. <select1 id="rdo_workflag" ref="/root/send/searchlist/workflag" class="radio_search" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:830px; top:8px; width:100px; height:20px; border-style:none; ">
  1306. <choices>
  1307. <itemset nodeset="/root/init/workflag">
  1308. <label ref="label"/>
  1309. <value ref="value"/>
  1310. </itemset>
  1311. </choices>
  1312. </select1>
  1313. <select1 id="rdo_saveyn" ref="/root/send/searchlist/saveyn" class="radio_search" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:100px; top:40px; width:100px; height:20px; border-style:none; ">
  1314. <choices>
  1315. <itemset nodeset="/root/init/saveyn">
  1316. <label ref="label"/>
  1317. <value ref="value"/>
  1318. </itemset>
  1319. </choices>
  1320. </select1>
  1321. <caption id="caption2" class="search_name" visibility="hidden" style="left:705px; top:40px; width:90px; height:17px; ">삭제구분 :</caption>
  1322. <select1 id="rdo_delyn" ref="/root/send/searchlist/delyn" class="radio_search" visibility="hidden" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:830px; top:40px; width:100px; height:20px; border-style:none; ">
  1323. <choices>
  1324. <itemset nodeset="/root/init/delyn">
  1325. <label ref="label"/>
  1326. <value ref="value"/>
  1327. </itemset>
  1328. </choices>
  1329. </select1>
  1330. </group>
  1331. <switch id="swt_select" class="sw_box" style="left:0px; top:120px; width:1195px; height:620px; border-style:solid; ">
  1332. <case id="cse_costlist" selected="true" style="left:0px; top:0px; width:1193px; height:620px; ">
  1333. <caption id="caption8" class="tit_2" style="left:4px; top:7px; width:161px; height:13px; ">Data Mapping List</caption>
  1334. <datagrid id="grd_excelmaplist" nodeset="/root/main/list/goodexcelmap/goodexcelmaplist" caption="순번^순번^신규/변경^신규확인^신약품코드^Master코드^적용일^이전적용일^기관코드^사용여부^종료일자^물품구분^품명^물품명(한글)^물품명(영문)^물품규격^모델^자산구분^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^구코드^제제약SET구분^계정코드^입고계정^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^주사용부서명^구매연결코드^재고관리기준^포장단위^낱개단위^포장환산^최소환산수량^재사용분할구분^분할사용수치^수가정보등록상태^수가정보등록일자^보험여부^edi코드^신규등록일자^신청부서코드^신청자id^청구기준^임의청구구분^청구방법^청구주기^내외자구분^제조국^제조회사코드^제조회사^주거래처코드^주거래처^판매회사코드^판매회사^계약구분^계약기간from^계약기간to^처방단가^외화단가^화폐단위^구입단가^구매구분^allsize유무^set발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^보나에스코드^규제약품여부^마약/향정구분^고가여부^함량단위^함량용량^규격용량^약품종류^공동구매여부^자동이송^보관방법^보관방법명^특별약품^일반-전문^일반_전문명^복지부분류^제형^성분코드^제한약품여부^비고^안전재고적용일자^안전재고량^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^최초등록자id^최초등록일시^최종수정자id^최종수정일시^처방단위^처방환산수량^보험단가^규격단위^보관법설명^원산지^성분명^포장수량^처방수량^중앙공급실용도^구입가^구매계정코드^저장여부^IF구분^삭제여부^반영일자^분류코드체크^caption1^caption2^caption3^병원용량^병원단위^계산방법^그룹코드" colsep="^" colwidth="40, 40, 63, 60, 89, 73, 90, 90, 52, 56, 100, 70, 120, 39, 100, 70, 74, 99, 40, 80, 40, 80, 40, 80, 80, 100, 40, 100, 40, 100, 40, 100, 40, 100, 40, 100, 60, 60, 60, 90, 94, 80, 40, 40, 50, 70, 40, 39, 40, 100, 80, 80, 60, 40, 100, 30, 100, 30, 100, 30, 100, 30, 30, 30, 70, 70, 60, 80, 100, 60, 80, 80, 80, 40, 60, 40, 30, 50, 80, 40, 40, 40, 70, 70, 70, 40, 40, 40, 70, 30, 30, 62, 30, 80, 30, 80, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 60, 80, 70, 60, 130, 30, 110, 60, 60, 30, 60, 30, 60, 40, 40, 60, 50, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" frozencols="10" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193px; height:588px; ">
  1335. <col ref="no" visibility="hidden"/>
  1336. <col ref="rownumber"/>
  1337. <col ref="workflag" type="combo">
  1338. <choices>
  1339. <itemset nodeset="/root/init/workflag">
  1340. <label ref="label"/>
  1341. <value ref="value"/>
  1342. </itemset>
  1343. </choices>
  1344. </col>
  1345. <col ref="workvalid" visibility="hidden"/>
  1346. <col ref="goodcd" type="input"/>
  1347. <col ref="goodmastercd"/>
  1348. <col ref="fromdd" type="inputdate"/>
  1349. <col disabled="true" ref="prefromdd" type="inputdate"/>
  1350. <col disabled="true" ref="instcd" type="combo" visibility="hidden">
  1351. <choices>
  1352. <itemset>
  1353. <label/>
  1354. <value/>
  1355. </itemset>
  1356. </choices>
  1357. </col>
  1358. <col checkvalue="Y,N" ref="useyn" type="checkbox" visibility="hidden"/>
  1359. <col ref="todd" type="inputdate"/>
  1360. <col disabled="true" ref="goodflag" type="combo" visibility="hidden">
  1361. <choices>
  1362. <itemset>
  1363. <label/>
  1364. <value/>
  1365. </itemset>
  1366. </choices>
  1367. </col>
  1368. <col ref="goodnm" type="input"/>
  1369. <col ref="goodhngnm" type="input" visibility="hidden"/>
  1370. <col ref="goodengnm" type="input"/>
  1371. <col ref="goodspec" type="input" visibility="hidden"/>
  1372. <col ref="goodmodel" type="input" visibility="hidden"/>
  1373. <col ref="asetflag" type="combo" visibility="hidden">
  1374. <choices>
  1375. <itemset>
  1376. <label/>
  1377. <value/>
  1378. </itemset>
  1379. </choices>
  1380. </col>
  1381. <col ref="lrgcd" visibility="hidden"/>
  1382. <col ref="lrgnm" type="inputbutton"/>
  1383. <col ref="mdlcd" visibility="hidden"/>
  1384. <col ref="mdlnm"/>
  1385. <col ref="smlcd" visibility="hidden"/>
  1386. <col ref="smlnm"/>
  1387. <col ref="oldcd" type="input"/>
  1388. <col ref="proddrugsetflag" type="combo" visibility="hidden">
  1389. <choices>
  1390. <itemset>
  1391. <label/>
  1392. <value/>
  1393. </itemset>
  1394. </choices>
  1395. </col>
  1396. <col ref="winacnt" type="input" visibility="hidden"/>
  1397. <col ref="winacntnm" type="inputbutton"/>
  1398. <col ref="amtacnt" type="input" visibility="hidden"/>
  1399. <col ref="amtacntnm" type="inputbutton"/>
  1400. <col ref="mainmngtdeptcd" type="input" visibility="hidden"/>
  1401. <col ref="mainmngtdeptnm" type="inputbutton"/>
  1402. <col ref="mainusedeptcd" type="input" visibility="hidden"/>
  1403. <col ref="mainusedeptnm" type="inputbutton"/>
  1404. <col ref="purclnkgoodcd" type="input" visibility="hidden"/>
  1405. <col ref="stocmngtflag" type="combo">
  1406. <choices>
  1407. <itemset>
  1408. <label/>
  1409. <value/>
  1410. </itemset>
  1411. </choices>
  1412. </col>
  1413. <col ref="purcunit" type="combo">
  1414. <choices>
  1415. <itemset>
  1416. <label/>
  1417. <value/>
  1418. </itemset>
  1419. </choices>
  1420. </col>
  1421. <col ref="deliveunit" type="combo">
  1422. <choices>
  1423. <itemset>
  1424. <label/>
  1425. <value/>
  1426. </itemset>
  1427. </choices>
  1428. </col>
  1429. <col ref="exchqty" type="input" format="#,###" style="text-align:right; "/>
  1430. <col ref="minexch" type="input" visibility="hidden"/>
  1431. <col checkvalue="Y,N" ref="reuseyn" type="checkbox" visibility="hidden"/>
  1432. <col ref="divusenvalqty" type="input" visibility="hidden"/>
  1433. <col ref="calcscorinfoacptstat" type="input" visibility="hidden"/>
  1434. <col ref="calcscorinfoacptdd" type="inputdate" visibility="hidden"/>
  1435. <col checkvalue="Y,N" ref="insuyn" type="checkbox" visibility="hidden"/>
  1436. <col ref="edicd" type="input"/>
  1437. <col ref="newrgstdd" type="inputdate" visibility="hidden"/>
  1438. <col ref="reqdeptcd" type="input" visibility="hidden"/>
  1439. <col ref="reqpsn" type="input" visibility="hidden"/>
  1440. <col ref="reqflag" type="combo">
  1441. <choices>
  1442. <itemset>
  1443. <label/>
  1444. <value/>
  1445. </itemset>
  1446. </choices>
  1447. </col>
  1448. <col checkvalue="Y,N" ref="tmpreqflag" type="checkbox"/>
  1449. <col ref="reqmthd" type="combo">
  1450. <choices>
  1451. <itemset>
  1452. <label/>
  1453. <value/>
  1454. </itemset>
  1455. </choices>
  1456. </col>
  1457. <col ref="reqprid" type="combo">
  1458. <choices>
  1459. <itemset>
  1460. <label/>
  1461. <value/>
  1462. </itemset>
  1463. </choices>
  1464. </col>
  1465. <col ref="iopsnflag" type="combo" visibility="hidden">
  1466. <choices>
  1467. <itemset nodeset="/root/init/iopsnflag">
  1468. <label ref="label"/>
  1469. <value ref="value"/>
  1470. </itemset>
  1471. </choices>
  1472. </col>
  1473. <col ref="prodplce" type="combo">
  1474. <choices>
  1475. <itemset>
  1476. <label/>
  1477. <value/>
  1478. </itemset>
  1479. </choices>
  1480. </col>
  1481. <col ref="prodcmpycd" visibility="hidden"/>
  1482. <col ref="prodcmpynm" type="inputbutton"/>
  1483. <col ref="maincustlastsuplplce" type="input" visibility="hidden"/>
  1484. <col ref="maincustlastsuplplcenm" type="inputbutton"/>
  1485. <col ref="suppcustcd" type="input" visibility="hidden"/>
  1486. <col ref="suppcustnm" type="inputbutton"/>
  1487. <col ref="conflag" type="combo" visibility="hidden">
  1488. <choices>
  1489. <itemset>
  1490. <label/>
  1491. <value/>
  1492. </itemset>
  1493. </choices>
  1494. </col>
  1495. <col ref="fromconterm" type="inputdate" visibility="hidden"/>
  1496. <col ref="toconterm" type="inputdate" visibility="hidden"/>
  1497. <col ref="estmamt" type="input" format="#,###.##" style="text-align:right; "/>
  1498. <col ref="forgncurncyunitcost" type="input" visibility="hidden"/>
  1499. <col ref="curncyunit" type="combo" visibility="hidden">
  1500. <choices>
  1501. <itemset>
  1502. <label/>
  1503. <value/>
  1504. </itemset>
  1505. </choices>
  1506. </col>
  1507. <col ref="goodunitcost" type="input" format="#,###.##" style="text-align:right; "/>
  1508. <col ref="purcflag" type="combo">
  1509. <choices>
  1510. <itemset>
  1511. <label/>
  1512. <value/>
  1513. </itemset>
  1514. </choices>
  1515. </col>
  1516. <col ref="allsizeyn" type="input" visibility="hidden"/>
  1517. <col ref="setplceordflag" type="combo" visibility="hidden">
  1518. <choices>
  1519. <itemset>
  1520. <label/>
  1521. <value/>
  1522. </itemset>
  1523. </choices>
  1524. </col>
  1525. <col ref="plceordbase" type="combo" visibility="hidden">
  1526. <choices>
  1527. <itemset>
  1528. <label/>
  1529. <value/>
  1530. </itemset>
  1531. </choices>
  1532. </col>
  1533. <col ref="plceordqtycretflag" type="combo" visibility="hidden">
  1534. <choices>
  1535. <itemset>
  1536. <label/>
  1537. <value/>
  1538. </itemset>
  1539. </choices>
  1540. </col>
  1541. <col ref="plceordnonusedd" type="inputdate" visibility="hidden"/>
  1542. <col ref="addtaxrate" type="input"/>
  1543. <col ref="lastpurcdd" type="inputdate" visibility="hidden"/>
  1544. <col ref="nonusetretresn" type="input" visibility="hidden"/>
  1545. <col ref="mngtflag" type="combo" visibility="hidden">
  1546. <choices>
  1547. <itemset>
  1548. <label/>
  1549. <value/>
  1550. </itemset>
  1551. </choices>
  1552. </col>
  1553. <col ref="bnscd" type="input"/>
  1554. <col ref="cntrdrugyn" type="input" visibility="hidden"/>
  1555. <col ref="narcflag" type="input" visibility="hidden"/>
  1556. <col ref="expnyn" type="input" visibility="hidden"/>
  1557. <col ref="cntsunit" type="combo">
  1558. <choices>
  1559. <itemset>
  1560. <label/>
  1561. <value/>
  1562. </itemset>
  1563. </choices>
  1564. </col>
  1565. <col ref="cntsqty" type="input" format="#,###.##" style="text-align:right; "/>
  1566. <col ref="specvol" type="input" format="#,###.##" style="text-align:right; "/>
  1567. <col ref="drugkind" type="input" visibility="hidden"/>
  1568. <col ref="cooppurcyn" type="input" visibility="hidden"/>
  1569. <col ref="autrampharm" type="input" visibility="hidden"/>
  1570. <col ref="keepmthd" type="combo">
  1571. <choices>
  1572. <itemset nodeset="/root/init/keepmthd">
  1573. <label ref="label"/>
  1574. <value ref="value"/>
  1575. </itemset>
  1576. </choices>
  1577. </col>
  1578. <col ref="keepmthdnm" type="input" visibility="hidden"/>
  1579. <col ref="specldrug" type="input" visibility="hidden"/>
  1580. <col ref="gnrlspcl" type="combo">
  1581. <choices>
  1582. <itemset nodeset="/root/init/gnrlspcl">
  1583. <label ref="label"/>
  1584. <value ref="value"/>
  1585. </itemset>
  1586. </choices>
  1587. </col>
  1588. <col ref="gnrlspclnm" type="input" visibility="hidden"/>
  1589. <col ref="welfprt" type="input"/>
  1590. <col ref="goodtype" type="input" visibility="hidden"/>
  1591. <col ref="com" type="input"/>
  1592. <col ref="limdrugyn" type="input" visibility="hidden"/>
  1593. <col ref="cmt" type="input" visibility="hidden"/>
  1594. <col ref="safestocappdd" type="inputdate" visibility="hidden"/>
  1595. <col ref="safestocqty" type="input" visibility="hidden"/>
  1596. <col ref="ddavguseqty" type="input" visibility="hidden"/>
  1597. <col ref="mmavgusescheqty" type="input" visibility="hidden"/>
  1598. <col ref="mmavguseqty" type="input" visibility="hidden"/>
  1599. <col ref="prprtystocpossndayno" type="input" visibility="hidden"/>
  1600. <col ref="fstrgstrid" type="input" visibility="hidden"/>
  1601. <col ref="fstrgstdt" type="inputdate" visibility="hidden"/>
  1602. <col ref="lastupdtrid" type="input" visibility="hidden"/>
  1603. <col ref="lastupdtdt" type="inputdate" visibility="hidden"/>
  1604. <col ref="prcpunit" type="combo">
  1605. <choices>
  1606. <itemset>
  1607. <label/>
  1608. <value/>
  1609. </itemset>
  1610. </choices>
  1611. </col>
  1612. <col ref="prcpexchqty" type="input" format="#,###.##" style="text-align:right; "/>
  1613. <col ref="insucost" type="input" format="#,###.##" style="text-align:right; "/>
  1614. <col ref="specunit" type="combo">
  1615. <choices>
  1616. <itemset>
  1617. <label/>
  1618. <value/>
  1619. </itemset>
  1620. </choices>
  1621. </col>
  1622. <col ref="pemtkeepmthd" type="input"/>
  1623. <col ref="orgloc" type="input" visibility="hidden"/>
  1624. <col ref="comnm" type="input"/>
  1625. <col ref="purcqty" type="input"/>
  1626. <col ref="prcpqty" type="input" format="#,###" style="text-align:right; "/>
  1627. <col ref="csrusecmt" type="input" visibility="hidden"/>
  1628. <col ref="goodpurccost" type="input" format="#,###.##" style="text-align:right; "/>
  1629. <col ref="purcacntcd" type="input" visibility="hidden"/>
  1630. <col ref="saveyn" visibility="hidden"/>
  1631. <col ref="ifflag" visibility="hidden"/>
  1632. <col ref="delyn" visibility="hidden"/>
  1633. <col ref="appdd"/>
  1634. <col ref="getgubunchk" visibility="hidden"/>
  1635. <col ref="inprodcmpynm" visibility="hidden" style="left:7520px; top:23px; width:100px; height:23px; "/>
  1636. <col ref="insuppcustcd" visibility="hidden"/>
  1637. <col ref="insuppcustnm" visibility="hidden"/>
  1638. <col ref="hospdrguvol" visibility="hidden"/>
  1639. <col ref="hospdrguunit" type="combo" visibility="hidden">
  1640. <choices>
  1641. <itemset>
  1642. <label/>
  1643. <value/>
  1644. </itemset>
  1645. </choices>
  1646. </col>
  1647. <col ref="calcmthdcd" visibility="hidden"/>
  1648. <col ref="grupsnglflag" visibility="hidden"/>
  1649. <script type="javascript" ev:event="onmousedown">
  1650. <![CDATA[
  1651. if(event.button == 3){
  1652. if(swt_select.selectedIndex == 0 && (grd_excelmaplist.isCell(event.target) && grd_excelmaplist.mouseRow >= grd_excelmaplist.fixedrows))
  1653. window.setPopupMenu(true, "/root/init/popmenu/grd_excelmaplist/item", "name", "func", false);
  1654. else window.setPopupMenu(false);
  1655. }
  1656. ]]>
  1657. </script>
  1658. <script type="javascript" ev:event="DOMFocusOut">
  1659. <![CDATA[
  1660. window.setPopupMenu(false);
  1661. ]]>
  1662. </script>
  1663. <script type="javascript" ev:event="onbuttonclick">
  1664. <![CDATA[
  1665. /*************************************************
  1666. * Grid 선택에 따른 popup(help) 선택 Script
  1667. *************************************************/
  1668. if(grd_excelmaplist.colRef("lrgnm") == grd_excelmaplist.col) /* 대분류 */
  1669. {
  1670. model.setValue( ipt_lrgcd_search.attribute("ref"), grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("lrgcd")) );
  1671. model.setValue( ipt_mdlcd_search.attribute("ref"), grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("mdlcd")) );
  1672. model.setValue( ipt_smlcd_search.attribute("ref"), grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("smlcd")) );
  1673. ipt_lrgcd_search.refresh();
  1674. ipt_mdlcd_search.refresh();
  1675. ipt_smlcd_search.refresh();
  1676. model.setValue(opt_popcond.attribute("ref"),"lrgnm");
  1677. model.setValue(opt_poptitle.attribute("ref"), "분류코드를 선택해 주세요");
  1678. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03801" ,"title,cond,instcd,goodflag,lrgcd,mdlcd,smlcd","opt_poptitle,opt_popcond,cmb_instcd,cmb_goodflag,ipt_lrgcd_search,ipt_mdlcd_search,ipt_smlcd_search");
  1679. fSetAllApply(grd_excelmaplist,"lrgcd,lrgnm,mdlcd,mdlnm,smlcd,smlnm", model.getValue(opt_popinputcd.attribute("ref")));
  1680. model.refresh();
  1681. } else if (grd_excelmaplist.colRef("mdlnm") == grd_excelmaplist.col) /* 중분류 */
  1682. {
  1683. rszfOpenPopUpListByWndName(grd_excelmaplist,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","goodflag,lrgcd,lrgnm");
  1684. // model.refresh();
  1685. } else if (grd_excelmaplist.colRef("smlnm") == grd_excelmaplist.col) /* 소분류 */
  1686. {
  1687. rszfOpenPopUpListByWndName(grd_excelmaplist,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","goodflag,lrgcd,lrgnm,mdlcd,mdlnm");
  1688. // model.refresh();
  1689. } else if (grd_excelmaplist.colRef("winacntnm") == grd_excelmaplist.col) /* 입고계정 */
  1690. {
  1691. rszfOpenPopUpListByWndName(grd_excelmaplist,"","winacnt,winacntnm","PPRAC00100","instcd","instcd");
  1692. model.refresh();
  1693. } else if (grd_excelmaplist.colRef("amtacntnm") == grd_excelmaplist.col) /* 비용계정 */
  1694. {
  1695. rszfOpenPopUpListByWndName(grd_excelmaplist,"","amtacnt,amtacntnm","PPRAC00100","instcd","instcd");
  1696. model.refresh();
  1697. } else if (grd_excelmaplist.colRef("mainmngtdeptnm") == grd_excelmaplist.col) /* 주관리부서 */
  1698. {
  1699. rszfOpenPopUpListByWndName(grd_excelmaplist,"","mainmngtdeptcd,mainmngtdeptnm","SPRPZ00200","instcd","instcd");
  1700. // model.refresh();
  1701. } else if (grd_excelmaplist.colRef("mainusedeptnm") == grd_excelmaplist.col) /* 주사용부서 */
  1702. {
  1703. rszfOpenPopUpListByWndName(grd_excelmaplist,"","mainusedeptcd,mainusedeptnm","SPRPZ00200","instcd","instcd");
  1704. // model.refresh();
  1705. } else if (grd_excelmaplist.colRef("prodcmpynm") == grd_excelmaplist.col) /* 제조회사 */
  1706. {
  1707. rszfOpenPopUpListByWndName(grd_excelmaplist,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  1708. // model.refresh();
  1709. } else if (grd_excelmaplist.colRef("maincustlastsuplplcenm") == grd_excelmaplist.col) /* 최종공급처 */
  1710. {
  1711. rszfOpenPopUpListByWndName(grd_excelmaplist,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","instcd");
  1712. // model.refresh();
  1713. } else if (grd_excelmaplist.colRef("suppcustnm") == grd_excelmaplist.col) /* 보조거래처 */
  1714. {
  1715. rszfOpenPopUpListByWndName(grd_excelmaplist,"","suppcustcd,suppcustnm","SPRSD00220","instcd","instcd");
  1716. // model.refresh();
  1717. }
  1718. ]]>
  1719. </script>
  1720. <script type="javascript" ev:event="onaftersort">
  1721. <![CDATA[
  1722. grd_excelmaplist.gridToInstance();
  1723. ]]>
  1724. </script>
  1725. <script type="javascript" ev:event="xforms-value-changed">
  1726. <![CDATA[
  1727. if ( grd_excelmaplist.col == grd_excelmaplist.colRef("workflag") ) {
  1728. if( grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("workvalid")) == "Y" ) {
  1729. grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("workvalid")) = "N"
  1730. messageBox("신규/변경 구분이","E016");
  1731. } else {
  1732. grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("workvalid")) = "Y"
  1733. }
  1734. }
  1735. ]]>
  1736. </script>
  1737. <script type="javascript" ev:event="ondblclick">
  1738. <![CDATA[
  1739. btn_bonaview.attribute("visibility") ="hidden" ;
  1740. grp_bonadata.attribute("visibility") ="hidden" ;
  1741. // 작업 구분이 상세 보기 check box가 선택되어 있을 경우 세부내역 Grid view
  1742. if( model.getValue(chk_multiflag.attribute("ref")) == "Y") {
  1743. fGridDataSet(grd_excelmaplist, "/root/main/list/newmasterlist/");
  1744. // rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_lrgcd", "", "L"); /* 대분류 List 셋팅 */
  1745. // rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M"); /* 중분류 List 셋팅 */
  1746. // rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S"); /* 소분류 List 셋팅 */
  1747. /*
  1748. * prefromdd = 19000101 -> 입력된 물품의 정보가 Master 에 없거나.. 통합에 있다 하더라도 해당 기관에 없을 경우 19000101로 설정
  1749. * goodmastercd -> 통합 Master에 동일 물품 코드 데이터
  1750. */
  1751. if(grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("prefromdd")) != "19000101" && grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("goodmastercd")) != "" ) {
  1752. model.setValue("/root/send/orimasterlist/instcd", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("instcd")));
  1753. model.setValue("/root/send/orimasterlist/goodflag", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("goodflag")));
  1754. model.setValue("/root/send/orimasterlist/fromdd", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("prefromdd")));
  1755. model.setValue("/root/send/orimasterlist/goodcd", grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("goodcd")));
  1756. submit("TRRSC03803");
  1757. /*
  1758. * Old Data와 New Data 비교
  1759. */
  1760. fOldNewCompare("/root/main/list/orimasterlist/", "/root/main/list/newmasterlist/");
  1761. } else { // 신규 물품에 대해서는 비교가 필요하지 않다. 선택한 Row의 값만 뿌려준다.
  1762. model.resetInstanceNode("/root/main/list/orimasterlist");
  1763. /*
  1764. * combo Clear
  1765. */
  1766. fOldNewCompare("/root/main/list/orimasterlist/", "/root/main/list/newmasterlist/", "Y");
  1767. model.refresh();
  1768. }
  1769. if (grd_excelmaplist.valueMatrix(grd_excelmaplist.row, grd_excelmaplist.colRef("ifflag")) == "I")
  1770. btn_bonaview.attribute("visibility") ="visible" ;
  1771. // 세부 내역을 활성화 한 Grid의 Row를 기억한다.
  1772. // -> 세부내역을 선택 한 후 그리드의 다른 row를 선택해 버리면... 데이터 수정후 엉뚱한 행이 수정될 수 있다.
  1773. ViewRow = grd_excelmaplist.row;
  1774. grp_disp.visible="visible";
  1775. }
  1776. ]]>
  1777. </script>
  1778. </datagrid>
  1779. <line id="line3" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
  1780. <button id="button1" class="btn2_letter4" style="left:1071px; top:3px; width:64px; height:19px; ">
  1781. <caption>임시저장</caption>
  1782. <script type="javascript" ev:event="DOMActivate">
  1783. <![CDATA[
  1784. grp_disp.attribute("visibility") ="hidden" ;
  1785. if ( fCheckSaveData( grd_excelmaplist ) != false) {
  1786. if ( getGridUpdateData(grd_excelmaplist) == "") {
  1787. messageBox("변경 데이터가","I004");
  1788. return;
  1789. }
  1790. misfSave("TXRSC03802");
  1791. }
  1792. ]]>
  1793. </script>
  1794. </button>
  1795. <button id="btn_save" class="btn3_letter2" style="left:1013px; top:2px; width:56px; height:22px; ">
  1796. <caption>저장</caption>
  1797. <script type="javascript" ev:event="DOMActivate">
  1798. <![CDATA[
  1799. grp_disp.attribute("visibility") ="hidden" ;
  1800. if ( fCheckSaveData( grd_excelmaplist ) == false) return;
  1801. if ( fSetSaveData( grd_excelmaplist ) == false) return;
  1802. //alert( getGridUpdateData(grd_excelmaplist));
  1803. //model.setValue("/root/send/save/gooddetlist", getGridUpdateData(grd_excelmaplist));
  1804. misfSave("TXRSC03803");
  1805. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  1806. btn_search.dispatch("DOMActivate");
  1807. ]]>
  1808. </script>
  1809. </button>
  1810. <button id="btn_delete" class="btn2_letter3" style="left:1138px; top:3px; width:53px; height:19px; ">
  1811. <caption>행삭제</caption>
  1812. <script type="javascript" ev:event="DOMActivate">
  1813. <![CDATA[
  1814. grp_disp.attribute("visibility") ="hidden" ;
  1815. if( grd_excelmaplist.rows - grd_excelmaplist.fixedRows > 0 ) {
  1816. var tempmag = messageBox("선택한 항목을 ", "Q001");
  1817. if ( tempmag == "6" ) {
  1818. misfGridIUD(grd_excelmaplist, "D"); // rowStatus = 4
  1819. for(currow = 0 ; currow < grd_excelmaplist.selectedRows; currow++) {
  1820. // grd_excelmaplist.rowStatus(grd_excelmaplist.selectedRow(currow)) = "4";
  1821. if( grd_excelmaplist.rowStatus(grd_excelmaplist.selectedRow(currow)) == "4" &&
  1822. model.getValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/delyn") == "N" ) {
  1823. model.setValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/" + "delyn", "Y"); // 대, 중, 소분류 값이 수정이 되면 오류 값을 수정처리 한다.
  1824. }
  1825. /*
  1826. else if ( grd_excelmaplist.rowStatus(grd_excelmaplist.selectedRow(currow)) != "4" &&
  1827. model.getValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/delyn") == "Y" ) {
  1828. model.setValue(grd_excelmaplist.nodeset + "[" + (grd_excelmaplist.selectedRow(currow)- grd_excelmaplist.fixedRows + 1) + "]/" + "delyn", "N"); // 대, 중, 소분류 값이 수정이 되면 오류 값을 수정처리 한다.
  1829. }
  1830. */
  1831. }
  1832. misfSave("TXRSC03802");
  1833. }
  1834. } else {
  1835. messageBox("데이터가","I004");
  1836. }
  1837. ]]>
  1838. </script>
  1839. </button>
  1840. <group id="grp_disp" visibility="hidden" style="left:607px; top:70px; width:585px; height:515px; ">
  1841. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:584px; height:514px; background-color:#fffbf2; border-color:#ffd799; "/>
  1842. <caption id="caption24" class="cell_1" style="left:95px; top:8px; width:235px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">Excel Load Data</caption>
  1843. <caption id="caption25" class="cell_1" style="left:335px; top:8px; width:235px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">현재 물품 Master</caption>
  1844. <button id="button3" class="btn2_letter3" style="left:20px; top:10px; width:53px; height:19px; ">
  1845. <caption>확인</caption>
  1846. <script type="javascript" ev:event="DOMActivate">
  1847. <![CDATA[
  1848. // 세부 내역을 활성화 한 Grid의 Row로 포커스 이동
  1849. // -> 세부내역을 선택 한 후 그리드의 다른 row를 선택해 버리면... 데이터 수정후 엉뚱한 행이 수정될 수 있는 상황 방지
  1850. if ( grd_excelmaplist.row != ViewRow )
  1851. grd_excelmaplist.row = ViewRow;
  1852. fGridDataSet(grd_excelmaplist, "/root/main/list/newmasterlist/","Y");
  1853. grp_disp.attribute("visibility") ="hidden" ;
  1854. ]]>
  1855. </script>
  1856. </button>
  1857. <switch id="swt_map" class="sw_box" style="left:2px; top:55px; width:581px; height:457px; border-color:#fffbf2; border-style:hidden; ">
  1858. <case id="cse_basic" selected="true" style="left:0px; top:0px; width:580px; height:455px; background-color:#fffbf2; ">
  1859. <!-- caption start -->
  1860. <caption id="caption12" class="cell_1" style="left:10px; top:8px; width:82px; height:23px; vertical-align:middle; ">적용일자</caption>
  1861. <caption id="caption3" class="cell_1" style="left:10px; top:34px; width:82px; height:23px; vertical-align:middle; ">신약품코드</caption>
  1862. <caption id="caption5" class="cell_1" style="left:10px; top:60px; width:82px; height:23px; vertical-align:middle; ">구코드</caption>
  1863. <caption id="caption7" class="cell_1" style="left:10px; top:86px; width:82px; height:23px; vertical-align:middle; ">보나에스코드</caption>
  1864. <caption id="caption9" class="cell_1" style="left:10px; top:112px; width:82px; height:23px; vertical-align:middle; ">한글상품명</caption>
  1865. <caption id="caption10" class="cell_1" style="left:10px; top:138px; width:82px; height:23px; vertical-align:middle; ">일반 / 전문</caption>
  1866. <caption id="caption11" class="cell_1" style="left:10px; top:164px; width:82px; height:23px; vertical-align:middle; ">복지부 분류</caption>
  1867. <caption id="caption13" class="cell_1" style="left:10px; top:190px; width:82px; height:23px; vertical-align:middle; ">제조회사</caption>
  1868. <caption id="caption14" class="cell_1" style="left:10px; top:216px; width:82px; height:23px; vertical-align:middle; ">EDI코드</caption>
  1869. <caption id="caption15" class="cell_1" style="left:10px; top:242px; width:82px; height:23px; vertical-align:middle; ">판매회사</caption>
  1870. <!-- caption end -->
  1871. <!-- new item start -->
  1872. <input id="ipt_fromdd" ref="/root/main/list/newmasterlist/fromdd" class="input_default" inputtype="date" style="left:95px; top:8px; width:100px; height:19px; "/>
  1873. <input id="ipt_goodcd" ref="/root/main/list/newmasterlist/goodcd" class="input_default" style="left:95px; top:34px; width:235px; height:19px; "/>
  1874. <input id="ipt_oldcd" ref="/root/main/list/newmasterlist/oldcd" class="input_default" style="left:95px; top:60px; width:235px; height:19px; "/>
  1875. <input id="ipt_bnscd" ref="/root/main/list/newmasterlist/bnscd" class="input_default" style="left:95px; top:86px; width:235px; height:19px; "/>
  1876. <input id="ipt_goodnm" ref="/root/main/list/newmasterlist/goodnm" class="input_default" style="left:95px; top:112px; width:235px; height:19px; "/>
  1877. <select1 id="cmb_gnrlspcl" ref="/root/main/list/newmasterlist/gnrlspcl" class="combo_search" appearance="minimal" style="left:95px; top:138px; width:235px; height:19px; ">
  1878. <choices>
  1879. <itemset nodeset="/root/init/gnrlspcl">
  1880. <label ref="label"/>
  1881. <value ref="value"/>
  1882. </itemset>
  1883. </choices>
  1884. </select1>
  1885. <input id="ipt_welfprt" ref="/root/main/list/newmasterlist/welfprt" class="input_default" style="left:95px; top:164px; width:235px; height:19px; "/>
  1886. <input id="ipt_prodcmpycd" ref="/root/main/list/newmasterlist/prodcmpycd" class="input_default" style="left:95px; top:190px; width:65px; height:19px; "/>
  1887. <button id="btn_prodcmpycd" class="icon_search" style="left:163px; top:190px; width:16px; height:16px; ">
  1888. <caption/>
  1889. <script type="javascript" ev:event="DOMActivate">
  1890. <![CDATA[
  1891. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  1892. model.refresh();
  1893. ]]>
  1894. </script>
  1895. </button>
  1896. <input id="ipt_prodcmpynm" ref="/root/main/list/newmasterlist/prodcmpynm" class="input_default" style="left:180px; top:190px; width:150px; height:19px; "/>
  1897. <input id="ipt_edicd" ref="/root/main/list/newmasterlist/edicd" class="input_default" style="left:95px; top:216px; width:235px; height:19px; "/>
  1898. <input id="ipt_suppcustcd" ref="/root/main/list/newmasterlist/suppcustcd" class="input_default" style="left:95px; top:242px; width:65px; height:19px; "/>
  1899. <button id="btn_suppcustcd" class="icon_search" style="left:163px; top:242px; width:16px; height:16px; ">
  1900. <caption/>
  1901. <script type="javascript" ev:event="DOMActivate">
  1902. <![CDATA[
  1903. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","ipt_instcd","ipt_instcd");
  1904. model.refresh();
  1905. ]]>
  1906. </script>
  1907. </button>
  1908. <input id="ipt_suppcustnm" ref="/root/main/list/newmasterlist/suppcustnm" class="input_default" style="left:180px; top:242px; width:150px; height:19px; "/>
  1909. <!-- new item end -->
  1910. <!-- old item start -->
  1911. <input id="opt_fromdd_2" ref="/root/main/list/orimasterlist/old_fromdd" class="input_default" disabled="true" inputtype="date" style="left:335px; top:8px; width:100px; height:19px; "/>
  1912. <output id="opt_goodcd_2" ref="/root/main/list/orimasterlist/old_goodcd" class="output_fix" style="left:335px; top:34px; width:235px; height:19px; "/>
  1913. <output id="opt_oldcd_2" ref="/root/main/list/orimasterlist/old_oldcd" class="output_fix" style="left:335px; top:60px; width:235px; height:19px; "/>
  1914. <output id="opt_bnscd_2" ref="/root/main/list/orimasterlist/old_bnscd" class="output_fix" style="left:335px; top:86px; width:235px; height:19px; "/>
  1915. <output id="opt_goodnm_2" ref="/root/main/list/orimasterlist/old_goodnm" class="output_fix" style="left:335px; top:112px; width:235px; height:19px; "/>
  1916. <select1 id="cmb_gnrlspcl_2" ref="/root/main/list/orimasterlist/old_gnrlspcl" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:138px; width:235px; height:19px; ">
  1917. <choices>
  1918. <itemset nodeset="/root/init/gnrlspcl">
  1919. <label ref="label"/>
  1920. <value ref="value"/>
  1921. </itemset>
  1922. </choices>
  1923. </select1>
  1924. <output id="opt_welfprt_2" ref="/root/main/list/orimasterlist/old_welfprt" class="output_fix" style="left:335px; top:164px; width:235px; height:19px; "/>
  1925. <output id="opt_prodcmpycd_2" ref="/root/main/list/orimasterlist/old_prodcmpycd" class="output_fix" style="left:335px; top:190px; width:75px; height:19px; "/>
  1926. <output id="opt_prodcmpynm_2" ref="/root/main/list/orimasterlist/old_prodcmpynm" class="output_fix" style="left:415px; top:190px; width:155px; height:19px; "/>
  1927. <output id="opt_edicd_2" ref="/root/main/list/orimasterlist/old_edicd" class="output_fix" style="left:335px; top:216px; width:235px; height:19px; "/>
  1928. <output id="opt_suppcustcd_2" ref="/root/main/list/orimasterlist/old_suppcustcd" class="output_fix" style="left:335px; top:242px; width:75px; height:19px; "/>
  1929. <output id="opt_suppcustnm_2" ref="/root/main/list/orimasterlist/old_suppcustnm" class="output_fix" style="left:415px; top:242px; width:155px; height:19px; "/>
  1930. <!-- end item start -->
  1931. <group id="grp_bonadata" style="left:10px; top:305px; width:325px; height:125px; background-color:#ffcc99; border-style:none; ">
  1932. <caption id="caption18" class="cell_1" style="left:40px; top:5px; width:235px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; ">입력 Data</caption>
  1933. <caption id="caption19" class="cell_1" style="left:10px; top:60px; width:82px; height:33px; vertical-align:middle; ">
  1934. <![CDATA[판매회사
  1935. 사업자번호]]>
  1936. </caption>
  1937. <caption id="caption20" class="cell_1" style="left:10px; top:35px; width:82px; height:23px; vertical-align:middle; ">제조회사</caption>
  1938. <caption id="caption21" class="cell_1" style="left:10px; top:95px; width:82px; height:23px; vertical-align:middle; ">판매회사</caption>
  1939. <output id="ipt_inprodcmpynm" ref="/root/main/list/newmasterlist/inprodcmpynm" class="output_fix" style="left:95px; top:38px; width:220px; height:19px; "/>
  1940. <output id="ipt_insuppcustcd" ref="/root/main/list/newmasterlist/insuppcustcd" class="output_fix" style="left:95px; top:67px; width:65px; height:19px; "/>
  1941. <output id="ipt_insuppcustnm" ref="/root/main/list/newmasterlist/insuppcustnm" class="output_fix" style="left:95px; top:98px; width:220px; height:19px; "/>
  1942. </group>
  1943. <button id="btn_bonaview" class="btn3_letter13" style="left:25px; top:275px; width:53px; height:19px; ">
  1944. <caption>보나에스 제조회사/판매회사</caption>
  1945. <script type="javascript" ev:event="DOMActivate">
  1946. <![CDATA[
  1947. if (grp_bonadata.attribute("visibility") =="visible")
  1948. grp_bonadata.attribute("visibility") ="hidden" ;
  1949. else
  1950. grp_bonadata.attribute("visibility") ="visible" ;
  1951. ]]>
  1952. </script>
  1953. </button>
  1954. </case>
  1955. <case id="cse_other" style="left:0px; top:0px; width:580px; height:455px; background-color:#fffbf2; ">
  1956. <!-- caption start -->
  1957. <caption id="caption32" class="cell_1" style="left:10px; top:8px; width:82px; height:23px; vertical-align:middle; ">집계구분</caption>
  1958. <caption id="caption31" class="cell_1" style="left:10px; top:34px; width:82px; height:23px; vertical-align:middle; ">성분코드</caption>
  1959. <caption id="caption35" class="cell_1" style="left:10px; top:60px; width:82px; height:23px; vertical-align:middle; ">성분명</caption>
  1960. <caption id="caption38" class="cell_1" style="left:10px; top:86px; width:82px; height:23px; vertical-align:middle; ">대분류</caption>
  1961. <caption id="caption41" class="cell_1" style="left:10px; top:112px; width:82px; height:23px; vertical-align:middle; ">중분류</caption>
  1962. <caption id="caption27" class="cell_1" style="left:10px; top:138px; width:82px; height:23px; vertical-align:middle; ">소분류</caption>
  1963. <caption id="caption29" class="cell_1" style="left:10px; top:164px; width:82px; height:23px; vertical-align:middle; ">입고계정</caption>
  1964. <caption id="caption33" class="cell_1" style="left:10px; top:190px; width:82px; height:23px; vertical-align:middle; ">비용계정</caption>
  1965. <caption id="caption34" class="cell_1" style="left:10px; top:216px; width:82px; height:23px; vertical-align:middle; ">보관법(실제)</caption>
  1966. <caption id="caption36" class="cell_1" style="left:10px; top:242px; width:82px; height:23px; vertical-align:middle; ">보관법 설명</caption>
  1967. <!-- caption end -->
  1968. <!-- new item start -->
  1969. <select1 id="cmb_reqflag" ref="/root/main/list/newmasterlist/reqflag" class="combo_search" appearance="minimal" style="left:95px; top:8px; width:235px; height:19px; ">
  1970. <choices>
  1971. <itemset>
  1972. <label/>
  1973. <value/>
  1974. </itemset>
  1975. </choices>
  1976. </select1>
  1977. <input id="ipt_com" ref="/root/main/list/newmasterlist/com" class="input_default" style="left:95px; top:34px; width:235px; height:19px; "/>
  1978. <input id="ipt_comnm" ref="/root/main/list/newmasterlist/comnm" class="input_default" style="left:95px; top:60px; width:235px; height:19px; "/>
  1979. <input id="ipt_lrgcd" ref="/root/main/list/newmasterlist/lrgcd" class="input_search" style="left:95px; top:86px; width:55px; height:19px; ">
  1980. <script type="javascript" ev:event="xforms-value-changed">
  1981. <![CDATA[
  1982. if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm.attribute("ref"),"");
  1983. else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(cmb_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref")) + "," ,"","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
  1984. model.refresh();
  1985. ]]>
  1986. </script>
  1987. </input>
  1988. <button id="btn_ipt_lrgcd" class="icon_search" style="left:155px; top:86px; width:16px; height:16px; ">
  1989. <caption/>
  1990. <script type="javascript" ev:event="DOMActivate">
  1991. <![CDATA[
  1992. rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","cmb_goodflag");
  1993. model.refresh();
  1994. ]]>
  1995. </script>
  1996. </button>
  1997. <input id="ipt_lrgnm" ref="/root/main/list/newmasterlist/lrgnm" class="input_search" style="left:180; top:86px; width:142px; height:19px; ">
  1998. <script type="javascript" ev:event="xforms-value-changed">
  1999. <![CDATA[
  2000. if(ipt_lrgnm.value != "" )
  2001. {
  2002. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  2003. "lrgnm," + model.getValue(cmb_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),
  2004. "","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","cmb_goodflag");
  2005. }else{
  2006. ipt_lrgcd.value = "";
  2007. }
  2008. model.refresh();
  2009. ]]>
  2010. </script>
  2011. </input>
  2012. <input id="ipt_mdlcd" ref="/root/main/list/newmasterlist/mdlcd" class="input_search" style="left:95px; top:112px; width:55px; height:19px; ">
  2013. <script type="javascript" ev:event="xforms-value-changed">
  2014. <![CDATA[
  2015. if (model.getValue(ipt_mdlcd.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm.attribute("ref"),"");
  2016. else rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlcd," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) +","
  2017. ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm");
  2018. model.refresh();
  2019. ]]>
  2020. </script>
  2021. </input>
  2022. <button id="btn_mdlcd" class="icon_search" style="left:155px; top:112px; width:16px; height:16px; ">
  2023. <caption/>
  2024. <script type="javascript" ev:event="DOMActivate">
  2025. <![CDATA[
  2026. rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140" ,"goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm");
  2027. model.refresh();
  2028. ]]>
  2029. </script>
  2030. </button>
  2031. <input id="ipt_mdlnm" ref="/root/main/list/newmasterlist/mdlnm" class="input_search" style="left:180; top:112px; width:142px; height:19px; ">
  2032. <script type="javascript" ev:event="xforms-value-changed">
  2033. <![CDATA[
  2034. if(ipt_mdlnm.value != "")
  2035. {
  2036. rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
  2037. "mdlnm," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref"))
  2038. ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm");
  2039. }else{
  2040. ipt_mdlcd.value = "";
  2041. }
  2042. model.refresh();
  2043. ]]>
  2044. </script>
  2045. </input>
  2046. <input id="ipt_smlcd" ref="/root/main/list/newmasterlist/smlcd" class="input_search" style="left:95px; top:138px; width:55px; height:19px; ">
  2047. <script type="javascript" ev:event="xforms-value-changed">
  2048. <![CDATA[
  2049. if (model.getValue(ipt_smlcd.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm.attribute("ref"),"");
  2050. else rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + "," +
  2051. model.getValue(ipt_smlcd.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  2052. model.refresh();
  2053. ]]>
  2054. </script>
  2055. </input>
  2056. <button id="btn_smlcd" class="icon_search" style="left:155px; top:138px; width:16px; height:16px; ">
  2057. <caption/>
  2058. <script type="javascript" ev:event="DOMActivate">
  2059. <![CDATA[
  2060. rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  2061. model.refresh();
  2062. ]]>
  2063. </script>
  2064. </button>
  2065. <input id="ipt_smlnm" ref="/root/main/list/newmasterlist/smlnm" class="input_search" style="left:180; top:138px; width:142px; height:19px; ">
  2066. <script type="javascript" ev:event="xforms-value-changed">
  2067. <![CDATA[
  2068. if(ipt_smlnm.value != ""){
  2069. rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
  2070. "smlnm," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + ",," +
  2071. model.getValue(ipt_smlnm.attribute("ref")),
  2072. "","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","cmb_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  2073. }else{
  2074. ipt_smlcd.value = "";
  2075. }
  2076. model.refresh();
  2077. ]]>
  2078. </script>
  2079. </input>
  2080. <!--
  2081. <select1 id="cmb_lrgcd" ref="/root/main/list/newmasterlist/lrgcd" class="combo_search" appearance="minimal" style="left:95px; top:86px; width:235px; height:19px; ">
  2082. <choices>
  2083. <itemset nodeset="/root/init/inputlrgcmb">
  2084. <label ref="cdnm"/>
  2085. <value ref="cdid"/>
  2086. </itemset>
  2087. </choices>
  2088. <script type="javascript" ev:event="xforms-value-changed">
  2089. <![CDATA[
  2090. rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M");
  2091. cmb_mdlcd.dispatch("xforms-value-changed");
  2092. model.refresh();
  2093. ]]>
  2094. </script>
  2095. </select1>
  2096. <select1 id="cmb_mdlcd" ref="/root/main/list/newmasterlist/mdlcd" class="combo_search" appearance="minimal" style="left:95px; top:112px; width:235px; height:19px; ">
  2097. <choices>
  2098. <itemset nodeset="/root/init/inputmdlcmb">
  2099. <label ref="cdnm"/>
  2100. <value ref="cdid"/>
  2101. </itemset>
  2102. </choices>
  2103. <script type="javascript" ev:event="xforms-value-changed">
  2104. <![CDATA[
  2105. rszfLMSComboList( model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S");
  2106. model.refresh();
  2107. ]]>
  2108. </script>
  2109. </select1>
  2110. <select1 id="cmb_smlcd" ref="/root/main/list/newmasterlist/smlcd" class="combo_search" appearance="minimal" style="left:95px; top:138px; width:235px; height:19px; ">
  2111. <choices>
  2112. <itemset nodeset="/root/init/inputsmlcmb">
  2113. <label ref="cdnm"/>
  2114. <value ref="cdid"/>
  2115. </itemset>
  2116. </choices>
  2117. </select1>
  2118. -->
  2119. <input id="ipt_winacnt" ref="/root/main/list/newmasterlist/winacnt" class="input_default" style="left:95px; top:164px; width:65px; height:19px; "/>
  2120. <button id="btn_winacnt" class="icon_search" style="left:163px; top:165px; width:16px; height:16px; ">
  2121. <caption/>
  2122. <script type="javascript" ev:event="DOMActivate">
  2123. <![CDATA[
  2124. rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
  2125. model.refresh();
  2126. ]]>
  2127. </script>
  2128. </button>
  2129. <input id="ipt_winacntnm" ref="/root/main/list/newmasterlist/winacntnm" class="input_default" style="left:180px; top:165px; width:150px; height:19px; "/>
  2130. <input id="ipt_amtacnt" ref="/root/main/list/newmasterlist/amtacnt" class="input_default" style="left:95px; top:190px; width:65px; height:19px; "/>
  2131. <button id="button2" class="icon_search" style="left:163px; top:190px; width:16px; height:16px; ">
  2132. <caption/>
  2133. <script type="javascript" ev:event="DOMActivate">
  2134. <![CDATA[
  2135. rszfOpenPopUpListByWndName(ipt_amtacnt,"","winacnt,winacntnm","PPRAC00100","","");
  2136. model.refresh();
  2137. ]]>
  2138. </script>
  2139. </button>
  2140. <input id="ipt_amtacntnm" ref="/root/main/list/newmasterlist/amtacntnm" class="input_default" style="left:180px; top:190px; width:150px; height:19px; "/>
  2141. <select1 id="cmb_keepmthd" ref="/root/main/list/newmasterlist/keepmthd" class="combo_search" appearance="minimal" style="left:95px; top:216px; width:235px; height:19px; ">
  2142. <choices>
  2143. <itemset nodeset="/root/init/keepmthd">
  2144. <label ref="label"/>
  2145. <value ref="value"/>
  2146. </itemset>
  2147. </choices>
  2148. </select1>
  2149. <input id="ipt_pemtkeepmthd" ref="/root/main/list/newmasterlist/pemtkeepmthd" class="input_default" style="left:95px; top:242px; width:235px; height:19px; "/>
  2150. <!-- new item end -->
  2151. <!-- old item start -->
  2152. <select1 id="cmb_reqflag_2" ref="/root/main/list/orimasterlist/old_reqflag" class="combo_search" appearance="minimal" style="left:335px; top:8px; width:235px; height:19px; ">
  2153. <choices>
  2154. <itemset>
  2155. <label/>
  2156. <value/>
  2157. </itemset>
  2158. </choices>
  2159. </select1>
  2160. <output id="opt_com_2" ref="/root/main/list/orimasterlist/old_com" class="output_fix" style="left:335px; top:34px; width:235px; height:19px; "/>
  2161. <output id="opt_comnm_2" ref="/root/main/list/orimasterlist/old_comnm" class="output_fix" style="left:335px; top:60px; width:235px; height:19px; "/>
  2162. <output id="opt_lrgcd_2" ref="/root/main/list/orimasterlist/old_lrgnm" class="output_fix" style="left:335px; top:86px; width:235px; height:19px; "/>
  2163. <output id="opt_mdlcd_2" ref="/root/main/list/orimasterlist/old_mdlnm" class="output_fix" style="left:335px; top:112px; width:235px; height:19px; "/>
  2164. <output id="opt_smlcd_2" ref="/root/main/list/orimasterlist/old_smlnm" class="output_fix" style="left:335px; top:138px; width:235px; height:19px; "/>
  2165. <output id="opt_winacnt_2" ref="/root/main/list/orimasterlist/old_winacnt" class="output_fix" style="left:335px; top:164px; width:65px; height:19px; "/>
  2166. <output id="opt_winacntnm_2" ref="/root/main/list/orimasterlist/old_winacntnm" class="output_fix" style="left:405px; top:164px; width:165px; height:19px; "/>
  2167. <output id="opt_amtacnt_2" ref="/root/main/list/orimasterlist/old_amtacnt" class="output_fix" style="left:335px; top:190px; width:65px; height:19px; "/>
  2168. <output id="opt_amtacntnm_2" ref="/root/main/list/orimasterlist/old_amtacntnm" class="output_fix" style="left:405px; top:190px; width:165px; height:19px; "/>
  2169. <select1 id="cmb_keepmthd_2" ref="/root/main/list/orimasterlist/old_keepmthd" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:216px; width:235px; height:19px; ">
  2170. <choices>
  2171. <itemset nodeset="/root/init/keepmthd">
  2172. <label ref="label"/>
  2173. <value ref="value"/>
  2174. </itemset>
  2175. </choices>
  2176. </select1>
  2177. <output id="opt_pemtkeepmthd_2" ref="/root/main/list/orimasterlist/old_pemtkeepmthd" class="output_fix" style="left:335px; top:242px; width:235px; height:19px; "/>
  2178. <!-- end item start -->
  2179. </case>
  2180. <case id="cse_unit" style="left:0px; top:0px; width:580px; height:455px; background-color:#fffbf2; ">
  2181. <!-- caption start -->
  2182. <caption id="caption47" class="cell_1" style="left:10px; top:8px; width:82px; height:23px; vertical-align:middle; ">함량</caption>
  2183. <caption id="caption46" class="cell_1" style="left:10px; top:34px; width:82px; height:23px; vertical-align:middle; ">함량단위</caption>
  2184. <caption id="caption51" class="cell_1" style="left:10px; top:60px; width:82px; height:23px; vertical-align:middle; ">규격</caption>
  2185. <caption id="caption55" class="cell_1" style="left:10px; top:86px; width:82px; height:23px; vertical-align:middle; ">규격단위</caption>
  2186. <caption id="caption44" class="cell_1" style="left:10px; top:112px; width:82px; height:23px; vertical-align:middle; ">처방수량</caption>
  2187. <caption id="caption56" class="cell_1" style="left:10px; top:138px; width:82px; height:23px; vertical-align:middle; ">처방단위</caption>
  2188. <caption id="caption59" class="cell_1" style="left:10px; top:164px; width:82px; height:23px; vertical-align:middle; ">처방환산</caption>
  2189. <caption id="caption48" class="cell_1" style="left:10px; top:190px; width:82px; height:23px; vertical-align:middle; ">낱개수량</caption>
  2190. <caption id="caption49" class="cell_1" style="left:10px; top:216px; width:82px; height:23px; vertical-align:middle; ">낱개단위</caption>
  2191. <caption id="caption52" class="cell_1" style="left:10px; top:242px; width:82px; height:23px; vertical-align:middle; ">포장단위</caption>
  2192. <caption id="caption53" class="cell_1" style="left:10px; top:268px; width:82px; height:23px; vertical-align:middle; ">보험단가</caption>
  2193. <caption id="caption57" class="cell_1" style="left:10px; top:294px; width:82px; height:23px; vertical-align:middle; ">처방단가</caption>
  2194. <caption id="caption43" class="cell_1" style="left:10px; top:320px; width:82px; height:23px; vertical-align:middle; ">구입단가</caption>
  2195. <caption id="caption45" class="cell_1" style="left:10px; top:346px; width:82px; height:23px; vertical-align:middle; ">구입가</caption>
  2196. <!-- caption end -->
  2197. <!-- new item start -->
  2198. <input id="ipt_cntsqty" ref="/root/main/list/newmasterlist/cntsqty" class="input_default" style="left:95px; top:8px; width:235px; height:19px; "/>
  2199. <select1 id="cmb_cntsunit" ref="/root/main/list/newmasterlist/cntsunit" class="combo_search" appearance="minimal" style="left:95px; top:34px; width:235px; height:19px; ">
  2200. <choices>
  2201. <itemset nodeset="/root/init/purcunit">
  2202. <label ref="cdnm"/>
  2203. <value ref="cdid"/>
  2204. </itemset>
  2205. </choices>
  2206. </select1>
  2207. <input id="ipt_specvol" ref="/root/main/list/newmasterlist/specvol" class="input_default" style="left:95px; top:60px; width:235px; height:19px; "/>
  2208. <select1 id="cmb_specunit" ref="/root/main/list/newmasterlist/specunit" class="combo_search" appearance="minimal" style="left:95px; top:86px; width:235px; height:19px; ">
  2209. <choices>
  2210. <itemset nodeset="/root/init/purcunit">
  2211. <label ref="cdnm"/>
  2212. <value ref="cdid"/>
  2213. </itemset>
  2214. </choices>
  2215. </select1>
  2216. <input id="ipt_prcpqty" ref="/root/main/list/newmasterlist/prcpqty" class="input_default" style="left:95px; top:112px; width:235px; height:19px; "/>
  2217. <select1 id="cmb_prcpunit" ref="/root/main/list/newmasterlist/prcpunit" class="combo_search" appearance="minimal" style="left:95px; top:138px; width:235px; height:19px; ">
  2218. <choices>
  2219. <itemset nodeset="/root/init/prcpunit">
  2220. <label ref="cdnm"/>
  2221. <value ref="cdid"/>
  2222. </itemset>
  2223. </choices>
  2224. </select1>
  2225. <input id="ipt_prcpexchqty" ref="/root/main/list/newmasterlist/prcpexchqty" class="input_default" style="left:95px; top:164px; width:235px; height:19px; "/>
  2226. <input id="ipt_exchqty" ref="/root/main/list/newmasterlist/exchqty" class="input_default" style="left:95px; top:190px; width:235px; height:19px; "/>
  2227. <select1 id="cmb_deliveunit" ref="/root/main/list/newmasterlist/deliveunit" class="combo_search" appearance="minimal" style="left:95px; top:216px; width:235px; height:19px; ">
  2228. <choices>
  2229. <itemset nodeset="/root/init/prcpunit">
  2230. <label ref="cdnm"/>
  2231. <value ref="cdid"/>
  2232. </itemset>
  2233. </choices>
  2234. </select1>
  2235. <select1 id="cmb_purcunit" ref="/root/main/list/newmasterlist/purcunit" class="combo_search" appearance="minimal" style="left:95px; top:242px; width:235px; height:19px; ">
  2236. <choices>
  2237. <itemset nodeset="/root/init/prcpunit">
  2238. <label ref="cdnm"/>
  2239. <value ref="cdid"/>
  2240. </itemset>
  2241. </choices>
  2242. </select1>
  2243. <input id="ipt_insucost" ref="/root/main/list/newmasterlist/insucost" class="input_default" style="left:95px; top:268px; width:235px; height:19px; "/>
  2244. <input id="ipt_estmamt" ref="/root/main/list/newmasterlist/estmamt" class="input_default" style="left:95px; top:294px; width:235px; height:19px; "/>
  2245. <input id="ipt_goodunitcost" ref="/root/main/list/newmasterlist/goodunitcost" class="input_default" style="left:95px; top:320px; width:235px; height:19px; "/>
  2246. <input id="ipt_goodpurccost" ref="/root/main/list/newmasterlist/goodpurccost" class="input_default" style="left:95px; top:346px; width:235px; height:19px; "/>
  2247. <!-- new item end -->
  2248. <!-- old item start -->
  2249. <output id="opt_cntsqty_2" ref="/root/main/list/orimasterlist/old_cntsqty" class="output_fix" style="left:335px; top:8px; width:235px; height:19px; "/>
  2250. <select1 id="cmb_cntsunit_2" ref="/root/main/list/orimasterlist/old_cntsunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:34px; width:235px; height:19px; ">
  2251. <choices>
  2252. <itemset nodeset="/root/init/purcunit">
  2253. <label ref="cdnm"/>
  2254. <value ref="cdid"/>
  2255. </itemset>
  2256. </choices>
  2257. </select1>
  2258. <output id="opt_specvol_2" ref="/root/main/list/orimasterlist/old_specvol" class="output_fix" style="left:335px; top:60px; width:235px; height:19px; "/>
  2259. <select1 id="cmb_specunit_2" ref="/root/main/list/orimasterlist/old_specunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:86px; width:235px; height:19px; ">
  2260. <choices>
  2261. <itemset nodeset="/root/init/purcunit">
  2262. <label ref="cdnm"/>
  2263. <value ref="cdid"/>
  2264. </itemset>
  2265. </choices>
  2266. </select1>
  2267. <output id="opt_prcpqty_2" ref="/root/main/list/orimasterlist/old_prcpqty" class="output_fix" style="left:335px; top:112px; width:235px; height:19px; "/>
  2268. <select1 id="cmb_prcpunit_2" ref="/root/main/list/orimasterlist/old_prcpunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:138px; width:235px; height:19px; ">
  2269. <choices>
  2270. <itemset nodeset="/root/init/prcpunit">
  2271. <label ref="cdnm"/>
  2272. <value ref="cdid"/>
  2273. </itemset>
  2274. </choices>
  2275. </select1>
  2276. <output id="opt_prcpexchqty_2" ref="/root/main/list/orimasterlist/old_prcpexchqty" class="output_fix" style="left:335px; top:164px; width:235px; height:19px; "/>
  2277. <output id="opt_exchqty_2" ref="/root/main/list/orimasterlist/old_exchqty" class="output_fix" style="left:335px; top:190px; width:235px; height:19px; "/>
  2278. <select1 id="cmb_deliveunit_2" ref="/root/main/list/orimasterlist/old_deliveunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:216px; width:235px; height:19px; ">
  2279. <choices>
  2280. <itemset nodeset="/root/init/prcpunit">
  2281. <label ref="cdnm"/>
  2282. <value ref="cdid"/>
  2283. </itemset>
  2284. </choices>
  2285. </select1>
  2286. <select1 id="cmb_purcunit_2" ref="/root/main/list/orimasterlist/old_purcunit" class="combo_search" disabled="true" appearance="minimal" style="left:335px; top:242px; width:235px; height:19px; ">
  2287. <choices>
  2288. <itemset nodeset="/root/init/prcpunit">
  2289. <label ref="cdnm"/>
  2290. <value ref="cdid"/>
  2291. </itemset>
  2292. </choices>
  2293. </select1>
  2294. <output id="opt_insucost_2" ref="/root/main/list/orimasterlist/old_insucost" class="output_fix" style="left:335px; top:268px; width:235px; height:19px; "/>
  2295. <output id="opt_estmamt_2" ref="/root/main/list/orimasterlist/old_estmamt" class="output_fix" style="left:335px; top:294px; width:235px; height:19px; "/>
  2296. <output id="opt_goodunitcost_2" ref="/root/main/list/orimasterlist/old_goodunitcost" class="output_fix" style="left:335px; top:320px; width:235px; height:19px; "/>
  2297. <output id="opt_goodpurccost_2" ref="/root/main/list/orimasterlist/old_goodpurccost" class="output_fix" style="left:335px; top:346px; width:235px; height:19px; "/>
  2298. <!-- end item start -->
  2299. </case>
  2300. </switch>
  2301. <button id="btn_basic" class="btn_sw" group="tab" selected="true" style="left:3px; top:35px; width:80px; height:22px; ">
  2302. <caption>기본사항</caption>
  2303. <toggle case="cse_basic" ev:event="DOMActivate"/>
  2304. </button>
  2305. <button id="btn_unit" class="btn_sw" group="tab" selected="false" style="left:83px; top:35px; width:80px; height:22px; ">
  2306. <caption>단위/단가</caption>
  2307. <toggle case="cse_unit" ev:event="DOMActivate"/>
  2308. </button>
  2309. <button id="btn_other" class="btn_sw" group="tab" selected="false" style="left:163px; top:35px; width:80px; height:22px; ">
  2310. <caption>기타사항</caption>
  2311. <toggle case="cse_other" ev:event="DOMActivate"/>
  2312. </button>
  2313. </group>
  2314. <caption id="caption17" class="hand_search" style="left:220px; top:5px; width:90px; height:13px; ">작업구분 :</caption>
  2315. <select id="chk_multiflag" ref="/root/send/searchlist/multiwork" overflow="visible" appearance="full" cols="1" style="left:310px; top:5px; width:210px; height:13px; border-style:none; ">
  2316. <choices>
  2317. <itemset nodeset="/root/init/multiwork">
  2318. <label ref="label"/>
  2319. <value ref="value"/>
  2320. </itemset>
  2321. </choices>
  2322. <script type="javascript" ev:event="xforms-value-changed">
  2323. <![CDATA[
  2324. if ( model.getValue(chk_multiflag.attribute("ref")) != "Y")
  2325. {
  2326. grp_disp.attribute("visibility") ="hidden" ;
  2327. for(var i=1; i<grd_excelmaplist.cols- grd_excelmaplist.fixedCols; i++)
  2328. grd_excelmaplist.colDisabled(i) = false;
  2329. }
  2330. else
  2331. {
  2332. for(var i=1; i<grd_excelmaplist.cols- grd_excelmaplist.fixedCols; i++)
  2333. grd_excelmaplist.colDisabled(i) = true;
  2334. }
  2335. ]]>
  2336. </script>
  2337. </select>
  2338. </case>
  2339. <case id="cse_goodlist" style="left:0px; top:0px; width:1193px; height:620px; ">
  2340. <caption id="caption1" class="tit_2" style="left:4px; top:7px; width:161px; height:13px; ">Excel Data List</caption>
  2341. <datagrid id="grd_rscdexcellist" nodeset="/root/main/list/rscdexcel/rscdexcellist" caption="대분류코드^대분류^중분류코드^중분류^소분류코드^소분류^복지부분류코드^복지부 분류명^약품코드^구코드^보나에스코드^한글상품명^영문명^EDI코드^제조회사^제조회사^판매회사^판매회사^주거래처코드^주거래처명^성분코드^성분명칭^함량^함량단위^규격^규격단위^병원용량^병원단위^처방수량^처방단위^처방환산^계산방법코드^계산방법^낱개수량^낱개단위^포장단위^그룹/싱글코드^그룹/싱글명^일반/전문코드^일반/전문^입고계정코드^입고계정^비용계정코드^비용계정^보관법코드^보관법(실제)^보관법 설명서^보험단가^처방단가^구입단가^구입가^집계구분^집계구분명^적용일자^종료일자^변경사유코드^변경사유^비고^임의청구여부^청구방법^청구방법명^청구주기^청구주기명^기관코드^신규/변경구분^물품구분^Interface구분" colsep="^" colwidth="50, 100, 50, 100, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 50, 100, 50, 100, 76, 100, 68, 100, 61, 70, 61, 70, 61, 70, 61, 70, 100, 100, 100, 50, 100, 50, 100, 100, 50, 100, 60, 100, 60, 100, 50, 100, 100, 70, 70, 70, 70, 50, 100, 100, 100, 75, 100, 100, 100, 50, 100, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:588px; ">
  2342. <col ref="lrgcd"/>
  2343. <col ref="lrgnm"/>
  2344. <col ref="mdlcd"/>
  2345. <col ref="mdlnm"/>
  2346. <col ref="smlcd"/>
  2347. <col ref="smlnm"/>
  2348. <col ref="welfprt"/>
  2349. <col ref="welfprtnm"/>
  2350. <col ref="goodcd"/>
  2351. <col ref="oldcd"/>
  2352. <col ref="bnscd"/>
  2353. <col ref="goodnm"/>
  2354. <col ref="goodengnm"/>
  2355. <col ref="edicd"/>
  2356. <col ref="prodcmpycd"/>
  2357. <col ref="prodcmpynm"/>
  2358. <col ref="suppcustcd"/>
  2359. <col ref="suppcustnm"/>
  2360. <col ref="maincustlastsuplplce"/>
  2361. <col ref="maincustlastsuplplcenm" type="inputbutton"/>
  2362. <col ref="com"/>
  2363. <col ref="comnm"/>
  2364. <col ref="cntsqty" format="#,###.##" style="text-align:right; "/>
  2365. <col ref="cntsunit" type="combo">
  2366. <choices>
  2367. <itemset>
  2368. <label/>
  2369. <value/>
  2370. </itemset>
  2371. </choices>
  2372. </col>
  2373. <col ref="specvol" format="#,###.##" style="text-align:right; "/>
  2374. <col ref="specunit" type="combo">
  2375. <choices>
  2376. <itemset>
  2377. <label/>
  2378. <value/>
  2379. </itemset>
  2380. </choices>
  2381. </col>
  2382. <col ref="hospdrguvol"/>
  2383. <col ref="hospdrguunit" type="combo">
  2384. <choices>
  2385. <itemset>
  2386. <label/>
  2387. <value/>
  2388. </itemset>
  2389. </choices>
  2390. </col>
  2391. <col ref="prcpqty" format="#,###" style="text-align:right; "/>
  2392. <col ref="prcpunit" type="combo">
  2393. <choices>
  2394. <itemset>
  2395. <label/>
  2396. <value/>
  2397. </itemset>
  2398. </choices>
  2399. </col>
  2400. <col ref="prcpexchqty" format="#,###.##" style="text-align:right; "/>
  2401. <col ref="calcmthdcd"/>
  2402. <col ref="calcmthdnm"/>
  2403. <col ref="exchqty" format="#,###" style="text-align:right; "/>
  2404. <col ref="deliveunit" type="combo">
  2405. <choices>
  2406. <itemset>
  2407. <label/>
  2408. <value/>
  2409. </itemset>
  2410. </choices>
  2411. </col>
  2412. <col ref="purcunit" type="combo">
  2413. <choices>
  2414. <itemset>
  2415. <label/>
  2416. <value/>
  2417. </itemset>
  2418. </choices>
  2419. </col>
  2420. <col ref="grupsnglflag"/>
  2421. <col ref="grupsnglflagnm"/>
  2422. <col ref="gnrlspcl"/>
  2423. <col ref="gnrlspclnm"/>
  2424. <col ref="winacnt"/>
  2425. <col ref="winacntnm"/>
  2426. <col ref="amtacnt"/>
  2427. <col ref="amtacntnm"/>
  2428. <col ref="keepmthd"/>
  2429. <col ref="keepmthdnm"/>
  2430. <col ref="pemtkeepmthd"/>
  2431. <col ref="insucost" format="#,###.##" style="text-align:right; "/>
  2432. <col ref="estmamt" format="#,###.##" style="text-align:right; "/>
  2433. <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  2434. <col ref="goodpurccost" format="#,###.##" style="text-align:right; "/>
  2435. <col ref="reqflag"/>
  2436. <col ref="reqflagnm"/>
  2437. <col ref="fromdd" type="inputdate"/>
  2438. <col ref="todd" type="inputdate"/>
  2439. <col ref="nonusetretresncd"/>
  2440. <col ref="nonusetretresn"/>
  2441. <col ref="cmt" type="input"/>
  2442. <col checkvalue="Y,N" ref="tmpreqflag" type="checkbox"/>
  2443. <col ref="reqmthd"/>
  2444. <col ref="reqmthdnm"/>
  2445. <col ref="reqprid"/>
  2446. <col ref="reqpridnm"/>
  2447. <col ref="instcd"/>
  2448. <col ref="workflag"/>
  2449. <!-- hidden 처리 되어 기본 입력 되어질 항목-->
  2450. <col ref="goodflag" visibility="hidden"/>
  2451. <col ref="ifflag" visibility="hidden"/>
  2452. <!-- hidden 보나에스 Interface에서 생성 -->
  2453. <col ref="seqno" visibility="hidden"/>
  2454. <col ref="inprodcmpynm" visibility="hidden"/>
  2455. <col ref="insuppcustcd" visibility="hidden"/>
  2456. <col ref="insuppcustnm" visibility="hidden"/>
  2457. <script type="javascript" ev:event="onbuttonclick">
  2458. <![CDATA[
  2459. if (grd_rscdexcellist.colRef("maincustlastsuplplcenm") == grd_rscdexcellist.col) /* 최종공급처 */
  2460. {
  2461. rszfOpenPopUpListByWndName(grd_rscdexcellist,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","instcd");
  2462. // model.refresh();
  2463. }
  2464. ]]>
  2465. </script>
  2466. </datagrid>
  2467. <button id="btn_loadexcel" class="btn2_letter7" style="left:1035px; top:3px; width:97px; height:19px; ">
  2468. <caption>데이터가져오기</caption>
  2469. <script type="javascript" ev:event="DOMActivate">
  2470. <![CDATA[
  2471. fDataLoad();
  2472. ]]>
  2473. </script>
  2474. </button>
  2475. <line id="line4" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
  2476. <button id="btn_excelsave" class="btn2_letter3" style="left:978px; top:3px; width:53px; height:19px; ">
  2477. <caption>저 장</caption>
  2478. <script type="javascript" ev:event="DOMActivate">
  2479. <![CDATA[
  2480. // 보나에스 전송자료의 경우는 Validation Check를 하지 않는다.
  2481. if ( model.getValue(rdo_ifflag.attribute("ref"))=="I" || fCheckSaveData( grd_rscdexcellist ) != false)
  2482. {
  2483. model.setValue("/root/send/save/rscdexcellist", getGridUpdateData(grd_rscdexcellist) );
  2484. //alert(model.getValue("/root/send/save/rscdexcellist"));
  2485. submit("TXRSC03801");
  2486. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  2487. {
  2488. misfGridInit(grd_rscdexcellist);
  2489. // Loading 된 작업 건수 초기화 & hidden
  2490. model.setValue(opt_uploadcnt.attribute("ref"), "0");
  2491. cpt_uploadcnt.visible = false;
  2492. opt_uploadcnt.visible = false;
  2493. // 저장된 목록 가져오기( tab 이동 )
  2494. btn_cost.dispatch("DOMActivate");
  2495. btn_cost.selected="true";
  2496. btn_search.dispatch("DOMActivate");
  2497. }
  2498. }
  2499. ]]>
  2500. </script>
  2501. </button>
  2502. <button id="btn_excelclear" class="btn2_letter3" style="left:1136px; top:3px; width:53px; height:19px; ">
  2503. <caption>Clear</caption>
  2504. <script type="javascript" ev:event="DOMActivate">
  2505. <![CDATA[
  2506. misfGridInit(grd_rscdexcellist);
  2507. ]]>
  2508. </script>
  2509. </button>
  2510. <caption id="caption16" class="hand_search" style="left:220px; top:5px; width:90px; height:13px; ">작업구분 :</caption>
  2511. <select1 id="rdo_ifflag" ref="/root/send/searchlist/ifflag" class="radio_search" appearance="full" cellspacing="10" cols="2" rows="1" overflow="visible" style="left:315px; top:3px; width:225px; height:20px; border-style:none; ">
  2512. <choices>
  2513. <itemset nodeset="/root/init/ifflag">
  2514. <label ref="label"/>
  2515. <value ref="value"/>
  2516. </itemset>
  2517. </choices>
  2518. <script type="javascript" ev:event="xforms-value-changed">
  2519. <![CDATA[
  2520. if( (grd_rscdexcellist.rows - grd_rscdexcellist.fixedRows > 1) || getGridUpdateData(grd_rscdexcellist) != "" ){
  2521. var work_choicel = messageBox("화면에 자료가 존재 합니다. ", "Q003");
  2522. if (work_choicel == "6") misfGridInit(grd_rscdexcellist);
  2523. else {
  2524. if(rdo_ifflag.selectedIndex == 0 ) rdo_ifflag.selectedIndex = 1;
  2525. else rdo_ifflag.selectedIndex = 0;
  2526. }
  2527. } else {
  2528. misfGridInit(grd_rscdexcellist);
  2529. }
  2530. ]]>
  2531. </script>
  2532. </select1>
  2533. <caption id="cpt_uploadcnt" class="hand_search" visibility="hidden" style="left:565px; top:5px; width:100px; height:13px; ">작업 건수 :</caption>
  2534. <output id="opt_uploadcnt" ref="/root/temp/uploadcnt" visibility="hidden" style="left:663px; top:3px; width:47px; height:19px; "/>
  2535. <button id="button4" class="btn5_letter5" navindex="12" style="left:900px; top:3px; width:75px; height:19px; ">
  2536. <caption>Excel 저장</caption>
  2537. <script type="javascript" ev:event="DOMActivate">
  2538. <![CDATA[
  2539. if( grd_rscdexcellist.rows - grd_rscdexcellist.fixedRows > 0 ) {
  2540. var fileName = "";
  2541. if( model.getValue(rdo_ifflag.attribute("ref")) == "E" )
  2542. fileName = "ExcelList_"+getCurrentDate();
  2543. else
  2544. fileName = "보나에스List_"+getCurrentDate();
  2545. var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2546. grd_rscdexcellist.saveExcel(fileName, "sheet1");
  2547. } else {
  2548. messageBox("저장 데이터가","I004");
  2549. }
  2550. ]]>
  2551. </script>
  2552. </button>
  2553. </case>
  2554. </switch>
  2555. <button id="btn_cost" class="btn_sw" group="tab" selected="true" style="left:0px; top:99px; width:149px; height:22px; ">
  2556. <caption>Excel Data Mapping</caption>
  2557. <toggle case="cse_costlist" ev:event="DOMActivate"/>
  2558. </button>
  2559. <button id="btn_excel" class="btn_sw" group="tab" selected="false" style="left:149px; top:99px; width:160px; height:22px; ">
  2560. <caption>Excel Upload</caption>
  2561. <toggle case="cse_goodlist" ev:event="DOMActivate"/>
  2562. </button>
  2563. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:92px; width:68px; height:22px; ">
  2564. <caption>초기화</caption>
  2565. <script type="javascript" ev:event="DOMActivate">
  2566. <![CDATA[
  2567. fInitialize();
  2568. ]]>
  2569. </script>
  2570. </button>
  2571. </group>
  2572. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  2573. <output id="opt_popinputcd" ref="/root/init/popinputcd" visibility="hidden" style="left:840px; top:3px; width:100px; height:19px; "/>
  2574. <output id="opt_poptitle" ref="/root/init/poptitle" visibility="hidden" style="left:737px; top:3px; width:100px; height:19px; "/>
  2575. <output id="opt_popcond" ref="/root/init/popcond" visibility="hidden" style="left:634px; top:3px; width:100px; height:19px; "/>
  2576. <output id="opt_popformat" ref="/root/init/popformat" visibility="hidden" style="left:531px; top:3px; width:100px; height:19px; "/>
  2577. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  2578. </group>
  2579. </xhtml:body>
  2580. </xhtml:html>