SMRSC05600_물품코드등록(영양).xrw 80 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>물품코드등록</xhtml:title>
  6. <model id="model1">
  7. <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. </list>
  20. <costhistinfolist>
  21. <appdd/>
  22. <rctpdisburseunitcost/>
  23. <medcarecalcscor/>
  24. <suplplcecd/>
  25. </costhistinfolist>
  26. <item/>
  27. <gooddet>
  28. <gooddetlist/>
  29. </gooddet>
  30. <goodcopy>
  31. <goodlist/>
  32. </goodcopy>
  33. <newgoodcd>
  34. <goodcdno/>
  35. </newgoodcd>
  36. <checkgood>
  37. <checkgoodcd/>
  38. </checkgood>
  39. </main>
  40. <send>
  41. <save>
  42. <goodlist/>
  43. <gooddetlist/>
  44. <setautoins>
  45. <setyn>N</setyn>
  46. </setautoins>
  47. </save>
  48. <goodlist>
  49. <goodflag/>
  50. <goodnm/>
  51. <lrgcd/>
  52. <instcd/>
  53. <edicd/>
  54. <goodcd/>
  55. <mdlcd/>
  56. <spec/>
  57. <prodcmpy/>
  58. <smlcd/>
  59. <model/>
  60. <mdlnm/>
  61. <lrgnm/>
  62. <smlnm/>
  63. <prodcmpynm/>
  64. <instflag/>
  65. <oldcd/>
  66. </goodlist>
  67. <gooddetlist>
  68. <goodcd/>
  69. <fromdd/>
  70. <useyn/>
  71. </gooddetlist>
  72. <goodcopy>
  73. <goodflag/>
  74. <lrgcd/>
  75. <mdlcd/>
  76. </goodcopy>
  77. <snewgoodcd>
  78. <lrgcd/>
  79. <mdlcd/>
  80. </snewgoodcd>
  81. <scheckgood>
  82. <scheckgoodcd/>
  83. </scheckgood>
  84. <sendmasterexcel/>
  85. <attach>
  86. <file/>
  87. <instcd/>
  88. </attach>
  89. </send>
  90. <init>
  91. <instflag>
  92. <label>기관</label>
  93. <value>Y</value>
  94. <label>전체</label>
  95. <value/>
  96. </instflag>
  97. <goodflag/>
  98. <deliveunit/>
  99. <reqprid/>
  100. <mngtflag/>
  101. <purcflag/>
  102. <instcd/>
  103. <proddrugsetflag/>
  104. <instnm/>
  105. <allsizeyn>
  106. <label>예</label>
  107. <value>Y</value>
  108. <label>아니오</label>
  109. <value>N</value>
  110. </allsizeyn>
  111. <tmpreqflag>
  112. <label>청구가능</label>
  113. <value>Y</value>
  114. <label>청구불가능</label>
  115. <value>N</value>
  116. </tmpreqflag>
  117. <radio2>
  118. <label>신청유</label>
  119. <value>Y</value>
  120. <label>신청무</label>
  121. <value>N</value>
  122. </radio2>
  123. <expnyn>
  124. <label>고가</label>
  125. <value>Y</value>
  126. <label>고가아님</label>
  127. <value>N</value>
  128. </expnyn>
  129. <copydata>
  130. <mastexcel>
  131. <goodnm/>
  132. <lrgcd/>
  133. <lrgnm/>
  134. <mdlcd/>
  135. <mdlnm/>
  136. <winacnt/>
  137. <amtacnt/>
  138. <goodunitcost/>
  139. <addtaxrate/>
  140. <purcunit/>
  141. <deliveunit/>
  142. <exchqty/>
  143. <maincustlastsuplplce/>
  144. <maincustlastsuplplcenm/>
  145. <suppcustcd/>
  146. <suppcustnm/>
  147. <mainmngtdeptcd/>
  148. <mainmngtdeptname/>
  149. <bnscd/>
  150. <orgloc/>
  151. <cmt/>
  152. </mastexcel>
  153. </copydata>
  154. </init>
  155. <hidden/>
  156. <temp/>
  157. </root>
  158. </instance>
  159. <script type="javascript" ev:event="xforms-ready">
  160. <![CDATA[
  161. //화면 Control을 초기화한다
  162. fCheckAuth();
  163. fInitialize();
  164. btn_excelload.visible = false;
  165. btn_savemaster.visible = false;
  166. ]]>
  167. </script>
  168. <submission id="TRRSC05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
  169. <submission id="TXRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  170. <submission id="TRRSC05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddetlist" resultref="/root/main/list/gooddet"/>
  171. <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
  172. <submission id="TRRSC05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/snewgoodcd" resultref="/root/main/newgoodcd"/>
  173. <submission id="TRRSC05602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/scheckgood" resultref="/root/main/checkgood"/>
  174. <submission id="TXRSC05307" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/hidden/temp1"/>
  175. </model>
  176. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  177. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  178. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  179. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  180. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  181. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  182. <script type="javascript">
  183. <![CDATA[
  184. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  185. function insertTomaster()
  186. {
  187. grd_mastexcel.deleteRow(1);
  188. grd_mastexcel.refresh();
  189. //grd_mastexcel.rowStatus
  190. for(var currow = grd_mastexcel.fixedRows ; currow < grd_mastexcel.rows ; currow++)
  191. {
  192. grd_mastexcel.addStatus(currow,"insert");
  193. }
  194. }
  195. function fInitialize() {
  196. misfGridInit(grd_goodlist);
  197. misfGridInit(grd_gooddetlist);
  198. misfGridInit(grd_costhistinfo);
  199. misfGridInit(grd_instinfo);
  200. misfGridInit(grd_mastexcel);
  201. misfGridInit(grd_attach);
  202. misfGridIUD(grd_gooddetlist, "A");
  203. model.resetInstanceNode("/root/send");
  204. model.setValue("/root/send/save/setautoins/setyn","N");
  205. // rszfUserGoodFlagList(ipt_goodflag,getUserInfo("userid"));
  206. /*
  207. misfComboComCdListMulti(
  208. "R0092,
  209. R0032,
  210. R0039,
  211. R0043,
  212. R0069,
  213. R0068,
  214. R0047,
  215. R0106,
  216. R0093,
  217. R0095,
  218. R0111,
  219. R0107,
  220. R0032",
  221. "cmb_reqmthd,
  222. cmb_purcunit,
  223. cmb_deliveunit,
  224. cmb_asetflag,
  225. cmb_stocmngtflag,
  226. cmb_proddrugsetflag,
  227. cmb_curncyunit,
  228. cmb_plceordqtycretflag,
  229. cmb_reqprid,
  230. cmb_conflag,
  231. cmb_purcflag,
  232. cmb_plceordbase,
  233. cmb_cntsunit");
  234. */
  235. // 2012.12.04 경북대 창고구분 추가
  236. misfComboComCdListMulti("R0043,R0069,R0106,R0093,R0107,R0032,R0032,030M0001,030R0003","cmb_asetflag,cmb_stocmngtflag,cmb_plceordqtycretflag,cmb_reqprid,cmb_plceordbase,cmb_cntsunit,cmb_specunit,cmb_wareflag,cmb_purccls");
  237. rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y");
  238. //기관코드 읽어오는 부분 넣기
  239. var instcd = getUserInfo("dutplceinstcd");
  240. var instnm = getUserInfo("dutplceinstnm");
  241. if(instcd.length > 0)model.setValue(opt_instcd.attribute("ref"), instcd);
  242. if(instnm.length > 0)model.setValue(opt_instnm.attribute("ref"), instnm);
  243. //물품구분일 경우 첫번째 index 자동 설정
  244. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  245. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  246. misfMsterDetailSet(grd_goodlist,null, "TRRSC05301" ,"Y");
  247. misfMsterDetailSet(grd_gooddetlist,grd_goodlist, "TRRSC05302" ,"Y");
  248. misfMsterDetailSet(grd_costhistinfo,grd_goodlist, "TRRSC05302" ,"N");
  249. misfMsterDetailSet(grd_instinfo,grd_goodlist, "TRRSC05302" ,"N");
  250. //hidden default value
  251. /*<!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF) -->*/
  252. model.setValue(ipt_goodflag.attribute("ref"), 'SF');
  253. model.setValue(ipt_goodflag_search.attribute("ref"), 'SF');
  254. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "Y", "Y");
  255. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  256. /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
  257. rszfComboUnitList ( cmb_purcunit, model.getValue(opt_instcd.attribute("ref")), model.getValue(ipt_goodflag_search.attribute("ref") ) );
  258. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //규격단위
  259. // 물품구분별 권한
  260. fSetGoodFlagAuth();
  261. //rbo_instflag.select(1);
  262. model.setValue(rbo_instflag.attribute("ref"),"Y");
  263. grd_goodlist.explorerbar = "sortshow";
  264. model.setFocus("ipt_goodcd");
  265. model.refresh();
  266. }
  267. // 물품구분별 권한체크.
  268. function fSetGoodFlagAuth()
  269. {
  270. //btn_save.disabled=true; //이현민 수정test
  271. rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
  272. if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;//이현민
  273. }
  274. // 화면 전체 조회
  275. function fRetrGoodList(nodecopy) {
  276. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  277. misfMsterDetailRetrieve();
  278. //fAfterRetrGoodList();
  279. if(nodecopy == true)fAfterRetrGoodList();
  280. else if( nodecopy == false && grd_gooddetlist.rows - grd_gooddetlist.fixedRows== 0 )btn_insert.dispatch("DOMActivate");
  281. }
  282. function fCheckSaveData()
  283. {
  284. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  285. {
  286. messageBox("물품코드는" ,"I003");
  287. model.setFocus("ipt_goodcd");
  288. return false;
  289. }
  290. if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
  291. {
  292. messageBox("물품코드명은" ,"I003");
  293. model.setFocus("ipt_goodnm");
  294. return false;
  295. }
  296. if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 )
  297. {
  298. messageBox("대분류코드는" ,"I003");
  299. model.setFocus("cmb_lrgcd");
  300. return false;
  301. }
  302. if(model.getValue(ipt_winacnt.attribute("ref")).length== 0 )
  303. {
  304. messageBox("비용계정은" ,"I003");
  305. model.setFocus("ipt_winacnt");
  306. return false;
  307. }
  308. if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length== 0 )
  309. {
  310. messageBox("주관리부서는" ,"I003");
  311. model.setFocus("ipt_mngtdeptcd");
  312. return false;
  313. }
  314. //hbh
  315. // if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
  316. // {
  317. // messageBox("청구방법은" ,"I003");
  318. // model.setFocus("cmb_reqmthd");
  319. // return false;
  320. // }
  321. if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
  322. {
  323. messageBox("구매단위은" ,"I003");
  324. model.setFocus("cmb_purcunit");
  325. return false;
  326. }
  327. if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
  328. {
  329. messageBox("환산수량은" ,"I003");
  330. model.setFocus("ipt_exchqty");
  331. return false;
  332. }
  333. if(model.getValue(cmb_deliveunit.attribute("ref")).length== 0 )
  334. {
  335. messageBox("불출단위는" ,"I003");
  336. model.setFocus("cmb_deliveunit");
  337. return false;
  338. }
  339. if(model.getValue(cmb_stocmngtflag.attribute("ref")).length== 0 )
  340. {
  341. messageBox("재고관리기준은" ,"I003");
  342. model.setFocus("cmb_stocmngtflag");
  343. return false;
  344. }
  345. if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
  346. {
  347. messageBox("자산구분은" ,"I003");
  348. model.setFocus("cmb_asetflag");
  349. return false;
  350. }
  351. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(ipt_nonusetretresn.attribute("ref")) == 0)
  352. {
  353. messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
  354. model.setFocus("ipt_nonusetretresn");
  355. return false;
  356. }
  357. // if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  358. // {
  359. // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  360. // model.setFocus("ipt_fromconterm");
  361. // return false;
  362. //
  363. // }
  364. //
  365. // if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  366. // {
  367. // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  368. // model.setFocus("ipt_toconterm");
  369. // return false;
  370. // }
  371. return true;
  372. }
  373. function fCheckSaveMasterData()
  374. {
  375. for(var currow = grd_mastexcel.fixedRows ; currow < grd_mastexcel.rows ; currow++)
  376. {
  377. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("goodnm")).length == 0)
  378. {
  379. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 물품코드를 " ,"C001");
  380. grd_mastexcel.row = currow ;
  381. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  382. return false;
  383. }
  384. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("lrgcd")).length == 0)
  385. {
  386. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 대분류코드를 " ,"C001");
  387. grd_mastexcel.row = currow ;
  388. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  389. return false;
  390. }
  391. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("mdlcd")).length == 0)
  392. {
  393. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 중분류코드를 " ,"C001");
  394. grd_mastexcel.row = currow ;
  395. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  396. return false;
  397. }
  398. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("goodunitcost")).length == 0)
  399. {
  400. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 단가를 " ,"C001");
  401. grd_mastexcel.row = currow ;
  402. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  403. return false;
  404. }
  405. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("purcunit")).length == 0)
  406. {
  407. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 포장단위를 " ,"C001");
  408. grd_mastexcel.row = currow ;
  409. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  410. return false;
  411. }
  412. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("deliveunit")).length == 0)
  413. {
  414. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 불출단위를 " ,"C001");
  415. grd_mastexcel.row = currow ;
  416. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  417. return false;
  418. }
  419. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("exchqty")).length == 0)
  420. {
  421. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 환산수량을 " ,"C001");
  422. grd_mastexcel.row = currow ;
  423. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  424. return false;
  425. }
  426. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("maincustlastsuplplce")).length == 0)
  427. {
  428. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 주거래처코드를 " ,"C001");
  429. grd_mastexcel.row = currow ;
  430. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  431. return false;
  432. }
  433. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("mainmngtdeptcd")).length == 0)
  434. {
  435. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 관리부서코드를 " ,"C001");
  436. grd_mastexcel.row = currow ;
  437. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  438. return false;
  439. }
  440. }
  441. return true;
  442. }
  443. function fAfterRetrGoodList()
  444. {
  445. if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
  446. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  447. cmb_lrgcd.dispatch("xforms-value-changed");
  448. cmb_mdlcd.dispatch("xforms-value-changed");
  449. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
  450. else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
  451. grp_detail.refresh();
  452. grp_etcgood.refresh();
  453. grd_gooddetlist.row = 1;
  454. model.setFocus("ipt_goodcd");
  455. }
  456. function fCheckAuth() {
  457. btn_search.disabled = !checkAuth("R") ;
  458. btn_save.disabled = !checkAuth("X") ; //이현민
  459. //btn_prt.disabled = !checkAuth("P") ;
  460. }
  461. function fSetDataCopy(){
  462. if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
  463. misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
  464. grp_detail.refresh();
  465. }
  466. function fDefaultSetting()
  467. {
  468. model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
  469. model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
  470. model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
  471. model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(cmb_lrgcd_search.attribute("ref")));
  472. model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(cmb_mdlcd_search.attribute("ref")));
  473. model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(cmb_smlcd_search.attribute("ref")));
  474. //model.setValue(grd_gooddetlist.nodeset + "/prodcmpycd" , model.getValue(ipt_prodcmpy_search.attribute("ref")));
  475. //model.setValue(grd_gooddetlist.nodeset + "/prodcmpynm" , model.getValue(opt_prodcmpynm_search.attribute("ref")));
  476. // hbh 추가
  477. model.setValue(grd_gooddetlist.nodeset + "/instcd" ,getUserInfo("dutplceinstcd"));
  478. model.setValue(grd_gooddetlist.nodeset + "/useyn" ,'Y');
  479. model.setValue(grd_gooddetlist.nodeset + "/reqmthd" ,'3'); // 1: 처방집계 2: 정량보충 3:일반청구
  480. model.setValue(grd_gooddetlist.nodeset + "/purcflag" ,'1');
  481. model.setValue(grd_gooddetlist.nodeset + "/reqflag" ,'J'); // 청구 방법
  482. model.setValue(grd_gooddetlist.nodeset + "/reqprid" ,'1'); // 청구주기
  483. model.setValue(grd_gooddetlist.nodeset + "/asetflag" ,'1'); // 자산구분
  484. model.setValue(grd_gooddetlist.nodeset + "/gnrlspcl" ,'N'); // 일반전문(약품)
  485. model.setValue(grd_gooddetlist.nodeset + "/specldrug" ,'N'); // 특별약품 (약품)
  486. model.setValue(grd_gooddetlist.nodeset + "/todd" ,'99991231'); // 종료일
  487. model.setValue(grd_gooddetlist.nodeset + "/wareflag" ,'6'); // 창고구분 - 급식재료창고
  488. //jhj 추가
  489. ipt_goodcd.disabled = false;
  490. ipt_goodnm.disabled = false;
  491. cmb_lrgcd.disabled = false;
  492. ipt_winacnt.disabled = false;
  493. cmb_asetflag.disabled = false;
  494. cmb_purcunit.disabled = false;
  495. cmb_deliveunit.disabled = false;
  496. ipt_exchqty.disabled = false;
  497. ipt_mngtdeptcd.disabled = false;
  498. cmb_stocmngtflag.disabled = false;
  499. cmb_purccls.disabled = false;
  500. }
  501. function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
  502. var node1 = instance1.selectNodes(ptarget_node + "/*");
  503. var node2 = instance1.selectNodes(psource_node + "/*");
  504. for (var i = 0; i < node1.length ; i++) {
  505. for (var j = 0; j < node2.length; j++) {
  506. if (node1.item(i).nodeName == node2.item(j).nodeName) {
  507. var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
  508. var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
  509. var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
  510. var copysource = psource_node + "/" + node2.item(j).nodeName;
  511. for (var k = 0; k < nextnode1.length; k++) {
  512. for (var p = 0; p < nextnode2.length; p++) {
  513. if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
  514. if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
  515. model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
  516. }
  517. }
  518. }
  519. }
  520. }
  521. }
  522. return false;
  523. }
  524. function fCheckRetrieveData()
  525. {
  526. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  527. {
  528. messageBox("물품구분을 " ,"C002");
  529. model.setFocus("ipt_goodflag_search");
  530. return false;
  531. }
  532. return true;
  533. }
  534. function fInstGoodCdCopy()
  535. {
  536. if(grd_goodlist.row - grd_goodlist.fixedRows == 0)return;
  537. btn_insert.dispatch("DOMActivate");
  538. model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
  539. model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
  540. model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
  541. model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
  542. model.SetValue(cmb_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
  543. cmb_lrgcd.dispatch("xforms-value-changed");
  544. model.SetValue(cmb_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
  545. cmb_mdlcd.dispatch("xforms-value-changed");
  546. model.SetValue(cmb_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
  547. model.refresh();
  548. model.setFocus("ipt_winacnt");
  549. }
  550. function fGoodCdCopy()
  551. {
  552. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  553. {
  554. messageBox("물품구분을 " ,"C002");
  555. model.setFocus("ipt_goodflag_search");
  556. return false;
  557. }
  558. if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 )
  559. {
  560. messageBox("대분류코드를 " ,"C002");
  561. model.setFocus("cmb_lrgcd");
  562. return false;
  563. }
  564. if(model.getValue(cmb_mdlcd.attribute("ref")).length== 0 )
  565. {
  566. messageBox("중분류코드를 " ,"C002");
  567. model.setFocus("cmb_mdlcd");
  568. return false;
  569. }
  570. model.setValue("/root/send/goodcopy/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  571. model.setValue("/root/send/goodcopy/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
  572. model.setValue("/root/send/goodcopy/mdlcd", model.getValue(cmb_mdlcd.attribute("ref")));
  573. submit("TRRSC05303");
  574. var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
  575. if(goodcd.length == 0)goodcd = model.getValue(ipt_goodflag_search.attribute("ref")) + model.getValue(cmb_lrgcd.attribute("ref")) + model.getValue(cmb_mdlcd.attribute("ref")) + "0001";
  576. model.setValue(ipt_goodcd.attribute("ref"), goodcd);
  577. grp_detail.refresh();
  578. }
  579. ]]>
  580. </script>
  581. </xhtml:head>
  582. <xhtml:body guideline="1,1373;">
  583. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  584. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">식자재 코드 등록</caption>
  585. </group>
  586. <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
  587. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  588. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:61px; "/>
  589. <caption id="caption3" class="search_name" style="left:15; top:35; width:86px; height:17px; ">물품코드 :</caption>
  590. <caption id="caption8" class="search_name" style="left:15px; top:9; width:83px; height:17px; ">대 분 류 :</caption>
  591. <caption id="caption61" class="search_name" style="left:343px; top:9px; width:83px; height:17px; ">중 분 류 :</caption>
  592. <caption id="caption39" class="search_name" style="left:700px; top:9px; width:86px; height:17px; ">소 분 류 :</caption>
  593. <line id="line1" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:52px; "/>
  594. <button id="btn_search" class="btn1_letter2" navindex="9" style="left:1124px; top:20px; width:56px; height:22px; text-align:left; ">
  595. <caption>조회</caption>
  596. <script type="javascript" ev:event="DOMActivate">
  597. <![CDATA[
  598. if(fCheckRetrieveData() == false)return;
  599. fRetrGoodList(false);
  600. ]]>
  601. </script>
  602. </button>
  603. <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" navindex="6" _chartype="upper" style="left:430px; top:34px; width:160px; height:19px; ">
  604. <script type="javascript" ev:event="onkeyup">
  605. <![CDATA[
  606. inputEnterKey("btn_search", "DOMActivate");
  607. ]]>
  608. </script>
  609. </input>
  610. <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" navindex="5" imemode="disabled" maxlength="12" _chartype="upper" style="left:100px; top:34px; width:160px; height:19px; ">
  611. <script type="javascript" ev:event="onkeyup">
  612. <![CDATA[
  613. inputEnterKey("btn_search", "DOMActivate");
  614. ]]>
  615. </script>
  616. </input>
  617. <caption id="caption81" class="search_name" style="left:700px; top:35px; width:85px; height:17px; ">기 관 :</caption>
  618. <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" navindex="7" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:784px; top:35px; width:95px; height:15px; background-color:transparent; border-style:none; ">
  619. <choices>
  620. <itemset nodeset="/root/init/instflag">
  621. <label ref="label"/>
  622. <value ref="value"/>
  623. </itemset>
  624. </choices>
  625. </select1>
  626. <input id="ipt_goodflag_search" ref="/root/send/goodlist/goodflag" navindex="8" visibility="hidden" style="left:1075px; top:30px; width:25px; height:19px; "/>
  627. <select1 id="cmb_lrgcd_search" ref="/root/send/goodlist/lrgcd" navindex="2" appearance="minimal" style="left:100px; top:8px; width:160px; height:19px; ">
  628. <choices>
  629. <itemset>
  630. <label/>
  631. <value/>
  632. </itemset>
  633. </choices>
  634. <script type="javascript" ev:event="xforms-value-changed">
  635. <![CDATA[
  636. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M", "Y", "Y");
  637. cmb_mdlcd_search.dispatch("xforms-value-changed");
  638. cmb_mdlcd_search.refresh();
  639. ]]>
  640. </script>
  641. </select1>
  642. <select1 id="cmb_mdlcd_search" ref="/root/send/goodlist/mdlcd" navindex="3" appearance="minimal" style="left:430px; top:8px; width:160px; height:19px; ">
  643. <choices>
  644. <itemset>
  645. <label/>
  646. <value/>
  647. </itemset>
  648. </choices>
  649. <script type="javascript" ev:event="xforms-value-changed">
  650. <![CDATA[
  651. rszfLMSComboList(model.getValue(ipt_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S", "Y", "Y");
  652. cmb_smlcd_search.refresh();
  653. ]]>
  654. </script>
  655. </select1>
  656. <select1 id="cmb_smlcd_search" ref="/root/send/goodlist/smlcd" navindex="4" appearance="minimal" style="left:782px; top:8px; width:160px; height:19px; ">
  657. <choices>
  658. <itemset>
  659. <label/>
  660. <value/>
  661. </itemset>
  662. </choices>
  663. </select1>
  664. <caption id="caption15" class="search_name" style="left:343px; top:35px; width:86px; height:17px; ">물 품 명 :</caption>
  665. </group>
  666. <caption id="caption9" class="tit_2" style="left:5px; top:81px; width:82px; height:13px; ">식자재목록</caption>
  667. <line id="line7" class="line_1" style="x1:0px; y1:95px; x2:735; y2:95px; "/>
  668. <caption id="caption1" class="tit_2" style="left:745; top:81px; width:95px; height:13px; ">통합품목정보</caption>
  669. <switch id="switch2" style="left:0px; top:450px; width:735px; height:284px; border-color:#c7a3cf; border-style:solid; ">
  670. <case id="case1">
  671. <datagrid id="grd_costhistinfo" nodeset="/root/main/list/gooddet/goodconstlist" caption="적용일자*^주거래처^보조거래처^제품단가^견적가^외화단가^화폐단위^수불단가^의료수가^제조국^한글명^영문명^규격^모델^관리부서^입고계정^비용계정^수정자" colsep="^" colwidth="80, 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:29px; width:733px; height:243px; ">
  672. <col ref="fromdd"/>
  673. <col ref="maincustlastsuplplcenm"/>
  674. <col ref="suppcustnm"/>
  675. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  676. <col ref="forgncurncyunitcost" format="#,###" style="text-align:right; "/>
  677. <col ref="curncyunit"/>
  678. <col/>
  679. <col format="#,###" style="text-align:right; "/>
  680. <col ref="prodplce" format="#,###" style="text-align:right; "/>
  681. <col ref="goodnm"/>
  682. <col ref="goodhngnm"/>
  683. <col ref="goodengnm"/>
  684. <col ref="goodspec"/>
  685. <col ref="goodmodel"/>
  686. <col ref="mainmngtdeptnm"/>
  687. <col ref="winacntnm"/>
  688. <col ref="amtacntnm"/>
  689. <col ref="lastupdtrnm"/>
  690. <script type="javascript" ev:event="ondblclick">
  691. <![CDATA[
  692. if(grd_goodlist.row > 0)
  693. {
  694. model.setValue("/root/send/gooddetlist/goodcd", model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/goodcd" ));
  695. model.setValue("/root/send/gooddetlist/fromdd", model.getValue(grd_costhistinfo.nodeset + "["+ grd_costhistinfo.row + "]/fromdd" ));
  696. model.setValue("/root/send/gooddetlist/useyn", "N");
  697. submit("TRRSC05302");
  698. fAfterRetrGoodList();
  699. model.setValue("/root/send/gooddetlist/fromdd","" );
  700. }
  701. ]]>
  702. </script>
  703. </datagrid>
  704. <line id="line21" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
  705. </case>
  706. <case id="case2">
  707. <line id="line49" class="line_1" style="x1:0; y1:24; x2:533px; y2:24; "/>
  708. <group id="grp_etcgood" style="left:0px; top:29px; width:530px; height:60px; ">
  709. <line id="line50" class="line_2" style="x1:0px; y1:22px; x2:528px; y2:22px; "/>
  710. <line id="line53" class="line_3" style="x1:0px; y1:46px; x2:528px; y2:46px; "/>
  711. <caption id="caption74" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
  712. <caption id="caption76" class="cell_1" style="left:264px; top:0px; width:108px; height:23px; vertical-align:middle; ">발주생성구분</caption>
  713. <select1 id="cmb_plceordbase" ref="/root/main/gooddet/gooddetlist/plceordbase" class="combo_essential" appearance="minimal" style="left:111px; top:2px; width:150px; height:19px; ">
  714. <choices>
  715. <itemset nodeset="/root/init/plceordbase">
  716. <label ref="cdnm"/>
  717. <value ref="cdid"/>
  718. </itemset>
  719. </choices>
  720. </select1>
  721. <caption id="caption78" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">발주기준</caption>
  722. <input id="ipt_mmavguseqty" ref="/root/main/gooddet/gooddetlist/ddavguseqty" class="input_default" style="left:111px; top:26px; width:150px; height:19px; text-align:right; "/>
  723. <caption id="caption79" class="cell_1" style="left:264px; top:24px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
  724. <input id="ipt_prprtystocpossndayno" ref="/root/main/gooddet/gooddetlist/prprtystocpossndayno" class="input_default" style="left:375px; top:26px; width:153px; height:19px; text-align:right; "/>
  725. <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:375px; top:2px; width:153px; height:19px; ">
  726. <choices>
  727. <itemset nodeset="/root/init/plceordqtycretflag">
  728. <label ref="cdnm"/>
  729. <value ref="cdid"/>
  730. </itemset>
  731. </choices>
  732. </select1>
  733. </group>
  734. </case>
  735. <case id="case4">
  736. <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:29px; width:733px; height:243px; ">
  737. <col ref="instcd"/>
  738. <col ref="instnm"/>
  739. </datagrid>
  740. <line id="line22" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
  741. </case>
  742. <case id="case3" selected="true">
  743. <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
  744. <datagrid id="grd_mastexcel" nodeset="/root/init/copydata/mastexcel" caption="물품명^대분류^대분류명^중분류^중분류명^입고계정^비용계정^단가^세율^포장단위^불출단위^환산수량^주거래처코드^주거래처명^보조거래처코드^보조거래처명^관리부서코드^관리부서명^업체코드^원산지^비고^caption6" colsep="^" colwidth="100, 86, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:730px; height:205px; font-size:10pt; ">
  745. <col ref="goodnm"/>
  746. <col ref="lrgcd"/>
  747. <col ref="lrgnm"/>
  748. <col ref="mdlcd"/>
  749. <col ref="mdlnm"/>
  750. <col ref="winacnt"/>
  751. <col ref="amtacnt"/>
  752. <col ref="mainmngtdeptcd"/>
  753. <col ref="mainmngtdeptname"/>
  754. <col ref="purcunit"/>
  755. <col ref="deliveunit"/>
  756. <col ref="exchqty"/>
  757. <col ref="maincustlastsuplplce"/>
  758. <col ref="maincustlastsuplplcenm"/>
  759. <col ref="suppcustcd"/>
  760. <col ref="suppcustnm"/>
  761. <col ref="goodunitcost"/>
  762. <col ref="bnscd"/>
  763. <col ref="orgloc"/>
  764. <col ref="cmt"/>
  765. <col ref="addtaxrate"/>
  766. </datagrid>
  767. <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size^caption1" colsep="^" colwidth="403, 93, 100" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:55px; top:70px; width:660px; height:140px; ">
  768. <col ref="file" style="text-align:center; "/>
  769. <col ref="filesize" format="#,###" style="text-align:right; "/>
  770. <col ref="instcd"/>
  771. </datagrid>
  772. </case>
  773. </switch>
  774. <button id="btn_insert" class="btn2_letter2" navindex="48" style="left:1152px; top:74px; width:42px; height:19px; ">
  775. <caption>추가</caption>
  776. <script type="javascript" ev:event="DOMActivate">
  777. <![CDATA[
  778. misfGridInit(grd_gooddetlist);
  779. misfGridIUD(grd_gooddetlist, "A");
  780. fDefaultSetting();
  781. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  782. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  783. //if(cmb_purccls.length> 0) cmb_purccls.selectedindex= 0;
  784. if(ipt_fromdd.attribute("background-color") == "#c0c0c0")ipt_fromdd.attribute("background-color") = "#ffffff";
  785. model.refresh();
  786. model.setFocus("ipt_goodcd");
  787. ]]>
  788. </script>
  789. </button>
  790. <button id="btn_choidel" class="btn2_letter5" navindex="47" style="left:1075px; top:74px; width:75px; height:19px; ">
  791. <caption>선택행삭제</caption>
  792. <script type="javascript" ev:event="DOMActivate">
  793. <![CDATA[
  794. misfGridIUD(grd_gooddetlist, "D");
  795. misfGridIUD(grd_goodlist, "D");
  796. ]]>
  797. </script>
  798. </button>
  799. <datagrid id="grd_goodlist" nodeset="/root/main/list/good/goodlist" caption="물품코드^물품구분^물품명^대분류^대분류명^중분류^중분류명^소분류^소분류명" colsep="^" colwidth="75, 0, 135, 42, 87, 47, 85, 59, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" navindex="10" style="left:0px; top:100px; width:735px; height:322px; ">
  800. <col ref="goodcd" type="output" _key="true"/>
  801. <col ref="goodflag" visibility="hidden" _key="true"/>
  802. <col ref="goodnm" type="output" _key="true"/>
  803. <col ref="lrgcd"/>
  804. <col ref="lrgnm"/>
  805. <col ref="mdlcd"/>
  806. <col ref="mdlnm"/>
  807. <col ref="smlcd"/>
  808. <col ref="smlnm"/>
  809. <col ref="prodcmpynm" visibility="hidden"/>
  810. <col ref="goodmodel" visibility="hidden"/>
  811. <col ref="goodhngnm" visibility="hidden"/>
  812. <col ref="goodengnm" visibility="hidden"/>
  813. <col ref="asetflag" visibility="hidden"/>
  814. <col ref="prodcmpycd" visibility="hidden"/>
  815. <script type="javascript" ev:event="onrowchanged">
  816. <![CDATA[
  817. fRetrGoodList(true);
  818. ]]>
  819. </script>
  820. <script type="javascript" ev:event="onaftersort">
  821. <![CDATA[
  822. grd_goodlist.gridToInstance();
  823. ]]>
  824. </script>
  825. </datagrid>
  826. <button id="btn_instcd" class="btn_sw" group="tab" selected="true" style="left:180px; top:428px; width:90px; height:22px; ">
  827. <caption>사용기관정보</caption>
  828. <toggle case="case4" ev:event="DOMActivate"/>
  829. <script type="javascript" ev:event="onclick">
  830. <![CDATA[
  831. btn_excelload.visible = false;
  832. btn_savemaster.visible = false;
  833. ]]>
  834. </script>
  835. </button>
  836. <button id="btn_addinfo" class="btn_sw" group="tab" style="left:90px; top:428px; width:90px; height:22px; ">
  837. <caption>부가입력정보</caption>
  838. <toggle case="case2" ev:event="DOMActivate"/>
  839. <script type="javascript" ev:event="onclick">
  840. <![CDATA[
  841. btn_excelload.visible = false;
  842. btn_savemaster.visible = false;
  843. ]]>
  844. </script>
  845. </button>
  846. <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:428px; width:90px; height:22px; ">
  847. <caption>이력정보</caption>
  848. <toggle case="case1" ev:event="DOMActivate"/>
  849. <script type="javascript" ev:event="onclick">
  850. <![CDATA[
  851. btn_excelload.visible = false;
  852. btn_savemaster.visible = false;
  853. ]]>
  854. </script>
  855. </button>
  856. <button id="btn_masterinsert" class="btn_sw8" visibility="hidden" group="tab" style="left:270px; top:429px; width:112px; height:22px; ">
  857. <caption>신규코드일관등록</caption>
  858. <toggle case="case3" ev:event="DOMActivate"/>
  859. <script type="javascript" ev:event="onclick">
  860. <![CDATA[
  861. btn_excelload.visible = true;
  862. btn_savemaster.visible = true;
  863. ]]>
  864. </script>
  865. </button>
  866. <line id="line3" class="line_1" style="x1:740; y1:95px; x2:1195; y2:95px; "/>
  867. <datagrid id="grd_excel" nodeset="/root/main/list/good/goodlist" visibility="hidden" caption="기관^물품코드^물품구분^물품명^기관별물품명^업체코드^부가세^물품규격^모델^자산구분^대분류코드^대분류명^중분류코드^중분류명^소분류코드^소분류명^edi코드^제조회사코드^제조회사코드^비고^성분명^사용여부^공급처^공급처명^보조거래처^보조거래처명^포장구성단위^물품단가^구매구분^구매구분^청구방법^청구방법명^청구구분^청구구분명^청구주기^청구주기명^최초등록자id^최초등록일시^최종수정자id^최종수정일시" colsep="^" colwidth="50, 50, 50, 50, 100, 100, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 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" navindex="11" style="left:20px; top:155px; width:440px; height:97px; ">
  868. <col ref="instcd"/>
  869. <col ref="goodcd"/>
  870. <col ref="goodflag"/>
  871. <col ref="goodnm"/>
  872. <col ref="goodcd_instcd"/>
  873. <col ref="bnscd"/>
  874. <col ref="addtaxrate"/>
  875. <col ref="goodspec"/>
  876. <col ref="goodmodel"/>
  877. <col ref="asetflag"/>
  878. <col ref="lrgcd"/>
  879. <col ref="lrgnm"/>
  880. <col ref="mdlcd"/>
  881. <col ref="mdlnm"/>
  882. <col ref="smlcd"/>
  883. <col ref="smlnm"/>
  884. <col ref="edicd"/>
  885. <col ref="prodcmpycd"/>
  886. <col ref="prodcmpynm"/>
  887. <col ref="cmt" visibility="hidden"/>
  888. <col ref="comnm" visibility="hidden"/>
  889. <col ref="useyn" visibility="hidden"/>
  890. <col ref="maincustlastsuplplce" visibility="hidden"/>
  891. <col ref="maincustlastsuplplcenm" visibility="hidden"/>
  892. <col ref="suppcustcd" visibility="hidden"/>
  893. <col ref="suppcustnm" visibility="hidden"/>
  894. <col ref="setunit" visibility="hidden"/>
  895. <col ref="goodunitcost" visibility="hidden"/>
  896. <col ref="purcflag" visibility="hidden"/>
  897. <col ref="purcflagnm" visibility="hidden"/>
  898. <col ref="reqmthd" visibility="hidden"/>
  899. <col ref="reqmthdnm" visibility="hidden"/>
  900. <col ref="reqflag" visibility="hidden"/>
  901. <col ref="reqflagnm" visibility="hidden"/>
  902. <col ref="reqprid" visibility="hidden"/>
  903. <col ref="reqpridnm" visibility="hidden"/>
  904. <col ref="fstrgstrid" visibility="hidden"/>
  905. <col ref="fstrgstdt" visibility="hidden"/>
  906. <col ref="lastupdtrid" visibility="hidden"/>
  907. <col ref="lastupdtdt" visibility="hidden"/>
  908. </datagrid>
  909. <button id="btn_excel2" class="btn5_letter3" navindex="12" style="left:662px; top:75px; width:53px; height:19px; ">
  910. <caption>Excel</caption>
  911. <script type="javascript" ev:event="DOMActivate">
  912. <![CDATA[
  913. var vdate = new Date();
  914. var HH = vdate.getHours();
  915. var MI = vdate.getMinutes();
  916. var SS = vdate.getSeconds();
  917. var vTime = HH +"" + MI +"" + SS;
  918. var vFileNM = "식자재목록내역_"+getCurrentDate()+ vTime;
  919. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  920. if (fileName != "")
  921. {
  922. grd_excel.saveExcel(fileName, vFileNM, true, true, "");
  923. }
  924. ]]>
  925. </script>
  926. </button>
  927. <button id="btn_excelload" class="btn5_letter3" visibility="hidden" style="left:670px; top:430px; width:53px; height:19px; ">
  928. <caption>Excel</caption>
  929. <script type="javascript" ev:event="DOMActivate">
  930. <![CDATA[
  931. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  932. misfGridInit(grd_mastexcel);
  933. grd_mastexcel.loadExcel(fileName, 1);
  934. grd_mastexcel.refresh();
  935. //물품코드를 찾아서 매핑
  936. insertTomaster();
  937. ]]>
  938. </script>
  939. </button>
  940. <button id="btn_savemaster" class="btn2_letter2" navindex="50" visibility="hidden" style="left:620px; top:430px; width:42px; height:19px; ">
  941. <caption>등록</caption>
  942. <script type="javascript" ev:event="DOMActivate">
  943. <![CDATA[
  944. /*
  945. misfGridInit(grd_gooddetlist);
  946. misfGridIUD(grd_gooddetlist, "A");
  947. fDefaultSetting();
  948. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  949. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  950. if(ipt_fromdd.attribute("background-color") == "#c0c0c0")ipt_fromdd.attribute("background-color") = "#ffffff";
  951. model.refresh();
  952. model.setFocus("ipt_goodcd");
  953. */
  954. if(fCheckSaveMasterData() == false) return;
  955. model.copyNode("/root/send/sendmasterexcel","/root/init/copydata/mastexcel");
  956. model.makeValue("/root/send/sendmasterexcel/instcd",model.getValue("/root/send/unitref/instcd") );
  957. alert(model.getValue("/root/send/sendmasterexcel/instcd"))
  958. //return;
  959. //submit("TXRSC05307");
  960. //alert("ok");
  961. var maxsize = upload1.attribute("filesize");
  962. //alert("maxsize" + maxsize);
  963. var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  964. //alert("filename"+filename);
  965. var filelist = filename.split("|");
  966. //alert("filelist"+filelist);
  967. var s = new String(filelist[filelist.length-1]);
  968. //alert("s"+s);
  969. var ss = s.split("\\");
  970. //alert("ss"+ ss);
  971. if(filename !=""){
  972. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  973. for(var i = 0 ; i < filelist.length ; i++ ){
  974. grd_attach.addRow(false);
  975. if(filelist[i] == ""){
  976. //alert(grd_attach.rows - 1);
  977. grd_attach.removeRow(false);
  978. grd_attach.refresh();
  979. }else{
  980. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  981. //파일크기('tfHelper.checkFileSize' 참조)
  982. var fileCnt = upload1.getFileCount();
  983. var lastIndex = fileCnt - 1;
  984. var fileSize = upload1.getFileSize(lastIndex);
  985. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  986. if (!checkFileSize(upload1)){
  987. grd_attach.removeItem();
  988. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  989. return;
  990. }
  991. }
  992. }
  993. model.setValue("root/send/attach/instcd",model.getValue("/root/send/unitref/instcd") );
  994. //model.makeValue("/root/send/sendmasterexcel/instcd",model.getValue("/root/send/unitref/instcd") );
  995. model.refresh();
  996. //alert(model.getValue("/root/send/sendmasterexcel/instcd"))
  997. openLoadingBar("파일업로드 작업중입니다... ") ;
  998. submit("TXRSC05307");
  999. closeLoadingBar();
  1000. misfGridInit(grd_attach);
  1001. //btn_search.dispatch("DOMActivate");
  1002. }
  1003. ]]>
  1004. </script>
  1005. </button>
  1006. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:555px; top:425px; width:30px; height:25px; "/>
  1007. </group>
  1008. <group id="group4" visibility="visible" style="left:0; top:12; width:1195; height:27; ">
  1009. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
  1010. <caption>저장</caption>
  1011. <script type="javascript" ev:event="DOMActivate">
  1012. <![CDATA[
  1013. //이현민
  1014. model.setValue("/root/send/scheckgood/scheckgoodcd",model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
  1015. //alert(model.getValue("/root/send/scheckgood/scheckgoodcd"));
  1016. submit("TRRSC05602");
  1017. //alert(model.getValue("/root/main/checkgood/checkgoodcd"));
  1018. //alert(model.getValue("/root/main/checkgood/checkgoodcd").getTrim().length);
  1019. if (grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 1 || grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 3 ) {
  1020. if(model.getValue("/root/main/checkgood/checkgoodcd").getTrim().length != 0 ) {
  1021. messageBox("이미 "+model.getValue("/root/main/checkgood/checkgoodcd")+ "로 저장된 물품Master가 존재합니다. 다시 중분류 돋보기 버튼을 눌러서 물품코드를 다시 생성해주세요" ,"");
  1022. return;
  1023. //alert("이미 "+model.getValue("/root/main/checkgood/checkgoodcd")+ "~로 저장된 물품Master가 존재합니다. 다시 중분류 돋보기 버튼을 눌러서 물품코드를 다시 생성해주세요")
  1024. }
  1025. }
  1026. //이현민
  1027. if(fCheckSaveData() == false)return;
  1028. fSetDataCopy();
  1029. model.refresh();
  1030. misfSave("TXRSC05302");
  1031. if (model.getValue(gvErrorMsgPath + "/type") != "error" && grd_goodlist.row > 0 )fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
  1032. /*
  1033. {
  1034. submit("TRRSC05301");
  1035. grd_goodlist.clearStatus();
  1036. }
  1037. */
  1038. ]]>
  1039. </script>
  1040. </button>
  1041. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1042. <caption>초기화</caption>
  1043. <script type="javascript" ev:event="DOMActivate">
  1044. <![CDATA[
  1045. fInitialize();
  1046. ]]>
  1047. </script>
  1048. </button>
  1049. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  1050. <caption>화면이동</caption>
  1051. </button>
  1052. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  1053. <caption>출력</caption>
  1054. </button>
  1055. <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:886px; top:4px; width:100px; height:19px; "/>
  1056. <output id="opt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:791px; top:4px; width:100px; height:19px; "/>
  1057. </group>
  1058. <group id="grp_detail" style="left:740px; top:135px; width:455px; height:630px; ">
  1059. <line id="line19" class="line_2" style="x1:0px; y1:463px; x2:455px; y2:463px; "/>
  1060. <line id="line18" class="line_2" style="x1:0px; y1:382px; x2:455px; y2:382px; "/>
  1061. <line id="line17" class="line_2" style="x1:0px; y1:439px; x2:455px; y2:439px; "/>
  1062. <line id="line16" class="line_2" style="x1:0px; y1:415px; x2:455px; y2:415px; "/>
  1063. <line id="line20" class="line_3" style="x1:0px; y1:510px; x2:455px; y2:510px; "/>
  1064. <line id="line5" class="line_2" style="x1:0px; y1:69px; x2:455px; y2:69px; "/>
  1065. <line id="line4" class="line_2" style="x1:0px; y1:46px; x2:455px; y2:46px; "/>
  1066. <line id="line8" class="line_2" style="x1:0px; y1:23px; x2:455px; y2:23px; "/>
  1067. <line id="line15" class="line_2" style="x1:0px; y1:284px; x2:455px; y2:284px; "/>
  1068. <line id="line11" class="line_2" style="x1:0px; y1:211px; x2:455px; y2:211px; "/>
  1069. <line id="line10" class="line_2" style="x1:0px; y1:186px; x2:455px; y2:186px; "/>
  1070. <line id="line9" class="line_2" style="x1:0px; y1:138px; x2:455px; y2:138px; "/>
  1071. <line id="line23" class="line_2" style="x1:0px; y1:115px; x2:455px; y2:115px; "/>
  1072. <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" disabled="true" navindex="32" appearance="minimal" style="left:110px; top:288px; width:200px; height:19px; ">
  1073. <choices>
  1074. <itemset>
  1075. <label/>
  1076. <value/>
  1077. </itemset>
  1078. </choices>
  1079. <script type="javascript" ev:event="xforms-value-changed">
  1080. <![CDATA[
  1081. model.setFocus("cmb_asetflag");
  1082. ]]>
  1083. </script>
  1084. </select1>
  1085. <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_essential" visibility="hidden" imemode="hangul" maxlength="450" style="left:300px; top:588px; width:15px; height:19px; ">
  1086. <script type="javascript" ev:event="onkeydown">
  1087. <![CDATA[
  1088. if(event.keyCode == 9)
  1089. {
  1090. if(event.shiftKey)model.setFocus("ipt_goodnm");
  1091. else model.setFocus("ipt_goodengnm");
  1092. }
  1093. //event.preventDefault();
  1094. ]]>
  1095. </script>
  1096. </input>
  1097. <caption id="caption50" class="cell_1" style="left:0px; top:23px; width:108px; height:22px; vertical-align:middle; ">물 품 코 드</caption>
  1098. <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_essential" disabled="true" navindex="15" imemode="disabled" maxlength="12" _chartype="upper" style="left:110px; top:25px; width:168px; height:19px; "/>
  1099. <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:215px; top:164px; width:239px; height:19px; "/>
  1100. <caption id="caption66" class="cell_1" style="left:0px; top:138px; width:108px; height:22px; vertical-align:middle; ">소 분 류</caption>
  1101. <output id="opt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="output_fix" appearance="output" style="left:215px; top:189px; width:239px; height:19px; "/>
  1102. <caption id="caption35" class="cell_1" style="left:0px; top:162px; width:108px; height:22px; vertical-align:middle; ">입 고 계 정</caption>
  1103. <caption id="caption68" class="cell_1" style="left:0px; top:92px; width:108px; height:22px; vertical-align:middle; ">대 분 류</caption>
  1104. <caption id="caption47" class="cell_1" style="left:0px; top:46px; width:108px; height:22px; vertical-align:middle; ">물 품 명</caption>
  1105. <button id="btn_amtacnt" class="icon_search" navindex="25" style="left:195px; top:191px; width:16px; height:16px; ">
  1106. <caption/>
  1107. <script type="javascript" ev:event="DOMActivate">
  1108. <![CDATA[
  1109. rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
  1110. model.refresh();
  1111. ]]>
  1112. </script>
  1113. </button>
  1114. <caption id="caption7" class="cell_1" style="left:0px; top:187px; width:108px; height:22px; vertical-align:middle; ">비 용 계 정</caption>
  1115. <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" disabled="false" navindex="22" style="left:110px; top:164px; width:81px; height:19px; ">
  1116. <script type="javascript" ev:event="xforms-value-changed">
  1117. <![CDATA[
  1118. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
  1119. model.refresh();
  1120. model.setFocus("ipt_amtacnt");
  1121. ]]>
  1122. </script>
  1123. </input>
  1124. <caption id="caption29" class="cell_1" style="left:0px; top:115px; width:108px; height:22px; vertical-align:middle; ">중 분 류</caption>
  1125. <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" visibility="hidden" style="left:345px; top:588px; width:10px; height:19px; ">
  1126. <script type="javascript" ev:event="xforms-value-changed">
  1127. <![CDATA[
  1128. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpynm,," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  1129. model.refresh();
  1130. // model.setFocus("ipt_goodmodel");
  1131. ]]>
  1132. </script>
  1133. <script type="javascript" ev:event="onkeydown">
  1134. <![CDATA[
  1135. if(event.keyCode == 9)
  1136. {
  1137. // if(event.shiftKey)model.setFocus("cmb_prodplce");
  1138. // else model.setFocus("ipt_goodmodel");
  1139. }
  1140. //event.preventDefault();
  1141. ]]>
  1142. </script>
  1143. </input>
  1144. <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" visibility="hidden" imemode="alpha" maxlength="450" style="left:315px; top:588px; width:15px; height:19px; ">
  1145. <script type="javascript" ev:event="onkeydown">
  1146. <![CDATA[
  1147. if(event.keyCode == 9)
  1148. {
  1149. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  1150. // else model.setFocus("cmb_prodplce");
  1151. }
  1152. //event.preventDefault();
  1153. ]]>
  1154. </script>
  1155. </input>
  1156. <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_default" navindex="24" style="left:110px; top:189px; width:81px; height:19px; ">
  1157. <script type="javascript" ev:event="xforms-value-changed">
  1158. <![CDATA[
  1159. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
  1160. model.refresh();
  1161. ]]>
  1162. </script>
  1163. </input>
  1164. <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" visibility="hidden" appearance="output" style="left:355px; top:588px; width:12px; height:19px; "/>
  1165. <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_essential" disabled="false" navindex="17" maxlength="25" style="left:110px; top:48px; width:344px; height:19px; ">
  1166. <script type="javascript" ev:event="onkeydown">
  1167. <![CDATA[
  1168. if(event.keyCode == 9)
  1169. {
  1170. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1171. else model.setFocus("ipt_goodhngnm");
  1172. }
  1173. //event.preventDefault();
  1174. ]]>
  1175. </script>
  1176. </input>
  1177. <button id="btn_mngtdeptcd" class="icon_search" navindex="40" style="left:195px; top:416px; width:16px; height:16px; ">
  1178. <caption/>
  1179. <script type="javascript" ev:event="DOMActivate">
  1180. <![CDATA[
  1181. var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
  1182. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
  1183. model.refresh();
  1184. ]]>
  1185. </script>
  1186. </button>
  1187. <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" disabled="true" navindex="33" appearance="minimal" style="left:110px; top:313px; width:110px; height:19px; ">
  1188. <choices>
  1189. <itemset>
  1190. <label/>
  1191. <value/>
  1192. </itemset>
  1193. </choices>
  1194. <script type="javascript" ev:event="onkeydown">
  1195. <![CDATA[
  1196. if(event.keyCode == 9)
  1197. {
  1198. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1199. else model.setFocus("ipt_exchqty");
  1200. }
  1201. //event.preventDefault();
  1202. ]]>
  1203. </script>
  1204. </select1>
  1205. <button id="btn_useinstinfo" class="btn2_letter7" navindex="14" style="left:224px; top:2px; width:97px; height:19px; ">
  1206. <caption>타기관코드복사</caption>
  1207. <script type="javascript" ev:event="DOMActivate">
  1208. <![CDATA[
  1209. fInstGoodCdCopy();
  1210. ]]>
  1211. </script>
  1212. </button>
  1213. <caption id="caption53" class="cell_1" style="left:0px; top:0px; width:108px; height:22px; vertical-align:middle; ">적 용 일 자</caption>
  1214. <caption id="caption21" class="cell_1" style="left:0px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장/불출/환산</caption>
  1215. <button id="btn_photinfo" class="btn2_letter2" navindex="16" style="left:280px; top:25px; width:42px; height:19px; ">
  1216. <caption>사진</caption>
  1217. <script type="javascript" ev:event="DOMActivate">
  1218. <![CDATA[
  1219. //SPRSC00210
  1220. rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1221. //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1222. ]]>
  1223. </script>
  1224. </button>
  1225. <caption id="caption16" class="cell_1" style="left:0px; top:414px; width:108px; height:23px; vertical-align:middle; ">관 리 부 서</caption>
  1226. <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_essential" disabled="true" navindex="39" style="left:110px; top:416px; width:81px; height:19px; ">
  1227. <script type="javascript" ev:event="xforms-value-changed">
  1228. <![CDATA[
  1229. misfSearchDept(opt_mngtdeptnm);
  1230. ]]>
  1231. </script>
  1232. </input>
  1233. <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_essential" disabled="true" navindex="34" appearance="minimal" style="left:222px; top:313px; width:120px; height:19px; ">
  1234. <choices>
  1235. <itemset>
  1236. <label/>
  1237. <value/>
  1238. </itemset>
  1239. </choices>
  1240. </select1>
  1241. <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_essential" disabled="true" navindex="35" maxlength="9" format="#,###" style="left:343px; top:313px; width:111px; height:19px; text-align:right; "/>
  1242. <output id="opt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="output_fix" appearance="output" style="left:215px; top:416px; width:239px; height:19px; "/>
  1243. <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:230px; top:588px; width:15px; height:19px; ">
  1244. <choices>
  1245. <itemset nodeset="/root/init/reqflag">
  1246. <label ref="cdnm"/>
  1247. <value ref="cdid"/>
  1248. </itemset>
  1249. </choices>
  1250. </select1>
  1251. <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_search" navindex="13" inputtype="date" style="left:110px; top:2px; width:112px; height:19px; background-color:#ffffff; "/>
  1252. <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_essential" disabled="true" navindex="41" appearance="minimal" style="left:111px; top:440px; width:343px; height:19px; ">
  1253. <choices>
  1254. <itemset nodeset="/root/init/stocmngtflag">
  1255. <label ref="cdnm"/>
  1256. <value ref="cdid"/>
  1257. </itemset>
  1258. </choices>
  1259. </select1>
  1260. <caption id="caption12" class="cell_1" style="left:0px; top:438px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
  1261. <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_default" visibility="hidden" appearance="minimal" style="left:240px; top:588px; width:20px; height:19px; ">
  1262. <choices>
  1263. <itemset nodeset="/root/init/reqprid">
  1264. <label ref="cdnm"/>
  1265. <value ref="cdid"/>
  1266. </itemset>
  1267. </choices>
  1268. </select1>
  1269. <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" navindex="43" inputtype="date" style="left:111px; top:488px; width:87px; height:19px; "/>
  1270. <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" navindex="44" style="left:205px; top:488px; width:249px; height:19px; ">
  1271. <script type="javascript" ev:event="onkeydown">
  1272. <![CDATA[
  1273. if(event.keyCode == 9)
  1274. {
  1275. if(event.shiftKey)model.setFocus("ipt_nonusetretdd");
  1276. else model.setFocus("cmb_mngtflag");
  1277. }
  1278. //event.preventDefault();
  1279. ]]>
  1280. </script>
  1281. </input>
  1282. <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" navindex="46" style="left:110px; top:535px; width:343px; height:43px; ">
  1283. <script type="javascript" ev:event="onkeydown">
  1284. <![CDATA[
  1285. if(event.keyCode == 9)
  1286. {
  1287. // if(event.shiftKey)model.setFocus("ipt_reqpsn");
  1288. // else model.setFocus("ipt_lastpurcdd");
  1289. }
  1290. //event.preventDefault();
  1291. ]]>
  1292. </script>
  1293. </textarea>
  1294. <caption id="caption5" class="cell_1" style="left:0px; top:486px; width:108px; height:23px; vertical-align:middle; ">코드불용일자/사유</caption>
  1295. <caption id="caption17" class="cell_1" style="left:0px; top:534px; width:108px; height:46px; vertical-align:middle; ">비 고</caption>
  1296. <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:215px; top:214px; width:239px; height:19px; "/>
  1297. <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:215px; top:238px; width:239px; height:19px; "/>
  1298. <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_default" navindex="26" style="left:110px; top:214px; width:81px; height:19px; ">
  1299. <script type="javascript" ev:event="xforms-value-changed">
  1300. <![CDATA[
  1301. misfSearchCust(opt_maincustlastsuplplcenm,opt_instcd);
  1302. ]]>
  1303. </script>
  1304. </input>
  1305. <button id="btn_suppcustcd" class="icon_search" navindex="29" style="left:195px; top:240px; width:16px; height:16px; ">
  1306. <caption/>
  1307. <script type="javascript" ev:event="DOMActivate">
  1308. <![CDATA[
  1309. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
  1310. model.refresh();
  1311. ]]>
  1312. </script>
  1313. </button>
  1314. <caption id="caption67" class="cell_1" style="left:0px; top:335px; width:108px; height:23px; vertical-align:middle; ">단가 / 부가세</caption>
  1315. <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" navindex="36" maxlength="14.2" format="#,###.00" style="left:110px; top:337px; width:156px; height:19px; text-align:right; ">
  1316. <script type="javascript" ev:event="onkeydown">
  1317. <![CDATA[
  1318. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  1319. //event.preventDefault();
  1320. ]]>
  1321. </script>
  1322. <script type="javascript" ev:event="xforms-value-changed">
  1323. <![CDATA[
  1324. model.getValue(ipt_prodcmpycd.attribute("ref"))
  1325. ]]>
  1326. </script>
  1327. </input>
  1328. <button id="btn_maincustlastsuplplce" class="icon_search" navindex="27" style="left:195px; top:216px; width:16px; height:16px; ">
  1329. <caption/>
  1330. <script type="javascript" ev:event="DOMActivate">
  1331. <![CDATA[
  1332. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  1333. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd");
  1334. model.refresh();
  1335. ]]>
  1336. </script>
  1337. </button>
  1338. <caption id="caption37" class="cell_1" style="left:0px; top:236px; width:108px; height:23px; vertical-align:middle; ">보 조 거 래 처</caption>
  1339. <caption id="caption27" class="cell_1" style="left:0px; top:211px; width:108px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
  1340. <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" navindex="28" style="left:110px; top:238px; width:81px; height:19px; ">
  1341. <script type="javascript" ev:event="xforms-value-changed">
  1342. <![CDATA[
  1343. misfSearchCust(opt_suppcustnm,opt_instcd);
  1344. ]]>
  1345. </script>
  1346. </input>
  1347. <input id="ipt_bnscd" ref="/root/main/gooddet/gooddetlist/bnscd" class="input_essential" visibility="hidden" maxlength="12" style="left:285px; top:588px; width:15px; height:19px; ">
  1348. <script type="javascript" ev:event="onkeydown">
  1349. <![CDATA[
  1350. if(event.keyCode == 9)
  1351. {
  1352. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1353. else model.setFocus("ipt_goodhngnm");
  1354. }
  1355. //event.preventDefault();
  1356. ]]>
  1357. </script>
  1358. </input>
  1359. <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" visibility="hidden" appearance="minimal" style="left:150px; top:588px; width:8px; height:19px; ">
  1360. <choices>
  1361. <itemset>
  1362. <label/>
  1363. <value/>
  1364. </itemset>
  1365. </choices>
  1366. <script type="javascript" ev:event="onkeydown">
  1367. <![CDATA[
  1368. if(event.keyCode == 9)
  1369. {
  1370. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1371. else model.setFocus("ipt_exchqty");
  1372. }
  1373. //event.preventDefault();
  1374. ]]>
  1375. </script>
  1376. </select1>
  1377. <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" visibility="hidden" format="#,###" style="left:210px; top:588px; width:15px; height:19px; ">
  1378. <script type="javascript" ev:event="onkeydown">
  1379. <![CDATA[
  1380. if(event.keyCode == 9)
  1381. {
  1382. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1383. else model.setFocus("ipt_plceordnonusedd");
  1384. }
  1385. //event.preventDefault();
  1386. ]]>
  1387. </script>
  1388. </input>
  1389. <input id="ipt_com" ref="/root/main/gooddet/gooddetlist/com" class="input_default" visibility="hidden" maxlength="3" style="left:365px; top:588px; width:10px; height:19px; ">
  1390. <script type="javascript" ev:event="onkeydown">
  1391. <![CDATA[
  1392. if(event.keyCode == 9)
  1393. {
  1394. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1395. else model.setFocus("ipt_plceordnonusedd");
  1396. }
  1397. //event.preventDefault();
  1398. ]]>
  1399. </script>
  1400. </input>
  1401. <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" visibility="hidden" imemode="alpha" maxlength="450" style="left:330px; top:588px; width:15px; height:19px; ">
  1402. <script type="javascript" ev:event="onkeydown">
  1403. <![CDATA[
  1404. if(event.keyCode == 9)
  1405. {
  1406. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  1407. // else model.setFocus("cmb_prodplce");
  1408. }
  1409. //event.preventDefault();
  1410. ]]>
  1411. </script>
  1412. </input>
  1413. <select1 id="cmb_gnrlspcl" ref="/root/main/gooddet/gooddetlist/gnrlspcl" class="combo_essential" visibility="hidden" appearance="minimal" style="left:210px; top:588px; width:8px; height:19px; ">
  1414. <choices>
  1415. <item>
  1416. <label>일반</label>
  1417. <value>G</value>
  1418. </item>
  1419. <item>
  1420. <label>전문</label>
  1421. <value>S</value>
  1422. </item>
  1423. </choices>
  1424. <script type="javascript" ev:event="onkeydown">
  1425. <![CDATA[
  1426. if(event.keyCode == 9)
  1427. {
  1428. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1429. else model.setFocus("ipt_exchqty");
  1430. }
  1431. //event.preventDefault();
  1432. ]]>
  1433. </script>
  1434. </select1>
  1435. <select1 id="cmb_specldrug" ref="/root/main/gooddet/gooddetlist/specldrug" class="combo_essential" visibility="hidden" appearance="minimal" style="left:200px; top:588px; width:8px; height:19px; ">
  1436. <choices>
  1437. <item>
  1438. <label>일반</label>
  1439. <value>N</value>
  1440. </item>
  1441. <item>
  1442. <label>특별</label>
  1443. <value>Y</value>
  1444. </item>
  1445. </choices>
  1446. <script type="javascript" ev:event="onkeydown">
  1447. <![CDATA[
  1448. if(event.keyCode == 9)
  1449. {
  1450. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1451. else model.setFocus("ipt_exchqty");
  1452. }
  1453. //event.preventDefault();
  1454. ]]>
  1455. </script>
  1456. </select1>
  1457. <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" visibility="hidden" format="#,###" style="left:115px; top:588px; width:15px; height:19px; ">
  1458. <script type="javascript" ev:event="onkeydown">
  1459. <![CDATA[
  1460. if(event.keyCode == 9)
  1461. {
  1462. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1463. else model.setFocus("ipt_plceordnonusedd");
  1464. }
  1465. //event.preventDefault();
  1466. ]]>
  1467. </script>
  1468. </input>
  1469. <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" visibility="hidden" appearance="full" cellspacing="60" cols="5" overflow="visible" style="left:260px; top:588px; width:20px; height:20px; border-style:none; ">
  1470. <choices>
  1471. <item>
  1472. <label>냉동</label>
  1473. <value>1</value>
  1474. </item>
  1475. </choices>
  1476. </select1>
  1477. <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" visibility="hidden" appearance="minimal" style="left:170px; top:588px; width:8px; height:19px; ">
  1478. <choices>
  1479. <itemset nodeset="/root/init/specunit">
  1480. <label ref="cdnm"/>
  1481. <value ref="cdid"/>
  1482. </itemset>
  1483. </choices>
  1484. <script type="javascript" ev:event="onkeydown">
  1485. <![CDATA[
  1486. if(event.keyCode == 9)
  1487. {
  1488. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1489. else model.setFocus("ipt_exchqty");
  1490. }
  1491. //event.preventDefault();
  1492. ]]>
  1493. </script>
  1494. </select1>
  1495. <caption id="caption18" class="tit_2" style="left:5px; top:395px; width:95px; height:13px; ">재고관리기준</caption>
  1496. <line id="line26" class="line_1" style="x1:0px; y1:410px; x2:455px; y2:410px; "/>
  1497. <output id="output1" ref="/root/main/gooddet/gooddetlist/comnm" class="output_fix" visibility="hidden" appearance="output" style="left:375px; top:588px; width:15px; height:19px; "/>
  1498. <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:405px; top:588px; width:15px; height:19px; ">
  1499. <script type="javascript" ev:event="onkeydown">
  1500. <![CDATA[
  1501. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1502. //event.preventDefault();
  1503. ]]>
  1504. </script>
  1505. </input>
  1506. <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" visibility="hidden" format="#,###" style="left:120px; top:588px; width:20px; height:19px; ">
  1507. <script type="javascript" ev:event="onkeydown">
  1508. <![CDATA[
  1509. if(event.keyCode == 9)
  1510. {
  1511. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1512. else model.setFocus("ipt_plceordnonusedd");
  1513. }
  1514. //event.preventDefault();
  1515. ]]>
  1516. </script>
  1517. </input>
  1518. <button id="btn_winacnt" class="icon_search" navindex="23" style="left:195px; top:166px; width:16px; height:16px; ">
  1519. <caption/>
  1520. <script type="javascript" ev:event="DOMActivate">
  1521. <![CDATA[
  1522. rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
  1523. model.refresh();
  1524. ]]>
  1525. </script>
  1526. </button>
  1527. <input id="input1" ref="/root/main/gooddet/gooddetlist/plceordnonusedd" class="input_default" navindex="42" inputtype="date" style="left:111px; top:464px; width:87px; height:19px; "/>
  1528. <caption id="caption2" class="cell_1" style="left:0px; top:462px; width:108px; height:23px; vertical-align:middle; ">발주불용일자</caption>
  1529. <select1 id="rbo_addtaxrate" ref="/root/main/gooddet/gooddetlist/addtaxrate" navindex="37" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:315px; top:337px; width:105px; height:20px; border-style:none; ">
  1530. <choices>
  1531. <item>
  1532. <label>면세</label>
  1533. <value>0</value>
  1534. </item>
  1535. <item>
  1536. <label>과세</label>
  1537. <value>10</value>
  1538. </item>
  1539. </choices>
  1540. </select1>
  1541. <line id="line24" class="line_2" style="x1:0px; y1:311px; x2:455px; y2:311px; "/>
  1542. <caption id="caption4" class="cell_1" style="left:0px; top:359px; width:108px; height:23px; vertical-align:middle; ">원 산 지</caption>
  1543. <input id="ipt_orgloc" ref="/root/main/gooddet/gooddetlist/orgloc" class="input_default" navindex="38" maxlength="30" style="left:110px; top:361px; width:344px; height:19px; text-align:left; "/>
  1544. <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:420px; top:588px; width:15px; height:19px; "/>
  1545. <caption id="caption10" class="cell_1" style="left:0px; top:286px; width:108px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
  1546. <line id="line25" class="line_2" style="x1:0px; y1:334px; x2:455px; y2:334px; "/>
  1547. <line id="line27" class="line_2" style="x1:0px; y1:487px; x2:455px; y2:487px; "/>
  1548. <caption id="caption11" class="cell_1" style="left:0px; top:510px; width:108px; height:23px; vertical-align:middle; ">업 체 코 드</caption>
  1549. <input id="input2" ref="/root/main/gooddet/gooddetlist/bnscd" class="input_default" navindex="45" style="left:110px; top:512px; width:156px; height:19px; text-align:left; "/>
  1550. <select1 id="cmb_purccls" ref="/root/main/gooddet/gooddetlist/purccls" class="input_essential" disabled="true" navindex="30" appearance="minimal" style="left:110px; top:263px; width:200px; height:19px; ">
  1551. <choices>
  1552. <itemset>
  1553. <label/>
  1554. <value/>
  1555. </itemset>
  1556. </choices>
  1557. </select1>
  1558. <caption id="caption13" class="cell_1" style="left:0px; top:261px; width:108px; height:23px; vertical-align:middle; ">구 매 요 구 구 분</caption>
  1559. <line id="line28" class="line_2" style="x1:0px; y1:259px; x2:455px; y2:259px; "/>
  1560. <select1 id="rdo_costconyn" ref="/root/main/gooddet/gooddetlist/costconyn" navindex="31" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:320px; top:265px; width:130px; height:20px; border-style:none; ">
  1561. <choices>
  1562. <item>
  1563. <label>단가</label>
  1564. <value>Y</value>
  1565. </item>
  1566. <item>
  1567. <label>비단가</label>
  1568. <value>N</value>
  1569. </item>
  1570. </choices>
  1571. </select1>
  1572. <caption id="caption14" class="cell_1" style="left:0px; top:69px; width:108px; height:22px; vertical-align:middle; ">규 격</caption>
  1573. <line id="line29" class="line_2" style="x1:0px; y1:92px; x2:455px; y2:92px; "/>
  1574. <input id="input3" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_essential" disabled="false" navindex="18" maxlength="25" style="left:110px; top:71px; width:344px; height:19px; ">
  1575. <script type="javascript" ev:event="onkeydown">
  1576. <![CDATA[
  1577. if(event.keyCode == 9)
  1578. {
  1579. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1580. else model.setFocus("ipt_goodhngnm");
  1581. }
  1582. //event.preventDefault();
  1583. ]]>
  1584. </script>
  1585. </input>
  1586. <select1 id="cmb_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="combo_essential" navindex="19" appearance="minimal" style="left:110px; top:94px; width:161px; height:19px; ">
  1587. <choices>
  1588. <itemset>
  1589. <label/>
  1590. <value/>
  1591. </itemset>
  1592. </choices>
  1593. <script type="javascript" ev:event="xforms-value-changed">
  1594. <![CDATA[
  1595. rszfLMSComboList(model.getValue(ipt_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  1596. cmb_mdlcd.dispatch("xforms-value-changed");
  1597. cmb_mdlcd.refresh();
  1598. ]]>
  1599. </script>
  1600. </select1>
  1601. <select1 id="cmb_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" navindex="20" appearance="minimal" style="left:110px; top:117px; width:161px; height:19px; ">
  1602. <choices>
  1603. <itemset>
  1604. <label/>
  1605. <value/>
  1606. </itemset>
  1607. </choices>
  1608. <script type="javascript" ev:event="xforms-value-changed">
  1609. <![CDATA[
  1610. rszfLMSComboList(model.getValue(ipt_goodflag.attribute("ref")), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S", "", "Y");
  1611. cmb_smlcd.refresh();
  1612. ]]>
  1613. </script>
  1614. </select1>
  1615. <select1 id="cmb_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" navindex="21" appearance="minimal" style="left:110px; top:140px; width:161px; height:19px; ">
  1616. <choices>
  1617. <itemset>
  1618. <label/>
  1619. <value/>
  1620. </itemset>
  1621. </choices>
  1622. </select1>
  1623. <caption id="cap_wareflag" class="cell_1" style="left:245px; top:462px; width:70px; height:23px; vertical-align:middle; ">창고구분</caption>
  1624. <select1 id="cmb_wareflag" ref="/root/main/gooddet/gooddetlist/wareflag" class="combo_essential" disabled="true" navindex="-1" appearance="minimal" style="left:317px; top:464px; width:138px; height:19px; ">
  1625. <choices>
  1626. <itemset nodeset="/root/init/wareflag">
  1627. <label ref="cdnm"/>
  1628. <value ref="cdid"/>
  1629. </itemset>
  1630. </choices>
  1631. </select1>
  1632. <line id="line6" class="line_2" style="x1:0px; y1:162px; x2:455px; y2:162px; "/>
  1633. <line id="line12" class="line_2" style="x1:0px; y1:235px; x2:455px; y2:235px; "/>
  1634. </group>
  1635. <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^wareflag^lrgcd^대분류명^중분류코드^중분류명^소분류코드^소분류명^제제약SET구분^계정코드^계정명^비용계정^비용계정명^주관리부서코드^주관리부서명^주사용부서코드^재고관리기준^입고단위^수불단위^환산배수^최소환산수량^재사용여부^분할사용수치^수가정보등록상태^수가정보등록일자^EDI코드^신청부서코드^신청부서명^신청자ID^신청자명^청구기준^청구구분^청구방법^청구주기^제조국^제조회사코드^제조회사명^최종공급처^최종공급처명^보조거래처코드^보조거래처명^계약구분^계약기간From^계약기간To^견적가^외화단가^화폐단위^제품단가^구매구분^ALL SIZE 유무^SET 발주구분^발주기준^발주량생성구분^발주불용일자^부가세율^최종구매일자^불용처리사유^관리구분^규제약품여부^고가여부^cntsqty^일평균사용량^월평균사용예정량^월평균사용량^적정재고보유일수^임시청구구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^purccls^costconyn^caption1^caption2" colsep="^" colwidth="95, 61, 38, 92, 94, 92, 92, 100, 92, 94, 61, 124, 114, 90, 97, 101, 100, 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, 100, 100, 245, 184, 184, 184, 184, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" navindex="49" style="left:15px; top:325px; width:705px; height:85px; ">
  1636. <col ref="goodcd" _key="true"/>
  1637. <col ref="todd" _key="true"/>
  1638. <col ref="prefromdd" style="left:204px; top:23px; width:123px; height:23px; "/>
  1639. <col ref="instcd" _key="true"/>
  1640. <col ref="useyn"/>
  1641. <col ref="fromdd"/>
  1642. <col ref="goodflag"/>
  1643. <col ref="edicd"/>
  1644. <col ref="goodnm" style="left:1078px; top:23px; width:92px; height:23px; "/>
  1645. <col ref="goodhngnm"/>
  1646. <col ref="goodengnm"/>
  1647. <col ref="goodspec"/>
  1648. <col ref="goodmodel"/>
  1649. <col ref="pregoodspec"/>
  1650. <col ref="pregoodmodel"/>
  1651. <col ref="asetflag" _key="true"/>
  1652. <col ref="wareflag"/>
  1653. <col ref="lrgcd" _key="true"/>
  1654. <col ref="lrgnm"/>
  1655. <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
  1656. <col ref="mdlnm"/>
  1657. <col ref="smlcd"/>
  1658. <col ref="smlnm"/>
  1659. <col ref="proddrugsetflag"/>
  1660. <col ref="winacnt" _key="true"/>
  1661. <col ref="winacntnm"/>
  1662. <col ref="amtacnt"/>
  1663. <col ref="amtacntnm"/>
  1664. <col ref="mainmngtdeptcd" _key="true"/>
  1665. <col ref="mainmngtdeptnm"/>
  1666. <col ref="mainusedeptcd"/>
  1667. <col ref="stocmngtflag"/>
  1668. <col ref="purcunit"/>
  1669. <col ref="deliveunit"/>
  1670. <col ref="exchqty"/>
  1671. <col ref="minexch"/>
  1672. <col ref="reuseyn"/>
  1673. <col ref="divusenvalqty"/>
  1674. <col ref="calcscorinfoacptstat"/>
  1675. <col ref="calcscorinfoacptdd"/>
  1676. <col ref="edicd"/>
  1677. <col ref="reqdeptcd"/>
  1678. <col ref="reqdeptnm"/>
  1679. <col ref="reqpsn"/>
  1680. <col ref="reqpsnnm"/>
  1681. <col ref="reqflag"/>
  1682. <col ref="reqflagnm"/>
  1683. <col ref="reqmthd" _key="true"/>
  1684. <col ref="reqprid"/>
  1685. <col ref="prodplce"/>
  1686. <col ref="prodcmpycd"/>
  1687. <col ref="prodcmpynm"/>
  1688. <col ref="maincustlastsuplplce" _key="true"/>
  1689. <col ref="maincustlastsuplplcenm"/>
  1690. <col ref="suppcustcd"/>
  1691. <col ref="suppcustnm"/>
  1692. <col ref="conflag"/>
  1693. <col ref="fromconterm"/>
  1694. <col ref="toconterm"/>
  1695. <col ref="estmamt"/>
  1696. <col ref="forgncurncyunitcost"/>
  1697. <col ref="curncyunit"/>
  1698. <col ref="goodunitcost"/>
  1699. <col ref="purcflag"/>
  1700. <col ref="allsizeyn"/>
  1701. <col ref="setplceordflag"/>
  1702. <col ref="plceordbase"/>
  1703. <col ref="plceordqtycretflag"/>
  1704. <col ref="plceordnonusedd"/>
  1705. <col ref="addtaxrate"/>
  1706. <col ref="lastpurcdd"/>
  1707. <col ref="nonusetretresn"/>
  1708. <col ref="mngtflag"/>
  1709. <col ref="expnyn"/>
  1710. <col ref="cmt"/>
  1711. <col ref="cntsqty"/>
  1712. <col ref="ddavguseqty"/>
  1713. <col ref="mmavgusescheqty"/>
  1714. <col ref="mmavguseqty"/>
  1715. <col ref="prprtystocpossndayno"/>
  1716. <col ref="tmpreqflag"/>
  1717. <col ref="oldcd"/>
  1718. <col ref="bnscd"/>
  1719. <col ref="cntsunit"/>
  1720. <col ref="specvol"/>
  1721. <col ref="purccls"/>
  1722. <col ref="costconyn"/>
  1723. <col ref="com"/>
  1724. <col ref="goodtype"/>
  1725. <col ref="narcflag"/>
  1726. <col ref="keepmthd"/>
  1727. <col ref="cntrdrugyn"/>
  1728. <col ref="plceordnonusedd"/>
  1729. <col ref="expnyn"/>
  1730. <col ref="limdrugyn"/>
  1731. <col ref="gnrlspcl"/>
  1732. <col ref="orgloc"/>
  1733. <col ref="specldrug"/>
  1734. <col ref="keeptemp"/>
  1735. <col ref="deliveunit" style="left:13448px; top:23px; width:100px; height:23px; "/>
  1736. </datagrid>
  1737. </xhtml:body>
  1738. </xhtml:html>