SMRSC00600_물품종합조회.xrw 46 KB

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