SMLAF00100_물품코드관리.xrw 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLAF00100_물품코드관리.xrw
  4. * 설 명 : 물품코드관리 상세설명 화면
  5. * 설 계 자 : 한음미
  6. * 작 성 자 : 한음미
  7. * 작 성 일 : 2007.07.24
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>물품코드관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <goodcd>
  20. <goodcdlist>
  21. <goodcd/>
  22. <goodnm/>
  23. <goodengnm/>
  24. <deptgoodnm/>
  25. <fromdd/>
  26. <todd/>
  27. <goodflagyn/>
  28. <unit/>
  29. <spec/>
  30. <unitcost/>
  31. <prod/>
  32. <supp/>
  33. <goodflagcd/>
  34. <useunitcd/>
  35. <useqty/>
  36. <tunitcd/>
  37. <tqty/>
  38. <fstrgstdt/>
  39. <fstrgstrid/>
  40. <lastupdtdt/>
  41. <lastupdtrid/>
  42. <cntctel/>
  43. <setunit/>
  44. <model/>
  45. </goodcdlist>
  46. </goodcd>
  47. <goodinfo>
  48. <gooddetlinfo>
  49. <goodcd/>
  50. <goodnm/>
  51. <goodengnm/>
  52. <deptgoodnm/>
  53. <fromdd/>
  54. <todd/>
  55. <unit/>
  56. <spec/>
  57. <unitcost/>
  58. <prod/>
  59. <supp/>
  60. <goodflagcd/>
  61. <useqty/>
  62. <tqty/>
  63. <fstrgstdt/>
  64. <fstrgstrid/>
  65. <lastupdtdt/>
  66. <lastupdtrid/>
  67. <useunitcd/>
  68. <tunitcd/>
  69. <goodflagyn>0</goodflagyn>
  70. <cntctel/>
  71. <prntcnt/>
  72. <setunit/>
  73. <model/>
  74. <keeptmpr/>
  75. </gooddetlinfo>
  76. </goodinfo>
  77. <barcd>
  78. <barcdlist>
  79. <barcd/>
  80. <goodcd/>
  81. <goodnm/>
  82. <unit/>
  83. <validd/>
  84. <lotno/>
  85. </barcdlist>
  86. </barcd>
  87. <barcdprntsetup>
  88. </barcdprntsetup>
  89. </main>
  90. <send>
  91. <use/>
  92. <scrnid/>
  93. </send>
  94. <init>
  95. <seamthdcd>0</seamthdcd>
  96. <useflagcd>0</useflagcd>
  97. <seaval/>
  98. <list>
  99. <dutdept>
  100. <dutdeptlist>
  101. <choi/>
  102. <dutdeptcd/>
  103. <dutdeptnm/>
  104. <todd/>
  105. <existyn/>
  106. <today/>
  107. </dutdeptlist>
  108. </dutdept>
  109. <eqmt>
  110. <eqmtlist>
  111. <choi/>
  112. <eqmtcd/>
  113. <eqmtnm/>
  114. <todd/>
  115. <existyn/>
  116. <today/>
  117. </eqmtlist>
  118. </eqmt>
  119. </list>
  120. <gooddetlinfo>0</gooddetlinfo>
  121. <depteqtlist>
  122. <eqt>
  123. <eqmtcd/>
  124. </eqt>
  125. <dept>
  126. <dutdeptcd/>
  127. </dept>
  128. </depteqtlist>
  129. <sysdt>
  130. <sysdtinfo>
  131. <sysdd/>
  132. <systm/>
  133. </sysdtinfo>
  134. </sysdt>
  135. <cdid/>
  136. <codeinfo>
  137. <R0025>
  138. <cdid/>
  139. <cdnm/>
  140. </R0025>
  141. </codeinfo>
  142. </init>
  143. <hidden>
  144. <barcd>
  145. <barcdprnt/>
  146. <barcdprntcnt/>
  147. <barcdprntdirec/>
  148. </barcd>
  149. </hidden>
  150. </root>
  151. </instance>
  152. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  153. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  154. <submission id="TRLAF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodcd/goodcdlist"/>
  155. <submission id="TRLAF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  156. <submission id="TRLAF00104" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/main/goodinfo/gooddetlinfo"/>
  157. <submission id="TRLAF00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/depteqtlist"/>
  158. <submission id="TXLAF00101" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" replace="instance" resultref="root/message"/>
  159. <submission id="TXLAF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/barcdlist" replace="instance" resultref="/root/main/barcd/barcdlist"/>
  160. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  161. <script type="javascript" ev:event="xforms-ready">
  162. <![CDATA[
  163. fExeInitialize();
  164. ]]>
  165. </script>
  166. </model>
  167. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  171. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  172. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  173. <script type="javascript" src="../../../lis/commonweb/js/LAZ001.js"/>
  174. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  175. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  176. <script type="javascript">
  177. <![CDATA[
  178. /* @group : 물품코드관리
  179. * @ver : 2007.07.24 (CMCDEV-0001)
  180. * @by : 한음미
  181. * @-----------------------------------
  182. * @type : function
  183. * @access : public
  184. * @desc : 화면 초기화
  185. */
  186. function fExeInitialize() {
  187. model.removeNodeset("/root/send");
  188. //----------------------------
  189. //lzzfMakeBrcdPrntObj("CommAX");
  190. model.makeValue("/root/send/scrnid", getScreenID());
  191. submit("TRLLC90101");
  192. lzzfMakeBrcdPrntObjHanDo("CommAX");
  193. model.makeValue("/root/send/useyn", "1");
  194. submit("TRLAF00103"); // 장비와 부서목록 조회
  195. //--------------------------------------------------------------------
  196. model.makeValue("/root/init/seamthdcd", "0"); // 검색방법 기본값
  197. model.makeValue("/root/init/useflagcd", "0"); // 사용구분 기본값
  198. model.makeValue("/root/init/seaval", ""); // 검색값 기본값
  199. model.makeValue("/root/init/gooddetlinfo","0"); // 물품상세정보 기본값
  200. //------------------------------------------------------------------------------
  201. model.makeNode("/root/init/depteqtlist"); // 부서목록, 장비목록 선택값
  202. model.makeNode("/root/init/sysdt/sysdtinfo"); // 시스템 시간값
  203. //----------------------------------------------
  204. submit("TRLPZ00102"); // 현재의 time 가져오기
  205. //-----------------------
  206. // 물품구분 코드목록 조회
  207. model.makeNode("/root/init/codeinfo");
  208. model.makeValue("/root/init/codeinfo/R0025/cdid", "");
  209. model.makeValue("/root/init/codeinfo/R0025/cdnm", "");
  210. zbcfGetCodeList( new Array("R0025"), new Array("/root/init/codeinfo") , null, null, null);
  211. cmb_cdid.refresh();
  212. model.makeValue("/root/init/cdid", "");
  213. model.refresh();
  214. }
  215. function fBarCdOut(){
  216. if(grd_goodlist.row == -1){
  217. messageBox("물품이 선택되지 않았습니다. 바코드 출력을 ", "E001");
  218. return;
  219. }
  220. var listRow = grd_goodlist.row;
  221. var listRows = grd_goodlist.rows;
  222. //var rowStatus = "";
  223. //var iCnt = 0;
  224. if(listRow > 0 && listRow < listRows){
  225. var Execd = messageBox("바코드 재출력을", "Q004");
  226. if (Execd == 6) {
  227. model.makeNode("/root/hidden/barcd");
  228. model.makeValue("/root/hidden/barcd/barcd", model.getValue("/root/main/goodinfo/gooddetlinfo/goodcd"));
  229. model.makeValue("/root/hidden/barcd/goodcd", model.getValue("/root/main/goodinfo/gooddetlinfo/goodcd"));
  230. model.makeValue("/root/hidden/barcd/goodnm", model.getValue("/root/main/goodinfo/gooddetlinfo/goodnm"));
  231. model.makeValue("/root/hidden/barcd/unit", model.getValue("/root/main/goodinfo/gooddetlinfo/unit"));
  232. model.makeValue("/root/hidden/barcd/keeptmpr", model.getValue("/root/main/goodinfo/gooddetlinfo/keeptmpr"));
  233. model.makeValue("/root/hidden/barcd/barcdprnt", "0"); // 바코드 자동출력(0:자동, 1:수동)
  234. model.makeValue("/root/hidden/barcd/barcdprntdirec", "0"); // 바코드 출력방향(0:로컬, 1:원격)
  235. model.makeValue("/root/hidden/barcd/barcdprntcnt", "1"); // 바코드 출력매수
  236. //copyNodeType("/root/hidden/barcd", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  237. fExeGoodBarCdPrnt("/root/hidden/barcd") ;
  238. }
  239. }
  240. }
  241. /* @group : 물품코드관리
  242. * @ver : 2007.07.24 (CMCDEV-0001)
  243. * @by : 한음미
  244. * @-----------------------------------
  245. * @type : function
  246. * @access : public
  247. * @desc : 엑셀저장 Function
  248. */
  249. function fExcelOut(){
  250. // grd_goodlist.saveExcel("C:\\SMLAF00100_물품코드관리.xls", "물품코드목록", false,true);
  251. var fileName = window.fileDialog("save", ",", false, "물품코드목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  252. if (fileName != ""){
  253. grd_goodlist.saveExcel(fileName);
  254. }
  255. }
  256. model.removeNodeset("/root/main/goodcd/goodcdlist"); // 물품 목록의 첫 라인 삭제
  257. /* @group : 물품코드관리
  258. * @ver : 2007.07.24 (CMCDEV-0001)
  259. * @by : 한음미
  260. * @-----------------------------------
  261. * @type : function
  262. * @access : public
  263. * @desc : 물품코드목록 검색 Function
  264. */
  265. function fGetGoodCdList() { // 물품목록 검색
  266. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  267. model.makeValue("/root/send/seamthdcd", model.getValue("/root/init/seamthdcd")); // 검색방법
  268. model.makeValue("/root/send/useflagcd", model.getValue("/root/init/useflagcd")); // 사용구분
  269. model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval")); // 검색값
  270. model.makeValue("/root/send/goodflag", model.getValue("/root/init/cdid")); // 물품구분
  271. model.makeValue("/root/send/xrwnm", "SMLAF00100"); // 화면ID
  272. submit("TRLAF00102"); // 물품코드 목록 조회 하기
  273. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  274. model.makeValue("/root/send/appdeptcd", model.getValue("/root/init/choideptcd"));
  275. model.makeValue("/root/send/goodflag", model.getValue("/root/init/cdid"));
  276. model.makeValue("/root/send/useflagcd", "0");
  277. }
  278. /* @group : 물품코드관리
  279. * @ver : 2007.07.24 (CMCDEV-0001)
  280. * @by : 한음미
  281. * @-----------------------------------
  282. * @type : function
  283. * @access : public
  284. * @desc : 부서와 장비목록의 선택적 체크박스를 위한 Function
  285. */
  286. function fExeSavelist() { // 체크박스와 DB와의 선택 구별하여 저장과 삭제, 업데이트
  287. var sGoodNode = "/root/main/goodcd/goodcdlist";
  288. var sDeptNode = "/root/init/list/dutdept/dutdeptlist";
  289. var sEqmtNode = "/root/init/list/eqmt/eqmtlist";
  290. //--------------------------------
  291. model.removeNodeset("/root/send");
  292. model.makeValue("/root/send/count2", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/goodcd")); // 물품코드 목록에서의 물품코드 선택적 값 send
  293. //---------------------------- 부서
  294. grd_dutdeptlist.clearStatus();
  295. grd_gooddetlinfo.clearStatus();
  296. grd_gooddetlinfo.addStatus(1, "insert");
  297. //---------------------------------------------------------
  298. for (var iNo=1; iNo <= getNodesetCount(sDeptNode); iNo++) { // 부서목록에서 선택한 값만큼 루프
  299. //-------------------------------------------------------------
  300. if (model.getValue(sDeptNode+"[" + iNo + "]/existyn") == "Y") { // 데이터가 DB에 남아 있을때.
  301. if (model.getValue(sDeptNode+"[" + iNo + "]/choi") == "true") { // 데이터가 DB에 남아있고 체크버튼에 체크가 되었을때
  302. if (model.getValue(sDeptNode+"[" + iNo + "]/today") == model.getValue("/root/init/sysdt/sysdtinfo/sysdd")) { // today와 시스템의 오늘날짜 비교.
  303. grd_dutdeptlist.addStatus(iNo, "insert"); // 위 세가지가 만족되었을때 delete와 insert를 실행.
  304. } else {
  305. grd_dutdeptlist.addStatus(iNo, "delete");
  306. }
  307. } else { // 데이터가 DB에 남아있고 체크버튼에 체크가 되어있지 않을때.
  308. if(model.getValue("/root/init/sysdt/sysdtinfo/sysdd")!= model.getValue("/root/init/list/dutdept/dutdeptlist["+iNo+"]/today")) {
  309. grd_dutdeptlist.addStatus(iNo, "update"); // 현 날짜와 today의 날짜가 다를때.
  310. } else {
  311. grd_dutdeptlist.addStatus(iNo,"delete"); // 현 날짜와 today의 날짜가 같을때.
  312. }
  313. }
  314. } else { // 데이터가 DB에 남아있지 않을때.
  315. if (model.getValue(sDeptNode+"[" + iNo + "]/choi") == "true") { // // 데이터가 DB에 남아있지 않고 체크버튼에 체크가 되었을때.
  316. grd_dutdeptlist.addStatus(iNo, "insert"); // 데이터를 새로 삽입.
  317. }
  318. }
  319. //---------------------------------------------------
  320. model.setValue(sDeptNode+"["+ iNo +"]/choi","false"); // 작업이 끝나고 저장버튼 누름과 동시에 빈 체크박스
  321. }
  322. //--------------------- 장비
  323. grd_eqmtlist.clearStatus();
  324. //---------------------------------------------------------
  325. for (var jNo=1; jNo <= getNodesetCount(sEqmtNode); jNo++) { // 장비목록에서 선택한 값만큼 루프
  326. //---------------------------------------------------------
  327. if (model.getValue(sEqmtNode+"[" + jNo + "]/existyn") =="Y") { // 데이터가 DB에 남아 있을때.
  328. if (model.getValue(sEqmtNode+"[" + jNo + "]/choi") == "true") { // 데이터가 DB에 남아있고 체크버튼에 체크가 되어을때
  329. if(model.getValue(sEqmtNode+"[" + jNo + "]/today") == model.getValue("/root/init/sysdt/sysdtinfo/sysdd")){ // today와 시스템의 오늘날짜 비교.
  330. grd_eqmtlist.addStatus(jNo,"insert"); // 위 세가지가 만족되었을때 delete와 insert를 실행.
  331. } else{
  332. grd_eqmtlist.addStatus(jNo,"delete");
  333. }
  334. } else{ // 데이터가 DB에 남아있고 체크버튼에 체크가 되어있지 않을때.
  335. if(model.getValue("/root/init/sysdt/sysdtinfo/sysdd")!= model.getValue("/root/init/list/eqmt/eqmtlist[" + jNo + "]/today")) {
  336. grd_eqmtlist.addStatus(jNo,"update"); // 현 날짜와 today의 날짜가 다를때.
  337. }else {
  338. grd_eqmtlist.addStatus(jNo,"delete"); // 현 날짜와 today의 날짜가 같을때.
  339. }
  340. }
  341. }else { // 데이터가 DB에 남아있지 않을때.
  342. if (model.getValue(sEqmtNode+"[" + jNo + "]/choi") == "true") {
  343. grd_eqmtlist.addStatus(jNo, "insert"); // 데이터를 새로 삽입.
  344. }
  345. }
  346. //----------------------------------------------------
  347. model.setValue(sEqmtNode+"["+ jNo +"]/choi", "false"); // 작업이 끝나고 저장버튼 누름과 동시에 빈 체크박스
  348. }
  349. //--------------------------------------------------------------------
  350. model.makeValue("/root/send/count", grd_dutdeptlist.getUpdateData()); // 부서목록에서 선택된 값 업데이트
  351. model.makeValue("/root/send/count1", grd_eqmtlist.getUpdateData()); // 장비목록에서 선택된 값 업데이트
  352. model.makeValue("/root/send/goodinfo", grd_gooddetlinfo.getUpdateData()); // 물품코드 상세정보
  353. /*
  354. model.makeValue("/root/send/deptgoodnm", model.getValue("/root/main/goodinfo/gooddetlinfo/deptgoodnm")); // 물품상세목록에서 물품구분 send
  355. model.makeValue("/root/send/goodflagcd", model.getValue("/root/main/goodinfo/gooddetlinfo/goodflagcd")); // 물품상세목록에서 물품구분 send
  356. model.makeValue("/root/send/useunitcd", model.getValue("/root/main/goodinfo/gooddetlinfo/useunitcd")); // 물품상세목록에서 환산단위 send
  357. model.makeValue("/root/send/useqty", model.getValue("/root/main/goodinfo/gooddetlinfo/useqty")); // 물품상세목록에서 환산수량 send
  358. model.makeValue("/root/send/tunitcd", model.getValue("/root/main/goodinfo/gooddetlinfo/tunitcd")); // 물품상세목록에서 T단위 send
  359. model.makeValue("/root/send/tqty", model.getValue("/root/main/goodinfo/gooddetlinfo/tqty")) // 물품상세목록에서 T수량 send
  360. model.makeValue("/root/send/prntcnt", model.getValue("/root/main/goodinfo/gooddetlinfo/prntcnt")) // 물품상세목록에서 바코드 출력매수
  361. model.makeValue("/root/send/todd", model.getValue("/root/main/goodinfo/gooddetlinfo/todd")) // 물품상세목록에서 종료일자
  362. */
  363. //------------------------------------------------------------------
  364. var mess= model.getValue("/root/main/goodinfo/gooddetlinfo/useqty");
  365. var wess= model.getValue("/root/main/goodinfo/gooddetlinfo/tqty");
  366. //--------------------------------------------------------------------
  367. if (model.getValue("/root/main/goodinfo/gooddetlinfo/goodcd") == "") {
  368. messageBox("데이터를","C001");
  369. return false;
  370. } else if(mess=="0"||mess==""||wess=="0"||wess=="") {
  371. messageBox("환산수량과 TEST 수량은 0 이상의 수를","C001");
  372. return false;
  373. }
  374. //-----------
  375. setAlertOn();
  376. if(submit("TXLAF00101")) { // 물품코드목록, 부서목록, 장비목록 연결
  377. //-------------------------------------------
  378. // 저장 후 물품코드 그리드에 변경된 값을 저장
  379. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/todd", model.getValue("/root/main/goodinfo/gooddetlinfo/todd")); // 종료일자
  380. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/prntcnt", model.getValue("/root/main/goodinfo/gooddetlinfo/prntcnt")); // 바코드 출력매수
  381. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/tunitcd", model.getValue("/root/main/goodinfo/gooddetlinfo/tunitcd")); // Test단위
  382. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/tqty", model.getValue("/root/main/goodinfo/gooddetlinfo/tqty")); // Test수량
  383. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/goodflagcd", model.getValue("/root/main/goodinfo/gooddetlinfo/goodflagcd")); // 물품구분
  384. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/useunitcd", model.getValue("/root/main/goodinfo/gooddetlinfo/useunitcd")); // 사용기준단위
  385. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/useqty", model.getValue("/root/main/goodinfo/gooddetlinfo/useqty")); // 사용기준수량
  386. model.makeValue(sGoodNode+"["+grd_goodlist.row+"]/keeptmpr", model.getValue("/root/main/goodinfo/gooddetlinfo/keeptmpr")); //보관온도
  387. //----------------------------------------------------------
  388. model.makeValue("/root/hidden/barcd/barcdprnt", "0"); // 바코드 자동출력(0:자동, 1:수동)
  389. model.makeValue("/root/hidden/barcd/barcdprntdirec", "0"); // 바코드 출력방향(0:로컬, 1:원격)
  390. model.makeValue("/root/hidden/barcd/barcdprntcnt", "1"); // 바코드 출력매수
  391. //model.setXPathValue("/root/main/goodinfo/gooddetlinfo/*", " "); // 물품상세정보테이블 저장버튼 누름과 동시에 빈 출력박스
  392. model.refresh();
  393. } else {
  394. return false;
  395. }
  396. }
  397. /* @group : 물품코드관리
  398. * @ver : 2007.07.24 (CMCDEV-0001)
  399. * @by : 한음미
  400. * @-----------------------------------
  401. * @type : function
  402. * @access : public
  403. * @desc : 물품과 부서목록,장비목록의 연결저장 Function
  404. */
  405. function fExeOnClick() { // 물품코드 클릭시 변화되는 부서목록과 장비목록의 상태
  406. var sGoodNode = "/root/main/goodcd/goodcdlist";
  407. var sDeptNode = "/root/init/list/dutdept/dutdeptlist";
  408. var sEqmtNode = "/root/init/list/eqmt/eqmtlist";
  409. //---------------------------------------------------------
  410. for (var iNo=1 ; iNo <= getNodesetCount(sDeptNode); iNo++) {
  411. model.setValue(sDeptNode+"["+iNo+"]/choi", "false");
  412. model.setValue(sDeptNode+"["+iNo+"]/existyn", "N");
  413. }
  414. //---------------------------------------------------------
  415. for(var iNo=1 ; iNo <= getNodesetCount(sEqmtNode); iNo++) {
  416. model.setValue(sEqmtNode+"["+iNo+"]/choi", "false");
  417. model.setValue(sEqmtNode+"["+iNo+"]/existyn", "N");
  418. }
  419. //model.setValue("/root/init/list/dutdept/dutdeptlist[*]/choi","true");
  420. //model.setValue("/root/init/list/dutdept/dutdeptlist[*]/existyn","N");
  421. //model.setValue("/root/init/list/eqmt/eqmtlist[*]/choi","false");
  422. //model.setValue("/root/init/list/eqmt/eqmtlist[*]/existyn","N");
  423. //--------------------------------
  424. model.removeNodeset("/root/send");
  425. model.makeValue("/root/send/goodcd", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/goodcd")); // 선택된 물품코드값 send
  426. model.makeValue("/root/send/useflagcd", model.getValue("/root/init/useflagcd")); // 선택된 물품의 사용여부 send
  427. model.copyNode("/root/main/goodinfo/gooddetlinfo", "/root/main/goodcd/goodcdlist["+grd_goodlist.row+"]"); // 물품 상세정보 카피
  428. submit("TRLAF00105"); // 관련 부서, 장비 목록 조회
  429. //----------------------------------------------------------------------------
  430. for(var row=1; row <= getNodesetCount("/root/init/depteqtlist/dept"); row++) {
  431. var iNo = grd_dutdeptlist.findRow(model.getValue("/root/init/depteqtlist/dept["+row+"]/dutdeptcd"),1,2,false,true); // 선택된 row 찾기
  432. if(iNo>0)
  433. {
  434. model.setValue("/root/init/list/dutdept/dutdeptlist["+iNo+"]/choi", "true"); // 선택된 값 체크하기
  435. model.setValue("/root/init/list/dutdept/dutdeptlist["+iNo+"]/existyn", "Y"); // 선택된 값 DB에 있으면 "Y" 체크하기
  436. model.setValue("/root/init/list/dutdept/dutdeptlist["+iNo+"]/today", model.getValue("/root/init/depteqtlist/dept["+ row +"]/today")); // DB의 fromdd값 입력
  437. model.setValue("/root/init/list/dutdept/dutdeptlist["+iNo+"]/todd", model.getValue("/root/init/depteqtlist/dept["+ row +"]/todd")); // DB의 todd 값 입력
  438. }
  439. }
  440. //-------------------------------------------------------------------------
  441. for (var rw=1; rw <= getNodesetCount("/root/init/depteqtlist/eqt"); rw++) {
  442. var jNo = grd_eqmtlist.findRow(model.getValue("/root/init/depteqtlist/eqt["+rw+"]/eqmtcd"),1,2,false,true);
  443. if(jNo>0)
  444. {
  445. model.setValue("/root/init/list/eqmt/eqmtlist["+jNo+"]/choi", "true"); // 선택된 값 체크하기
  446. model.setValue("/root/init/list/eqmt/eqmtlist["+jNo+"]/existyn", "Y"); // 선택된 값 DB에 있으면 "Y" 체크하기
  447. model.setValue("/root/init/list/eqmt/eqmtlist["+jNo+"]/today", model.getValue("/root/init/depteqtlist/eqt["+ rw +"]/today")); // DB의 fromdd값 입력
  448. model.setValue("/root/init/list/eqmt/eqmtlist["+jNo+"]/todd", model.getValue("/root/init/depteqtlist/eqt["+ rw +"]/todd")); // DB의 todd값 입력
  449. }
  450. }
  451. }
  452. /* @group : 물품코드관리
  453. * @ver : 2007.07.24 (CMCDEV-0001)
  454. * @by : 한음미
  455. * @-----------------------------------
  456. * @type : function
  457. * @access : public
  458. * @desc : 물품상세목록 조회와 수정 기본값 Function
  459. */
  460. function fExeValueChange(){ // 물품 상세정보가 조회일때 수정일때 구별
  461. if (rdo_gooddetlinfo.value =="0") { // 물품상세정보가 조회일때
  462. cmb_goodflag.disabled = true; // 물품구분 사용불가능
  463. ipt_unit.disabled = true; // 환산단위 사용불가능
  464. ipt_exchqty.disabled = true; // 환산수량 사용불가능
  465. ipt_tunit.disabled = true; // T단위 사용불가능
  466. ipt_tqty.disabled = true; // T수량 사용불가능
  467. ipt_deptgoodnm.disabled = true; // 과별 자체 물품명
  468. ipt_prntcnt.disabled = true; // 바코드 출력매수
  469. ipt_todd.disabled = true; // 적용종료일자
  470. rdo_goodflag.disabled = true; // 사용여부
  471. ipt_keeptmpr.disabled = true; //보관온도
  472. } else {
  473. cmb_goodflag.disabled = false; // 물품구분 사용가능
  474. ipt_unit.disabled = false; // 환산단위 사용가능
  475. ipt_exchqty.disabled = false; // 환산수량 사용가능
  476. ipt_tunit.disabled = false; // T단위 사용가능
  477. ipt_tqty.disabled = false; // T수량 사용가능
  478. ipt_deptgoodnm.disabled = false; // 과별 자체 물품명
  479. ipt_prntcnt.disabled = false; // 바코드 출력매수
  480. ipt_todd.disabled = false; // 적용종료일자
  481. rdo_goodflag.disabled = false; // 사용여부
  482. ipt_keeptmpr.disabled = false; //보관온도
  483. }
  484. }
  485. /* @group : 물품코드관리
  486. * @ver : 2007.07.24 (CMCDEV-0001)
  487. * @by : 한음미
  488. * @-----------------------------------
  489. * @type : function
  490. * @access : public
  491. * @desc : 물품상세목록 수정(라디오버튼) 클릭시 값변경 Function
  492. */
  493. function fExeAllValue() { // 기본적으로 물품상세목록에서 조회버튼이므로 사용 불가능하게 셋팅
  494. var iGoodRowNo = 0;
  495. //----------------------------------------------------------
  496. model.resetInstanceNode("/root/main/goodinfo/gooddetlinfo"); // 물품상세정보만 남기고 공백으로 셋팅
  497. if (rdo_gooddetlinfo.value == "1") { // 물품상세정보에 수정이 클릭되었다면
  498. rdo_gooddetlinfo.value = "0"; // 물품상세정보를 조회로 교체
  499. cmb_goodflag.disabled = true; // 물품구분 사용불가능
  500. ipt_unit.disabled = true; // 환산단위 사용불가능
  501. ipt_exchqty.disabled = true; // 환산수량 사용불가능
  502. ipt_tunit.disabled = true; // T단위 사용불가능
  503. ipt_tqty.disabled = true; // T수량 사용불가능
  504. ipt_deptgoodnm.disabled = true; // 과별 자체 물품명
  505. ipt_prntcnt.disabled = true; // 과별 자체 물품명
  506. ipt_todd.disabled = true; // 종료일자
  507. ipt_keeptmpr.disabled = true; //보관온도
  508. //submit("TRLAF00105");
  509. iGoodRowNo = grd_goodlist.row;
  510. //fGetGoodCdList();
  511. //---------------------------------------
  512. grd_goodlist.select(iGoodRowNo,1) = true;
  513. grd_goodlist.row = iGoodRowNo;
  514. }
  515. //------------
  516. fExeOnClick();
  517. model.refresh();
  518. }
  519. function fSetPrint() {
  520. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  521. if(count == 0) {
  522. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  523. }
  524. //----------------------------------------------------
  525. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  526. }
  527. /* @group : 물품코드관리
  528. * @ver : 2008.04.15 (CMCDEV-0001)
  529. * @by : 한음미
  530. * @-----------------------------------
  531. * @type : function
  532. * @access : public
  533. * @desc : 물품코드 클릭 시 처리 Function
  534. */
  535. function fExeGoodClick() {
  536. if (grd_goodlist.isCell(event.target) && grd_goodlist.row >= grd_goodlist.fixedRows ) {
  537. fExeOnClick();
  538. }
  539. }
  540. /* @group : 물품코드관리
  541. * @ver : 2008.10.23 (CMCDEV-0001)
  542. * @by : 한음미
  543. * @-----------------------------------
  544. * @type : function
  545. * @access : public
  546. * @desc : 검색값 Enter키 입력 처리 Function
  547. */
  548. function fExeRefValKeyPress() {
  549. if (event.KeyCode == 13) {
  550. model.makeValue("/root/init/seaval", ipt_seaval.currentText);
  551. ipt_seaval.refresh();
  552. //---------------
  553. fGetGoodCdList();
  554. }
  555. }
  556. ]]>
  557. </script>
  558. </xhtml:head>
  559. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  560. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  561. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">물품코드관리</caption>
  562. </group>
  563. <group id="grp_biz" scroll="auto" style="left:0px; top:35px; width:1195px; height:744px; ">
  564. <group id="group2" style="left:0px; top:10px; width:1194; height:35; vertical-align:top; ">
  565. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194; height:35; "/>
  566. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:75px; height:17px; ">검색값 :</caption>
  567. <caption id="caption7" class="search_name" style="left:335px; top:9px; width:86px; height:17px; ">검색방법 :</caption>
  568. <button id="button1" class="btn1_letter2" navindex="5" style="left:1123; top:7; width:56px; height:22px; ">
  569. <caption>조회</caption>
  570. <script type="javascript" ev:event="DOMActivate">
  571. <![CDATA[
  572. fGetGoodCdList();
  573. ]]>
  574. </script>
  575. </button>
  576. <line id="line1" class="line_4" style="x1:1108; y1:7px; x2:1108; y2:29; "/>
  577. <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" navindex="1" style="left:93px; top:8px; width:167px; height:19px; ">
  578. <script type="javascript" ev:event="onkeypress">
  579. <![CDATA[
  580. fExeRefValKeyPress();
  581. ]]>
  582. </script>
  583. </input>
  584. <caption id="caption2" class="search_name" style="left:902; top:9px; width:86px; height:17px; ">사용구분 :</caption>
  585. <select1 id="rdo_seamthdcd" ref="/root/init/seamthdcd" navindex="2" appearance="full" cols="2" overflow="visible" style="left:427px; top:9px; width:123px; height:20px; border-style:none; ">
  586. <choices>
  587. <item>
  588. <label>물품코드</label>
  589. <value>0</value>
  590. </item>
  591. <item>
  592. <label>물품명</label>
  593. <value>1</value>
  594. </item>
  595. </choices>
  596. </select1>
  597. <select1 id="rdo_useflagcd" ref="/root/init/useflagcd" navindex="4" appearance="full" cols="2" overflow="visible" style="left:991; top:9; width:102px; height:20px; border-style:none; ">
  598. <choices>
  599. <item>
  600. <label>사용</label>
  601. <value>0</value>
  602. </item>
  603. <item>
  604. <label>미사용</label>
  605. <value>1</value>
  606. </item>
  607. </choices>
  608. </select1>
  609. <caption id="caption31" class="search_name" style="left:620px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
  610. <select1 id="cmb_cdid" ref="/root/init/cdid" navindex="3" appearance="minimal" style="left:710px; top:8px; width:130px; height:19px; ">
  611. <choices>
  612. <itemset nodeset="/root/init/codeinfo/R0025">
  613. <label ref="cdnm"/>
  614. <value ref="cdid"/>
  615. </itemset>
  616. </choices>
  617. <script type="javascript" ev:event="xforms-value-changed">
  618. <![CDATA[
  619. fGetGoodCdList();
  620. ]]>
  621. </script>
  622. </select1>
  623. </group>
  624. <line id="line12" class="line_1" style="x1:0px; y1:71px; x2:355px; y2:71px; "/>
  625. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:95px; height:13px; ">물품코드목록</caption>
  626. <caption id="caption4" class="cell_1" style="left:882px; top:75px; width:90; height:23px; vertical-align:middle; ">물품코드</caption>
  627. <caption id="caption39" class="cell_1" style="left:882px; top:99px; width:90; height:23px; vertical-align:middle; ">물 품 명</caption>
  628. <line id="line2" class="line_1" style="x1:359px; y1:71px; x2:615px; y2:71px; "/>
  629. <caption id="caption5" class="tit_2" style="left:368px; top:55px; width:90px; height:13px; ">부서목록</caption>
  630. <datagrid id="grd_goodlist" nodeset="/root/main/goodcd/goodcdlist" scroll="auto" autoresize="true" caption="물품코드^물품명^물품명(영문)^과물품명^적용시작일자^적용종료일자^물품사용여부^단위^규격^단가^포장구성단위^제조사^납품처^물품구분^환산단위^환산수량^TEST단위^TEST수량^최초등록일자^최초등록자^최종수정일자^최종수정자^보관온도" colsep="^" colwidth="100, 182, 0, 0, 0, 0, 0, 0, 80, 0, 80, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="6" style="left:0px; top:76px; width:355px; height:666px; ">
  631. <col ref="goodcd"/>
  632. <col ref="goodnm"/>
  633. <col ref="goodengnm"/>
  634. <col ref="deptgoodnm"/>
  635. <col ref="fromdd"/>
  636. <col ref="todd"/>
  637. <col ref="goodflagyn"/>
  638. <col ref="unit"/>
  639. <col ref="spec"/>
  640. <col ref="unitcost"/>
  641. <col class="text_center" ref="setunit"/>
  642. <col ref="prod"/>
  643. <col ref="supp"/>
  644. <col ref="goodflagcd"/>
  645. <col ref="useunitcd"/>
  646. <col ref="useqty"/>
  647. <col ref="tunitcd"/>
  648. <col ref="tqty"/>
  649. <col ref="fstrgstdt"/>
  650. <col ref="fstrgstrid"/>
  651. <col ref="lastupdtdt"/>
  652. <col ref="lastupdtrid"/>
  653. <col ref="keeptmpr"/>
  654. <script type="javascript" ev:event="onclick">
  655. <![CDATA[
  656. fExeGoodClick();
  657. ]]>
  658. </script>
  659. <script type="javascript" ev:event="onaftersort">
  660. <![CDATA[
  661. grd_goodlist.gridToInstance();
  662. ]]>
  663. </script>
  664. </datagrid>
  665. <datagrid id="grd_dutdeptlist" nodeset="/root/init/list/dutdept/dutdeptlist" caption="선택^부서코드^부 서 명^종료일자^existyn^today" colsep="^" colwidth="34, 60, 120, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="7" style="left:359px; top:76px; width:256px; height:666px; ">
  666. <col ref="choi" type="checkbox"/>
  667. <col ref="dutdeptcd"/>
  668. <col ref="dutdeptnm"/>
  669. <col ref="todd"/>
  670. <col ref="existyn"/>
  671. <col ref="today"/>
  672. <col ref="useflagcd"/>
  673. <script type="javascript" ev:event="onaftersort">
  674. <![CDATA[
  675. grd_dutdeptlist.gridToInstance();
  676. ]]>
  677. </script>
  678. </datagrid>
  679. <datagrid id="grd_eqmtlist" nodeset="/root/init/list/eqmt/eqmtlist" caption="선택^장비코드^장 비 명^종료일자^existyn" colsep="^" colwidth="34, 60, 121, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="8" style="left:620px; top:76px; width:256px; height:666px; ">
  680. <col ref="choi" type="checkbox"/>
  681. <col ref="eqmtcd"/>
  682. <col ref="eqmtnm"/>
  683. <col ref="todd"/>
  684. <col ref="existyn"/>
  685. <col ref="today"/>
  686. <col ref="useflagcd"/>
  687. <script type="javascript" ev:event="onaftersort">
  688. <![CDATA[
  689. grd_eqmtlist.gridToInstance();
  690. ]]>
  691. </script>
  692. </datagrid>
  693. <caption id="caption8" class="tit_2" style="left:629px; top:55px; width:90px; height:13px; ">장비목록</caption>
  694. <line id="line3" class="line_1" style="x1:620px; y1:71px; x2:876px; y2:71px; "/>
  695. <caption id="caption9" class="tit_2" style="left:887px; top:55px; width:95px; height:13px; ">물품상세정보</caption>
  696. <output id="output1" ref="/root/main/goodinfo/gooddetlinfo/goodcd" class="output_fix" style="left:975; top:76px; width:219px; height:19px; "/>
  697. <output id="output2" ref="/root/main/goodinfo/gooddetlinfo/goodnm" class="output_fix" style="left:975px; top:100; width:219px; height:19px; "/>
  698. <line id="line8" class="line_2" style="x1:882px; y1:121px; x2:1194px; y2:121px; "/>
  699. <line id="line4" class="line_1" style="x1:882px; y1:71px; x2:1194px; y2:71px; "/>
  700. <line id="line5" class="line_2" style="x1:882px; y1:97px; x2:1194px; y2:97px; "/>
  701. <line id="line7" class="line_2" style="x1:882px; y1:145px; x2:1194px; y2:145px; "/>
  702. <caption id="caption11" class="cell_1" style="left:882px; top:172px; width:90px; height:23px; vertical-align:middle; ">적용시작일자</caption>
  703. <line id="line9" class="line_2" style="x1:882px; y1:170px; x2:1194px; y2:170px; "/>
  704. <caption id="caption12" class="cell_1" style="left:1048px; top:172px; width:60px; height:23px; vertical-align:middle; ">종료일자</caption>
  705. <line id="line10" class="line_2" style="x1:882px; y1:194px; x2:1194px; y2:194px; "/>
  706. <output id="output6" ref="/root/main/goodinfo/gooddetlinfo/unit" class="output_fix" style="left:975px; top:245px; width:60px; height:19px; "/>
  707. <caption id="caption13" class="cell_1" style="left:882px; top:244px; width:90px; height:23px; vertical-align:middle; ">단 위</caption>
  708. <caption id="caption14" class="cell_1" style="left:1038px; top:244px; width:90px; height:23px; vertical-align:middle; ">규 격</caption>
  709. <output id="output7" ref="/root/main/goodinfo/gooddetlinfo/spec" class="output_fix" style="left:1131px; top:245px; width:63px; height:19px; "/>
  710. <caption id="caption15" class="cell_1" style="left:882px; top:268px; width:90px; height:23px; vertical-align:middle; ">단 가</caption>
  711. <line id="line13" class="line_2" style="x1:882px; y1:266px; x2:1194px; y2:266px; "/>
  712. <output id="output9" ref="/root/main/goodinfo/gooddetlinfo/prod" class="output_fix" style="left:975px; top:293px; width:219px; height:19px; "/>
  713. <caption id="caption16" class="cell_1" style="left:882px; top:292px; width:90px; height:23px; vertical-align:middle; ">제 조 사</caption>
  714. <line id="line14" class="line_2" style="x1:882px; y1:290px; x2:1194px; y2:290px; "/>
  715. <output id="output10" ref="/root/main/goodinfo/gooddetlinfo/supp" class="output_fix" style="left:975px; top:317px; width:219px; height:19px; "/>
  716. <caption id="caption17" class="cell_1" style="left:882px; top:316px; width:90px; height:23px; vertical-align:middle; ">거 래 처</caption>
  717. <line id="line15" class="line_2" style="x1:882px; y1:314px; x2:1194px; y2:314px; "/>
  718. <caption id="caption18" class="cell_1" style="left:882px; top:412px; width:90px; height:23px; vertical-align:middle; ">사용기준단위</caption>
  719. <caption id="caption19" class="cell_1" style="left:1038px; top:413px; width:90px; height:23px; vertical-align:middle; ">사용기준수량</caption>
  720. <input id="ipt_unit" ref="/root/main/goodinfo/gooddetlinfo/useunitcd" class="input_default" disabled="true" navindex="14" maxlength="5" style="left:975px; top:413px; width:60px; height:19px; "/>
  721. <line id="line16" class="line_2" style="x1:882px; y1:218px; x2:1194px; y2:218px; "/>
  722. <input id="ipt_exchqty" ref="/root/main/goodinfo/gooddetlinfo/useqty" class="input_default" disabled="true" navindex="15" maxlength="4" style="left:1131px; top:413px; width:63px; height:19px; "/>
  723. <input id="ipt_tqty" ref="/root/main/goodinfo/gooddetlinfo/tqty" class="input_default" disabled="true" navindex="17" maxlength="4" style="left:1131px; top:437px; width:63px; height:19px; "/>
  724. <caption id="caption21" class="cell_1" style="left:1038px; top:437px; width:90px; height:23px; vertical-align:middle; ">TEST 수량</caption>
  725. <line id="line17" class="line_2" style="x1:882px; y1:242px; x2:1194px; y2:242px; "/>
  726. <output id="output11" ref="/root/main/goodinfo/gooddetlinfo/fstrgstdt" class="output_fix" format="yyyy-mm-dd" style="left:975px; top:486px; width:219px; height:19px; "/>
  727. <caption id="caption22" class="cell_1" style="left:882px; top:485px; width:90px; height:23px; vertical-align:middle; ">최초등록일자</caption>
  728. <line id="line18" class="line_2" style="x1:882px; y1:410px; x2:1194px; y2:410px; "/>
  729. <output id="output12" ref="/root/main/goodinfo/gooddetlinfo/fstrgstrid" class="output_fix" style="left:975px; top:510px; width:219px; height:19px; "/>
  730. <caption id="caption23" class="cell_1" style="left:882px; top:509px; width:90px; height:23px; vertical-align:middle; ">최초등록자</caption>
  731. <line id="line19" class="line_2" style="x1:882px; y1:434px; x2:1194px; y2:434px; "/>
  732. <output id="output13" ref="/root/main/goodinfo/gooddetlinfo/lastupdtdt" class="output_fix" format="yyyy-mm-dd" style="left:975px; top:534px; width:219px; height:19px; "/>
  733. <output id="output14" ref="/root/main/goodinfo/gooddetlinfo/lastupdtrid" class="output_fix" style="left:975px; top:558px; width:219px; height:19px; "/>
  734. <caption id="caption24" class="cell_1" style="left:882px; top:533px; width:90px; height:23px; vertical-align:middle; ">최종수정일자</caption>
  735. <caption id="caption25" class="cell_1" style="left:882px; top:557px; width:90px; height:23px; vertical-align:middle; ">최종수정자</caption>
  736. <line id="line20" class="line_2" style="x1:882px; y1:483px; x2:1194px; y2:483px; "/>
  737. <select1 id="rdo_gooddetlinfo" ref="/root/init/gooddetlinfo" navindex="18" appearance="full" cols="2" overflow="visible" style="left:992px; top:54px; width:93px; height:16px; border-style:none; ">
  738. <choices>
  739. <item>
  740. <label>조회</label>
  741. <value>0</value>
  742. </item>
  743. <item>
  744. <label>수정</label>
  745. <value>1</value>
  746. </item>
  747. </choices>
  748. <script type="javascript" ev:event="xforms-value-changed">
  749. <![CDATA[
  750. fExeValueChange();
  751. ]]>
  752. </script>
  753. </select1>
  754. <line id="line6" class="line_3" style="x1:882px; y1:579px; x2:1194px; y2:579px; "/>
  755. <caption id="caption20" class="cell_1" style="left:882px; top:388px; width:90px; height:23px; vertical-align:middle; ">물품구분</caption>
  756. <select1 id="cmb_goodflag" ref="/root/main/goodinfo/gooddetlinfo/goodflagcd" class="combo_search" disabled="true" navindex="13" appearance="minimal" style="left:975px; top:389px; width:219px; height:19px; ">
  757. <choices>
  758. <item>
  759. <label>시약</label>
  760. <value>0</value>
  761. </item>
  762. <item>
  763. <label>소모품</label>
  764. <value>1</value>
  765. </item>
  766. </choices>
  767. </select1>
  768. <line id="line21" class="line_2" style="x1:882px; y1:338px; x2:1194px; y2:338px; "/>
  769. <caption id="caption26" class="cell_1" style="left:882px; top:436px; width:90px; height:23px; vertical-align:middle; ">TEST 단위</caption>
  770. <input id="ipt_tunit" ref="/root/main/goodinfo/gooddetlinfo/tunitcd" class="input_default" disabled="true" navindex="16" maxlength="5" style="left:975px; top:437px; width:60px; height:19px; "/>
  771. <caption id="caption27" class="cell_1" visibility="hidden" style="left:882px; top:196px; width:90px; height:23px; vertical-align:middle; ">물품사용여부</caption>
  772. <select1 id="rdo_goodflag" ref="/root/main/goodinfo/gooddetlinfo/goodflagyn" disabled="true" navindex="11" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:975px; top:197px; width:210px; height:20px; border-style:none; ">
  773. <choices>
  774. <item>
  775. <label>사용</label>
  776. <value>0</value>
  777. </item>
  778. <item>
  779. <label>미사용</label>
  780. <value>1</value>
  781. </item>
  782. </choices>
  783. </select1>
  784. <line id="line11" class="line_2" style="x1:882px; y1:362px; x2:1194px; y2:362px; "/>
  785. <line id="line22" class="line_2" style="x1:881px; y1:386px; x2:1194px; y2:386px; "/>
  786. <caption id="caption28" class="cell_1" style="left:882px; top:147px; width:90px; height:23px; vertical-align:middle; ">과 물 품 명</caption>
  787. <line id="line24" class="line_2" style="x1:882px; y1:507px; x2:1194px; y2:507px; "/>
  788. <caption id="caption29" class="cell_1" style="left:882px; top:123px; width:90px; height:23px; vertical-align:middle; ">물 품 명(영문)</caption>
  789. <output id="output16" ref="/root/main/goodinfo/gooddetlinfo/goodengnm" class="output_fix" style="left:975px; top:124px; width:219px; height:19px; "/>
  790. <input id="ipt_deptgoodnm" ref="/root/main/goodinfo/gooddetlinfo/deptgoodnm" class="input_default" disabled="true" navindex="9" maxlength="255" style="left:975px; top:149px; width:219px; height:19px; "/>
  791. <line id="line23" class="line_2" style="x1:882px; y1:530px; x2:1194px; y2:530px; "/>
  792. <line id="line25" class="line_2" style="x1:882px; y1:555px; x2:1194px; y2:555px; "/>
  793. <output id="output3" ref="/root/main/goodinfo/gooddetlinfo/cntctel" class="output_fix" style="left:975px; top:341px; width:219px; height:19px; "/>
  794. <caption id="caption10" class="cell_1" style="left:882px; top:340px; width:90px; height:23px; vertical-align:middle; ">거래처 연락처</caption>
  795. <caption id="caption30" class="cell_1" style="left:882px; top:364px; width:91px; height:23px; vertical-align:middle; ">바코드출력매수</caption>
  796. <input id="ipt_prntcnt" ref="/root/main/goodinfo/gooddetlinfo/prntcnt" class="input_default" disabled="true" navindex="12" maxlength="1" style="left:975px; top:365px; width:70px; height:19px; "/>
  797. <output id="opt_unitcost" ref="/root/main/goodinfo/gooddetlinfo/unitcost" class="output_fix" format="#,###" style="left:975px; top:269px; width:219px; height:19px; "/>
  798. <input id="ipt_todd" ref="/root/main/goodinfo/gooddetlinfo/todd" disabled="true" navindex="10" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:1111px; top:173px; width:83px; height:19px; "/>
  799. <datagrid id="grd_gooddetlinfo" nodeset="/root/main/goodinfo/gooddetlinfo" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption18^caption17^caption16^caption15^caption14^caption13^caption12^caption11^caption10^caption9^caption8^caption7^caption6^caption5^caption19^caption20^caption21^caption22^caption23^caption24" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:580px; top:570px; width:600px; height:150px; ">
  800. <col ref="goodcd"/>
  801. <col ref="goodnm"/>
  802. <col ref="goodengnm"/>
  803. <col ref="deptgoodnm"/>
  804. <col ref="fromdd"/>
  805. <col ref="todd"/>
  806. <col ref="unit"/>
  807. <col ref="spec"/>
  808. <col ref="unitcost"/>
  809. <col ref="prod"/>
  810. <col ref="supp"/>
  811. <col ref="goodflagcd"/>
  812. <col ref="useqty"/>
  813. <col ref="tqty"/>
  814. <col ref="fstrgstdt"/>
  815. <col ref="fstrgstrid"/>
  816. <col ref="lastupdtdt"/>
  817. <col ref="lastupdtrid"/>
  818. <col ref="useunitcd"/>
  819. <col ref="tunitcd"/>
  820. <col ref="goodflagyn"/>
  821. <col ref="cntctel"/>
  822. <col ref="prntcnt"/>
  823. <col ref="keeptmpr"/>
  824. </datagrid>
  825. <output id="opt_fromdd" ref="/root/main/goodinfo/gooddetlinfo/fromdd" class="output_fix" format="yyyy-mm-dd" style="left:975px; top:173px; width:70; height:19px; "/>
  826. <caption id="caption32" class="cell_1" style="left:882px; top:220px; width:90px; height:23px; vertical-align:middle; ">포장구성단위</caption>
  827. <output id="output4" ref="/root/main/goodinfo/gooddetlinfo/setunit" class="output_fix" style="left:975px; top:221px; width:219px; height:19px; "/>
  828. <caption id="caption33" class="cell_1" style="left:1048px; top:364px; width:60px; height:23px; vertical-align:middle; ">모 델</caption>
  829. <output id="opt_model" ref="/root/main/goodinfo/gooddetlinfo/model" class="output_fix" style="left:1111px; top:365px; width:83px; height:19px; "/>
  830. <input id="ipt_keeptmpr" ref="/root/main/goodinfo/gooddetlinfo/keeptmpr" class="input_default" disabled="true" navindex="9" maxlength="255" style="left:975px; top:462px; width:219px; height:19px; "/>
  831. <caption id="caption34" class="cell_1" style="left:882px; top:460px; width:90px; height:23px; vertical-align:middle; ">보 관 온 도</caption>
  832. </group>
  833. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  834. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  835. <button id="btn_save" class="btn4_letter2" navindex="23" style="left:1138px; top:3px; width:56px; height:22px; ">
  836. <caption>저장</caption>
  837. <script type="javascript" ev:event="DOMActivate">
  838. <![CDATA[
  839. fExeSavelist();
  840. fExeAllValue();
  841. ]]>
  842. </script>
  843. </button>
  844. <button id="btn_prntexcel" class="btn3_letter5" navindex="19" style="left:0px; top:3px; width:80; height:22px; ">
  845. <caption>Excel출력</caption>
  846. <script type="javascript" ev:event="DOMActivate">
  847. <![CDATA[
  848. fExcelOut();
  849. ]]>
  850. </script>
  851. </button>
  852. <button id="button2" class="btn3_letter6" navindex="20" style="left:95; top:3; width:68px; height:22px; ">
  853. <caption>물품코드생성</caption>
  854. <script type="javascript" ev:event="DOMActivate">
  855. <![CDATA[
  856. modal("SPLAF00300_물품코드관리");
  857. ]]>
  858. </script>
  859. </button>
  860. <button id="button3" class="btn4_letter6" navindex="22" style="left:1031; top:3; width:110px; height:15px; ">
  861. <caption>바코드재출력</caption>
  862. <script type="javascript" ev:event="DOMActivate">
  863. <![CDATA[
  864. fBarCdOut();
  865. ]]>
  866. </script>
  867. </button>
  868. <button id="btn_prnt" class="btn3_letter5" navindex="21" style="left:200px; top:3px; width:92px; height:22px; ">
  869. <caption>프린터설정</caption>
  870. <script type="javascript" ev:event="DOMActivate">
  871. <![CDATA[
  872. //fSetPrntSetting();
  873. fSetPrint();
  874. ]]>
  875. </script>
  876. </button>
  877. </group>
  878. </xhtml:body>
  879. </xhtml:html>