SMRSI02100_약국입고관리.xrw 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589
  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. <goodwin>
  12. <goodwinlist/>
  13. <goodmaxwinno/>
  14. </goodwin>
  15. <gooddmndreq>
  16. <gooddmndreqlist/>
  17. </gooddmndreq>
  18. <goodnonwin>
  19. <goodnonwinlist/>
  20. <goodmaxwinno/>
  21. </goodnonwin>
  22. <wincompare>
  23. <windetail>
  24. <goodcd/>
  25. <winunit/>
  26. <winunitcost/>
  27. <winpackqty/>
  28. <winamt/>
  29. <bnscd/>
  30. <edicd/>
  31. </windetail>
  32. <biwindetail>
  33. <bi_goodcd/>
  34. <bi_winunit/>
  35. <bi_winunitcost/>
  36. <bi_winpackqty/>
  37. <bi_winamt/>
  38. <bi_bnscd/>
  39. <bi_edicd/>
  40. </biwindetail>
  41. </wincompare>
  42. </list>
  43. <item/>
  44. </main>
  45. <send>
  46. <save>
  47. <goodwinlist/>
  48. <goodnonwinlist/>
  49. <interfacecustcdlist>
  50. <purc_main_suplplcecd/>
  51. <drg_main_suplplcecd/>
  52. </interfacecustcdlist>
  53. </save>
  54. <goodwin>
  55. <instcd/>
  56. <goodflag/>
  57. <windd/>
  58. <winno/>
  59. <windeptcd/>
  60. <windeptnm/>
  61. <winpsn/>
  62. <winpsnnm/>
  63. <paycond/>
  64. <suplplcecd/>
  65. <suplplcenm/>
  66. <calcdocukind/>
  67. <calcdocudd/>
  68. <purcdmndfrdd/>
  69. <purcdmndtodd/>
  70. <addtax/>
  71. <retrmaxwinnoyn/>
  72. <iokind/>
  73. <interfacegubn/>
  74. <bideliveno/>
  75. </goodwin>
  76. <gooddmndreq>
  77. <instcd/>
  78. <goodflag/>
  79. <purcdmnddd/>
  80. <purcdmndno/>
  81. <purcdmndseq/>
  82. </gooddmndreq>
  83. <savenonwin>
  84. <goodnonwinlist/>
  85. <interfacecustcdlist>
  86. <purc_main_suplplcecd/>
  87. <drg_main_suplplcecd/>
  88. </interfacecustcdlist>
  89. </savenonwin>
  90. <gooddelive>
  91. <gooddelivelist/>
  92. </gooddelive>
  93. <nonautowinyn/>
  94. </send>
  95. <init>
  96. <winqty/>
  97. <winamt/>
  98. <reqcnt/>
  99. <reqamt/>
  100. <winqtytotal>0</winqtytotal>
  101. <winqtycnt>0</winqtycnt>
  102. </init>
  103. <hidden/>
  104. <temp/>
  105. <copynode/>
  106. </root>
  107. </instance>
  108. <script type="javascript" ev:event="xforms-ready">
  109. <![CDATA[
  110. //화면 Control을 초기화한다
  111. fCheckAuth();
  112. fInitialize();
  113. //hbh <bind id="winqty" ref="/root/main/list/goodwin/goodwinlist/winqty" calculate="../winpackqty *../winpackcntperunit"/>
  114. ]]>
  115. </script>
  116. <submission id="TRRSI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodwin"/>
  117. <submission id="TRRSI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodnonwin"/>
  118. <submission id="TRRSI00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodnonwin"/>
  119. <submission id="TRRSD00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddmndreq" resultref="/root/main/list/gooddmndreq"/>
  120. <submission id="TXRSI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp">"</submission>
  121. <submission id="TXRSO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/hidden/temp">"</submission>
  122. <submission id="TXRSI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savenonwin" resultref="/root/hidden/temp">"</submission>
  123. </model>
  124. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  126. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  127. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  130. <script type="javascript">
  131. <![CDATA[
  132. function fInitialize() {
  133. model.resetInstanceNode("/root/send");
  134. rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  135. // misfComboComCdListMulti("R0109","cmb_calcdocukind");
  136. misfGridInit(grd_goodwin);
  137. misfGridInit(grd_nonwin);
  138. // rszfComboAppendBlankChild("cmb_calcdocukind");
  139. misfMsterDetailSet(grd_goodwin,null, "TRRSI00101" ,"Y");
  140. // misfMsterDetailSet(grd_goodreq,grd_goodwin, "TRRSD00403" ,"N");
  141. var curdate = getCurrentDate();
  142. var cvtdate = curdate.toDate("YYYYMMDD");
  143. model.setValue(ipt_windd.attribute("ref") ,curdate);
  144. model.setValue(ipt_calcdocudd.attribute("ref") ,curdate);
  145. // 약국 담당자의 요청으로
  146. //model.setValue(ipt_reqfrdd.attribute("ref") , cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  147. model.setValue(ipt_reqfrdd.attribute("ref") , curdate);
  148. model.setValue(ipt_reqtodd.attribute("ref") ,curdate);
  149. model.setValue(ipt_sumwinqty.attribute("ref"),0);
  150. model.setValue(opt_sumwinamt.attribute("ref"),0);
  151. model.setValue(ipt_winpsn.attribute("ref") , getUserInfo("userid"));
  152. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  153. rszfComboStockArthDeptcdList(cmb_windeptcd,getUserInfo("dutplceinstcd"),"PH" );
  154. //fLoadBnsDeliveno('N');
  155. // hidden column ( 물품구분 -> 약)
  156. model.setValue(cmb_goodflag.attribute("ref"),"PH");
  157. // model.setValue(ipt_iokind.attribute("ref"),'1A'); // 입출유형. [20081110] 발주에 대한 유형을 조회 하여 가져온다.
  158. model.setValue(ipt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  159. model.setValue(opt_interfacegubn.attribute("ref"),'B'); // 'B' 보나에스
  160. model.setValue(opt_calcdocukind.attribute("ref"),'1'); // '1': 세금계산서
  161. //rszfGetMainCust(purc_main_suplplcecd);
  162. grd_goodwin.explorerbar = "sortshow";
  163. // grd_goodreq.explorerbar = "sortshow";
  164. grd_nonwin.explorerbar = "sortshow";
  165. grd_goodwin.frozenCols = grd_goodwin.colRef("winunit");
  166. // 공급처에 보나에스 setting
  167. // 혹시 코드가 변경될지 모르니 xforms-value-chage를 발생시킨다.
  168. // CMC 전체병원의 약국거래처가 보나에스 임으로 하드코딩합니다.. ㅋ HBH
  169. //model.setValue(ipt_suplplcecd.attribute("ref") , "2158155746");
  170. //model.setValue(ipt_suplplcecd.attribute("ref") , rszfGetMainCust(drg_main_suplplcecd));
  171. //model.setFocus("ipt_suplplcecd");
  172. //ipt_suplplcecd.dispatch("xforms-value-changed");
  173. model.setFocus("cmb_windeptcd");
  174. swt_map.visible = false;
  175. grd_nonwin.frozenCols = grd_nonwin.colRef("goodnm");
  176. model.refresh();
  177. }
  178. function fCheckAuth() {
  179. btn_search.disabled = !checkAuth("R") ;
  180. btn_save.disabled = !checkAuth("X") ;
  181. }
  182. // 보나에스 출고번호
  183. function fLoadBnsDeliveno(pwinyn) {
  184. cmb_bideliveno.value = '';
  185. cmb_bideliveno.disabled=true;
  186. if(sch_select.selectedIndex == 0)
  187. {
  188. if (model.getValue(ipt_instcd.attribute("ref")).length== 0 ) return;
  189. if (model.getValue(ipt_windd.attribute("ref")).length== 0 ) return;
  190. if (model.getValue(cmb_windeptcd.attribute("ref")).length== 0 ) return;
  191. if (ipt_suplplcecd.value == rszfGetMainCust(drg_main_suplplcecd)
  192. && model.getValue(chk_nonautowinyn.attribute("ref")) !='Y' ) {
  193. cmb_bideliveno.disabled=false;
  194. rszfComboBiDeliveNoList(cmb_bideliveno,
  195. model.getValue(ipt_instcd.attribute("ref")),
  196. model.getValue(ipt_windd.attribute("ref")),
  197. model.getValue(cmb_windeptcd.attribute("ref")),
  198. "N" );
  199. model.refresh();
  200. } else {
  201. cmb_bideliveno.disabled=true;
  202. btn_search.dispatch("DOMActivate");
  203. }
  204. }
  205. }
  206. // 미입고 데이타 load
  207. function fDataLoadNoWin()
  208. {
  209. if (model.getValue(cmb_bideliveno.attribute("ref")).length== 0 )
  210. {
  211. //messageBox("보나에스 출고번호를 " ,"C002");
  212. messageBox("보나에스 출고번호를 " ,"I007");
  213. return;
  214. }
  215. submit("TRRSI00103");
  216. model.makeNode("/root/send/savenonwin/goodnowintype");
  217. model.setValue("/root/send/savenonwin/goodnowintype", "B"); // 보나에스 전송받은 경우
  218. // app 단에서 입고 금액을 계산하지 않고
  219. // 화면에서 입고 금액을 넘기기 위한 구분값
  220. for(var currow = grd_nonwin.fixedRows ; currow < grd_nonwin.rows ; currow++)
  221. {
  222. fSetGridColor( currow );
  223. model.setValue(grd_nonwin.nodeset + "[" + (currow - grd_nonwin.fixedRows + 1)+ "]/select","Y");
  224. grd_nonwin.rowStatus(currow) = "2";
  225. }
  226. }
  227. function fSetGridColor( currow ) {
  228. if ( grd_nonwin.valueMatrix(currow, grd_nonwin.colRef("comparevalue")) != "0" )
  229. grd_nonwin.cellstyle("background-color", currow, grd_nonwin.colRef("select"), currow, grd_nonwin.colRef("unaprvresn") ) = "yellow";
  230. else
  231. grd_nonwin.cellstyle("background-color", currow, grd_nonwin.colRef("select"), currow, grd_nonwin.colRef("unaprvresn") ) = "white";
  232. }
  233. function fCheckRetrieveData(pmsg)
  234. {
  235. if(model.getValue(ipt_instcd.attribute("ref")).length== 0 )
  236. {
  237. if(pmsg == true)
  238. {
  239. messageBox("기관코드를 " ,"C002");
  240. model.setFocus("ipt_instcd");
  241. }
  242. return false;
  243. }
  244. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  245. {
  246. if(pmsg == true)
  247. {
  248. messageBox("물품구분을 " ,"C002");
  249. model.setFocus("cmb_goodflag");
  250. }
  251. return false;
  252. }
  253. /*
  254. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  255. {
  256. if(pmsg == true)
  257. {
  258. messageBox("공급처를 " ,"C001");
  259. model.setFocus("ipt_suplplcecd");
  260. }
  261. return false;
  262. }*/
  263. if(model.getValue(cmb_windeptcd.attribute("ref")).length== 0 )
  264. {
  265. if(pmsg == true)
  266. {
  267. messageBox("입고부서를 " ,"C001");
  268. model.setFocus("cmb_windeptcd");
  269. }
  270. return false;
  271. }
  272. if(sch_select.selectedIndex == 0)
  273. {
  274. if(model.getValue(ipt_reqfrdd.attribute("ref")).length== 0 )
  275. {
  276. if(pmsg == true)
  277. {
  278. messageBox("발주시작일자 " ,"C001");
  279. model.setFocus("ipt_reqfrdd");
  280. }
  281. return false;
  282. }
  283. if(model.getValue(ipt_reqtodd.attribute("ref")).length== 0 )
  284. {
  285. if(pmsg == true)
  286. {
  287. messageBox("발주종료일자 " ,"C001");
  288. model.setFocus("ipt_reqtodd");
  289. }
  290. return false;
  291. }
  292. return true;
  293. }
  294. else
  295. {
  296. if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
  297. {
  298. if(pmsg == true)
  299. {
  300. messageBox("입고일자를 " ,"C001");
  301. model.setFocus("ipt_windd");
  302. }
  303. return false;
  304. }
  305. }
  306. return true;
  307. }
  308. function fDefaultSetting(prow)
  309. {
  310. var grd_setting;
  311. if(sch_select.selectedIndex == 0)grd_setting = grd_nonwin;
  312. else grd_setting = grd_goodwin;
  313. model.setValue(grd_setting.nodeset+"["+prow+"]/instcd",model.getValue(ipt_instcd.attribute("ref")));
  314. model.setValue(grd_setting.nodeset+"["+prow+"]/goodflag",model.getValue(cmb_goodflag.attribute("ref")));
  315. model.setValue(grd_setting.nodeset+"["+prow+"]/windd",model.getValue(ipt_windd.attribute("ref")));
  316. model.setValue(grd_setting.nodeset+"["+prow+"]/winpsn",model.getValue(ipt_winpsn.attribute("ref")));
  317. model.setValue(grd_setting.nodeset+"["+prow+"]/windeptcd",model.getValue(cmb_windeptcd.attribute("ref")));
  318. //model.setValue(grd_setting.nodeset+"["+prow+"]/installplcecd",model.getValue("/root/send/goodwin/installplcecd"));
  319. model.setValue(grd_setting.nodeset+"["+prow+"]/paycond","1");
  320. //model.setValue(grd_setting.nodeset+"["+prow+"]/temppay",model.getValue("/root/send/goodwin/temppay"));
  321. model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocukind",model.getValue(opt_calcdocukind.attribute("ref")));;
  322. model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocudd",model.getValue(ipt_calcdocudd.attribute("ref")));
  323. //model.setValue(grd_setting.nodeset+"["+prow+"]/suplplcecd",model.getValue(ipt_suplplcecd.attribute("ref")));
  324. model.setValue(grd_setting.nodeset+"["+prow+"]/winseqno",fGetMaxWinSeqNo());
  325. model.setValue(grd_setting.nodeset+"["+prow+"]/delivedeptqty",0);
  326. model.setValue(grd_setting.nodeset+"["+prow+"]/deliveno",0);
  327. model.setValue(grd_setting.nodeset+"["+prow+"]/stocqty",0);
  328. // 2008.11.10 YYJ
  329. // 입출 유형을 '1A' 정상입고로 지정해서 받고 있다.
  330. // 발주 내역 / 보나에스 내역을 읽어서 유형을 지정처리 한다.
  331. // model.setValue(grd_setting.nodeset+"["+prow+"]/iokind",model.getValue(ipt_iokind.attribute("ref")));
  332. }
  333. function fGetMaxWinSeqNo()
  334. {
  335. var maxwinseqno = "";
  336. for(var currow = grd_goodwin.fixedRows ; currow < grd_goodwin.rows; currow++)
  337. {
  338. if(maxwinseqno < grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winseqno")))
  339. maxwinseqno = grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winseqno"));
  340. }
  341. if(maxwinseqno.length == 0)maxwinseqno = "001";
  342. else maxwinseqno = parseInt(maxwinseqno) + 1;
  343. maxwinseqno = "" + maxwinseqno;
  344. return maxwinseqno.getLeftPad(3,"0");
  345. }
  346. function fSettingGoodList(pnode, nodename, userqtynm){
  347. var codynode = instance1.selectNodes(pnode + "/*");
  348. var addRow = grd_goodwin.rows - grd_goodwin.fixedRows;
  349. if(model.getValue(grd_goodwin.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
  350. for (var j = 1; j <= codynode.length ; j++) {
  351. if(addRow > grd_goodwin.rows - grd_goodwin.fixedRows)
  352. {
  353. misfGridIUD(grd_goodwin,"A");
  354. addRow = grd_goodwin.rows - grd_goodwin.fixedRows;
  355. fDefaultSetting(addRow );
  356. }
  357. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  358. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  359. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
  360. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodmodel"));
  361. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/prodcmpynm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/prodcmpynm"));
  362. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/" + userqtynm));
  363. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
  364. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
  365. if(model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty") != "0" && model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty").length>0)
  366. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackcntperunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty"));
  367. else
  368. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackcntperunit" ,"1");
  369. model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  370. addRow = addRow + 1;
  371. }
  372. model.recalculate();
  373. model.refresh();
  374. }
  375. function fSettingSaveInData()
  376. {
  377. var vTmp = fGridCheck();
  378. if ( vTmp != -1 ) {
  379. if (model.getValue(ipt_suplplcecd.attribute("ref")) == rszfGetMainCust(drg_main_suplplcecd) ) {
  380. pvalue = messageBox( vTmp + " 번째 보나에스와 일치 하지 않는 건이 있습니다. 입고를 ","Q009");
  381. } else {
  382. pvalue = messageBox("입고를 ","Q009");
  383. }
  384. //
  385. if ( pvalue == 6 ) {
  386. for(var liRow = grd_nonwin.fixedRows; liRow < grd_nonwin.rows ; liRow++)
  387. {
  388. fDefaultSetting(liRow);
  389. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/windeptcd" , model.getValue(cmb_windeptcd.attribute("ref")));
  390. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/delivedeptcd" , model.getValue(cmb_windeptcd.attribute("ref")));
  391. }
  392. } else
  393. return false;
  394. } else {
  395. for(var liRow = grd_nonwin.fixedRows; liRow < grd_nonwin.rows ; liRow++)
  396. {
  397. fDefaultSetting(liRow);
  398. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/windeptcd" , model.getValue(cmb_windeptcd.attribute("ref")));
  399. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/delivedeptcd" , model.getValue(cmb_windeptcd.attribute("ref")));
  400. }
  401. }
  402. }
  403. // pvalue = messageBox("수정된 입고 금액으로","Q009");
  404. // if ( pvalue == 6 )
  405. function fGridCheck()
  406. {
  407. var vReturn = -1;
  408. for(var liRow = grd_nonwin.fixedRows; liRow < grd_nonwin.rows ; liRow++)
  409. {
  410. if ( grd_nonwin.valueMatrix( liRow, grd_nonwin.colRef("comparevalue") ) != "0" )
  411. return vReturn = liRow;
  412. }
  413. return vReturn;
  414. }
  415. // function fSettingSaveOutData()
  416. // {
  417. // for(var liRow = grd_goodreq.fixedRows ; liRow < grd_goodreq.rows ; liRow++)
  418. // {
  419. // //출고생성되지 않은 데이타라면 출고시 입력을 위해 insert logic으로 구현한다
  420. // if((grd_goodreq.valueMatrix(liRow ,grd_goodreq.colRef("delivedd")).length == 0 ||
  421. // grd_goodreq.valueMatrix(liRow ,grd_goodreq.colRef("deliveno")).length == 0 ||
  422. // grd_goodreq.valueMatrix(liRow ,grd_goodreq.colRef("deliveseqno")).length == 0) &&
  423. // grd_goodreq.rowStatus(liRow) == "2")
  424. // {
  425. // grd_goodreq.rowStatus(liRow) = "1";
  426. // model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deliveunit" , grd_goodreq.valueMatrix(liRow ,grd_goodreq.colRef("requnit")));
  427. // model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/delivedeptcd" , model.getValue(ipt_windeptcd.attribute("ref")));
  428. // }
  429. // }
  430. //
  431. // model.setValue("/root/send/gooddelive/gooddelivelist", grd_goodreq.getUpdateData());
  432. // submit("TXRSO00101");
  433. //
  434. // if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
  435. // else
  436. // {
  437. // for(var liRow = grd_goodreq.fixedRows ; liRow < grd_goodreq.rows ; liRow++)
  438. // {
  439. // //출고생성되지 않은 데이타라면 출고시 입력을 위해 insert logic으로 구현한다
  440. // if((grd_goodreq.valueMatrix(liRow ,grd_goodreq.colRef("delivedd")).length == 0 ||
  441. // grd_goodreq.valueMatrix(liRow ,grd_goodreq.colRef("deliveno")).length == 0 ||
  442. // grd_goodreq.valueMatrix(liRow , grd_goodreq.colRef("deliveseqno")).length == 0) &&
  443. // grd_goodreq.rowStatus(liRow) == "1")grd_goodreq.rowStatus(liRow) = "2";
  444. // }
  445. // }
  446. //
  447. // }
  448. function fCheckSaveData()
  449. {
  450. if(model.getValue(ipt_instcd.attribute("ref")).length== 0 )
  451. {
  452. messageBox("기관코드를 " ,"C002");
  453. model.setFocus("ipt_instcd");
  454. return false;
  455. }
  456. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  457. {
  458. messageBox("물품구분을 " ,"C002");
  459. model.setFocus("cmb_goodflag");
  460. return false;
  461. }
  462. if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
  463. {
  464. messageBox("입고일자를 " ,"C001");
  465. model.setFocus("ipt_windd");
  466. return false;
  467. }
  468. if(model.getValue(cmb_windeptcd.attribute("ref")).length== 0 )
  469. {
  470. messageBox("입고부서를 " ,"C001");
  471. model.setFocus("cmb_windeptcd");
  472. return false;
  473. }
  474. if(sch_select.selectedIndex == 0)
  475. {
  476. for(var currow = grd_nonwin.fixedRows ; currow < grd_nonwin.rows ; currow++)
  477. {
  478. if((grd_nonwin.valueMatrix(currow , grd_nonwin.colRef("select")) == "Y") &&
  479. (grd_nonwin.valueMatrix(currow , grd_nonwin.colRef("winqty")).length == 0 ||grd_nonwin.valueMatrix(currow , grd_nonwin.colRef("winqty")) == 0))
  480. {
  481. messageBox(currow + " 번째 입고량을 " ,"C001");
  482. grd_nonwin.endEditCell();
  483. grd_nonwin.row = currow;
  484. grd_nonwin.col= grd_nonwin.colRef("goodcd");
  485. grd_nonwin.editCell();
  486. return false;
  487. }
  488. /*if((grd_nonwin.valueMatrix(currow , grd_nonwin.colRef("select")) == "Y") &&
  489. (grd_nonwin.valueMatrix(currow , grd_nonwin.colRef("goodunitcost")).length == 0 ||grd_nonwin.valueMatrix(currow , grd_nonwin.colRef("goodunitcost")) == 0))
  490. {
  491. messageBox(currow + " 번째 입고단가를 " ,"C001");
  492. grd_nonwin.endEditCell();
  493. grd_nonwin.row = currow;
  494. grd_nonwin.col= grd_nonwin.colRef("goodcd");
  495. grd_nonwin.editCell();
  496. return false;
  497. }*/
  498. }
  499. }
  500. else
  501. {
  502. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  503. {
  504. messageBox("공급처를 " ,"C001");
  505. model.setFocus("ipt_suplplcecd");
  506. return false;
  507. }
  508. var winqty = 0;
  509. var delivedeptqty = 0;
  510. var stocqty = 0;
  511. for(var currow = grd_goodwin.fixedRows ; currow < grd_goodwin.rows ; currow++)
  512. {
  513. if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("goodcd")).length == 0)
  514. {
  515. messageBox(currow + " 번째 물품코드를 " ,"C001");
  516. grd_goodwin.row = currow;
  517. grd_goodwin.col= grd_goodwin.colRef("goodcd");
  518. grd_goodwin.editCell();
  519. return false;
  520. }
  521. /*
  522. else
  523. {
  524. for(srcrow = currow + 1 ; srcrow < grd_goodwin.rows ; srcrow++)
  525. {
  526. if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("goodcd")) == grd_goodwin.valueMatrix(srcrow , grd_goodwin.colRef("goodcd")))
  527. {
  528. messageBox("동일 물품코드가 [" + (currow - grd_goodwin.fixedRows + 1)+ "," + (srcrow - grd_goodwin.fixedRows + 1)+ "->" + grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("goodcd")) + "] 존재하여 저장 " ,"E001");
  529. return false;
  530. }
  531. }
  532. }
  533. */
  534. if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winqty")).length == 0)
  535. {
  536. messageBox((currow)+ " 번째 요구량을 " ,"C001");
  537. grd_goodwin.row = currow;
  538. grd_goodwin.col= grd_goodwin.colRef("winqty");
  539. grd_goodwin.editCell();
  540. return false;
  541. }
  542. if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winunitcost")) == 0)
  543. {
  544. messageBox((currow)+ " 번째 단가를 " ,"C001");
  545. grd_goodwin.row = currow;
  546. grd_goodwin.col= grd_goodwin.colRef("winunitcost");
  547. grd_goodwin.editCell();
  548. return false;
  549. }
  550. if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winamt")) == 0)
  551. {
  552. messageBox((currow -1)+ " 번째 금액을 " ,"C001");
  553. grd_goodwin.row = currow;
  554. grd_goodwin.col= grd_goodwin.colRef("winamt");
  555. grd_goodwin.editCell();
  556. return false;
  557. }
  558. winqty = grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winqty"));
  559. delivedeptqty = grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("delivedeptqty"));
  560. stocqty = winqty - delivedeptqty;
  561. model.setValue(grd_goodwin.nodeset + "[" + (currow - grd_goodwin.fixedRows + 1) + "]/stocqty" , stocqty);
  562. if(stocqty > 0)model.setValue(grd_goodwin.nodeset + "[" + (currow - grd_goodwin.fixedRows + 1) + "]/stocynindx" , "Y");
  563. else model.setValue(grd_goodwin.nodeset + "[" + (currow - grd_goodwin.fixedRows + 1) + "]/stocynindx" , "N");
  564. }
  565. }
  566. return true;
  567. }
  568. function fAfterRetrieve()
  569. {
  570. if(sch_select.selectedIndex == 0)
  571. {
  572. var nonwinqty = 0;
  573. var nonwinamt = 0;
  574. for(var currow = grd_nonwin.fixedRows ; currow < grd_nonwin.rows ; currow++)
  575. {
  576. nonwinamt = nonwinamt + 0 + parseFloat(grd_nonwin.valueMatrix(currow , grd_nonwin.colRef("reqfla")));
  577. }
  578. model.setValue(opt_sumreqqty.attribute("ref"),grd_nonwin.rows - grd_nonwin.fixedRows);
  579. model.setValue(opt_sumreqfla.attribute("ref"),nonwinamt);
  580. /* 입고건수,금액 초기화 */
  581. model.setValue(opt_winqtycnt.attribute("ref"),"0");
  582. model.setValue(opt_winqtytotal.attribute("ref"),"0");
  583. }else{
  584. var winqty = 0;
  585. var winamt = 0;
  586. for(var currow = grd_goodwin.fixedRows ; currow < grd_goodwin.rows ; currow++)
  587. {
  588. winqty = winqty + parseFloat( grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winqty")));
  589. winamt = winamt + 0 + parseFloat(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winamt")));
  590. }
  591. model.setValue(ipt_sumwinqty.attribute("ref"),grd_goodwin.rows - grd_goodwin.fixedRows);
  592. model.setValue(opt_sumwinamt.attribute("ref"),winamt);
  593. }
  594. if(sch_select.selectedIndex == 0)
  595. {
  596. if(model.getValue("/root/main/list/goodnonwin/goodmaxwinno/winno").length > 0)
  597. model.setValue(ipt_winno.attribute("ref"),model.getValue("/root/main/list/goodnonwin/goodmaxwinno/winno"));
  598. }
  599. else
  600. {
  601. if(model.getValue("/root/main/list/goodwin/goodmaxwinno/winno").length > 0)
  602. model.setValue(ipt_winno.attribute("ref"),model.getValue("/root/main/list/goodwin/goodmaxwinno/winno"));
  603. }
  604. /* [2007.12.10 HBH] : 왜 하는지를 몰라 막음.*/
  605. //fArrangeControl("true");
  606. model.refresh();
  607. }
  608. function fArrangeControl(pDisabled)
  609. {
  610. ipt_instcd.disabled = pDisabled;
  611. cmb_goodflag.disabled =pDisabled;
  612. cmb_windeptcd.disabled =pDisabled;
  613. ipt_winpsn.disabled =pDisabled;
  614. if(pDisabled == "true")ipt_winno.attribute("editable") = "false";
  615. else
  616. {
  617. model.removeNodeset(grd_goodwin.nodeset);
  618. model.removeNodeset(grd_nonwin.nodeset);
  619. // model.removeNodeset(grd_goodreq.nodeset);
  620. ipt_winno.attribute("editable") = "true";
  621. }
  622. model.setFocus("ipt_winno");
  623. model.refresh();
  624. }
  625. function fWinqtyTotal()
  626. {
  627. var amt = 0;
  628. var cnt = 0;
  629. for(var r = grd_nonwin.fixedRows; r < grd_nonwin.rows; r++)
  630. {
  631. if( grd_nonwin.valueMatrix(r, grd_nonwin.colRef("select")) == 'Y' )
  632. {
  633. amt += parseInt( grd_nonwin.valueMatrix(r, grd_nonwin.colRef("winamt")) );
  634. cnt ++;
  635. }
  636. }
  637. opt_winqtytotal.value = amt;
  638. opt_winqtycnt.value = cnt;
  639. }
  640. function fCalcWinamt(prow)
  641. {
  642. var pwinqty = parseInt(grd_nonwin.valueMatrix(prow, grd_nonwin.colRef("winqty"))) ;
  643. var preqpackcntperunit = parseInt(grd_nonwin.valueMatrix(prow, grd_nonwin.colRef("reqpackcntperunit"))) ;
  644. var pgoodpurccost = parseInt(grd_nonwin.valueMatrix(prow, grd_nonwin.colRef("goodpurccost"))) ;
  645. if (preqpackcntperunit == 0) preqpackcntperunit = 1;
  646. var pgoodamt = parseInt((pwinqty/preqpackcntperunit) * pgoodpurccost);
  647. model.setValue(grd_nonwin.nodeset + "[" + prow + "]/winamt" , pgoodamt);
  648. //model.refresh();
  649. }
  650. function fCompareDataSetting( ) {
  651. model.setValue( opt_goodcd.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("goodcd" ) ) );
  652. model.setValue( opt_winunit.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("winunit" ) ) );
  653. model.setValue( opt_winunitcost.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("winunitcost") ) );
  654. model.setValue( opt_winpackqty.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("winpackqty") ) );
  655. model.setValue( ipt_winamt.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("winamt" ) ) );
  656. model.setValue( opt_bnscd.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("bnscd" ) ) );
  657. model.setValue( opt_edicd.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("edicd" ) ) );
  658. model.setValue( opt_bigoodcd.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("bigoodcd" ) ) );
  659. model.setValue( opt_biwinunit.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("biwinunit" ) ) );
  660. model.setValue( opt_biwinunitcost.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("biwinunitcost") ) );
  661. model.setValue( opt_biwinpackqty.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("biwinpackqty") ) );
  662. model.setValue( opt_biwinamt.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("biwinamt" ) ) );
  663. model.setValue( opt_bibnscd.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("bibnscd" ) ) );
  664. model.setValue( opt_biedicd.attribute("ref") , grd_nonwin.valueMatrix( grd_nonwin.row, grd_nonwin.colRef("biedicd" ) ) );
  665. fOldNewCompare("/root/main/list/wincompare/biwindetail", "/root/main/list/wincompare/windetail" )
  666. swt_map.refresh();
  667. }
  668. /*
  669. * old & new 결과값을 비교 한다.
  670. * pDefault : "Y" 일 경우 componets 초기화 ( 폰트 색상을 초기화 한다. )
  671. */
  672. function fOldNewCompare(pOriData_node, pNewData_node, pDefault) {
  673. // var child = window.document.body.group3.swt_select.cse_costlist.grp_disp.swt_map.children; // switch 안에 포함된 Case 묶음을 가지고 있는 객체
  674. var node1 = instance1.selectNodes(pOriData_node + "/*"); // Ori Master Data
  675. var node2 = instance1.selectNodes(pNewData_node + "/*"); // New Master Data
  676. var nodeName;
  677. var tempControl;
  678. if ( pDefault == "Y" ) {
  679. //. Grid Componets 초기화
  680. fComponetInit();
  681. return;
  682. }
  683. for (var i = 0; i < node1.length ; i++) {
  684. nodeName = node1.item(i).nodeName.split("_"); // -> old_good 이런 형태의 노드이기때문에 new 코드와 mapping 하기 위해서 "_" split 처리함
  685. // nodeName[1] 으로 비교 처리
  686. for (var j = 0; j < node2.length; j++) {
  687. if (nodeName[1] == node2.item(j).nodeName) {
  688. if (node1.item(i).value != node2.item(j).value ){
  689. fComponetSearch( pNewData_node + "/" + node2.item(j).nodeName,"Y");
  690. } else {
  691. fComponetSearch( pNewData_node + "/" + node2.item(j).nodeName);
  692. }
  693. break;
  694. }
  695. }
  696. }
  697. }
  698. /* ========================================
  699. * 신구 데이터 비교를 후 색상 변화를 처리하는 함수
  700. */
  701. function fComponetSearch(pNode, pCls) {
  702. var child = window.document.body.grp_biz.sch_select.cse_nonwin.swt_map.cse_basic.children;
  703. for (ii = 0; ii < child.length; ii++) {
  704. if( child.item(ii).attribute("ref").length <= 0 ) continue;
  705. if( child.item(ii).attribute("ref") == pNode) {
  706. if (pCls == "Y") {
  707. if (child.item(ii).elementName == "xforms:input" || child.item(ii).elementName == "xforms:ouput") {
  708. child.item(ii).attribute("color") = "red";
  709. }else {
  710. child.item(ii).attribute("background-color") = "#ccffcc";
  711. }
  712. return;
  713. } else {
  714. if (child.item(ii).elementName == "xforms:input" || child.item(ii).elementName == "xforms:ouput") {
  715. child.item(ii).initStyle("color");
  716. }else {
  717. child.item(ii).initStyle("background-color");
  718. }
  719. }
  720. continue;
  721. }
  722. } // end for
  723. }
  724. /*
  725. * 콤포넌트 초기화
  726. */
  727. function fComponetInit() {
  728. var child = window.document.body.grp_biz.sch_select.cse_nonwin.swt_map.cse_basic.children;
  729. var ii = 0;
  730. for (ii = 0; ii < child.length; ii++) {
  731. child2 = child.item(ii).children ;
  732. for (jj = 0; jj < child2.length; jj++) {
  733. if (child2.item(jj).elementName == "xforms:input" ) {
  734. child2.item(jj).initStyle("color");
  735. } else {
  736. child2.item(jj).initStyle("background-color");
  737. }
  738. }
  739. }
  740. }
  741. function fSetPosition ( pview ) {
  742. swt_map.visible = pview;
  743. if(pview == true) {
  744. grd_nonwin.attribute("width") = String(1193 - parseInt( swt_map.attribute("width") ) ) ; //848 //
  745. } else
  746. {
  747. grd_nonwin.attribute("width") = "1193";
  748. }
  749. // swt_map" class="sw_box" visibility="hidden"
  750. grd_nonwin.refresh();
  751. }
  752. function fGridSetting ( pGubun ) {
  753. if (ipt_suplplcecd.value == rszfGetMainCust(drg_main_suplplcecd)
  754. && model.getValue(chk_nonautowinyn.attribute("ref")) !='Y' )
  755. {
  756. grd_nonwin.colHidden( grd_nonwin.colRef("goodunitcost") ) = true;
  757. grd_nonwin.colHidden( grd_nonwin.colRef("winqty") ) = true;
  758. grd_nonwin.colHidden( grd_nonwin.colRef("winunitcost") ) = false;
  759. grd_nonwin.colHidden( grd_nonwin.colRef("winpackqty") ) = false;
  760. } else {
  761. grd_nonwin.colHidden( grd_nonwin.colRef("goodunitcost") ) = false;
  762. grd_nonwin.colHidden( grd_nonwin.colRef("winqty") ) = false;
  763. grd_nonwin.colHidden( grd_nonwin.colRef("winunitcost") ) = true;
  764. grd_nonwin.colHidden( grd_nonwin.colRef("winpackqty") ) = true;
  765. }
  766. grd_nonwin.refresh();
  767. }
  768. ]]>
  769. </script>
  770. </xhtml:head>
  771. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  772. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  773. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">약품 입고관리</caption>
  774. </group>
  775. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  776. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  777. <!-- <input id="ipt_winno" ref="/root/send/goodwin/winno" class="input_default" editable="false" style="left:207px; top:18px; width:57px; height:19px; ">-->
  778. <input id="ipt_winno" ref="/root/send/goodwin/winno" class="input_default" style="left:207px; top:18px; width:57px; height:19px; ">
  779. <script type="javascript" ev:event="onkeyup">
  780. <![CDATA[
  781. // inputEnterKey("btn_search", "DOMActivate");
  782. if(event.keyCode == 13)
  783. {
  784. model.setValue(ipt_winno.attribute("ref"),ipt_winno.currentText);
  785. model.refresh();
  786. if(fCheckRetrieveData(false) == false)return;
  787. if(sch_select.selectedIndex == 0)
  788. {
  789. misfGridInit(grd_nonwin);
  790. submit("TRRSI00102");
  791. }
  792. else
  793. {
  794. misfMsterDetailRetrieve();
  795. }
  796. fAfterRetrieve();
  797. }
  798. ]]>
  799. </script>
  800. </input>
  801. <button id="bnt_suplplcecd" class="icon_search" style="left:186px; top:46px; width:16px; height:16px; ">
  802. <caption/>
  803. <script type="javascript" ev:event="DOMActivate">
  804. <![CDATA[
  805. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","ipt_instcd");
  806. model.refresh();
  807. btn_search.dispatch("DOMActivate");
  808. ]]>
  809. </script>
  810. </button>
  811. <input id="ipt_suplplcecd" ref="/root/send/goodwin/suplplcecd" class="input_essential" maxlength="10" style="left:100px; top:44px; width:81px; height:19px; ">
  812. <script type="javascript" ev:event="xforms-value-changed">
  813. <![CDATA[
  814. if(ipt_suplplcecd.value.length == 0)
  815. ipt_suplplcenm.value = "";
  816. else
  817. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  818. model.getValue(ipt_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  819. ipt_suplplcecd,"SPRSD00220","instcd","ipt_instcd");
  820. btn_search.dispatch("DOMActivate");
  821. ]]>
  822. </script>
  823. </input>
  824. <input id="ipt_suplplcenm" ref="/root/send/goodwin/suplplcenm" class="input_fix" appearance="input" style="left:207px; top:44px; width:183px; height:19px; ">
  825. <script type="javascript" ev:event="xforms-value-changed">
  826. <![CDATA[
  827. if(ipt_suplplcenm.value.length == 0)
  828. ipt_suplplcecd.value = "";
  829. else
  830. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  831. model.getValue(ipt_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
  832. ipt_suplplcenm,"SPRSD00220","instcd","cmb_instcd");
  833. ]]>
  834. </script>
  835. </input>
  836. <input id="ipt_calcdocudd" ref="/root/send/goodwin/calcdocudd" class="input_default" visibility="hidden" inputtype="date" style="left:853px; top:19px; width:144px; height:19px; ">
  837. <script type="javascript" ev:event="xforms-value-changed">
  838. <![CDATA[
  839. btn_search.dispatch("DOMActivate");
  840. ]]>
  841. </script>
  842. </input>
  843. <select1 id="cmb_goodflag" ref="/root/send/goodwin/goodflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1025px; top:15px; width:8px; height:19px; ">
  844. <choices>
  845. <itemset nodeset="/root/init/goodflag">
  846. <label ref="cdnm"/>
  847. <value ref="cdid"/>
  848. </itemset>
  849. </choices>
  850. <script type="javascript" ev:event="xforms-value-changed">
  851. <![CDATA[
  852. btn_search.dispatch("DOMActivate");
  853. ]]>
  854. </script>
  855. </select1>
  856. <input id="ipt_windd" ref="/root/send/goodwin/windd" class="input_s_essential" inputtype="date" style="left:100px; top:18px; width:105px; height:19px; ">
  857. <script type="javascript" ev:event="xforms-value-changed">
  858. <![CDATA[
  859. /* 입고일자와 계산서일자가 동일하다고 한다 . sync */
  860. ipt_calcdocudd.value = ipt_windd.value;
  861. // 보나에스번호 조회
  862. fLoadBnsDeliveno("N");
  863. model.refresh();
  864. btn_search.dispatch("DOMActivate");
  865. ]]>
  866. </script>
  867. </input>
  868. <input id="ipt_winpsn" ref="/root/send/goodwin/winpsn" class="input_fix" visibility="hidden" maxlength="10" appearance="input" style="left:1040px; top:15px; width:25px; height:19px; "/>
  869. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:30px; width:56px; height:22px; text-align:left; ">
  870. <caption>조회</caption>
  871. <script type="javascript" ev:event="DOMActivate">
  872. <![CDATA[
  873. if(fCheckRetrieveData(false) == false)return;
  874. model.setValue("/root/send/goodwin/retrmaxwinnoyn","Y");
  875. model.setValue("/root/send/goodwin/winno","");
  876. if(sch_select.selectedIndex == 0)
  877. {
  878. misfGridInit(grd_nonwin);
  879. if (ipt_suplplcecd.value==rszfGetMainCust(drg_main_suplplcecd) &&
  880. model.getValue(chk_nonautowinyn.attribute("ref"))!='Y' ) {
  881. btn_trans.dispatch("DOMActivate");
  882. fSetPosition(false);
  883. }
  884. else submit("TRRSI00102");
  885. }
  886. else
  887. {
  888. // misfGridInit(grd_goodwin);
  889. // misfGridInit(grd_goodreq);
  890. misfMsterDetailRetrieve();
  891. }
  892. fAfterRetrieve();
  893. fGridSetting(); //-- 수작업 입고에 따른 조건 추가 [20090408]YYJ
  894. ]]>
  895. </script>
  896. </button>
  897. <switch id="sch_select" style="left:0px; top:105px; width:1195px; height:638px; ">
  898. <case id="cse_nonwin" selected="true" style="left:0px; top:0px; width:1193px; height:638; ">
  899. <datagrid id="grd_nonwin" nodeset="/root/main/list/goodnonwin/goodnonwinlist" caption="선택^입고유형^발주일자^순번^약품코드^약품명^함량^모델^제조회사^발주수량^발주수량^포장^포장^포장^단가^단가^금액^기입고량^입고수량^입고수량^입고금액^진행상태^승인^미승인사유" colsep="^" colwidth="32, 60, 72, 37, 88, 243, 117, 0, 0, 51, 52, 38, 36, 31, 69, 69, 81, 65, 67, 67, 89, 59, 30, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193px; height:598px; ">
  900. <col checkvalue="Y,N" ref="select" type="checkbox"/>
  901. <col ref="iokindnm" style="text-align:left; "/>
  902. <col ref="purcdmnddd" format="yyyy-mm-dd"/>
  903. <col ref="purcdmndno" style="text-align:center; "/>
  904. <col ref="goodcd"/>
  905. <col ref="goodnm"/>
  906. <col ref="goodspec"/>
  907. <col ref="goodmodel" visibility="hidden"/>
  908. <col ref="prodcmpynm" visibility="hidden"/>
  909. <col ref="reqpackcnt" format="#,###" style="text-align:right; "/>
  910. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  911. <col ref="reqpackcntperunit"/>
  912. <col ref="requnit"/>
  913. <col ref="reqpackunit"/>
  914. <col ref="winunitcost" format="#,###.##" style="text-align:right; "/>
  915. <col ref="goodunitcost" visibility="hidden" format="#,###" style="text-align:right; "/>
  916. <!--// -->
  917. <col ref="reqfla" format="#,###" style="text-align:right; "/>
  918. <col ref="prewinqty" format="#,###" style="left:1096px; top:23px; width:65px; height:23px; text-align:right; "/>
  919. <col ref="winpackqty" format="#,###.##" style="text-align:right; "/>
  920. <col ref="winqty" type="input" visibility="hidden" format="#,###" style="text-align:right; "/>
  921. <!--// -->
  922. <col ref="winamt" format="#,###.#" style="text-align:right; "/>
  923. <col ref="prcsflagnm" visibility="hidden"/>
  924. <col ref="aprvnm" visibility="hidden" style="text-align:center; "/>
  925. <col ref="unaprvresn" visibility="hidden"/>
  926. <col ref="instcd" visibility="hidden"/>
  927. <col ref="goodflag" visibility="hidden"/>
  928. <col ref="windd" visibility="hidden"/>
  929. <col ref="winpsn" visibility="hidden"/>
  930. <col ref="windeptcd" visibility="hidden"/>
  931. <col ref="suplplcecd" visibility="hidden"/>
  932. <col ref="paycond" visibility="hidden"/>
  933. <col ref="temppay" visibility="hidden"/>
  934. <col ref="calcdocukind" visibility="hidden"/>
  935. <col ref="calcdocudd" visibility="hidden"/>
  936. <col ref="iokind" visibility="hidden"/>
  937. <col ref="delivedeptqty" visibility="hidden"/>
  938. <col ref="deliveno" visibility="hidden"/>
  939. <col ref="stocqty" visibility="hidden"/>
  940. <col ref="winseqno" visibility="hidden"/>
  941. <col ref="purcdmndseq" visibility="hidden"/>
  942. <col ref="winpackcntperunit" visibility="hidden"/>
  943. <col ref="prewinqty" visibility="hidden"/>
  944. <col ref="winpackunit" visibility="hidden"/>
  945. <col ref="reqflag" visibility="hidden"/>
  946. <col ref="reqdd" visibility="hidden"/>
  947. <col ref="reqno" visibility="hidden"/>
  948. <col ref="reqseqno" visibility="hidden"/>
  949. <col ref="delivedeptcd" visibility="hidden"/>
  950. <col ref="delivedd" visibility="hidden"/>
  951. <col ref="deliveno" visibility="hidden"/>
  952. <col ref="deliveseqno" visibility="hidden"/>
  953. <col ref="valiterm" visibility="hidden"/>
  954. <col ref="reqdeptcd" visibility="hidden"/>
  955. <col ref="prewinqty" visibility="hidden"/>
  956. <col ref="allsizespecid" visibility="hidden"/>
  957. <col ref="allsizespecidnm" visibility="hidden"/>
  958. <col ref="stdysubno" visibility="hidden"/>
  959. <col ref="ifgubn" visibility="hidden"/>
  960. <col ref="ifid" visibility="hidden"/>
  961. <col ref="suplplcecd" visibility="hidden"/>
  962. <col ref="winqty" visibility="hidden"/>
  963. <col ref="goodunitcost" visibility="hidden"/>
  964. <col ref="goodpurccost" visibility="hidden"/>
  965. <col ref="bnscd" visibility="hidden"/>
  966. <col ref="winunit" visibility="hidden"/>
  967. <col ref="bnswinstatus" visibility="hidden"/>
  968. <col ref="edicd" visibility="hidden"/>
  969. <col ref="bigoodcd" visibility="hidden"/>
  970. <col ref="biwinunit" visibility="hidden"/>
  971. <col ref="biwinunitcost" visibility="hidden"/>
  972. <col ref="biwinpackqty" visibility="hidden"/>
  973. <col ref="biwinamt" visibility="hidden"/>
  974. <col ref="bibnscd" visibility="hidden"/>
  975. <col ref="biedicd" visibility="hidden"/>
  976. <col ref="comparevalue" visibility="hidden"/>
  977. <script type="javascript" ev:event="xforms-value-changed">
  978. <![CDATA[
  979. if(grd_nonwin.col == grd_nonwin.colRef("winqty"))
  980. {
  981. model.setValue(grd_nonwin.nodeset + "[" + (grd_nonwin.row - grd_nonwin.fixedRows + 1) + "]/select" , "Y");
  982. fCalcWinamt(grd_nonwin.row - grd_nonwin.fixedRows + 1);
  983. fWinqtyTotal();
  984. }
  985. else if(grd_nonwin.col == grd_nonwin.colRef("select"))
  986. {
  987. if(grd_nonwin.valueMatrix(grd_nonwin.row,grd_nonwin.colRef("select")) == "N")
  988. {
  989. model.setValue(grd_nonwin.nodeset + "[" + (grd_nonwin.row - grd_nonwin.fixedRows + 1) + "]/winqty" , 0);
  990. grd_nonwin.rowStatus(grd_nonwin.row) = "0";
  991. }
  992. else
  993. {
  994. model.setValue(grd_nonwin.nodeset + "[" + (grd_nonwin.row - grd_nonwin.fixedRows + 1) + "]/winqty" , ( grd_nonwin.valueMatrix(grd_nonwin.row,grd_nonwin.colRef("reqqty"))- grd_nonwin.valueMatrix(grd_nonwin.row,grd_nonwin.colRef("prewinqty")) ));
  995. grd_nonwin.rowStatus(grd_nonwin.row) = "2";
  996. }
  997. fCalcWinamt(grd_nonwin.row - grd_nonwin.fixedRows + 1);
  998. fWinqtyTotal();
  999. }
  1000. ]]>
  1001. </script>
  1002. <script type="javascript" ev:event="onaftersort">
  1003. <![CDATA[
  1004. grd_nonwin.gridToInstance();
  1005. ]]>
  1006. </script>
  1007. <script type="javascript" ev:event="ondblclick">
  1008. <![CDATA[
  1009. if(ipt_suplplcecd.value == rszfGetMainCust(drg_main_suplplcecd) //-- 수작업 입고에 따른 조건 추가 [20090408]YYJ
  1010. && model.getValue(chk_nonautowinyn.attribute("ref")) !='Y' //-- 수작업 입고에 따른 조건 추가 [20090408]YYJ
  1011. && grd_nonwin.rows - grd_nonwin.fixedRows > 0
  1012. && grd_nonwin.fixedRows <= grd_nonwin.row ) {
  1013. fCompareDataSetting( grd_nonwin );
  1014. fSetPosition(true);
  1015. }
  1016. ]]>
  1017. </script>
  1018. <script type="javascript" ev:event="onclick">
  1019. <![CDATA[
  1020. if( ipt_suplplcecd.value == rszfGetMainCust(drg_main_suplplcecd) //-- 수작업 입고에 따른 조건 추가 [20090408]YYJ
  1021. && model.getValue(chk_nonautowinyn.attribute("ref")) !='Y' //-- 수작업 입고에 따른 조건 추가 [20090408]YYJ
  1022. && grd_nonwin.rows - grd_nonwin.fixedRows > 0
  1023. && grd_nonwin.fixedRows <= grd_nonwin.row
  1024. && swt_map.visible == true ) {
  1025. grd_nonwin.dispatch("ondblclick");
  1026. // fCompareDataSetting( grd_nonwin );
  1027. // fSetPosition(true);
  1028. }
  1029. ]]>
  1030. </script>
  1031. </datagrid>
  1032. <caption id="caption23" style="left:178px; top:5px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  1033. <input id="ipt_reqfrdd" ref="/root/send/goodwin/purcdmndfrdd" class="input_s_essential" inputtype="date" style="left:74px; top:5px; width:100px; height:19px; "/>
  1034. <input id="ipt_reqtodd" ref="/root/send/goodwin/purcdmndtodd" class="input_s_essential" inputtype="date" style="left:194px; top:5px; width:100px; height:19px; ">
  1035. <script type="javascript" ev:event="xforms-value-changed">
  1036. <![CDATA[
  1037. btn_search.dispatch("DOMActivate");
  1038. ]]>
  1039. </script>
  1040. </input>
  1041. <button id="btnselect" class="btn2_letter9" style="left:1074px; top:4px; width:119px; height:19px; ">
  1042. <caption>전체/전체선택 취소</caption>
  1043. <script type="javascript" ev:event="DOMActivate">
  1044. <![CDATA[
  1045. for(var liRow = grd_nonwin.fixedRows; liRow < grd_nonwin.rows ; liRow++)
  1046. {
  1047. if(grd_nonwin.valueMatrix(liRow,grd_nonwin.colRef("select")) == "Y")
  1048. {
  1049. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/select" , "N");
  1050. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/winqty" , 0);
  1051. grd_nonwin.rowStatus(liRow) = "0";
  1052. }
  1053. else
  1054. {
  1055. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/select" , "Y");
  1056. model.setValue(grd_nonwin.nodeset + "[" + (liRow - grd_nonwin.fixedRows + 1) + "]/winqty" , ( grd_nonwin.valueMatrix(liRow,grd_nonwin.colRef("reqqty"))- grd_nonwin.valueMatrix(liRow,grd_nonwin.colRef("prewinqty")) ));
  1057. grd_nonwin.rowStatus(liRow) = "2";
  1058. }
  1059. fCalcWinamt(liRow);
  1060. }
  1061. fWinqtyTotal();
  1062. model.refresh();
  1063. ]]>
  1064. </script>
  1065. </button>
  1066. <line id="line2" class="line_1" style="x1:0px; y1:25; x2:1193; y2:25; "/>
  1067. <caption id="caption8" style="left:15px; top:5px; width:80px; height:23px; font-weight:bold; vertical-align:middle; ">발주일자 :</caption>
  1068. <button id="btn_trans" class="btn2_letter11" visibility="hidden" style="left:930px; top:4px; width:141px; height:19px; ">
  1069. <caption>도매상 미입고 가져오기</caption>
  1070. <script type="javascript" ev:event="DOMActivate">
  1071. <![CDATA[
  1072. if(fCheckRetrieveData(true) == false)return;
  1073. fDataLoadNoWin();
  1074. fWinqtyTotal();
  1075. fSetPosition(false);
  1076. ]]>
  1077. </script>
  1078. </button>
  1079. <output id="opt_sumreqqty" ref="/root/init/reqcnt" class="output_default" format="#,###" style="left:363px; top:4px; width:56px; height:19px; font-weight:bold; "/>
  1080. <caption id="caption4" style="left:430px; top:4px; width:67px; height:23px; font-weight:bold; vertical-align:middle; ">발주금액 :</caption>
  1081. <caption id="caption5" style="left:299px; top:4px; width:67px; height:23px; font-weight:bold; vertical-align:middle; ">발주건수 :</caption>
  1082. <output id="opt_sumreqfla" ref="/root/init/reqamt" class="output_default" format="#,###" style="left:494px; top:4px; width:85px; height:19px; font-weight:bold; "/>
  1083. <caption id="cap_winqtytotal" style="left:717px; top:4px; width:67px; height:23px; vertical-align:middle; ">입고금액 :</caption>
  1084. <output id="opt_winqtycnt" ref="/root/init/winqtycnt" class="output_default" format="#,###" style="left:647px; top:4px; width:56px; height:19px; font-weight:bold; text-align:right; "/>
  1085. <caption id="caption10" style="left:588px; top:4px; width:67px; height:23px; vertical-align:middle; ">입고건수 :</caption>
  1086. <output id="opt_winqtytotal" ref="/root/init/winqtytotal" class="output_default" format="#,###" style="left:776px; top:4px; width:85px; height:19px; font-weight:bold; text-align:right; "/>
  1087. <switch id="swt_map" class="sw_box" visibility="hidden" style="left:920px; top:35px; width:270px; height:250px; border-color:#fffbf2; border-style:hidden; ">
  1088. <case id="cse_basic" selected="true" style="left:0px; top:0px; width:270px; height:250px; background-color:#fffbf2; ">
  1089. <!-- title start -->
  1090. <caption id="caption9" class="cell_2" style="left:80px; top:10px; width:85px; height:23px; font-weight:bold; color:#ffff00; text-align:center; vertical-align:middle; ">병원 정보</caption>
  1091. <caption id="caption21" class="cell_2" style="left:175px; top:10px; width:85px; height:23px; font-weight:bold; color:#ffff00; text-align:center; vertical-align:middle; ">보나에스</caption>
  1092. <!-- title end -->
  1093. <!-- caption start -->
  1094. <caption id="caption14" class="cell_1" style="left:10px; top:39px; width:65px; height:23px; vertical-align:middle; ">약품 코드</caption>
  1095. <caption id="caption16" class="cell_1" style="left:10px; top:65px; width:65px; height:23px; vertical-align:middle; ">입고 단위</caption>
  1096. <caption id="caption17" class="cell_1" style="left:10px; top:91px; width:65px; height:23px; vertical-align:middle; ">입고 단가</caption>
  1097. <caption id="caption18" class="cell_1" style="left:10px; top:117px; width:65px; height:23px; vertical-align:middle; ">입고 수량</caption>
  1098. <caption id="caption19" class="cell_1" style="left:10px; top:143px; width:65px; height:23px; vertical-align:middle; ">입고 금액</caption>
  1099. <caption id="caption20" class="cell_1" style="left:10px; top:169px; width:65px; height:23px; vertical-align:middle; ">보나 코드</caption>
  1100. <caption id="caption22" class="cell_1" style="left:10px; top:195px; width:65px; height:23px; vertical-align:middle; ">EDI코드</caption>
  1101. <!-- caption end -->
  1102. <!-- new item start -->
  1103. <input id="opt_goodcd" ref="/root/main/list/wincompare/windetail/goodcd" class="output_fix" style="left:80px; top:39px; width:85px; height:19px; "/>
  1104. <input id="opt_winunit" ref="/root/main/list/wincompare/windetail/winunit" class="output_fix" style="left:80px; top:65px; width:85px; height:19px; "/>
  1105. <input id="opt_winunitcost" ref="/root/main/list/wincompare/windetail/winunitcost" class="output_fix" format="#,###.##" style="left:80px; top:91px; width:85px; height:19px; text-align:right; "/>
  1106. <input id="opt_winpackqty" ref="/root/main/list/wincompare/windetail/winpackqty" class="output_fix" format="#,###" style="left:80px; top:117px; width:85px; height:19px; text-align:right; "/>
  1107. <input id="ipt_winamt" ref="/root/main/list/wincompare/windetail/winamt" class="input_default" format="#,###" style="left:80px; top:143px; width:85px; height:19px; text-align:right; "/>
  1108. <input id="opt_bnscd" ref="/root/main/list/wincompare/windetail/bnscd" class="output_fix" style="left:80px; top:169px; width:85px; height:19px; "/>
  1109. <input id="opt_edicd" ref="/root/main/list/wincompare/windetail/edicd" class="output_fix" style="left:80px; top:195px; width:85px; height:19px; "/>
  1110. <!-- new item end -->
  1111. <!-- old item start -->
  1112. <output id="opt_bigoodcd" ref="/root/main/list/wincompare/biwindetail/bi_goodcd" class="output_fix" style="left:175px; top:39px; width:85px; height:19px; "/>
  1113. <output id="opt_biwinunit" ref="/root/main/list/wincompare/biwindetail/bi_winunit" class="output_fix" style="left:175px; top:65px; width:85px; height:19px; "/>
  1114. <output id="opt_biwinunitcost" ref="/root/main/list/wincompare/biwindetail/bi_winunitcost" class="output_fix" format="#,###.##" style="left:175px; top:91px; width:85px; height:19px; text-align:right; "/>
  1115. <output id="opt_biwinpackqty" ref="/root/main/list/wincompare/biwindetail/bi_winpackqty" class="output_fix" format="#,###" style="left:175px; top:117px; width:85px; height:19px; text-align:right; "/>
  1116. <output id="opt_biwinamt" ref="/root/main/list/wincompare/biwindetail/bi_winamt" class="output_fix" format="#,###" style="left:175px; top:143px; width:85px; height:19px; text-align:right; "/>
  1117. <output id="opt_bibnscd" ref="/root/main/list/wincompare/biwindetail/bi_bnscd" class="output_fix" style="left:175px; top:169px; width:85px; height:19px; "/>
  1118. <output id="opt_biedicd" ref="/root/main/list/wincompare/biwindetail/bi_edicd" class="output_fix" style="left:175px; top:195px; width:85px; height:19px; "/>
  1119. <!-- end item start -->
  1120. <button id="button1" class="btn2_letter3" style="left:202px; top:220px; width:53px; height:19px; ">
  1121. <caption>닫 기</caption>
  1122. <script type="javascript" ev:event="DOMActivate">
  1123. <![CDATA[
  1124. fSetPosition(false);
  1125. ]]>
  1126. </script>
  1127. </button>
  1128. <button id="button4" class="btn2_letter3" style="left:140px; top:220px; width:53px; height:19px; ">
  1129. <caption>확 인</caption>
  1130. <script type="javascript" ev:event="DOMActivate">
  1131. <![CDATA[
  1132. if( grd_nonwin.valueMatrix(grd_nonwin.row, grd_nonwin.colRef("winamt")) != model.getValue(ipt_winamt.attribute("ref")) ) {
  1133. var pvalue = messageBox("수정된 입고 금액으로","Q009");
  1134. if ( pvalue == 6 ) {
  1135. grd_nonwin.valueMatrix(grd_nonwin.row, grd_nonwin.colRef("winamt")) = model.getValue(ipt_winamt.attribute("ref"));
  1136. grd_nonwin.valueMatrix(grd_nonwin.row, grd_nonwin.colRef("comparevalue")) = "0";
  1137. fSetGridColor( grd_nonwin.row );
  1138. fWinqtyTotal();
  1139. }
  1140. else
  1141. model.setValue( ipt_winamt.attribute("ref"), grd_nonwin.valueMatrix(grd_nonwin.row, grd_nonwin.colRef("winamt")) );
  1142. } else {
  1143. var pvalue = messageBox("병원 기준으로 입고를","Q009");
  1144. if ( pvalue == 6 ) {
  1145. grd_nonwin.valueMatrix(grd_nonwin.row, grd_nonwin.colRef("comparevalue")) = "0";
  1146. fSetGridColor( grd_nonwin.row );
  1147. }
  1148. }
  1149. fSetPosition(false);
  1150. ]]>
  1151. </script>
  1152. </button>
  1153. </case>
  1154. </switch>
  1155. </case>
  1156. <case id="cse_win" style="left:0px; top:0px; width:1193px; height:638; ">
  1157. <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwin/goodwinlist" caption="순번^발주번호^약품코드*^약품명^함량^포장수량^모델^제조회사^낱개수량^포장^포장^포장^단가^입고금액^출고수량^잔량^기관코드^물품구분^입고일자^입고자^입고부서^장소^계산구분^가납여부^전자계산방법^전자계산유무^입출력^부서^요구일자^요구번호^요구순번^출고번호^출고순번^보나에스코드^calcdocudd^profno^계정코드^청구일자^청구번호^청구순번^valiterm^재고유무^체크일자^체크자^체크유무^슬립일자^슬립번호^공급처코드^비고^이전입고량^caption1" colsep="^" colwidth="52, 0, 116, 287, 129, 71, 0, 0, 71, 78, 71, 75, 118, 100, 59, 52, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193px; height:598px; ">
  1158. <col ref="winseqno" style="text-align:center; "/>
  1159. <col ref="winno" visibility="hidden"/>
  1160. <col ref="goodcd" _key="true"/>
  1161. <col ref="goodnm"/>
  1162. <col ref="goodspec"/>
  1163. <col ref="winpackqty" format="#,###" maxlength="9" style="text-align:right; "/>
  1164. <col ref="goodmodel" visibility="hidden"/>
  1165. <col ref="prodcmpynm" visibility="hidden"/>
  1166. <col ref="winqty" format="#,###" maxlength="9" style="text-align:right; "/>
  1167. <col ref="winpackcntperunit" format="#,###" maxlength="9" style="text-align:right; "/>
  1168. <col ref="winpackunit" style="text-align:center; "/>
  1169. <col ref="winunit" style="text-align:center; "/>
  1170. <col ref="winunitcost" format="#,###.##" maxlength="14" style="text-align:right; "/>
  1171. <col ref="winamt" format="#,###.##" maxlength="14" style="text-align:right; "/>
  1172. <col ref="predelivedeptqty" visibility="hidden" format="#,###" maxlength="14" style="text-align:right; "/>
  1173. <col ref="stocqty" visibility="hidden" format="#,###" maxlength="14" style="text-align:right; "/>
  1174. <col ref="instcd" visibility="hidden"/>
  1175. <col ref="goodflag" visibility="hidden"/>
  1176. <col ref="windd" visibility="hidden"/>
  1177. <col ref="winpsn" visibility="hidden"/>
  1178. <col ref="windeptcd" visibility="hidden"/>
  1179. <col ref="installplcecd" visibility="hidden"/>
  1180. <col ref="paycond" visibility="hidden"/>
  1181. <col ref="temppay" visibility="hidden"/>
  1182. <col ref="calcdocukind" visibility="hidden"/>
  1183. <col ref="elctstmntyn" visibility="hidden"/>
  1184. <col ref="iokind" visibility="hidden"/>
  1185. <col ref="suplplcecd" visibility="hidden"/>
  1186. <col ref="purcdmnddd" visibility="hidden"/>
  1187. <col ref="purcdmndno" visibility="hidden"/>
  1188. <col ref="purcdmndseq" visibility="hidden"/>
  1189. <col ref="deliveno" visibility="hidden"/>
  1190. <col ref="deliveseqno" visibility="hidden"/>
  1191. <col ref="bnscd" visibility="hidden"/>
  1192. <col ref="calcdocudd" visibility="hidden"/>
  1193. <col ref="profno" visibility="hidden"/>
  1194. <col ref="acntcd" visibility="hidden"/>
  1195. <col ref="reqdd" visibility="hidden"/>
  1196. <col ref="reqno" visibility="hidden"/>
  1197. <col ref="reqseqno" visibility="hidden"/>
  1198. <col ref="valiterm" visibility="hidden"/>
  1199. <col ref="stocynindx" visibility="hidden"/>
  1200. <col ref="chkdd" visibility="hidden"/>
  1201. <col ref="chkpsn" visibility="hidden"/>
  1202. <col ref="chkyn" visibility="hidden"/>
  1203. <col ref="slipdd" visibility="hidden"/>
  1204. <col ref="slipno" visibility="hidden"/>
  1205. <col ref="suppcustcd" visibility="hidden"/>
  1206. <col ref="cmt" visibility="hidden"/>
  1207. <col ref="prewinqty" visibility="hidden"/>
  1208. <col ref="minexch" visibility="hidden"/>
  1209. <col ref="reqqty" visibility="hidden"/>
  1210. <col ref="reqdeptcd" visibility="hidden"/>
  1211. <script type="javascript" ev:event="onbuttonclick">
  1212. <![CDATA[
  1213. if (grd_goodwin.col == grd_goodwin.colRef("goodcd") && grd_goodwin.rowStatus(grd_goodwin.row) == "1" ) {//구성물품코드를 눌렀을 경우
  1214. model.removenode("/root/copynode");
  1215. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1216. model.makeNode("/root/copynode");
  1217. rszfOpenPopUpListByWndName(grd_goodwin,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","ipt_instcd,cmb_goodflag");
  1218. var cur_row = grd_goodwin.row;
  1219. var status = grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("m"));
  1220. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1221. setCSVToNode("/root/copynode", CSV, "goodwinlist");
  1222. fSettingGoodList("/root/copynode", "goodwinlist" , "userqty");
  1223. }
  1224. ]]>
  1225. </script>
  1226. <script type="javascript" ev:event="onrowchanged">
  1227. <![CDATA[
  1228. // ipt_cmt.value = model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/cmt");
  1229. // //misfGridInit(grd_goodreq);
  1230. //
  1231. // if(grd_goodwin.rowStatus(grd_goodwin.row) != "1" && model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/purcdmnddd").length > 0)
  1232. // {
  1233. // misfMsterDetailRetrieve();
  1234. // }
  1235. // else misfGridInit(grd_goodreq);
  1236. // ]]>
  1237. </script>
  1238. <script type="javascript" ev:event="xforms-value-changed">
  1239. <![CDATA[
  1240. if(grd_goodwin.col == grd_goodwin.colRef("goodcd") && grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.colRef("goodcd")).length> 0) {
  1241. model.removenode("/root/copynode");
  1242. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1243. model.makeNode("/root/copynode");
  1244. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(ipt_instcd.attribute("ref")) + "," +model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodcd") + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm,exchqty,goodunitcost",grd_goodwin,"SPRSD00190","instcd,goodflag","ipt_instcd," + model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodflag"),"Y");
  1245. model.refresh();
  1246. if( grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("goodnm")).length> 0)
  1247. {
  1248. if(model.getValue("/root/init/main/goodlist/exchqty") > 0) model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/winpackcntperunit",model.getValue("/root/init/main/goodlist/exchqty") );
  1249. else model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/winpackcntperunit","1");
  1250. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackunit" ,model.getValue("/root/init/main/goodlist/purcunit"));
  1251. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunit" , model.getValue("/root/init/main/goodlist/purcunit"));
  1252. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackqty" ,1);
  1253. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunitcost" , model.getValue("/root/init/main/goodlist/goodunitcost"));
  1254. }
  1255. model.recalculate();
  1256. model.refresh();
  1257. var cur_row = grd_goodwin.row;
  1258. var status = grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("m"));
  1259. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1260. if(CSV.length == 0 && grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("goodnm")).length == 0)
  1261. {
  1262. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodcd" , "");
  1263. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodnm" , "");
  1264. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodspec" , "");
  1265. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodmodel" , "");
  1266. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/prodcmpynm" , "");
  1267. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackqty" , "");
  1268. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackunit" , "");
  1269. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunit" , "");
  1270. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winqty" , "");
  1271. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackcntperunit" , "");
  1272. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunitcost" , "");
  1273. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winamt" , "");
  1274. grd_goodwin.col = grd_goodwin.colRef("goodcd");
  1275. grd_goodwin.editCell();
  1276. }
  1277. if(CSV.length > 0)
  1278. {
  1279. model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodcd","");
  1280. setCSVToNode("/root/copynode", CSV, "goodwinlist");
  1281. fSettingGoodList("/root/copynode", "goodwinlist" , "userqty");
  1282. }
  1283. }
  1284. ]]>
  1285. </script>
  1286. <script type="javascript" ev:event="onkeydown">
  1287. <![CDATA[
  1288. if(event.keyCode == 9)
  1289. {
  1290. if(event.shiftKey)
  1291. {
  1292. if(grd_goodwin.colAttribute(grd_goodwin.col + 1, "type").indexOf ("input") > -1)
  1293. {
  1294. for(curcol = grd_goodwin.col -1 ; curcol > -1 ; curcol--)
  1295. {
  1296. if(grd_goodwin.colAttribute(curcol, "type").indexOf ("input") > -1)
  1297. {
  1298. grd_goodwin.col = curcol;
  1299. grd_goodwin.editCell();
  1300. return;
  1301. }
  1302. }
  1303. }
  1304. }
  1305. else
  1306. {
  1307. if(grd_goodwin.colAttribute(grd_goodwin.col, "type").indexOf ("input") == -1)
  1308. {
  1309. if(grd_goodwin.col - 1 == grd_goodwin.colRef("goodcd") && grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.col - 1).length == 0)
  1310. {
  1311. grd_goodwin.col = grd_goodwin.colRef("goodcd");
  1312. grd_goodwin.editCell();
  1313. return;
  1314. }
  1315. for(curcol = grd_goodwin.col ; curcol <grd_goodwin.cols ; curcol++)
  1316. {
  1317. if(grd_goodwin.colAttribute(curcol, "type").indexOf ("input") > -1)
  1318. {
  1319. grd_goodwin.col = curcol;
  1320. grd_goodwin.editCell();
  1321. return;
  1322. }
  1323. }
  1324. }
  1325. }
  1326. }
  1327. ]]>
  1328. </script>
  1329. <script type="javascript" ev:event="onaftersort">
  1330. <![CDATA[
  1331. grd_goodwin.gridToInstance();
  1332. ]]>
  1333. </script>
  1334. </datagrid>
  1335. <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:118px; height:13px; ">입고내역</caption>
  1336. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193; y2:25px; "/>
  1337. <button id="btn_choidel" class="btn2_letter3" style="left:1140px; top:4px; width:53px; height:19px; ">
  1338. <caption>행삭제</caption>
  1339. <script type="javascript" ev:event="DOMActivate">
  1340. <![CDATA[
  1341. misfGridIUD(grd_goodwin, "D");
  1342. ]]>
  1343. </script>
  1344. </button>
  1345. <output id="ipt_sumwinqty" ref="/root/init/winqty" class="output_default" style="left:757px; top:4px; width:70px; height:19px; font-weight:bold; "/>
  1346. <output id="opt_sumwinamt" ref="/root/init/winamt" class="output_default" format="#,###" style="left:911px; top:4px; width:125px; height:19px; font-weight:bold; "/>
  1347. <button id="btn_insert" class="btn2_letter3" visibility="hidden" style="left:1085px; top:4px; width:53px; height:19px; ">
  1348. <caption>행추가</caption>
  1349. <script type="javascript" ev:event="DOMActivate">
  1350. <![CDATA[
  1351. if(fCheckRetrieveData(true) == false)return;
  1352. misfGridIUD(grd_goodwin, "A");
  1353. grd_goodwin.row = grd_goodwin.rows -grd_goodwin.fixedRows ;
  1354. // ipt_cmt.value = "";
  1355. fDefaultSetting(grd_goodwin.row );
  1356. grd_goodwin.col = grd_goodwin.colRef("goodcd");
  1357. grd_goodwin.editCell();
  1358. ]]>
  1359. </script>
  1360. </button>
  1361. <caption id="caption1" style="left:690px; top:4px; width:70px; height:23px; font-weight:bold; vertical-align:middle; ">입고건수 :</caption>
  1362. <caption id="caption2" style="left:844px; top:4px; width:70px; height:23px; font-weight:bold; vertical-align:middle; ">입고합계 :</caption>
  1363. </case>
  1364. </switch>
  1365. <button id="button2" class="btn_sw" group="tab" style="left:124px; top:75px; width:144px; height:22px; ">
  1366. <caption>입고관리</caption>
  1367. <toggle case="cse_win" ev:event="DOMActivate">fSetPosition(false);</toggle>
  1368. </button>
  1369. <button id="button6" class="btn_sw" group="tab" selected="true" style="left:0px; top:75px; width:125px; height:22px; ">
  1370. <caption>미입고조회/입고</caption>
  1371. <toggle case="cse_nonwin" ev:event="DOMActivate"/>
  1372. </button>
  1373. <input id="ipt_iokind" ref="/root/send/goodwin/iokind" visibility="hidden" style="left:1095px; top:45px; width:10px; height:19px; "/>
  1374. <line id="line5" class="line_4" style="x1:1109px; y1:18px; x2:1109px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  1375. <caption id="caption15" class="search_name" style="left:18px; top:45px; width:88px; height:17px; ">공 급 처 :</caption>
  1376. <caption id="caption11" class="search_name" style="left:15; top:19px; width:86px; height:17px; ">입고일자 :</caption>
  1377. <caption id="caption12" class="search_name" style="left:473px; top:19px; width:86px; height:17px; ">입고부서 :</caption>
  1378. <caption id="caption13" class="search_name" visibility="hidden" style="left:755px; top:19px; width:99px; height:17px; ">계산서일자 :</caption>
  1379. <input id="ipt_instcd" ref="/root/send/goodwin/instcd" visibility="hidden" style="left:1070px; top:15px; width:30px; height:19px; "/>
  1380. <select1 id="cmb_windeptcd" ref="/root/send/goodwin/windeptcd" class="combo_s_essential" appearance="minimal" style="left:563px; top:20px; width:160px; height:19px; ">
  1381. <choices>
  1382. <itemset>
  1383. <label/>
  1384. <value/>
  1385. </itemset>
  1386. </choices>
  1387. <script type="javascript" ev:event="xforms-value-changed">
  1388. <![CDATA[
  1389. // if (model.getValue(chk_nonautowinyn.attribute("ref")) !='Y' ) {
  1390. misfGridInit(grd_nonwin);
  1391. // 보나에스번호 조회
  1392. ///fLoadBnsDeliveno("N");
  1393. model.refresh();
  1394. // }
  1395. ]]>
  1396. </script>
  1397. </select1>
  1398. <output id="opt_interfacegubn" ref="/root/send/goodwin/interfacegubn" visibility="hidden" style="left:1070px; top:45px; width:20px; height:19px; "/>
  1399. <script type="javascript" ev:event="xforms-valid">
  1400. <![CDATA[
  1401. if(ipt_suplplcenm.value.length == 0)
  1402. ipt_suplplcecd.value = "";
  1403. else
  1404. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1405. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
  1406. ipt_suplplcenm,"SPRSD00220","instcd","cmb_instcd");
  1407. model.refresh();
  1408. ]]>
  1409. </script>
  1410. <select1 id="cmb_bideliveno" ref="/root/send/goodwin/bideliveno" disabled="true" visibility="hidden" appearance="minimal" style="left:583px; top:44px; width:140px; height:19px; ">
  1411. <choices>
  1412. <itemset>
  1413. <label/>
  1414. <value/>
  1415. </itemset>
  1416. </choices>
  1417. <script type="javascript" ev:event="xforms-value-changed">
  1418. <![CDATA[
  1419. btn_trans.dispatch("DOMActivate");
  1420. ]]>
  1421. </script>
  1422. </select1>
  1423. <caption id="caption7" class="search_name" visibility="hidden" style="left:473px; top:45px; width:112px; height:17px; ">도매상 파일 :</caption>
  1424. <output id="opt_calcdocukind" ref="/root/send/goodwin/calcdocukind" visibility="hidden" style="left:1050px; top:45px; width:15px; height:19px; "/>
  1425. <select id="chk_nonautowinyn" ref="/root/send/nonautowinyn" visibility="hidden" overflow="visible" appearance="full" style="left:795px; top:45px; width:90px; height:15px; font-weight:bold; border-style:none; ">
  1426. <choices>
  1427. <item>
  1428. <label>수작업입고</label>
  1429. <value>Y</value>
  1430. </item>
  1431. </choices>
  1432. <script type="javascript" ev:event="xforms-value-changed">
  1433. <![CDATA[
  1434. model.removenode("/root/send/savenonwin/goodnowintype"); // 보나에스 입고 파일로 저장할 경우 지정되는 노드.. 저장후 초기화 한다.
  1435. cmb_windeptcd.dispatch("xforms-value-changed");
  1436. ]]>
  1437. </script>
  1438. </select>
  1439. </group>
  1440. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  1441. <button id="button3" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  1442. <caption>출력</caption>
  1443. </button>
  1444. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1445. <caption>초기화</caption>
  1446. <script type="javascript" ev:event="DOMActivate">
  1447. <![CDATA[
  1448. fInitialize();
  1449. ]]>
  1450. </script>
  1451. </button>
  1452. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  1453. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  1454. <caption>저장</caption>
  1455. <script type="javascript" ev:event="DOMActivate">
  1456. <![CDATA[
  1457. if(sch_select.selectedIndex == 0)
  1458. {
  1459. if(fCheckSaveData() == false)return;
  1460. if(fSettingSaveInData()== false) return;
  1461. model.setValue("/root/send/savenonwin/interfacecustcdlist/purc_main_suplplcecd",rszfGetMainCust(purc_main_suplplcecd));
  1462. model.setValue("/root/send/savenonwin/interfacecustcdlist/drg_main_suplplcecd",rszfGetMainCust(drg_main_suplplcecd));
  1463. model.setValue("/root/send/savenonwin/goodnonwinlist", grd_nonwin.getUpdateData());
  1464. submit("TXRSI00102");
  1465. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  1466. {
  1467. //if (ipt_suplplcecd.value==rszfGetMainCust(drg_main_suplplcecd)) fLoadBnsDeliveno("N");
  1468. //model.removenode("/root/send/savenonwin/goodnowintype"); // 보나에스 입고 파일로 저장할 경우 지정되는 노드.. 저장후 초기화 한다.
  1469. btn_search.dispatch("DOMActivate");
  1470. }
  1471. }
  1472. else
  1473. {
  1474. model.setValue("/root/send/save/interfacecustcdlist/purc_main_suplplcecd",rszfGetMainCust(purc_main_suplplcecd));
  1475. model.setValue("/root/send/save/interfacecustcdlist/drg_main_suplplcecd",rszfGetMainCust(drg_main_suplplcecd));
  1476. misfSave("TXRSI00101");
  1477. if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
  1478. }
  1479. ]]>
  1480. </script>
  1481. </button>
  1482. </group>
  1483. </xhtml:body>
  1484. </xhtml:html>