SMRSC07001_물품코드등록(CSR).xrw 120 KB

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