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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>물품코드등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <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. misfComboComCdList("030R0003",cmb_purccls);
  236. misfComboComCdListMulti("R0043,R0069,R0106,R0093,R0107,R0032,R0032","cmb_asetflag,cmb_stocmngtflag,cmb_plceordqtycretflag,cmb_reqprid,cmb_plceordbase,cmb_cntsunit,cmb_specunit");
  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. /* 구매단위는 기준정보 셋팅한다. 및 copy한다. */
  255. rszfComboUnitList ( cmb_purcunit, model.getValue(opt_instcd.attribute("ref")), model.getValue(ipt_goodflag_search.attribute("ref") ) );
  256. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //규격단위
  257. // 물품구분별 권한
  258. fSetGoodFlagAuth();
  259. //rbo_instflag.select(1);
  260. model.setValue(rbo_instflag.attribute("ref"),"Y");
  261. grd_goodlist.explorerbar = "sortshow";
  262. model.setFocus("ipt_goodcd");
  263. model.refresh();
  264. }
  265. // 물품구분별 권한체크.
  266. function fSetGoodFlagAuth()
  267. {
  268. //btn_save.disabled=true; //이현민 수정test
  269. rszfGetPurcGoodFlagAuthInfo(opt_instcd.value , ipt_goodflag_search.value, getUserInfo("userid"), "%");
  270. if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")btn_save.disabled=false;//이현민
  271. }
  272. // 화면 전체 조회
  273. function fRetrGoodList(nodecopy) {
  274. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  275. misfMsterDetailRetrieve();
  276. //fAfterRetrGoodList();
  277. if(nodecopy == true)fAfterRetrGoodList();
  278. else if( nodecopy == false && grd_gooddetlist.rows - grd_gooddetlist.fixedRows== 0 )btn_insert.dispatch("DOMActivate");
  279. }
  280. function fCheckSaveData()
  281. {
  282. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  283. {
  284. messageBox("물품코드는" ,"I003");
  285. model.setFocus("ipt_goodcd");
  286. return false;
  287. }
  288. if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
  289. {
  290. messageBox("물품코드명은" ,"I003");
  291. model.setFocus("ipt_goodnm");
  292. return false;
  293. }
  294. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  295. {
  296. messageBox("대분류코드는" ,"I003");
  297. model.setFocus("ipt_lrgcd");
  298. return false;
  299. }
  300. if(model.getValue(ipt_winacnt.attribute("ref")).length== 0 )
  301. {
  302. messageBox("비용계정은" ,"I003");
  303. model.setFocus("ipt_winacnt");
  304. return false;
  305. }
  306. if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length== 0 )
  307. {
  308. messageBox("주관리부서는" ,"I003");
  309. model.setFocus("ipt_mngtdeptcd");
  310. return false;
  311. }
  312. //hbh
  313. // if(model.getValue(cmb_reqmthd.attribute("ref")).length== 0 )
  314. // {
  315. // messageBox("청구방법은" ,"I003");
  316. // model.setFocus("cmb_reqmthd");
  317. // return false;
  318. // }
  319. if(model.getValue(cmb_purcunit.attribute("ref")).length== 0 )
  320. {
  321. messageBox("구매단위은" ,"I003");
  322. model.setFocus("cmb_purcunit");
  323. return false;
  324. }
  325. if(model.getValue(ipt_exchqty.attribute("ref")).length== 0 )
  326. {
  327. messageBox("환산수량은" ,"I003");
  328. model.setFocus("ipt_exchqty");
  329. return false;
  330. }
  331. if(model.getValue(cmb_deliveunit.attribute("ref")).length== 0 )
  332. {
  333. messageBox("불출단위는" ,"I003");
  334. model.setFocus("cmb_deliveunit");
  335. return false;
  336. }
  337. if(model.getValue(cmb_stocmngtflag.attribute("ref")).length== 0 )
  338. {
  339. messageBox("재고관리기준은" ,"I003");
  340. model.setFocus("cmb_stocmngtflag");
  341. return false;
  342. }
  343. if(model.getValue(cmb_asetflag.attribute("ref")).length== 0 )
  344. {
  345. messageBox("자산구분은" ,"I003");
  346. model.setFocus("cmb_asetflag");
  347. return false;
  348. }
  349. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) <= getCurrentDate() && model.getValue(ipt_nonusetretresn.attribute("ref")) == 0)
  350. {
  351. messageBox("코드 불용일자를 선택하신 경우에는 불용사유가 " ,"I003");
  352. model.setFocus("ipt_nonusetretresn");
  353. return false;
  354. }
  355. // if(model.getValue(ipt_toconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  356. // {
  357. // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  358. // model.setFocus("ipt_fromconterm");
  359. // return false;
  360. //
  361. // }
  362. //
  363. // if(model.getValue(ipt_fromconterm.attribute("ref")).length > 0 && (model.getValue(ipt_toconterm.attribute("ref")) < model.getValue(ipt_fromconterm.attribute("ref"))) )
  364. // {
  365. // messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
  366. // model.setFocus("ipt_toconterm");
  367. // return false;
  368. // }
  369. //
  370. return true;
  371. }
  372. function fCheckSaveMasterData()
  373. {
  374. for(var currow = grd_mastexcel.fixedRows ; currow < grd_mastexcel.rows ; currow++)
  375. {
  376. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("goodnm")).length == 0)
  377. {
  378. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 물품코드를 " ,"C001");
  379. grd_mastexcel.row = currow ;
  380. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  381. return false;
  382. }
  383. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("lrgcd")).length == 0)
  384. {
  385. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 대분류코드를 " ,"C001");
  386. grd_mastexcel.row = currow ;
  387. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  388. return false;
  389. }
  390. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("mdlcd")).length == 0)
  391. {
  392. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 중분류코드를 " ,"C001");
  393. grd_mastexcel.row = currow ;
  394. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  395. return false;
  396. }
  397. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("goodunitcost")).length == 0)
  398. {
  399. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 단가를 " ,"C001");
  400. grd_mastexcel.row = currow ;
  401. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  402. return false;
  403. }
  404. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("purcunit")).length == 0)
  405. {
  406. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 포장단위를 " ,"C001");
  407. grd_mastexcel.row = currow ;
  408. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  409. return false;
  410. }
  411. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("deliveunit")).length == 0)
  412. {
  413. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 불출단위를 " ,"C001");
  414. grd_mastexcel.row = currow ;
  415. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  416. return false;
  417. }
  418. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("exchqty")).length == 0)
  419. {
  420. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 환산수량을 " ,"C001");
  421. grd_mastexcel.row = currow ;
  422. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  423. return false;
  424. }
  425. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("maincustlastsuplplce")).length == 0)
  426. {
  427. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 주거래처코드를 " ,"C001");
  428. grd_mastexcel.row = currow ;
  429. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  430. return false;
  431. }
  432. if(grd_mastexcel.valueMatrix(currow , grd_mastexcel.colRef("mainmngtdeptcd")).length == 0)
  433. {
  434. messageBox((currow - grd_mastexcel.fixedRows + 1) + " 번째 관리부서코드를 " ,"C001");
  435. grd_mastexcel.row = currow ;
  436. grd_mastexcel.col= grd_mastexcel.colRef("goodcd");
  437. return false;
  438. }
  439. }
  440. return true;
  441. }
  442. function fAfterRetrGoodList()
  443. {
  444. if (grd_gooddetlist.rows == 0 )btn_insert.dispatch("DOMActivate");
  445. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  446. if(model.getValue(ipt_nonusetretdd.attribute("ref")).length > 0 && model.getValue(ipt_nonusetretdd.attribute("ref")) < getCurrentDate())ipt_nonusetretdd.attribute("background-color") = "#c0c0c0";
  447. else ipt_nonusetretdd.attribute("background-color") = "#ffffff";
  448. grp_detail.refresh();
  449. grp_etcgood.refresh();
  450. grd_gooddetlist.row = 1;
  451. model.setFocus("ipt_goodcd");
  452. }
  453. function fCheckAuth() {
  454. btn_search.disabled = !checkAuth("R") ;
  455. btn_save.disabled = !checkAuth("X") ; //이현민
  456. //btn_prt.disabled = !checkAuth("P") ;
  457. }
  458. function fSetDataCopy(){
  459. if(grd_gooddetlist.rows < grd_goodlist.fixedRows)grd_gooddetlist.row = 1;
  460. misfGridRowStatusChange(grd_gooddetlist,"/root/main/list/gooddet" , "/root/main/gooddet");
  461. grp_detail.refresh();
  462. }
  463. function fDefaultSetting()
  464. {
  465. model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(ipt_goodflag_search.attribute("ref")));
  466. model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
  467. model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
  468. model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(ipt_lrgcd_search.attribute("ref")));
  469. model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , model.getValue(ipt_lrgnm_search.attribute("ref")));
  470. model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(ipt_mdlcd_search.attribute("ref")));
  471. model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , model.getValue(ipt_mdlnm_search.attribute("ref")));
  472. model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(ipt_smlcd_search.attribute("ref")));
  473. model.setValue(grd_gooddetlist.nodeset + "/smlnm" , model.getValue(ipt_smlnm_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. //jhj 추가
  488. ipt_goodcd.disabled = false;
  489. ipt_goodnm.disabled = false;
  490. ipt_lrgcd.disabled = false;
  491. ipt_winacnt.disabled = false;
  492. cmb_asetflag.disabled = false;
  493. cmb_purcunit.disabled = false;
  494. cmb_deliveunit.disabled = false;
  495. ipt_exchqty.disabled = false;
  496. ipt_mngtdeptcd.disabled = false;
  497. cmb_stocmngtflag.disabled = false;
  498. cmb_purccls.disabled = false;
  499. }
  500. function fChkSaveData(pgrid_name, ptarget_node, psource_node) {
  501. var node1 = instance1.selectNodes(ptarget_node + "/*");
  502. var node2 = instance1.selectNodes(psource_node + "/*");
  503. for (var i = 0; i < node1.length ; i++) {
  504. for (var j = 0; j < node2.length; j++) {
  505. if (node1.item(i).nodeName == node2.item(j).nodeName) {
  506. var nextnode1 = instance1.selectNodes(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/*");
  507. var nextnode2 = instance1.selectNodes(psource_node + "/" + node2.item(j).nodeName + "/*");
  508. var copytarget = ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]";
  509. var copysource = psource_node + "/" + node2.item(j).nodeName;
  510. for (var k = 0; k < nextnode1.length; k++) {
  511. for (var p = 0; p < nextnode2.length; p++) {
  512. if (nextnode1.item(k).nodeName == nextnode2.item(p).nodeName) {
  513. if (model.getValue(ptarget_node + "/" + node1.item(i).nodeName + "[" + (pgrid_name.row - pgrid_name.fixedRows + 1) + "]" + "/" + nextnode1.item(k).nodeName) !=
  514. model.getValue(psource_node + "/" + node2.item(j).nodeName + "/" + nextnode2.item(p).nodeName))return true;
  515. }
  516. }
  517. }
  518. }
  519. }
  520. }
  521. return false;
  522. }
  523. function fCheckRetrieveData()
  524. {
  525. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  526. {
  527. messageBox("물품구분을 " ,"C002");
  528. model.setFocus("ipt_goodflag_search");
  529. return false;
  530. }
  531. /*
  532. if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 && model.getValue(ipt_oldcd_search.attribute("ref")).length== 0 )
  533. {
  534. messageBox("대분류코드를 " ,"C002");
  535. model.setFocus("ipt_lrgcd_search");
  536. return false;
  537. }
  538. if(model.getValue(ipt_goodcd_search.attribute("ref")).length == 0 && model.getValue(ipt_goodnm_search.attribute("ref")).length < 4)
  539. {
  540. messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
  541. model.setFocus("ipt_goodcd_search");
  542. return false;
  543. }
  544. */
  545. return true;
  546. }
  547. function fInstGoodCdCopy()
  548. {
  549. if(grd_goodlist.row - grd_goodlist.fixedRows == 0)return;
  550. btn_insert.dispatch("DOMActivate");
  551. model.SetValue(ipt_goodcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodcd"));
  552. model.SetValue(ipt_goodnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodnm"));
  553. model.SetValue(ipt_goodhngnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodhngnm"));
  554. model.SetValue(ipt_goodengnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/goodengnm"));
  555. model.SetValue(ipt_lrgcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgcd"));
  556. model.SetValue(opt_lrgnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/lrgnm"));
  557. model.SetValue(ipt_mdlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlcd"));
  558. model.SetValue(opt_mdlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/mdlnm"));
  559. model.SetValue(ipt_smlcd.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlcd"));
  560. model.SetValue(opt_smlnm.attribute("ref"),model.getValue(grd_goodlist.nodeset+"["+grd_goodlist.row+"]/smlnm"));
  561. model.refresh();
  562. model.setFocus("ipt_winacnt");
  563. }
  564. function fGoodCdCopy()
  565. {
  566. if(model.getValue(ipt_goodflag_search.attribute("ref")).length== 0 )
  567. {
  568. messageBox("물품구분을 " ,"C002");
  569. model.setFocus("ipt_goodflag_search");
  570. return false;
  571. }
  572. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  573. {
  574. messageBox("대분류코드를 " ,"C002");
  575. model.setFocus("ipt_lrgcd");
  576. return false;
  577. }
  578. if(model.getValue(ipt_mdlcd.attribute("ref")).length== 0 )
  579. {
  580. messageBox("중분류코드를 " ,"C002");
  581. model.setFocus("ipt_mdlcd");
  582. return false;
  583. }
  584. model.setValue("/root/send/goodcopy/goodflag", model.getValue(ipt_goodflag_search.attribute("ref")));
  585. model.setValue("/root/send/goodcopy/lrgcd", model.getValue(ipt_lrgcd.attribute("ref")));
  586. model.setValue("/root/send/goodcopy/mdlcd", model.getValue(ipt_mdlcd.attribute("ref")));
  587. submit("TRRSC05303");
  588. var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
  589. 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";
  590. model.setValue(ipt_goodcd.attribute("ref"), goodcd);
  591. grp_detail.refresh();
  592. }
  593. ]]>
  594. </script>
  595. </xhtml:head>
  596. <xhtml:body guideline="1,1373;">
  597. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  598. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">식자재 코드 등록</caption>
  599. </group>
  600. <group id="group3" scroll="auto" style="left:0; top:38; width:1195; height:744; ">
  601. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  602. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:61px; "/>
  603. <caption id="caption3" class="search_name" style="left:15; top:35; width:86px; height:17px; ">물품코드 :</caption>
  604. <caption id="caption8" class="search_name" style="left:15px; top:9; width:83px; height:17px; ">대 분 류 :</caption>
  605. <caption id="caption61" class="search_name" style="left:353px; top:9px; width:83px; height:17px; ">중 분 류 :</caption>
  606. <caption id="caption39" class="search_name" style="left:710px; top:9px; width:86px; height:17px; ">소 분 류 :</caption>
  607. <line id="line1" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:52px; "/>
  608. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:20px; width:56px; height:22px; text-align:left; ">
  609. <caption>조회</caption>
  610. <script type="javascript" ev:event="DOMActivate">
  611. <![CDATA[
  612. if(fCheckRetrieveData() == false)return;
  613. fRetrGoodList(false);
  614. ]]>
  615. </script>
  616. </button>
  617. <input id="ipt_lrgcd_search" ref="/root/send/goodlist/lrgcd" class="input_search" style="left:100; top:8; width:60; height:19px; ">
  618. <script type="javascript" ev:event="xforms-value-changed">
  619. <![CDATA[
  620. if (model.getValue(ipt_lrgcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_lrgnm_search.attribute("ref"),"");
  621. 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");
  622. model.refresh();
  623. ]]>
  624. </script>
  625. </input>
  626. <button id="btn_lrgcd_search" class="icon_search" style="left:164px; top:10; width:16px; height:16px; ">
  627. <caption/>
  628. <script type="javascript" ev:event="DOMActivate">
  629. <![CDATA[
  630. rszfOpenPopUpListByWndName(ipt_lrgcd_search,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag_search");
  631. model.refresh();
  632. ]]>
  633. </script>
  634. </button>
  635. <input id="ipt_lrgnm_search" ref="/root/send/goodlist/lrgnm" class="input_search" style="left:183px; top:8px; width:160px; height:19px; ">
  636. <script type="javascript" ev:event="xforms-value-changed">
  637. <![CDATA[
  638. if(ipt_lrgnm_search.value != ""){
  639. rszfValidationCheck("TRRSD00131", "lrglist", "refcond,goodflag,lrgcd,lrgnm",
  640. "lrgnm," + model.getValue(ipt_goodflag_search.attribute("ref")) +",," + model.getValue(ipt_lrgnm_search.attribute("ref")),
  641. "","lrgcd,lrgnm" ,ipt_lrgcd_search,"SPRSD00130","goodflag","ipt_goodflag_search");
  642. }else{
  643. ipt_lrgcd_search.value = "";
  644. }
  645. model.refresh();
  646. ]]>
  647. </script>
  648. </input>
  649. <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" _chartype="upper" style="left:186px; top:34px; width:497px; height:19px; "/>
  650. <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" maxlength="12" style="left:100px; top:34px; width:84px; height:19px; ">
  651. <script type="javascript" ev:event="onkeydown">
  652. <![CDATA[
  653. if (event.keyCode == 13)
  654. {
  655. ipt_goodcd_search.value = ipt_goodcd_search.currentText;
  656. ipt_goodcd_search.refresh();
  657. btn_search.dispatch("DOMActivate");
  658. }
  659. ]]>
  660. </script>
  661. </input>
  662. <input id="ipt_mdlcd_search" ref="/root/send/goodlist/mdlcd" class="input_search" style="left:439px; top:8px; width:60px; height:19px; ">
  663. <script type="javascript" ev:event="xforms-value-changed">
  664. <![CDATA[
  665. if (model.getValue(ipt_mdlcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_mdlnm_search.attribute("ref"),"");
  666. 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")) +","
  667. ,"","mdlcd,mdlnm" ,ipt_mdlcd_search,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
  668. model.refresh();
  669. ]]>
  670. </script>
  671. </input>
  672. <button id="btn_mdlcd_search" class="icon_search" style="left:503px; top:10; width:16px; height:16px; ">
  673. <caption/>
  674. <script type="javascript" ev:event="DOMActivate">
  675. <![CDATA[
  676. rszfOpenPopUpListByWndName(ipt_mdlcd_search,"","mdlcd,mdlnm","SPRSD00140" ,"goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
  677. model.refresh();
  678. ]]>
  679. </script>
  680. </button>
  681. <input id="ipt_mdlnm_search" ref="/root/send/goodlist/mdlnm" class="input_search" style="left:523px; top:8px; width:160px; height:19px; ">
  682. <script type="javascript" ev:event="xforms-value-changed">
  683. <![CDATA[
  684. if(ipt_mdlnm_search.value != ""){
  685. rszfValidationCheck("TRRSD00141", "mdllist", "refcond,goodflag,lrgcd,mdlcd,mdlnm",
  686. "mdlnm," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + ",," + model.getValue(ipt_mdlnm_search.attribute("ref"))
  687. ,"","mdlcd,mdlnm" ,ipt_mdlcd_search,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag_search,ipt_lrgcd_search,ipt_lrgnm_search");
  688. }else{
  689. ipt_mdlcd_search.value = "";
  690. }
  691. model.refresh();
  692. ]]>
  693. </script>
  694. </input>
  695. <input id="ipt_smlcd_search" ref="/root/send/goodlist/smlcd" class="input_search" style="left:792px; top:8px; width:60px; height:19px; ">
  696. <script type="javascript" ev:event="xforms-value-changed">
  697. <![CDATA[
  698. if (model.getValue(ipt_smlcd_search.attribute("ref")).length == 0 ) model.setValue(ipt_smlnm_search.attribute("ref"),"");
  699. 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")) + "," +
  700. 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");
  701. model.refresh();
  702. ]]>
  703. </script>
  704. </input>
  705. <button id="btn_smlcd_search" class="icon_search" style="left:856px; top:10; width:16px; height:16px; ">
  706. <caption/>
  707. <script type="javascript" ev:event="DOMActivate">
  708. <![CDATA[
  709. 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");
  710. model.refresh();
  711. ]]>
  712. </script>
  713. </button>
  714. <input id="ipt_smlnm_search" ref="/root/send/goodlist/smlnm" class="input_search" style="left:875px; top:8px; width:160px; height:19px; ">
  715. <script type="javascript" ev:event="xforms-value-changed">
  716. <![CDATA[
  717. if(ipt_smlnm_search.value != ""){
  718. rszfValidationCheck("TRRSD00151", "smllist", "refcond,goodflag,lrgcd,mdlcd,smlcd,smlnm",
  719. "smlnm," + model.getValue(ipt_goodflag_search.attribute("ref")) + "," + model.getValue(ipt_lrgcd_search.attribute("ref")) + "," + model.getValue(ipt_mdlcd_search.attribute("ref")) + ",," +
  720. model.getValue(ipt_smlnm_search.attribute("ref"))
  721. ,"","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");
  722. }else{
  723. ipt_smlcd_search.value = "";
  724. }
  725. model.refresh();
  726. ]]>
  727. </script>
  728. </input>
  729. <caption id="caption81" class="search_name" style="left:710px; top:35px; width:85px; height:17px; ">기 관 :</caption>
  730. <select1 id="rbo_instflag" ref="/root/send/goodlist/instflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:794px; top:35px; width:95px; height:15px; background-color:transparent; border-style:none; ">
  731. <choices>
  732. <itemset nodeset="/root/init/instflag">
  733. <label ref="label"/>
  734. <value ref="value"/>
  735. </itemset>
  736. </choices>
  737. </select1>
  738. <input id="ipt_goodflag_search" ref="/root/send/goodlist/goodflag" visibility="hidden" style="left:1075px; top:30px; width:25px; height:19px; "/>
  739. </group>
  740. <caption id="caption9" class="tit_2" style="left:5px; top:81px; width:82px; height:13px; ">식자재목록</caption>
  741. <line id="line7" class="line_1" style="x1:0px; y1:95px; x2:735; y2:95px; "/>
  742. <caption id="caption1" class="tit_2" style="left:745; top:81px; width:95px; height:13px; ">통합품목정보</caption>
  743. <switch id="switch2" style="left:0px; top:450px; width:735px; height:284px; border-color:#c7a3cf; border-style:solid; ">
  744. <case id="case1">
  745. <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; ">
  746. <col ref="fromdd"/>
  747. <col ref="maincustlastsuplplcenm"/>
  748. <col ref="suppcustnm"/>
  749. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  750. <col ref="forgncurncyunitcost" format="#,###" style="text-align:right; "/>
  751. <col ref="curncyunit"/>
  752. <col/>
  753. <col format="#,###" style="text-align:right; "/>
  754. <col ref="prodplce" format="#,###" style="text-align:right; "/>
  755. <col ref="goodnm"/>
  756. <col ref="goodhngnm"/>
  757. <col ref="goodengnm"/>
  758. <col ref="goodspec"/>
  759. <col ref="goodmodel"/>
  760. <col ref="mainmngtdeptnm"/>
  761. <col ref="winacntnm"/>
  762. <col ref="amtacntnm"/>
  763. <col ref="lastupdtrnm"/>
  764. <script type="javascript" ev:event="ondblclick">
  765. <![CDATA[
  766. if(grd_goodlist.row > 0)
  767. {
  768. model.setValue("/root/send/gooddetlist/goodcd", model.getValue(grd_goodlist.nodeset + "["+ grd_goodlist.row + "]/goodcd" ));
  769. model.setValue("/root/send/gooddetlist/fromdd", model.getValue(grd_costhistinfo.nodeset + "["+ grd_costhistinfo.row + "]/fromdd" ));
  770. model.setValue("/root/send/gooddetlist/useyn", "N");
  771. submit("TRRSC05302");
  772. fAfterRetrGoodList();
  773. model.setValue("/root/send/gooddetlist/fromdd","" );
  774. }
  775. ]]>
  776. </script>
  777. </datagrid>
  778. <line id="line21" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
  779. </case>
  780. <case id="case2">
  781. <line id="line49" class="line_1" style="x1:0; y1:24; x2:533px; y2:24; "/>
  782. <group id="grp_etcgood" style="left:0px; top:29px; width:530px; height:60px; ">
  783. <line id="line50" class="line_2" style="x1:0px; y1:22px; x2:528px; y2:22px; "/>
  784. <line id="line53" class="line_3" style="x1:0px; y1:46px; x2:528px; y2:46px; "/>
  785. <caption id="caption74" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">일평균사용량</caption>
  786. <caption id="caption76" class="cell_1" style="left:264px; top:0px; width:108px; height:23px; vertical-align:middle; ">발주생성구분</caption>
  787. <select1 id="cmb_plceordbase" ref="/root/main/gooddet/gooddetlist/plceordbase" class="combo_essential" appearance="minimal" style="left:111px; top:2px; width:150px; height:19px; ">
  788. <choices>
  789. <itemset nodeset="/root/init/plceordbase">
  790. <label ref="cdnm"/>
  791. <value ref="cdid"/>
  792. </itemset>
  793. </choices>
  794. </select1>
  795. <caption id="caption78" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">발주기준</caption>
  796. <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; "/>
  797. <caption id="caption79" class="cell_1" style="left:264px; top:24px; width:108px; height:23px; vertical-align:middle; ">재고보유일수</caption>
  798. <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; "/>
  799. <select1 id="cmb_plceordqtycretflag" ref="/root/main/gooddet/gooddetlist/plceordqtycretflag" class="combo_essential" appearance="minimal" style="left:375px; top:2px; width:153px; height:19px; ">
  800. <choices>
  801. <itemset nodeset="/root/init/plceordqtycretflag">
  802. <label ref="cdnm"/>
  803. <value ref="cdid"/>
  804. </itemset>
  805. </choices>
  806. </select1>
  807. </group>
  808. </case>
  809. <case id="case4">
  810. <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; ">
  811. <col ref="instcd"/>
  812. <col ref="instnm"/>
  813. </datagrid>
  814. <line id="line22" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
  815. </case>
  816. <case id="case3" selected="true">
  817. <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:733; y2:24px; "/>
  818. <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; ">
  819. <col ref="goodnm"/>
  820. <col ref="lrgcd"/>
  821. <col ref="lrgnm"/>
  822. <col ref="mdlcd"/>
  823. <col ref="mdlnm"/>
  824. <col ref="winacnt"/>
  825. <col ref="amtacnt"/>
  826. <col ref="mainmngtdeptcd"/>
  827. <col ref="mainmngtdeptname"/>
  828. <col ref="purcunit"/>
  829. <col ref="deliveunit"/>
  830. <col ref="exchqty"/>
  831. <col ref="maincustlastsuplplce"/>
  832. <col ref="maincustlastsuplplcenm"/>
  833. <col ref="suppcustcd"/>
  834. <col ref="suppcustnm"/>
  835. <col ref="goodunitcost"/>
  836. <col ref="bnscd"/>
  837. <col ref="orgloc"/>
  838. <col ref="cmt"/>
  839. <col ref="addtaxrate"/>
  840. </datagrid>
  841. <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; ">
  842. <col ref="file" style="text-align:center; "/>
  843. <col ref="filesize" format="#,###" style="text-align:right; "/>
  844. <col ref="instcd"/>
  845. </datagrid>
  846. </case>
  847. </switch>
  848. <button id="btn_insert" class="btn2_letter2" navindex="12" style="left:1152px; top:74px; width:42px; height:19px; ">
  849. <caption>추가</caption>
  850. <script type="javascript" ev:event="DOMActivate">
  851. <![CDATA[
  852. misfGridInit(grd_gooddetlist);
  853. misfGridIUD(grd_gooddetlist, "A");
  854. fDefaultSetting();
  855. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  856. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  857. //if(cmb_purccls.length> 0) cmb_purccls.selectedindex= 0;
  858. if(ipt_fromdd.attribute("background-color") == "#c0c0c0")ipt_fromdd.attribute("background-color") = "#ffffff";
  859. model.refresh();
  860. model.setFocus("ipt_goodcd");
  861. ]]>
  862. </script>
  863. </button>
  864. <button id="btn_choidel" class="btn2_letter5" style="left:1075px; top:74px; width:75px; height:19px; ">
  865. <caption>선택행삭제</caption>
  866. <script type="javascript" ev:event="DOMActivate">
  867. <![CDATA[
  868. misfGridIUD(grd_gooddetlist, "D");
  869. misfGridIUD(grd_goodlist, "D");
  870. ]]>
  871. </script>
  872. </button>
  873. <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" style="left:0px; top:100px; width:735px; height:322px; ">
  874. <col ref="goodcd" type="output" _key="true"/>
  875. <col ref="goodflag" visibility="hidden" _key="true"/>
  876. <col ref="goodnm" type="output" _key="true"/>
  877. <col ref="lrgcd"/>
  878. <col ref="lrgnm"/>
  879. <col ref="mdlcd"/>
  880. <col ref="mdlnm"/>
  881. <col ref="smlcd"/>
  882. <col ref="smlnm"/>
  883. <col ref="prodcmpynm" visibility="hidden"/>
  884. <col ref="goodmodel" visibility="hidden"/>
  885. <col ref="goodhngnm" visibility="hidden"/>
  886. <col ref="goodengnm" visibility="hidden"/>
  887. <col ref="asetflag" visibility="hidden"/>
  888. <col ref="prodcmpycd" visibility="hidden"/>
  889. <script type="javascript" ev:event="onrowchanged">
  890. <![CDATA[
  891. fRetrGoodList(true);
  892. ]]>
  893. </script>
  894. <script type="javascript" ev:event="onaftersort">
  895. <![CDATA[
  896. grd_goodlist.gridToInstance();
  897. ]]>
  898. </script>
  899. <script type="javascript" ev:event="xforms-value-changed">
  900. <![CDATA[
  901. ]]>
  902. </script>
  903. </datagrid>
  904. <button id="btn_instcd" class="btn_sw" group="tab" selected="true" style="left:180px; top:428px; width:90px; height:22px; ">
  905. <caption>사용기관정보</caption>
  906. <toggle case="case4" ev:event="DOMActivate"/>
  907. <script type="javascript" ev:event="onclick">
  908. <![CDATA[
  909. btn_excelload.visible = false;
  910. btn_savemaster.visible = false;
  911. ]]>
  912. </script>
  913. </button>
  914. <button id="btn_addinfo" class="btn_sw" group="tab" style="left:90px; top:428px; width:90px; height:22px; ">
  915. <caption>부가입력정보</caption>
  916. <toggle case="case2" ev:event="DOMActivate"/>
  917. <script type="javascript" ev:event="onclick">
  918. <![CDATA[
  919. btn_excelload.visible = false;
  920. btn_savemaster.visible = false;
  921. ]]>
  922. </script>
  923. </button>
  924. <button id="btn_costhistinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:428px; width:90px; height:22px; ">
  925. <caption>이력정보</caption>
  926. <toggle case="case1" ev:event="DOMActivate"/>
  927. <script type="javascript" ev:event="onclick">
  928. <![CDATA[
  929. btn_excelload.visible = false;
  930. btn_savemaster.visible = false;
  931. ]]>
  932. </script>
  933. </button>
  934. <button id="btn_masterinsert" class="btn_sw8" visibility="hidden" group="tab" style="left:270px; top:429px; width:112px; height:22px; ">
  935. <caption>신규코드일관등록</caption>
  936. <toggle case="case3" ev:event="DOMActivate"/>
  937. <script type="javascript" ev:event="onclick">
  938. <![CDATA[
  939. btn_excelload.visible = true;
  940. btn_savemaster.visible = true;
  941. ]]>
  942. </script>
  943. </button>
  944. <line id="line3" class="line_1" style="x1:740; y1:95px; x2:1195; y2:95px; "/>
  945. <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" style="left:20px; top:155px; width:440px; height:97px; ">
  946. <col ref="instcd"/>
  947. <col ref="goodcd"/>
  948. <col ref="goodflag"/>
  949. <col ref="goodnm"/>
  950. <col ref="goodcd_instcd"/>
  951. <col ref="bnscd"/>
  952. <col ref="addtaxrate"/>
  953. <col ref="goodspec"/>
  954. <col ref="goodmodel"/>
  955. <col ref="asetflag"/>
  956. <col ref="lrgcd"/>
  957. <col ref="lrgnm"/>
  958. <col ref="mdlcd"/>
  959. <col ref="mdlnm"/>
  960. <col ref="smlcd"/>
  961. <col ref="smlnm"/>
  962. <col ref="edicd"/>
  963. <col ref="prodcmpycd"/>
  964. <col ref="prodcmpynm"/>
  965. <col ref="cmt" visibility="hidden"/>
  966. <col ref="comnm" visibility="hidden"/>
  967. <col ref="useyn" visibility="hidden"/>
  968. <col ref="maincustlastsuplplce" visibility="hidden"/>
  969. <col ref="maincustlastsuplplcenm" visibility="hidden"/>
  970. <col ref="suppcustcd" visibility="hidden"/>
  971. <col ref="suppcustnm" visibility="hidden"/>
  972. <col ref="setunit" visibility="hidden"/>
  973. <col ref="goodunitcost" visibility="hidden"/>
  974. <col ref="purcflag" visibility="hidden"/>
  975. <col ref="purcflagnm" visibility="hidden"/>
  976. <col ref="reqmthd" visibility="hidden"/>
  977. <col ref="reqmthdnm" visibility="hidden"/>
  978. <col ref="reqflag" visibility="hidden"/>
  979. <col ref="reqflagnm" visibility="hidden"/>
  980. <col ref="reqprid" visibility="hidden"/>
  981. <col ref="reqpridnm" visibility="hidden"/>
  982. <col ref="fstrgstrid" visibility="hidden"/>
  983. <col ref="fstrgstdt" visibility="hidden"/>
  984. <col ref="lastupdtrid" visibility="hidden"/>
  985. <col ref="lastupdtdt" visibility="hidden"/>
  986. </datagrid>
  987. <button id="btn_excel2" class="btn5_letter3" style="left:662px; top:75px; width:53px; height:19px; ">
  988. <caption>Excel</caption>
  989. <script type="javascript" ev:event="DOMActivate">
  990. <![CDATA[
  991. var vdate = new Date();
  992. var HH = vdate.getHours();
  993. var MI = vdate.getMinutes();
  994. var SS = vdate.getSeconds();
  995. var vTime = HH +"" + MI +"" + SS;
  996. var vFileNM = "식자재목록내역_"+getCurrentDate()+ vTime;
  997. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  998. if (fileName != "")
  999. {
  1000. grd_excel.saveExcel(fileName, vFileNM, true, true, "");
  1001. }
  1002. ]]>
  1003. </script>
  1004. </button>
  1005. <button id="btn_excelload" class="btn5_letter3" visibility="hidden" style="left:670px; top:430px; width:53px; height:19px; ">
  1006. <caption>Excel</caption>
  1007. <script type="javascript" ev:event="DOMActivate">
  1008. <![CDATA[
  1009. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1010. misfGridInit(grd_mastexcel);
  1011. grd_mastexcel.loadExcel(fileName, 1);
  1012. grd_mastexcel.refresh();
  1013. //물품코드를 찾아서 매핑
  1014. insertTomaster();
  1015. ]]>
  1016. </script>
  1017. </button>
  1018. <button id="btn_savemaster" class="btn2_letter2" navindex="12" visibility="hidden" style="left:620px; top:430px; width:42px; height:19px; ">
  1019. <caption>등록</caption>
  1020. <script type="javascript" ev:event="DOMActivate">
  1021. <![CDATA[
  1022. /*
  1023. misfGridInit(grd_gooddetlist);
  1024. misfGridIUD(grd_gooddetlist, "A");
  1025. fDefaultSetting();
  1026. model.copyNode("/root/main/gooddet/gooddetlist","/root/main/list/gooddet/gooddetlist");
  1027. if(cmb_asetflag.length> 0) cmb_asetflag.selectedindex= 0;
  1028. if(ipt_fromdd.attribute("background-color") == "#c0c0c0")ipt_fromdd.attribute("background-color") = "#ffffff";
  1029. model.refresh();
  1030. model.setFocus("ipt_goodcd");
  1031. */
  1032. if(fCheckSaveMasterData() == false) return;
  1033. model.copyNode("/root/send/sendmasterexcel","/root/init/copydata/mastexcel");
  1034. model.makeValue("/root/send/sendmasterexcel/instcd",model.getValue("/root/send/unitref/instcd") );
  1035. alert(model.getValue("/root/send/sendmasterexcel/instcd"))
  1036. //return;
  1037. //submit("TXRSC05307");
  1038. //alert("ok");
  1039. var maxsize = upload1.attribute("filesize");
  1040. //alert("maxsize" + maxsize);
  1041. var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1042. //alert("filename"+filename);
  1043. var filelist = filename.split("|");
  1044. //alert("filelist"+filelist);
  1045. var s = new String(filelist[filelist.length-1]);
  1046. //alert("s"+s);
  1047. var ss = s.split("\\");
  1048. //alert("ss"+ ss);
  1049. if(filename !=""){
  1050. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  1051. for(var i = 0 ; i < filelist.length ; i++ ){
  1052. grd_attach.addRow(false);
  1053. if(filelist[i] == ""){
  1054. //alert(grd_attach.rows - 1);
  1055. grd_attach.removeRow(false);
  1056. grd_attach.refresh();
  1057. }else{
  1058. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  1059. //파일크기('tfHelper.checkFileSize' 참조)
  1060. var fileCnt = upload1.getFileCount();
  1061. var lastIndex = fileCnt - 1;
  1062. var fileSize = upload1.getFileSize(lastIndex);
  1063. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  1064. if (!checkFileSize(upload1)){
  1065. grd_attach.removeItem();
  1066. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  1067. return;
  1068. }
  1069. }
  1070. }
  1071. model.setValue("root/send/attach/instcd",model.getValue("/root/send/unitref/instcd") );
  1072. //model.makeValue("/root/send/sendmasterexcel/instcd",model.getValue("/root/send/unitref/instcd") );
  1073. model.refresh();
  1074. //alert(model.getValue("/root/send/sendmasterexcel/instcd"))
  1075. openLoadingBar("파일업로드 작업중입니다... ") ;
  1076. submit("TXRSC05307");
  1077. closeLoadingBar();
  1078. misfGridInit(grd_attach);
  1079. //btn_search.dispatch("DOMActivate");
  1080. }
  1081. ]]>
  1082. </script>
  1083. </button>
  1084. <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; "/>
  1085. </group>
  1086. <group id="group4" visibility="visible" style="left:0; top:12; width:1195; height:27; ">
  1087. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
  1088. <caption>저장</caption>
  1089. <script type="javascript" ev:event="DOMActivate">
  1090. <![CDATA[
  1091. //이현민
  1092. model.setValue("/root/send/scheckgood/scheckgoodcd",model.getValue("/root/main/gooddet/gooddetlist/goodcd"));
  1093. //alert(model.getValue("/root/send/scheckgood/scheckgoodcd"));
  1094. submit("TRRSC05602");
  1095. //alert(model.getValue("/root/main/checkgood/checkgoodcd"));
  1096. //alert(model.getValue("/root/main/checkgood/checkgoodcd").getTrim().length);
  1097. if (grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 1 || grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 3 ) {
  1098. if(model.getValue("/root/main/checkgood/checkgoodcd").getTrim().length != 0 ) {
  1099. messageBox("이미 "+model.getValue("/root/main/checkgood/checkgoodcd")+ "로 저장된 물품Master가 존재합니다. 다시 중분류 돋보기 버튼을 눌러서 물품코드를 다시 생성해주세요" ,"");
  1100. return;
  1101. //alert("이미 "+model.getValue("/root/main/checkgood/checkgoodcd")+ "~로 저장된 물품Master가 존재합니다. 다시 중분류 돋보기 버튼을 눌러서 물품코드를 다시 생성해주세요")
  1102. }
  1103. }
  1104. //이현민
  1105. if(fCheckSaveData() == false)return;
  1106. fSetDataCopy();
  1107. model.refresh();
  1108. misfSave("TXRSC05302");
  1109. if (model.getValue(gvErrorMsgPath + "/type") != "error" && grd_goodlist.row > 0 )fRetrGoodList(true);//btn_search.dispatch("DOMActivate");
  1110. /*
  1111. {
  1112. submit("TRRSC05301");
  1113. grd_goodlist.clearStatus();
  1114. }
  1115. */
  1116. ]]>
  1117. </script>
  1118. </button>
  1119. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1120. <caption>초기화</caption>
  1121. <script type="javascript" ev:event="DOMActivate">
  1122. <![CDATA[
  1123. fInitialize();
  1124. ]]>
  1125. </script>
  1126. </button>
  1127. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  1128. <caption>화면이동</caption>
  1129. </button>
  1130. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  1131. <caption>출력</caption>
  1132. </button>
  1133. <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:886px; top:4px; width:100px; height:19px; "/>
  1134. <output id="opt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:791px; top:4px; width:100px; height:19px; "/>
  1135. </group>
  1136. <group id="grp_detail" style="left:740px; top:135px; width:455px; height:595px; ">
  1137. <line id="line19" class="line_2" style="x1:0px; y1:463px; x2:455px; y2:463px; "/>
  1138. <line id="line18" class="line_2" style="x1:0px; y1:382px; x2:455px; y2:382px; "/>
  1139. <line id="line17" class="line_2" style="x1:0px; y1:439px; x2:455px; y2:439px; "/>
  1140. <line id="line16" class="line_2" style="x1:0px; y1:415px; x2:455px; y2:415px; "/>
  1141. <line id="line20" class="line_3" style="x1:0px; y1:510px; x2:455px; y2:510px; "/>
  1142. <line id="line6" class="line_2" style="x1:0px; y1:94px; x2:455px; y2:94px; "/>
  1143. <line id="line5" class="line_2" style="x1:0px; y1:70px; x2:455px; y2:70px; "/>
  1144. <line id="line4" class="line_2" style="x1:0px; y1:46px; x2:455px; y2:46px; "/>
  1145. <line id="line8" class="line_2" style="x1:0px; y1:22px; x2:455px; y2:22px; "/>
  1146. <line id="line15" class="line_2" style="x1:0px; y1:284px; x2:455px; y2:284px; "/>
  1147. <line id="line12" class="line_2" style="x1:0px; y1:166px; x2:455px; y2:166px; "/>
  1148. <line id="line11" class="line_2" style="x1:0px; y1:214px; x2:455px; y2:214px; "/>
  1149. <line id="line10" class="line_2" style="x1:0px; y1:190px; x2:455px; y2:190px; "/>
  1150. <line id="line9" class="line_2" style="x1:0px; y1:142px; x2:455px; y2:142px; "/>
  1151. <line id="line23" class="line_2" style="x1:0px; y1:118px; x2:455px; y2:118px; "/>
  1152. <select1 id="cmb_asetflag" ref="/root/main/gooddet/gooddetlist/asetflag" class="input_essential" disabled="true" appearance="minimal" style="left:110px; top:288px; width:200px; height:19px; ">
  1153. <choices>
  1154. <itemset>
  1155. <label/>
  1156. <value/>
  1157. </itemset>
  1158. </choices>
  1159. <script type="javascript" ev:event="xforms-value-changed">
  1160. <![CDATA[
  1161. model.setFocus("cmb_asetflag");
  1162. ]]>
  1163. </script>
  1164. <script type="javascript" ev:event="onkeydown">
  1165. <![CDATA[
  1166. if(event.keyCode == 9)
  1167. {
  1168. // if(event.shiftKey)model.setFocus("ipt_goodspec");
  1169. // else model.setFocus("ipt_lrgcd");
  1170. }
  1171. //event.preventDefault();
  1172. ]]>
  1173. </script>
  1174. </select1>
  1175. <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" class="input_essential" visibility="hidden" imemode="hangul" maxlength="450" style="left:300px; top:553px; width:15px; height:19px; ">
  1176. <script type="javascript" ev:event="onkeydown">
  1177. <![CDATA[
  1178. if(event.keyCode == 9)
  1179. {
  1180. if(event.shiftKey)model.setFocus("ipt_goodnm");
  1181. else model.setFocus("ipt_goodengnm");
  1182. }
  1183. //event.preventDefault();
  1184. ]]>
  1185. </script>
  1186. </input>
  1187. <caption id="caption50" class="cell_1" style="left:0px; top:24px; width:108px; height:23px; vertical-align:middle; ">물 품 코 드</caption>
  1188. <button id="btn_smlcd" class="icon_search" style="left:180px; top:144px; width:16px; height:16px; ">
  1189. <caption/>
  1190. <script type="javascript" ev:event="DOMActivate">
  1191. <![CDATA[
  1192. rszfOpenPopUpListByWndName(ipt_smlcd,"","smlcd,smlnm","SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm,ipt_mdlcd,opt_mdlnm");
  1193. model.refresh();
  1194. ]]>
  1195. </script>
  1196. </button>
  1197. <button id="btn_lrgcd" class="icon_search" style="left:180px; top:96px; width:16px; height:16px; ">
  1198. <caption/>
  1199. <script type="javascript" ev:event="DOMActivate">
  1200. <![CDATA[
  1201. rszfOpenPopUpListByWndName(ipt_lrgcd,"","lrgcd,lrgnm","SPRSD00130","goodflag","ipt_goodflag");
  1202. model.refresh();
  1203. model.setFocus("ipt_mdlcd");
  1204. ]]>
  1205. </script>
  1206. </button>
  1207. <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_essential" disabled="true" maxlength="12" _chartype="upper" style="left:110px; top:26px; width:168px; height:19px; ">
  1208. <script type="javascript" ev:event="onkeydown">
  1209. <![CDATA[
  1210. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1211. event.preventDefault();
  1212. ]]>
  1213. </script>
  1214. </input>
  1215. <output id="opt_smlnm" ref="/root/main/gooddet/gooddetlist/smlnm" class="output_fix" appearance="output" style="left:199px; top:142px; width:255px; height:19px; "/>
  1216. <output id="opt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="output_fix" appearance="output" style="left:199px; top:166px; width:255px; height:19px; "/>
  1217. <output id="opt_lrgnm" ref="/root/main/gooddet/gooddetlist/lrgnm" class="output_fix" appearance="output" style="left:199px; top:94px; width:255px; height:19px; "/>
  1218. <caption id="caption66" class="cell_1" style="left:0px; top:140px; width:108px; height:23px; vertical-align:middle; ">소 분 류</caption>
  1219. <output id="opt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="output_fix" appearance="output" style="left:199px; top:190px; width:255px; height:19px; "/>
  1220. <button id="btn_mdlcd" class="icon_search" style="left:180px; top:120px; width:16px; height:16px; ">
  1221. <caption/>
  1222. <script type="javascript" ev:event="DOMActivate">
  1223. <![CDATA[
  1224. rszfOpenPopUpListByWndName(ipt_mdlcd,"","mdlcd,mdlnm","SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm");
  1225. model.refresh();
  1226. //코딩 추가
  1227. //alert(grd_gooddetlist.rowStatus(grd_gooddetlist.row));
  1228. model.setValue( "/root/send/snewgoodcd/lrgcd",model.getValue("/root/main/gooddet/gooddetlist/lrgcd"));
  1229. model.setValue( "/root/send/snewgoodcd/mdlcd",model.getValue("/root/main/gooddet/gooddetlist/mdlcd"));
  1230. model.refresh();
  1231. //alert(model.getValue("/root/send/snewgoodcd/lrgcd"));
  1232. //alert(model.getValue("/root/send/snewgoodcd/mdlcd"));
  1233. //alert(model.getValue("/root/send/snewgoodcd/mdlcd"));
  1234. //
  1235. if (grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 1 || grd_gooddetlist.rowStatus(grd_gooddetlist.row) == 3 ) {
  1236. //Trim(ipt_lrgcd.currentText).length
  1237. //alert(ipt_lrgcd.currentText.getTrim());
  1238. //alert(ipt_mdlcd.currentText.getTrim());
  1239. // model.refresh();
  1240. if ( ipt_lrgcd.currentText.length > 0 || ipt_mdlcd.currentText.length >0 ) {
  1241. if ( ipt_lrgcd.currentText.getTrim().length > 0 || ipt_mdlcd.currentText.getTrim().length >0 ) {
  1242. submit("TRRSC05601");
  1243. model.setValue(ipt_goodcd.attribute("ref"),model.getValue("/root/main/newgoodcd/goodcdno"));
  1244. model.refresh();
  1245. }
  1246. }
  1247. }
  1248. ]]>
  1249. </script>
  1250. </button>
  1251. <output id="opt_mdlnm" ref="/root/main/gooddet/gooddetlist/mdlnm" class="output_fix" appearance="output" style="left:199px; top:118px; width:255px; height:19px; "/>
  1252. <caption id="caption35" class="cell_1" style="left:0px; top:164px; width:108px; height:23px; vertical-align:middle; ">입 고 계 정</caption>
  1253. <caption id="caption68" class="cell_1" style="left:0px; top:94px; width:108px; height:21px; vertical-align:middle; ">대 분 류</caption>
  1254. <caption id="caption47" class="cell_1" style="left:0px; top:48px; width:108px; height:21px; vertical-align:middle; ">물 품 명</caption>
  1255. <input id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" class="input_default" style="left:110px; top:142px; width:66px; height:19px; ">
  1256. <script type="javascript" ev:event="xforms-value-changed">
  1257. <![CDATA[
  1258. if (model.getValue(ipt_smlcd.attribute("ref")).length == 0 ) model.setValue(opt_smlnm.attribute("ref"),"");
  1259. 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")) + "," +
  1260. model.getValue(ipt_smlcd.attribute("ref")) + ",","","smlcd,smlnm" ,ipt_smlcd,"SPRSD00150","goodflag,lrgcd,lrgnm,mdlcd,mdlnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm,ipt_mdlcd,opt_mdlnm");
  1261. model.refresh();
  1262. model.setFocus("ipt_fromdd");
  1263. ]]>
  1264. </script>
  1265. <script type="javascript" ev:event="onkeydown">
  1266. <![CDATA[
  1267. if(event.keyCode == 9)
  1268. {
  1269. if(event.shiftKey)model.setFocus("ipt_mdlcd");
  1270. else model.setFocus("ipt_fromdd");
  1271. }
  1272. //event.preventDefault();
  1273. ]]>
  1274. </script>
  1275. </input>
  1276. <button id="btn_amtacnt" class="icon_search" style="left:180px; top:192px; width:16px; height:16px; ">
  1277. <caption/>
  1278. <script type="javascript" ev:event="DOMActivate">
  1279. <![CDATA[
  1280. rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
  1281. model.refresh();
  1282. ]]>
  1283. </script>
  1284. </button>
  1285. <input id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" class="input_essential" disabled="false" style="left:110px; top:94px; width:66px; height:19px; ">
  1286. <script type="javascript" ev:event="xforms-value-changed">
  1287. <![CDATA[
  1288. if (model.getValue(ipt_lrgcd.attribute("ref")).length == 0 ) model.setValue(opt_lrgnm.attribute("ref"),"");
  1289. 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");
  1290. model.refresh();
  1291. ]]>
  1292. </script>
  1293. <script type="javascript" ev:event="onkeydown">
  1294. <![CDATA[
  1295. if(event.keyCode == 9)
  1296. {
  1297. if(event.shiftKey)model.setFocus("cmb_asetflag");
  1298. else model.setFocus("ipt_mdlcd");
  1299. }
  1300. //event.preventDefault();
  1301. ]]>
  1302. </script>
  1303. </input>
  1304. <caption id="caption7" class="cell_1" style="left:0px; top:188px; width:108px; height:23px; vertical-align:middle; ">비 용 계 정</caption>
  1305. <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" disabled="false" style="left:110px; top:166px; width:66px; height:19px; ">
  1306. <script type="javascript" ev:event="xforms-value-changed">
  1307. <![CDATA[
  1308. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_winacnt.attribute("ref")) ,"","winacnt,winacntnm" ,ipt_winacnt,"PPRAC00100","","");
  1309. model.refresh();
  1310. model.setFocus("ipt_amtacnt");
  1311. ]]>
  1312. </script>
  1313. <script type="javascript" ev:event="onkeydown">
  1314. <![CDATA[
  1315. if(event.keyCode == 9)
  1316. {
  1317. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  1318. else model.setFocus("ipt_amtacnt");
  1319. }
  1320. //event.preventDefault();
  1321. ]]>
  1322. </script>
  1323. </input>
  1324. <caption id="caption29" class="cell_1" style="left:0px; top:116px; width:108px; height:23px; vertical-align:middle; ">중 분 류</caption>
  1325. <input id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" class="input_default" style="left:110px; top:118px; width:66px; height:19px; ">
  1326. <script type="javascript" ev:event="xforms-value-changed">
  1327. <![CDATA[
  1328. if (model.getValue(ipt_mdlcd.attribute("ref")).length == 0 ) model.setValue(opt_mdlnm.attribute("ref"),"");
  1329. 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")) +","
  1330. ,"","mdlcd,mdlnm" ,ipt_mdlcd,"SPRSD00140","goodflag,lrgcd,lrgnm","ipt_goodflag,ipt_lrgcd,opt_lrgnm");
  1331. model.refresh();
  1332. model.setFocus("ipt_smlcd");
  1333. ]]>
  1334. </script>
  1335. <script type="javascript" ev:event="onkeydown">
  1336. <![CDATA[
  1337. if(event.keyCode == 9)
  1338. {
  1339. if(event.shiftKey)model.setFocus("ipt_lrgcd");
  1340. else model.setFocus("ipt_smlcd");
  1341. }
  1342. //event.preventDefault();
  1343. ]]>
  1344. </script>
  1345. </input>
  1346. <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" visibility="hidden" style="left:345px; top:553px; width:10px; height:19px; ">
  1347. <script type="javascript" ev:event="xforms-value-changed">
  1348. <![CDATA[
  1349. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpynm,," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  1350. model.refresh();
  1351. // model.setFocus("ipt_goodmodel");
  1352. ]]>
  1353. </script>
  1354. <script type="javascript" ev:event="onkeydown">
  1355. <![CDATA[
  1356. if(event.keyCode == 9)
  1357. {
  1358. // if(event.shiftKey)model.setFocus("cmb_prodplce");
  1359. // else model.setFocus("ipt_goodmodel");
  1360. }
  1361. //event.preventDefault();
  1362. ]]>
  1363. </script>
  1364. </input>
  1365. <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" class="input_essential" visibility="hidden" imemode="alpha" maxlength="450" style="left:315px; top:553px; width:15px; height:19px; ">
  1366. <script type="javascript" ev:event="onkeydown">
  1367. <![CDATA[
  1368. if(event.keyCode == 9)
  1369. {
  1370. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  1371. // else model.setFocus("cmb_prodplce");
  1372. }
  1373. //event.preventDefault();
  1374. ]]>
  1375. </script>
  1376. </input>
  1377. <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_default" style="left:110px; top:190px; width:66px; height:19px; ">
  1378. <script type="javascript" ev:event="xforms-value-changed">
  1379. <![CDATA[
  1380. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_amtacnt.attribute("ref")) ,"","amtacnt,amtacntnm" ,ipt_amtacnt,"PPRAC00100","","");
  1381. model.refresh();
  1382. model.setFocus("ipt_fromdd");
  1383. ]]>
  1384. </script>
  1385. <script type="javascript" ev:event="onkeydown">
  1386. <![CDATA[
  1387. if(event.keyCode == 9)
  1388. {
  1389. if(event.shiftKey)model.setFocus("ipt_winacnt");
  1390. else model.setFocus("ipt_fromdd");
  1391. }
  1392. //event.preventDefault();
  1393. ]]>
  1394. </script>
  1395. </input>
  1396. <output id="opt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="output_fix" visibility="hidden" appearance="output" style="left:355px; top:553px; width:12px; height:19px; "/>
  1397. <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_essential" disabled="false" maxlength="25" style="left:110px; top:49px; width:344px; height:19px; ">
  1398. <script type="javascript" ev:event="onkeydown">
  1399. <![CDATA[
  1400. if(event.keyCode == 9)
  1401. {
  1402. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1403. else model.setFocus("ipt_goodhngnm");
  1404. }
  1405. //event.preventDefault();
  1406. ]]>
  1407. </script>
  1408. </input>
  1409. <button id="btn_mngtdeptcd" class="icon_search" style="left:176px; top:416px; width:16px; height:16px; ">
  1410. <caption/>
  1411. <script type="javascript" ev:event="DOMActivate">
  1412. <![CDATA[
  1413. var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
  1414. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list) ;
  1415. model.refresh();
  1416. ]]>
  1417. </script>
  1418. </button>
  1419. <select1 id="cmb_purcunit" ref="/root/main/gooddet/gooddetlist/purcunit" class="combo_essential" disabled="true" appearance="minimal" style="left:110px; top:313px; width:110px; height:19px; ">
  1420. <choices>
  1421. <itemset>
  1422. <label/>
  1423. <value/>
  1424. </itemset>
  1425. </choices>
  1426. <script type="javascript" ev:event="onkeydown">
  1427. <![CDATA[
  1428. if(event.keyCode == 9)
  1429. {
  1430. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1431. else model.setFocus("ipt_exchqty");
  1432. }
  1433. //event.preventDefault();
  1434. ]]>
  1435. </script>
  1436. </select1>
  1437. <button id="btn_useinstinfo" class="btn2_letter7" style="left:224px; top:2px; width:97px; height:19px; ">
  1438. <caption>타기관코드복사</caption>
  1439. <script type="javascript" ev:event="DOMActivate">
  1440. <![CDATA[
  1441. fInstGoodCdCopy();
  1442. ]]>
  1443. </script>
  1444. </button>
  1445. <caption id="caption53" class="cell_1" style="left:0px; top:0px; width:108px; height:23px; vertical-align:middle; ">적 용 일 자</caption>
  1446. <caption id="caption21" class="cell_1" style="left:0px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장/불출/환산</caption>
  1447. <button id="btn_photinfo" class="btn2_letter2" style="left:280px; top:26px; width:42px; height:19px; ">
  1448. <caption>사진</caption>
  1449. <script type="javascript" ev:event="DOMActivate">
  1450. <![CDATA[
  1451. //SPRSC00210
  1452. rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1453. //rszfOpenPopUpListByWndName(ipt_goodcd,"","","SPRSC00201","goodcd","ipt_goodcd");
  1454. ]]>
  1455. </script>
  1456. </button>
  1457. <caption id="caption16" class="cell_1" style="left:0px; top:414px; width:108px; height:23px; vertical-align:middle; ">관 리 부 서</caption>
  1458. <input id="ipt_mngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_essential" disabled="true" style="left:111px; top:416px; width:60px; height:19px; ">
  1459. <script type="javascript" ev:event="xforms-value-changed">
  1460. <![CDATA[
  1461. misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
  1462. model.refresh();
  1463. model.setFocus("ipt_reqflag");
  1464. ]]>
  1465. </script>
  1466. <script type="javascript" ev:event="onkeydown">
  1467. <![CDATA[
  1468. if(event.keyCode == 9)
  1469. {
  1470. if(event.shiftKey)model.setFocus("ipt_fromdd");
  1471. else model.setFocus("ipt_reqflag");
  1472. }
  1473. //event.preventDefault();
  1474. ]]>
  1475. </script>
  1476. </input>
  1477. <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" class="combo_essential" disabled="true" appearance="minimal" style="left:222px; top:313px; width:120px; height:19px; ">
  1478. <choices>
  1479. <itemset>
  1480. <label/>
  1481. <value/>
  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_deliveunit");
  1489. else model.setFocus("ipt_minexch");
  1490. }
  1491. //event.preventDefault();
  1492. ]]>
  1493. </script>
  1494. </select1>
  1495. <input id="ipt_exchqty" ref="/root/main/gooddet/gooddetlist/exchqty" class="input_essential" disabled="true" maxlength="9" format="#,###" style="left:343px; top:313px; width:111px; height:19px; text-align:right; ">
  1496. <script type="javascript" ev:event="onkeydown">
  1497. <![CDATA[
  1498. if(event.keyCode == 9)
  1499. {
  1500. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1501. else model.setFocus("cmb_deliveunit");
  1502. }
  1503. //event.preventDefault();
  1504. ]]>
  1505. </script>
  1506. </input>
  1507. <output id="opt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="output_fix" appearance="output" style="left:199px; top:416px; width:255px; height:19px; "/>
  1508. <select1 id="cmb_reqflag" ref="/root/main/gooddet/gooddetlist/reqflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:230px; top:553px; width:15px; height:19px; ">
  1509. <choices>
  1510. <itemset nodeset="/root/init/reqflag">
  1511. <label ref="cdnm"/>
  1512. <value ref="cdid"/>
  1513. </itemset>
  1514. </choices>
  1515. </select1>
  1516. <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="input_search" inputtype="date" style="left:110px; top:2px; width:112px; height:19px; background-color:#ffffff; ">
  1517. <script type="javascript" ev:event="onkeydown">
  1518. <![CDATA[
  1519. if(event.keyCode == 9)
  1520. {
  1521. if(event.shiftKey)model.setFocus("ipt_fromdd");
  1522. else model.setFocus("ipt_smlcd");
  1523. }
  1524. //event.preventDefault();
  1525. ]]>
  1526. </script>
  1527. </input>
  1528. <select1 id="cmb_stocmngtflag" ref="/root/main/gooddet/gooddetlist/stocmngtflag" class="combo_essential" disabled="true" appearance="minimal" style="left:111px; top:440px; width:343px; height:19px; ">
  1529. <choices>
  1530. <itemset nodeset="/root/init/stocmngtflag">
  1531. <label ref="cdnm"/>
  1532. <value ref="cdid"/>
  1533. </itemset>
  1534. </choices>
  1535. <script type="javascript" ev:event="onkeydown">
  1536. <![CDATA[
  1537. if(event.keyCode == 9)
  1538. {
  1539. // if(event.shiftKey)model.setFocus("ipt_divusenvalqty");
  1540. // else model.setFocus("cmb_reqmthd");
  1541. }
  1542. //event.preventDefault();
  1543. ]]>
  1544. </script>
  1545. </select1>
  1546. <caption id="caption12" class="cell_1" style="left:0px; top:438px; width:108px; height:23px; vertical-align:middle; ">재고관리기준</caption>
  1547. <select1 id="cmb_reqprid" ref="/root/main/gooddet/gooddetlist/reqprid" class="combo_default" visibility="hidden" appearance="minimal" style="left:240px; top:553px; width:20px; height:19px; ">
  1548. <choices>
  1549. <itemset nodeset="/root/init/reqprid">
  1550. <label ref="cdnm"/>
  1551. <value ref="cdid"/>
  1552. </itemset>
  1553. </choices>
  1554. </select1>
  1555. <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" inputtype="date" style="left:111px; top:488px; width:87px; height:19px; "/>
  1556. <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" style="left:205px; top:488px; width:249px; height:19px; ">
  1557. <script type="javascript" ev:event="onkeydown">
  1558. <![CDATA[
  1559. if(event.keyCode == 9)
  1560. {
  1561. if(event.shiftKey)model.setFocus("ipt_nonusetretdd");
  1562. else model.setFocus("cmb_mngtflag");
  1563. }
  1564. //event.preventDefault();
  1565. ]]>
  1566. </script>
  1567. </input>
  1568. <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" style="left:110px; top:535px; width:343px; height:19px; ">
  1569. <script type="javascript" ev:event="onkeydown">
  1570. <![CDATA[
  1571. if(event.keyCode == 9)
  1572. {
  1573. // if(event.shiftKey)model.setFocus("ipt_reqpsn");
  1574. // else model.setFocus("ipt_lastpurcdd");
  1575. }
  1576. //event.preventDefault();
  1577. ]]>
  1578. </script>
  1579. </textarea>
  1580. <caption id="caption5" class="cell_1" style="left:0px; top:486px; width:109px; height:23px; vertical-align:middle; ">코드불용일자/사유</caption>
  1581. <caption id="caption17" class="cell_1" style="left:0px; top:534px; width:108px; height:23px; vertical-align:middle; ">비 고</caption>
  1582. <output id="opt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="output_fix" appearance="output" style="left:199px; top:214px; width:255px; height:19px; "/>
  1583. <output id="opt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="output_fix" appearance="output" style="left:199px; top:238px; width:255px; height:19px; "/>
  1584. <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_default" style="left:110px; top:214px; width:66px; height:19px; ">
  1585. <script type="javascript" ev:event="xforms-value-changed">
  1586. <![CDATA[
  1587. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,custnm", model.getValue(opt_instcd.attribute("ref")) +"," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
  1588. model.refresh();
  1589. model.setFocus("ipt_suppcustcd");
  1590. ]]>
  1591. </script>
  1592. <script type="javascript" ev:event="onkeydown">
  1593. <![CDATA[
  1594. if(event.keyCode == 9)
  1595. {
  1596. //if(event.shiftKey)model.setFocus("cmb_purcflag");
  1597. //else model.setFocus("ipt_suppcustcd");
  1598. }
  1599. //event.preventDefault();
  1600. ]]>
  1601. </script>
  1602. </input>
  1603. <button id="btn_suppcustcd" class="icon_search" style="left:180px; top:240px; width:16px; height:16px; ">
  1604. <caption/>
  1605. <script type="javascript" ev:event="DOMActivate">
  1606. <![CDATA[
  1607. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
  1608. model.refresh();
  1609. ]]>
  1610. </script>
  1611. </button>
  1612. <caption id="caption67" class="cell_1" style="left:0px; top:335px; width:108px; height:23px; vertical-align:middle; ">단가 / 부가세</caption>
  1613. <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" maxlength="14.2" format="#,###.00" style="left:110px; top:337px; width:156px; height:19px; text-align:right; ">
  1614. <script type="javascript" ev:event="onkeydown">
  1615. <![CDATA[
  1616. if(event.keyCode == 9 && event.shiftKey)model.setFocus("cmb_curncyunit");
  1617. //event.preventDefault();
  1618. ]]>
  1619. </script>
  1620. <script type="javascript" ev:event="xforms-value-changed">
  1621. <![CDATA[
  1622. model.getValue(ipt_prodcmpycd.attribute("ref"))
  1623. ]]>
  1624. </script>
  1625. </input>
  1626. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:180px; top:216px; width:16px; height:16px; ">
  1627. <caption/>
  1628. <script type="javascript" ev:event="DOMActivate">
  1629. <![CDATA[
  1630. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  1631. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd");
  1632. model.refresh();
  1633. ]]>
  1634. </script>
  1635. </button>
  1636. <caption id="caption37" class="cell_1" style="left:0px; top:236px; width:108px; height:23px; vertical-align:middle; ">보 조 거 래 처</caption>
  1637. <caption id="caption27" class="cell_1" style="left:0px; top:212px; width:108px; height:23px; vertical-align:middle; ">주 거 래 처</caption>
  1638. <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" style="left:110px; top:238px; width:66px; height:19px; ">
  1639. <script type="javascript" ev:event="xforms-value-changed">
  1640. <![CDATA[
  1641. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,custnm", model.getValue(opt_instcd.attribute("ref")) +"," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
  1642. model.refresh();
  1643. ]]>
  1644. </script>
  1645. <script type="javascript" ev:event="onkeydown">
  1646. <![CDATA[
  1647. if(event.keyCode == 9)
  1648. {
  1649. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  1650. else model.setFocus("cmb_conflag");
  1651. }
  1652. //event.preventDefault();
  1653. ]]>
  1654. </script>
  1655. </input>
  1656. <input id="ipt_bnscd" ref="/root/main/gooddet/gooddetlist/bnscd" class="input_essential" visibility="hidden" maxlength="12" style="left:285px; top:553px; width:15px; height:19px; ">
  1657. <script type="javascript" ev:event="onkeydown">
  1658. <![CDATA[
  1659. if(event.keyCode == 9)
  1660. {
  1661. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1662. else model.setFocus("ipt_goodhngnm");
  1663. }
  1664. //event.preventDefault();
  1665. ]]>
  1666. </script>
  1667. </input>
  1668. <select1 id="cmb_cntsunit" ref="/root/main/gooddet/gooddetlist/cntsunit" class="combo_essential" visibility="hidden" appearance="minimal" style="left:150px; top:553px; width:8px; height:19px; ">
  1669. <choices>
  1670. <itemset>
  1671. <label/>
  1672. <value/>
  1673. </itemset>
  1674. </choices>
  1675. <script type="javascript" ev:event="onkeydown">
  1676. <![CDATA[
  1677. if(event.keyCode == 9)
  1678. {
  1679. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1680. else model.setFocus("ipt_exchqty");
  1681. }
  1682. //event.preventDefault();
  1683. ]]>
  1684. </script>
  1685. </select1>
  1686. <input id="ipt_specvol" ref="/root/main/gooddet/gooddetlist/specvol" class="input_default" visibility="hidden" format="#,###" style="left:210px; top:553px; width:15px; height:19px; ">
  1687. <script type="javascript" ev:event="onkeydown">
  1688. <![CDATA[
  1689. if(event.keyCode == 9)
  1690. {
  1691. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1692. else model.setFocus("ipt_plceordnonusedd");
  1693. }
  1694. //event.preventDefault();
  1695. ]]>
  1696. </script>
  1697. </input>
  1698. <input id="ipt_com" ref="/root/main/gooddet/gooddetlist/com" class="input_default" visibility="hidden" maxlength="3" style="left:365px; top:553px; width:10px; height:19px; ">
  1699. <script type="javascript" ev:event="onkeydown">
  1700. <![CDATA[
  1701. if(event.keyCode == 9)
  1702. {
  1703. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1704. else model.setFocus("ipt_plceordnonusedd");
  1705. }
  1706. //event.preventDefault();
  1707. ]]>
  1708. </script>
  1709. </input>
  1710. <input id="ipt_edicd2" ref="/root/main/gooddet/gooddetlist/edicd" class="input_essential" visibility="hidden" imemode="alpha" maxlength="450" style="left:330px; top:553px; width:15px; height:19px; ">
  1711. <script type="javascript" ev:event="onkeydown">
  1712. <![CDATA[
  1713. if(event.keyCode == 9)
  1714. {
  1715. // if(event.shiftKey)model.setFocus("ipt_goodhngnm");
  1716. // else model.setFocus("cmb_prodplce");
  1717. }
  1718. //event.preventDefault();
  1719. ]]>
  1720. </script>
  1721. </input>
  1722. <select1 id="cmb_gnrlspcl" ref="/root/main/gooddet/gooddetlist/gnrlspcl" class="combo_essential" visibility="hidden" appearance="minimal" style="left:210px; top:553px; width:8px; height:19px; ">
  1723. <choices>
  1724. <item>
  1725. <label>일반</label>
  1726. <value>G</value>
  1727. </item>
  1728. <item>
  1729. <label>전문</label>
  1730. <value>S</value>
  1731. </item>
  1732. </choices>
  1733. <script type="javascript" ev:event="onkeydown">
  1734. <![CDATA[
  1735. if(event.keyCode == 9)
  1736. {
  1737. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1738. else model.setFocus("ipt_exchqty");
  1739. }
  1740. //event.preventDefault();
  1741. ]]>
  1742. </script>
  1743. </select1>
  1744. <select1 id="cmb_specldrug" ref="/root/main/gooddet/gooddetlist/specldrug" class="combo_essential" visibility="hidden" appearance="minimal" style="left:200px; top:553px; width:8px; height:19px; ">
  1745. <choices>
  1746. <item>
  1747. <label>일반</label>
  1748. <value>N</value>
  1749. </item>
  1750. <item>
  1751. <label>특별</label>
  1752. <value>Y</value>
  1753. </item>
  1754. </choices>
  1755. <script type="javascript" ev:event="onkeydown">
  1756. <![CDATA[
  1757. if(event.keyCode == 9)
  1758. {
  1759. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1760. else model.setFocus("ipt_exchqty");
  1761. }
  1762. //event.preventDefault();
  1763. ]]>
  1764. </script>
  1765. </select1>
  1766. <input id="ipt_cntsqty" ref="/root/main/gooddet/gooddetlist/cntsqty" class="input_default" visibility="hidden" format="#,###" style="left:115px; top:553px; width:15px; height:19px; ">
  1767. <script type="javascript" ev:event="onkeydown">
  1768. <![CDATA[
  1769. if(event.keyCode == 9)
  1770. {
  1771. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1772. else model.setFocus("ipt_plceordnonusedd");
  1773. }
  1774. //event.preventDefault();
  1775. ]]>
  1776. </script>
  1777. </input>
  1778. <select1 id="rbo_keepmthd" ref="/root/main/gooddet/gooddetlist/keepmthd" visibility="hidden" appearance="full" cellspacing="60" cols="5" overflow="visible" style="left:260px; top:553px; width:20px; height:20px; border-style:none; ">
  1779. <choices>
  1780. <item>
  1781. <label>냉동</label>
  1782. <value>1</value>
  1783. </item>
  1784. </choices>
  1785. </select1>
  1786. <select1 id="cmb_specunit" ref="/root/main/gooddet/gooddetlist/specunit" class="combo_essential" visibility="hidden" appearance="minimal" style="left:170px; top:553px; width:8px; height:19px; ">
  1787. <choices>
  1788. <itemset nodeset="/root/init/specunit">
  1789. <label ref="cdnm"/>
  1790. <value ref="cdid"/>
  1791. </itemset>
  1792. </choices>
  1793. <script type="javascript" ev:event="onkeydown">
  1794. <![CDATA[
  1795. if(event.keyCode == 9)
  1796. {
  1797. if(event.shiftKey)model.setFocus("cmb_purcunit");
  1798. else model.setFocus("ipt_exchqty");
  1799. }
  1800. //event.preventDefault();
  1801. ]]>
  1802. </script>
  1803. </select1>
  1804. <caption id="caption18" class="tit_2" style="left:5px; top:395px; width:95px; height:13px; ">재고관리기준</caption>
  1805. <line id="line26" class="line_1" style="x1:0px; y1:410px; x2:455px; y2:410px; "/>
  1806. <output id="output1" ref="/root/main/gooddet/gooddetlist/comnm" class="output_fix" visibility="hidden" appearance="output" style="left:375px; top:553px; width:15px; height:19px; "/>
  1807. <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" class="input_essential" visibility="hidden" maxlength="12" style="left:405px; top:553px; width:15px; height:19px; ">
  1808. <script type="javascript" ev:event="onkeydown">
  1809. <![CDATA[
  1810. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1811. //event.preventDefault();
  1812. ]]>
  1813. </script>
  1814. </input>
  1815. <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" visibility="hidden" format="#,###" style="left:120px; top:553px; width:20px; height:19px; ">
  1816. <script type="javascript" ev:event="onkeydown">
  1817. <![CDATA[
  1818. if(event.keyCode == 9)
  1819. {
  1820. if(event.shiftKey)model.setFocus("rdo_reqflag");
  1821. else model.setFocus("ipt_plceordnonusedd");
  1822. }
  1823. //event.preventDefault();
  1824. ]]>
  1825. </script>
  1826. </input>
  1827. <button id="btn_winacnt" class="icon_search" style="left:180px; top:168px; width:16px; height:16px; ">
  1828. <caption/>
  1829. <script type="javascript" ev:event="DOMActivate">
  1830. <![CDATA[
  1831. rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
  1832. model.refresh();
  1833. ]]>
  1834. </script>
  1835. </button>
  1836. <input id="input1" ref="/root/main/gooddet/gooddetlist/plceordnonusedd" class="input_default" inputtype="date" style="left:111px; top:464px; width:87px; height:19px; "/>
  1837. <caption id="caption2" class="cell_1" style="left:0px; top:462px; width:109px; height:23px; vertical-align:middle; ">발주불용일자</caption>
  1838. <select1 id="rbo_addtaxrate" ref="/root/main/gooddet/gooddetlist/addtaxrate" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:315px; top:337px; width:105px; height:20px; border-style:none; ">
  1839. <choices>
  1840. <item>
  1841. <label>면세</label>
  1842. <value>0</value>
  1843. </item>
  1844. <item>
  1845. <label>과세</label>
  1846. <value>10</value>
  1847. </item>
  1848. </choices>
  1849. </select1>
  1850. <line id="line24" class="line_2" style="x1:0px; y1:311px; x2:455px; y2:311px; "/>
  1851. <caption id="caption4" class="cell_1" style="left:0px; top:359px; width:108px; height:23px; vertical-align:middle; ">원 산 지</caption>
  1852. <input id="ipt_orgloc" ref="/root/main/gooddet/gooddetlist/orgloc" class="input_default" maxlength="30" style="left:110px; top:361px; width:344px; height:19px; text-align:left; "/>
  1853. <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:420px; top:553px; width:15px; height:19px; "/>
  1854. <caption id="caption10" class="cell_1" style="left:0px; top:286px; width:108px; height:23px; vertical-align:middle; ">자 산 구 분</caption>
  1855. <line id="line25" class="line_2" style="x1:0px; y1:334px; x2:455px; y2:334px; "/>
  1856. <line id="line27" class="line_2" style="x1:0px; y1:487px; x2:455px; y2:487px; "/>
  1857. <caption id="caption11" class="cell_1" style="left:0px; top:510px; width:109px; height:23px; vertical-align:middle; ">업 체 코 드</caption>
  1858. <input id="input2" ref="/root/main/gooddet/gooddetlist/bnscd" class="input_default" style="left:110px; top:512px; width:156px; height:19px; text-align:left; "/>
  1859. <select1 id="cmb_purccls" ref="/root/main/gooddet/gooddetlist/purccls" class="input_essential" disabled="true" appearance="minimal" style="left:110px; top:263px; width:200px; height:19px; ">
  1860. <choices>
  1861. <itemset>
  1862. <label/>
  1863. <value/>
  1864. </itemset>
  1865. </choices>
  1866. </select1>
  1867. <caption id="caption13" class="cell_1" style="left:0px; top:261px; width:108px; height:23px; vertical-align:middle; ">구 매 요 구 구 분</caption>
  1868. <line id="line28" class="line_2" style="x1:0px; y1:259px; x2:455px; y2:259px; "/>
  1869. <select1 id="rdo_costconyn" ref="/root/main/gooddet/gooddetlist/costconyn" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:320px; top:265px; width:130px; height:20px; border-style:none; ">
  1870. <choices>
  1871. <item>
  1872. <label>단가</label>
  1873. <value>Y</value>
  1874. </item>
  1875. <item>
  1876. <label>비단가</label>
  1877. <value>N</value>
  1878. </item>
  1879. </choices>
  1880. </select1>
  1881. <caption id="caption14" class="cell_1" style="left:0px; top:71px; width:108px; height:21px; vertical-align:middle; ">규 격</caption>
  1882. <line id="line29" class="line_2" style="x1:0px; y1:92px; x2:455px; y2:92px; "/>
  1883. <input id="input3" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_essential" disabled="false" maxlength="25" style="left:110px; top:71px; width:344px; height:19px; ">
  1884. <script type="javascript" ev:event="onkeydown">
  1885. <![CDATA[
  1886. if(event.keyCode == 9)
  1887. {
  1888. if(event.shiftKey)model.setFocus("ipt_goodcd");
  1889. else model.setFocus("ipt_goodhngnm");
  1890. }
  1891. //event.preventDefault();
  1892. ]]>
  1893. </script>
  1894. </input>
  1895. </group>
  1896. <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^최종수정일시^purccls^costconyn^caption1^caption2" 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, 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="|" style="left:15px; top:325px; width:705px; height:85px; ">
  1897. <col ref="goodcd" _key="true"/>
  1898. <col ref="todd" _key="true"/>
  1899. <col ref="prefromdd" style="left:204px; top:23px; width:123px; height:23px; "/>
  1900. <col ref="instcd" _key="true"/>
  1901. <col ref="useyn"/>
  1902. <col ref="fromdd"/>
  1903. <col ref="goodflag"/>
  1904. <col ref="edicd"/>
  1905. <col ref="goodnm" style="left:1078px; top:23px; width:92px; height:23px; "/>
  1906. <col ref="goodhngnm"/>
  1907. <col ref="goodengnm"/>
  1908. <col ref="goodspec"/>
  1909. <col ref="goodmodel"/>
  1910. <col ref="pregoodspec"/>
  1911. <col ref="pregoodmodel"/>
  1912. <col ref="asetflag" _key="true"/>
  1913. <col ref="lrgcd" _key="true"/>
  1914. <col ref="lrgnm"/>
  1915. <col ref="mdlcd" style="left:1548px; top:23px; width:214px; height:23px; "/>
  1916. <col ref="mdlnm"/>
  1917. <col ref="smlcd"/>
  1918. <col ref="smlnm"/>
  1919. <col ref="proddrugsetflag"/>
  1920. <col ref="winacnt" _key="true"/>
  1921. <col ref="winacntnm"/>
  1922. <col ref="amtacnt"/>
  1923. <col ref="amtacntnm"/>
  1924. <col ref="mainmngtdeptcd" _key="true"/>
  1925. <col ref="mainmngtdeptnm"/>
  1926. <col ref="mainusedeptcd"/>
  1927. <col ref="stocmngtflag"/>
  1928. <col ref="purcunit"/>
  1929. <col ref="deliveunit"/>
  1930. <col ref="exchqty"/>
  1931. <col ref="minexch"/>
  1932. <col ref="reuseyn"/>
  1933. <col ref="divusenvalqty"/>
  1934. <col ref="calcscorinfoacptstat"/>
  1935. <col ref="calcscorinfoacptdd"/>
  1936. <col ref="edicd"/>
  1937. <col ref="reqdeptcd"/>
  1938. <col ref="reqdeptnm"/>
  1939. <col ref="reqpsn"/>
  1940. <col ref="reqpsnnm"/>
  1941. <col ref="reqflag"/>
  1942. <col ref="reqflagnm"/>
  1943. <col ref="reqmthd" _key="true"/>
  1944. <col ref="reqprid"/>
  1945. <col ref="prodplce"/>
  1946. <col ref="prodcmpycd"/>
  1947. <col ref="prodcmpynm"/>
  1948. <col ref="maincustlastsuplplce" _key="true"/>
  1949. <col ref="maincustlastsuplplcenm"/>
  1950. <col ref="suppcustcd"/>
  1951. <col ref="suppcustnm"/>
  1952. <col ref="conflag"/>
  1953. <col ref="fromconterm"/>
  1954. <col ref="toconterm"/>
  1955. <col ref="estmamt"/>
  1956. <col ref="forgncurncyunitcost"/>
  1957. <col ref="curncyunit"/>
  1958. <col ref="goodunitcost"/>
  1959. <col ref="purcflag"/>
  1960. <col ref="allsizeyn"/>
  1961. <col ref="setplceordflag"/>
  1962. <col ref="plceordbase"/>
  1963. <col ref="plceordqtycretflag"/>
  1964. <col ref="plceordnonusedd"/>
  1965. <col ref="addtaxrate"/>
  1966. <col ref="lastpurcdd"/>
  1967. <col ref="nonusetretresn"/>
  1968. <col ref="mngtflag"/>
  1969. <col ref="expnyn"/>
  1970. <col ref="cmt"/>
  1971. <col ref="cntsqty"/>
  1972. <col ref="ddavguseqty"/>
  1973. <col ref="mmavgusescheqty"/>
  1974. <col ref="mmavguseqty"/>
  1975. <col ref="prprtystocpossndayno"/>
  1976. <col ref="tmpreqflag"/>
  1977. <col ref="oldcd"/>
  1978. <col ref="bnscd"/>
  1979. <col ref="cntsunit"/>
  1980. <col ref="specvol"/>
  1981. <col ref="purccls"/>
  1982. <col ref="costconyn"/>
  1983. <col ref="com"/>
  1984. <col ref="goodtype"/>
  1985. <col ref="narcflag"/>
  1986. <col ref="keepmthd"/>
  1987. <col ref="cntrdrugyn"/>
  1988. <col ref="plceordnonusedd"/>
  1989. <col ref="expnyn"/>
  1990. <col ref="limdrugyn"/>
  1991. <col ref="gnrlspcl"/>
  1992. <col ref="orgloc"/>
  1993. <col ref="specldrug"/>
  1994. <col ref="keeptemp"/>
  1995. <col ref="deliveunit" style="left:13448px; top:23px; width:100px; height:23px; "/>
  1996. </datagrid>
  1997. </xhtml:body>
  1998. </xhtml:html>