SMRSC05400_물품코드등록(약국).xrw 124 KB

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