SMMNG00200_물품코드등록(CSR).xrw 135 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716
  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. <![CDATA[zzz]]>
  6. <xhtml:title>CSR 물품 Master</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <!--(20101014) 경북대) -->
  12. <misgoodchk/>
  13. <!--(20101014) 경북대) -->
  14. <!--(20101013) 경북대) -->
  15. <srchinfo>
  16. <srchflag/>
  17. </srchinfo>
  18. <!--(20101013) 경북대) -->
  19. <RscmgubnLists>
  20. <TreeList>
  21. <depth/>
  22. <pcode/>
  23. <codecd/>
  24. <codenm>
  25. </codenm>
  26. <basecd/>
  27. <mainmngtdeptcd/>
  28. <mainmngtdeptnm/>
  29. <winacnt/>
  30. <winacntnm/>
  31. <amtacnt/>
  32. <amtacntnm/>
  33. <dispnm>
  34. </dispnm>
  35. </TreeList>
  36. </RscmgubnLists>
  37. <cond>
  38. <lrgcd/>
  39. <mdlcd/>
  40. <smlcd/>
  41. <refflag>1</refflag>
  42. <goodnm/>
  43. <reqflag/>
  44. <proddrugsetflag/>
  45. <smlnm/>
  46. <useyn>Y</useyn>
  47. <goodpos/>
  48. <goodpos1/>
  49. <goodpos2/>
  50. <cdflag>1</cdflag>
  51. </cond>
  52. <deptcodelist/>
  53. <goodlist>
  54. <rgstyn/>
  55. <prcpyn/>
  56. <goodcd/>
  57. <allsizeyn/>
  58. <goodnm/>
  59. <goodspec/>
  60. <goodmodel/>
  61. <prodcmpycd/>
  62. <purclnkgoodcd/>
  63. <tmpreqflag/>
  64. <goodunitcost/>
  65. <reqflag>1</reqflag>
  66. <proddrugsetflag>2</proddrugsetflag>
  67. <lrgcd/>
  68. <lrgnm/>
  69. <mdlcd/>
  70. <mdlnm/>
  71. <smlcd/>
  72. <smlnm/>
  73. <csrgoodnm/>
  74. <csrgoodspec/>
  75. <csrgoodmodel/>
  76. <prodcmpynm/>
  77. <purcflag/>
  78. <reqmthd/>
  79. <reqprid/>
  80. <prcpflag>N</prcpflag>
  81. <prcpunit/>
  82. <prcpexchqty/>
  83. <suppcustcd/>
  84. <custnm/>
  85. <cntctel/>
  86. <faxno/>
  87. <deliveunit/>
  88. <exchqty/>
  89. <goodinfo/>
  90. <fstrgstdt/>
  91. <fstrgstrid/>
  92. <fstrgstrnm/>
  93. <insuinfo/>
  94. <useyn>Y</useyn>
  95. <calcscorinfoacptstat/>
  96. <fromdd/>
  97. <todd/>
  98. <goodpos/>
  99. <goodpos1/>
  100. <goodpos2/>
  101. <prsdnm/>
  102. <dump/>
  103. <deliveflag/>
  104. <lastupdtdt/>
  105. <lastupdtrid/>
  106. <lastupdtrnm/>
  107. <allsizespecid/>
  108. <dinfflag>Y</dinfflag>
  109. <dinfdivs/>
  110. <csrrequnit/>
  111. <csrreqqty/>
  112. <csrreqflag>Y</csrreqflag>
  113. <mstflag>T</mstflag>
  114. <baseqty/>
  115. <simlgood/>
  116. <cleanflag/>
  117. <netflag/>
  118. <dinfcleanflag/>
  119. <workgubn/>
  120. <dlvgubn/>
  121. <reqdetlflag/>
  122. <csrworkflag/>
  123. <dressingyn/>
  124. <remark/>
  125. </goodlist>
  126. <rscdgooddata>
  127. <chkyn/>
  128. <rgstyn/>
  129. <prcpyn/>
  130. <goodcd/>
  131. <allsizeyn/>
  132. <goodnm/>
  133. <goodspec/>
  134. <goodmodel/>
  135. <prodcmpycd/>
  136. <purclnkgoodcd/>
  137. <tmpreqflag/>
  138. <goodunitcost/>
  139. <reqflag/>
  140. <proddrugsetflag/>
  141. <lrgcd/>
  142. <lrgnm/>
  143. <mdlcd/>
  144. <mdlnm/>
  145. <smlcd/>
  146. <smlnm/>
  147. <csrgoodnm/>
  148. <csrgoodspec/>
  149. <csrgoodmodel/>
  150. <prodcmpynm/>
  151. <purcflag/>
  152. <reqmthd/>
  153. <reqprid/>
  154. <prcpflag/>
  155. <prcpunit/>
  156. <prcpexchqty/>
  157. <suppcustcd/>
  158. <custnm/>
  159. <cntctel/>
  160. <faxno/>
  161. <prcpflag/>
  162. <deliveunit/>
  163. <exchqty/>
  164. <goodinfo/>
  165. <fstrgstdt/>
  166. <fstrgstrid/>
  167. <fstrgstrnm/>
  168. <insuinfo/>
  169. <lastupdtrid/>
  170. <lastupdtdt/>
  171. <useyn/>
  172. <calcscorinfoacptstat/>
  173. <allsizespecid/>
  174. </rscdgooddata>
  175. <popup/>
  176. </main>
  177. <send>
  178. <reqlrgcd>
  179. <instcd/>
  180. <goodflag/>
  181. <useyn/>
  182. </reqlrgcd>
  183. <goodflag/>
  184. <instcd/>
  185. </send>
  186. <init>
  187. <initflag>D</initflag>
  188. <deptflag/>
  189. <deptref>
  190. <instcd/>
  191. </deptref>
  192. <mlist>
  193. <R0092>
  194. <cdid/>
  195. <cdnm/>
  196. </R0092>
  197. <R0032>
  198. <cdid/>
  199. <cdnm/>
  200. </R0032>
  201. <R0039>
  202. <cdid/>
  203. <cdnm/>
  204. </R0039>
  205. <R0111>
  206. <cdid/>
  207. <cdnm/>
  208. </R0111>
  209. </mlist>
  210. <codeinfo/>
  211. </init>
  212. <hidden/>
  213. <temp>
  214. <cond>
  215. <checkallitem/>
  216. </cond>
  217. </temp>
  218. <!-- (20101013) 경북대 -->
  219. <tmp>
  220. <hidden>
  221. <goodflaginfo/>
  222. </hidden>
  223. </tmp>
  224. <!-- (20101013) 경북대 -->
  225. <!-- (20101014) 경북대 -->
  226. <tmp1>
  227. <hidden1>
  228. <csrgoodflaginfo/>
  229. </hidden1>
  230. </tmp1>
  231. <!-- (20101014) 경북대 -->
  232. </root>
  233. </instance>
  234. <script type="javascript" ev:event="xforms-ready">
  235. <![CDATA[
  236. fInitialize();
  237. ]]>
  238. </script>
  239. <submission id="TRMNG00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/lrglist"/>
  240. <submission id="TRMNG00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/mdllist"/>
  241. <submission id="TRMNG00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/smllist"/>
  242. <submission id="TRMNG00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscdgooddata"/>
  243. <submission id="TRMNG00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/RscmgubnLists"/>
  244. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  245. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post">//</submission>
  246. <submission id="TRMNG00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
  247. <submission id="TXMNG00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/temp"/>
  248. <!--(20101013) 경북대 추가 -->
  249. <submission id="TRMNP04497" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/hidden"/>
  250. <!--(20101013) 경북대 추가 -->
  251. <!--(20101014) 경북대 추가 -->
  252. <submission id="TRMNG00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp1/hidden1"/>
  253. <!--(20101014) 경북대 추가 -->
  254. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
  255. </model>
  256. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  257. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  258. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  259. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  260. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  261. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  262. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  263. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  264. <script type="javascript">
  265. <![CDATA[
  266. var workflag = "S"; // P :일괄등록, S: 하나씩 등록
  267. var preIdx = -1;
  268. var preStat = "0";
  269. var srchflag = '1';
  270. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  271. function fInitialize() {
  272. model.removeNodeset(grd_rscdgooddata.attribute("ref"));
  273. model.makeValue("/root/send/reqdata/goodflag" ,"D"); // 메시지종류
  274. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  275. //---------------(20101013) 경북대 s1
  276. cap_srchflag.visible = true;
  277. cmb_srchflag.visible= true;
  278. model.makeValue("/root/send/req/flag", "CSR");
  279. submit("TRMNP04497");//마스터구분이 구매인 경우 물품구분을 사용한다.
  280. cmb_srchflag.select(0);
  281. //---------------(20101013) 경북대 e1
  282. //---------------(20101014) 경북대 s1
  283. //중앙공급실 물품구분 코드 GET
  284. submit("TRMNG00205");
  285. //---------------(20101014) 경북대 s1
  286. model.makeValue("/root/send/reqdata/cdgrupid", "'T95', 'U20'");
  287. model.makeValue("/root/send/reqdata/srchdd", getCurrentDate());
  288. submit("TRMNW00001");
  289. addComboItem("cmb_csrworkflag", " ", "", "above");
  290. //submit("TRMNG00202"); // Tree Data 정보를 가져온다.
  291. zbcfGetCodeList( new Array ( "R0092" //청구방법
  292. ,"R0032" //구매단위
  293. ,"R0111" //구매구분
  294. ,"R0093" //청구기간
  295. , "R0025"
  296. ,"M0635"
  297. ,"M0637"
  298. ,"M0638"
  299. )
  300. , new Array ( "/root/init/mlist" //청구방법
  301. ,"/root/init/mlist" //구매단위
  302. ,"/root/init/mlist" //구매구분
  303. ,"/root/init/mlist" //청구기간
  304. ,"/root/send/goodflag"
  305. ,"/root/init/mlist" //청구기간
  306. ,"/root/init/mlist" //업무분류
  307. ,"/root/init/mlist" //불출구분
  308. )
  309. );
  310. //불출단위 이름순 정렬 by 박영우 2010-02-09
  311. zbcfGetCodeList( new Array ("R0039"), new Array ("/root/init/mlist"), true, new Array ("cdnm"), new Array("asc")); //불출단위
  312. model.setValue(opt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  313. opt_instcd.refresh();
  314. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  315. model.makeValue("/root/send/reqdata/useyn", "Y");
  316. model.makeValue("/root/send/reqdata/dutycd", "D");
  317. model.makeValue("/root/send/reqdata/cdflag", "E");
  318. model.refresh();
  319. }
  320. function fSearch() {
  321. fRetrGoodList();
  322. fInitCntrl();
  323. preStat = "0";
  324. }
  325. // 분류구분 대분류 조회
  326. function fSearchLrgcd() {
  327. model.makeValue("/root/send/reqlrgcd/goodflag", "T");
  328. model.makeValue("/root/send/reqlrgcd/useyn" , "Y");
  329. var initflag = model.getValue(rdo_initflag.attribute("ref"));
  330. if(initflag == "OR") {
  331. model.makeValue("/root/send/reqlrgcd/lrgcd", "OR");
  332. } else {
  333. model.makeValue("/root/send/reqlrgcd/lrgcd", "");
  334. }
  335. submit("TRMNG00101");
  336. }
  337. //분류구분에 중분류 조회
  338. function fMdlCDSearch(srchflag){
  339. model.makeValue("/root/send/reqlrgcd/goodflag", "T");
  340. if(srchflag =="srch"){
  341. var lrgcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd"));
  342. model.makeValue("/root/send/reqlrgcd/lrgcd", lrgcd);
  343. }else{
  344. model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
  345. }
  346. model.makeValue("/root/send/reqlrgcd/useyn", "Y");
  347. submit("TRMNG00102");
  348. model.removeNodeset("/root/main/goodlist/mdlcd");
  349. model.removeNodeset("/root/main/goodlist/smlcd");
  350. model.makeNode("/root/main/goodlist/mdlcd");
  351. model.makeNode("/root/main/goodlist/smlcd");
  352. var nodelist = instance1.selectNodes("/root/init/mdllist");
  353. if(nodelist.length < 1){
  354. model.removeNodeset("/root/init/mdllist");
  355. model.removeNodeset("/root/init/smllist");
  356. }
  357. cmb_mdlcd.refresh();
  358. cmb_smlcd.refresh();
  359. }
  360. //분류구분에 소분류 조회
  361. function fSmlCDSearch(srchflag){
  362. model.makeValue("/root/send/reqlrgcd/goodflag", "T");
  363. if(srchflag =="srch"){
  364. var lrgcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd"));
  365. var mdlcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlcd"));
  366. model.makeValue("/root/send/reqlrgcd/lrgcd", lrgcd);
  367. model.makeValue("/root/send/reqlrgcd/mdlcd", mdlcd);
  368. }else{
  369. model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
  370. model.makeValue("/root/send/reqlrgcd/mdlcd", model.getValue(cmb_mdlcd.attribute("ref")));
  371. }
  372. model.makeValue("/root/send/reqlrgcd/useyn", "Y");
  373. submit("TRMNG00103");
  374. grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
  375. model.removeNodeset("/root/main/goodlist/smllist");
  376. model.makeNode("/root/main/goodlist/smllist");
  377. var nodelist = instance1.selectNodes("/root/init/smllist");
  378. if(nodelist.length < 1){
  379. model.removeNodeset("/root/init/smllist");
  380. }
  381. cmb_smlcd.refresh();
  382. }
  383. function fGetCodeList() {
  384. model.makeValue("/root/send/reqlrgcd/instcd" , getUserInfo("dutplceinstcd"));
  385. model.makeValue("/root/send/reqlrgcd/goodflag", model.getValue(cmb_goodflag_search.attribute("ref")));
  386. model.makeValue("/root/send/reqlrgcd/useyn" , "Y");
  387. submit("TRMNG00101");
  388. }
  389. // 화면 전체 조회
  390. function fRetrGoodList(saveflag) {
  391. model.removeNodeset("/root/send/reqdata");
  392. //alert("initflag: " + rdo_initflag.value + " goodflag: " + cmb_goodflag_search.value + " rdo_refflag: " + rdo_refflag.value + " ipt_goodnm : " + ipt_goodnm.value);
  393. if(saveflag!="S"){
  394. if(rdo_initflag.value== "D") {
  395. if(cmb_goodflag_search.value == "" && ipt_goodnm.value == "") {
  396. messageBox("구매물품 조회시 물품분류, 물품코드, 물품명은 적어도 하나는 선택하셔야합니다.", "E");
  397. return;
  398. }
  399. }
  400. }
  401. model.makeValue("/root/send/reqdata/initflag" , model.getValue(rdo_initflag.attribute("ref")) );
  402. model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
  403. model.makeValue("/root/send/reqdata/goodflag" , cmb_goodflag_search.value);
  404. model.makeValue("/root/send/reqdata/lrgcd" , model.getValue(opt_lrgcd2.attribute("ref")));
  405. model.makeValue("/root/send/reqdata/mdlcd" , model.getValue(opt_mdlcd2.attribute("ref")));
  406. model.makeValue("/root/send/reqdata/smlcd" , model.getValue(opt_smlcd2.attribute("ref")));
  407. //구매, CSR구분.
  408. var initflag = model.getValue(rdo_initflag.attribute("ref"));
  409. var refflag = model.getValue(rdo_refflag.attribute("ref"));
  410. //검색구분
  411. var cdflag = model.getValue(rdo_cdflag.attribute("ref"));
  412. //구매일때
  413. if(initflag == "D" && refflag == "1") {
  414. if(cdflag == "1") {
  415. model.makeValue("/root/send/reqdata/goodcd" , model.getValue(ipt_goodnm.attribute("ref")));
  416. } else if(cdflag == "2") {
  417. model.makeValue("/root/send/reqdata/goodnm" , model.getValue(ipt_goodnm.attribute("ref")));
  418. }
  419. } else if(initflag == "T" && refflag == "2") {
  420. if(cdflag == "1") {
  421. model.makeValue("/root/send/reqdata/csrgoodcd" , model.getValue(ipt_goodnm.attribute("ref")));
  422. } else if(cdflag == "2") {
  423. model.makeValue("/root/send/reqdata/csrgoodnm" , model.getValue(ipt_goodnm.attribute("ref")));
  424. }
  425. }
  426. model.makeValue("/root/send/reqdata/reqflag" , model.getValue(rdo_reqflag.attribute("ref")));
  427. model.makeValue("/root/send/reqdata/proddrugsetflag" , model.getValue(rdo_proddrugsetflag.attribute("ref")));
  428. model.makeValue("/root/send/reqdata/useyn" , model.getValue(rdo_useyn2.attribute("ref")));
  429. model.makeValue("/root/send/reqdata/goodpos" , model.getValue(ipt_searchgoodpos.attribute("ref")));
  430. model.makeValue("/root/send/reqdata/goodpos1" , model.getValue(ipt_searchgoodpos1.attribute("ref")));
  431. model.makeValue("/root/send/reqdata/goodpos2" , model.getValue(ipt_searchgoodpos2.attribute("ref")));
  432. model.makeValue("/root/send/reqdata/srchflag2", srchflag);
  433. //------(20101012) 경북대
  434. if(saveflag!="S"){
  435. if(rdo_initflag.value== "D") {
  436. model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/srchinfo/srchflag"));
  437. }
  438. }
  439. //------(20101012) 경북대
  440. submit("TRMNG00201");
  441. model.refresh();
  442. }
  443. function fCheckAuth() {
  444. btn_search.disabled = !checkAuth("R") ;
  445. btn_save.disabled = !checkAuth("X") ;
  446. //btn_prt.disabled = !checkAuth("P") ;
  447. }
  448. function fDefaultSetting() {
  449. model.setValue(grd_gooddetlist.nodeset + "/goodflag" , model.getValue(cmb_goodflag_search.attribute("ref")));
  450. model.setValue(grd_gooddetlist.nodeset + "/goodcd" , "");
  451. model.setValue(grd_gooddetlist.nodeset + "/fromdd" , getCurrentDate());
  452. model.setValue(grd_gooddetlist.nodeset + "/lrgcd" , model.getValue(cmb_lrgcd_search.attribute("ref")));
  453. model.setValue(grd_gooddetlist.nodeset + "/lrgnm" , cmb_lrgcd_search.label );
  454. model.setValue(grd_gooddetlist.nodeset + "/mdlcd" , model.getValue(cmb_mdlcd_search.attribute("ref")));
  455. model.setValue(grd_gooddetlist.nodeset + "/mdlnm" , cmb_mdlcd_search.label );
  456. model.setValue(grd_gooddetlist.nodeset + "/smlcd" , model.getValue(cmb_smlcd_search.attribute("ref")));
  457. model.setValue(grd_gooddetlist.nodeset + "/smlnm" , cmb_smlcd_search.label );
  458. model.setValue(grd_gooddetlist.nodeset + "/prodcmpycd" , model.getValue(ipt_prodcmpy_search.attribute("ref")));
  459. model.setValue(grd_gooddetlist.nodeset + "/prodcmpynm" , model.getValue(ipt_prodcmpynm_search.attribute("ref")));
  460. }
  461. function fGoodCdCopy() {
  462. if(model.getValue(cmb_lrgcd.attribute("ref")).length== 0 ) {
  463. messageBox("대분류코드를 " ,"C002");
  464. model.setFocus("cmb_lrgcd");
  465. return false;
  466. }
  467. model.makeValue("/root/send/goodcopy/goodflag", "T");
  468. model.makeValue("/root/send/goodcopy/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
  469. var mdlcd ;
  470. var smlcd;
  471. if( model.getValue(cmb_mdlcd.attribute("ref")) == "") {
  472. mdlcd = "00";
  473. } else {
  474. mdlcd = model.getValue(cmb_mdlcd.attribute("ref"));
  475. }
  476. if( model.getValue(cmb_smlcd.attribute("ref")) == "") {
  477. smlcd = "00";
  478. } else {
  479. smlcd = model.getValue(cmb_smlcd.attribute("ref"));
  480. }
  481. model.makeValue("/root/send/goodcopy/mdlcd", mdlcd);
  482. model.makeValue("/root/send/goodcopy/smlcd", smlcd);
  483. if(model.getValue("/root/init/initflag") =="OR"){
  484. model.makeValue("/root/send/goodcopy/cretcdflag","OR");
  485. }
  486. submit("TRMNG00203");
  487. var goodcd = model.getValue("/root/main/goodcopy/goodlist/goodcd");
  488. if(goodcd.length == 0)goodcd = model.getValue(cmb_goodflag_search.attribute("ref")) + model.getValue(opt_lrgcd.attribute("ref")) + model.getValue(opt_mdlcd.attribute("ref")) + "0001";
  489. model.setValue(ipt_goodcd.attribute("ref"), goodcd);
  490. //grp_detail.refresh();
  491. ipt_goodcd.refresh();
  492. }
  493. var TreePath = "/root/main/RscmgubnLists/TreeList";
  494. //트리 선택시 선택한 Depth에 대한 물품구분 대중소 분류코드를 가져온 다음 물품정보를 조회한다.
  495. function fTreeClick(pIdx) {
  496. var OpCode = "";
  497. var OpDepth = "";
  498. var vDepth = "";
  499. var vGoodflag = "";
  500. var vGoodflagnm = "";
  501. var vLrgcd = "";
  502. var vLrgnm = "";
  503. var vMdlcd = "";
  504. var vMdlnm = "";
  505. var vSmlcd = "";
  506. var vSmlnm = "";
  507. var vMainmngtdeptcd = "";
  508. var vMainmngtdeptnm = "";
  509. var vWinacnt = "";
  510. var vWinacntnm = "";
  511. var vAmtacnt = "";
  512. var vAmtacntnm = "";
  513. var Idx = pIdx + 1;
  514. var sDepth = model.getValue(TreePath +"["+Idx+"]/depth");
  515. if (sDepth == "1") {
  516. vGoodflag = model.getValue(TreePath +"["+Idx+"]/codecd");
  517. vGoodflagnm = model.getValue(TreePath +"["+Idx+"]/codenm");
  518. }
  519. if (sDepth == "2") {
  520. vLrgcd = model.getValue(TreePath +"["+Idx+"]/codecd");
  521. vLrgnm = model.getValue(TreePath +"["+Idx+"]/codenm");
  522. OpCode = model.getValue(TreePath +"["+Idx+"]/basecd");
  523. vGoodflag = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
  524. vGoodflagnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
  525. }
  526. if (sDepth == "3") {
  527. vMdlcd = model.getValue(TreePath +"["+Idx+"]/codecd") ;
  528. vMdlnm = model.getValue(TreePath +"["+Idx+"]/codenm") ;
  529. OpCode = model.getValue(TreePath +"["+Idx+"]/basecd");
  530. vLrgcd = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
  531. vLrgnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
  532. OpCode = model.getValue(TreePath +"[pcode='"+ OpCode+"']/basecd");
  533. vGoodflag = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
  534. vGoodflagnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
  535. }
  536. if (sDepth == "4") {
  537. vSmlcd = model.getValue(TreePath +"["+Idx+"]/codecd");
  538. vSmlnm = model.getValue(TreePath +"["+Idx+"]/codenm");
  539. OpCode = model.getValue(TreePath +"["+Idx+"]/basecd");
  540. vMdlcd = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
  541. vMdlnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
  542. OpCode = model.getValue(TreePath +"[pcode='"+ OpCode+"']/basecd");
  543. vLrgcd = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
  544. vLrgnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
  545. OpCode = model.getValue(TreePath +"[pcode='"+ OpCode+"']/basecd");
  546. vGoodflag = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codecd");
  547. vGoodflagnm = model.getValue(TreePath +"[pcode='"+ OpCode+"']/codenm");
  548. }
  549. model.setValue(cmb_goodflag_search.attribute("ref") , vGoodflag);
  550. model.setValue(opt_lrgcd2.attribute("ref") , vLrgcd);
  551. model.setValue(opt_lrgnm.attribute("ref") , vLrgnm);
  552. model.setValue(opt_mdlcd2.attribute("ref") , vMdlcd);
  553. model.setValue(opt_mdlnm.attribute("ref") , vMdlnm);
  554. model.setValue(opt_smlcd2.attribute("ref") , vSmlcd);
  555. model.setValue(opt_smlnm.attribute("ref") , vSmlnm);
  556. cmb_goodflag_search.refresh();
  557. opt_lrgcd2.refresh();
  558. //cmb_lrgcd.refresh();
  559. opt_lrgnm.refresh();
  560. // cmb_mdlcd.refresh();
  561. opt_mdlcd2.refresh();
  562. opt_mdlnm.refresh();
  563. //cmb_smlcd.refresh();
  564. opt_smlcd2.refresh();
  565. opt_smlnm.refresh();
  566. if(rdo_initflag.value == "D") {
  567. if(sDepth == "3" || sDepth == "4") {
  568. fSearch();
  569. }
  570. } else {
  571. if(sDepth == "2" || sDepth == "3" || sDepth == "4") {
  572. fSearch();
  573. }
  574. }
  575. }
  576. function fEnDisCtrl(flag) {
  577. btn_purclnkgood.disabled = flag;
  578. rdo_reqflag2.disabled = flag;
  579. rdo_proddrugsetflag2.disabled = flag;
  580. ipt_csrgoodnm.disabled = flag;
  581. ipt_csrgoodspec.disabled = flag;
  582. ipt_csrgoodmodel.disabled = flag;
  583. rdo_useyn.disabled = flag;
  584. ipt_goodpos.disabled = flag;
  585. ipt_goodpos1.disabled = flag;
  586. ipt_goodpos2.disabled = flag;
  587. btn_suppcust.disabled = flag;
  588. btn_prodcmpy.disabled = flag;
  589. cmb_lrgcd.disabled = flag;
  590. cmb_mdlcd.disabled = flag;
  591. cmb_smlcd.disabled = flag;
  592. tar_goodinfo.disabled = flag;
  593. rdo_csrreqflag.disabled = flag;
  594. cmb_csrrequnit.disabled = flag;
  595. ipt_csrreqqty.disabled = flag;
  596. rdo_dinfflag.disabled = flag;
  597. ipt_todd.disabled = flag;
  598. }
  599. function fSetPreGridData() {
  600. var initflag = rdo_initflag.value;
  601. if(initflag == "D") {
  602. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
  603. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
  604. } else {
  605. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("purclnkgoodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
  606. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
  607. }
  608. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
  609. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("lrgcd")) = model.getValue(cmb_lrgcd.attribute("ref"));
  610. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("lrgnm")) = cmb_lrgcd.label;
  611. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("mdlcd")) = model.getValue(cmb_mdlcd.attribute("ref"));
  612. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("mdlnm")) = cmb_mdlcd.label;
  613. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("smlcd")) = model.getValue(cmb_smlcd.attribute("ref"));
  614. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("smlnm")) = cmb_smlcd.label;
  615. // grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_goodcd.attribute("ref") );
  616. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("calcscorinfoacptstat")) = model.getValue(ipt_calcscorinfoacptstat.attribute("ref"));
  617. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodunitcost")) = model.getValue(ipt_goodunitcost.attribute("ref"));
  618. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodnm")) = model.getValue(ipt_goodnm2.attribute("ref"));
  619. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodspec")) = model.getValue(ipt_goodspec.attribute("ref"));
  620. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodmodel")) = model.getValue(ipt_goodmodel.attribute("ref"));
  621. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodnm")) = model.getValue(ipt_csrgoodnm.attribute("ref"));
  622. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodspec")) = model.getValue(ipt_csrgoodspec.attribute("ref"));
  623. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrgoodmodel")) = model.getValue(ipt_csrgoodmodel.attribute("ref"));
  624. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prodcmpycd")) = model.getValue(ipt_prodcmpycd.attribute("ref"));
  625. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prodcmpynm")) = model.getValue(ipt_prodcmpynm.attribute("ref"));
  626. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("purcflag")) = model.getValue(cmb_purcflag.attribute("ref"));
  627. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("reqprid")) = model.getValue(cmb_reqprid.attribute("ref"));
  628. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prcpflag")) = model.getValue(rdo_prcpflag.attribute("ref"));
  629. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prcpunit")) = model.getValue(cmb_prcpunit.attribute("ref"));
  630. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("prcpexchqty")) = model.getValue(ipt_prcpexchqty.attribute("ref"));
  631. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("suppcustcd")) = model.getValue(ipt_suppcustcd.attribute("ref"));
  632. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("custnm")) = model.getValue(ipt_custnm.attribute("ref"));
  633. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("cntctel")) = model.getValue(ipt_cntctel.attribute("ref"));
  634. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("deliveunit")) = model.getValue(cmb_deliveunit.attribute("ref"));
  635. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("insuinfo")) = model.getValue(ipt_insuinfo.attribute("ref"));
  636. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodinfo")) = model.getValue(tar_goodinfo.attribute("ref"));
  637. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fstrgstdt")) = model.getValue(ipt_fstrgstdt.attribute("ref"));
  638. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fstrgstrid")) = model.getValue(ipt_fstrgstrid.attribute("ref"));
  639. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fstrgstrnm")) = model.getValue(ipt_fstrgstrnm.attribute("ref"));
  640. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("fromdd")) = model.getValue(ipt_fromdd.attribute("ref"));
  641. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("todd")) = model.getValue(ipt_todd.attribute("ref"));
  642. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodflag")) = model.getValue(cmb_goodflag_search.attribute("ref"));
  643. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("useyn")) = model.getValue(rdo_useyn.attribute("ref"));
  644. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodpos")) = model.getValue(ipt_goodpos.attribute("ref"));
  645. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodpos1")) = model.getValue(ipt_goodpos1.attribute("ref"));
  646. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("goodpos2")) = model.getValue(ipt_goodpos2.attribute("ref"));
  647. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("reqflag")) = model.getValue(rdo_reqflag2.attribute("ref"));
  648. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("proddrugsetflag")) = model.getValue(rdo_proddrugsetflag2.attribute("ref"));
  649. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("deliveflag")) = model.getValue(rdo_deliveflag.attribute("ref"));
  650. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("exchqty")) = model.getValue(ipt_exchqty.attribute("ref"));
  651. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dinfflag")) = model.getValue(rdo_dinfflag.attribute("ref"));
  652. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrrequnit")) = model.getValue(cmb_csrrequnit.attribute("ref"));
  653. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrreqqty")) = model.getValue(ipt_csrreqqty.attribute("ref"));
  654. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("csrreqflag")) = model.getValue(rdo_csrreqflag.attribute("ref"));
  655. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("mstflag")) = model.getValue(rdo_mstflag.attribute("ref"));
  656. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dinfdivs")) = model.getValue(cmb_dinfdivs.attribute("ref"));
  657. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("baseqty")) = model.getValue(ipt_baseqty.attribute("ref"));
  658. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("simlgood")) = model.getValue(tar_simlgood.attribute("ref"));
  659. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("netflag")) = model.getValue(rdo_netflag.attribute("ref"));
  660. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("cleanflag")) = model.getValue(cmb_cleanflag.attribute("ref"));
  661. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dinfcleanflag")) = model.getValue(cmb_dinfcleanflag.attribute("ref"));
  662. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dlvgubn")) = model.getValue(cmb_dlvgubn.attribute("ref"));
  663. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("workgubn")) = model.getValue(cmb_workgubn.attribute("ref"));
  664. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("reqdetlflag")) = model.getValue(cmb_reqdetlflag.attribute("ref"));
  665. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("dressingyn")) = model.getValue(rdo_dressingyn.attribute("ref"));
  666. grd_rscdgooddata.valueMatrix(preIdx, grd_rscdgooddata.colRef("remark")) = model.getValue(tar_remark.attribute("ref"));
  667. }
  668. // 물품기본정보 등록시 해당 그리드에 데이터 셋팅
  669. function fSetGridData() {
  670. var initflag = model.getValue(rdo_initflag.attribute("ref"));
  671. var iRow = grd_rscdgooddata.row;
  672. if((grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("rgstyn")) == "Y") && (grd_rscdgooddata.rowStatus(iRow) =="2")) {
  673. grd_rscdgooddata.rowStatus(iRow) = "2";
  674. } else if((grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("rgstyn")) == "N") && (grd_rscdgooddata.rowStatus(iRow) =="2")){
  675. grd_rscdgooddata.rowStatus(iRow) = "1";
  676. }
  677. if(initflag == "D") { // D: 구매
  678. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
  679. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("purclnkgoodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
  680. }else {
  681. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodcd")) = model.getValue(ipt_purclnkgoodcd.attribute("ref"));
  682. // grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("purclnkgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
  683. // 2009.11.08 최소현 ITC 요청 구매 물품을 따라가지 않는 경우는 구매물품링크는 공백으로
  684. }
  685. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("lrgcd")) = cmb_lrgcd.value;
  686. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("lrgnm")) = cmb_lrgcd.label;
  687. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("mdlcd")) = cmb_mdlcd.value;
  688. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("mdlnm")) = cmb_mdlcd.label;
  689. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("smlcd")) = cmb_smlcd.value
  690. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("smlnm")) = cmb_smlcd.label;
  691. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodcd")) = model.getValue(ipt_goodcd.attribute("ref"));
  692. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("calcscorinfoacptstat")) = model.getValue(ipt_calcscorinfoacptstat.attribute("ref"));
  693. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodunitcost")) = model.getValue(ipt_goodunitcost.attribute("ref"));
  694. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodnm")) = model.getValue(ipt_goodnm2.attribute("ref"));
  695. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodspec")) = model.getValue(ipt_goodspec.attribute("ref"));
  696. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodmodel")) = model.getValue(ipt_goodmodel.attribute("ref"));
  697. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodnm")) = model.getValue(ipt_csrgoodnm.attribute("ref"));
  698. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodspec")) = model.getValue(ipt_csrgoodspec.attribute("ref"));
  699. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrgoodmodel")) = model.getValue(ipt_csrgoodmodel.attribute("ref"));
  700. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prodcmpycd")) = model.getValue(ipt_prodcmpycd.attribute("ref"));
  701. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prodcmpynm")) = model.getValue(ipt_prodcmpynm.attribute("ref"));
  702. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("purcflag")) = model.getValue(cmb_purcflag.attribute("ref"));
  703. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("reqprid")) = model.getValue(cmb_reqprid.attribute("ref"));
  704. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prcpflag")) = model.getValue(rdo_prcpflag.attribute("ref"));
  705. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prcpunit")) = model.getValue(cmb_prcpunit.attribute("ref"));
  706. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("prcpexchqty")) = model.getValue(ipt_prcpexchqty.attribute("ref"));
  707. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("suppcustcd")) = model.getValue(ipt_suppcustcd.attribute("ref"));
  708. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("custnm")) = model.getValue(ipt_custnm.attribute("ref"));
  709. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("cntctel")) = model.getValue(ipt_cntctel.attribute("ref"));
  710. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("deliveunit")) = model.getValue(cmb_deliveunit.attribute("ref"));
  711. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("insuinfo")) = model.getValue(ipt_insuinfo.attribute("ref"));
  712. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodinfo")) = model.getValue(tar_goodinfo.attribute("ref"));
  713. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fstrgstdt")) = model.getValue(ipt_fstrgstdt.attribute("ref"));
  714. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fstrgstrid")) = model.getValue(ipt_fstrgstrid.attribute("ref"));
  715. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fstrgstrnm")) = model.getValue(ipt_fstrgstrnm.attribute("ref"));
  716. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("fromdd")) = model.getValue(ipt_fromdd.attribute("ref"));
  717. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("todd")) = model.getValue(ipt_todd.attribute("ref"));
  718. //------------(20101014) 경북대
  719. //원본
  720. //grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodflag")) = "T";
  721. //설정값으로 저장해야 함
  722. var vgoodflag = model.getValue("/root/tmp1/hidden1/csrgoodflaginfo/goodflagcd");
  723. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodflag")) = vgoodflag;
  724. //------------(20101014) 경북대
  725. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("useyn")) = model.getValue(rdo_useyn.attribute("ref"));
  726. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodpos")) = model.getValue(ipt_goodpos.attribute("ref"));
  727. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodpos1")) = model.getValue(ipt_goodpos1.attribute("ref"));
  728. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodpos2")) = model.getValue(ipt_goodpos2.attribute("ref"));
  729. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("reqflag")) = model.getValue(rdo_reqflag2.attribute("ref"));
  730. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("proddrugsetflag")) = model.getValue(rdo_proddrugsetflag2.attribute("ref"));
  731. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("deliveflag")) = model.getValue(rdo_deliveflag.attribute("ref"));
  732. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("exchqty")) = model.getValue(ipt_exchqty.attribute("ref"));
  733. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrreqflag")) = model.getValue(rdo_csrreqflag.attribute("ref"));
  734. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrrequnit")) = model.getValue(cmb_csrrequnit.attribute("ref"));
  735. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrreqqty")) = model.getValue(ipt_csrreqqty.attribute("ref"));
  736. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dinfflag")) = model.getValue(rdo_dinfflag.attribute("ref"));
  737. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("goodinfo")) = model.getValue(tar_goodinfo.attribute("ref"));
  738. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("mstflag")) = model.getValue(rdo_mstflag.attribute("ref"));
  739. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dinfdivs")) = model.getValue(cmb_dinfdivs.attribute("ref"));
  740. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("baseqty")) = model.getValue(ipt_baseqty.attribute("ref"));
  741. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("simlgood")) = model.getValue(ipt_simlgood.attribute("ref"));
  742. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("cleanflag")) = model.getValue(cmb_cleanflag.attribute("ref"));
  743. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("netflag")) = model.getValue(rdo_netflag.attribute("ref"));
  744. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dinfcleanflag")) = model.getValue(cmb_dinfcleanflag.attribute("ref"));
  745. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dlvgubn")) = model.getValue(cmb_dlvgubn.attribute("ref"));
  746. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("workgubn")) = model.getValue(cmb_workgubn.attribute("ref"));
  747. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("reqdetlflag")) = model.getValue(cmb_reqdetlflag.attribute("ref"));
  748. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("csrworkflag")) = model.getValue(cmb_csrworkflag.attribute("ref"));
  749. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("dressingyn")) = model.getValue(rdo_dressingyn.attribute("ref"));
  750. grd_rscdgooddata.valueMatrix(iRow, grd_rscdgooddata.colRef("remark")) = model.getValue(tar_remark.attribute("ref"));
  751. model.refresh();
  752. }
  753. //저장(saveflag="D"일때 삭제)
  754. function fSaveData(saveflag) {
  755. if(saveflag =="D"){
  756. var Msg = messageBox("선택하신 물품코드를","Q001");
  757. if(Msg =="6"){
  758. for(var i=1;i < grd_rscdgooddata.rows;i++){
  759. var chkyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("chkyn"));
  760. var rgstyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("rgstyn"));
  761. var initflag =model.getValue("/root/init/initflag");
  762. if((chkyn=="Y") && (rgstyn!="N")){
  763. grd_rscdgooddata.rowStatus(i)="4";
  764. }
  765. if((initflag =="T")||(initflag=="OR")){
  766. model.setValue("/root/main/rscdgooddata["+i+"]/csrgoodcd",grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("goodcd")));
  767. }
  768. }
  769. model.makeValue("/root/send/reqdata/csrgoodlist", getGridUpdateData(grd_rscdgooddata));
  770. if(submit("TXMNG00201")) {
  771. fTreeClick(trv_setcode.focusIndex);
  772. messageBox("삭제가","I002");
  773. fInitCntrl();
  774. preStat = "0";
  775. if(bool1.value == "Y"){
  776. bool1.value ="N";
  777. }
  778. btn_del.disabled = true;
  779. }
  780. }else if(Msg =="7"){
  781. for(var i=1;i < grd_rscdgooddata.rows;i++){
  782. var chkyn = grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("chkyn"));
  783. var rgstyn = grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("rgstyn"));
  784. if((chkyn=="Y") && (rgstyn!="N")){
  785. grd_rscdgooddata.valueMatrix(i,grd_rscdgooddata.colRef("chkyn")) ="N";
  786. grd_rscdgooddata.rowStatus(i)="0";
  787. }
  788. }
  789. btn_del.disabled = true;
  790. if(bool1.value == "Y"){
  791. bool1.value ="N";
  792. }
  793. return;
  794. }
  795. }else{
  796. model.makeValue("/root/send/reqdata/csrgoodlist", getGridUpdateData(grd_rscdgooddata));
  797. if(submit("TXMNG00201")) {
  798. messageBox("저장이","I002");
  799. fRetrGoodList("S");
  800. fInitCntrl();
  801. preStat = "0";
  802. if(bool1.value == "Y"){
  803. bool1.value ="N";
  804. }
  805. }
  806. }
  807. }
  808. function fInitGoodInfoCtrl() {
  809. model.resetInstanceNode(ipt_purclnkgoodcd.attribute("ref"));
  810. model.resetInstanceNode(ipt_goodpos.attribute("ref"));
  811. model.resetInstanceNode(ipt_goodpos1.attribute("ref"));
  812. model.resetInstanceNode(ipt_goodpos2.attribute("ref"));
  813. model.resetInstanceNode(ipt_fstrgstdt.attribute("ref"));
  814. model.resetInstanceNode(ipt_fstrgstrid.attribute("ref"));
  815. model.resetInstanceNode(ipt_fstrgstrnm.attribute("ref"));
  816. model.resetInstanceNode(ipt_fromdd.attribute("ref"));
  817. model.resetInstanceNode(cmb_lrgcd.attribute("ref"));
  818. model.resetInstanceNode(cmb_mdlcd.attribute("ref"));
  819. model.resetInstanceNode(cmb_smlcd.attribute("ref"));
  820. model.resetInstanceNode(ipt_prodcmpycd.attribute("ref"));
  821. model.resetInstanceNode(ipt_prodcmpynm.attribute("ref"));
  822. model.resetInstanceNode(ipt_suppcustcd.attribute("ref"));
  823. model.resetInstanceNode(ipt_custnm.attribute("ref"));
  824. model.resetInstanceNode(ipt_cntctel.attribute("ref"));
  825. model.resetInstanceNode(ipt_faxno.attribute("ref"));
  826. model.resetInstanceNode(ipt_goodcd.attribute("ref") );
  827. model.resetInstanceNode(rdo_reqflag2.attribute("ref") );
  828. model.resetInstanceNode(rdo_proddrugsetflag2.attribute("ref"));
  829. model.resetInstanceNode(ipt_goodnm2.attribute("ref") );
  830. model.resetInstanceNode(ipt_goodspec.attribute("ref") );
  831. model.resetInstanceNode(ipt_goodmodel.attribute("ref") );
  832. model.resetInstanceNode(ipt_csrgoodnm.attribute("ref") );
  833. model.resetInstanceNode(ipt_csrgoodspec.attribute("ref") );
  834. model.resetInstanceNode(ipt_csrgoodmodel.attribute("ref") );
  835. model.resetInstanceNode(cmb_purcflag.attribute("ref") );
  836. model.resetInstanceNode(cmb_reqprid.attribute("ref") );
  837. model.resetInstanceNode(rdo_prcpflag.attribute("ref") );
  838. model.resetInstanceNode(cmb_prcpunit.attribute("ref") );
  839. model.resetInstanceNode(ipt_prcpexchqty.attribute("ref") );
  840. model.resetInstanceNode(cmb_deliveunit.attribute("ref") );
  841. model.resetInstanceNode(rdo_deliveflag.attribute("ref") );
  842. model.resetInstanceNode(ipt_exchqty.attribute("ref") );
  843. model.resetInstanceNode(rdo_mstflag.attribute("ref"));
  844. model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
  845. model.resetInstanceNode(rdo_dinfflag.attribute("ref"));
  846. model.resetInstanceNode(cmb_csrrequnit.attribute("ref"));
  847. model.resetInstanceNode(ipt_simlgood.attribute("ref"));
  848. model.resetInstanceNode(ipt_baseqty.attribute("ref"));
  849. model.resetInstanceNode(tar_remark.attribute("ref"));
  850. ipt_simlgood.refresh();
  851. ipt_baseqty.refresh();
  852. cmb_csrrequnit.refresh();
  853. rdo_dinfflag.refresh();
  854. cmb_dinfdivs.refresh();
  855. rdo_mstflag.refresh();
  856. ipt_goodcd.refresh();
  857. rdo_reqflag2.refresh();
  858. rdo_proddrugsetflag2.refresh();
  859. ipt_goodnm2.refresh();
  860. ipt_goodspec.refresh();
  861. ipt_goodmodel.refresh();
  862. ipt_csrgoodnm.refresh();
  863. ipt_csrgoodspec.refresh();
  864. ipt_csrgoodmodel.refresh();
  865. cmb_purcflag.refresh();
  866. cmb_reqprid.refresh();
  867. rdo_prcpflag.refresh();
  868. cmb_prcpunit.refresh();
  869. ipt_prcpexchqty.refresh();
  870. cmb_deliveunit.refresh();
  871. ipt_exchqty.refresh();
  872. rdo_deliveflag.refresh();
  873. cmb_lrgcd.refresh();
  874. cmb_mdlcd.refresh();
  875. cmb_smlcd.refresh();
  876. ipt_prodcmpycd.refresh();
  877. ipt_prodcmpynm.refresh();
  878. ipt_suppcustcd.refresh();
  879. ipt_custnm.refresh();
  880. ipt_cntctel.refresh();
  881. ipt_faxno.refresh();
  882. ipt_purclnkgoodcd.refresh();
  883. ipt_goodpos.refresh();
  884. ipt_goodpos1.refresh();
  885. ipt_goodpos2.refresh();
  886. ipt_fstrgstdt.refresh();
  887. ipt_fstrgstrid.refresh();
  888. ipt_fstrgstrnm.refresh();
  889. ipt_fromdd.refresh();
  890. ipt_todd.refresh();
  891. model.setValue(rdo_dinfflag.attribute("ref"), "1");
  892. rdo_dinfflag.refresh();
  893. var deptcd = getUserInfo("dutplcecd");
  894. if(deptcd == "3080000000") {
  895. } else if(deptcd = "3070000000") {
  896. }
  897. }
  898. function fInitGoodAllCtrl() {
  899. model.resetInstanceNode(ipt_purclnkgoodcd.attribute("ref") );
  900. model.resetInstanceNode(ipt_goodcd.attribute("ref") );
  901. model.resetInstanceNode(rdo_reqflag2.attribute("ref") );
  902. model.resetInstanceNode(rdo_proddrugsetflag2.attribute("ref"));
  903. model.resetInstanceNode(ipt_goodnm2.attribute("ref") );
  904. model.resetInstanceNode(ipt_goodspec.attribute("ref") );
  905. model.resetInstanceNode(ipt_goodmodel.attribute("ref") );
  906. model.resetInstanceNode(ipt_csrgoodnm.attribute("ref") );
  907. model.resetInstanceNode(ipt_csrgoodspec.attribute("ref") );
  908. model.resetInstanceNode(ipt_csrgoodmodel.attribute("ref") );
  909. model.resetInstanceNode(cmb_purcflag.attribute("ref") );
  910. model.resetInstanceNode(cmb_reqprid.attribute("ref") );
  911. model.resetInstanceNode(rdo_prcpflag.attribute("ref") );
  912. model.resetInstanceNode(cmb_prcpunit.attribute("ref") );
  913. model.resetInstanceNode(ipt_prcpexchqty.attribute("ref") );
  914. model.resetInstanceNode(cmb_deliveunit.attribute("ref") );
  915. model.resetInstanceNode(rdo_deliveflag.attribute("ref") );
  916. model.resetInstanceNode(ipt_exchqty.attribute("ref") );
  917. model.resetInstanceNode(ipt_prodcmpycd.attribute("ref") );
  918. model.resetInstanceNode(ipt_prodcmpynm.attribute("ref") );
  919. model.resetInstanceNode(ipt_suppcustcd.attribute("ref") );
  920. model.resetInstanceNode(ipt_custnm.attribute("ref") );
  921. model.resetInstanceNode(ipt_cntctel.attribute("ref") );
  922. model.resetInstanceNode(ipt_faxno.attribute("ref") );
  923. model.resetInstanceNode(ipt_fstrgstdt.attribute("ref") );
  924. model.resetInstanceNode(ipt_fstrgstrid.attribute("ref") );
  925. model.resetInstanceNode(ipt_fstrgstrnm.attribute("ref") );
  926. model.resetInstanceNode(ipt_todd.attribute("ref") );
  927. model.resetInstanceNode(ipt_fromdd.attribute("ref") );
  928. model.resetInstanceNode(rdo_useyn.attribute("ref") );
  929. model.resetInstanceNode(ipt_goodpos.attribute("ref") );
  930. model.resetInstanceNode(ipt_goodpos1.attribute("ref") );
  931. model.resetInstanceNode(ipt_goodpos2.attribute("ref") );
  932. model.resetInstanceNode(cmb_reqprid.attribute("ref") );
  933. model.resetInstanceNode(ipt_baseqty.attribute("ref") );
  934. model.resetInstanceNode(ipt_simlgood.attribute("ref") );
  935. model.resetInstanceNode(cmb_csrworkflag.attribute("ref") );
  936. model.resetInstanceNode(tar_remark.attribute("ref") );
  937. ipt_baseqty.refresh();
  938. ipt_simlgood.refresh();
  939. ipt_purclnkgoodcd.refresh();
  940. ipt_goodcd.refresh();
  941. rdo_reqflag2.refresh();
  942. rdo_proddrugsetflag2.refresh();
  943. ipt_goodnm2.refresh();
  944. ipt_goodspec.refresh();
  945. ipt_goodmodel.refresh();
  946. ipt_csrgoodnm.refresh();
  947. ipt_csrgoodspec.refresh();
  948. ipt_csrgoodmodel.refresh();
  949. cmb_purcflag.refresh();
  950. cmb_reqprid.refresh();
  951. rdo_prcpflag.refresh();
  952. cmb_prcpunit.refresh();
  953. ipt_prcpexchqty.refresh();
  954. cmb_deliveunit.refresh();
  955. ipt_exchqty.refresh();
  956. rdo_deliveflag.refresh();
  957. }
  958. function fInitCntrl() {
  959. model.resetInstanceNode("/root/main/goodlist/rgstyn");
  960. model.resetInstanceNode("/root/main/goodlist/prcpyn");
  961. model.resetInstanceNode("/root/main/goodlist/goodcd");
  962. model.resetInstanceNode("/root/main/goodlist/allsizeyn");
  963. model.resetInstanceNode("/root/main/goodlist/goodnm");
  964. model.resetInstanceNode("/root/main/goodlist/goodspec");
  965. model.resetInstanceNode("/root/main/goodlist/goodmodel");
  966. model.resetInstanceNode("/root/main/goodlist/prodcmpycd");
  967. model.resetInstanceNode("/root/main/goodlist/purclnkgoodcd");
  968. model.resetInstanceNode("/root/main/goodlist/goodunitcost");
  969. model.resetInstanceNode("/root/main/goodlist/reqflag");
  970. model.resetInstanceNode("/root/main/goodlist/proddrugsetflag");
  971. model.resetInstanceNode("/root/main/goodlist/lrgcd");
  972. model.resetInstanceNode("/root/main/goodlist/lrgnm");
  973. model.resetInstanceNode("/root/main/goodlist/mdlcd");
  974. model.resetInstanceNode("/root/main/goodlist/mdlnm");
  975. model.resetInstanceNode("/root/main/goodlist/smlcd");
  976. model.resetInstanceNode("/root/main/goodlist/smlnm");
  977. model.resetInstanceNode("/root/main/goodlist/csrgoodnm");
  978. model.resetInstanceNode("/root/main/goodlist/csrgoodspec");
  979. model.resetInstanceNode("/root/main/goodlist/csrgoodmodel");
  980. model.resetInstanceNode("/root/main/goodlist/prodcmpynm");
  981. model.resetInstanceNode("/root/main/goodlist/purcflag");
  982. model.resetInstanceNode("/root/main/goodlist/reqprid");
  983. model.resetInstanceNode("/root/main/goodlist/prcpflag");
  984. model.resetInstanceNode("/root/main/goodlist/prcpunit");
  985. model.resetInstanceNode("/root/main/goodlist/prcpexchqty");
  986. model.resetInstanceNode("/root/main/goodlist/suppcustcd");
  987. model.resetInstanceNode("/root/main/goodlist/custnm");
  988. model.resetInstanceNode("/root/main/goodlist/cntctel");
  989. model.resetInstanceNode("/root/main/goodlist/faxno");
  990. model.resetInstanceNode("/root/main/goodlist/deliveunit");
  991. model.resetInstanceNode("/root/main/goodlist/exchqty");
  992. model.resetInstanceNode("/root/main/goodlist/goodinfo");
  993. model.resetInstanceNode("/root/main/goodlist/fstrgstdt");
  994. model.resetInstanceNode("/root/main/goodlist/fstrgstrid");
  995. model.resetInstanceNode("/root/main/goodlist/fstrgstrnm");
  996. model.resetInstanceNode("/root/main/goodlist/insuinfo");
  997. model.resetInstanceNode("/root/main/goodlist/useyn");
  998. model.resetInstanceNode("/root/main/goodlist/calcscorinfoacptstat");
  999. model.resetInstanceNode("/root/main/goodlist/fromdd");
  1000. model.resetInstanceNode("/root/main/goodlist/todd");
  1001. model.resetInstanceNode("/root/main/goodlist/goodpos");
  1002. model.resetInstanceNode("/root/main/goodlist/goodpos1");
  1003. model.resetInstanceNode("/root/main/goodlist/goodpos2");
  1004. model.resetInstanceNode("/root/main/goodlist/prsdnm");
  1005. model.resetInstanceNode("/root/main/goodlist/dump");
  1006. model.resetInstanceNode("/root/main/goodlist/deliveflag");
  1007. model.resetInstanceNode("/root/main/goodlist/lastupdtdt");
  1008. model.resetInstanceNode("/root/main/goodlist/lastupdtrid");
  1009. model.resetInstanceNode("/root/main/goodlist/lastupdtrnm");
  1010. model.resetInstanceNode("/root/main/goodlist/allsizespecid");
  1011. model.resetInstanceNode("/root/main/goodlist/dinfflag");
  1012. model.resetInstanceNode("/root/main/goodlist/dinfdivs");
  1013. model.resetInstanceNode("/root/main/goodlist/csrrequnit");
  1014. model.resetInstanceNode("/root/main/goodlist/csrreqqty");
  1015. model.resetInstanceNode("/root/main/goodlist/csrreqflag");
  1016. model.resetInstanceNode("/root/main/goodlist/mstflag");
  1017. model.resetInstanceNode(ipt_baseqty.attribute("ref"));
  1018. model.resetInstanceNode(ipt_simlgood.attribute("ref"));
  1019. model.resetInstanceNode(rdo_netflag.attribute("ref"));
  1020. model.resetInstanceNode(cmb_cleanflag.attribute("ref"));
  1021. model.resetInstanceNode(cmb_dinfcleanflag.attribute("ref"));
  1022. model.resetInstanceNode(cmb_workgubn.attribute("ref"));
  1023. model.resetInstanceNode(cmb_dlvgubn.attribute("ref"));
  1024. model.resetInstanceNode(cmb_csrworkflag.attribute("ref"));
  1025. model.resetInstanceNode(tar_remark.attribute("ref"));
  1026. if(rdo_initflag.value == "OR") {
  1027. model.setValue(rdo_mstflag.attribute("ref"), "OR");
  1028. } else {
  1029. model.setValue(rdo_mstflag.attribute("ref"), "T");
  1030. }
  1031. model.setValue(rdo_proddrugsetflag2.attribute("ref"), "2");
  1032. model.setValue(rdo_reqflag2.attribute("ref"), "1");
  1033. model.setValue(rdo_dinfflag.attribute("ref"), "1");
  1034. model.setValue(rdo_useyn.attribute("ref"), "Y");
  1035. model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
  1036. model.refresh();
  1037. }
  1038. //선택일괄등록시 물품기본정보 셋팅 후 바로 저장
  1039. function fGoodInfoSave(){
  1040. for(var i = 1; i < grd_rscdgooddata.rows; i++) {
  1041. var iStatus = grd_rscdgooddata.rowStatus(i);
  1042. var chkyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("chkyn"));
  1043. if(iStatus =="2" && chkyn == "Y") {
  1044. model.setValue("/root/main/rscdgooddata["+i+"]/mstflag" ,getParameter("mstflag"));
  1045. model.setValue("/root/main/rscdgooddata["+i+"]/reqflag" ,getParameter("reqflag"));
  1046. model.setValue("/root/main/rscdgooddata["+i+"]/proddrugsetflag" ,getParameter("proddrugsetflag"));
  1047. model.setValue("/root/main/rscdgooddata["+i+"]/useyn" ,getParameter("useyn"));
  1048. model.setValue("/root/main/rscdgooddata["+i+"]/goodpos" ,getParameter("goodpos"));
  1049. model.setValue("/root/main/rscdgooddata["+i+"]/goodpos1" ,getParameter("goodpos1"));
  1050. model.setValue("/root/main/rscdgooddata["+i+"]/goodpos2" ,getParameter("goodpos2"));
  1051. model.setValue("/root/main/rscdgooddata["+i+"]/dinfflag" ,getParameter("dinfflag"));
  1052. model.setValue("/root/main/rscdgooddata["+i+"]/dinfdivs" ,getParameter("dinfdivs"));
  1053. model.setValue("/root/main/rscdgooddata["+i+"]/lrgcd" ,getParameter("lrgcd"));
  1054. model.setValue("/root/main/rscdgooddata["+i+"]/mdlcd" ,getParameter("mdlcd"));
  1055. model.setValue("/root/main/rscdgooddata["+i+"]/smlcd" ,getParameter("smlcd"));
  1056. model.setValue("/root/main/rscdgooddata["+i+"]/csrreqflag" ,getParameter("csrreqflag"));
  1057. model.setValue("/root/main/rscdgooddata["+i+"]/csrrequnit" ,getParameter("csrrequnit"));
  1058. model.setValue("/root/main/rscdgooddata["+i+"]/csrreqqty" ,getParameter("csrreqqty"));
  1059. model.setValue("/root/main/rscdgooddata["+i+"]/workflag" ,"P");
  1060. model.setValue("/root/main/rscdgooddata["+i+"]/initflag" ,model.getValue("/root/init/initflag"));
  1061. }
  1062. }
  1063. grd_rscdgooddata.refresh();
  1064. fSaveData();
  1065. }
  1066. //마스터 구분 선택시 조회
  1067. function fMstChgSearch(){
  1068. model.resetInstanceNode(cmb_goodflag_search.attribute("ref"));
  1069. cmb_goodflag_search.refresh();
  1070. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  1071. if(model.getValue(rdo_initflag.attribute("ref")) == "T") {
  1072. model.makeValue("/root/send/reqdata/goodflag", "T");
  1073. caption9.attribute("text")="CSR물품분류";
  1074. btn_new.disabled = false;
  1075. rdo_mstflag.disabled = false;
  1076. rdo_mstflag.value = rdo_initflag.value;
  1077. btn_allrgst.disabled =true;
  1078. // btn_save.disabled = true;
  1079. } else {
  1080. model.makeValue("/root/send/reqdata/goodflag", "D");
  1081. // btn_save.disabled = true;
  1082. caption9.attribute("text")="구매물품분류";
  1083. btn_new.disabled = true;
  1084. rdo_mstflag.disabled = false;
  1085. btn_allrgst.disabled =false;
  1086. }
  1087. fInitCntrl();
  1088. model.makeValue("/root/send/reqdata/initflag", model.getValue(rdo_initflag.attribute("ref")));
  1089. //--------------(20101014) 경북대
  1090. if(model.getValue(rdo_initflag.attribute("ref")) == "D") {
  1091. //구매인경우는 물품구분에서 선택된 자료를 이용
  1092. model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/srchinfo/srchflag"));
  1093. } else {
  1094. //csr인경우는 화면초기에 호출된 물품구분을 사용한다.
  1095. model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/tmp1/hidden1/csrgoodflaginfo/goodflagcd"));
  1096. }
  1097. //--------------(20101014) 경북대
  1098. submit("TRMNG00202");
  1099. model.removeNodeset(grd_rscdgooddata.attribute("ref"));
  1100. grd_rscdgooddata.rebuild();
  1101. }
  1102. // 마스터 구분 선택시 상태값 변경
  1103. function fRdoMstSelect(){
  1104. if(model.getValue(rdo_initflag.attribute("ref")) == "D") {
  1105. rdo_reqflag.disabled = true;
  1106. rdo_proddrugsetflag.disabled = true;
  1107. ipt_searchgoodpos.disabled = true;
  1108. ipt_searchgoodpos1.disabled = true;
  1109. ipt_searchgoodpos2.disabled = true;
  1110. model.setValue("/root/main/cond/refflag","1");
  1111. rdo_refflag.refresh();
  1112. //---(20101013) 경북대 S1
  1113. //구매인경우
  1114. cap_srchflag.visible = true;
  1115. cmb_srchflag.visible= true;
  1116. chk_misyn.visible = true;
  1117. model.setValue("/root/main/misgoodchk","Y");
  1118. //---(20101013) 경북대 e1
  1119. } else if(model.getValue(rdo_initflag.attribute("ref")) == "T") {
  1120. rdo_reqflag.disabled = false;
  1121. rdo_proddrugsetflag.disabled = false;
  1122. ipt_goodpos1.disabled = false;
  1123. ipt_goodpos2.disabled = false;
  1124. ipt_goodpos.disabled = false;
  1125. model.setValue("/root/main/cond/refflag","2");
  1126. rdo_refflag.refresh();
  1127. //---(20101013) 경북대 S1
  1128. //구매인경우
  1129. cap_srchflag.visible = false;
  1130. cmb_srchflag.visible= false;
  1131. chk_misyn.visible = false;
  1132. model.setValue("/root/main/misgoodchk","N");
  1133. chk_misyn.refresh();
  1134. //---(20101013) 경북대 e1
  1135. }
  1136. }
  1137. ]]>
  1138. </script>
  1139. </xhtml:head>
  1140. <xhtml:body>
  1141. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  1142. <caption id="caption9" class="tit_2" style="left:5px; top:70px; width:130px; height:13px; ">구매물품분류</caption>
  1143. <line id="line7" class="line_1" style="x1:0px; y1:85px; x2:300px; y2:85px; "/>
  1144. <caption id="cap_title" class="tit_2" style="left:310px; top:70px; width:95px; height:13px; ">물품정보</caption>
  1145. <line id="line2" class="line_1" style="x1:305px; y1:85px; x2:1195px; y2:85px; "/>
  1146. <group id="grp_title" style="left:0px; top:0px; width:300px; height:63px; vertical-align:top; ">
  1147. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:300px; height:62px; "/>
  1148. <caption id="caption91" class="search_name" style="left:10px; top:9px; width:116px; height:17px; ">MASTER구분 :</caption>
  1149. <select1 id="rdo_orginitflag" ref="/root/init/orginitflag" visibility="hidden" appearance="full" cellspacing="20" cols="3" vcellspacing="6" overflow="visible" sep="|" style="left:130px; top:35px; width:165px; height:21px; border-style:none; ">
  1150. <choices>
  1151. <item>
  1152. <label>구매</label>
  1153. <value>D</value>
  1154. </item>
  1155. <item>
  1156. <label>CSR</label>
  1157. <value>T</value>
  1158. </item>
  1159. <item>
  1160. <label>OR</label>
  1161. <value>OR</value>
  1162. </item>
  1163. </choices>
  1164. <script type="javascript" ev:event="xforms-value-changed">
  1165. <![CDATA[
  1166. if(model.getValue(rdo_initflag.attribute("ref")) == "D") {
  1167. rdo_reqflag.disabled = true;
  1168. rdo_proddrugsetflag.disabled = true;
  1169. ipt_searchgoodpos.disabled = true;
  1170. ipt_searchgoodpos1.disabled = true;
  1171. ipt_searchgoodpos2.disabled = true;
  1172. model.setValue("/root/main/cond/refflag","1");
  1173. rdo_refflag.refresh();
  1174. } else if(model.getValue(rdo_initflag.attribute("ref")) == "T") {
  1175. rdo_reqflag.disabled = false;
  1176. rdo_proddrugsetflag.disabled = false;
  1177. ipt_goodpos1.disabled = false;
  1178. ipt_goodpos2.disabled = false;
  1179. ipt_goodpos.disabled = false;
  1180. model.setValue("/root/main/cond/refflag","2");
  1181. rdo_refflag.refresh();
  1182. }
  1183. fMstChgSearch();
  1184. ]]>
  1185. </script>
  1186. </select1>
  1187. <select1 id="rdo_initflag" ref="/root/init/initflag" appearance="full" cellspacing="20" cols="3" vcellspacing="6" overflow="visible" sep="|" style="left:130px; top:6px; width:115px; height:21px; border-style:none; ">
  1188. <choices>
  1189. <item>
  1190. <label>구매</label>
  1191. <value>D</value>
  1192. </item>
  1193. <item>
  1194. <label>CSR</label>
  1195. <value>T</value>
  1196. </item>
  1197. </choices>
  1198. <script type="javascript" ev:event="xforms-value-changed">
  1199. <![CDATA[
  1200. fRdoMstSelect();
  1201. fMstChgSearch();
  1202. ]]>
  1203. </script>
  1204. </select1>
  1205. <!-- (20101013) 경북대 -->
  1206. <select1 id="cmb_srchflag" ref="/root/main/srchinfo/srchflag" class="combo_essential" appearance="minimal" style="left:130px; top:30px; width:160px; height:19px; text-align:center; ">
  1207. <choices>
  1208. <itemset nodeset="/root/tmp/hidden/goodflaginfo">
  1209. <label ref="goodflagnm"/>
  1210. <value ref="goodflagcd"/>
  1211. </itemset>
  1212. </choices>
  1213. <script type="javascript" ev:event="xforms-value-changed">
  1214. <![CDATA[
  1215. fMstChgSearch();
  1216. ]]>
  1217. </script>
  1218. </select1>
  1219. <caption id="cap_srchflag" class="search_name" style="left:10px; top:30px; width:93px; height:17px; ">물품구분 :</caption>
  1220. <!-- (20101013) 경북대 -->
  1221. </group>
  1222. <group id="group2" style="left:305px; top:0px; width:890px; height:63px; vertical-align:top; ">
  1223. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:890px; height:62px; "/>
  1224. <caption id="caption10" class="search_name" style="left:5px; top:10px; width:86px; height:17px; ">코드종류 :</caption>
  1225. <select1 id="rdo_refflag" ref="/root/main/cond/refflag" appearance="full" cellspacing="20" cols="3" vcellspacing="6" overflow="visible" sep="|" style="left:90px; top:8px; width:115px; height:15px; border-style:none; ">
  1226. <choices>
  1227. <item>
  1228. <label>구매</label>
  1229. <value>1</value>
  1230. </item>
  1231. <item>
  1232. <label>CSR</label>
  1233. <value>2</value>
  1234. </item>
  1235. </choices>
  1236. <script type="javascript" ev:event="xforms-value-changed">
  1237. <![CDATA[
  1238. if(model.getValue(rdo_refflag.attribute("ref")) == "1") {
  1239. rdo_reqflag.disabled = true;
  1240. rdo_proddrugsetflag.disabled = true;
  1241. ipt_searchgoodpos.disabled = true;
  1242. ipt_searchgoodpos1.disabled = true;
  1243. ipt_searchgoodpos2.disabled = true;
  1244. model.setValue("/root/init/initflag","D");
  1245. rdo_initflag.refresh();
  1246. } else if(model.getValue(rdo_refflag.attribute("ref")) == "2") {
  1247. rdo_reqflag.disabled = false;
  1248. rdo_proddrugsetflag.disabled = false;
  1249. ipt_goodpos1.disabled = false;
  1250. ipt_goodpos2.disabled = false;
  1251. ipt_goodpos.disabled = false;
  1252. model.setValue("/root/init/initflag","T");
  1253. rdo_initflag.refresh();
  1254. }
  1255. //---------(20101014) 경북대
  1256. fRdoMstSelect();
  1257. //---------(20101014) 경북대
  1258. fMstChgSearch();
  1259. ]]>
  1260. </script>
  1261. </select1>
  1262. <input id="ipt_goodnm" ref="/root/main/cond/goodnm" style="left:430px; top:9px; width:115px; height:19px; "/>
  1263. <line id="line36" class="line_4" style="x1:765px; y1:10px; x2:765px; y2:51px; "/>
  1264. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:770px; top:20px; width:56px; height:22px; text-align:left; ">
  1265. <caption>조회</caption>
  1266. <script type="javascript" ev:event="DOMActivate">
  1267. <![CDATA[
  1268. srchflag = "2";
  1269. fSearch();
  1270. ]]>
  1271. </script>
  1272. </button>
  1273. <caption id="caption13" class="search_name" style="left:5px; top:35px; width:86px; height:17px; ">물품구분 :</caption>
  1274. <select1 id="rdo_reqflag" ref="/root/main/cond/reqflag" disabled="true" appearance="full" cols="5" overflow="visible" style="left:90px; top:35px; width:255px; height:15px; border-style:none; ">
  1275. <choices>
  1276. <item>
  1277. <label>전체</label>
  1278. <value/>
  1279. </item>
  1280. <item>
  1281. <label>비품</label>
  1282. <value>1</value>
  1283. </item>
  1284. <item>
  1285. <label>소모품</label>
  1286. <value>2</value>
  1287. </item>
  1288. <item>
  1289. <label>린넨</label>
  1290. <value>4</value>
  1291. </item>
  1292. <item>
  1293. <label>멸균의뢰</label>
  1294. <value>3</value>
  1295. </item>
  1296. </choices>
  1297. </select1>
  1298. <caption id="caption15" class="search_name" style="left:345px; top:35px; width:116px; height:17px; ">Set 구분 :</caption>
  1299. <select1 id="rdo_proddrugsetflag" ref="/root/main/cond/proddrugsetflag" disabled="true" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:430px; top:35px; width:165px; height:15px; border-style:none; ">
  1300. <choices>
  1301. <item>
  1302. <label>전체</label>
  1303. <value/>
  1304. </item>
  1305. <item>
  1306. <label>Set</label>
  1307. <value>1</value>
  1308. </item>
  1309. <item>
  1310. <label>Single</label>
  1311. <value>2</value>
  1312. </item>
  1313. </choices>
  1314. </select1>
  1315. <caption id="caption11" class="search_name" style="left:590px; top:35px; width:90px; height:17px; ">사용유무 :</caption>
  1316. <select1 id="rdo_useyn2" ref="/root/main/cond/useyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:678px; top:36px; width:80px; height:13px; border-style:none; ">
  1317. <choices>
  1318. <item>
  1319. <label>Y</label>
  1320. <value>Y</value>
  1321. </item>
  1322. <item>
  1323. <label>N</label>
  1324. <value>N</value>
  1325. </item>
  1326. </choices>
  1327. </select1>
  1328. <caption id="caption39" class="search_name" style="left:560px; top:10px; width:90px; height:17px; ">물품위치 :</caption>
  1329. <caption id="caption40" class="search_name" style="left:220px; top:10px; width:86px; height:17px; ">검색구분 :</caption>
  1330. <select1 id="rdo_cdflag" ref="/root/main/cond/cdflag" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:310px; top:11px; width:115px; height:15px; border-style:none; ">
  1331. <choices>
  1332. <item>
  1333. <label>코드</label>
  1334. <value>1</value>
  1335. </item>
  1336. <item>
  1337. <label>물품명</label>
  1338. <value>2</value>
  1339. </item>
  1340. </choices>
  1341. </select1>
  1342. <button id="button2" class="btn1_letter2" navindex="7" style="left:830px; top:20px; width:56px; height:22px; text-align:left; ">
  1343. <caption>엑셀</caption>
  1344. <script type="javascript" ev:event="DOMActivate">
  1345. <![CDATA[
  1346. var refNm = rdo_refflag.label;
  1347. var fileName = window.fileDialog("save", ",", false,"물품정보", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1348. if (fileName != "") {
  1349. grd_rscdgooddata.saveExcel(fileName, "물품정보List",false,false, "");
  1350. }
  1351. ]]>
  1352. </script>
  1353. </button>
  1354. </group>
  1355. <treeview id="trv_setcode" ref="/root/main/RscmgubnLists/TreeList" expanddepth="0" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:90px; width:300px; height:650px; ">
  1356. <itemset nodeset="/root/main/RscmgubnLists/TreeList">
  1357. <label ref="dispnm"/>
  1358. <value ref="codecd"/>
  1359. <depth ref="depth"/>
  1360. </itemset>
  1361. <script type="javascript" ev:event="onclick">
  1362. <![CDATA[
  1363. srchflag = "1";
  1364. fTreeClick(trv_setcode.focusIndex, srchflag);
  1365. ]]>
  1366. </script>
  1367. </treeview>
  1368. <!-- (20101014) 경북대
  1369. <datagrid id="grd_rscdgooddata" nodeset="/root/main/rscdgooddata" caption="^등록^물품코드^물품명^규격^모델^제조원^멸균구분^멸균상세^처방^구매연결코드^SUB^tmpreqflag^goodunitcost^reqflag^proddrugsetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^csrgoodnm^csrgoodspec^csrgoodmodel^prodcmpycd^purcflag^reqmthd^reqprid^prcpflag^prcpunit^prcpexchqty^suppcustcd^custnm^cntctel^faxno^prcpflag^deliveunit^exchqty^goodinfo^fstrgstdt^fstrgstrid^fstrgstrnm^insuinfo^lastupdtrid^lastupdtdt^lastupdtrnm^useyn^calcscorinfoacptstat^fromdd^todd^goodflag^deliveflag^goodpos^goodpos1^goodpos2^allsizespecid^csrgoodcd^csrrequnit^csrreqqty^csrreqflag^dinfflag^goodinfo^master구분^baseqty^simlgood^workflag^initflag" colsep="^" colwidth="23, 30, 80, 213, 100, 100, 91, 61, 84, 30, 80, 40, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" ref="/root/main/rscdgooddata" style="left:305px; top:105px; width:890px; height:315px; ">
  1370. -->
  1371. <datagrid id="grd_rscdgooddata" nodeset="/root/main/rscdgooddata" caption="^등록^물품코드^물품명^상세규격^모델^제조원^멸균구분^멸균상세^처방^구매연결코드^SUB^tmpreqflag^goodunitcost^reqflag^proddrugsetflag^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^csrgoodnm^csrgoodspec^csrgoodmodel^prodcmpycd^purcflag^reqmthd^reqprid^prcpflag^prcpunit^prcpexchqty^suppcustcd^custnm^cntctel^faxno^prcpflag^deliveunit^exchqty^goodinfo^fstrgstdt^fstrgstrid^fstrgstrnm^insuinfo^lastupdtrid^lastupdtdt^lastupdtrnm^useyn^calcscorinfoacptstat^fromdd^todd^goodflag^deliveflag^goodpos^goodpos1^goodpos2^allsizespecid^csrgoodcd^csrrequnit^csrreqqty^csrreqflag^dinfflag^goodinfo^master구분^baseqty^simlgood^workflag^initflag^netflag^cleanflag^dinfcleanflag^일지분류^불출구분^caption1^caption2^caption3^caption4" colsep="^" colwidth="23, 30, 80, 159, 93, 100, 69, 61, 84, 30, 80, 40, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" ref="/root/main/rscdgooddata" style="left:305px; top:90px; width:890px; height:256px; ">
  1372. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  1373. <col ref="rgstyn"/>
  1374. <col ref="goodcd" _key="true"/>
  1375. <col ref="goodnm"/>
  1376. <col ref="goodspec"/>
  1377. <col ref="goodmodel"/>
  1378. <col ref="prodcmpynm"/>
  1379. <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
  1380. <choices>
  1381. <item>
  1382. <label>멸균</label>
  1383. <value>1</value>
  1384. </item>
  1385. <item>
  1386. <label>비멸균</label>
  1387. <value>2</value>
  1388. </item>
  1389. </choices>
  1390. </col>
  1391. <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
  1392. <choices>
  1393. <item>
  1394. <label>고압증기멸균</label>
  1395. <value>1</value>
  1396. </item>
  1397. <item>
  1398. <label>가스멸균</label>
  1399. <value>2</value>
  1400. </item>
  1401. <item>
  1402. <label>건열멸균</label>
  1403. <value>3</value>
  1404. </item>
  1405. <item>
  1406. <label>플라즈마멸균</label>
  1407. <value>4</value>
  1408. </item>
  1409. </choices>
  1410. </col>
  1411. <col ref="prcpflag" style="text-align:center; "/>
  1412. <col ref="purclnkgoodcd"/>
  1413. <col ref="allsizespecid"/>
  1414. <col ref="tmpreqflag" visibility="hidden"/>
  1415. <col ref="goodunitcost" visibility="hidden"/>
  1416. <col ref="reqflag" visibility="hidden"/>
  1417. <col ref="proddrugsetflag" visibility="hidden"/>
  1418. <col ref="lrgcd" visibility="hidden"/>
  1419. <col ref="lrgnm" visibility="hidden"/>
  1420. <col ref="mdlcd" visibility="hidden"/>
  1421. <col ref="mdlnm" visibility="hidden"/>
  1422. <col ref="smlcd" visibility="hidden"/>
  1423. <col ref="smlnm" visibility="hidden"/>
  1424. <col ref="csrgoodnm" visibility="hidden"/>
  1425. <col ref="csrgoodspec" visibility="hidden"/>
  1426. <col ref="csrgoodmodel" visibility="hidden"/>
  1427. <col ref="prodcmpycd" visibility="hidden"/>
  1428. <col ref="purcflag" visibility="hidden"/>
  1429. <col ref="reqmthd" visibility="hidden"/>
  1430. <col ref="reqprid" visibility="hidden"/>
  1431. <col ref="prcpflag" visibility="hidden"/>
  1432. <col ref="prcpunit" visibility="hidden"/>
  1433. <col ref="prcpexchqty" visibility="hidden"/>
  1434. <col ref="suppcustcd" visibility="hidden"/>
  1435. <col ref="custnm" visibility="hidden"/>
  1436. <col ref="cntctel" visibility="hidden"/>
  1437. <col ref="faxno" visibility="hidden"/>
  1438. <col ref="prcpflag" visibility="hidden"/>
  1439. <col ref="deliveunit" visibility="hidden"/>
  1440. <col ref="exchqty" visibility="hidden"/>
  1441. <col ref="goodinfo" visibility="hidden"/>
  1442. <col ref="fstrgstdt" visibility="hidden"/>
  1443. <col ref="fstrgstrid" visibility="hidden"/>
  1444. <col ref="fstrgstrnm" visibility="hidden"/>
  1445. <col ref="insuinfo" visibility="hidden"/>
  1446. <col ref="lastupdtrid" visibility="hidden"/>
  1447. <col ref="lastupdtdt" visibility="hidden"/>
  1448. <col ref="lastupdtrnm" visibility="hidden"/>
  1449. <col ref="useyn" visibility="hidden"/>
  1450. <col ref="calcscorinfoacptstat" visibility="hidden"/>
  1451. <col ref="fromdd" visibility="hidden" _key="true"/>
  1452. <col ref="todd" visibility="hidden"/>
  1453. <col ref="goodflag" visibility="hidden"/>
  1454. <col ref="deliveflag" visibility="hidden"/>
  1455. <col ref="goodpos" visibility="hidden"/>
  1456. <col ref="goodpos1" visibility="hidden"/>
  1457. <col ref="goodpos2" visibility="hidden"/>
  1458. <col ref="allsizespecid" visibility="hidden"/>
  1459. <col ref="csrgoodcd" visibility="hidden"/>
  1460. <col ref="csrrequnit" visibility="hidden"/>
  1461. <col ref="csrreqqty" visibility="hidden"/>
  1462. <col ref="csrreqflag" visibility="hidden"/>
  1463. <col ref="dinfflag" visibility="hidden"/>
  1464. <col ref="goodinfo" visibility="hidden"/>
  1465. <col ref="mstflag" visibility="hidden"/>
  1466. <col ref="baseqty" visibility="hidden"/>
  1467. <col ref="simlgood" visibility="hidden"/>
  1468. <col ref="workflag" visibility="hidden"/>
  1469. <col ref="initflag" visibility="hidden" style="left:6468px; top:23px; width:100px; height:23px; "/>
  1470. <col ref="netflag" visibility="hidden"/>
  1471. <col ref="cleanflag" visibility="hidden"/>
  1472. <col ref="dinfcleanflag"/>
  1473. <col disabled="true" ref="workgubn" type="combo">
  1474. <choices>
  1475. <itemset nodeset="/root/init/mlist/M0637">
  1476. <label ref="cdnm"/>
  1477. <value ref="cdid"/>
  1478. </itemset>
  1479. </choices>
  1480. </col>
  1481. <col disabled="true" ref="dlvgubn" type="combo">
  1482. <choices>
  1483. <itemset nodeset="/root/init/mlist/M0638">
  1484. <label ref="cdnm"/>
  1485. <value ref="cdid"/>
  1486. </itemset>
  1487. </choices>
  1488. </col>
  1489. <col ref="reqdetlflag" visibility="hidden"/>
  1490. <col ref="csrworkflag" visibility="hidden"/>
  1491. <col ref="dressingyn" visibility="hidden"/>
  1492. <col ref="remark" visibility="hidden"/>
  1493. <script type="javascript" ev:event="onclick">
  1494. <![CDATA[
  1495. //onclick 이벤트시 데이터를 선택하였을때만 이벤트를 타게 하기위한 if문.
  1496. if(grd_rscdgooddata.isCell(event.target) && grd_rscdgooddata.mouseRow >= grd_rscdgooddata.fixedrows && grd_rscdgooddata.col != grd_rscdgooddata.colRef("chkyn")) {
  1497. grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
  1498. //선택한 로우에 저장되어있는 대,중,소분류 코드.
  1499. var lrgcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd"));
  1500. var mdlcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlcd"));
  1501. var smlcd = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("smlcd"));
  1502. model.makeValue("/root/send/reqlrgcd/goodflag", "T");
  1503. model.makeValue("/root/send/reqlrgcd/lrgcd" , lrgcd);
  1504. model.makeValue("/root/send/reqlrgcd/mdlcd" , mdlcd);
  1505. model.makeValue("/root/send/reqlrgcd/smlcd" , smlcd);
  1506. model.makeValue("/root/send/reqlrgcd/useyn" , "Y");
  1507. var rgstyn = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("rgstyn"));
  1508. var initflag = model.getValue(rdo_initflag.attribute("ref"));
  1509. if(initflag == "D") {
  1510. model.makeValue("/root/send/reqlrgcd/goodflag", "T");
  1511. model.makeValue("/root/send/reqlrgcd/lrgcd", lrgcd);
  1512. submit("TRMNG00101");
  1513. fMdlCDSearch("srch");
  1514. fSmlCDSearch("srch");
  1515. } else {
  1516. if(rgstyn == "Y") {
  1517. if(lrgcd != "") {
  1518. submit("TRMNG00101");
  1519. }
  1520. if(mdlcd != "") {
  1521. submit("TRMNG00102");
  1522. }
  1523. if(smlcd != "") {
  1524. submit("TRMNG00103");
  1525. }
  1526. }
  1527. }
  1528. var initflag = model.getValue(rdo_initflag.attribute("ref"));
  1529. //바뀌기전 열의 상태가 Insert, Update상태.
  1530. if(preStat != "0") {
  1531. if(workflag == "S") {
  1532. fSetPreGridData();
  1533. }
  1534. }
  1535. if(grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "0") {
  1536. fEnDisCtrl(true);
  1537. } else {
  1538. if(grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "2" && rgstyn=="N") {
  1539. fEnDisCtrl(true);
  1540. } else {
  1541. fEnDisCtrl(false);
  1542. }
  1543. }
  1544. workflag = "S";
  1545. fInitGoodInfoCtrl();
  1546. if(initflag == "D") {
  1547. model.setValue(ipt_purclnkgoodcd.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodcd")));
  1548. model.setValue(ipt_goodcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodcd")));
  1549. } else {
  1550. model.setValue(ipt_purclnkgoodcd.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("purclnkgoodcd")));
  1551. model.setValue(ipt_goodcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodcd")));
  1552. }
  1553. if(rgstyn == "Y" || grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "2" || grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "1" || grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) == "3") {
  1554. model.setValue(cmb_lrgcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgcd")));
  1555. model.setValue(opt_lrgnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lrgnm")));
  1556. model.setValue(cmb_mdlcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlcd")));
  1557. model.setValue(opt_mdlnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mdlnm")));
  1558. model.setValue(cmb_smlcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("smlcd")));
  1559. model.setValue(opt_smlnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("smlnm")));
  1560. model.setValue(ipt_fstrgstdt.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fstrgstdt")));
  1561. model.setValue(ipt_fstrgstrid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fstrgstrid")));
  1562. model.setValue(ipt_fstrgstrnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fstrgstrnm")));
  1563. model.setValue(ipt_fromdd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("fromdd")));
  1564. model.setValue(ipt_todd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("todd")));
  1565. } else {
  1566. model.setValue(cmb_lrgcd.attribute("ref") , "");
  1567. model.setValue(opt_lrgnm.attribute("ref") , "");
  1568. model.setValue(cmb_mdlcd.attribute("ref") , "");
  1569. model.setValue(opt_mdlnm.attribute("ref") , "");
  1570. model.setValue(cmb_smlcd.attribute("ref") , "");
  1571. model.setValue(opt_smlnm.attribute("ref") , "");
  1572. model.setValue(ipt_fstrgstdt.attribute("ref") , getCurrentDate());
  1573. model.setValue(ipt_fstrgstrid.attribute("ref") , getUserInfo("userid"));
  1574. model.setValue(ipt_fstrgstrnm.attribute("ref") , getUserInfo("usernm"));
  1575. model.setValue(ipt_fromdd.attribute("ref") , getCurrentDate());
  1576. model.setValue(ipt_todd.attribute("ref") , '99991231');
  1577. }
  1578. model.setValue(ipt_calcscorinfoacptstat.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("calcscorinfoacptstat")));
  1579. model.setValue(ipt_goodunitcost.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodunitcost")));
  1580. model.setValue(ipt_goodnm2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodnm")));
  1581. model.setValue(ipt_goodspec.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodspec")));
  1582. model.setValue(ipt_goodmodel.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodmodel")));
  1583. model.setValue(ipt_csrgoodnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodnm")));
  1584. model.setValue(ipt_csrgoodspec.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodspec")));
  1585. model.setValue(ipt_csrgoodmodel.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrgoodmodel")));
  1586. model.setValue(ipt_prodcmpycd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prodcmpycd")));
  1587. model.setValue(ipt_prodcmpynm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prodcmpynm")));
  1588. model.setValue(cmb_purcflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("purcflag")));
  1589. model.setValue(cmb_reqprid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("reqprid")));
  1590. model.setValue(rdo_prcpflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prcpflag")));
  1591. model.setValue(cmb_prcpunit.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prcpunit")));
  1592. model.setValue(ipt_prcpexchqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("prcpexchqty")));
  1593. model.setValue(ipt_suppcustcd.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("suppcustcd")));
  1594. model.setValue(ipt_custnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("custnm")));
  1595. model.setValue(ipt_cntctel.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("cntctel")));
  1596. model.setValue(cmb_deliveunit.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("deliveunit")));
  1597. model.setValue(ipt_insuinfo.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("insuinfo")));
  1598. model.setValue(tar_goodinfo.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodinfo")));
  1599. model.setValue(cmb_goodflag_search.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodflag")));
  1600. model.setValue(rdo_useyn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("useyn")));
  1601. model.setValue(ipt_goodpos.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodpos")));
  1602. model.setValue(ipt_goodpos1.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodpos1")));
  1603. model.setValue(ipt_goodpos2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodpos2")));
  1604. model.setValue(rdo_proddrugsetflag2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("proddrugsetflag")));
  1605. model.setValue(rdo_deliveflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("deliveflag")));
  1606. model.setValue(ipt_exchqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("exchqty")));
  1607. model.setValue(rdo_reqflag2.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("reqflag")));
  1608. model.setValue(ipt_allsizespecid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("allsizespecid")));
  1609. model.setValue(ipt_lastupdtrid.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lastupdtrid")));
  1610. model.setValue(ipt_lastupdtrnm.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lastupdtrnm")));
  1611. model.setValue(ipt_lastupdtdt.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("lastupdtdt")));
  1612. model.setValue(cmb_csrrequnit.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrrequnit")));
  1613. model.setValue(rdo_csrreqflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrreqflag")));
  1614. model.setValue(ipt_csrreqqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrreqqty")));
  1615. model.setValue(rdo_dinfflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfflag")));
  1616. if(grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfflag")) =="2"){
  1617. cmb_dinfdivs.disabled = true;
  1618. }else{
  1619. cmb_dinfdivs.disabled = false;
  1620. }
  1621. model.setValue(tar_goodinfo.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("goodinfo")));
  1622. model.setValue(cmb_dinfdivs.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfdivs")));
  1623. model.setValue(rdo_mstflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("mstflag")));
  1624. model.setValue(ipt_baseqty.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("baseqty")));
  1625. model.setValue(ipt_simlgood.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("simlgood")));
  1626. model.setValue(tar_simlgood.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("simlgood")));
  1627. model.setValue(cmb_cleanflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("cleanflag")));
  1628. model.setValue(rdo_netflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("netflag")));
  1629. model.setValue(cmb_dinfcleanflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dinfcleanflag")));
  1630. model.setValue(cmb_workgubn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("workgubn")));
  1631. model.setValue(cmb_dlvgubn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dlvgubn")));
  1632. model.setValue(cmb_reqdetlflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("reqdetlflag")));
  1633. model.setValue(cmb_csrworkflag.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("csrworkflag")));
  1634. model.setValue(rdo_dressingyn.attribute("ref") , grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("dressingyn")));
  1635. model.setValue(tar_remark.attribute("ref"), grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row, grd_rscdgooddata.colRef("remark")));
  1636. //----------------(20101014) 경북대
  1637. //구매코드여부를 사용여부 체크시
  1638. if (model.getValue("/root/main/misgoodchk") == "Y") {
  1639. ipt_goodcd.value = ipt_purclnkgoodcd.value;
  1640. ipt_goodcd.refresh();
  1641. }
  1642. //----------------(20101014) 경북대
  1643. ipt_baseqty.refresh();
  1644. ipt_simlgood.refresh();
  1645. tar_simlgood.refresh();
  1646. rdo_mstflag.refresh();
  1647. cmb_dinfdivs.refresh();
  1648. cmb_csrrequnit.refresh();
  1649. rdo_csrreqflag.refresh();
  1650. ipt_csrreqqty.refresh();
  1651. rdo_dinfflag.refresh();
  1652. tar_goodinfo.refresh();
  1653. ipt_lastupdtrid.refresh();
  1654. ipt_lastupdtrnm.refresh();
  1655. ipt_lastupdtdt.refresh();
  1656. ipt_purclnkgoodcd.refresh();
  1657. cmb_lrgcd.refresh();
  1658. opt_lrgnm.refresh();
  1659. cmb_mdlcd.refresh();
  1660. opt_mdlnm.refresh();
  1661. cmb_smlcd.refresh();
  1662. opt_smlnm.refresh();
  1663. ipt_goodcd.refresh();
  1664. ipt_calcscorinfoacptstat.refresh();
  1665. ipt_goodunitcost.refresh();
  1666. ipt_goodunitcost.refresh();
  1667. ipt_goodnm2.refresh();
  1668. ipt_goodspec.refresh();
  1669. ipt_goodmodel.refresh();
  1670. ipt_csrgoodnm.refresh();
  1671. ipt_csrgoodspec.refresh();
  1672. ipt_csrgoodmodel.refresh();
  1673. cmb_purcflag.refresh();
  1674. cmb_reqprid.refresh();
  1675. rdo_prcpflag.refresh();
  1676. cmb_prcpunit.refresh();
  1677. ipt_prcpexchqty.refresh();
  1678. ipt_suppcustcd.refresh();
  1679. ipt_custnm.refresh();
  1680. ipt_cntctel.refresh();
  1681. cmb_deliveunit.refresh()
  1682. ipt_insuinfo.refresh();
  1683. tar_goodinfo.refresh();
  1684. ipt_fstrgstrid.refresh();
  1685. ipt_fstrgstdt.refresh();
  1686. ipt_fstrgstrnm.refresh();
  1687. ipt_fromdd.refresh();
  1688. ipt_todd.refresh();
  1689. cmb_goodflag_search.refresh();
  1690. rdo_useyn.refresh();
  1691. ipt_goodpos.refresh();
  1692. ipt_goodpos1.refresh();
  1693. ipt_goodpos2.refresh();
  1694. ipt_prodcmpycd.refresh();
  1695. ipt_prodcmpynm.refresh();
  1696. rdo_proddrugsetflag2.refresh();
  1697. ipt_exchqty.refresh();
  1698. rdo_deliveflag.refresh();
  1699. rdo_reqflag2.refresh();
  1700. ipt_allsizespecid.refresh();
  1701. cmb_csrworkflag.refresh();
  1702. tar_remark.refresh();
  1703. btn_updt.dispatch("DOMActivate");
  1704. }
  1705. preIdx = grd_rscdgooddata.row;
  1706. preStat = grd_rscdgooddata.rowStatus(grd_rscdgooddata.row);
  1707. model.refresh();
  1708. ]]>
  1709. </script>
  1710. <script type="javascript" ev:event="onaftersort">
  1711. <![CDATA[
  1712. grd_rscdgooddata.gridToInstance();
  1713. ]]>
  1714. </script>
  1715. <script type="javascript" ev:event="xforms-value-changed">
  1716. <![CDATA[
  1717. var chkyn = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row,grd_rscdgooddata.colRef("chkyn"));
  1718. var rgstyn = grd_rscdgooddata.valueMatrix(grd_rscdgooddata.row,grd_rscdgooddata.colRef("rgstyn"));
  1719. if( (chkyn=="Y")&&(rgstyn=="Y")){
  1720. btn_del.disabled = false;
  1721. }else{
  1722. btn_del.disabled = true;
  1723. }
  1724. ]]>
  1725. </script>
  1726. </datagrid>
  1727. <caption id="caption2" class="tit_2" style="left:310px; top:354px; width:131px; height:13px; ">물품 기본정보 등록</caption>
  1728. <line id="line1" class="line_1" style="x1:304px; y1:369px; x2:1193px; y2:369px; "/>
  1729. <input id="ipt_purclnkgoodcd" ref="/root/main/goodlist/purclnkgoodcd" class="input_essential" disabled="true" maxlength="12" style="left:530px; top:375px; width:68px; height:19px; "/>
  1730. <input id="ipt_goodcd" ref="/root/main/goodlist/goodcd" class="input_essential" disabled="true" maxlength="12" style="left:1049px; top:375px; width:94px; height:19px; ">
  1731. <script type="javascript" ev:event="xforms-value-changed">
  1732. <![CDATA[
  1733. grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
  1734. ]]>
  1735. </script>
  1736. </input>
  1737. <button id="btn_cdmake" class="btn2_letter2" style="left:1149px; top:375px; width:42px; height:19px; ">
  1738. <caption>생성</caption>
  1739. <script type="javascript" ev:event="DOMActivate">
  1740. <![CDATA[
  1741. var goodcd =model.getValue(ipt_goodcd.attribute("ref"));
  1742. if(goodcd == "") {
  1743. fGoodCdCopy();
  1744. } else {
  1745. var rtn = messageBox("새로운 코드를 생성하시겠습니까", "Q");
  1746. if(rtn == "6") {
  1747. grd_rscdgooddata.addRow();
  1748. fGoodCdCopy();
  1749. }
  1750. }
  1751. fSetGridData();
  1752. ]]>
  1753. </script>
  1754. </button>
  1755. <input id="ipt_calcscorinfoacptstat" ref="/root/main/goodlist/calcscorinfoacptstat" disabled="true" maxlength="12" style="left:875px; top:496px; width:75px; height:19px; ">
  1756. <script type="javascript" ev:event="onkeydown">
  1757. <![CDATA[
  1758. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1759. //event.preventDefault();
  1760. ]]>
  1761. </script>
  1762. </input>
  1763. <input id="ipt_goodunitcost" ref="/root/main/goodlist/goodunitcost" disabled="true" maxlength="12" format="#,###" style="left:695px; top:496px; width:110px; height:19px; text-align:right; "/>
  1764. <line id="line4" class="line_2" style="x1:305px; y1:541px; x2:1192px; y2:541px; "/>
  1765. <!-- (20100804 경북대) -->
  1766. <!--원본
  1767. <select1 id="rdo_reqflag2" ref="/root/main/goodlist/reqflag" disabled="true" appearance="full" cols="5" overflow="visible" style="left:373px; top:509px; width:216px; height:13px; border-style:none; ">
  1768. -->
  1769. <select1 id="rdo_reqflag2" ref="/root/main/goodlist/reqflag" disabled="true" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:373px; top:451px; width:251px; height:13px; border-style:none; ">
  1770. <!-- (20100804 경북대) -->
  1771. <choices>
  1772. <item>
  1773. <label>비품</label>
  1774. <value>1</value>
  1775. </item>
  1776. <item>
  1777. <label>소모품</label>
  1778. <value>2</value>
  1779. </item>
  1780. <item>
  1781. <label>린넨</label>
  1782. <value>4</value>
  1783. </item>
  1784. <item>
  1785. <label>멸균의뢰</label>
  1786. <value>3</value>
  1787. </item>
  1788. </choices>
  1789. </select1>
  1790. <input id="ipt_goodnm2" ref="/root/main/goodlist/goodnm" disabled="true" style="left:373px; top:520px; width:252px; height:19px; "/>
  1791. <input id="ipt_goodspec" ref="/root/main/goodlist/goodspec" disabled="true" style="left:373px; top:544px; width:252px; height:19px; "/>
  1792. <input id="ipt_csrgoodmodel" ref="/root/main/goodlist/csrgoodmodel" disabled="true" style="left:695px; top:568px; width:285px; height:19px; "/>
  1793. <input id="ipt_prodcmpycd" ref="/root/main/goodlist/prodcmpycd" disabled="true" style="left:373px; top:592px; width:97px; height:19px; "/>
  1794. <select1 id="rdo_prcpflag" ref="/root/main/goodlist/prcpflag" disabled="true" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:876px; top:595px; width:75px; height:13px; border-style:none; ">
  1795. <choices>
  1796. <item>
  1797. <label>Y</label>
  1798. <value>Y</value>
  1799. </item>
  1800. <item>
  1801. <label>N</label>
  1802. <value>N</value>
  1803. </item>
  1804. </choices>
  1805. </select1>
  1806. <select1 id="cmb_prcpunit" ref="/root/main/goodlist/prcpunit" disabled="true" appearance="minimal" style="left:1049px; top:592px; width:94px; height:19px; ">
  1807. <choices>
  1808. <itemset nodeset="/root/init/mlist/R0032">
  1809. <label ref="cdnm"/>
  1810. <value ref="cdid"/>
  1811. </itemset>
  1812. </choices>
  1813. </select1>
  1814. <input id="ipt_prcpexchqty" ref="/root/main/goodlist/prcpexchqty" disabled="true" maxlength="12" format="###.##" style="left:1146px; top:592px; width:45px; height:19px; ">
  1815. <script type="javascript" ev:event="onkeydown">
  1816. <![CDATA[
  1817. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1818. //event.preventDefault();
  1819. ]]>
  1820. </script>
  1821. </input>
  1822. <line id="line6" class="line_2" style="x1:305px; y1:613px; x2:1192px; y2:613px; "/>
  1823. <caption id="caption24" class="cell_1" style="left:808px; top:591px; width:65px; height:23px; vertical-align:middle; ">처방구분</caption>
  1824. <caption id="caption25" class="cell_1" style="left:982px; top:591px; width:65px; height:23px; vertical-align:middle; ">처방단위</caption>
  1825. <line id="line8" class="line_2" style="x1:305px; y1:661px; x2:1192px; y2:661px; "/>
  1826. <caption id="caption21" class="cell_1" style="left:304px; top:591px; width:67px; height:23px; vertical-align:middle; ">제조원</caption>
  1827. <caption id="caption28" class="cell_1" style="left:808px; top:639px; width:65px; height:23px; vertical-align:middle; ">등록일자</caption>
  1828. <input id="ipt_fstrgstdt" ref="/root/main/goodlist/fstrgstdt" disabled="true" inputtype="date" style="left:875px; top:640px; width:104px; height:19px; "/>
  1829. <input id="ipt_fromdd" ref="/root/main/goodlist/fromdd" disabled="true" inputtype="date" style="left:875px; top:687px; width:104px; height:19px; "/>
  1830. <input id="ipt_todd" ref="/root/main/goodlist/todd" disabled="true" navindex="100" inputtype="date" style="left:1050px; top:688px; width:112px; height:19px; "/>
  1831. <input id="ipt_fstrgstrid" ref="/root/main/goodlist/fstrgstrid" disabled="true" maxlength="12" style="left:982px; top:641px; width:98px; height:19px; "/>
  1832. <input id="ipt_fstrgstrnm" ref="/root/main/goodlist/fstrgstrnm" disabled="true" maxlength="12" style="left:1083px; top:641px; width:109px; height:19px; "/>
  1833. <input id="ipt_insuinfo" ref="/root/main/goodlist/insuinfo" disabled="true" style="left:372px; top:640px; width:433px; height:19px; "/>
  1834. <select1 id="cmb_goodflag_search" ref="/root/send/goodflag" visibility="hidden" appearance="minimal" style="left:505px; top:349px; width:100px; height:19px; ">
  1835. <choices>
  1836. <itemset>
  1837. <label/>
  1838. <value/>
  1839. </itemset>
  1840. </choices>
  1841. </select1>
  1842. <button id="btn_purclnkgood" class="icon_search" disabled="true" visibility="hidden" style="left:460px; top:343px; width:16px; height:16px; ">
  1843. <caption/>
  1844. <script type="javascript" ev:event="DOMActivate">
  1845. <![CDATA[
  1846. rszfOpenPopUpListByWndName(ipt_purclnkgoodcd,"","purclnkgoodcd","SPRSD00210","instcd,goodflag","opt_instcd,cmb_goodflag_search");
  1847. model.refresh();
  1848. //btn_search.dispatch("DOMActivate");
  1849. ]]>
  1850. </script>
  1851. </button>
  1852. <button id="btn_suppcust" class="icon_search" disabled="true" style="left:450px; top:618px; width:16px; height:16px; ">
  1853. <caption/>
  1854. <script type="javascript" ev:event="DOMActivate">
  1855. <![CDATA[
  1856. //-----(20100804 경북대)
  1857. //기능없어야 하므로 막음
  1858. //rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,custnm,dump,cntctel","PPRAC00600","","");
  1859. //model.refresh();
  1860. //-----(20100804 경북대)
  1861. //btn_search.dispatch("DOMActivate");
  1862. ]]>
  1863. </script>
  1864. </button>
  1865. <input id="ipt_suppcustcd" ref="/root/main/goodlist/suppcustcd" disabled="true" maxlength="12" style="left:372px; top:616px; width:73px; height:19px; "/>
  1866. <input id="ipt_custnm" ref="/root/main/goodlist/custnm" disabled="true" maxlength="12" style="left:470px; top:616px; width:103px; height:19px; "/>
  1867. <input id="ipt_cntctel" ref="/root/main/goodlist/cntctel" disabled="true" maxlength="12" style="left:575px; top:616px; width:100px; height:19px; "/>
  1868. <input id="ipt_faxno" ref="/root/main/goodlist/faxno" disabled="true" maxlength="12" style="left:677px; top:616px; width:128px; height:19px; "/>
  1869. <select1 id="rdo_deliveflag" ref="/root/main/goodlist/deliveflag" disabled="true" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:876px; top:619px; width:75px; height:13px; border-style:none; ">
  1870. <choices>
  1871. <item>
  1872. <label>Y</label>
  1873. <value>Y</value>
  1874. </item>
  1875. <item>
  1876. <label>N</label>
  1877. <value>N</value>
  1878. </item>
  1879. </choices>
  1880. </select1>
  1881. <input id="ipt_exchqty" ref="/root/main/goodlist/exchqty" disabled="true" maxlength="12" format="###.##" style="left:1146px; top:616px; width:45px; height:19px; ">
  1882. <script type="javascript" ev:event="onkeydown">
  1883. <![CDATA[
  1884. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  1885. //event.preventDefault();
  1886. ]]>
  1887. </script>
  1888. </input>
  1889. <select1 id="cmb_deliveunit" ref="/root/main/goodlist/deliveunit" disabled="true" appearance="minimal" style="left:1049px; top:616px; width:94px; height:19px; ">
  1890. <choices>
  1891. <itemset nodeset="/root/init/mlist/R0032">
  1892. <label ref="cdnm"/>
  1893. <value ref="cdid"/>
  1894. </itemset>
  1895. </choices>
  1896. </select1>
  1897. <button id="btn_save" class="btn5_letter2" style="left:1150px; top:348px; width:42px; height:19px; ">
  1898. <caption>저장</caption>
  1899. <script type="javascript" ev:event="DOMActivate">
  1900. <![CDATA[
  1901. if(workflag !="P"){
  1902. if(model.getValue(rdo_mstflag.attribute("ref")) == "") {
  1903. messageBox("마스터구분은 필수입력항목", "I009");
  1904. model.setFocus("rdo_mstflag");
  1905. return;
  1906. }
  1907. if(model.getValue(ipt_goodcd.attribute("ref")) == "") {
  1908. messageBox("CSR코드는 필수입력항목", "I009");
  1909. model.setFocus("btn_cdmake");
  1910. return;
  1911. }
  1912. if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "") {
  1913. messageBox("Set구분은 필수입력항목", "I009");
  1914. model.setFocus("rdo_proddrugsetflag2");
  1915. return;
  1916. }
  1917. if(model.getValue(rdo_dinfflag.attribute("ref")) == "") {
  1918. messageBox("멸균구분은 필수입력항목", "I009");
  1919. model.setFocus("rdo_dinfflag");
  1920. return;
  1921. } else if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
  1922. if(model.getValue(cmb_dinfdivs.attribute("ref")) == "") {
  1923. messageBox("멸균방법은 필수입력항목", "I009");
  1924. model.setFocus("cmb_dinfidvs");
  1925. return;
  1926. }
  1927. }
  1928. if(model.getValue("/root/main/goodlist/reqflag") == "") {
  1929. messageBox("물품구분은 필수입력항목", "I009");
  1930. model.setFocus("rdo_reqflag2");
  1931. return;
  1932. }
  1933. }
  1934. fEnDisCtrl(true);
  1935. model.makeValue("/root/send/reqdata/csrgoodlist", getGridUpdateData(grd_rscdgooddata));
  1936. if(workflag == "S") {
  1937. fSetGridData();
  1938. }
  1939. fSaveData();
  1940. ]]>
  1941. </script>
  1942. </button>
  1943. <line id="line11" class="line_2" style="x1:304px; y1:517px; x2:371px; y2:517px; "/>
  1944. <output id="opt_smlnm" ref="/root/main/goodlist/smlnm" class="output_fix" visibility="hidden" style="left:885px; top:348px; width:95px; height:19px; "/>
  1945. <output id="opt_lrgnm" ref="/root/main/goodlist/lrgnm" class="output_fix" visibility="hidden" style="left:669px; top:348px; width:95px; height:19px; "/>
  1946. <output id="opt_mdlnm" ref="/root/main/goodlist/mdlnm" class="output_fix" visibility="hidden" style="left:775px; top:348px; width:95px; height:19px; "/>
  1947. <!-- (20101014) 경북대
  1948. 원본
  1949. <button id="btn_updt" class="btn2_letter2" disabled="true" visibility="hidden" style="left:990px; top:430px; width:42px; height:19px; ">
  1950. -->
  1951. <button id="btn_updt" class="btn2_letter2" disabled="true" visibility="hidden" style="left:535px; top:343px; width:42px; height:19px; ">
  1952. <caption>수정</caption>
  1953. <script type="javascript" ev:event="DOMActivate">
  1954. <![CDATA[
  1955. // 수정상태.(preStat : 열을 바꿀시 작업중이던 로우의 상태를 저장. (열변경시 사용);
  1956. if(grd_rscdgooddata.row > 0) {
  1957. //grd_rscdgooddata.rowStatus(grd_rscdgooddata.row) = "2";
  1958. preStat = "2";
  1959. fEnDisCtrl(false);
  1960. fSearchLrgcd();
  1961. } else {
  1962. messageBox("수정할 행을 선택하지 않았습니다.", "I");
  1963. }
  1964. ]]>
  1965. </script>
  1966. </button>
  1967. <button id="btn_new" class="btn2_letter2" disabled="true" style="left:1105px; top:348px; width:42px; height:19px; ">
  1968. <caption>추가</caption>
  1969. <script type="javascript" ev:event="DOMActivate">
  1970. <![CDATA[
  1971. if(model.getValue("/root/init/initflag")!="T"){
  1972. messageBox("CSR코드를 추가하실려면 마스터 구분을 CSR로","C002");
  1973. return;
  1974. }
  1975. fEnDisCtrl(false);
  1976. fInitCntrl();
  1977. grd_rscdgooddata.addRow();
  1978. fSearchLrgcd();
  1979. ]]>
  1980. </script>
  1981. </button>
  1982. <input id="ipt_csrgoodnm" ref="/root/main/goodlist/csrgoodnm" disabled="true" style="left:695px; top:520px; width:285px; height:19px; "/>
  1983. <caption id="caption18" class="cell_1" style="left:304px; top:519px; width:67px; height:23px; vertical-align:middle; ">물품명</caption>
  1984. <caption id="caption19" class="cell_1" style="left:628px; top:519px; width:65px; height:23px; vertical-align:middle; ">물품명</caption>
  1985. <input id="ipt_goodmodel" ref="/root/main/goodlist/goodmodel" disabled="true" style="left:373px; top:568px; width:252px; height:19px; "/>
  1986. <caption id="caption35" class="cell_1" style="left:304px; top:567px; width:67px; height:23px; vertical-align:middle; ">모델</caption>
  1987. <line id="line12" class="line_2" style="x1:305px; y1:565px; x2:1192px; y2:565px; "/>
  1988. <caption id="caption34" class="cell_1" style="left:304px; top:543px; width:67px; height:23px; vertical-align:middle; ">상세규격</caption>
  1989. <input id="ipt_csrgoodspec" ref="/root/main/goodlist/csrgoodspec" disabled="true" style="left:695px; top:544px; width:285px; height:19px; "/>
  1990. <caption id="caption36" class="cell_1" style="left:628px; top:543px; width:65px; height:23px; vertical-align:middle; ">상세규격</caption>
  1991. <caption id="caption37" class="cell_1" style="left:628px; top:567px; width:65px; height:23px; vertical-align:middle; ">모델</caption>
  1992. <caption id="caption26" class="cell_1" style="left:304px; top:639px; width:67px; height:23px; vertical-align:middle; ">보험정보</caption>
  1993. <select1 id="cmb_purcflag" ref="/root/main/goodlist/purcflag" disabled="true" appearance="minimal" style="left:695px; top:447px; width:110px; height:19px; ">
  1994. <choices>
  1995. <itemset nodeset="/root/init/mlist/R0111">
  1996. <label ref="cdnm"/>
  1997. <value ref="cdid"/>
  1998. </itemset>
  1999. </choices>
  2000. </select1>
  2001. <button id="btn_prodcmpy" class="icon_search" disabled="true" style="left:474px; top:594px; width:16px; height:16px; ">
  2002. <caption/>
  2003. <script type="javascript" ev:event="DOMActivate">
  2004. <![CDATA[
  2005. //----(20100804 경북대)
  2006. // 기능없어 막음
  2007. //rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  2008. //model.refresh();
  2009. //----(20100804 경북대)
  2010. ]]>
  2011. </script>
  2012. </button>
  2013. <input id="ipt_prodcmpynm" ref="/root/main/goodlist/prodcmpynm" disabled="true" style="left:495px; top:592px; width:310px; height:19px; "/>
  2014. <!-- (20100804 경북대) 선택일괄등록 오류발생 막음 visibility="hidden" 추가-->
  2015. <!--
  2016. <button id="btn_allrgst" class="btn2_letter6" style="left:1109px; top:80px; width:86px; height:19px; ">
  2017. -->
  2018. <button id="btn_allrgst" visibility="hidden" style="left:1109px; top:65px; width:86px; height:19px; ">
  2019. <!-- (20100804 경북대) 추가-->
  2020. <caption>선택일괄등록</caption>
  2021. <script type="javascript" ev:event="DOMActivate">
  2022. <![CDATA[
  2023. workflag = "P";
  2024. var popupPath = "/root/main/popup";
  2025. clearParameter("mstflag");
  2026. clearParameter("reqflag");
  2027. clearParameter("proddrugsetflag");
  2028. clearParameter("useyn");
  2029. clearParameter("goodpos");
  2030. clearParameter("goodpos1");
  2031. clearParameter("goodpos2");
  2032. clearParameter("dinfflag");
  2033. clearParameter("dinfdivs");
  2034. clearParameter("lrgcd");
  2035. clearParameter("mdlcd");
  2036. clearParameter("smlcd");
  2037. clearParameter("csrreqflag");
  2038. clearParameter("csrrequnit");
  2039. clearParameter("csrreqqty");
  2040. modal("SPMNG00800", "", "", "", "", "", "","width:960px;height:750px;align:left;");
  2041. /*
  2042. var chkyn = "";
  2043. for(var i = 1; i < grd_rscdgooddata.rows; i++) {
  2044. var chkyn = grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("chkyn"));
  2045. if(chkyn == "Y") {
  2046. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("mstflag")) = model.getValue(popupPath + "/mstflag");
  2047. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("reqflag")) = model.getValue(popupPath + "/reqflag");
  2048. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("proddrugsetflag")) = model.getValue(popupPath + "/proddrugsetflag");
  2049. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("useyn")) = model.getValue(popupPath + "/useyn");
  2050. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("goodpos")) = model.getValue(popupPath + "/goodpos");
  2051. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("goodpos1")) = model.getValue(popupPath + "/goodpos1");
  2052. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("goodpos2")) = model.getValue(popupPath + "/goodpos2");
  2053. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("dinfflag")) = model.getValue(popupPath + "/dinfflag");
  2054. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("dinfdivs")) = model.getValue(popupPath + "/dinfdivs");
  2055. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("lrgcd")) = model.getValue(popupPath + "/lrgcd");
  2056. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("mdlcd")) = model.getValue(popupPath + "/mdlcd");
  2057. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("smlcd")) = model.getValue(popupPath + "/smlcd");
  2058. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("csrflag")) = model.getValue(popupPath + "/csrflag");
  2059. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("csrrequnit")) = model.getValue(popupPath + "/csrrequnit");
  2060. grd_rscdgooddata.valueMatrix(i, grd_rscdgooddata.colRef("csrreqqty")) = model.getValue(popupPath + "/csrreqqty");
  2061. }
  2062. }
  2063. */
  2064. ]]>
  2065. </script>
  2066. </button>
  2067. <output id="opt_instnm" ref="/root/init/instnm" visibility="hidden" style="left:782px; top:65px; width:100px; height:19px; "/>
  2068. <output id="opt_instcd" ref="/root/send/instcd" visibility="hidden" style="left:680px; top:65px; width:100px; height:19px; "/>
  2069. <output id="opt_lrgcd2" ref="/root/main/cond/lrgcd" visibility="hidden" style="left:605px; top:343px; width:100px; height:19px; "/>
  2070. <output id="opt_mdlcd2" ref="/root/main/cond/mdlcd" visibility="hidden" style="left:705px; top:343px; width:100px; height:19px; "/>
  2071. <output id="opt_smlcd2" ref="/root/main/cond/smlcd" visibility="hidden" style="left:810px; top:343px; width:100px; height:19px; "/>
  2072. <input id="ipt_searchgoodpos" ref="/root/main/cond/goodpos" disabled="true" imemode="alpha" maxlength="1" style="left:956px; top:9px; width:25px; height:19px; text-align:center; "/>
  2073. <input id="ipt_searchgoodpos1" ref="/root/main/cond/goodpos1" disabled="true" maxlength="2" style="left:984px; top:9px; width:25px; height:19px; "/>
  2074. <input id="ipt_searchgoodpos2" ref="/root/main/cond/goodpos2" disabled="true" maxlength="2" style="left:1012px; top:9px; width:25px; height:19px; "/>
  2075. <input id="ipt_lastupdtrid" ref="/root/main/goodlist/lastupdtrid" disabled="true" maxlength="12" style="left:982px; top:665px; width:98px; height:19px; "/>
  2076. <input id="ipt_lastupdtrnm" ref="/root/main/goodlist/lastupdtrnm" disabled="true" maxlength="12" style="left:1083px; top:665px; width:109px; height:19px; "/>
  2077. <input id="ipt_lastupdtdt" ref="/root/main/goodlist/lastupdtdt" disabled="true" inputtype="date" style="left:875px; top:664px; width:104px; height:19px; "/>
  2078. <caption id="caption41" class="cell_1" style="left:808px; top:663px; width:65px; height:23px; vertical-align:middle; ">수정일자</caption>
  2079. <caption id="caption14" style="left:780px; top:377px; width:11px; height:20px; ">/</caption>
  2080. <caption id="caption16" style="left:881px; top:377px; width:15px; height:20px; ">/</caption>
  2081. <select1 id="cmb_lrgcd" ref="/root/main/goodlist/lrgcd" disabled="true" appearance="minimal" style="left:695px; top:375px; width:80px; height:19px; ">
  2082. <choices>
  2083. <itemset nodeset="/root/init/lrglist">
  2084. <label ref="lrgnm"/>
  2085. <value ref="lrgcd"/>
  2086. </itemset>
  2087. </choices>
  2088. <script type="javascript" ev:event="xforms-value-changed">
  2089. <![CDATA[
  2090. fMdlCDSearch();
  2091. ]]>
  2092. </script>
  2093. </select1>
  2094. <select1 id="cmb_mdlcd" ref="/root/main/goodlist/mdlcd" disabled="true" appearance="minimal" style="left:793px; top:375px; width:85px; height:19px; ">
  2095. <choices>
  2096. <itemset nodeset="/root/init/mdllist">
  2097. <label ref="mdlnm"/>
  2098. <value ref="mdlcd"/>
  2099. </itemset>
  2100. </choices>
  2101. <script type="javascript" ev:event="xforms-value-changed">
  2102. <![CDATA[
  2103. fSmlCDSearch();
  2104. ]]>
  2105. </script>
  2106. </select1>
  2107. <select1 id="cmb_smlcd" ref="/root/main/goodlist/smlcd" disabled="true" appearance="minimal" style="left:893px; top:375px; width:86px; height:19px; ">
  2108. <choices>
  2109. <itemset nodeset="/root/init/smllist">
  2110. <label ref="smlnm"/>
  2111. <value ref="smlcd"/>
  2112. </itemset>
  2113. </choices>
  2114. </select1>
  2115. <line id="line3" class="line_2" style="x1:305px; y1:396px; x2:1154px; y2:396px; "/>
  2116. <caption id="caption50" class="cell_1" style="left:463px; top:374px; width:65px; height:23px; vertical-align:middle; ">구매코드</caption>
  2117. <caption id="caption12" class="cell_1" style="left:627px; top:373px; width:65px; height:23px; vertical-align:middle; ">분류구분</caption>
  2118. <caption id="caption4" class="cell_1" style="left:982px; top:374px; width:65px; height:23px; vertical-align:middle; ">CSR 코드</caption>
  2119. <caption id="caption5" class="cell_1" style="left:808px; top:495px; width:65px; height:23px; vertical-align:middle; ">수가여부</caption>
  2120. <input id="ipt_allsizespecid" ref="/root/main/goodlist/allsizespecid" disabled="true" style="left:600px; top:375px; width:25px; height:19px; "/>
  2121. <line id="line10" class="line_2" style="x1:305px; y1:637px; x2:1192px; y2:637px; "/>
  2122. <select1 id="rdo_dinfflag" ref="/root/main/goodlist/dinfflag" disabled="true" appearance="full" cols="2" overflow="visible" style="left:695px; top:402px; width:110px; height:13px; border-style:none; ">
  2123. <choices>
  2124. <item>
  2125. <label>멸균</label>
  2126. <value>1</value>
  2127. </item>
  2128. <item>
  2129. <label>비멸균</label>
  2130. <value>2</value>
  2131. </item>
  2132. </choices>
  2133. <script type="javascript" ev:event="xforms-value-changed">
  2134. <![CDATA[
  2135. if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
  2136. cmb_dinfdivs.disabled = false;
  2137. } else {
  2138. model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
  2139. cmb_dinfdivs.refresh();
  2140. cmb_dinfdivs.disabled = true;
  2141. }
  2142. ]]>
  2143. </script>
  2144. </select1>
  2145. <input id="ipt_goodpos" ref="/root/main/goodlist/goodpos" disabled="true" imemode="alpha" style="left:1049px; top:399px; width:45px; height:19px; text-align:center; "/>
  2146. <line id="line14" class="line_2" style="x1:305px; y1:493px; x2:1192px; y2:493px; "/>
  2147. <input id="ipt_goodpos1" ref="/root/main/goodlist/goodpos1" disabled="true" style="left:1097px; top:399px; width:46px; height:19px; "/>
  2148. <input id="ipt_goodpos2" ref="/root/main/goodlist/goodpos2" disabled="true" style="left:1146px; top:399px; width:45px; height:19px; "/>
  2149. <select1 id="rdo_useyn" ref="/root/main/goodlist/useyn" disabled="true" appearance="full" cols="2" overflow="visible" style="left:875px; top:451px; width:100px; height:13px; border-style:none; ">
  2150. <choices>
  2151. <item>
  2152. <label>사용</label>
  2153. <value>Y</value>
  2154. </item>
  2155. <item>
  2156. <label>미사용</label>
  2157. <value>N</value>
  2158. </item>
  2159. </choices>
  2160. <script type="javascript" ev:event="xforms-value-changed">
  2161. <![CDATA[
  2162. var useyn = model.getValue("/root/main/goodlist/useyn");
  2163. if(useyn =="Y"){
  2164. model.setValue("/root/main/goodlist/todd","99991231");
  2165. }else if(useyn =="N"){
  2166. model.setValue("/root/main/goodlist/todd",getCurrentDate());
  2167. }
  2168. ipt_todd.refresh();
  2169. ]]>
  2170. </script>
  2171. </select1>
  2172. <caption id="caption31" class="cell_1" style="left:304px; top:615px; width:67px; height:23px; vertical-align:middle; ">거래처</caption>
  2173. <caption id="caption32" class="cell_1" style="left:808px; top:615px; width:65px; height:23px; vertical-align:middle; ">불출구분</caption>
  2174. <caption id="caption33" class="cell_1" style="left:982px; top:615px; width:65px; height:23px; vertical-align:middle; ">불출단위</caption>
  2175. <caption id="caption43" class="cell_1" style="left:304px; top:495px; width:67px; height:23px; vertical-align:middle; ">CSR청구</caption>
  2176. <select1 id="rdo_csrreqflag" ref="/root/main/goodlist/csrreqflag" disabled="true" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:374px; top:499px; width:86px; height:13px; border-style:none; ">
  2177. <choices>
  2178. <item>
  2179. <label>Y</label>
  2180. <value>Y</value>
  2181. </item>
  2182. <item>
  2183. <label>N</label>
  2184. <value>N</value>
  2185. </item>
  2186. </choices>
  2187. </select1>
  2188. <select1 id="cmb_csrrequnit" ref="/root/main/goodlist/csrrequnit" disabled="true" appearance="minimal" style="left:530px; top:496px; width:58px; height:19px; ">
  2189. <choices>
  2190. <itemset nodeset="/root/init/mlist/R0039">
  2191. <label ref="cdnm"/>
  2192. <value ref="cdid"/>
  2193. </itemset>
  2194. </choices>
  2195. </select1>
  2196. <input id="ipt_csrreqqty" ref="/root/main/goodlist/csrreqqty" disabled="true" maxlength="12" format="###.##" style="left:590px; top:496px; width:34px; height:19px; ">
  2197. <script type="javascript" ev:event="onkeydown">
  2198. <![CDATA[
  2199. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  2200. ]]>
  2201. </script>
  2202. </input>
  2203. <textarea id="tar_goodinfo" ref="/root/main/goodlist/goodinfo" disabled="true" style="left:372px; top:663px; width:433px; height:45px; "/>
  2204. <line id="line15" class="line_2" style="x1:878px; y1:685px; x2:933px; y2:685px; "/>
  2205. <line id="line9" class="line_2" style="x1:305px; y1:709px; x2:1192px; y2:709px; "/>
  2206. <select1 id="cmb_reqprid" ref="/root/main/goodlist/reqprid" disabled="true" visibility="hidden" appearance="minimal" style="left:454px; top:667px; width:2px; height:19px; text-align:center; ">
  2207. <choices>
  2208. <itemset nodeset="/root/init/mlist/R0093">
  2209. <label ref="cdnm"/>
  2210. <value ref="cdid"/>
  2211. </itemset>
  2212. </choices>
  2213. </select1>
  2214. <input id="ipt_dump" ref="/root/main/goodlist/dump" visibility="hidden" style="left:885px; top:65px; width:40px; height:19px; "/>
  2215. <caption id="caption23" class="cell_1" visibility="hidden" style="left:305px; top:666px; width:5px; height:23px; vertical-align:middle; ">청구방법</caption>
  2216. <!-- (20101013) 경북대)
  2217. <button id="button1" class="btn2_letter6" style="left:214px; top:80px; width:86px; height:19px; ">
  2218. -->
  2219. <button id="button1" class="btn2_letter6" visibility="hidden" style="left:214px; top:65px; width:86px; height:19px; ">
  2220. <caption>구매코드조회</caption>
  2221. <script type="javascript" ev:event="DOMActivate">
  2222. <![CDATA[
  2223. //modal("SMRSC05300", "", "", "", "", "", "","width:960px;height:750px;align:left;");
  2224. messageBox("개발중","I009");
  2225. ]]>
  2226. </script>
  2227. </button>
  2228. <!-- (20101013) 경북대) -->
  2229. <!-- (20100804 경북대) col=4에서 3으로 변경-->
  2230. <!--
  2231. <select1 id="rdo_proddrugsetflag2" ref="/root/main/goodlist/proddrugsetflag" disabled="true" appearance="full" cellspacing="15" cols="4" overflow="visible" style="left:374px; top:485px; width:271px; height:13px; border-style:none; ">
  2232. -->
  2233. <select1 id="rdo_proddrugsetflag2" ref="/root/main/goodlist/proddrugsetflag" disabled="true" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:374px; top:403px; width:251px; height:13px; border-style:none; ">
  2234. <!-- (20100804 경북대) col=4에서 3으로 변경-->
  2235. <choices>
  2236. <item>
  2237. <label>Set</label>
  2238. <value>1</value>
  2239. </item>
  2240. <item>
  2241. <label>Single</label>
  2242. <value>2</value>
  2243. </item>
  2244. <!--(20100804 경북대) 기능없음
  2245. <item>
  2246. <label>Single(Set)</label>
  2247. <value>3</value>
  2248. </item>
  2249. -->
  2250. <item>
  2251. <label>없음</label>
  2252. <value>4</value>
  2253. </item>
  2254. </choices>
  2255. <script type="javascript" ev:event="xforms-value-changed">
  2256. <![CDATA[
  2257. if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "3") {
  2258. model.setValue(rdo_csrreqflag.attribute("ref"), "N");
  2259. model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
  2260. } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "2") {
  2261. model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
  2262. model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
  2263. } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "1") {
  2264. model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
  2265. model.setValue(cmb_csrrequnit.attribute("ref"), "SET");
  2266. }
  2267. rdo_csrreqflag.refresh();
  2268. ]]>
  2269. </script>
  2270. </select1>
  2271. <line id="line16" class="line_2" style="x1:305px; y1:420px; x2:1192px; y2:420px; "/>
  2272. <caption id="caption42" class="cell_1" style="left:627px; top:398px; width:65px; height:23px; vertical-align:middle; ">멸균구분</caption>
  2273. <caption id="caption3" class="cell_1" style="left:304px; top:398px; width:67px; height:23px; vertical-align:middle; ">Set구분</caption>
  2274. <caption id="caption38" class="cell_1" style="left:982px; top:398px; width:65px; height:23px; vertical-align:middle; ">물품위치</caption>
  2275. <caption id="caption8" class="cell_1" style="left:628px; top:495px; width:65px; height:23px; vertical-align:middle; ">구매단가</caption>
  2276. <caption id="caption45" class="cell_1" style="left:304px; top:374px; width:67px; height:23px; text-align:center; vertical-align:middle; ">마스터구분</caption>
  2277. <select1 id="rdo_mstflag" ref="/root/main/goodlist/mstflag" appearance="full" cols="2" overflow="visible" style="left:375px; top:378px; width:50px; height:13px; border-style:none; ">
  2278. <choices>
  2279. <item>
  2280. <label>CSR</label>
  2281. <value>T</value>
  2282. </item>
  2283. </choices>
  2284. </select1>
  2285. <line id="line13" class="line_2" style="x1:305px; y1:517px; x2:1192px; y2:517px; "/>
  2286. <caption id="caption44" class="cell_1" style="left:463px; top:495px; width:65px; height:23px; vertical-align:middle; ">기준단위</caption>
  2287. <caption id="caption20" class="cell_1" style="left:808px; top:446px; width:65px; height:23px; vertical-align:middle; ">사용여부</caption>
  2288. <select1 id="cmb_dinfdivs" ref="/root/main/goodlist/dinfdivs" appearance="minimal" style="left:810px; top:399px; width:169px; height:19px; ">
  2289. <choices>
  2290. <item>
  2291. <label>고압증기멸균</label>
  2292. <value>1</value>
  2293. </item>
  2294. <item>
  2295. <label>가스멸균</label>
  2296. <value>2</value>
  2297. </item>
  2298. <item>
  2299. <label>건열멸균</label>
  2300. <value>3</value>
  2301. </item>
  2302. <item>
  2303. <label>플라즈마멸균</label>
  2304. <value>4</value>
  2305. </item>
  2306. <item>
  2307. <label>감마멸균</label>
  2308. <value>5</value>
  2309. </item>
  2310. </choices>
  2311. </select1>
  2312. <caption id="caption46" class="cell_1" style="left:982px; top:495px; width:65px; height:23px; vertical-align:middle; ">유사물품</caption>
  2313. <caption id="caption1" class="cell_1" style="left:982px; top:446px; width:65px; height:23px; vertical-align:middle; ">기준수량</caption>
  2314. <input id="ipt_baseqty" ref="/root/main/goodlist/baseqty" disabled="true" style="left:1049px; top:447px; width:142px; height:19px; "/>
  2315. <input id="ipt_simlgood" ref="/root/main/goodlist/simlgood" disabled="true" style="left:1049px; top:496px; width:86px; height:19px; "/>
  2316. <button id="btn_open" class="btn2_letter3" style="left:1140px; top:497px; width:53px; height:19px; ">
  2317. <caption>펼치기</caption>
  2318. <script type="javascript" ev:event="DOMActivate">
  2319. <![CDATA[
  2320. tar_simlgood.visible = true;
  2321. model.setFocus("tar_simlgood");
  2322. ]]>
  2323. </script>
  2324. </button>
  2325. <bool id="bool1" checkvalue="Y,N" ref="/root/temp/cond/checkallitem" style="left:322px; top:96px; width:30px; height:20px; ">
  2326. <script type="javascript" ev:event="xforms-value-changed">
  2327. <![CDATA[
  2328. if(bool1.value == "Y"){
  2329. for(var i = 0 ; i < grd_rscdgooddata.rows ; i++){
  2330. grd_rscdgooddata.valueMatrix(i , grd_rscdgooddata.colRef("chkyn")) = "Y";
  2331. grd_rscdgooddata.rowStatus(i)="2";
  2332. }
  2333. btn_del.disabled = false;
  2334. }else{
  2335. for(var i = 0 ; i < grd_rscdgooddata.rows ; i++){
  2336. grd_rscdgooddata.valueMatrix(i , grd_rscdgooddata.colRef("chkyn")) = "N";
  2337. grd_rscdgooddata.rowStatus(i)="0";
  2338. }
  2339. btn_del.disabled = true;
  2340. }
  2341. ]]>
  2342. </script>
  2343. </bool>
  2344. <!--(20101014) 경북대
  2345. 원본
  2346. <button id="btn_del" class="btn2_letter2" disabled="true" visibility="hidden" style="left:1060px; top:430px; width:42px; height:19px; ">
  2347. -->
  2348. <button id="btn_del" class="btn2_letter2" disabled="true" visibility="hidden" style="left:490px; top:343px; width:42px; height:19px; ">
  2349. <caption>삭제</caption>
  2350. <script type="javascript" ev:event="DOMActivate">
  2351. <![CDATA[
  2352. fSaveData("D");
  2353. ]]>
  2354. </script>
  2355. </button>
  2356. <select1 id="rdo_mstflag_old" ref="/root/main/goodlist/lodmstflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:315px; top:343px; width:85px; height:13px; border-style:none; ">
  2357. <choices>
  2358. <item>
  2359. <label>CSR</label>
  2360. <value>T</value>
  2361. </item>
  2362. <item>
  2363. <label>OR</label>
  2364. <value>OR</value>
  2365. </item>
  2366. </choices>
  2367. </select1>
  2368. <!--(20101014) 경북대
  2369. 구매코드이용시 구매코드를 중앙공급실코드로 바로 사용여부
  2370. -->
  2371. <select id="chk_misyn" ref="/root/main/misgoodchk" overflow="visible" appearance="full" style="left:1000px; top:348px; width:100px; height:20px; border-style:none; ">
  2372. <choices>
  2373. <item>
  2374. <label>구매코드사용</label>
  2375. <value>Y</value>
  2376. </item>
  2377. </choices>
  2378. </select>
  2379. <!--(20101014) 경북대 -->
  2380. <line id="line17" class="line_2" style="x1:305px; y1:444px; x2:1192px; y2:444px; "/>
  2381. <caption id="caption7" class="cell_1" style="left:304px; top:422px; width:67px; height:23px; vertical-align:middle; ">세척구분</caption>
  2382. <select1 id="cmb_cleanflag" ref="/root/main/goodlist/cleanflag" appearance="minimal" style="left:374px; top:422px; width:251px; height:19px; ">
  2383. <choices>
  2384. <item>
  2385. <label>게팅게</label>
  2386. <value>1</value>
  2387. </item>
  2388. <item>
  2389. <label>밀레</label>
  2390. <value>2</value>
  2391. </item>
  2392. <item>
  2393. <label>손세척</label>
  2394. <value>3</value>
  2395. </item>
  2396. </choices>
  2397. </select1>
  2398. <select1 id="rdo_netflag" ref="/root/main/goodlist/netflag" appearance="full" cols="2" overflow="visible" style="left:695px; top:426px; width:110px; height:13px; border-style:none; ">
  2399. <choices>
  2400. <item>
  2401. <label>Y</label>
  2402. <value>Y</value>
  2403. </item>
  2404. <item>
  2405. <label>N</label>
  2406. <value>N</value>
  2407. </item>
  2408. </choices>
  2409. <script type="javascript" ev:event="xforms-value-changed">
  2410. <![CDATA[
  2411. if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
  2412. cmb_dinfdivs.disabled = false;
  2413. } else {
  2414. model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
  2415. cmb_dinfdivs.refresh();
  2416. cmb_dinfdivs.disabled = true;
  2417. }
  2418. ]]>
  2419. </script>
  2420. </select1>
  2421. <caption id="caption47" class="cell_1" style="left:627px; top:422px; width:65px; height:23px; vertical-align:middle; ">망구분</caption>
  2422. <caption id="caption48" class="cell_1" style="left:939px; top:422px; width:108px; height:23px; vertical-align:middle; ">세척멸균관리구분</caption>
  2423. <select1 id="cmb_dinfcleanflag" ref="/root/main/goodlist/dinfcleanflag" appearance="minimal" style="left:1049px; top:423px; width:140px; height:19px; ">
  2424. <choices>
  2425. <itemset nodeset="/root/init/mlist/M0635">
  2426. <label ref="cdnm"/>
  2427. <value ref="cdid"/>
  2428. </itemset>
  2429. </choices>
  2430. </select1>
  2431. <line id="line5" class="line_2" style="x1:305px; y1:589px; x2:1192px; y2:589px; "/>
  2432. <caption id="caption49" class="cell_1" style="left:983px; top:543px; width:65px; height:23px; vertical-align:middle; ">불출구분</caption>
  2433. <caption id="caption51" class="cell_1" style="left:983px; top:519px; width:65px; height:23px; vertical-align:middle; ">일지분류</caption>
  2434. <select1 id="cmb_workgubn" ref="/root/main/goodlist/workgubn" appearance="minimal" style="left:1050px; top:520px; width:94px; height:19px; ">
  2435. <choices>
  2436. <itemset nodeset="/root/init/mlist/M0637">
  2437. <label ref="cdnm"/>
  2438. <value ref="cdid"/>
  2439. </itemset>
  2440. </choices>
  2441. </select1>
  2442. <select1 id="cmb_dlvgubn" ref="/root/main/goodlist/dlvgubn" appearance="minimal" style="left:1050px; top:544px; width:94px; height:19px; ">
  2443. <choices>
  2444. <itemset nodeset="/root/init/mlist/M0638">
  2445. <label ref="cdnm"/>
  2446. <value ref="cdid"/>
  2447. </itemset>
  2448. </choices>
  2449. </select1>
  2450. <line id="line18" class="line_2" style="x1:305px; y1:468px; x2:1192px; y2:468px; "/>
  2451. <caption id="caption22" class="cell_1" style="left:627px; top:446px; width:65px; height:23px; vertical-align:middle; ">구매구분</caption>
  2452. <caption id="caption17" class="cell_1" style="left:304px; top:446px; width:67px; height:23px; vertical-align:middle; ">물품구분</caption>
  2453. <caption id="caption52" class="cell_1" style="left:304px; top:470px; width:67px; height:23px; vertical-align:middle; ">재고구분</caption>
  2454. <select1 id="cmb_reqdetlflag" ref="/root/main/goodlist/reqdetlflag" appearance="minimal" style="left:374px; top:471px; width:131px; height:19px; ">
  2455. <choices>
  2456. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='T95' or cdid='']">
  2457. <label ref="cdnm"/>
  2458. <value ref="cdid"/>
  2459. </itemset>
  2460. </choices>
  2461. </select1>
  2462. <caption id="caption53" class="cell_1" style="left:610px; top:470px; width:83px; height:23px; vertical-align:middle; ">세척기구분류</caption>
  2463. <select1 id="cmb_csrworkflag" ref="/root/main/goodlist/csrworkflag" appearance="minimal" style="left:695px; top:472px; width:110px; height:19px; ">
  2464. <choices>
  2465. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U20' or cdid='']">
  2466. <label ref="cdnm"/>
  2467. <value ref="cdid"/>
  2468. </itemset>
  2469. </choices>
  2470. </select1>
  2471. <caption id="caption54" class="cell_1" style="left:940px; top:470px; width:108px; height:23px; text-align:right; vertical-align:middle; ">드레싱Set여부</caption>
  2472. <textarea id="tar_simlgood" ref="/root/main/goodlist/simlgood" visibility="hidden" style="left:630px; top:435px; width:385px; height:230px; ">
  2473. <script type="javascript" ev:event="DOMFocusOut">
  2474. <![CDATA[
  2475. tar_simlgood.visible = false;
  2476. ]]>
  2477. </script>
  2478. </textarea>
  2479. <select1 id="rdo_dressingyn" ref="/root/main/goodlist/dressingyn" appearance="full" cols="2" overflow="visible" style="left:1050px; top:474px; width:110px; height:13px; border-style:none; ">
  2480. <choices>
  2481. <item>
  2482. <label>Y</label>
  2483. <value>Y</value>
  2484. </item>
  2485. <item>
  2486. <label>N</label>
  2487. <value>N</value>
  2488. </item>
  2489. </choices>
  2490. <script type="javascript" ev:event="xforms-value-changed">
  2491. <![CDATA[
  2492. if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
  2493. cmb_dinfdivs.disabled = false;
  2494. } else {
  2495. model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
  2496. cmb_dinfdivs.refresh();
  2497. cmb_dinfdivs.disabled = true;
  2498. }
  2499. ]]>
  2500. </script>
  2501. </select1>
  2502. <caption id="caption55" class="cell_1" style="left:304px; top:711px; width:67px; height:30px; vertical-align:middle; ">특이사항</caption>
  2503. <line id="line19" class="line_3" style="x1:305px; y1:740px; x2:1192px; y2:740px; "/>
  2504. <caption id="caption27" class="cell_1" style="left:304px; top:663px; width:67px; height:47px; vertical-align:middle; ">물품정보</caption>
  2505. <caption id="caption30" class="cell_1" style="left:982px; top:686px; width:65px; height:23px; vertical-align:middle; ">종료일자</caption>
  2506. <caption id="caption29" class="cell_1" style="left:808px; top:687px; width:65px; height:23px; vertical-align:middle; ">시작일자</caption>
  2507. <textarea id="tar_remark" ref="/root/main/goodlist/remark" scroll="autohscroll" style="left:374px; top:711px; width:820px; height:30px; "/>
  2508. </group>
  2509. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  2510. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:165px; height:14px; ">CSR 물품 Master</caption>
  2511. </group>
  2512. </xhtml:body>
  2513. </xhtml:html>