SMRSC05401_통합약품코드등록.xrw 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>통합약품코드등록</xhtml:title>
  6. <model id="model1">
  7. <![CDATA[el/gooddetgoodexcellist"/>]]>
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <list>
  12. <good>
  13. <goodlist/>
  14. </good>
  15. <gooddet>
  16. <gooddetlist/>
  17. <goodconstlist/>
  18. <goodinstlist/>
  19. </gooddet>
  20. <goodbaseqty>
  21. <goodbaseqtylist/>
  22. </goodbaseqty>
  23. <goodexcel>
  24. <gooddetgoodexcellist/>
  25. </goodexcel>
  26. <rscdpbns>
  27. <rscdpbnslist/>
  28. </rscdpbns>
  29. </list>
  30. <costhistinfolist>
  31. <appdd/>
  32. <rctpdisburseunitcost/>
  33. <medcarecalcscor/>
  34. <suplplcecd/>
  35. </costhistinfolist>
  36. <item/>
  37. <gooddet>
  38. <gooddetlist>
  39. </gooddetlist>
  40. </gooddet>
  41. <goodcopy>
  42. <goodlist/>
  43. </goodcopy>
  44. </main>
  45. <send>
  46. <save>
  47. <goodlist/>
  48. <gooddetlist/>
  49. <setautoins>
  50. <setyn>N</setyn>
  51. </setautoins>
  52. <rscdpbnslist/>
  53. <goodbaseqtylist/>
  54. </save>
  55. <goodlist>
  56. <goodflag/>
  57. <goodnm/>
  58. <lrgcd/>
  59. <instcd/>
  60. <edicd/>
  61. <goodcd/>
  62. <mdlcd/>
  63. <spec/>
  64. <!--
  65. <prodcmpy/>
  66. <prodcmpynm/>
  67. -->
  68. <smlcd/>
  69. <model/>
  70. <mdlnm/>
  71. <lrgnm/>
  72. <smlnm/>
  73. <instflag/>
  74. <oldcd/>
  75. <asisgoodcd/>
  76. <suppcustcd/>
  77. <suppcustnm/>
  78. <delyn/>
  79. <contractyn/>
  80. <exfromdd/>
  81. <extodd/>
  82. <excurrenttime/>
  83. <exinstcd/>
  84. <chkdd/>
  85. <exactsearch/>
  86. <comnm/>
  87. <nonusegoodview/>
  88. <goodnmsearch/>
  89. <mngtcls/>
  90. <spread>
  91. <prodcmpycd/>
  92. <prodcmpynm/>
  93. <welfprt/>
  94. <statsflag/>
  95. <purccls/>
  96. <conflag/>
  97. <gnrlspcl/>
  98. <ascitflag/>
  99. <welfprtnm/>
  100. </spread>
  101. </goodlist>
  102. <gooddetlist>
  103. <goodcd/>
  104. <fromdd/>
  105. <useyn/>
  106. <instcd/>
  107. </gooddetlist>
  108. <goodcopy>
  109. <goodflag/>
  110. <lrgcd/>
  111. <mdlcd/>
  112. </goodcopy>
  113. <goodbaseqty>
  114. <instcd/>
  115. <goodflag/>
  116. <goodcd/>
  117. </goodbaseqty>
  118. <rscdpbns>
  119. <goodcd/>
  120. <instcd/>
  121. <fromdd/>
  122. <goodflag/>
  123. </rscdpbns>
  124. <goodsearch>
  125. <instcd/>
  126. <goodcd/>
  127. <goodnm/>
  128. <goodflag/>
  129. <refcond/>
  130. </goodsearch>
  131. </send>
  132. <init>
  133. <instflag>
  134. <label>기관</label>
  135. <value>Y</value>
  136. <label>전체</label>
  137. <value/>
  138. </instflag>
  139. <goodflag/>
  140. <deliveunit/>
  141. <reqprid/>
  142. <mngtflag/>
  143. <purcflag/>
  144. <instcd/>
  145. <proddrugsetflag/>
  146. <instnm/>
  147. <allsizeyn>
  148. <label>예</label>
  149. <value>Y</value>
  150. <label>아니오</label>
  151. <value>N</value>
  152. </allsizeyn>
  153. <tmpreqflag>
  154. <label>청구가능</label>
  155. <value>Y</value>
  156. <label>청구불가능</label>
  157. <value>N</value>
  158. </tmpreqflag>
  159. <radio2>
  160. <label>신청유</label>
  161. <value>Y</value>
  162. <label>신청무</label>
  163. <value>N</value>
  164. </radio2>
  165. <expnyn>
  166. <label>고가</label>
  167. <value>Y</value>
  168. <label>고가아님</label>
  169. <value>N</value>
  170. </expnyn>
  171. <keepmthd>
  172. <label>실온</label>
  173. <value>1</value>
  174. <label>냉소</label>
  175. <value>2</value>
  176. <label>냉장</label>
  177. <value>3</value>
  178. <label>냉동</label>
  179. <value>4</value>
  180. </keepmthd>
  181. <gnrlspcl>
  182. <label>전문</label>
  183. <value>1</value>
  184. <label>일반</label>
  185. <value>2</value>
  186. <label>공산품</label>
  187. <value>3</value>
  188. <label>의약외품</label>
  189. <value>4</value>
  190. <label>기타</label>
  191. <value>5</value>
  192. </gnrlspcl>
  193. <proddrugsetflag>
  194. <label>제제약</label>
  195. <value>1</value>
  196. </proddrugsetflag>
  197. <exactsearch>
  198. <label>일치</label>
  199. <value>Y</value>
  200. <label>포함</label>
  201. <value/>
  202. </exactsearch>
  203. <goodnmsearch>
  204. <label>영문명</label>
  205. <value>eng</value>
  206. <label>한글명</label>
  207. <value/>
  208. </goodnmsearch>
  209. <nonusegoodview>
  210. <label>포함</label>
  211. <value>Y</value>
  212. <label>제외</label>
  213. <value/>
  214. </nonusegoodview>
  215. <P0133list/>
  216. <P0142list/>
  217. <R0356list/>
  218. <ascitflag>
  219. <label>전체</label>
  220. <value/>
  221. <label>01</label>
  222. <value>단수</value>
  223. <label>02</label>
  224. <value>복수</value>
  225. </ascitflag>
  226. </init>
  227. <hidden/>
  228. <temp>
  229. <new/>
  230. </temp>
  231. <errinfo>
  232. <errgoodinfo/>
  233. </errinfo>
  234. </root>
  235. </instance>
  236. <script type="javascript" ev:event="xforms-ready">
  237. <![CDATA[
  238. //화면 Control을 초기화한다
  239. //fCheckAuth();
  240. fGetCodeList();
  241. fInitialize();
  242. ]]>
  243. </script>
  244. <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
  245. <submission id="TXRSD00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  246. <submission id="TRRSC05305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodbaseqty" resultref="/root/main/list/goodbaseqty"/>
  247. <submission id="TRRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
  248. <submission id="TRRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rscdpbns" resultref="/root/main/list/rscdpbns"/>
  249. <submission id="TXRSC05403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  250. <submission id="TRRSC05404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodexcel/gooddetgoodexcellist"/>
  251. <submission id="TRRSC05313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
  252. <submission id="TXRSC05308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  253. <submission id="TXRSC05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
  254. <submission id="TRRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
  255. <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodsearch" resultref="/root/init/main"/>
  256. <submission id="TRRSC05315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/errinfo"/>
  257. </model>
  258. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  259. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  260. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  261. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  262. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  263. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  264. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  265. <script type="javascript">
  266. <![CDATA[
  267. function fInitialize() {
  268. fNodeInit();
  269. model.resetInstanceNode("/root/send");
  270. model.setValue("/root/send/save/setautoins/setyn","N");
  271. misfGridIUD(grd_gooddetlist, "A");
  272. //인스턴스 시작은 숫자로 시작할수 없으므로 misfComboComCdListMulti를 이용하지 못함
  273. misfComboComCdList("030M0003",cmb_srchmngtcls);
  274. misfComboComCdList("030M0004",cmb_purccls_s); //구입분류
  275. misfComboComCdList("030R0004",cmb_statsflag_s); //통계구분
  276. misfComboComCdList("030M0002",cmb_conflag_s); //계약구분
  277. misfComboComCdListMulti("R0043,R0106,R0107,A0597","cmb_asetflag,cmb_plceordqtycretflag,cmb_plceordbase,cmb_gnrlspcl_s");
  278. addComboItem( "cmb_statsflag_s", "전체", "", "above" );
  279. addComboItem( "cmb_purccls_s", "전체", "", "above" );
  280. addComboItem( "cmb_conflag_s", "전체", "", "above" );
  281. addComboItem( "cmb_gnrlspcl_s", "전체", "", "above" );
  282. //물품구분별 재고관리부서 셋팅
  283. //rszfComboGridStockArthDeptcdList(grd_goodbaseqtylist, "reqdeptcd", getUserInfo("dutplceinstcd"),"P" );
  284. fSetinstData();
  285. //물품구분일 경우 첫번째 index 자동 설정
  286. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  287. model.setValue(grd_gooddetlist.nodeset + "/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  288. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  289. misfMsterDetailSet(grd_goodlist,null, "TRRSC05313" ,"Y");
  290. misfMsterDetailSet(grd_gooddetlist,grd_goodlist, "TRRSC05302" ,"Y");
  291. misfMsterDetailSet(grd_costhistinfo,grd_goodlist, "TRRSC05302" ,"N");
  292. misfMsterDetailSet(grd_instinfo,grd_goodlist, "TRRSC05302" ,"N");
  293. misfMsterDetailSet(grd_goodbaseqtylist,null, "TRRSC05305" ,"Y");
  294. misfMsterDetailSet(grd_rscdpbnslist,null, "TRRSC05403" ,"Y");
  295. // misfMsterDetailSet(grd_gooddetgoodexcellist, null, "TRRSC05402" , "N");
  296. model.setValue(ipt_goodflag.attribute("ref"),"PH");
  297. model.setValue(ipt_goodflag_search.attribute("ref"),"PH");
  298. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "ipt_lrgcd_search", "", "L", "Y", "Y");
  299. /* 처방단위는 unit 기준정보를 다른걸로 사용한다. */
  300. //rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),"PH");
  301. /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
  302. rszfComboUnitList (cmb_purcunit,model.getValue(opt_instcd.attribute("ref")),"PH");
  303. misfComboCopyItemSet(cmb_purcunit, "", cmb_prcpunit, ""); //처방단위
  304. misfComboCopyItemSet(cmb_purcunit, "", cmb_specunit, ""); //규격단위
  305. misfComboCopyItemSet(cmb_purcunit, "", cmb_cntsunit, ""); //함량단위
  306. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //수불단위
  307. misfComboCopyItemSet(cmb_purcunit, "", cmb_hospdrguunit, ""); //병원단위
  308. rbo_exactsearch1.select(1) ;
  309. btn_spread.visible = true;
  310. btn_fold.visible = false;
  311. grp_spread.visible = false;
  312. //grd_goodlist.explorerbar = "sortshow";
  313. //model.setFocus("ipt_goodcd");
  314. model.refresh();
  315. }
  316. function fSetinstData()
  317. {
  318. //기관코드 읽어오는 부분 넣기
  319. var instcd = getUserInfo("dutplceinstcd");
  320. var instnm = getUserInfo("dutplceinstnm");
  321. model.setValue("/root/send/gooddetlist/instcd", "031");
  322. model.setValue(opt_instcd.attribute("ref"), "031");
  323. if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
  324. }
  325. function fNodeInit() {
  326. misfGridInit(grd_goodlist);
  327. misfGridInit(grd_gooddetlist);
  328. misfGridInit(grd_costhistinfo);
  329. misfGridInit(grd_instinfo);
  330. misfGridInit(grd_goodbaseqtylist);
  331. misfGridInit(grd_gooddetgoodexcellist);
  332. misfGridInit(grd_rscdpbnslist);
  333. }
  334. function fGetCodeList()
  335. {
  336. zbcfGetCodeList( new Array("P0133","P0142","R0356"), new Array("/root/init/P0133list","/root/init/P0142list","/root/init/R0356list"), true);
  337. addComboItem( "cmb_nonusetretresn", "-", "", "above" );
  338. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
  339. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
  340. fsetP0133listData();
  341. //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
  342. //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
  343. fsetP0142listData();
  344. }
  345. //보나에스 저장
  346. function fSaveRscdpbnsList()
  347. {
  348. if(getGridUpdateData(grd_rscdpbnslist) != "" )
  349. {
  350. // if(!checkKeyColumn("grd_rscdpbnslist"))return false;
  351. if( fBnsValidCheck()!= true ) return false;
  352. //misfSave("TXRSC05403");
  353. model.setValue("/root/send/save/rscdpbnslist", grd_rscdpbnslist.getUpdateData());
  354. submit("TXRSC05403");
  355. return true;
  356. }
  357. return false;
  358. }
  359. function fSaveGoodbaseQtyList()
  360. {
  361. if(getGridUpdateData(grd_goodbaseqtylist) != "" )
  362. {
  363. if( fBaseQtyValidCheck()!= true ) return false;
  364. model.setValue("/root/send/save/goodbaseqtylist", grd_goodbaseqtylist.getUpdateData());
  365. submit("TXRSD00101");
  366. return true;
  367. }
  368. return true;
  369. }
  370. //세부항목 조회시 기관코드 설정.
  371. function fInstcdSet()
  372. {
  373. //사용기관 선택이 안되어있을시..
  374. if(grd_instinfo.row < grd_instinfo.fixedRows)
  375. {
  376. grd_instinfo.row = grd_instinfo.fixedRows;
  377. }
  378. //model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(grd_instinfo.row, grd_instinfo.colRef("instcd")));
  379. model.setValue("/root/send/gooddetlist/instcd", "031");
  380. }
  381. // 화면 전체 조회
  382. function fRetrGoodList(nodecopy, detailYN) {
  383. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  384. ipt_goodcd.attribute("editable") = "false";
  385. fInstcdSet();
  386. fSetinstData();
  387. if ( detailYN == null )
  388. misfMsterDetailRetrieve2();
  389. //마스터 테이블에 데이터가 조회 되었을 경우에만 디테일 테이블 조회
  390. if ( grd_goodlist.rows > 1 )
  391. {
  392. var row = grd_goodlist.row;
  393. if ( row < 1 )
  394. row = 1;
  395. fSearchDetailData();
  396. model.setValue("/root/send/goodbaseqty/instcd", "031");
  397. model.setValue("/root/send/goodbaseqty/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  398. model.setValue("/root/send/goodbaseqty/goodcd", grd_goodlist.valueMatrix(row, grd_goodlist.colRef("goodcd")) );
  399. submit("TRRSC05305");
  400. if(nodecopy == true)fAfterRetrGoodList();
  401. }else{
  402. fNodeInit();
  403. }
  404. }
  405. //조회를 하고 난후 초기화
  406. function fSetlinit()
  407. {
  408. ipt_goodcd_search.value="";
  409. ipt_oldcd_search.value="";
  410. ipt_edicd_search.value="";
  411. ipt_goodnm_search.value="";
  412. ipt_bnscd_search.value="";
  413. //판매회사 초기화
  414. ipt_suppcustcd_search.value="";
  415. opt_suppcustnm_search.value="";
  416. //대분류 초기화
  417. ipt_lrgcd_search.value="";
  418. ipt_lrgnm_search.value="";
  419. //중분류 초기화
  420. ipt_mdlcd_search.value="";
  421. ipt_mdlnm_search.value="";
  422. //소분류 초기화
  423. ipt_smlcd_search.value="";
  424. ipt_smlnm_search.value="";
  425. }
  426. // 물품구분별 권한체크.
  427. function fSetGoodFlagAuth()
  428. {
  429. btn_save.disabled=true;
  430. rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
  431. if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;
  432. }
  433. function fCheckSaveData()
  434. {
  435. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  436. {
  437. messageBox("물품코드는" ,"I003");
  438. model.setFocus("ipt_goodcd");
  439. return false;
  440. }
  441. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  442. {
  443. messageBox("대분류코드는" ,"I003");
  444. model.setFocus("ipt_lrgcd");
  445. return false;
  446. }
  447. if(model.getValue(ipt_amtacnt.attribute("ref")).length== 0 )
  448. {
  449. messageBox("비용계정은" ,"I003");
  450. model.setFocus("ipt_amtacnt");
  451. return false;
  452. }
  453. if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
  454. {
  455. messageBox("구매단위은" ,"I003");
  456. model.setFocus("cmb_purcunit");
  457. return false;
  458. }
  459. if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
  460. {
  461. messageBox("환산수량은" ,"I003");
  462. model.setFocus("ipt_exchqty");
  463. return false;
  464. }
  465. if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
  466. {
  467. messageBox("자산구분은" ,"I003");
  468. model.setFocus("cmb_asetflag");
  469. return false;
  470. }
  471. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(cmb_nonusetretresn.attribute("ref")) == 0)
  472. {
  473. messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
  474. model.setFocus("cmb_nonusetretresn");
  475. return false;
  476. }
  477. if(model.getValue("/root/tmp/insertinfo/insertflag")=="i"){
  478. model.makeValue("/root/send/reqdata/goodcd",model.getValue(ipt_goodcd.attribute("ref")));
  479. model.makeValue("/root/send/reqdata/insflag","Y");
  480. if(submit("TRRSC05315")){
  481. model.removeNodeset("/root/send/reqdata");
  482. var ChkGoodcd = model.getValue("/root/errinfo/errgoodinfo/goodcd");
  483. if(ChkGoodcd!=""){
  484. messageBox(ChkGoodcd+"은 이미 등록하신 코드","I009");
  485. model.setFocus("ipt_goodcd");
  486. return false;
  487. }
  488. }
  489. }
  490. return true;
  491. }
  492. function fAfterRetrGoodList()
  493. {
  494. if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
  495. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  496. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
  497. else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
  498. grp_detail.refresh();
  499. grp_etcgood.refresh();
  500. grd_gooddetlist.row = 1;
  501. model.setFocus("ipt_goodcd");
  502. }
  503. function fCheckAuth() {
  504. btn_search.disabled = !checkAuth("R") ;
  505. btn_save.disabled = !checkAuth("X") ;
  506. //btn_prt.disabled = !checkAuth("P") ;
  507. }
  508. function fSetDataCopy(){
  509. if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
  510. misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
  511. grp_detail.refresh();
  512. }
  513. function fDefaultSetting()
  514. {
  515. model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
  516. model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
  517. model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
  518. model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(ipt_lrgcd_search.attribute("ref")));
  519. model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , ipt_lrgcd_search.label);
  520. model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(ipt_mdlcd_search.attribute("ref")));
  521. model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , ipt_mdlcd_search.label);
  522. model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(ipt_smlcd_search.attribute("ref")));
  523. model.setValue(grd_gooddetlist.nodeset + "/smlnm" , ipt_smlcd_search.label );
  524. // hbh
  525. //model.setValue(grd_gooddetlist.nodeset + "/instcd" ,getUserInfo("dutplceinstcd"));
  526. //배성미 선생님 요청, 약품등록은 의료원(001)으로만 등록 되도록 수정.
  527. model.setValue(grd_gooddetlist.nodeset + "/instcd" ,"031");
  528. model.setValue(grd_gooddetlist.nodeset + "/useyn" ,'Y');
  529. model.setValue(grd_gooddetlist.nodeset + "/reqmthd" ,'1');
  530. model.setValue(grd_gooddetlist.nodeset + "/purcflag" ,'1');
  531. model.setValue(grd_gooddetlist.nodeset + "/reqflag" ,''); // 청구불가 셋팅. 'E'에서 변경
  532. model.setValue(grd_gooddetlist.nodeset + "/reqprid" ,'1');
  533. model.setValue(grd_gooddetlist.nodeset + "/asetflag" ,'1');
  534. model.setValue(grd_gooddetlist.nodeset + "/gnrlspcl" ,'N');
  535. model.setValue(grd_gooddetlist.nodeset + "/specldrug" ,'N');
  536. model.setValue(grd_gooddetlist.nodeset + "/todd" ,'99991231');
  537. model.setValue(grd_gooddetlist.nodeset + "/grupsnglflag", "S");
  538. model.setValue(grd_gooddetlist.nodeset + "/orginspplce", "01");
  539. model.setValue(grd_gooddetlist.nodeset + "/calcmthdcd", "-");
  540. }
  541. function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
  542. var node1 = instance1.selectNodes(ptarget_node + "/*");
  543. var node2 = instance1.selectNodes(psource_node + "/*");
  544. for (var i = 0; i < node1.length ; i++) {
  545. for (var j = 0; j < node2.length; j++) {
  546. if (node1.item(i).nodeName == node2.item(j).nodeName) {
  547. var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
  548. var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
  549. var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
  550. var copysource = psource_node + "/" + node2.item(j).nodeName;
  551. for (var k = 0; k < nextnode1.length; k++) {
  552. for (var p = 0; p < nextnode2.length; p++) {
  553. if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
  554. if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
  555. model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
  556. }
  557. }
  558. }
  559. }
  560. }
  561. }
  562. return false;
  563. }
  564. function fCheckRetrieveData()
  565. {
  566. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  567. {
  568. messageBox("물품구분을 " ,"C002");
  569. model.setFocus("ipt_goodflag_search");
  570. return false;
  571. }
  572. /*
  573. if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
  574. {
  575. messageBox("대분류코드를 " ,"C002");
  576. model.setFocus("ipt_lrgcd_search");
  577. return false;
  578. }
  579. if(model.getValue(ipt_goodcd_search.attribute("ref")).length == 0 && model.getValue(ipt_goodnm_search.attribute("ref")).length < 4)
  580. {
  581. messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
  582. model.setFocus("ipt_goodcd_search");
  583. return false;
  584. }
  585. */
  586. return true;
  587. }
  588. function fInstGoodCdCopy()
  589. {
  590. if(grd_goodlist.row - grd_goodlist.fixedRows == 0)return;
  591. btn_insert.dispatch("DOMActivate");
  592. model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
  593. model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
  594. model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
  595. model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
  596. model.SetValue(ipt_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
  597. model.SetValue(ipt_lrgnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgnm"));
  598. model.SetValue(ipt_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
  599. model.SetValue(ipt_mdlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlnm"));
  600. model.SetValue(ipt_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
  601. model.SetValue(ipt_smlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlnm"));
  602. model.refresh();
  603. model.setFocus("ipt_winacnt");
  604. }
  605. function fGoodCdCopy()
  606. {
  607. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  608. {
  609. messageBox("물품구분을 " ,"C002");
  610. model.setFocus("ipt_goodflag_search");
  611. return false;
  612. }
  613. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  614. {
  615. messageBox("대분류코드를 " ,"C002");
  616. model.setFocus("ipt_lrgcd");
  617. return false;
  618. }
  619. if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
  620. {
  621. messageBox("중분류코드를 " ,"C002");
  622. model.setFocus("ipt_mdlcd");
  623. return false;
  624. }
  625. model.setValue("/root/send/goodcopy/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  626. model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
  627. model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
  628. submit("TRRSC05303");
  629. var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
  630. if(goodcd.length == 0)goodcd = model.getValue(ipt_goodflag_search.attribute("ref")) + model.getValue(ipt_lrgcd.attribute("ref")) + model.getValue(ipt_mdlcd.attribute("ref")) + "0001";
  631. model.setValue(ipt_goodcd.attribute("ref"), goodcd);
  632. grp_detail.refresh();
  633. }
  634. function fInsertGoodDataListCopy()
  635. {
  636. if(btn_instcd.selected == true)
  637. {
  638. if( grd_instinfo.row > (grd_instinfo.fixedRows - 1) )
  639. {
  640. grd_instinfo.dispatch("ondblclick");
  641. grd_gooddetlist.valueMatrix(grd_gooddetlist.row, grd_gooddetlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  642. model.setValue("/root/main/gooddet/gooddetlist/instcd", getUserInfo("dutplceinstcd"));
  643. grd_gooddetlist.addStatus(grd_gooddetlist.row, "insert");
  644. // model.refresh();
  645. grp_detail.disabled = false;
  646. }else{
  647. messageBox("사용기관정보의 기관을 선택하신후 다시 작업해주세요.", "I999");
  648. }
  649. }else{
  650. messageBox("사용기관정보를 선택하신 후 다시 작업해주세요.", "I999");
  651. }
  652. }
  653. /*----------------------------------------------------------------
  654. * DRUGTYPE : 대분류 + 조영제 값을 체크하여 약국분류를 만듦
  655. reqflag = 'I' 이면 'I' else lrgcd
  656. ----------------------------------------------------------------*/
  657. function fSetDrugtype(pReqflag)
  658. {
  659. if (pReqflag == "I")
  660. opt_drugkind.value = pReqflag ;
  661. else
  662. opt_drugkind.value = ipt_lrgcd.value ;
  663. }
  664. function fupdatacheck()
  665. {
  666. var tempdd=grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd"));
  667. misfGridRowStatusChange(grd_gooddetlist, "/root/main/list/gooddet", "/root/main/gooddet");
  668. grd_gooddetlist.refresh();
  669. if(( getGridUpdateData(grd_gooddetlist)== "" ) && (getGridUpdateData(grd_rscdpbnslist)=="" )&& (getGridUpdateData(grd_goodbaseqtylist)=="" ))
  670. {
  671. messageBox("변경내역이 없습니다. ", "I999");
  672. return 6;
  673. }
  674. if(grd_gooddetlist.rowStatus(grd_gooddetlist.fixedRows) == 2 )
  675. {
  676. if(tempdd==grd_gooddetlist.valueMatrix(grd_gooddetlist.fixedRows, grd_gooddetlist.colRef("fromdd")))
  677. {
  678. var tempmag = (messageBox("적용일자가 변경되지않았습니다 새로운 적용일자로 입력하시겠습니까? ", "S999"));
  679. if(tempmag=="6" || tempmag=="2")
  680. {
  681. model.setFocus("ipt_fromdd");
  682. return 6;
  683. }
  684. }
  685. }
  686. model.refresh();
  687. }
  688. function fBnsValidCheck () {
  689. if( grd_rscdpbnslist.rows- grd_rscdpbnslist.fixedRows > 0) {
  690. for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ ) {
  691. if( grd_rscdpbnslist.rowStatus(cnt) != 0 ) {
  692. if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscd")).length== 0 ) {
  693. messageBox("도매상코드를 " ,"C002");
  694. grd_rscdpbnslist.row = cnt;
  695. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("bnscd");
  696. return false;
  697. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("exchqty")).length== 0 ) {
  698. messageBox("낱개수량을 " ,"C002");
  699. grd_rscdpbnslist.row = cnt;
  700. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("exchqty");
  701. return false;
  702. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("deliveunit")).length== 0 ) {
  703. messageBox("낱개단위를 " ,"C002");
  704. grd_rscdpbnslist.row = cnt;
  705. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("deliveunit");
  706. return false;
  707. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("purcunit")).length== 0 ) {
  708. messageBox("포장단위를 " ,"C002");
  709. grd_rscdpbnslist.row = cnt;
  710. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("purcunit");
  711. return false;
  712. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodunitcost")).length== 0 ) {
  713. messageBox("구입단가를 " ,"C002");
  714. grd_rscdpbnslist.row = cnt;
  715. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodunitcost");
  716. return false;
  717. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodpurccost")).length== 0 ) {
  718. messageBox("구입가를 " ,"C002");
  719. grd_rscdpbnslist.row = cnt;
  720. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("goodpurccost");
  721. return false;
  722. } else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")).length== 0 ) {
  723. if ( model.getValue( ipt_goodcd.attribute("ref") ).length !=0 ) {
  724. grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("goodcd")) = model.getValue( ipt_goodcd.attribute("ref") );
  725. } else {
  726. messageBox("약품품코드는" ,"I003");
  727. model.setFocus("ipt_goodcd");
  728. return false;
  729. }
  730. }
  731. }
  732. }
  733. }
  734. return true;
  735. }
  736. function fBaseQtyValidCheck () {
  737. if( grd_goodbaseqtylist.rows- grd_goodbaseqtylist.fixedRows > 0) {
  738. for( cnt = grd_goodbaseqtylist.fixedRows; cnt < grd_goodbaseqtylist.rows; cnt++ ) {
  739. if( grd_goodbaseqtylist.rowStatus(cnt) != 0 ) {
  740. if(grd_goodbaseqtylist.valueMatrix(cnt, grd_goodbaseqtylist.colRef("reqdeptcd")).length== 0 ) {
  741. messageBox("재고관리부서 " ,"C002");
  742. grd_goodbaseqtylist.row = cnt;
  743. grd_goodbaseqtylist.col = grd_rscdpbnslist.colRef("reqdeptcd");
  744. return false;
  745. } /*else if(grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("basevol")).length== 0 ) {
  746. messageBox("안전재고량을 " ,"C002");
  747. grd_rscdpbnslist.row = cnt;
  748. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
  749. return false;
  750. } */
  751. else if(model.getValue(grd_goodbaseqtylist.attribute("nodeset")+"["+cnt+"]/basevol") == '') {
  752. messageBox("안전재고량을 " ,"C002");
  753. grd_rscdpbnslist.row = cnt;
  754. grd_rscdpbnslist.col = grd_rscdpbnslist.colRef("basevol");
  755. return false;
  756. }
  757. }
  758. }
  759. }
  760. return true;
  761. }
  762. /** 2008.08.04 YYJ
  763. 상태에 따른 활성화 / 비활성화 설정 ( 보나에스 정보로 Setting 여부 )
  764. 보나에스 데이터 존재시 사용자 임의로 데이터를 수정 하지 못하고,
  765. 보나에스 Tab에서 데이터 지정하여 반영하기로 함.
  766. * 신규 입력시 직접 입력 가능하도록 풀어준다.
  767. ipt_exchqty // 낱개수량
  768. cmb_deliveunit // 낱개단위
  769. cmb_purcunit // 포장단위
  770. ipt_goodunitcost // 구입단가
  771. ipt_goodpurccost // 구입가
  772. 2008.08.24 YYJ
  773. 상세 화면에서 데이터 수정하더라도.. 보나에스 코드에 반영되도록 수정처리 함
  774. */
  775. function fBnsSetData( vStatus ) {
  776. ipt_exchqty.disabled = vStatus;
  777. cmb_deliveunit.disabled = vStatus;
  778. cmb_purcunit.disabled = vStatus;
  779. ipt_goodunitcost.disabled = vStatus;
  780. ipt_goodpurccost.disabled = vStatus;
  781. model.refresh();
  782. }
  783. function fsetP0133listData()
  784. {
  785. var ins = document.models( 0 ).instances( 0 );
  786. var P0133_nodelist = ins.selectNodes( "/root/init/P0133list/P0133" );
  787. var length = P0133_nodelist.length;
  788. for ( i=length-1; i>0; i-- )
  789. {
  790. var P0133_node = P0133_nodelist.item(i).childnodes;
  791. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 사용하기 위해
  792. //P0133list의 코드 데이터 중 코드번호(-,1,4)만 제외 하고 모두 삭제
  793. if( P0133_node.item(0).value != "-" && P0133_node.item(0).value != "1" && P0133_node.item(0).value != "4")
  794. {
  795. var pNode = P0133_nodelist.item(i).parentNode;
  796. pNode.removeChild(P0133_nodelist.item(i));
  797. }
  798. }
  799. }
  800. function fsetP0142listData()
  801. {
  802. var ins = document.models( 0 ).instances( 0 );
  803. var P0142_nodelist = ins.selectNodes( "/root/init/P0142list/P0142" );
  804. var length = P0142_nodelist.length;
  805. for ( i=length-1; i>0; i-- )
  806. {
  807. var P0142_node = P0142_nodelist.item(i).childnodes;
  808. //P0142list의 코드 데이터 중 코드번호(G,S)만 사용하기 위해
  809. //P0142list의 코드 데이터 중 코드번호(G,S)만 제외 하고 모두 삭제
  810. if( P0142_node.item(0).value != "G" && P0142_node.item(0).value != "S" )
  811. {
  812. var pNode = P0142_nodelist.item(i).parentNode;
  813. pNode.removeChild(P0142_nodelist.item(i));
  814. }
  815. }
  816. }
  817. function misfMsterDetailRetrieve2()
  818. {
  819. var node = instance1.selectNodes("/root/gridset/mastdetailset/*");
  820. for (var i = 0; i <node.length ; i++)
  821. {
  822. var node_detail = node.item(i).childNodes;
  823. //master에 값이 없는 submit 만 실행
  824. if ( node_detail.item(1).value == "" )
  825. {
  826. var resetgridID = document.controls(node_detail.item(0).value);
  827. model.removeNodeset(resetgridID.nodeset);
  828. submit(node_detail.item(2).value);
  829. }
  830. }
  831. }
  832. function fSearchDetailData()
  833. {
  834. var row = grd_goodlist.row;
  835. if ( row < 1 )
  836. row = 1;
  837. grd_goodlist.rebuild();
  838. var goodcd = model.getValue("/root/main/list/good/goodlist["+row+"]/goodcd");
  839. var fromdd = model.getValue("/root/main/list/good/goodlist["+row+"]/fromdd");
  840. var useyn = model.getValue("/root/main/list/good/goodlist["+row+"]/useyn");
  841. var instcd = "031";
  842. model.setValue("/root/send/gooddetlist/goodcd", goodcd);
  843. model.setValue("/root/send/gooddetlist/fromdd", fromdd);
  844. model.setValue("/root/send/gooddetlist/useyn", useyn);
  845. model.setValue("/root/send/gooddetlist/instcd", instcd);
  846. var master_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/master");
  847. var current_name = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/current");
  848. var submit_id = model.getValue("/root/gridset/mastdetailset/grd_gooddetlist/submit");
  849. submit (submit_id);
  850. }
  851. ]]>
  852. </script>
  853. </xhtml:head>
  854. <xhtml:body>
  855. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  856. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:131px; height:14px; ">통합 약품코드등록</caption>
  857. </group>
  858. <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
  859. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:87px; vertical-align:top; ">
  860. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
  861. <caption id="caption2" class="search_name" style="left:20px; top:36px; width:90px; height:17px; ">EDI 코드 :</caption>
  862. <caption id="caption3" class="search_name" style="left:20px; top:8px; width:86px; height:17px; ">약품코드 :</caption>
  863. <caption id="caption8" class="search_name" style="left:839px; top:8px; width:83px; height:17px; ">대 분 류 :</caption>
  864. <caption id="caption10" class="search_name" style="left:455px; top:8px; width:83px; height:17px; ">약 품 명 :</caption>
  865. <caption id="caption61" class="search_name" style="left:839px; top:36px; width:83px; height:17px; ">중 분 류 :</caption>
  866. <caption id="caption34" class="search_name" visibility="hidden" style="left:756px; top:60px; width:86px; height:17px; ">판매회사 :</caption>
  867. <caption id="caption39" class="search_name" style="left:839px; top:61px; width:83px; height:17px; ">소 분 류 :</caption>
  868. <line id="line1" class="line_4" style="x1:1109px; y1:13px; x2:1109px; y2:70px; "/>
  869. <button id="btn_search" class="btn1_letter2" navindex="23" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
  870. <caption>조회</caption>
  871. <script type="javascript" ev:event="DOMActivate">
  872. <![CDATA[
  873. if(fCheckRetrieveData() == false)return;
  874. model.makeValue("/root/send/goodlist/instflag","M");
  875. fRetrGoodList(true);
  876. // fSetlinit(); 조회 후 초기화 취소 요청으로 제외 시킴
  877. ]]>
  878. </script>
  879. </button>
  880. <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" navindex="3" style="left:539px; top:8px; width:185px; height:19px; ">
  881. <script type="javascript" ev:event="onkeydown">
  882. <![CDATA[
  883. if (event.keyCode == 13)
  884. {
  885. ipt_goodnm_search.value = ipt_goodnm_search.currentText;
  886. ipt_goodnm_search.refresh();
  887. btn_search.dispatch("DOMActivate");
  888. }
  889. ]]>
  890. </script>
  891. </input>
  892. <input id="ipt_edicd_search" ref="/root/send/goodlist/edicd" class="input_search" navindex="6" style="left:109px; top:36px; width:91px; height:19px; ">
  893. <script type="javascript" ev:event="onkeydown">
  894. <![CDATA[
  895. if (event.keyCode == 13)
  896. {
  897. ipt_edicd_search.value = ipt_edicd_search.currentText;
  898. ipt_edicd_search.refresh();
  899. btn_search.dispatch("DOMActivate");
  900. }
  901. ]]>
  902. </script>
  903. </input>
  904. <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" navindex="1" imemode="disabled" maxlength="12" _chartype="upper" style="left:109px; top:8px; width:91px; height:19px; ">
  905. <script type="javascript" ev:event="onkeydown">
  906. <![CDATA[
  907. if (event.keyCode == 13)
  908. {
  909. ipt_goodcd_search.value = ipt_goodcd_search.currentText;
  910. ipt_goodcd_search.refresh();
  911. btn_search.dispatch("DOMActivate");
  912. }
  913. ]]>
  914. </script>
  915. </input>
  916. <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" navindex="7" maxlength="12" _chartype="upper" style="left:334px; top:36px; width:91px; height:19px; ">
  917. <script type="javascript" ev:event="onkeydown">
  918. <![CDATA[
  919. if (event.keyCode == 13)
  920. {
  921. ipt_oldcd_search.value = ipt_oldcd_search.currentText;
  922. ipt_oldcd_search.refresh();
  923. btn_search.dispatch("DOMActivate");
  924. }
  925. ]]>
  926. </script>
  927. </input>
  928. <caption id="caption82" class="search_name" style="left:250px; top:36px; width:91px; height:17px; ">구 코 드 :</caption>
  929. <input id="ipt_suppcustcd_search" ref="/root/send/goodlist/suppcustcd" class="input_default" visibility="hidden" style="left:1040px; top:60px; width:25px; height:19px; text-align:center; ">
  930. <script type="javascript" ev:event="xforms-value-changed">
  931. <![CDATA[
  932. if ( model.getValue(ipt_suppcustcd_search.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm_search.attribute("ref"),"");
  933. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd_search.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd_search,"SPRSD00220","instcd","opt_instcd");
  934. model.refresh();
  935. ]]>
  936. </script>
  937. <script type="javascript" ev:event="onkeydown">
  938. <![CDATA[
  939. if(event.keyCode == 9)
  940. {
  941. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  942. else model.setFocus("cmb_conflag");
  943. }
  944. //event.preventDefault();
  945. ]]>
  946. </script>
  947. </input>
  948. <button id="btn_suppcustcd_search" class="icon_search" visibility="hidden" style="left:1030px; top:60px; width:16px; height:16px; ">
  949. <caption/>
  950. <script type="javascript" ev:event="DOMActivate">
  951. <![CDATA[
  952. rszfOpenPopUpListByWndName(ipt_suppcustcd_search,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
  953. model.refresh();
  954. ]]>
  955. </script>
  956. </button>
  957. <input id="opt_suppcustnm_search" ref="/root/send/goodlist/suppcustnm" class="input_default" navindex="13" visibility="hidden" style="left:840px; top:60px; width:185px; height:19px; ">
  958. <script type="javascript" ev:event="xforms-value-changed">
  959. <![CDATA[
  960. if ( model.getValue(opt_suppcustnm_search.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustcd_search.attribute("ref"),"");
  961. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(opt_suppcustnm_search.attribute("ref")), "","suppcustcd,suppcustnm" ,opt_suppcustnm_search,"SPRSD00220","instcd","opt_instcd");
  962. model.refresh();
  963. ]]>
  964. </script>
  965. <script type="javascript" ev:event="onkeydown">
  966. <![CDATA[
  967. if(event.keyCode == 9)
  968. {
  969. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  970. else model.setFocus("cmb_conflag");
  971. }
  972. //event.preventDefault();
  973. ]]>
  974. </script>
  975. </input>
  976. <caption id="caption40" class="search_name" style="left:21px; top:61px; width:86px; height:17px; ">연 번 :</caption>
  977. <input id="ipt_asisgoodcd_search" ref="/root/send/goodlist/asisgoodcd" class="input_search" navindex="10" _chartype="upper" style="left:109px; top:61px; width:91px; height:19px; ">
  978. <script type="javascript" ev:event="onkeydown">
  979. <![CDATA[
  980. if (event.keyCode == 13)
  981. {
  982. ipt_asisgoodcd_search.value=ipt_asisgoodcd_search.currentText;
  983. ipt_asisgoodcd_search.refresh();
  984. btn_search.dispatch("DOMActivate");
  985. }
  986. ]]>
  987. </script>
  988. </input>
  989. <select1 id="rbo_exactsearch1" ref="/root/send/goodlist/exactsearch" navindex="2" appearance="full" cols="1" overflow="visible" style="left:200px; top:1px; width:45px; height:35px; border-style:none; ">
  990. <choices>
  991. <itemset nodeset="/root/init/exactsearch">
  992. <label ref="label"/>
  993. <value ref="value"/>
  994. </itemset>
  995. </choices>
  996. </select1>
  997. <caption id="caption22" class="search_name" style="left:455px; top:36px; width:83px; height:17px; ">성 분 명 :</caption>
  998. <input id="ipt_comnm_search" ref="/root/send/goodlist/comnm" class="input_search" navindex="8" style="left:539px; top:36px; width:185px; height:19px; ">
  999. <script type="javascript" ev:event="onkeydown">
  1000. <![CDATA[
  1001. if (event.keyCode == 13)
  1002. {
  1003. ipt_comnm_search.value = ipt_comnm_search.currentText;
  1004. ipt_comnm_search.refresh();
  1005. btn_search.dispatch("DOMActivate");
  1006. }
  1007. ]]>
  1008. </script>
  1009. </input>
  1010. <caption id="caption43" class="search_name" style="left:250px; top:61px; width:86px; height:17px; ">불용코드 :</caption>
  1011. <select1 id="rdo_nonusegoodview" ref="/root/send/goodlist/nonusegoodview" navindex="11" appearance="full" cols="2" overflow="visible" style="left:334px; top:61px; width:91px; height:17px; border-style:none; ">
  1012. <choices>
  1013. <itemset nodeset="/root/init/nonusegoodview">
  1014. <label ref="label"/>
  1015. <value ref="value"/>
  1016. </itemset>
  1017. </choices>
  1018. </select1>
  1019. <select1 id="rdo_goodnmsearch" ref="/root/send/goodlist/goodnmsearch" navindex="4" appearance="full" cols="1" overflow="visible" style="left:730px; top:1px; width:75px; height:17px; border-style:none; ">
  1020. <choices>
  1021. <itemset nodeset="/root/init/goodnmsearch">
  1022. <label ref="label"/>
  1023. <value ref="value"/>
  1024. </itemset>
  1025. </choices>
  1026. </select1>
  1027. <select1 id="ipt_lrgcd_search" ref="/root/send/goodlist/lrgcd" navindex="5" appearance="minimal" style="left:930px; top:8px; width:148px; height:19px; ">
  1028. <choices>
  1029. <itemset>
  1030. <label/>
  1031. <value/>
  1032. </itemset>
  1033. </choices>
  1034. <script type="javascript" ev:event="xforms-value-changed">
  1035. <![CDATA[
  1036. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, "", "ipt_mdlcd_search", "", "M", "Y", "Y");
  1037. ipt_mdlcd_search.value="";
  1038. ipt_mdlcd_search.refresh();
  1039. ipt_mdlcd_search.dispatch("xforms-value-changed");
  1040. //model.refresh();
  1041. ]]>
  1042. </script>
  1043. </select1>
  1044. <select1 id="ipt_smlcd_search" ref="/root/send/goodlist/smlcd" appearance="minimal" style="left:930px; top:61px; width:148px; height:19px; ">
  1045. <choices>
  1046. <itemset>
  1047. <label/>
  1048. <value/>
  1049. </itemset>
  1050. </choices>
  1051. </select1>
  1052. <select1 id="ipt_mdlcd_search" ref="/root/send/goodlist/mdlcd" navindex="9" appearance="minimal" style="left:930px; top:36px; width:148px; height:19px; ">
  1053. <choices>
  1054. <itemset>
  1055. <label/>
  1056. <value/>
  1057. </itemset>
  1058. </choices>
  1059. <script type="javascript" ev:event="xforms-value-changed">
  1060. <![CDATA[
  1061. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), ipt_lrgcd_search.value, ipt_mdlcd_search.value, "ipt_smlcd_search", "", "S", "Y", "Y");
  1062. ipt_smlcd_search.value="";
  1063. //model.refresh();
  1064. ipt_smlcd_search.refresh();
  1065. ]]>
  1066. </script>
  1067. </select1>
  1068. <caption id="caption64" class="search_name" style="left:456px; top:63px; width:86px; height:17px; ">관리분류:</caption>
  1069. <select1 id="cmb_srchmngtcls" ref="/root/send/goodlist/mngtcls" navindex="12" appearance="minimal" style="left:540px; top:61px; width:185px; height:19px; text-align:center; ">
  1070. <choices>
  1071. <itemset>
  1072. <label/>
  1073. <value/>
  1074. </itemset>
  1075. </choices>
  1076. </select1>
  1077. <button id="btn_spread" style="left:0px; top:75px; width:11px; height:11px; background-image:../../../com/commonweb/images/tree_plus.gif; ">
  1078. <script type="javascript" ev:event="DOMActivate">
  1079. <![CDATA[
  1080. grp_spread.visible = "true";
  1081. btn_spread.visible = "false";
  1082. btn_fold.visible = "true";
  1083. ]]>
  1084. </script>
  1085. <caption/>
  1086. </button>
  1087. <button id="btn_fold" visibility="hidden" style="left:0px; top:75px; width:11px; height:11px; background-image:../../../com/commonweb/images/tree_minus.gif; ">
  1088. <script type="javascript" ev:event="DOMActivate">
  1089. <![CDATA[
  1090. model.resetInstanceNode("/root/send/goodlist/spread");
  1091. model.refresh();
  1092. grp_spread.visible = "false";
  1093. btn_spread.visible = "true";
  1094. btn_fold.visible = "false";
  1095. ]]>
  1096. </script>
  1097. <caption/>
  1098. </button>
  1099. </group>
  1100. <line id="line7" class="line_1" style="x1:0px; y1:121px; x2:540; y2:121px; "/>
  1101. <caption id="caption1" class="tit_2" style="left:550; top:106px; width:95px; height:13px; ">통합품목정보</caption>
  1102. <switch id="sw_detail" style="left:0px; top:494px; width:540; height:240px; border-color:#c7a3cf; border-style:solid; ">
  1103. <case id="case1" selected="true">
  1104. <datagrid id="grd_costhistinfo" nodeset="/root/main/list/gooddet/goodconstlist" caption="적용일자*^변경사유^비고^보험단가^구입가^포장/포장단위^포장/포장단위^EDI코드^한글명^판매회사^todd^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colsep="^" colwidth="80, 179, 325, 72, 71, 48, 54, 100, 100, 100, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:28px; width:537px; height:201px; ">
  1105. <col ref="fromdd" format="yyyy-mm-dd"/>
  1106. <col disabled="true" ref="nonusetretresn" type="combo">
  1107. <choices>
  1108. <itemset nodeset="/root/init/R0356list/R0356">
  1109. <label ref="cdnm"/>
  1110. <value ref="cdid"/>
  1111. </itemset>
  1112. </choices>
  1113. </col>
  1114. <col ref="cmt"/>
  1115. <col ref="insucost" format="#,###" style="text-align:right; "/>
  1116. <col ref="goodcost" format="#,###" style="text-align:right; "/>
  1117. <col ref="purcqty" format="#,###" style="text-align:right; "/>
  1118. <col ref="purcunit" style="text-align:center; "/>
  1119. <col ref="edicd"/>
  1120. <col ref="goodnm"/>
  1121. <col ref="suppcustnm"/>
  1122. <col ref="todd" visibility="hidden"/>
  1123. <script type="javascript" ev:event="ondblclick">
  1124. <![CDATA[
  1125. if(grd_costhistinfo.row > 0)
  1126. {
  1127. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]");
  1128. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate()){
  1129. ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
  1130. }else{
  1131. ipt_nonusetretdd.attribute("background-color") = "#ffffff";
  1132. }
  1133. ipt_nonusetretdd.refresh();
  1134. grp_detail.refresh();
  1135. }
  1136. ]]>
  1137. </script>
  1138. </datagrid>
  1139. <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1140. </case>
  1141. <case id="case2">
  1142. <group id="grp_etcgood" style="left:0px; top:28px; width:537; height:60px; ">
  1143. <line id="line50" class="line_2" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1144. <line id="line53" class="line_3" style="x1:0px; y1:47px; x2:537px; y2:47px; "/>
  1145. <caption id="caption74" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
  1146. <caption id="caption76" class="cell_1" style="left:268px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주생성구분</caption>
  1147. <select1 id="cmb_plceordbase" ref="/root/main/gooddet/gooddetlist/plceordbase" class="combo_essential" appearance="minimal" style="left:110px; top:2px; width:156px; height:19px; ">
  1148. <choices>
  1149. <itemset nodeset="/root/init/plceordbase">
  1150. <label ref="cdnm"/>
  1151. <value ref="cdid"/>
  1152. </itemset>
  1153. </choices>
  1154. </select1>
  1155. <caption id="caption78" class="cell_1" style="left:0px; top:1px; width:108px; height:23px; vertical-align:middle; ">발주기준</caption>
  1156. <input id="ipt_mmavguseqty" ref="/root/main/gooddet/gooddetlist/ddavguseqty" class="input_default" style="left:110px; top:27px; width:156px; height:19px; text-align:right; "/>
  1157. <caption id="caption79" class="cell_1" style="left:268px; top:25px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
  1158. <input id="ipt_prprtystocpossndayno" ref="/root/main/gooddet/gooddetlist/prprtystocpossndayno" class="input_default" style="left:378px; top:27px; width:158px; height:19px; text-align:right; "/>
  1159. <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:378px; top:2px; width:158px; height:19px; ">
  1160. <choices>
  1161. <itemset nodeset="/root/init/plceordqtycretflag">
  1162. <label ref="cdnm"/>
  1163. <value ref="cdid"/>
  1164. </itemset>
  1165. </choices>
  1166. </select1>
  1167. </group>
  1168. <line id="line4" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1169. </case>
  1170. <case id="case4">
  1171. <datagrid id="grd_instinfo" nodeset="/root/main/list/gooddet/goodinstlist" caption="기관코드^기관명" colsep="^" colwidth="103, 410" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:28px; width:537; height:201px; ">
  1172. <col ref="instcd"/>
  1173. <col ref="instnm"/>
  1174. <script type="javascript" ev:event="ondblclick">
  1175. <![CDATA[
  1176. if(grd_instinfo.row > (grd_instinfo.fixedRows-1) )
  1177. {
  1178. if ( grd_goodlist.row < 1 )
  1179. model.setValue("/root/send/gooddetlist/goodcd", model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
  1180. else
  1181. model.setValue("/root/send/gooddetlist/goodcd", grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd")));
  1182. model.setValue("/root/send/gooddetlist/instcd", grd_instinfo.valueMatrix(grd_instinfo.row, grd_instinfo.colRef("instcd")));
  1183. model.setValue("/root/send/gooddetlist/useyn", 'Y');
  1184. submit("TRRSC05302");
  1185. fAfterRetrGoodList();
  1186. //grp_detail.disabled = true;
  1187. }
  1188. ]]>
  1189. </script>
  1190. </datagrid>
  1191. <line id="line5" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1192. </case>
  1193. <case id="case5">
  1194. <line id="line9" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1195. <datagrid id="grd_goodbaseqtylist" nodeset="/root/main/list/goodbaseqty/goodbaseqtylist" caption="재고관리부서^안전재고량^비고^INSTCD" colsep="^" colwidth="116, 101, 292, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:28px; width:535px; height:201px; ">
  1196. <col ref="reqdeptcd" type="combo">
  1197. <choices>
  1198. <itemset>
  1199. <label/>
  1200. <value/>
  1201. </itemset>
  1202. </choices>
  1203. </col>
  1204. <col ref="basevol" type="input" format="#,###" style="text-align:right; "/>
  1205. <col ref="cmt" type="input"/>
  1206. <col ref="instcd" visibility="hidden"/>
  1207. <col ref="goodcd" visibility="hidden"/>
  1208. <col ref="ddavguseqty" visibility="hidden"/>
  1209. </datagrid>
  1210. <button id="btn_grdadd2" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
  1211. <caption>행추가</caption>
  1212. <script type="javascript" ev:event="DOMActivate">
  1213. <![CDATA[
  1214. misfGridIUD(grd_goodbaseqtylist,"A");
  1215. //default setting
  1216. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/instcd" ,model.getValue(opt_instcd.attribute("ref")));
  1217. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/goodcd" ,model.getValue("/root/main/list/gooddet/gooddetlist/goodcd"));
  1218. model.setValue(grd_goodbaseqtylist.attribute("nodeset")+"["+(grd_goodbaseqtylist.row-grd_goodbaseqtylist.fixedrows+1)+"]/ddavguseqty" ,"0");
  1219. ]]>
  1220. </script>
  1221. </button>
  1222. <button id="btn_grddel2" class="btn2_letter3" style="left:480px; top:3px; width:53px; height:19px; ">
  1223. <caption>행삭제</caption>
  1224. <script type="javascript" ev:event="DOMActivate">
  1225. <![CDATA[
  1226. misfGridIUD(grd_goodbaseqtylist,"D");
  1227. ]]>
  1228. </script>
  1229. </button>
  1230. </case>
  1231. <case id="case6">
  1232. <line id="line11" class="line_1" style="x1:0px; y1:23px; x2:537px; y2:23px; "/>
  1233. <button id="button3" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
  1234. <caption>행추가</caption>
  1235. <script type="javascript" ev:event="DOMActivate">
  1236. <![CDATA[
  1237. misfGridIUD(grd_rscdpbnslist,"A");
  1238. //default setting
  1239. grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("instcd")) = model.getValue(opt_instcd.attribute("ref"));
  1240. grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("prcpexchqty"))= "1";
  1241. grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("goodcd")) = model.getValue( ipt_goodcd.attribute("ref") );
  1242. ]]>
  1243. </script>
  1244. </button>
  1245. <button id="button4" class="btn2_letter3" style="left:480px; top:3px; width:53px; height:19px; ">
  1246. <caption>행삭제</caption>
  1247. <script type="javascript" ev:event="DOMActivate">
  1248. <![CDATA[
  1249. misfGridIUD(grd_rscdpbnslist,"D");
  1250. ]]>
  1251. </script>
  1252. </button>
  1253. <datagrid id="grd_rscdpbnslist" nodeset="/root/main/list/rscdpbns/rscdpbnslist" caption="적용여부^도매상코드^처방환산^낱개수량^낱개단위^포장단위^구입단가^구입가^신코드" colsep="^" colwidth="56, 82, 21, 57, 62, 62, 91, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:29px; width:535px; height:201px; ">
  1254. <col ref="bnscheck" style="text-align:center; "/>
  1255. <col ref="bnscd" type="input" _key="true" style="text-align:left; "/>
  1256. <col ref="prcpexchqty" type="input" visibility="hidden" format="#,###" style="text-align:right; "/>
  1257. <col ref="exchqty" type="input" format="#,###" style="text-align:right; "/>
  1258. <col ref="deliveunit" type="combo" style="text-align:center; ">
  1259. <choices>
  1260. <itemset>
  1261. <label/>
  1262. <value/>
  1263. </itemset>
  1264. </choices>
  1265. </col>
  1266. <col ref="purcunit" type="combo" style="text-align:center; ">
  1267. <choices>
  1268. <itemset>
  1269. <label/>
  1270. <value/>
  1271. </itemset>
  1272. </choices>
  1273. </col>
  1274. <col ref="goodunitcost" type="input" format="#,###.##" style="text-align:right; "/>
  1275. <col ref="goodpurccost" type="input" format="#,###.##" style="text-align:right; "/>
  1276. <col ref="goodcd" visibility="hidden"/>
  1277. <script type="javascript" ev:event="ondblclick">
  1278. <![CDATA[
  1279. var cnt = 0;
  1280. if( grd_rscdpbnslist.row - grd_rscdpbnslist.fixedRows >= 0 &&
  1281. grd_rscdpbnslist.col == grd_rscdpbnslist.colRef("bnscheck") &&
  1282. grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) != '√' &&
  1283. fBnsValidCheck() == true )
  1284. {
  1285. if(messageBox("도매상 코드로", "Q009") =='6')
  1286. {
  1287. opt_bnscd.value = grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscd"));
  1288. /* 2008.08.04 YYJ 처방 환산은 보나에스에 종속적이지 않다고 하여 변경 */
  1289. // ipt_prcpexchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("prcpexchqty"));
  1290. ipt_exchqty.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("exchqty"));
  1291. cmb_deliveunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("deliveunit"));
  1292. cmb_purcunit.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("purcunit"));
  1293. ipt_goodunitcost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodunitcost"));
  1294. ipt_goodpurccost.value=grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row,grd_rscdpbnslist.colRef("goodpurccost"));
  1295. for( cnt = grd_rscdpbnslist.fixedRows; cnt < grd_rscdpbnslist.rows; cnt++ )
  1296. {
  1297. if( grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) == '√' )
  1298. {
  1299. grd_rscdpbnslist.valueMatrix(cnt, grd_rscdpbnslist.colRef("bnscheck")) = "";
  1300. break;
  1301. }
  1302. }
  1303. grd_rscdpbnslist.valueMatrix(grd_rscdpbnslist.row, grd_rscdpbnslist.colRef("bnscheck")) = '√'
  1304. model.refresh();
  1305. }
  1306. }
  1307. ]]>
  1308. </script>
  1309. </datagrid>
  1310. </case>
  1311. </switch>
  1312. <button id="btn_insert" class="btn2_letter4" navindex="32" style="left:1128px; top:100px; width:64px; height:19px; ">
  1313. <caption>신규입력</caption>
  1314. <script type="javascript" ev:event="DOMActivate">
  1315. <![CDATA[
  1316. // misfGridInit(grd_gooddetlist);
  1317. ipt_goodcd.attribute("editable") = "true";
  1318. fNodeInit();
  1319. misfGridIUD(grd_gooddetlist, "A");
  1320. fDefaultSetting();
  1321. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  1322. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  1323. if(ipt_fromdd.attribute("background-color") == "#c0c0c0")ipt_fromdd.attribute("background-color") = "#ffffff";
  1324. //model.refresh();
  1325. model.setFocus("ipt_goodcd");
  1326. grp_detail.disabled = false;
  1327. model.setValue(grd_gooddetlist.nodeset + "/instcd" ,"031");
  1328. model.makeValue("/root/tmp/insertinfo/insertflag","i");
  1329. /* 2008 08 24 YYJ
  1330. * 상세 화면에서 보나에스 정보를 수정 할 수 있도록 변경처리
  1331. */
  1332. // fBnsSetData(false);
  1333. ]]>
  1334. </script>
  1335. </button>
  1336. <button id="btn_choidel" class="btn2_letter6" visibility="hidden" style="left:820px; top:100px; width:86px; height:19px; ">
  1337. <caption>선택행삭제x</caption>
  1338. <script type="javascript" ev:event="DOMActivate">
  1339. <![CDATA[
  1340. misfGridIUD(grd_gooddetlist, "D");
  1341. misfGridIUD(grd_goodlist, "D");
  1342. ]]>
  1343. </script>
  1344. </button>
  1345. <button id="btn_instcd" class="btn_sw" group="tab" selected="true" style="left:180px; top:472px; width:90px; height:22px; ">
  1346. <caption>사용기관정보</caption>
  1347. <toggle case="case4" ev:event="DOMActivate"/>
  1348. </button>
  1349. <button id="btn_addinfo" class="btn_sw" group="tab" style="left:89px; top:472px; width:90px; height:22px; ">
  1350. <caption>부가입력정보</caption>
  1351. <toggle case="case2" ev:event="DOMActivate"/>
  1352. </button>
  1353. <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:472px; width:90px; height:22px; ">
  1354. <caption>이력정보</caption>
  1355. <toggle case="case1" ev:event="DOMActivate"/>
  1356. </button>
  1357. <line id="line2" class="line_1" style="x1:545; y1:121px; x2:1195; y2:121px; "/>
  1358. <button id="button2" class="btn_sw7" group="tab" style="left:271px; top:472px; width:90px; height:22px; ">
  1359. <caption>안전재고량관리</caption>
  1360. <toggle case="case5" ev:event="DOMActivate"/>
  1361. </button>
  1362. <button id="btn_excel" class="btn2_letter5" navindex="30" visibility="hidden" style="left:974px; top:100px; width:75px; height:19px; ">
  1363. <caption>Excel 화면</caption>
  1364. <script type="javascript" ev:event="DOMActivate">
  1365. <![CDATA[
  1366. if(fCheckRetrieveData() == false)return;
  1367. submit("TRRSC05402");
  1368. var fileName = window.fileDialog("save", ",", false, "약품코드List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1369. if (fileName != "")
  1370. {
  1371. grd_gooddetgoodexcellist.saveExcel(fileName, "약품코드");
  1372. }
  1373. ]]>
  1374. </script>
  1375. </button>
  1376. <button id="bbt_bonaes" class="btn_sw" visibility="hidden" group="tab" style="left:370px; top:472px; width:90px; height:22px; ">
  1377. <caption>포장단위</caption>
  1378. <toggle case="case6" ev:event="DOMActivate"/>
  1379. </button>
  1380. <button id="btn_openexcel" class="btn2_letter5" navindex="28" style="left:1051px; top:100px; width:75px; height:19px; ">
  1381. <caption>Excel 조건</caption>
  1382. <script type="javascript" ev:event="DOMActivate">
  1383. <![CDATA[
  1384. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  1385. model.setValue("/root/send/goodlist/exinstcd",getUserInfo("dutplceinstcd"));
  1386. model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
  1387. rdo_delyn.value = '';
  1388. rdo_contractyn.value = '';
  1389. group3.disabled = true;
  1390. grp_detail.disabled = true;
  1391. group2.visible = true;
  1392. group2.disabled = false;
  1393. /* 일자를 전체 check한다 */
  1394. chkdd.value= "Y";
  1395. chkdd.dispatch("xforms-value-changed");
  1396. model.refresh();
  1397. ]]>
  1398. </script>
  1399. </button>
  1400. <button id="btn_main" class="btn_sw" group="maintab" selected="true" style="left:1px; top:98px; width:90px; height:22px; ">
  1401. <caption>통합약품목록</caption>
  1402. </button>
  1403. <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" class="datagrid2" caption="약품코드^물품구분^약품명^EDI코드^함량/단위^대분류명^중분류명^소분류명" colsep="^" colwidth="85, 0, 211, 84, 72, 65, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:126px; width:540px; height:342px; ">
  1404. <col ref="goodcd" _key="true"/>
  1405. <col ref="goodflag" visibility="hidden" _key="true"/>
  1406. <col ref="goodnm" type="output" _key="true" style="text-align:left; "/>
  1407. <col ref="edicd" style="text-align:center; "/>
  1408. <col ref="goodspec"/>
  1409. <col ref="lrgnm" style="text-align:center; "/>
  1410. <col ref="mdlnm"/>
  1411. <col ref="smlnm"/>
  1412. <col ref="prodcmpynm" visibility="hidden"/>
  1413. <col ref="goodmodel" visibility="hidden"/>
  1414. <col ref="goodhngnm" visibility="hidden"/>
  1415. <col ref="goodengnm" visibility="hidden"/>
  1416. <col ref="asetflag" visibility="hidden"/>
  1417. <col ref="prodcmpycd" visibility="hidden"/>
  1418. <col ref="lrgcd" visibility="hidden"/>
  1419. <col ref="mdlcd" visibility="hidden"/>
  1420. <col ref="smlcd" visibility="hidden"/>
  1421. <script type="javascript" ev:event="onrowchanged">
  1422. <![CDATA[
  1423. var detailYN = "Y";
  1424. fRetrGoodList(true, detailYN);
  1425. // grp_detail.disabled = false;
  1426. grd_goodlist.dispatch("onmouseup");
  1427. ]]>
  1428. </script>
  1429. <script type="javascript" ev:event="onaftersort">
  1430. <![CDATA[
  1431. grd_goodlist.gridToInstance();
  1432. ]]>
  1433. </script>
  1434. <script type="javascript" ev:event="ondblclick">
  1435. <![CDATA[
  1436. var detailYN = "Y";
  1437. //fRetrGoodList(true, detailYN);
  1438. ]]>
  1439. </script>
  1440. </datagrid>
  1441. </group>
  1442. <group id="grp_detail" style="left:545px; top:165px; width:650px; height:607px; ">
  1443. <line id="line19" class="line_2" style="x1:0px; y1:336px; x2:649px; y2:336px; "/>
  1444. <line id="line29" class="line_2" style="x1:0px; y1:143px; x2:649px; y2:143px; "/>
  1445. <line id="line18" class="line_2" style="x1:0px; y1:362px; x2:649px; y2:362px; "/>
  1446. <line id="line28" class="line_2" style="x1:0px; y1:167px; x2:649px; y2:167px; "/>
  1447. <line id="line27" class="line_2" style="x1:0px; y1:191px; x2:649px; y2:191px; "/>
  1448. <line id="line16" class="line_2" style="x1:0px; y1:386px; x2:649px; y2:386px; "/>
  1449. <line id="line15" class="line_2" style="x1:0px; y1:410px; x2:649px; y2:410px; "/>
  1450. <line id="line14" class="line_2" style="x1:0px; y1:433px; x2:649px; y2:433px; "/>
  1451. <line id="line24" class="line_2" style="x1:0px; y1:215px; x2:649px; y2:215px; "/>
  1452. <line id="line13" class="line_2" style="x1:0px; y1:458px; x2:649px; y2:458px; "/>
  1453. <line id="line23" class="line_2" style="x1:0px; y1:239px; x2:649px; y2:239px; "/>
  1454. <line id="line12" class="line_2" style="x1:0px; y1:510px; x2:649px; y2:510px; "/>
  1455. <line id="line33" class="line_2" style="x1:0px; y1:22px; x2:649px; y2:22px; "/>
  1456. <line id="line22" class="line_2" style="x1:0px; y1:263px; x2:649px; y2:263px; "/>
  1457. <line id="line32" class="line_2" style="x1:0px; y1:71px; x2:649px; y2:71px; "/>
  1458. <line id="line21" class="line_2" style="x1:0px; y1:265px; x2:649px; y2:265px; "/>
  1459. <line id="line31" class="line_2" style="x1:0px; y1:95px; x2:649px; y2:95px; "/>
  1460. <line id="line30" class="line_2" style="x1:0px; y1:119px; x2:649px; y2:119px; "/>
  1461. <line id="line6" class="line_3" style="x1:0px; y1:604px; x2:649px; y2:604px; "/>
  1462. <line id="line8" class="line_3" style="x1:0px; y1:584px; x2:649px; y2:584px; "/>
  1463. <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" appearance="minimal" style="left:434px; top:219px; width:215px; height:19px; ">
  1464. <choices>
  1465. <itemset>
  1466. <label/>
  1467. <value/>
  1468. </itemset>
  1469. </choices>
  1470. <script type="javascript" ev:event="xforms-value-changed">
  1471. <![CDATA[
  1472. model.setFocus("cmb_asetflag");
  1473. ]]>
  1474. </script>
  1475. <script type="javascript" ev:event="onkeydown">
  1476. <![CDATA[
  1477. if(event.keyCode == 9)
  1478. {
  1479. // if(event.shiftKey)model.setFocus("ipt_goodspec");
  1480. // else model.setFocus("ipt_lrgcd");
  1481. }
  1482. //event.preventDefault();
  1483. ]]>
  1484. </script>
  1485. </select1>
  1486. <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_essential" visibility="hidden" imemode="hangul" maxlength="450" style="left:410px; top:585px; width:11px; height:19px; ">
  1487. <script type="javascript" ev:event="onkeydown">
  1488. <![CDATA[
  1489. if(event.keyCode == 9)
  1490. {
  1491. if(event.shiftKey)model.setFocus("ipt_goodnm");
  1492. else model.setFocus("ipt_goodengnm");
  1493. }
  1494. //event.preventDefault();
  1495. ]]>
  1496. </script>
  1497. </input>
  1498. <button id="btn_prodcmpycd" class="icon_search" style="left:174px; top:125px; width:16px; height:16px; ">
  1499. <caption/>
  1500. <script type="javascript" ev:event="DOMActivate">
  1501. <![CDATA[
  1502. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  1503. model.refresh();
  1504. ]]>
  1505. </script>
  1506. </button>
  1507. <caption id="caption50" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">약 품 코 드</caption>
  1508. <button id="btn_smlcd" class="icon_search" style="left:299px; top:221px; width:16px; height:16px; ">
  1509. <caption/>
  1510. <script type="javascript" ev:event="DOMActivate">
  1511. <![CDATA[
  1512. rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  1513. model.refresh();
  1514. ]]>
  1515. </script>
  1516. </button>
  1517. <button id="btn_lrgcd" class="icon_search" style="left:299px; top:198px; width:16px; height:16px; ">
  1518. <caption/>
  1519. <script type="javascript" ev:event="DOMActivate">
  1520. <![CDATA[
  1521. rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag");
  1522. // fSetDrugtype(cmb_reqflag.value);
  1523. fSetDrugtype();
  1524. model.refresh();
  1525. model.setFocus("ipt_mdlcd");
  1526. ]]>
  1527. </script>
  1528. </button>
  1529. <caption id="caption52" class="cell_1" style="left:0px; top:48px; width:108px; height:23px; vertical-align:middle; ">한 글 상 품 명</caption>
  1530. <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_s_essential" editable="false" maxlength="12" _chartype="upper" style="left:110px; top:26px; width:91px; height:19px; ">
  1531. <script type="javascript" ev:event="onkeydown">
  1532. <![CDATA[
  1533. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1534. // event.preventDefault();
  1535. ]]>
  1536. </script>
  1537. </input>
  1538. <input id="ipt_smlnm" ref="/root/main/gooddet/gooddetlist/smlnm" class="input_fix" appearance="input" style="left:110px; top:219px; width:185px; height:19px; ">
  1539. <script type="javascript" ev:event="xforms-value-changed">
  1540. <![CDATA[
  1541. rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
  1542. "smlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + ",," + model.getValue(ipt_smlnm.attribute("ref")),"","smlcd,smlnm" ,
  1543. ipt_smlnm,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  1544. model.refresh();
  1545. ]]>
  1546. </script>
  1547. </input>
  1548. <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:193px; top:243px; width:129px; height:19px; "/>
  1549. <input id="ipt_lrgnm" ref="/root/main/gooddet/gooddetlist/lrgnm" class="input_s_essential" appearance="input" style="left:110px; top:195px; width:185px; height:19px; ">
  1550. <script type="javascript" ev:event="xforms-value-changed">
  1551. <![CDATA[
  1552. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  1553. "lrgnm," + model.getValue(ipt_goodflag.attribute("ref")) +",," + model.getValue(ipt_lrgnm.attribute("ref")),"","lrgcd,lrgnm"
  1554. ,ipt_lrgnm,"SPRSD00130","goodflag","ipt_goodflag");
  1555. fSetDrugtype();
  1556. //fSetDrugtype(cmb_reqflag.value);
  1557. model.refresh();
  1558. ]]>
  1559. </script>
  1560. </input>
  1561. <caption id="caption42" class="cell_1" style="left:0px; top:121px; width:108px; height:23px; vertical-align:middle; ">제 조 회 사</caption>
  1562. <caption id="caption66" class="cell_1" style="left:0px; top:217px; width:108px; height:23px; vertical-align:middle; ">소 분 류</caption>
  1563. <output id="opt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="output_fix" appearance="output" style="left:528px; top:243px; width:121px; height:19px; "/>
  1564. <button id="btn_winacnt" class="icon_search" style="left:174px; top:245px; width:16px; height:16px; ">
  1565. <caption/>
  1566. <script type="javascript" ev:event="DOMActivate">
  1567. <![CDATA[
  1568. rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
  1569. model.refresh();
  1570. ]]>
  1571. </script>
  1572. </button>
  1573. <button id="btn_mdlcd" class="icon_search" style="left:630px; top:197px; width:16px; height:16px; ">
  1574. <caption/>
  1575. <script type="javascript" ev:event="DOMActivate">
  1576. <![CDATA[
  1577. rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
  1578. model.refresh();
  1579. ]]>
  1580. </script>
  1581. </button>
  1582. <input id="ipt_mdlnm" ref="/root/main/gooddet/gooddetlist/mdlnm" class="input_fix" appearance="input" style="left:434px; top:195px; width:190px; height:19px; ">
  1583. <script type="javascript" ev:event="xforms-value-changed">
  1584. <![CDATA[
  1585. rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
  1586. "mdlnm," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + ",," + model.getValue(ipt_mdlnm.attribute("ref")),"","mdlcd,mdlnm" ,
  1587. ipt_mdlnm,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
  1588. model.refresh();
  1589. ]]>
  1590. </script>
  1591. </input>
  1592. <caption id="caption56" class="cell_1" style="left:334px; top:217px; width:98px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
  1593. <caption id="caption35" class="cell_1" style="left:0px; top:241px; width:108px; height:23px; vertical-align:middle; ">입 고 계 정</caption>
  1594. <caption id="caption68" class="cell_1" style="left:0px; top:193px; width:108px; height:23px; vertical-align:middle; ">대 분 류</caption>
  1595. <input id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" class="input_default" visibility="hidden" style="left:110px; top:219px; width:60px; height:19px; ">
  1596. <script type="javascript" ev:event="xforms-value-changed">
  1597. <![CDATA[
  1598. if (model.getValue(ipt_smlcd.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm.attribute("ref"),"");
  1599. rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm","smlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) + "," +
  1600. model.getValue(ipt_smlcd.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm,ipt_mdlcd,ipt_mdlnm");
  1601. model.refresh();
  1602. model.setFocus("ipt_fromdd");
  1603. ]]>
  1604. </script>
  1605. <script type="javascript" ev:event="onkeydown">
  1606. <![CDATA[
  1607. if(event.keyCode == 9)
  1608. {
  1609. if(event.shiftKey)model.setFocus("ipt_mdlcd");
  1610. else model.setFocus("ipt_fromdd");
  1611. }
  1612. //event.preventDefault();
  1613. ]]>
  1614. </script>
  1615. </input>
  1616. <button id="btn_amtacnt" class="icon_search" style="left:503px; top:245px; width:16px; height:16px; ">
  1617. <caption/>
  1618. <script type="javascript" ev:event="DOMActivate">
  1619. <![CDATA[
  1620. rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
  1621. model.refresh();
  1622. ]]>
  1623. </script>
  1624. </button>
  1625. <input id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="input_essential" visibility="hidden" style="left:110px; top:195px; width:60px; height:19px; ">
  1626. <script type="javascript" ev:event="xforms-value-changed">
  1627. <![CDATA[
  1628. if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm.attribute("ref"),"");
  1629. else rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm","lrgcd," + model.getValue(ipt_goodflag.attribute("ref")) +"," + model.getValue(ipt_lrgcd.attribute("ref"))+",","","lrgcd,lrgnm" ,ipt_lrgcd,"SPRSD00130","goodflag","ipt_goodflag");
  1630. model.refresh();
  1631. ]]>
  1632. </script>
  1633. <script type="javascript" ev:event="onkeydown">
  1634. <![CDATA[
  1635. if(event.keyCode == 9)
  1636. {
  1637. if(event.shiftKey)model.setFocus("cmb_asetflag");
  1638. else model.setFocus("ipt_mdlcd");
  1639. }
  1640. //event.preventDefault();
  1641. ]]>
  1642. </script>
  1643. </input>
  1644. <caption id="caption7" class="cell_1" style="left:334px; top:241px; width:98px; height:23px; vertical-align:middle; ">비 용 계 정</caption>
  1645. <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" style="left:110px; top:243px; width:60px; height:19px; ">
  1646. <script type="javascript" ev:event="xforms-value-changed">
  1647. <![CDATA[
  1648. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
  1649. model.refresh();
  1650. model.setFocus("ipt_amtacnt");
  1651. ]]>
  1652. </script>
  1653. <script type="javascript" ev:event="onkeydown">
  1654. <![CDATA[
  1655. if(event.keyCode == 9)
  1656. {
  1657. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  1658. else model.setFocus("ipt_amtacnt");
  1659. }
  1660. //event.preventDefault();
  1661. ]]>
  1662. </script>
  1663. </input>
  1664. <caption id="caption29" class="cell_1" style="left:334px; top:193px; width:98px; height:23px; vertical-align:middle; ">중 분 류</caption>
  1665. <input id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="input_default" visibility="hidden" style="left:434px; top:195px; width:61px; height:19px; ">
  1666. <script type="javascript" ev:event="xforms-value-changed">
  1667. <![CDATA[
  1668. if (model.getValue(ipt_mdlcd.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm.attribute("ref"),"");
  1669. else rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm","mdlcd," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_lrgcd.attribute("ref")) + "," + model.getValue(ipt_mdlcd.attribute("ref")) +","
  1670. ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,ipt_lrgnm");
  1671. model.refresh();
  1672. model.setFocus("ipt_smlcd");
  1673. ]]>
  1674. </script>
  1675. <script type="javascript" ev:event="onkeydown">
  1676. <![CDATA[
  1677. if(event.keyCode == 9)
  1678. {
  1679. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  1680. else model.setFocus("ipt_smlcd");
  1681. }
  1682. //event.preventDefault();
  1683. ]]>
  1684. </script>
  1685. </input>
  1686. <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" style="left:110px; top:123px; width:60px; height:19px; ">
  1687. <script type="javascript" ev:event="xforms-value-changed">
  1688. <![CDATA[
  1689. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(opt_prodcmpynm.attribute("ref"),"");
  1690. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  1691. model.refresh();
  1692. // model.setFocus("ipt_goodmodel");
  1693. ]]>
  1694. </script>
  1695. <script type="javascript" ev:event="onkeydown">
  1696. <![CDATA[
  1697. if(event.keyCode == 9)
  1698. {
  1699. // if(event.shiftKey)model.setFocus("cmb_prodplce");
  1700. // else model.setFocus("ipt_goodmodel");
  1701. }
  1702. //event.preventDefault();
  1703. ]]>
  1704. </script>
  1705. </input>
  1706. <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" imemode="alpha" maxlength="450" style="left:110px; top:75px; width:537px; height:19px; ">
  1707. <script type="javascript" ev:event="onkeydown">
  1708. <![CDATA[
  1709. if(event.keyCode == 9)
  1710. {
  1711. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  1712. // else model.setFocus("cmb_prodplce");
  1713. }
  1714. //event.preventDefault();
  1715. ]]>
  1716. </script>
  1717. </input>
  1718. <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_s_essential" style="left:434px; top:243px; width:61px; height:19px; ">
  1719. <script type="javascript" ev:event="xforms-value-changed">
  1720. <![CDATA[
  1721. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
  1722. model.refresh();
  1723. model.setFocus("ipt_fromdd");
  1724. ]]>
  1725. </script>
  1726. <script type="javascript" ev:event="onkeydown">
  1727. <![CDATA[
  1728. if(event.keyCode == 9)
  1729. {
  1730. if(event.shiftKey)model.setFocus("ipt_winacnt");
  1731. else model.setFocus("ipt_fromdd");
  1732. }
  1733. //event.preventDefault();
  1734. ]]>
  1735. </script>
  1736. </input>
  1737. <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" appearance="output" style="left:193px; top:123px; width:129px; height:19px; "/>
  1738. <caption id="caption55" class="cell_1" visibility="visible" style="left:334px; top:121px; width:98px; height:23px; vertical-align:middle; ">E D I 코 드</caption>
  1739. <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_s_essential" maxlength="30" style="left:110px; top:49px; width:537px; height:19px; ">
  1740. <script type="javascript" ev:event="onkeydown">
  1741. <![CDATA[
  1742. if(event.keyCode == 9)
  1743. {
  1744. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1745. else model.setFocus("ipt_goodhngnm");
  1746. }
  1747. //event.preventDefault();
  1748. ]]>
  1749. </script>
  1750. <script type="javascript" ev:event="xforms-value-changed">
  1751. <![CDATA[
  1752. /* 한글명에 값셋팅한다.*/
  1753. model.setValue(ipt_goodhngnm.attribute("ref"),ipt_goodnm.value);
  1754. ]]>
  1755. </script>
  1756. </input>
  1757. <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:361px; top:340px; width:84px; height:19px; text-align:center; ">
  1758. <choices>
  1759. <itemset>
  1760. <label/>
  1761. <value/>
  1762. </itemset>
  1763. </choices>
  1764. <script type="javascript" ev:event="onkeydown">
  1765. <![CDATA[
  1766. if(event.keyCode == 9)
  1767. {
  1768. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1769. else model.setFocus("ipt_exchqty");
  1770. }
  1771. //event.preventDefault();
  1772. ]]>
  1773. </script>
  1774. </select1>
  1775. <caption id="caption53" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">적 용 일 자</caption>
  1776. <caption id="caption21" class="cell_1" style="left:0px; top:338px; width:166px; height:23px; vertical-align:middle; ">낱개수량/낱개단위/포장단위</caption>
  1777. <button id="btn_photinfo" class="btn2_letter2" style="left:207px; top:26px; width:42px; height:19px; ">
  1778. <caption>사진</caption>
  1779. <script type="javascript" ev:event="DOMActivate">
  1780. <![CDATA[
  1781. //SPRSC00210
  1782. rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1783. //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1784. ]]>
  1785. </script>
  1786. </button>
  1787. <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_s_essential" appearance="minimal" itemcount="20" style="left:256px; top:340px; width:84px; height:19px; text-align:center; ">
  1788. <choices>
  1789. <itemset>
  1790. <label/>
  1791. <value/>
  1792. </itemset>
  1793. </choices>
  1794. <script type="javascript" ev:event="onkeydown">
  1795. <![CDATA[
  1796. if(event.keyCode == 9)
  1797. {
  1798. if(event.shiftKey)model.setFocus("cmb_deliveunit");
  1799. else model.setFocus("ipt_minexch");
  1800. }
  1801. //event.preventDefault();
  1802. ]]>
  1803. </script>
  1804. <script type="javascript" ev:event="xforms-value-changed">
  1805. <![CDATA[
  1806. var deliveunit = model.getValue("/root/main/gooddet/gooddetlist/deliveunit");
  1807. model.setValue("/root/main/gooddet/gooddetlist/prcpunit", deliveunit);
  1808. cmb_prcpunit.refresh();
  1809. ]]>
  1810. </script>
  1811. </select1>
  1812. <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_s_essential" maxlength="9" format="#,###" style="left:168px; top:340px; width:79px; height:19px; text-align:right; ">
  1813. <script type="javascript" ev:event="onkeydown">
  1814. <![CDATA[
  1815. if(event.keyCode == 9)
  1816. {
  1817. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1818. else model.setFocus("cmb_deliveunit");
  1819. }
  1820. //event.preventDefault();
  1821. ]]>
  1822. </script>
  1823. <script type="javascript" ev:event="xforms-value-changed">
  1824. <![CDATA[
  1825. model.setValue(ipt_purcqty.attribute("ref"),model.getValue(ipt_exchqty.attribute("ref")));
  1826. model.refresh();
  1827. ]]>
  1828. </script>
  1829. </input>
  1830. <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_s_essential" inputtype="date" style="left:110px; top:0px; width:96px; height:19px; background-color:#ffffff; ">
  1831. <script type="javascript" ev:event="onkeydown">
  1832. <![CDATA[
  1833. if(event.keyCode == 9)
  1834. {
  1835. if(event.shiftKey)model.setFocus("ipt_fromdd");
  1836. else model.setFocus("ipt_smlcd");
  1837. }
  1838. //event.preventDefault();
  1839. ]]>
  1840. </script>
  1841. <script type="javascript" ev:event="xforms-value-changed">
  1842. <![CDATA[
  1843. var ComFromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
  1844. var ComPreFromdd = model.getValue("/root/main/gooddet/gooddetlist/prefromdd");
  1845. if(ComFromdd < ComPreFromdd){
  1846. messageBox("현 적용일자보다 이전일자로 변경할수", "I004");
  1847. model.setValue(ipt_fromdd.attribute("ref"), ComPreFromdd);
  1848. ipt_fromdd.refresh();
  1849. return;
  1850. }
  1851. ]]>
  1852. </script>
  1853. </input>
  1854. <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:110px; top:458px; width:105px; height:19px; ">
  1855. <script type="javascript" ev:event="xforms-value-changed">
  1856. <![CDATA[
  1857. var Todd = model.getValue("/root/main/gooddet/gooddetlist/todd");
  1858. var ComTodd = model.getValue("/root/main/list/gooddet/goodconstlist["+grd_costhistinfo.row+"]/todd");
  1859. var Fromdd = model.getValue("/root/main/gooddet/gooddetlist/fromdd");
  1860. var ComFromdd = model.getValue("/root/main/list/gooddet/goodconstlist["+1+"]/fromdd");
  1861. if(ComFromdd!=Fromdd){
  1862. messageBox("이미 불용된 코드","I009");
  1863. model.setValue("/root/main/gooddet/gooddetlist/todd",ComTodd);
  1864. ipt_nonusetretdd.refresh();
  1865. return;
  1866. }
  1867. ]]>
  1868. </script>
  1869. </input>
  1870. <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" style="left:110px; top:480px; width:538px; height:104px; ">
  1871. <script type="javascript" ev:event="onkeydown">
  1872. <![CDATA[
  1873. if(event.keyCode == 9)
  1874. {
  1875. // if(event.shiftKey)model.setFocus("ipt_reqpsn");
  1876. // else model.setFocus("ipt_lastpurcdd");
  1877. }
  1878. //event.preventDefault();
  1879. ]]>
  1880. </script>
  1881. </textarea>
  1882. <caption id="caption5" class="cell_1" style="left:0px; top:456px; width:108px; height:23px; vertical-align:middle; ">불 용 일 자</caption>
  1883. <caption id="caption17" class="cell_1" style="left:0px; top:480px; width:108px; height:103px; vertical-align:middle; ">비 고</caption>
  1884. <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:518px; top:147px; width:129px; height:19px; "/>
  1885. <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:193px; top:147px; width:129px; height:19px; "/>
  1886. <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_default" disabled="true" style="left:434px; top:147px; width:60px; height:19px; ">
  1887. <script type="javascript" ev:event="xforms-value-changed">
  1888. <![CDATA[
  1889. if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(opt_maincustlastsuplplcenm.attribute("ref"),"");
  1890. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
  1891. model.refresh();
  1892. model.setFocus("ipt_suppcustcd");
  1893. ]]>
  1894. </script>
  1895. <script type="javascript" ev:event="onkeydown">
  1896. <![CDATA[
  1897. if(event.keyCode == 9)
  1898. {
  1899. //if(event.shiftKey)model.setFocus("cmb_purcflag");
  1900. //else model.setFocus("ipt_suppcustcd");
  1901. }
  1902. //event.preventDefault();
  1903. ]]>
  1904. </script>
  1905. </input>
  1906. <button id="btn_suppcustcd" class="icon_search" disabled="true" style="left:175px; top:149px; width:16px; height:16px; ">
  1907. <caption/>
  1908. <script type="javascript" ev:event="DOMActivate">
  1909. <![CDATA[
  1910. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
  1911. model.refresh();
  1912. ]]>
  1913. </script>
  1914. </button>
  1915. <caption id="caption67" class="cell_1" style="left:248px; top:363px; width:85px; height:23px; vertical-align:middle; ">처 방 단 가</caption>
  1916. <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" disabled="true" maxlength="14.2" format="#,###.##" style="left:528px; top:366px; width:121px; height:19px; text-align:right; ">
  1917. <script type="javascript" ev:event="onkeydown">
  1918. <![CDATA[
  1919. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  1920. //event.preventDefault();
  1921. ]]>
  1922. </script>
  1923. <script type="javascript" ev:event="xforms-value-changed">
  1924. <![CDATA[
  1925. model.getValue(ipt_prodcmpycd.attribute("ref"))
  1926. ]]>
  1927. </script>
  1928. </input>
  1929. <button id="btn_maincustlastsuplplce" class="icon_search" disabled="true" style="left:499px; top:149px; width:16px; height:16px; ">
  1930. <caption/>
  1931. <script type="javascript" ev:event="DOMActivate">
  1932. <![CDATA[
  1933. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  1934. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd");
  1935. model.refresh();
  1936. ]]>
  1937. </script>
  1938. </button>
  1939. <caption id="caption37" class="cell_1" style="left:0px; top:145px; width:108px; height:23px; vertical-align:middle; ">판 매 회 사</caption>
  1940. <caption id="caption27" class="cell_1" style="left:334px; top:145px; width:98px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
  1941. <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" disabled="true" style="left:110px; top:147px; width:60px; height:19px; ">
  1942. <script type="javascript" ev:event="xforms-value-changed">
  1943. <![CDATA[
  1944. if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ) model.setValue(opt_suppcustnm.attribute("ref"),"");
  1945. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
  1946. model.refresh();
  1947. ]]>
  1948. </script>
  1949. <script type="javascript" ev:event="onkeydown">
  1950. <![CDATA[
  1951. if(event.keyCode == 9)
  1952. {
  1953. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  1954. else model.setFocus("cmb_conflag");
  1955. }
  1956. //event.preventDefault();
  1957. ]]>
  1958. </script>
  1959. </input>
  1960. <output id="opt_bnscd" ref="/root/main/gooddet/gooddetlist/bnscd" class="output_fix" visibility="hidden" _chartype="upper" disabled="true" maxlength="12" style="left:540px; top:75px; width:91px; height:19px; ">
  1961. <script type="javascript" ev:event="onkeydown">
  1962. <![CDATA[
  1963. if(event.keyCode == 9)
  1964. {
  1965. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1966. else model.setFocus("ipt_goodhngnm");
  1967. }
  1968. //event.preventDefault();
  1969. ]]>
  1970. </script>
  1971. </output>
  1972. <caption id="caption30" class="cell_1" visibility="hidden" style="left:467px; top:73px; width:70px; height:23px; vertical-align:middle; ">도매상코드</caption>
  1973. <caption id="caption13" class="cell_1" style="left:0px; top:265px; width:108px; height:23px; vertical-align:middle; ">함량/함량단위</caption>
  1974. <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:193px; top:267px; width:129px; height:19px; text-align:center; ">
  1975. <choices>
  1976. <itemset>
  1977. <label/>
  1978. <value/>
  1979. </itemset>
  1980. </choices>
  1981. <script type="javascript" ev:event="onkeydown">
  1982. <![CDATA[
  1983. if(event.keyCode == 9)
  1984. {
  1985. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1986. else model.setFocus("ipt_exchqty");
  1987. }
  1988. //event.preventDefault();
  1989. ]]>
  1990. </script>
  1991. </select1>
  1992. <caption id="caption20" class="cell_1" style="left:334px; top:289px; width:98px; height:23px; vertical-align:middle; ">처방수량/단위</caption>
  1993. <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" format="#,###.##" style="left:434px; top:270px; width:87px; height:19px; text-align:right; ">
  1994. <script type="javascript" ev:event="onkeydown">
  1995. <![CDATA[
  1996. if(event.keyCode == 9)
  1997. {
  1998. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  1999. // else model.setFocus("ipt_plceordnonusedd");
  2000. model.setFocus("ipt_plceordnonusedd");
  2001. }
  2002. //event.preventDefault();
  2003. ]]>
  2004. </script>
  2005. </input>
  2006. <caption id="caption26" class="cell_1" style="left:0px; top:169px; width:108px; height:23px; vertical-align:middle; ">성 분</caption>
  2007. <input id="ipt_com" ref="/root/main/gooddet/gooddetlist/com" class="input_default" maxlength="10" style="left:110px; top:171px; width:85px; height:19px; ">
  2008. <script type="javascript" ev:event="onkeydown">
  2009. <![CDATA[
  2010. if(event.keyCode == 9)
  2011. {
  2012. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2013. // else model.setFocus("ipt_plceordnonusedd");
  2014. model.setFocus("ipt_plceordnonusedd");
  2015. }
  2016. //event.preventDefault();
  2017. ]]>
  2018. </script>
  2019. </input>
  2020. <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" imemode="alpha" maxlength="450" _chartype="upper" style="left:434px; top:123px; width:214px; height:19px; ">
  2021. <script type="javascript" ev:event="onkeydown">
  2022. <![CDATA[
  2023. if(event.keyCode == 9)
  2024. {
  2025. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  2026. // else model.setFocus("cmb_prodplce");
  2027. }
  2028. //event.preventDefault();
  2029. ]]>
  2030. </script>
  2031. </input>
  2032. <caption id="caption25" class="cell_1" style="left:0px; top:388px; width:56px; height:43px; vertical-align:middle; ">보 관 법</caption>
  2033. <caption id="caption31" class="cell_1" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">일 반/전 문</caption>
  2034. <select1 id="cmb_gnrlspcl" ref="/root/main/gooddet/gooddetlist/gnrlspcl" class="combo_essential" appearance="minimal" style="left:110px; top:97px; width:212px; height:19px; ">
  2035. <choices>
  2036. <itemset nodeset="/root/init/gnrlspcl">
  2037. <label ref="label"/>
  2038. <value ref="value"/>
  2039. </itemset>
  2040. </choices>
  2041. <script type="javascript" ev:event="onkeydown">
  2042. <![CDATA[
  2043. if(event.keyCode == 9)
  2044. {
  2045. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2046. else model.setFocus("ipt_exchqty");
  2047. }
  2048. //event.preventDefault();
  2049. ]]>
  2050. </script>
  2051. </select1>
  2052. <select1 id="cmb_specldrug" ref="/root/main/gooddet/gooddetlist/specldrug" class="combo_essential" visibility="hidden" appearance="minimal" style="left:320px; top:585px; width:20px; height:19px; ">
  2053. <choices>
  2054. <item>
  2055. <label>일반</label>
  2056. <value>N</value>
  2057. </item>
  2058. <item>
  2059. <label>특별</label>
  2060. <value>Y</value>
  2061. </item>
  2062. </choices>
  2063. <script type="javascript" ev:event="onkeydown">
  2064. <![CDATA[
  2065. if(event.keyCode == 9)
  2066. {
  2067. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2068. else model.setFocus("ipt_exchqty");
  2069. }
  2070. //event.preventDefault();
  2071. ]]>
  2072. </script>
  2073. </select1>
  2074. <caption id="caption48" class="cell_1" style="left:0px; top:363px; width:108px; height:23px; vertical-align:middle; ">수 가</caption>
  2075. <caption id="caption49" class="cell_1" style="left:455px; top:363px; width:68px; height:23px; vertical-align:middle; ">구입단가</caption>
  2076. <caption id="caption11" class="cell_1" style="left:334px; top:265px; width:98px; height:23px; vertical-align:middle; ">규격/규격단위</caption>
  2077. <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" format="#,###.##" style="left:110px; top:267px; width:80px; height:19px; text-align:right; ">
  2078. <script type="javascript" ev:event="onkeydown">
  2079. <![CDATA[
  2080. if(event.keyCode == 9)
  2081. {
  2082. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2083. // else model.setFocus("ipt_plceordnonusedd");
  2084. model.setFocus("ipt_plceordnonusedd");
  2085. }
  2086. //event.preventDefault();
  2087. ]]>
  2088. </script>
  2089. </input>
  2090. <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" appearance="full" cellspacing="20" cols="5" overflow="visible" style="left:110px; top:389px; width:235px; height:20px; border-style:none; ">
  2091. <choices>
  2092. <itemset nodeset="/root/init/keepmthd">
  2093. <label ref="label"/>
  2094. <value ref="value"/>
  2095. </itemset>
  2096. </choices>
  2097. </select1>
  2098. <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:528px; top:270px; width:121px; height:19px; text-align:center; ">
  2099. <choices>
  2100. <itemset nodeset="/root/init/specunit">
  2101. <label ref="cdnm"/>
  2102. <value ref="cdid"/>
  2103. </itemset>
  2104. </choices>
  2105. <script type="javascript" ev:event="onkeydown">
  2106. <![CDATA[
  2107. if(event.keyCode == 9)
  2108. {
  2109. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2110. else model.setFocus("ipt_exchqty");
  2111. }
  2112. //event.preventDefault();
  2113. ]]>
  2114. </script>
  2115. </select1>
  2116. <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:45px; top:490px; width:14px; height:19px; ">
  2117. <script type="javascript" ev:event="onkeydown">
  2118. <![CDATA[
  2119. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  2120. //event.preventDefault();
  2121. ]]>
  2122. </script>
  2123. </input>
  2124. <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" visibility="hidden" style="left:350px; top:585px; width:15px; height:19px; ">
  2125. <script type="javascript" ev:event="onkeydown">
  2126. <![CDATA[
  2127. if(event.keyCode == 9)
  2128. {
  2129. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2130. // else model.setFocus("ipt_plceordnonusedd");
  2131. model.setFocus("ipt_plceordnonusedd");
  2132. }
  2133. //event.preventDefault();
  2134. ]]>
  2135. </script>
  2136. </input>
  2137. <select1 id="cmb_prcpunit" ref="/root/main/gooddet/gooddetlist/prcpunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:528px; top:294px; width:121px; height:19px; text-align:center; ">
  2138. <choices>
  2139. <itemset>
  2140. <label/>
  2141. <value/>
  2142. </itemset>
  2143. </choices>
  2144. <script type="javascript" ev:event="onkeydown">
  2145. <![CDATA[
  2146. if(event.keyCode == 9)
  2147. {
  2148. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2149. else model.setFocus("ipt_exchqty");
  2150. }
  2151. //event.preventDefault();
  2152. ]]>
  2153. </script>
  2154. <script type="javascript" ev:event="xforms-value-changed">
  2155. <![CDATA[
  2156. var prcpunit = model.getValue("/root/main/gooddet/gooddetlist/prcpunit");
  2157. model.setValue("/root/main/gooddet/gooddetlist/deliveunit", prcpunit);
  2158. cmb_deliveunit.refresh();
  2159. ]]>
  2160. </script>
  2161. </select1>
  2162. <input id="ipt_prcpexchqty" ref="/root/main/gooddet/gooddetlist/prcpexchqty" class="input_default" format="#,###.##" style="left:110px; top:315px; width:130px; height:19px; text-align:right; ">
  2163. <script type="javascript" ev:event="onkeydown">
  2164. <![CDATA[
  2165. if(event.keyCode == 9)
  2166. {
  2167. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2168. // else model.setFocus("ipt_plceordnonusedd");
  2169. model.setFocus("ipt_plceordnonusedd");
  2170. }
  2171. //event.preventDefault();
  2172. ]]>
  2173. </script>
  2174. </input>
  2175. <input id="ipt_insucost" ref="/root/main/gooddet/gooddetlist/insucost" class="input_default" maxlength="14.2" format="#,###.#" style="left:110px; top:366px; width:125px; height:19px; text-align:right; ">
  2176. <script type="javascript" ev:event="onkeydown">
  2177. <![CDATA[
  2178. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2179. //event.preventDefault();
  2180. ]]>
  2181. </script>
  2182. <script type="javascript" ev:event="xforms-value-changed">
  2183. <![CDATA[
  2184. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2185. ]]>
  2186. </script>
  2187. </input>
  2188. <input id="ipt_estmamt" ref="/root/main/gooddet/gooddetlist/estmamt" class="input_default" maxlength="14.2" format="#,###.#" style="left:335px; top:366px; width:110px; height:19px; text-align:right; ">
  2189. <script type="javascript" ev:event="onkeydown">
  2190. <![CDATA[
  2191. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2192. //event.preventDefault();
  2193. ]]>
  2194. </script>
  2195. <script type="javascript" ev:event="xforms-value-changed">
  2196. <![CDATA[
  2197. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2198. ]]>
  2199. </script>
  2200. </input>
  2201. <caption id="caption23" class="cell_1" style="left:334px; top:97px; width:98px; height:23px; vertical-align:middle; ">복지부 분류코드</caption>
  2202. <input id="ipt_welfprt" ref="/root/main/gooddet/gooddetlist/welfprt" class="input_default" style="left:436px; top:97px; width:61px; height:19px; text-align:center; ">
  2203. <script type="javascript" ev:event="onkeydown">
  2204. <![CDATA[
  2205. if(event.keyCode == 9)
  2206. {
  2207. if(event.shiftKey)model.setFocus("ipt_nonusetretdd");
  2208. else model.setFocus("cmb_mngtflag");
  2209. }
  2210. //event.preventDefault();
  2211. ]]>
  2212. </script>
  2213. <script type="javascript" ev:event="xforms-value-changed">
  2214. <![CDATA[
  2215. rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprt", "welfprt," + model.getValue(ipt_welfprt.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprt,"SPRSD00290");
  2216. model.refresh();
  2217. ]]>
  2218. </script>
  2219. </input>
  2220. <caption id="caption28" class="cell_1" style="left:0px; top:432px; width:108px; height:23px; vertical-align:middle; ">제 제 약 여 부</caption>
  2221. <caption id="cap_barcode" class="cell_1" style="left:325px; top:432px; width:98px; height:23px; vertical-align:middle; ">바 코 드</caption>
  2222. <input id="ipt_barcode" style="left:427px; top:435px; width:222px; height:19px; "/>
  2223. <button id="btn_welfprt" class="icon_search" style="left:499px; top:97px; width:16px; height:16px; ">
  2224. <caption/>
  2225. <script type="javascript" ev:event="DOMActivate">
  2226. <![CDATA[
  2227. rszfOpenPopUpListByWndName(ipt_welfprt,"","welfprt,welfprtnm","SPRSD00290");
  2228. model.refresh();
  2229. ]]>
  2230. </script>
  2231. </button>
  2232. <input id="ipt_welfprtnm" ref="/root/main/gooddet/gooddetlist/welfprtnm" class="input_default" style="left:518px; top:97px; width:129px; height:19px; ">
  2233. <script type="javascript" ev:event="xforms-value-changed">
  2234. <![CDATA[
  2235. rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprtnm", "welfprtnm," + model.getValue(ipt_welfprtnm.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprtnm,"SPRSD00290");
  2236. model.refresh();
  2237. ]]>
  2238. </script>
  2239. </input>
  2240. <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:370px; top:585px; width:20px; height:19px; "/>
  2241. <input id="ipt_comnm" ref="/root/main/gooddet/gooddetlist/comnm" class="input_default" style="left:200px; top:170px; width:446px; height:19px; ">
  2242. <script type="javascript" ev:event="onkeydown">
  2243. <![CDATA[
  2244. if(event.keyCode == 9)
  2245. {
  2246. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2247. // else model.setFocus("ipt_plceordnonusedd");
  2248. model.setFocus("ipt_plceordnonusedd");
  2249. }
  2250. //event.preventDefault();
  2251. ]]>
  2252. </script>
  2253. <script type="javascript" ev:event="DOMFocusIn">
  2254. <![CDATA[
  2255. ipt_comnm.visible = false;
  2256. tar_comnm.visible = true;
  2257. model.setFocus("tar_comnm");
  2258. ]]>
  2259. </script>
  2260. </input>
  2261. <select id="chk_proddrugsetflag" ref="/root/main/gooddet/gooddetlist/proddrugsetflag" overflow="visible" appearance="full" cols="1" style="left:110px; top:433px; width:210px; height:21px; border-style:none; ">
  2262. <choices>
  2263. <itemset nodeset="/root/init/proddrugsetflag">
  2264. <label ref="label"/>
  2265. <value ref="value"/>
  2266. </itemset>
  2267. </choices>
  2268. <script type="javascript" ev:event="xforms-value-changed">
  2269. <![CDATA[
  2270. if(chk_proddrugsetflag.value.length == 0) model.setValue(chk_proddrugsetflag.attribute("ref"),"0");
  2271. else model.setValue(chk_proddrugsetflag.attribute("ref"),"1");
  2272. ]]>
  2273. </script>
  2274. </select>
  2275. <input id="ipt_pemtkeepmthd" ref="/root/main/gooddet/gooddetlist/pemtkeepmthd" class="input_default" style="left:110px; top:412px; width:539px; height:19px; text-align:left; ">
  2276. <script type="javascript" ev:event="onkeydown">
  2277. <![CDATA[
  2278. if(event.keyCode == 9)
  2279. {
  2280. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2281. // else model.setFocus("ipt_plceordnonusedd");
  2282. model.setFocus("ipt_plceordnonusedd");
  2283. }
  2284. //event.preventDefault();
  2285. ]]>
  2286. </script>
  2287. </input>
  2288. <caption id="caption4" class="cell_1" style="left:57px; top:388px; width:51px; height:21px; vertical-align:middle; ">실 제</caption>
  2289. <caption id="caption19" class="cell_1" style="left:57px; top:410px; width:51px; height:21px; vertical-align:middle; ">설명서</caption>
  2290. <caption id="caption36" class="cell_1" style="left:0px; top:313px; width:108px; height:23px; text-align:left; vertical-align:middle; ">처 방 환 산</caption>
  2291. <caption id="caption38" class="cell_1" style="left:455px; top:388px; width:67px; height:23px; vertical-align:middle; ">구 입 가</caption>
  2292. <input id="ipt_goodpurccost" ref="/root/main/gooddet/gooddetlist/goodpurccost" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:528px; top:389px; width:121px; height:19px; text-align:right; ">
  2293. <script type="javascript" ev:event="onkeydown">
  2294. <![CDATA[
  2295. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2296. //event.preventDefault();
  2297. ]]>
  2298. </script>
  2299. <script type="javascript" ev:event="xforms-value-changed">
  2300. <![CDATA[
  2301. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2302. ]]>
  2303. </script>
  2304. </input>
  2305. <input id="ipt_prcpqty" ref="/root/main/gooddet/gooddetlist/prcpqty" class="input_default" format="#,###" style="left:434px; top:294px; width:87px; height:19px; text-align:right; ">
  2306. <script type="javascript" ev:event="onkeydown">
  2307. <![CDATA[
  2308. if(event.keyCode == 9)
  2309. {
  2310. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2311. // else model.setFocus("ipt_plceordnonusedd");
  2312. model.setFocus("ipt_plceordnonusedd");
  2313. }
  2314. //event.preventDefault();
  2315. ]]>
  2316. </script>
  2317. </input>
  2318. <input id="ipt_purcqty" ref="/root/main/gooddet/gooddetlist/purcqty" class="input_default" visibility="hidden" maxlength="9" format="#,###" style="left:10px; top:490px; width:24px; height:19px; text-align:right; ">
  2319. <script type="javascript" ev:event="onkeydown">
  2320. <![CDATA[
  2321. if(event.keyCode == 9)
  2322. {
  2323. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2324. else model.setFocus("cmb_deliveunit");
  2325. }
  2326. //event.preventDefault();
  2327. ]]>
  2328. </script>
  2329. </input>
  2330. <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_essential" maxlength="12" _chartype="upper" style="left:326px; top:2px; width:91px; height:19px; ">
  2331. <script type="javascript" ev:event="onkeydown">
  2332. <![CDATA[
  2333. if(event.keyCode == 9)
  2334. {
  2335. if(event.shiftKey)model.setFocus("ipt_goodcd");
  2336. else model.setFocus("ipt_goodhngnm");
  2337. }
  2338. //event.preventDefault();
  2339. ]]>
  2340. </script>
  2341. </input>
  2342. <caption id="caption15" class="cell_1" style="left:252px; top:0px; width:70px; height:23px; vertical-align:middle; ">구 코 드</caption>
  2343. <caption id="caption24" style="left:345px; top:340px; width:10px; height:20px; ">/</caption>
  2344. <output id="opt_drugkind" ref="/root/main/gooddet/gooddetlist/drugkind" visibility="hidden" style="left:445px; top:585px; width:40px; height:19px; "/>
  2345. <line id="line10" class="line_2" style="x1:0px; y1:46px; x2:649px; y2:46px; "/>
  2346. <caption id="caption12" class="cell_1" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">영 문 상 품 명</caption>
  2347. <line id="line20" class="line_2" style="x1:0px; y1:313px; x2:649px; y2:313px; "/>
  2348. <select1 id="cmb_hospdrguunit" ref="/root/main/gooddet/gooddetlist/hospdrguunit" class="combo_essential" appearance="minimal" itemcount="20" style="left:193px; top:291px; width:129px; height:19px; text-align:center; ">
  2349. <choices>
  2350. <itemset nodeset="/root/init/cmb_prcpunit/unitlist">
  2351. <label ref="unitnm"/>
  2352. <value ref="unit"/>
  2353. </itemset>
  2354. </choices>
  2355. <script type="javascript" ev:event="onkeydown">
  2356. <![CDATA[
  2357. if(event.keyCode == 9)
  2358. {
  2359. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2360. else model.setFocus("ipt_exchqty");
  2361. }
  2362. //event.preventDefault();
  2363. ]]>
  2364. </script>
  2365. </select1>
  2366. <caption id="caption14" class="cell_1" style="left:0px; top:289px; width:108px; height:23px; vertical-align:middle; ">병원용량/단위</caption>
  2367. <input id="ipt_hospdrguvol" ref="/root/main/gooddet/gooddetlist/hospdrguvol" class="input_default" format="#,###.##" style="left:110px; top:291px; width:80px; height:19px; text-align:right; ">
  2368. <script type="javascript" ev:event="onkeydown">
  2369. <![CDATA[
  2370. if(event.keyCode == 9)
  2371. {
  2372. // if(event.shiftKey)model.setFocus("rdo_reqflag");
  2373. // else model.setFocus("ipt_plceordnonusedd");
  2374. model.setFocus("ipt_plceordnonusedd");
  2375. }
  2376. //event.preventDefault();
  2377. ]]>
  2378. </script>
  2379. </input>
  2380. <caption id="caption16" class="cell_1" style="left:248px; top:313px; width:88px; height:23px; text-align:left; vertical-align:middle; ">수가계산방법</caption>
  2381. <select1 id="cmb_calcmthdcd" ref="/root/main/gooddet/gooddetlist/calcmthdcd" class="combo_essential" appearance="minimal" style="left:335px; top:315px; width:110px; height:19px; text-align:left; ">
  2382. <choices>
  2383. <itemset nodeset="/root/init/P0133list/P0133">
  2384. <label ref="cdnm"/>
  2385. <value ref="cdid"/>
  2386. </itemset>
  2387. </choices>
  2388. <script type="javascript" ev:event="onkeydown">
  2389. <![CDATA[
  2390. if(event.keyCode == 9)
  2391. {
  2392. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2393. else model.setFocus("ipt_exchqty");
  2394. }
  2395. //event.preventDefault();
  2396. ]]>
  2397. </script>
  2398. </select1>
  2399. <select1 id="cmb_grupsnglflag" ref="/root/main/gooddet/gooddetlist/grupsnglflag" class="combo_essential" appearance="minimal" style="left:528px; top:315px; width:121px; height:19px; text-align:center; ">
  2400. <choices>
  2401. <itemset nodeset="/root/init/P0142list/P0142">
  2402. <label ref="cdnm"/>
  2403. <value ref="cdid"/>
  2404. </itemset>
  2405. </choices>
  2406. <script type="javascript" ev:event="onkeydown">
  2407. <![CDATA[
  2408. if(event.keyCode == 9)
  2409. {
  2410. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2411. else model.setFocus("ipt_exchqty");
  2412. }
  2413. //event.preventDefault();
  2414. ]]>
  2415. </script>
  2416. </select1>
  2417. <caption id="caption18" class="cell_1" style="left:455px; top:313px; width:68px; height:23px; text-align:left; vertical-align:middle; ">그룹여부</caption>
  2418. <caption id="caption9" class="cell_1" style="left:238px; top:456px; width:85px; height:23px; vertical-align:middle; ">변 경 사 유</caption>
  2419. <textarea id="tar_comnm" ref="/root/main/gooddet/gooddetlist/comnm" visibility="hidden" style="left:200px; top:170px; width:446px; height:50px; ">
  2420. <![CDATA[T]]>
  2421. <script type="javascript" ev:event="DOMFocusOut">
  2422. <![CDATA[
  2423. tar_comnm.visible = false;
  2424. ipt_comnm.visible = true;
  2425. ]]>
  2426. </script>
  2427. </textarea>
  2428. <select1 id="cmb_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="combo_default" appearance="minimal" style="left:326px; top:458px; width:323px; height:19px; ">
  2429. <choices>
  2430. <itemset nodeset="/root/init/R0356list/R0356">
  2431. <label ref="cdnm"/>
  2432. <value ref="cdid"/>
  2433. </itemset>
  2434. </choices>
  2435. </select1>
  2436. <select id="checkbox1" ref="/root/main/gooddet/gooddetlist/shadelight" overflow="visible" appearance="full" rows="1" style="left:390px; top:390px; width:50px; height:20px; border-style:none; ">
  2437. <choices>
  2438. <item>
  2439. <label>차광</label>
  2440. <value>Y</value>
  2441. </item>
  2442. </choices>
  2443. </select>
  2444. <input id="input1" ref="/root/main/gooddet/gooddetlist/upperlimit" class="input_s_essential" maxlength="14.2" format="#,###.##" style="left:528px; top:340px; width:121px; height:19px; text-align:right; ">
  2445. <script type="javascript" ev:event="onkeydown">
  2446. <![CDATA[
  2447. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  2448. //event.preventDefault();
  2449. ]]>
  2450. </script>
  2451. <script type="javascript" ev:event="xforms-value-changed">
  2452. <![CDATA[
  2453. model.getValue(ipt_prodcmpycd.attribute("ref"))
  2454. ]]>
  2455. </script>
  2456. </input>
  2457. <caption id="caption33" class="cell_1" style="left:455px; top:338px; width:68px; height:23px; vertical-align:middle; ">상한가</caption>
  2458. <input id="ipt_asisgoodcd" ref="/root/main/gooddet/gooddetlist/asisgoodcd" class="input_s_essential" maxlength="8" _chartype="upper" style="left:546px; top:26px; width:101px; height:19px; "/>
  2459. <caption id="caption59" class="cell_1" style="left:470px; top:24px; width:72px; height:23px; vertical-align:middle; ">연 번</caption>
  2460. <input id="ipt_reprgoodcd" ref="/root/main/gooddet/gooddetlist/reprgoodcd" class="input_s_essential" maxlength="12" _chartype="upper" style="left:357px; top:26px; width:111px; height:19px; "/>
  2461. <caption id="caption32" class="cell_1" style="left:252px; top:24px; width:103px; height:23px; vertical-align:middle; ">약 품 대 표 코 드</caption>
  2462. </group>
  2463. <group id="group4" visibility="visible" style="left:0px; top:12; width:1195px; height:27px; ">
  2464. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  2465. <button id="btn_save" class="btn4_letter2" navindex="24" style="left:1068px; top:3px; width:56px; height:22px; ">
  2466. <caption>저장</caption>
  2467. <script type="javascript" ev:event="DOMActivate">
  2468. <![CDATA[
  2469. if(fCheckSaveData() == false)return;
  2470. //보나에스 저장.
  2471. //fSaveRscdpbnsList();
  2472. //안전재고량 저장
  2473. if(fSaveGoodbaseQtyList() == false) return;
  2474. //무슨 이유로 돌아가는지 모름!! 그래서 주석처리.
  2475. //fSetDataCopy();
  2476. //약품 내용 수정시 적용일자를 수정하지 않았을경우 매세지 창 띄워서 y/n확인
  2477. if(fupdatacheck() == 6)
  2478. {
  2479. return;
  2480. }
  2481. model.refresh();
  2482. model.setValue(grd_gooddetlist.nodeset + "/instcd" ,"031");
  2483. misfSave("TXRSC05402");
  2484. if(model.getValue("/root/tmp/insertinfo/insertflag")=="i"){
  2485. model.removeNodeset("/root/tmp/insertinfo");
  2486. }
  2487. model.setValue("/root/send/goodlist/goodcd",model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
  2488. fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
  2489. ]]>
  2490. </script>
  2491. </button>
  2492. <button id="btn_clear" class="btn4_letter3" navindex="25" style="left:1125px; top:3px; width:68px; height:22px; ">
  2493. <caption>초기화</caption>
  2494. <script type="javascript" ev:event="DOMActivate">
  2495. <![CDATA[
  2496. fInitialize();
  2497. ]]>
  2498. </script>
  2499. </button>
  2500. <button id="btn_scrnmove" class="btn3_letter4" navindex="27" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
  2501. <caption>화면이동</caption>
  2502. </button>
  2503. <button id="btn_prt" class="btn6_letter2" navindex="26" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  2504. <caption>출력</caption>
  2505. </button>
  2506. <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:865px; top:4px; width:100px; height:19px; "/>
  2507. <output id="opt_instcd" ref="/root/send/goodlist/instcd" visibility="hidden" style="left:765px; top:4px; width:100px; height:19px; "/>
  2508. <input id="ipt_goodflag_search" ref="/root/send/goodlist/goodflag" visibility="hidden" style="left:705px; top:5px; width:45px; height:19px; ">
  2509. <script type="javascript" ev:event="xforms-value-changed">
  2510. <![CDATA[
  2511. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "ipt_lrgcd_search", "", "L", "Y", "Y");
  2512. ]]>
  2513. </script>
  2514. </input>
  2515. </group>
  2516. <datagrid id="grd_gooddetlist" nodeset="/root/main/list/gooddet/gooddetlist" visibility="hidden" caption="goodcd^todd^prefromdd^instcd^useyn^fromdd^goodflag^edicd^goodnm^goodhngnm^goodengnm^goodspec^goodmodel^pregoodspec^pregoodmodel^asetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^proddrugsetflag^winacnt^winacntnm^amtacnt^amtacntnm^mainmngtdeptcd^mainmngtdeptnm^mainusedeptcd^stocmngtflag^purcunit^deliveunit^exchqty^minexch^reuseyn^divusenvalqty^calcscorinfoacptstat^calcscorinfoacptdd^edicd^reqdeptcd^reqdeptnm^reqpsn^reqpsnnm^reqflag^reqflagnm^reqmthd^reqprid^prodplce^prodcmpycd^prodcmpynm^maincustlastsuplplce^maincustlastsuplplcenm^suppcustcd^suppcustnm^conflag^fromconterm^toconterm^estmamt^forgncurncyunitcost^curncyunit^goodunitcost^purcflag^allsizeyn^setplceordflag^plceordbase^plceordqtycretflag^plceordnonusedd^addtaxrate^lastpurcdd^nonusetretresn^mngtflag^expnyn^cmt^cntsqty^ddavguseqty^mmavgusescheqty^mmavguseqty^prprtystocpossndayno^tmpreqflag^oldcd^bnscd^cntsunit^specvol^com^goodtype^narcflag^keepmthd^cntrdrugyn^expnyn^limdrugyn^gnrlspcl^specldrug^keeptemp^deliveunit^prcpunit^prcpexchqty^insucost^specunit^pemtkeepmthd^comnm^instcd^welfprt^welfprtnm^purcqty^prcpqty^csrusecmt^goodpurccost^drugkind^grupsnglflag^hospdrguvol^hospdrguunit^orginspplce^calcmthdcd^dupexpgoodcd^dupexpgoodcdold^dupexpgoodcdnm^shadelight^upperlimit^reprgoodcd^asisgoodcd^purccls^mngtcls^caption1" colsep="^" colwidth="80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 100, 100, 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:10px; top:235px; width:515px; height:85px; ">
  2517. <col ref="goodcd" _key="true"/>
  2518. <col ref="todd" _key="true"/>
  2519. <col ref="prefromdd" style="left:204px; top:23px; width:123px; height:23px; "/>
  2520. <col ref="instcd" _key="true"/>
  2521. <col ref="useyn"/>
  2522. <col ref="fromdd"/>
  2523. <col ref="goodflag"/>
  2524. <col ref="edicd"/>
  2525. <col ref="goodnm"/>
  2526. <col ref="goodhngnm"/>
  2527. <col ref="goodengnm"/>
  2528. <col ref="goodspec"/>
  2529. <col ref="goodmodel"/>
  2530. <col ref="pregoodspec"/>
  2531. <col ref="pregoodmodel"/>
  2532. <col ref="asetflag" _key="true"/>
  2533. <col ref="lrgcd" _key="true"/>
  2534. <col ref="lrgnm"/>
  2535. <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
  2536. <col ref="mdlnm"/>
  2537. <col ref="smlcd"/>
  2538. <col ref="smlnm"/>
  2539. <col ref="proddrugsetflag"/>
  2540. <col ref="winacnt" _key="true"/>
  2541. <col ref="winacntnm"/>
  2542. <col ref="amtacnt"/>
  2543. <col ref="amtacntnm"/>
  2544. <col ref="mainmngtdeptcd" _key="true"/>
  2545. <col ref="mainmngtdeptnm"/>
  2546. <col ref="mainusedeptcd"/>
  2547. <col ref="stocmngtflag"/>
  2548. <col ref="purcunit"/>
  2549. <col ref="deliveunit"/>
  2550. <col ref="exchqty"/>
  2551. <col ref="minexch"/>
  2552. <col ref="reuseyn"/>
  2553. <col ref="divusenvalqty"/>
  2554. <col ref="calcscorinfoacptstat"/>
  2555. <col ref="calcscorinfoacptdd"/>
  2556. <col ref="edicd"/>
  2557. <col ref="reqdeptcd"/>
  2558. <col ref="reqdeptnm"/>
  2559. <col ref="reqpsn"/>
  2560. <col ref="reqpsnnm"/>
  2561. <col ref="reqflag"/>
  2562. <col ref="reqflagnm"/>
  2563. <col ref="reqmthd" _key="true"/>
  2564. <col ref="reqprid"/>
  2565. <col ref="prodplce"/>
  2566. <col ref="prodcmpycd"/>
  2567. <col ref="prodcmpynm"/>
  2568. <col ref="maincustlastsuplplce" _key="true"/>
  2569. <col ref="maincustlastsuplplcenm"/>
  2570. <col ref="suppcustcd"/>
  2571. <col ref="suppcustnm"/>
  2572. <col ref="conflag"/>
  2573. <col ref="fromconterm"/>
  2574. <col ref="toconterm"/>
  2575. <col ref="estmamt"/>
  2576. <col ref="forgncurncyunitcost"/>
  2577. <col ref="curncyunit"/>
  2578. <col ref="goodunitcost"/>
  2579. <col ref="purcflag"/>
  2580. <col ref="allsizeyn"/>
  2581. <col ref="setplceordflag"/>
  2582. <col ref="plceordbase"/>
  2583. <col ref="plceordqtycretflag"/>
  2584. <col ref="plceordnonusedd"/>
  2585. <col ref="addtaxrate"/>
  2586. <col ref="lastpurcdd"/>
  2587. <col ref="nonusetretresn"/>
  2588. <col ref="mngtflag"/>
  2589. <col ref="expnyn"/>
  2590. <col ref="cmt"/>
  2591. <col ref="cntsqty"/>
  2592. <col ref="ddavguseqty"/>
  2593. <col ref="mmavgusescheqty"/>
  2594. <col ref="mmavguseqty"/>
  2595. <col ref="prprtystocpossndayno"/>
  2596. <col ref="tmpreqflag"/>
  2597. <col ref="oldcd"/>
  2598. <col ref="bnscd"/>
  2599. <col ref="cntsunit"/>
  2600. <col ref="specvol"/>
  2601. <col ref="com"/>
  2602. <col ref="goodtype"/>
  2603. <col ref="narcflag"/>
  2604. <col ref="keepmthd"/>
  2605. <col ref="cntrdrugyn"/>
  2606. <col ref="expnyn"/>
  2607. <col ref="limdrugyn"/>
  2608. <col ref="gnrlspcl"/>
  2609. <col ref="specldrug"/>
  2610. <col ref="keeptemp"/>
  2611. <col ref="deliveunit"/>
  2612. <col ref="prcpunit"/>
  2613. <col ref="prcpexchqty"/>
  2614. <col ref="insucost"/>
  2615. <col ref="specunit"/>
  2616. <col ref="pemtkeepmthd"/>
  2617. <col ref="comnm"/>
  2618. <col ref="instcd"/>
  2619. <col ref="welfprt"/>
  2620. <col ref="welfprtnm"/>
  2621. <col ref="purcqty"/>
  2622. <col ref="prcpqty"/>
  2623. <col ref="csrusecmt"/>
  2624. <col ref="goodpurccost"/>
  2625. <col ref="drugkind"/>
  2626. <col ref="grupsnglflag"/>
  2627. <col ref="hospdrguvol"/>
  2628. <col ref="hospdrguunit"/>
  2629. <col ref="orginspplce"/>
  2630. <col ref="calcmthdcd"/>
  2631. <col ref="dupexpgoodcd"/>
  2632. <col ref="dupexpgoodcdold"/>
  2633. <col ref="dupexpgoodcdnm"/>
  2634. <col ref="shadelight"/>
  2635. <col ref="upperlimit"/>
  2636. <col ref="reprgoodcd"/>
  2637. <col ref="asisgoodcd"/>
  2638. <col ref="purccls"/>
  2639. <col ref="mngtcls"/>
  2640. <col ref="statsflag"/>
  2641. <col ref="ediunit"/>
  2642. <col ref="ediexchqty"/>
  2643. <col ref="ascitflag"/>
  2644. </datagrid>
  2645. <!--button id="btn_useinstinfo" class="btn2_letter7" style="left:770px; top:167px; width:97px; height:19px; ">
  2646. <caption>타기관내용복사</caption>
  2647. <script type="javascript" ev:event="DOMActivate">
  2648. <![CDATA[
  2649. //fInstGoodCdCopy();
  2650. fInsertGoodDataListCopy();
  2651. ]]>
  2652. </script>
  2653. </button-->
  2654. <datagrid id="grd_gooddetgoodexcellist" nodeset="/root/main/list/goodexcel/gooddetgoodexcellist" visibility="hidden" autoresize="true" caption="기관명^적용일자^구코드^약품코드^보나에스 코드^한글상품명^일반/전문^복지부 분류코드^복지부 분류명^제조회사코드^제조회사명^EDI 코드^판매회사코드^판매회사명^주거래처코드^주거래처명^성분^성분^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^자산구분^입고계정코드^입고계정^비용계정코드^비용계정^함량^함량단위^규격^규격단위^처방수량^처방단위^처방환산^낱개단위^환산^포장단위^보험단가^처방단가^구입단가^구입가^보관법 실 제^보관법 설명서^제제약여부^불용일자^불용사유^비고^관리부서코드^관리부서명^집계구분^집계구분명^재고관리기준^재고관리기준명^청구방법^청구방법명^임의청구여부^청구주기^청구주기명^중복제외대표코드^중복제외대표명칭^차광구분^상한가" colsep="^" colwidth="118, 95, 61, 72, 86, 118, 78, 102, 135, 92, 94, 61, 124, 114, 90, 97, 101, 68, 123, 214, 214, 199, 184, 123, 123, 123, 184, 153, 184, 245, 245, 123, 107, 184, 184, 123, 123, 123, 123, 153, 92, 184, 153, 214, 123, 184, 153, 92, 123, 123, 123, 123, 100, 122, 100, 100, 100, 100, 104, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:10px; top:350px; width:515px; height:95px; ">
  2655. <col ref="instnm"/>
  2656. <col ref="fromdd" style="left:400px; top:23px; width:107px; height:48px; "/>
  2657. <col ref="oldcd"/>
  2658. <col ref="goodcd" _key="true"/>
  2659. <col ref="bnscd"/>
  2660. <col ref="goodnm"/>
  2661. <col ref="gnrlspcl"/>
  2662. <col ref="welfprt"/>
  2663. <col ref="welfprtnm"/>
  2664. <col ref="prodcmpycd"/>
  2665. <col ref="prodcmpynm"/>
  2666. <col ref="edicd"/>
  2667. <col ref="suppcustcd"/>
  2668. <col ref="suppcustnm"/>
  2669. <col ref="maincustlastsuplplce" _key="true"/>
  2670. <col ref="maincustlastsuplplcenm"/>
  2671. <col ref="com"/>
  2672. <col ref="comnm"/>
  2673. <col ref="lrgcd" _key="true"/>
  2674. <col ref="lrgnm"/>
  2675. <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
  2676. <col ref="mdlnm"/>
  2677. <col ref="smlcd"/>
  2678. <col ref="smlnm"/>
  2679. <col ref="asetflag" _key="true"/>
  2680. <col ref="winacnt" _key="true"/>
  2681. <col ref="winacntnm"/>
  2682. <col ref="amtacnt"/>
  2683. <col ref="amtacntnm"/>
  2684. <col ref="cntsqty"/>
  2685. <col ref="cntsunit"/>
  2686. <col ref="specvol"/>
  2687. <col ref="specunit"/>
  2688. <col ref="prcpqty"/>
  2689. <col ref="prcpunit"/>
  2690. <col ref="prcpexchqty"/>
  2691. <col ref="exchqty"/>
  2692. <col ref="deliveunit"/>
  2693. <col ref="purcunit"/>
  2694. <col ref="insucost"/>
  2695. <col ref="estmamt"/>
  2696. <col ref="goodunitcost"/>
  2697. <col ref="goodcost"/>
  2698. <col ref="keepmthd"/>
  2699. <col ref="pemtkeepmthd"/>
  2700. <col ref="proddrugsetflag"/>
  2701. <col ref="todd" _key="true"/>
  2702. <col ref="nonusetretresn"/>
  2703. <col ref="cmt"/>
  2704. <col ref="mainmngtdeptcd" _key="true"/>
  2705. <col ref="mainmngtdeptnm"/>
  2706. <col ref="reqflag"/>
  2707. <col ref="reqflagnm"/>
  2708. <col ref="stocmngtflag"/>
  2709. <col ref="stocmngtflagnm"/>
  2710. <col ref="reqmthd"/>
  2711. <col ref="reqmthdnm"/>
  2712. <col ref="tmpreqflag"/>
  2713. <col ref="reqprid"/>
  2714. <col ref="reqpridnm"/>
  2715. <col ref="dupexpgoodcd"/>
  2716. <col ref="dupexpgoodcdnm"/>
  2717. <col ref="shadelight"/>
  2718. <col ref="upperlimit"/>
  2719. </datagrid>
  2720. <group id="group2" visibility="hidden" style="left:645px; top:165px; width:545px; height:100px; ">
  2721. <!-- <group id="group2" visibility="hidden" style="left:100px; top:165px; width:545px; height:100px; ">-->
  2722. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:545px; height:100px; border-color:#ff9900; border-width:2px; "/>
  2723. <caption id="cap_delyn" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">삭제여부 :</caption>
  2724. <caption id="cap_contractyn" class="search_name" style="left:15px; top:40px; width:86px; height:17px; ">계약여부 :</caption>
  2725. <caption id="cap_exfromdd" class="search_name" style="left:15px; top:65px; width:86px; height:17px; ">적용일자 :</caption>
  2726. <select1 id="rdo_delyn" ref="/root/send/goodlist/delyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:105px; top:15px; width:275px; height:20px; border-style:none; ">
  2727. <choices>
  2728. <item>
  2729. <label>삭제품목제외</label>
  2730. <value>N</value>
  2731. </item>
  2732. <item>
  2733. <label>삭제품목만</label>
  2734. <value>Y</value>
  2735. </item>
  2736. <item>
  2737. <label>전체품목</label>
  2738. <value/>
  2739. </item>
  2740. </choices>
  2741. <script type="javascript" ev:event="xforms-value-changed">
  2742. <![CDATA[
  2743. if(rdo_delyn.value == 'Y')
  2744. {
  2745. cap_exfromdd.value = '삭제일자 :';
  2746. }else{
  2747. cap_exfromdd.value = '적용일자 :';
  2748. }
  2749. ]]>
  2750. </script>
  2751. </select1>
  2752. <select1 id="rdo_contractyn" ref="/root/send/goodlist/contractyn" appearance="full" cellspacing="58" cols="2" overflow="visible" style="left:105px; top:40px; width:225px; height:20px; border-style:none; ">
  2753. <choices>
  2754. <item>
  2755. <label>전체</label>
  2756. <value/>
  2757. </item>
  2758. <item>
  2759. <label>계약품목</label>
  2760. <value>Y</value>
  2761. </item>
  2762. </choices>
  2763. </select1>
  2764. <input id="ipt_exfromdd" ref="/root/send/goodlist/exfromdd" class="input_s_essential" inputtype="date" style="left:175px; top:65px; width:110px; height:19px; "/>
  2765. <input id="ipt_extodd" ref="/root/send/goodlist/extodd" class="input_s_essential" inputtype="date" style="left:307px; top:65px; width:110px; height:19px; "/>
  2766. <caption id="caption" style="left:290px; top:65px; width:15px; height:20px; ">~</caption>
  2767. <button id="btn_excelsave" class="btn5_letter5" navindex="29" style="left:460px; top:15px; width:75px; height:19px; ">
  2768. <caption>Excel 저장</caption>
  2769. <script type="javascript" ev:event="DOMActivate">
  2770. <![CDATA[
  2771. if(fCheckRetrieveData() == false)return;
  2772. var filenm = "약품코드List";
  2773. var localfile = window.fileDialog("save", ",", false, filenm, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  2774. if (localfile != "") {
  2775. var param = "&instcd=" + model.getValue("/root/send/goodlist/instcd");
  2776. param += "&delyn=" + model.getValue("/root/send/goodlist/delyn");
  2777. param += "&contractyn=" + model.getValue("/root/send/goodlist/contractyn");
  2778. param += "&exfromdd=" + model.getValue("/root/send/goodlist/exfromdd");
  2779. param += "&extodd=" + model.getValue("/root/send/goodlist/extodd");
  2780. param += "&excurrenttime=" + model.getValue("/root/send/goodlist/excurrenttime");
  2781. model.download(getActionURL("TRRSC05404") + param, localfile, true);
  2782. var rtn = messageBox("파일을", "Q004");
  2783. if( rtn == 6 ) {
  2784. window.exec(localfile);
  2785. }
  2786. }
  2787. ]]>
  2788. </script>
  2789. </button>
  2790. <input id="ipt_excurrenttime" ref="/root/send/goodlist/excurrenttime" visibility="hidden" style="left:340px; top:40px; width:100px; height:19px; "/>
  2791. <button id="btn_close" class="btn4_letter2" navindex="31" style="left:480px; top:70px; width:56px; height:22px; ">
  2792. <caption>닫기</caption>
  2793. <script type="javascript" ev:event="DOMActivate">
  2794. <![CDATA[
  2795. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  2796. model.setValue(ipt_exfromdd.attribute("ref"), reqdate.getAddDate(-1, "M").getDateFormat("YYYYMMDD") );
  2797. model.setValue(ipt_extodd.attribute("ref"), getCurrentDate());
  2798. model.setValue(ipt_excurrenttime.attribute("ref"), getCurrentDate());
  2799. cap_exfromdd.value = "적용일자 :";
  2800. rdo_delyn.value = '';
  2801. rdo_contractyn.value = '';
  2802. group3.disabled = false;
  2803. grp_detail.disabled = false;
  2804. group2.visible = false;
  2805. group2.disabled = true;
  2806. model.refresh();
  2807. ]]>
  2808. </script>
  2809. </button>
  2810. <select id="chkdd" ref="/root/send/goodlist/chkdd" overflow="visible" appearance="full" rows="1" style="left:105px; top:65px; width:65px; height:20px; border-style:none; ">
  2811. <choices>
  2812. <item>
  2813. <label>전체</label>
  2814. <value>Y</value>
  2815. </item>
  2816. </choices>
  2817. <script type="javascript" ev:event="xforms-value-changed">
  2818. <![CDATA[
  2819. if ( chkdd.value == "Y" )
  2820. {
  2821. model.setValue(ipt_exfromdd.attribute("ref"), '19000101' );
  2822. model.setValue(ipt_extodd.attribute("ref"), '99991231');
  2823. ipt_exfromdd.disabled = true;
  2824. ipt_extodd.disabled = true;
  2825. }
  2826. else
  2827. {
  2828. ipt_exfromdd.disabled = false;
  2829. ipt_extodd.disabled = false;
  2830. }
  2831. ]]>
  2832. </script>
  2833. </select>
  2834. </group>
  2835. <group id="grp_spread" visibility="hidden" style="left:0px; top:138px; width:1080px; height:75px; ">
  2836. <shape id="roundrect11" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1078px; height:73px; "/>
  2837. <output id="opt_welfprtnm_s" ref="/root/send/goodlist/spread/welfprtnm" class="output_fix" editable="false" style="left:617px; top:7px; width:129px; height:19px; "/>
  2838. <input id="ipt_welfprt_s" ref="/root/send/goodlist/spread/welfprt" class="input_default" navindex="16" style="left:535px; top:6px; width:61px; height:19px; text-align:center; ">
  2839. <script type="javascript" ev:event="xforms-value-changed">
  2840. <![CDATA[
  2841. if (ipt_welfprt_s.value == "") {
  2842. opt_welfprtnm_s.value = "";
  2843. } else {
  2844. rszfValidationCheck("TRRSD00291", "welfprtlist", "refcond,welfprt", "welfprt," + model.getValue(ipt_welfprt_s.attribute("ref")), "","welfprt,welfprtnm" ,ipt_welfprt_s,"SPRSD00290");
  2845. model.refresh();
  2846. }
  2847. ]]>
  2848. </script>
  2849. </input>
  2850. <button id="button1" class="icon_search" navindex="15" style="left:178px; top:6px; width:16px; height:16px; ">
  2851. <caption/>
  2852. <script type="javascript" ev:event="DOMActivate">
  2853. <![CDATA[
  2854. rszfOpenPopUpListByWndName(ipt_prodcmpycd_s,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  2855. model.refresh();
  2856. ]]>
  2857. </script>
  2858. </button>
  2859. <caption id="caption41" class="search_name" style="left:815px; top:5px; width:110px; height:23px; vertical-align:middle; ">통 계 구 분 :</caption>
  2860. <caption id="caption44" class="search_name" style="left:20px; top:6px; width:100px; height:17px; vertical-align:middle; ">제조회사 :</caption>
  2861. <select1 id="cmb_statsflag_s" ref="/root/send/goodlist/spread/statsflag" navindex="18" appearance="minimal" style="left:925px; top:5px; width:148px; height:19px; ">
  2862. <choices>
  2863. <itemset>
  2864. <label/>
  2865. <value/>
  2866. </itemset>
  2867. </choices>
  2868. <!--
  2869. <choices>
  2870. <itemset nodeset="/root/init/cmb_statsflag_s/comcodelist">
  2871. <label ref="cdid"/>
  2872. <value ref="cdnm"/>
  2873. </itemset>
  2874. </choices>
  2875. -->
  2876. </select1>
  2877. <caption id="caption45" class="search_name" style="left:20px; top:40px; width:105px; height:17px; vertical-align:middle; ">구입분류 :</caption>
  2878. <select1 id="cmb_purccls_s" ref="/root/send/goodlist/spread/purccls" navindex="19" appearance="minimal" style="left:114px; top:40px; width:115px; height:19px; ">
  2879. <choices>
  2880. <itemset>
  2881. <label/>
  2882. <value/>
  2883. </itemset>
  2884. </choices>
  2885. <!--
  2886. <choices>
  2887. <itemset nodeset="/root/init/cmb_purccls_s/comcodelist">
  2888. <label ref="cdid"/>
  2889. <value ref="cdnm"/>
  2890. </itemset>
  2891. </choices>
  2892. -->
  2893. <script type="javascript" ev:event="onkeydown">
  2894. <![CDATA[
  2895. if(event.keyCode == 9)
  2896. {
  2897. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2898. else model.setFocus("ipt_exchqty");
  2899. }
  2900. //event.preventDefault();
  2901. ]]>
  2902. </script>
  2903. </select1>
  2904. <caption id="caption46" class="search_name" style="left:400px; top:6px; width:130px; height:17px; vertical-align:middle; ">복지부 분류코드 :</caption>
  2905. <select1 id="cmb_conflag_s" ref="/root/send/goodlist/spread/conflag" navindex="20" appearance="minimal" style="left:375px; top:40px; width:115px; height:19px; ">
  2906. <choices>
  2907. <itemset>
  2908. <label/>
  2909. <value/>
  2910. </itemset>
  2911. </choices>
  2912. <!--
  2913. <choices>
  2914. <itemset nodeset="/root/init/cmb_purcflag_s/comcodelist">
  2915. <label ref="cdid"/>
  2916. <value ref="cdnm"/>
  2917. </itemset>
  2918. </choices>
  2919. <script type="javascript" ev:event="onkeydown">
  2920. <![CDATA[
  2921. if(event.keyCode == 9)
  2922. {
  2923. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2924. else model.setFocus("ipt_exchqty");
  2925. }
  2926. //event.preventDefault();
  2927. ]]>
  2928. </script>
  2929. -->
  2930. </select1>
  2931. <caption id="caption47" class="search_name" style="left:279px; top:40px; width:100px; height:17px; vertical-align:middle; ">계약구분 :</caption>
  2932. <select1 id="cmb_gnrlspcl_s" ref="/root/send/goodlist/spread/gnrlspcl" navindex="21" appearance="minimal" style="left:640px; top:40px; width:115px; height:19px; ">
  2933. <choices>
  2934. <itemset>
  2935. <label/>
  2936. <value/>
  2937. </itemset>
  2938. </choices>
  2939. <!--
  2940. <choices>
  2941. <itemset nodeset="/root/init/cmb_gnrlspcl_s/comcodelist">
  2942. <label ref="cdid"/>
  2943. <value ref="cdnm"/>
  2944. </itemset>
  2945. </choices>
  2946. <script type="javascript" ev:event="onkeydown">
  2947. <![CDATA[
  2948. if(event.keyCode == 9)
  2949. {
  2950. if(event.shiftKey)model.setFocus("cmb_purcunit");
  2951. else model.setFocus("ipt_exchqty");
  2952. }
  2953. //event.preventDefault();
  2954. ]]>
  2955. </script>
  2956. -->
  2957. </select1>
  2958. <caption id="caption51" class="search_name" style="left:546px; top:40px; width:100px; height:17px; vertical-align:middle; ">일반/전문 :</caption>
  2959. <select1 id="cmb_ascitflag_s" ref="/root/send/goodlist/spread/ascitflag" navindex="22" appearance="minimal" style="left:958px; top:40px; width:115px; height:19px; ">
  2960. <choices>
  2961. <item>
  2962. <label>전체</label>
  2963. <value/>
  2964. </item>
  2965. <item>
  2966. <label>단수</label>
  2967. <value>01</value>
  2968. </item>
  2969. <item>
  2970. <label>복수</label>
  2971. <value>02</value>
  2972. </item>
  2973. </choices>
  2974. </select1>
  2975. <caption id="caption54" class="search_name" style="left:846px; top:40px; width:120px; height:17px; vertical-align:middle; ">단/복수 여부 :</caption>
  2976. <button id="button5" class="icon_search" navindex="17" style="left:598px; top:6px; width:16px; height:16px; ">
  2977. <caption/>
  2978. <script type="javascript" ev:event="DOMActivate">
  2979. <![CDATA[
  2980. rszfOpenPopUpListByWndName(ipt_welfprt_s,"","welfprt,welfprtnm","SPRSD00290");
  2981. model.refresh();
  2982. ]]>
  2983. </script>
  2984. </button>
  2985. <input id="ipt_prodcmpycd_s" ref="/root/send/goodlist/spread/prodcmpycd" class="input_default" navindex="14" style="left:114px; top:6px; width:60px; height:19px; ">
  2986. <script type="javascript" ev:event="xforms-value-changed">
  2987. <![CDATA[
  2988. if ( ipt_prodcmpycd_s.value == "" ) {
  2989. opt_prodcmpynm_s.value = "";
  2990. } else {
  2991. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd_s.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd_s,"SPRSD00160","","");
  2992. }
  2993. model.refresh();
  2994. ]]>
  2995. </script>
  2996. <script type="javascript" ev:event="onkeydown">
  2997. <![CDATA[
  2998. if(event.keyCode == 9)
  2999. {
  3000. // if(event.shiftKey)model.setFocus("cmb_prodplce");
  3001. // else model.setFocus("ipt_goodmodel");
  3002. }
  3003. ]]>
  3004. </script>
  3005. </input>
  3006. <output id="opt_prodcmpynm_s" ref="/root/send/goodlist/spread/prodcmpynm" class="output_fix" appearance="output" style="left:197px; top:6px; width:129px; height:19px; "/>
  3007. <script type="javascript" ev:event="ondblclick">
  3008. <![CDATA[
  3009. btn_fold.dispatch("onclick");
  3010. ]]>
  3011. </script>
  3012. </group>
  3013. </xhtml:body>
  3014. </xhtml:html>