SMRSC00600_물품종합조회.xrw 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114
  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>기관별 물품종합 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodhistory>
  12. <goodhistorylist/>
  13. </goodhistory>
  14. <good>
  15. <goodlist/>
  16. </good>
  17. </list>
  18. <gooddet>
  19. <gooddetlist/>
  20. </gooddet>
  21. </main>
  22. <target>
  23. <defaultvalue/>
  24. </target>
  25. <init>
  26. <allsizeyn>
  27. <label>예</label>
  28. <value>Y</value>
  29. <label>아니오</label>
  30. <value>N</value>
  31. </allsizeyn>
  32. <useyn>
  33. <label>사용</label>
  34. <value>Y</value>
  35. <label>불용</label>
  36. <value>N</value>
  37. <label>전체</label>
  38. <value>A</value>
  39. </useyn>
  40. <popmenu>
  41. <grd_costlist>
  42. <item>
  43. <name>품명일괄변경</name>
  44. <func>fSetGoodnm</func>
  45. </item>
  46. <item>
  47. <name>규격일괄변경</name>
  48. <func>fSetGoodSpec</func>
  49. </item>
  50. <item>
  51. <name>모델일괄변경</name>
  52. <func>fSetGoodModel</func>
  53. </item>
  54. <item>
  55. <name>제조회사일괄변경</name>
  56. <func>fSetGoodProdCmpy</func>
  57. </item>
  58. <item>
  59. <name>-</name>
  60. <func/>
  61. </item>
  62. <item>
  63. <name>포장단위일괄변경</name>
  64. <func>fSetPurcUnit</func>
  65. </item>
  66. <item>
  67. <name>환산수량일괄변경</name>
  68. <func>fSetExchQty</func>
  69. </item>
  70. <item>
  71. <name>수불단위일괄변경</name>
  72. <func>fSetDeliveUnit</func>
  73. </item>
  74. <item>
  75. <name>-</name>
  76. <func/>
  77. </item>
  78. <item>
  79. <name>단가일괄변경</name>
  80. <func>fSetGoodUnitCost</func>
  81. </item>
  82. <item>
  83. <name>-</name>
  84. <func/>
  85. </item>
  86. <item>
  87. <name>주거래처일괄변경</name>
  88. <func>fSetMainCustLastSuplplce</func>
  89. </item>
  90. <item>
  91. <name>보조거래처일괄변경</name>
  92. <func>fSetSuppCustCd</func>
  93. </item>
  94. </grd_costlist>
  95. </popmenu>
  96. <popinputcd/>
  97. <popinputnm/>
  98. <poptitle/>
  99. <popcond/>
  100. <popformat/>
  101. </init>
  102. <send>
  103. <goodlist>
  104. <instcd/>
  105. <lrgcd/>
  106. <lrgnm/>
  107. <mdlcd/>
  108. <mdlnm/>
  109. <smlcd/>
  110. <smlnm/>
  111. <edicd/>
  112. <goodcd/>
  113. <goodflag/>
  114. <goodnm/>
  115. <prodcmpycd/>
  116. <prodcmpynm/>
  117. <maincustlastsuplplce/>
  118. <maincustlastsuplplcenm/>
  119. <suppcustcd/>
  120. <suppcustnm/>
  121. <purcflag/>
  122. <stocmngtflag/>
  123. <reqmthd/>
  124. <allsizeyn/>
  125. <conflag/>
  126. <useyn/>
  127. <fr_fromdd/>
  128. <to_fromdd/>
  129. <reqflag/>
  130. <sch_goodcd/>
  131. <offset/>
  132. <pagesize>20</pagesize>
  133. <oldcd/>
  134. <plceordbase/>
  135. <selectonly>Y</selectonly>
  136. </goodlist>
  137. <goodhistory>
  138. <goodcd/>
  139. </goodhistory>
  140. <save>
  141. <goodlist/>
  142. <setautoins>
  143. <setyn>Y</setyn>
  144. <insfromdd/>
  145. </setautoins>
  146. </save>
  147. </send>
  148. </root>
  149. </instance>
  150. <script type="javascript" ev:event="xforms-ready">
  151. <![CDATA[
  152. //화면 Control을 초기화한다
  153. fInitialize();
  154. ]]>
  155. </script>
  156. <submission id="TRRSC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/good"/>
  157. <submission id="TRRSC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodhistory" resultref="/root/main/list/goodhistory"/>
  158. </model>
  159. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  160. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  161. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  162. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  164. <script type="javascript">
  165. <![CDATA[
  166. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  167. function fInitialize() {
  168. model.resetInstanceNode("/root/send");
  169. misfGridInit(grd_costlist);
  170. misfGridInit(grd_goodhistory);
  171. rszfGoodFlagListByPgmGubn(cmb_goodflag,"","N");
  172. //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid")); 모든 부서가 볼수 있게 권한을 없음(최학록부장님이 확인)
  173. //rszfUserInstList(cmb_instcd,getUserInfo("userid"));모든 부서가 볼수 있게 권한을 없음(최학록부장님이 확인)
  174. misfComboComCdListMulti("Z0007,R0111,R0069,R0092,R0095,R0107","cmb_instcd,cmb_purcflag,cmb_stocmngtflag,cmb_reqmthd,cmb_conflag,cmb_plceordbase");
  175. rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y",getUserInfo("dutplceinstcd"),"Y");
  176. rszfComboAppendBlankChild("cmb_reqmthd,cmb_conflag,cmb_plceordbase,cmb_purcflag,cmb_stocmngtflag");
  177. //기관코드 읽어오는 부분 넣기
  178. var instcd = getUserInfo("dutplceinstcd");
  179. var instnm = getUserInfo("dutplceinstnm");
  180. if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
  181. else
  182. {
  183. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  184. }
  185. //물품구분일 경우 첫번째 index 자동 설정
  186. if(cmb_goodflag.length> 0) {
  187. cmb_goodflag.selectedindex= 0;
  188. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "Y", "Y");
  189. cmb_mdlcd_search.value='';
  190. cmb_smlcd_search.value='';
  191. }
  192. misfMsterDetailSet(grd_costlist,null, "TRRSC00601" ,"N");
  193. // misfMsterDetailSet(grd_goodhistory,grd_costlist,"TRRSC00602" ,"N");
  194. grd_costlist.explorerbar = "sortshow";
  195. grd_goodhistory.explorerbar = "sortshow";
  196. grd_costlist.selectionmode = "list";
  197. model.setFocus("ipt_lrgcd_search");
  198. rbo_useyn.select(0);
  199. model.setValue(opt_seelct.attribute("ref"),"Y");
  200. model.refresh();
  201. }
  202. function fGridAutoRowchanged()
  203. {
  204. if(grd_costlist.rows > grd_costlist.fixedRows)
  205. {
  206. grd_costlist.row = grd_costlist.fixedRows;
  207. // grd_costlist.dispatch("onmousedown");
  208. // grd_costlist.dispatch("onrowchanged");
  209. // grd_costlist.dispatch("onclick");
  210. }
  211. }
  212. function fSetGoodSpec()
  213. {
  214. model.setValue(opt_poptitle.attribute("ref"), "물품 규격을 입력해 주세요");
  215. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title","opt_poptitle");
  216. model.refresh();
  217. fSetAllApply(grd_costlist,"goodspec", model.getValue(opt_popinputcd.attribute("ref")));
  218. }
  219. function fSetGoodModel()
  220. {
  221. model.setValue(opt_poptitle.attribute("ref"), "물품 모델을 입력해 주세요");
  222. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title","opt_poptitle");
  223. model.refresh();
  224. fSetAllApply(grd_costlist,"goodmodel", model.getValue(opt_popinputcd.attribute("ref")));
  225. }
  226. function fSetGoodnm()
  227. {
  228. model.setValue(opt_poptitle.attribute("ref"), "물품명 입력해 주세요");
  229. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title","opt_poptitle");
  230. model.refresh();
  231. fSetAllApply(grd_costlist,"goodnm", model.getValue(opt_popinputcd.attribute("ref")));
  232. }
  233. function fSetGoodUnitCost()
  234. {
  235. model.setValue(opt_poptitle.attribute("ref"), "제품 단가를 입력해 주세요");
  236. model.setValue(opt_popformat.attribute("ref"), "#,###");
  237. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,format","opt_poptitle,opt_popformat");
  238. model.refresh();
  239. fSetAllApply(grd_costlist,"goodunitcost", model.getValue(opt_popinputcd.attribute("ref")));
  240. }
  241. function fSetExchQty()
  242. {
  243. model.setValue(opt_poptitle.attribute("ref"), "환산수량을 입력해 주세요");
  244. model.setValue(opt_popformat.attribute("ref"), "#,###");
  245. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,format","opt_poptitle,opt_popformat");
  246. model.refresh();
  247. fSetAllApply(grd_costlist,"exchqty", model.getValue(opt_popinputcd.attribute("ref")));
  248. }
  249. function fSetMainCustLastSuplplce()
  250. {
  251. model.setValue(opt_popcond.attribute("ref"),"custom");
  252. model.setValue(opt_poptitle.attribute("ref"), "주거래처를 선택해 주세요");
  253. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  254. model.refresh();
  255. fSetAllApply(grd_costlist,"maincustlastsuplplce,maincustlastsuplplcenm", model.getValue(opt_popinputcd.attribute("ref")));
  256. }
  257. function fSetSuppCustCd()
  258. {
  259. model.setValue(opt_popcond.attribute("ref"),"custom");
  260. model.setValue(opt_poptitle.attribute("ref"), "보조 거래처를 선택해 주세요");
  261. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  262. model.refresh();
  263. fSetAllApply(grd_costlist,"suppcustcd,suppcustnm", model.getValue(opt_popinputcd.attribute("ref")));
  264. }
  265. function fSetGoodProdCmpy()
  266. {
  267. model.setValue(opt_popcond.attribute("ref"),"prodcmpy");
  268. model.setValue(opt_poptitle.attribute("ref"), "제조회사를 선택해 주세요");
  269. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd,popinputnm","SMRSC03701" ,"title,cond,instcd","opt_poptitle,opt_popcond,cmb_instcd");
  270. model.refresh();
  271. fSetAllApply(grd_costlist,"prodcmpycd,prodcmpynm", model.getValue(opt_popinputcd.attribute("ref")));
  272. }
  273. function fSetPurcUnit()
  274. {
  275. model.setValue(opt_popcond.attribute("ref"),"purcunit");
  276. model.setValue(opt_poptitle.attribute("ref"), "포장단위를 선택해 주세요");
  277. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,cond","opt_poptitle,opt_popcond");
  278. model.refresh();
  279. fSetAllApply(grd_costlist,"purcunit", model.getValue(opt_popinputcd.attribute("ref")));
  280. }
  281. function fSetDeliveUnit()
  282. {
  283. model.setValue(opt_popcond.attribute("ref"),"deliveunit");
  284. model.setValue(opt_poptitle.attribute("ref"), "수불단위를 선택해 주세요");
  285. rszfOpenPopUpListByWndName(opt_popinputcd,"","popinputcd","SMRSC03701" ,"title,cond","opt_poptitle,opt_popcond");
  286. model.refresh();
  287. fSetAllApply(grd_costlist,"deliveunit", model.getValue(opt_popinputcd.attribute("ref")));
  288. }
  289. function fSetAllApply(f_grid, f_id , f_value)
  290. {
  291. if(f_id == null || f_id.length == 0 || f_value == null || f_value.length == 0 )return;
  292. var f_selid = f_id.split(",");
  293. var f_selvalue = f_value.split(",");
  294. for(currow = 0 ; currow < f_grid.selectedRows; currow++)
  295. {
  296. for (var k = 0; k < f_selid.length; k++) {
  297. if(f_grid.colRef(f_selid[k]) != -1)
  298. {
  299. if(model.getValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k]) != f_selvalue[k])
  300. {
  301. model.setValue(f_grid.nodeset + "[" + (f_grid.selectedRow(currow)- f_grid.fixedRows + 1) + "]/" + f_selid[k] ,f_selvalue[k]);
  302. if(f_grid.rowStatus(f_grid.selectedRow(currow)) == "0")f_grid.rowStatus(f_grid.selectedRow(currow)) = "2";
  303. }
  304. }
  305. }
  306. }
  307. }
  308. function fZoomInOut(pCall)
  309. {
  310. var selrow = 0;
  311. var selzoomin = "N";
  312. /* 조회버튼 click시 원래사이즈로 초기화 .2007.10.01 */
  313. if (pCall == "search")
  314. {
  315. for(currow = 0 ; currow < grd_costlist.Rows; currow++)
  316. {
  317. selrow = grd_costlist.selectedRow(currow);
  318. if(grd_costlist.rowHeight(selrow) == 50)
  319. {
  320. grd_costlist.rowHeight(selrow) = 23;
  321. grd_costlist.cellstyle("font-size",selrow, 1 , selrow, grd_costlist.cols -1) = "10pt";
  322. }
  323. }
  324. }
  325. else
  326. {
  327. for(currow = 0 ; currow < grd_costlist.selectedRows; currow++)
  328. {
  329. selrow = grd_costlist.selectedRow(currow);
  330. if(grd_costlist.rowHeight(selrow) == 23)
  331. {
  332. grd_costlist.rowHeight(selrow) = 50;
  333. grd_costlist.cellstyle("font-size",selrow, 1,selrow,grd_costlist.cols -1) = "15pt";
  334. selzoomin = "Y";
  335. }
  336. else
  337. {
  338. grd_costlist.rowHeight(selrow) = 23;
  339. grd_costlist.cellstyle("font-size",selrow, 1 , selrow, grd_costlist.cols -1) = "10pt";
  340. }
  341. }
  342. }
  343. if(selzoomin == "Y")grd_costlist.ellipsis ="false";
  344. else grd_costlist.ellipsis ="true";
  345. }
  346. function fWindowPosition(inout)
  347. {
  348. if(inout =="O")
  349. {
  350. // grp_title.visible = false;
  351. swt_select.attribute("style") = "left:0px; top:186px; width:1195px; height:413px; border-style:solid; ";
  352. grd_costlist.attribute("style") ="left:0px; top:29px; width:1193px; height:372px; ";
  353. }
  354. else
  355. {
  356. // grp_title.visible = true ;
  357. swt_select.attribute("style") = "left:0px; top:10px; width:1195px; height:589px; border-style:solid; ";
  358. grd_costlist.attribute("style") = "left:0px; top:29px; width:1193px; height:548px;";
  359. }
  360. model.refresh();
  361. }
  362. function fSetDataCopy(pnode,nodename)
  363. {
  364. misfGridInit(grd_goodhistory);
  365. if (swt_select.selectedIndex == 0)
  366. {
  367. misfGridInit(grd_costlist);
  368. fgrid = grd_costlist;
  369. }
  370. else return;
  371. var codynode = instance1.selectNodes(pnode + "/*");
  372. var tmpdata = "";
  373. for (var j = 1; j <= codynode.length ; j++) {
  374. misfGridIUD(fgrid,"A");
  375. addRow = fgrid.rows - fgrid.fixedRows;
  376. for(var curcol = 1; curcol < fgrid.cols ; curcol++)
  377. {
  378. tmpdata = model.getValue(pnode +"/" + nodename + "[" + j + "]/" + fgrid.colAttribute(curcol, "ref"));
  379. if(tmpdata.length> 0)model.setValue(fgrid.nodeset + "[" + addRow + "]/" + fgrid.colAttribute(curcol, "ref") , tmpdata);
  380. }
  381. addRow = addRow + 1;
  382. }
  383. fgrid.clearStatus();
  384. model.refresh();
  385. }
  386. function fSaveDataSetting(pSubmit_Id) {
  387. if (swt_select.selectedIndex == 0)fgrid = grd_costlist;
  388. else return;
  389. var insfromdd = model.getValue(ipt_insfromdd.attribute("ref"));
  390. model.removenode("/root/send/save");
  391. model.makeNode("/root/send/save/goodlist");
  392. model.makeNode("/root/send/save/gooddetlist");
  393. model.makeNode("/root/send/save/setautoins/setyn");
  394. model.makeNode("/root/send/save/setautoins/insfromdd")
  395. model.setValue("/root/send/save/setautoins/setyn","Y");
  396. model.setValue("/root/send/save/setautoins/insfromdd",insfromdd);
  397. model.refresh();
  398. if(swt_select.selectedIndex == 0)model.setValue("/root/send/save/goodlist" , fgrid.getUpdateData());
  399. model.setValue("/root/send/save/gooddetlist" , fgrid.getUpdateData());
  400. submit(pSubmit_Id);
  401. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  402. {
  403. fgrid.clearStatus();
  404. submit("TRRSC00602");
  405. }
  406. }
  407. function fCheckRetrieveData()
  408. {
  409. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  410. {
  411. messageBox("기관코드를 " ,"C002");
  412. model.setFocus("cmb_instcd");
  413. return false;
  414. }
  415. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  416. {
  417. messageBox("물품구분을 " ,"C002");
  418. model.setFocus("cmb_goodflag");
  419. return false;
  420. }
  421. /*
  422. if(model.getValue(ipt_lrgcd_search.attribute("ref")).length== 0 )
  423. {
  424. messageBox("대분류코드를 " ,"C002");
  425. model.setFocus("ipt_lrgcd_search");
  426. return false;
  427. }
  428. if(model.getValue(ipt_goodcd.attribute("ref")).length < 3 && model.getValue(ipt_goodnm.attribute("ref")).length < 3)
  429. {
  430. messageBox("물품코드 또는 물품명에 최소 2자리를" ,"C001");
  431. model.setFocus("ipt_goodcd_search");
  432. return false;
  433. }
  434. */
  435. model.setValue("/root/send/goodlist/offset","0");
  436. model.setValue("/root/send/goodlist/pagesize", 20);
  437. return true;
  438. }
  439. function zoomInAndOut(string) {
  440. if (string == "in") {
  441. currZoom = myContainer.style.zoom;
  442. currZoom = currZoom.substring(0, currZoom.length - 1);
  443. currZoom = parseInt(currZoom, 10);
  444. newZoom = currZoom + 1;
  445. if (newZoom> 10000) return;
  446. myContainer.style.zoom = newZoom + "%";
  447. }
  448. else if (string == "out") {
  449. currZoom = myContainer.style.zoom;
  450. currZoom = currZoom.substring(0, currZoom.length - 1);
  451. currZoom = parseInt(currZoom, 10);
  452. newZoom = currZoom - 1;
  453. if (newZoom <1) return;
  454. myContainer.style.zoom = newZoom + "%";
  455. }
  456. }
  457. function fSubmitOnScroll() {
  458. if (swt_select.selectedIndex == 0)fgrid = grd_costlist;
  459. else return;
  460. if(fgrid.vscroll.attribute("max") == fgrid.vscroll.attribute("pos")) {
  461. model.setValue("/root/send/goodlist/offset", fgrid.rows-fgrid.fixedRows);
  462. model.setValue("/root/send/goodlist/pagesize", 20);
  463. submit("TRRSC00601");
  464. }
  465. }
  466. ]]>
  467. </script>
  468. </xhtml:head>
  469. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  470. <group id="group1" style="left:0; top:0; width:1195px; height:13px; ">
  471. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">기관별 물품종합 조회</caption>
  472. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  473. </group>
  474. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  475. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:166px; vertical-align:top; ">
  476. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1195px; height:161px; background-color:#fffbf2; border-color:#ffd799; "/>
  477. <line id="line13" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:150px; border-color:#ffe4bb; border-left-style:solid; "/>
  478. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  479. <select1 id="cmb_instcd" ref="/root/send/goodlist/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:100px; top:9px; width:148px; height:19px; ">
  480. <choices>
  481. <itemset nodeset="/root/init/instcd">
  482. <label ref="cdnm"/>
  483. <value ref="cdid"/>
  484. </itemset>
  485. </choices>
  486. </select1>
  487. <caption id="caption22" class="search_name" style="left:310px; top:140px; width:112px; height:17px; ">재고관리기준 :</caption>
  488. <caption id="caption23" class="search_name" style="left:640px; top:30px; width:86px; height:17px; ">주거래처 :</caption>
  489. <caption id="caption25" class="search_name" style="left:15px; top:140px; width:86px; height:17px; ">구매구분 :</caption>
  490. <input id="input1" ref="/root/send/goodlist/to_fromdd" class="input_default" inputtype="date" style="left:833px; top:140px; width:85px; height:19px; "/>
  491. <caption id="caption27" class="search_name" style="left:640px; top:8px; width:86px; height:17px; ">물 품 명 :</caption>
  492. <caption id="caption29" class="search_name" style="left:640px; top:74px; width:86px; height:17px; ">제조회사 :</caption>
  493. <caption id="caption31" class="search_name" style="left:627px; top:52px; width:99px; height:17px; ">보조거래처 :</caption>
  494. <input id="ipt_goodnm" ref="/root/send/goodlist/goodnm" class="input_default" style="left:725px; top:8px; width:193px; height:19px; "/>
  495. <input id="ipt_prodcmpycd" ref="/root/send/goodlist/prodcmpycd" class="input_search" style="left:725px; top:74px; width:84px; height:19px; ">
  496. <script type="javascript" ev:event="xforms-value-changed">
  497. <![CDATA[
  498. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(ipt_prodcmpynm.attribute("ref"),"");
  499. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm"
  500. ,"prodcmpycd," + ipt_prodcmpycd.value ,"","prodcmpycd,prodcmpynm"
  501. ,ipt_prodcmpycd,"SPRSD00160","","");
  502. model.refresh();
  503. ]]>
  504. </script>
  505. </input>
  506. <input id="ipt_prodcmpynm" ref="/root/send/goodlist/prodcmpynm" class="input_search" style="left:831px; top:74px; width:143px; height:19px; ">
  507. <script type="javascript" ev:event="xforms-value-changed">
  508. <![CDATA[
  509. if(ipt_prodcmpynm.value != "")
  510. {
  511. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm"
  512. ,"prodcmpynm," + ipt_prodcmpynm.value ,
  513. "","prodcmpycd,prodcmpynm"
  514. ,ipt_prodcmpycd,"SPRSD00160","","");
  515. }else{
  516. ipt_prodcmpynm.value = "";
  517. ipt_prodcmpycd.value = "";
  518. }
  519. model.refresh();
  520. ]]>
  521. </script>
  522. </input>
  523. <button id="btn_prodcmpycd" class="icon_search" style="left:812px; top:74px; width:16px; height:16px; ">
  524. <caption/>
  525. <script type="javascript" ev:event="DOMActivate">
  526. <![CDATA[
  527. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  528. model.refresh();
  529. ]]>
  530. </script>
  531. </button>
  532. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodlist/maincustlastsuplplcenm" class="input_search" style="left:831px; top:30px; width:143px; height:19px; ">
  533. <script type="javascript" ev:event="xforms-value-changed">
  534. <![CDATA[
  535. if(ipt_maincustlastsuplplcenm.value != "")
  536. {
  537. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  538. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),
  539. "","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  540. }else{
  541. ipt_maincustlastsuplplcenm.value = "";
  542. ipt_maincustlastsuplplce.value = "";
  543. }
  544. model.refresh();
  545. ]]>
  546. </script>
  547. </input>
  548. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:812px; top:30px; width:16px; height:16px; ">
  549. <caption/>
  550. <script type="javascript" ev:event="DOMActivate">
  551. <![CDATA[
  552. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  553. model.refresh();
  554. ]]>
  555. </script>
  556. </button>
  557. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodlist/maincustlastsuplplce" class="input_search" style="left:725px; top:30px; width:84px; height:19px; ">
  558. <script type="javascript" ev:event="xforms-value-changed">
  559. <![CDATA[
  560. if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(ipt_maincustlastsuplplcenm.attribute("ref"),"");
  561. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  562. model.refresh();
  563. ]]>
  564. </script>
  565. </input>
  566. <input id="ipt_suppcustnm" ref="/root/send/goodlist/suppcustnm" class="input_search" style="left:831px; top:52px; width:143px; height:19px; ">
  567. <script type="javascript" ev:event="xforms-value-changed">
  568. <![CDATA[
  569. if(ipt_suppcustnm.value != "")
  570. {
  571. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  572. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref")),
  573. "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  574. }else{
  575. ipt_suppcustnm.value = "";
  576. ipt_suppcustcd.value = "";
  577. }
  578. model.refresh();
  579. ]]>
  580. </script>
  581. </input>
  582. <input id="ipt_suppcustcd" ref="/root/send/goodlist/suppcustcd" class="input_search" style="left:725px; top:52px; width:84px; height:19px; ">
  583. <script type="javascript" ev:event="xforms-value-changed">
  584. <![CDATA[
  585. if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustnm.attribute("ref"),"");
  586. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  587. model.refresh();
  588. ]]>
  589. </script>
  590. </input>
  591. <button id="btn_suppcustcd" class="icon_search" style="left:812px; top:52px; width:16px; height:16px; ">
  592. <caption/>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  596. model.refresh();
  597. ]]>
  598. </script>
  599. </button>
  600. <input id="ipt_edicd" ref="/root/send/goodlist/edicd" class="input_default" style="left:421px; top:53px; width:148px; height:19px; "/>
  601. <input id="ipt_goodcd" ref="/root/send/goodlist/sch_goodcd" class="input_default" imemode="disabled" style="left:421px; top:9px; width:148px; height:19px; "/>
  602. <caption id="caption33" class="search_name" style="left:336px; top:9px; width:86px; height:17px; ">물품코드 :</caption>
  603. <caption id="caption34" class="search_name" style="left:333px; top:53px; width:89px; height:17px; ">EDI 코드 :</caption>
  604. <caption id="caption35" class="search_name" style="left:336px; top:75px; width:86px; height:17px; ">계약구분 :</caption>
  605. <caption id="caption36" class="search_name" style="left:336px; top:97px; width:86px; height:17px; ">발주기준 :</caption>
  606. <caption id="caption37" class="search_name" style="left:640px; top:119px; width:86px; height:17px; ">사용여부 :</caption>
  607. <select1 id="rbo_useyn" ref="/root/send/goodlist/useyn" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:725px; top:119px; width:148px; height:19px; border-style:none; ">
  608. <choices>
  609. <itemset nodeset="/root/init/useyn">
  610. <label ref="label"/>
  611. <value ref="value"/>
  612. </itemset>
  613. </choices>
  614. </select1>
  615. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:70px; width:56px; height:22px; ">
  616. <caption>조회</caption>
  617. <script type="javascript" ev:event="DOMActivate">
  618. <![CDATA[
  619. // size 원위치
  620. fZoomInOut("search")
  621. if (fCheckRetrieveData() == false) return;
  622. misfGridInit(grd_costlist);
  623. misfGridInit(grd_goodhistory);
  624. misfMsterDetailRetrieve();
  625. // if ( grd_costlist.rows - grd_costlist.fixedRows > 0 ) submit("TRRSC00602");
  626. ]]>
  627. </script>
  628. </button>
  629. <line id="line_title" class="line_4" style="x1:1110px; y1:12px; x2:1110px; y2:152px; border-color:#ffe4bb; border-left-style:solid; "/>
  630. <input id="input23" ref="/root/send/goodlist/fr_fromdd" class="input_default" inputtype="date" style="left:725px; top:140px; width:86px; height:19px; "/>
  631. <caption id="caption38" class="search_name" style="left:640px; top:140px; width:86px; height:17px; ">적용기간 :</caption>
  632. <caption id="caption1" style="left:832px; top:146px; width:5px; height:20px; font-weight:bold; ">~</caption>
  633. <select1 id="cmb_purcflag" ref="/root/send/goodlist/purcflag" class="combo_search" appearance="minimal" style="left:100px; top:140px; width:148px; height:19px; ">
  634. <choices>
  635. <itemset nodeset="/root/init/purcflag">
  636. <label ref="cdnm"/>
  637. <value ref="cdid"/>
  638. </itemset>
  639. </choices>
  640. </select1>
  641. <select1 id="cmb_stocmngtflag" ref="/root/send/goodlist/stocmngtflag" class="combo_search" appearance="minimal" style="left:421px; top:140px; width:148px; height:19px; ">
  642. <choices>
  643. <itemset nodeset="/root/init/stocmngtflag">
  644. <label ref="cdnm"/>
  645. <value ref="cdid"/>
  646. </itemset>
  647. </choices>
  648. </select1>
  649. <select1 id="cmb_conflag" ref="/root/send/goodlist/conflag" class="combo_search" appearance="minimal" style="left:421px; top:75px; width:148px; height:19px; ">
  650. <choices>
  651. <itemset nodeset="/root/init/conflag">
  652. <label ref="cdnm"/>
  653. <value ref="cdid"/>
  654. </itemset>
  655. </choices>
  656. </select1>
  657. <select1 id="cmb_plceordbase" ref="/root/send/goodlist/plceordbase" class="combo_search" appearance="minimal" style="left:421px; top:97px; width:148px; height:19px; ">
  658. <choices>
  659. <itemset nodeset="/root/init/plceordbase">
  660. <label ref="cdnm"/>
  661. <value ref="cdid"/>
  662. </itemset>
  663. </choices>
  664. </select1>
  665. <caption id="cap_reqflag" class="search_name" style="left:336px; top:119px; width:86px; height:17px; ">청구구분 :</caption>
  666. <select1 id="cmb_reqflag" ref="/root/send/goodlist/reqflag" class="combo_default" appearance="minimal" style="left:421px; top:119px; width:148px; height:19px; ">
  667. <choices>
  668. <itemset nodeset="/root/init/reqflag">
  669. <label ref="cdnm"/>
  670. <value ref="cdid"/>
  671. </itemset>
  672. </choices>
  673. </select1>
  674. <caption id="caption3" class="search_name" style="left:15px; top:119px; width:86px; height:17px; ">청구방법 :</caption>
  675. <select1 id="cmb_reqmthd" ref="/root/send/goodlist/reqmthd" class="combo_search" appearance="minimal" style="left:100px; top:119px; width:148px; height:19px; ">
  676. <choices>
  677. <itemset nodeset="/root/init/reqmthd">
  678. <label ref="cdnm"/>
  679. <value ref="cdid"/>
  680. </itemset>
  681. </choices>
  682. </select1>
  683. <caption id="caption5" class="search_name" style="left:640px; top:97px; width:86px; height:17px; ">All Size :</caption>
  684. <select1 id="rdo_allsizeyn" ref="/root/send/goodlist/allsizeyn" appearance="full" cols="2" overflow="visible" style="left:725px; top:97px; width:31px; height:19px; background-color:transparent; border-style:none; ">
  685. <choices>
  686. <itemset nodeset="/root/init/allsizeyn">
  687. <label ref="label"/>
  688. <value ref="value"/>
  689. </itemset>
  690. </choices>
  691. </select1>
  692. <caption id="caption82" class="search_name" style="left:336px; top:31px; width:86px; height:17px; ">구 코 드 :</caption>
  693. <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" maxlength="12" style="left:421px; top:31px; width:148px; height:19px; "/>
  694. <caption id="caption2" style="left:816px; top:140px; width:15px; height:20px; font-weight:bold; ">~</caption>
  695. <caption id="caption94" class="search_name" style="left:15px; top:75px; width:86px; height:17px; ">중 분 류 :</caption>
  696. <caption id="caption96" class="search_name" style="left:15px; top:97px; width:86px; height:17px; ">소 분 류 :</caption>
  697. <select1 id="cmb_lrgcd_search" ref="/root/send/goodlist/lrgcd" appearance="minimal" style="left:100px; top:53px; width:148px; height:19px; ">
  698. <choices>
  699. <itemset>
  700. <label/>
  701. <value/>
  702. </itemset>
  703. </choices>
  704. <script type="javascript" ev:event="xforms-value-changed">
  705. <![CDATA[
  706. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M", "Y", "Y");
  707. cmb_mdlcd_search.value="";
  708. cmb_mdlcd_search.refresh();
  709. cmb_mdlcd_search.dispatch("xforms-value-changed");
  710. //model.refresh();
  711. ]]>
  712. </script>
  713. </select1>
  714. <select1 id="cmb_smlcd_search" ref="/root/send/goodlist/smlcd" appearance="minimal" style="left:100px; top:97px; width:148px; height:19px; ">
  715. <choices>
  716. <itemset>
  717. <label/>
  718. <value/>
  719. </itemset>
  720. </choices>
  721. </select1>
  722. <select1 id="cmb_goodflag" ref="/root/send/goodlist/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:100px; top:31px; width:148px; height:19px; ">
  723. <choices>
  724. <itemset nodeset="/root/init/goodflag">
  725. <label ref="cdnm"/>
  726. <value ref="cdid"/>
  727. </itemset>
  728. </choices>
  729. <script type="javascript" ev:event="xforms-value-changed">
  730. <![CDATA[
  731. misfGridInit(grd_costlist);
  732. misfGridInit(grd_goodhistory);
  733. // rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "", "Y");
  734. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "Y", "Y");
  735. cmb_mdlcd_search.value='';
  736. cmb_smlcd_search.value='';
  737. model.refresh();
  738. //misfGridInit(grd_gooddetlist);
  739. //btn_search.dispatch("DOMActivate");
  740. ]]>
  741. </script>
  742. </select1>
  743. <select1 id="cmb_mdlcd_search" ref="/root/send/goodlist/mdlcd" appearance="minimal" style="left:100px; top:75px; width:148px; height:19px; ">
  744. <choices>
  745. <itemset>
  746. <label/>
  747. <value/>
  748. </itemset>
  749. </choices>
  750. <script type="javascript" ev:event="xforms-value-changed">
  751. <![CDATA[
  752. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S", "Y", "Y");
  753. cmb_smlcd_search.value="";
  754. //model.refresh();
  755. cmb_smlcd_search.refresh();
  756. ]]>
  757. </script>
  758. </select1>
  759. <caption id="caption90" class="search_name" style="left:15px; top:31px; width:86px; height:17px; ">물품구분:</caption>
  760. <caption id="caption91" class="search_name" style="left:15px; top:53px; width:86px; height:17px; ">대 분 류 :</caption>
  761. <output id="opt_seelct" ref="/root/send/goodlist/selectonly" visibility="hidden" style="left:975px; top:115px; width:100px; height:19px; "/>
  762. </group>
  763. <datagrid id="grd_goodhistory" nodeset="/root/main/list/goodhistory/goodhistorylist" visibility="visible" caption="적용일자*^사용유무^규격^모델^제조회사^제조국^주거래처^보조거래처^EDI 코드^입고단위^불출단위^제품단가^입고계정^비용계정^견적가^외화단가^화폐단위^제품단가^수불단가^의료수가^대분류^중분류^소분류^수정자^수정일시" colsep="^" colwidth="80, 0, 65, 60, 66, 66, 80, 80, 75, 71, 73, 40, 100, 70, 51, 55, 69, 41, 71, 70, 94, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:628px; width:1195px; height:106px; ">
  764. <col ref="fromdd" format="yyyy-mm-dd"/>
  765. <col ref="useyn"/>
  766. <col ref="goodspec"/>
  767. <col ref="goodmodel"/>
  768. <col ref="prodcmpynm"/>
  769. <col ref="prodplcenm"/>
  770. <col ref="maincustlastsuplplcenm"/>
  771. <col ref="suppcustnm"/>
  772. <col ref="edicd"/>
  773. <col ref="purcunitnm"/>
  774. <col ref="deliveunitnm"/>
  775. <col ref="goodunitcost" visibility="hidden"/>
  776. <col ref="winacntnm"/>
  777. <col ref="amtacntnm"/>
  778. <col ref="estmamt" visibility="hidden"/>
  779. <col ref="forgncurncyunitcost" visibility="hidden"/>
  780. <col ref="curncyunitnm"/>
  781. <col ref="goodunitcost" visibility="hidden"/>
  782. <col visibility="hidden"/>
  783. <col visibility="hidden"/>
  784. <col ref="lrgnm"/>
  785. <col ref="mdlnm"/>
  786. <col ref="smlnm"/>
  787. <col ref="lastupdtrnm"/>
  788. <col ref="lastupdtdt" format="yyyy-mm-dd"/>
  789. <!--
  790. <script type="javascript" ev:event="ondblclick">
  791. <![CDATA[
  792. if(grd_costlist.row > 0)
  793. {
  794. model.setValue("/root/send/gooddetlist/goodcd", model.getValue(grd_costlist.nodeset + "["+ grd_costlist.row + "]/goodcd" ));
  795. model.setValue("/root/send/gooddetlist/fromdd", model.getValue(grd_costlist.nodeset + "["+ grd_costlist.row + "]/fromdd" ));
  796. submit("TRRSC05302");
  797. fAfterRetrGoodList();
  798. model.setValue("/root/send/gooddetlist/fromdd","" );
  799. }
  800. ]]>
  801. </script>
  802. -->
  803. <script type="javascript" ev:event="onaftersort">
  804. <![CDATA[
  805. grd_goodhistory.gridToInstance();
  806. ]]>
  807. </script>
  808. </datagrid>
  809. <line id="line8" class="line_1" style="x1:0px; y1:623px; x2:1195px; y2:623px; "/>
  810. <caption id="caption8" class="tit_2" style="left:5px; top:609px; width:95px; height:13px; ">이력정보</caption>
  811. <switch id="swt_select" style="left:0px; top:186px; width:1195px; height:413px; ">
  812. <case id="cse_costlist">
  813. <button id="btn_ZoomOut" class="btn2_letter5" style="left:1019px; top:3px; width:75px; height:19px; ">
  814. <caption>ZoomOut</caption>
  815. <script type="javascript" ev:event="DOMActivate">
  816. <![CDATA[
  817. fWindowPosition("O");
  818. ]]>
  819. </script>
  820. </button>
  821. <button id="btn_ZoomIn" class="btn2_letter4" style="left:953px; top:3px; width:64px; height:19px; ">
  822. <caption>ZoomIn</caption>
  823. <script type="javascript" ev:event="DOMActivate">
  824. <![CDATA[
  825. fWindowPosition("I");
  826. ]]>
  827. </script>
  828. </button>
  829. <line id="line3" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
  830. <button id="btn_zoomin" class="btn2_letter7" style="left:1096px; top:3px; width:97px; height:19px; ">
  831. <caption>크게/작게 보기</caption>
  832. <script type="javascript" ev:event="DOMActivate">
  833. <![CDATA[
  834. fZoomInOut("zoom");
  835. ]]>
  836. </script>
  837. </button>
  838. <button id="btn_excel" class="btn2_letter3" navindex="12" style="left:900px; top:3px; width:53px; height:19px; ">
  839. <caption>Excel</caption>
  840. <script type="javascript" ev:event="DOMActivate">
  841. <![CDATA[
  842. var fileName = window.fileDialog("save", ",", false, "물품종합조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  843. if (fileName != "")
  844. {
  845. grd_costlist.saveExcel(fileName, "물품종합조회");
  846. }
  847. ]]>
  848. </script>
  849. </button>
  850. <datagrid id="grd_costlist" nodeset="/root/main/list/good/goodlist" caption="적용일자^물품코드^물품코드^품명^규격^EDI 코드^All_SIze 유무^모델^제조회사^포장단위^환산수량^수불단위^단가계약여부^단가^단가 계약기간^단가 계약기간^주거래처^보조거래처^구매구분^청구구분^청구방법^청구주기^수정자^수정일시" colsep="^" colwidth="81, 72, 27, 153, 112, 80, 86, 72, 78, 69, 64, 61, 92, 105, 75, 73, 106, 84, 57, 89, 70, 65, 62, 69, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 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" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:372px; ">
  851. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  852. <col ref="goodcd" style="text-align:center; "/>
  853. <col ref="allsizespecid" style="text-align:center; "/>
  854. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  855. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  856. <col ref="edicd" style="text-align:center; "/>
  857. <col ref="allsizeyn" style="text-align:center; "/>
  858. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  859. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  860. <col ref="purcunit" style="text-align:center; "/>
  861. <col ref="exchqty" format="#,###" style="text-align:right; "/>
  862. <col ref="deliveunit" style="text-align:center; "/>
  863. <col ref="costconyn" style="text-align:center; "/>
  864. <col ref="goodunitcost" visibility="visible" format="#,###" style="text-align:right; "/>
  865. <col ref="fromconterm" format="yyyy/mm/dd" style="text-align:center; "/>
  866. <col ref="toconterm" format="yyyy/mm/dd" style="text-align:center; "/>
  867. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  868. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  869. <col ref="purcflagnm" style="text-align:center; "/>
  870. <col ref="reqflagnm" style="text-align:center; "/>
  871. <col ref="reqmthdnm" style="text-align:center; "/>
  872. <col ref="reqpridnm" style="text-align:center; "/>
  873. <col ref="lastupdtrnm" style="text-align:center; "/>
  874. <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
  875. <col ref="pregoodnm" visibility="hidden"/>
  876. <col ref="prepurcunit" visibility="hidden"/>
  877. <col ref="preexchqty" visibility="hidden"/>
  878. <col ref="predeliveunit" visibility="hidden"/>
  879. <col ref="pregoodspec" visibility="hidden"/>
  880. <col ref="pregoodmodel" visibility="hidden"/>
  881. <col ref="pregoodunitcost" visibility="hidden"/>
  882. <col ref="premaincustlastsuplplce" visibility="hidden"/>
  883. <col ref="presuppcustcd" visibility="hidden"/>
  884. <col ref="preprodcmpycd" visibility="hidden"/>
  885. <col ref="todd" visibility="hidden"/>
  886. <col ref="prefromdd" visibility="hidden"/>
  887. <col ref="pregoodspec" visibility="hidden"/>
  888. <col ref="pregoodmodel" visibility="hidden"/>
  889. <col ref="instcd" visibility="hidden"/>
  890. <col ref="useyn" visibility="hidden"/>
  891. <col ref="goodflag" visibility="hidden"/>
  892. <col ref="goodhngnm" visibility="hidden"/>
  893. <col ref="goodengnm" visibility="hidden"/>
  894. <col ref="asetflag" visibility="hidden"/>
  895. <col ref="lrgcd" visibility="hidden"/>
  896. <col ref="lrgnm" visibility="hidden"/>
  897. <col ref="mdlcd" visibility="hidden"/>
  898. <col ref="mdlnm" visibility="hidden"/>
  899. <col ref="smlcd" visibility="hidden"/>
  900. <col ref="smlnm" visibility="hidden"/>
  901. <col ref="proddrugsetflag" visibility="hidden"/>
  902. <col ref="winacnt" visibility="hidden"/>
  903. <col ref="winacntnm" visibility="hidden"/>
  904. <col ref="amtacnt" visibility="hidden"/>
  905. <col ref="amtacntnm" visibility="hidden"/>
  906. <col ref="mainmngtdeptcd" visibility="hidden"/>
  907. <col ref="mainmngtdeptnm" visibility="hidden"/>
  908. <col ref="mainusedeptcd" visibility="hidden"/>
  909. <col ref="purclnkgoodcd" visibility="hidden"/>
  910. <col ref="stocmngtflag" visibility="hidden"/>
  911. <col ref="minexch" visibility="hidden"/>
  912. <col ref="reuseyn" visibility="hidden"/>
  913. <col ref="divusenvalqty" visibility="hidden"/>
  914. <col ref="calcscorinfoacptstat" visibility="hidden"/>
  915. <col ref="calcscorinfoacptdd" visibility="hidden"/>
  916. <col ref="insuyn" visibility="hidden"/>
  917. <col ref="newrgstdd" visibility="hidden"/>
  918. <col ref="reqdeptcd" visibility="hidden"/>
  919. <col ref="reqdeptnm" visibility="hidden"/>
  920. <col ref="reqpsn" visibility="hidden"/>
  921. <col ref="reqpsnnm" visibility="hidden"/>
  922. <col ref="reqflag" visibility="hidden"/>
  923. <col ref="reqflagnm" visibility="hidden"/>
  924. <col ref="reqmthd" visibility="hidden"/>
  925. <col ref="reqprid" visibility="hidden"/>
  926. <col ref="iopsnflag" visibility="hidden"/>
  927. <col ref="prodplce" visibility="hidden"/>
  928. <col ref="conflag" visibility="hidden"/>
  929. <col ref="fromconterm" visibility="hidden"/>
  930. <col ref="toconterm" visibility="hidden"/>
  931. <col ref="estmamt" visibility="hidden"/>
  932. <col ref="forgncurncyunitcost" visibility="hidden"/>
  933. <col ref="curncyunit" visibility="hidden"/>
  934. <col ref="purcflag" visibility="hidden"/>
  935. <col ref="allsizeyn" visibility="hidden"/>
  936. <col ref="setplceordflag" visibility="hidden"/>
  937. <col ref="plceordbase" visibility="hidden"/>
  938. <col ref="plceordqtycretflag" visibility="hidden"/>
  939. <col ref="plceordnonusedd" visibility="hidden"/>
  940. <col ref="addtaxrate" visibility="hidden"/>
  941. <col ref="lastpurcdd" visibility="hidden"/>
  942. <col ref="nonusetretresn" visibility="hidden"/>
  943. <col ref="mngtflag" visibility="hidden"/>
  944. <col ref="bnscd" visibility="hidden"/>
  945. <col ref="cntrdrugyn" visibility="hidden"/>
  946. <col ref="narcflag" visibility="hidden"/>
  947. <col ref="expnyn" visibility="hidden"/>
  948. <col ref="cntsunit" visibility="hidden"/>
  949. <col ref="cntsqty" visibility="hidden"/>
  950. <col ref="specvol" visibility="hidden"/>
  951. <col ref="drugkind" visibility="hidden"/>
  952. <col ref="cooppurcyn" visibility="hidden"/>
  953. <col ref="autrampharm" visibility="hidden"/>
  954. <col ref="keepmthd" visibility="hidden"/>
  955. <col ref="specldrug" visibility="hidden"/>
  956. <col ref="gnrlspcl" visibility="hidden"/>
  957. <col ref="welfprt" visibility="hidden"/>
  958. <col ref="goodtype" visibility="hidden"/>
  959. <col ref="com" visibility="hidden"/>
  960. <col ref="limdrugyn" visibility="hidden"/>
  961. <col ref="cmt" visibility="hidden"/>
  962. <col ref="safestocappdd" visibility="hidden"/>
  963. <col ref="safestocqty" visibility="hidden"/>
  964. <col ref="ddavguseqty" visibility="hidden"/>
  965. <col ref="mmavgusescheqty" visibility="hidden"/>
  966. <col ref="mmavguseqty" visibility="hidden"/>
  967. <col ref="prprtystocpossndayno" visibility="hidden"/>
  968. <script type="javascript" ev:event="onbuttonclick">
  969. <![CDATA[
  970. if(grd_costlist.colRef("prodcmpycd") == grd_costlist.col)
  971. {
  972. rszfOpenPopUpListByWndName(grd_costlist,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  973. model.refresh();
  974. }
  975. else if(grd_costlist.colRef("maincustlastsuplplce") == grd_costlist.col)
  976. {
  977. rszfOpenPopUpListByWndName(grd_costlist,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  978. model.refresh();
  979. }
  980. else if(grd_costlist.colRef("suppcustcd") == grd_costlist.col)
  981. {
  982. rszfOpenPopUpListByWndName(grd_costlist,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  983. model.refresh();
  984. }
  985. else if(grd_costlist.colRef("allsizeyn") == grd_costlist.col)
  986. {
  987. if (grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("allsizeyn")) == "Y" )
  988. rszfOpenPopUpListByWndName(grd_costlist,"","allsizespecid,goodspec","SPRSD00280","instcd,goodcd","cmb_instcd,"+ grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("goodcd")) );
  989. //rszfOpenPopUpListByWndName(grd_costlist,"","allsizespecid,goodspec","SPRSD00280","instcd,goodcd",grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("instcd")) + ','+ grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("goodcd")) );
  990. //rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","instcd,instnm,goodcd,goodnm,goodunit","SPRSC00211","instcd,instnm,goodcd,goodnm,goodunit", grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("instcd")) + "," + grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("instcd")) + "," + grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("goodcd")) + "," + grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("goodnm")) + "," + grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("purcunit")) );
  991. }
  992. ]]>
  993. </script>
  994. <script type="javascript" ev:event="onaftersort">
  995. <![CDATA[
  996. grd_costlist.gridToInstance();
  997. ]]>
  998. </script>
  999. <script type="javascript" ev:event="onscrolldown">
  1000. <![CDATA[
  1001. fSubmitOnScroll();
  1002. ]]>
  1003. </script>
  1004. <script type="javascript" ev:event="onrowchanged">
  1005. <![CDATA[
  1006. if ( grd_costlist.row != grd_costlist.fixedRows-1 && grd_costlist.rows - grd_costlist.fixedRows > 0 ) {
  1007. model.setValue( "/root/send/goodhistory/goodcd", grd_costlist.valueMatrix( grd_costlist.row, grd_costlist.colRef("goodcd")) );
  1008. submit("TRRSC00602");
  1009. model.refresh();
  1010. }
  1011. grd_costlist.dispatch("onmouseup");
  1012. ]]>
  1013. </script>
  1014. </datagrid>
  1015. </case>
  1016. </switch>
  1017. </group>
  1018. <group id="group2" style="left:0px; top:12; width:1195px; height:27px; ">
  1019. <!--
  1020. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  1021. <caption>출력</caption>
  1022. </button>
  1023. -->
  1024. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1025. <caption>초기화</caption>
  1026. <script type="javascript" ev:event="onclick">
  1027. <![CDATA[
  1028. model.resetInstanceNode("/root/send");
  1029. misfGridInit(grd_costlist);
  1030. misfGridInit(grd_goodhistory);
  1031. if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
  1032. else
  1033. {
  1034. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  1035. }
  1036. //물품구분일 경우 첫번째 index 자동 설정
  1037. if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
  1038. ]]>
  1039. </script>
  1040. </button>
  1041. <line id="line7" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  1042. <output id="opt_popinputcd" ref="/root/init/popinputcd" visibility="hidden" style="left:840px; top:3px; width:100px; height:19px; "/>
  1043. <output id="opt_poptitle" ref="/root/init/poptitle" visibility="hidden" style="left:737px; top:3px; width:100px; height:19px; "/>
  1044. <output id="opt_popformat" ref="/root/init/popformat" visibility="hidden" style="left:531px; top:3px; width:100px; height:19px; "/>
  1045. <output id="opt_popcond" ref="/root/init/popcond" visibility="hidden" style="left:634px; top:3px; width:100px; height:19px; "/>
  1046. </group>
  1047. </xhtml:body>
  1048. </xhtml:html>