SMLAW00200_물품분배.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLAW00200_물품분배.xrw
  4. * 설 명 : 물품분배
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2007.02.16
  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. <choi/>
  22. <goodcd/>
  23. <goodnm/>
  24. <goodengnm/>
  25. <stocqty/>
  26. <unitcost/>
  27. </goodcdlist>
  28. </goodcd>
  29. <dtbtappgood>
  30. <dtbtappgoodlist>
  31. <choi/>
  32. <goodcd/>
  33. <goodnm/>
  34. <lotno/>
  35. <spec/>
  36. <unit/>
  37. <winqty/>
  38. <winunitcost/>
  39. <validd/>
  40. <deptcd/>
  41. <deptnm/>
  42. </dtbtappgoodlist>
  43. </dtbtappgood>
  44. <dtbtgood>
  45. <dtbtgoodlist>
  46. <choi/>
  47. <goodcd/>
  48. <goodnm/>
  49. <lotno/>
  50. <spec/>
  51. <unit/>
  52. <winqty/>
  53. <winunitcost/>
  54. <validd/>
  55. <deptnm/>
  56. <deptcd/>
  57. <dtbtdd/>
  58. <dtbtdg/>
  59. <exist/>
  60. <posdeptcd/>
  61. </dtbtgoodlist>
  62. </dtbtgood>
  63. </main>
  64. <send>
  65. <seaval/>
  66. <seamthdcd/>
  67. <appdeptcd/>
  68. <dutfromdd/>
  69. <duttodd/>
  70. <posdeptcd/>
  71. </send>
  72. <init>
  73. <seaval/>
  74. <seamthdcd/>
  75. <useflagcd/>
  76. <dutdept>
  77. <appdeptcd/>
  78. </dutdept>
  79. <seamthdcd/>
  80. <popupmenu>
  81. <item>
  82. <name>행추가</name>
  83. <func>fExeInsertRow</func>
  84. </item>
  85. <item>
  86. <name>행삭제</name>
  87. <func>fExeDeleteRow</func>
  88. </item>
  89. </popupmenu>
  90. <dutfromdd/>
  91. <duttodd/>
  92. <sysdt>
  93. <sysdtinfo>
  94. <sysdd/>
  95. <systm/>
  96. </sysdtinfo>
  97. </sysdt>
  98. <subappdeptcd/>
  99. </init>
  100. <hidden>
  101. <barcd>
  102. <barcdprnt>1</barcdprnt>
  103. <barcdprntcnt>1</barcdprntcnt>
  104. <barcdprntdirec>0</barcdprntdirec>
  105. </barcd>
  106. </hidden>
  107. </root>
  108. </instance>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  112. <script type="javascript" ev:event="xforms-ready">
  113. <![CDATA[
  114. fExeInitialize();
  115. ]]>
  116. </script>
  117. <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dutdept/appdeptcd"/>
  118. <submission id="TRLAW00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dtbtappgood/dtbtappgoodlist"/>
  119. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/sysdt/sysdtinfo"/>
  120. <submission id="TXLAW00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  121. <submission id="TXLAW00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/message"/>
  122. <submission id="TRLAW00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dtbtgood/dtbtgoodlist"/>
  123. <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
  124. </model>
  125. <script type="javascript">
  126. <![CDATA[
  127. /* @group : 물품분배
  128. * @ver : 2007.02.16 (CMCDEV-0001)
  129. * @by : 유동철(ACK)
  130. * @-----------------------------------
  131. * @type : function
  132. * @access : public
  133. * @desc : 초기화 Function
  134. */
  135. function fExeInitialize() {
  136. model.removeNodeset("/root/main/goodcd/goodcdlist"); // 물품코드목록 초기화
  137. model.removeNodeset("/root/main/dtbtappgood/dtbtappgoodlist"); // 분배신청 물품목록 초기화
  138. //model.removeNodeset("/root/main/dtbtgood/dtbtgoodlist"); // 분배물품 목록 초기화
  139. model.setValue("/root/init/seaval", ""); // 검색값 초기화
  140. model.setValue("/root/init/seamthdcd", "0"); // 검색방법 초기화(0:바코드, 1:물품코드, 2:물품명)
  141. //model.setValue("/root/init/dutdept", "-"); // 검색부서 초기화
  142. //model.makeNode("/root/init/sysdt/sysdtinfo");
  143. //submit("TRLPZ00102");
  144. submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
  145. //model.setValue("/root/init/dutfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  146. //model.setValue("/root/init/duttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  147. model.setValue("/root/init/dutfromdd" , getCurrentDate());
  148. model.setValue("/root/init/duttodd" , getCurrentDate());
  149. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  150. //model.setValue("/root/hidden/barcd/barcdprnt", "1"); // 바코드 자동출력(0:자동, 1:수동)
  151. //model.setValue("/root/hidden/barcd/barcdprntdirec", "0"); // 바코드 출력방향(0:로컬, 1:원격)
  152. //model.setValue("/root/hidden/barcd/barcdprntcnt", "1"); // 바코드 출력매수
  153. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
  154. submit("TRLAA00103", false); // 부서코드 목록
  155. cmb_seadept.select(0);
  156. model.refresh();
  157. }
  158. /* @group : 물품분배
  159. * @ver : 2007.10.06 (CMCDEV-0001)
  160. * @by : 한음미
  161. * @-----------------------------------
  162. * @type : function
  163. * @access : public
  164. * @desc : 엑셀 출력 function
  165. */
  166. function fExcelOut(){
  167. var fileName = window.fileDialog("save", ",", false, "분배물품 목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  168. if (fileName != ""){
  169. grd_dtbtlist.saveExcel(fileName);
  170. }
  171. }
  172. /* @group : 물품분배
  173. * @ver : 2007.10.06 (CMCDEV-0001)
  174. * @by : 한음미
  175. * @-----------------------------------
  176. * @type : function
  177. * @access : public
  178. * @desc : 물품분배목록 삭제 function
  179. */
  180. function fDeleteDtbt(){
  181. if(grd_dtbtlist.rows > 1){
  182. for(var i = 1; i< grd_dtbtlist.rows; i++){
  183. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+i+"]/choi")=="true"){
  184. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+i+"]/exist")=="Y"){
  185. grd_dtbtlist.addStatus(i,"delete");
  186. }
  187. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+i+"]/dtbtdg")==""){
  188. messageBox("분배된 내역만 취소가 가능합니다.","I");
  189. return false;
  190. }
  191. }
  192. }
  193. }
  194. model.makeValue("/root/send/count", grd_dtbtlist.getUpdateData());
  195. setAlertOn();
  196. if(submit("TXLAW00202")){ // 조회되어 있는 데이터 삭제
  197. model.removeNodeset("/root/main/dtbtgood/dtbtgoodlist");
  198. model.refresh();
  199. }
  200. }
  201. /* @group : 물품분배
  202. * @ver : 2007.10.06 (CMCDEV-0001)
  203. * @by : 한음미
  204. * @-----------------------------------
  205. * @type : function
  206. * @access : public
  207. * @desc : 물품분배 저장 function
  208. */
  209. function fSaveGoodDtbt(){
  210. if(grd_dtbtlist.rows > 1){
  211. for(var inu = 1; inu <= grd_dtbtlist.rows; inu++){
  212. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+inu+"]/choi")=="true"){
  213. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+inu+"]/exist")!="Y"){
  214. grd_dtbtlist.addStatus(inu,"insert");
  215. }else{
  216. grd_dtbtlist.addStatus(inu,"update");
  217. }
  218. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+inu+"]/lotno") == ""){
  219. messageBox(inu+"행에 Lot번호가 입력되지 않았습니다.","I");
  220. return false;
  221. }
  222. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+inu+"]/winqty") == "0"){
  223. messageBox(inu+"행에 분배수량이 입력되지 않았습니다.","I");
  224. return false;
  225. }
  226. if(model.getValue("/root/main/dtbtgood/dtbtgoodlist["+inu+"]/validd") == ""){
  227. messageBox(inu+"행에 유효기간이 입력되지 않았습니다.","I");
  228. return false;
  229. }
  230. }
  231. }
  232. }
  233. //alert(grd_dtbtlist.getUpdateData());
  234. model.makeValue("/root/send/dtbtgoodlist", grd_dtbtlist.getUpdateData());
  235. if(submit("TXLAW00201")){ // 목록에 있는 데이터 저장
  236. for(var iNum = 1; iNum<=grd_dtbtapplist.rows; iNum++){
  237. if(model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+iNum+"]/choi")=="true"){
  238. model.setValue("/root/main/dtbtappgood/dtbtappgoodlist["+iNum+"]/choi", "false");
  239. }
  240. model.removeNodeset("/root/main/dtbtgood/dtbtgoodlist");
  241. }
  242. model.refresh();
  243. }
  244. }
  245. /* @group : 물품분배
  246. * @ver : 2007.10.06 (CMCDEV-0001)
  247. * @by : 한음미
  248. * @-----------------------------------
  249. * @type : function
  250. * @access : public
  251. * @desc : 분배 물품목록 조회 function
  252. */
  253. function fGetSelectDtbt(){
  254. model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval"));
  255. model.makeValue("/root/send/seamthdcd", model.getValue("/root/init/seamthdcd"));
  256. model.makeValue("/root/send/appdeptcd", model.getValue("/root/init/subappdeptcd"));
  257. model.makeValue("/root/send/dutfromdd", model.getValue("/root/init/dutfromdd"));
  258. model.makeValue("/root/send/duttodd", model.getValue("/root/init/duttodd"));
  259. submit("TRLAW00203"); // 목록 조회
  260. }
  261. /* @group : 물품분배
  262. * @ver : 2007.10.06 (CMCDEV-0001)
  263. * @by : 한음미
  264. * @-----------------------------------
  265. * @type : function
  266. * @access : public
  267. * @desc : 분배대상 물품목록에서 분배목록으로 데이터 가져오기 function
  268. */
  269. function fOnClickDtbtGoodList(){
  270. if(model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/choi")=="true") {
  271. grd_dtbtlist.addRow();
  272. var goodcd = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/goodcd");
  273. var goodnm = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/goodnm");
  274. var lotno = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/lotno");
  275. var spec = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/spec");
  276. var unit = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/unit");
  277. var winunitcost = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/winunitcost");
  278. var deptnm = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/deptnm");
  279. var deptcd = model.getValue("/root/main/dtbtappgood/dtbtappgoodlist["+ grd_dtbtapplist.row +"]/deptcd");
  280. var posdeptcd = model.getValue("/root/init/deptinfo/cd");
  281. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/choi" ,'true');
  282. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/goodcd" , goodcd);
  283. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/goodnm" , goodnm);
  284. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/lotno" , lotno);
  285. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/spec" , spec);
  286. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/unit" , unit);
  287. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/winunitcost", winunitcost);
  288. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/deptcd" , deptcd);
  289. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/winqty" ,'0');
  290. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/validd" ,'99991231');
  291. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/exist" ,'N');
  292. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/posdeptcd", posdeptcd);
  293. grd_dtbtlist.toprow = grd_dtbtlist.rows-1;
  294. }
  295. }
  296. /* @group : 물품분배
  297. * @ver : 2007.10.06 (CMCDEV-0001)
  298. * @by : 한음미
  299. * @-----------------------------------
  300. * @type : function
  301. * @access : public
  302. * @desc : 물품코드목록에서 분배목록으로 데이터 가져오기 function
  303. */
  304. function fExeChoiTrue(){
  305. grd_dtbtlist.addRow();
  306. if(model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/choi")=="true") {
  307. var goodcd = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/goodcd");
  308. var goodnm = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/goodnm");
  309. var lotno = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/lotno");
  310. var spec = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/goodspec");
  311. var unit = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/deliveunit");
  312. var winunitcost = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/goodunitcost");
  313. //var deptnm = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/deptnm");
  314. var deptcd = model.getValue("/root/main/goodcd/goodcdlist["+ grd_goodlist.row +"]/dutdeptcd");
  315. var posdeptcd = model.getValue("/root/init/deptinfo/cd");
  316. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/choi" ,'true');
  317. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/goodcd" , goodcd);
  318. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/goodnm" , goodnm);
  319. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/lotno" , lotno);
  320. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/spec" , spec);
  321. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/unit" , unit);
  322. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/winunitcost", winunitcost);
  323. //model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/deptnm" , deptnm);
  324. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/deptcd" , deptcd);
  325. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/winqty" ,'0');
  326. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/validd" ,'99991231');
  327. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/exist" ,'N'); // 존재여부
  328. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/posdeptcd", posdeptcd);
  329. grd_dtbtlist.toprow = grd_dtbtlist.rows-1;
  330. }
  331. }
  332. /* @group : 물품분배
  333. * @ver : 2007.10.06 (CMCDEV-0001)
  334. * @by : 한음미
  335. * @-----------------------------------
  336. * @type : function
  337. * @access : public
  338. * @desc : 물품코드목록 조회 function
  339. */
  340. function fGetSelectDeptCd(){
  341. //fGoodCodeList(); // import한 화면
  342. fGetGoodCodeSubList();
  343. model.removeNodeset("/root/main/dtbtappgood/dtbtappgoodlist");
  344. model.removeNodeset("/root/main/dtbtgood/dtbtgoodlist");
  345. model.refresh();
  346. }
  347. /* @group : 물품분배
  348. * @ver : 2007.10.06 (CMCDEV-0001)
  349. * @by : 한음미
  350. * @-----------------------------------
  351. * @type : function
  352. * @access : public
  353. * @desc : 분배대상 물품목록 조회 function
  354. */
  355. function fGetGoodCodeList(){
  356. model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval"));
  357. model.makeValue("/root/send/seamthdcd", model.getValue("/root/init/seamthdcd"));
  358. model.makeValue("/root/send/appdeptcd", model.getValue("/root/init/subappdeptcd"));
  359. model.makeValue("/root/send/dutfromdd", model.getValue("/root/init/dutfromdd"));
  360. model.makeValue("/root/send/duttodd", model.getValue("/root/init/duttodd"));
  361. submit("TRLAW00201");
  362. }
  363. /* @group : 물품분배
  364. * @ver : 2007.02.16 (CMCDEV-0001)
  365. * @by : 유동철(ACK)
  366. * @-----------------------------------
  367. * @type : function
  368. * @access : public
  369. * @desc : 그리드 Mouse Down 처리 Function
  370. */
  371. function fExeMouseDown() {
  372. //-----------------------------------------
  373. // 마우스 오른쪽 버튼클릭 검사(1:왼쪽, 3:우측)
  374. // grd_dtbtapplist.mouseRow : 클릭 로우
  375. // grd_dtbtapplist.fixedrows : 고정 로우 수
  376. if(event.button == 3){
  377. if(grd_dtbtapplist.isCell(event.target) && grd_dtbtapplist.mouseRow >= grd_dtbtapplist.fixedrows){
  378. window.setPopupMenu(true, "/root/init/popupmenu/item", "name", "func", false);
  379. }else{
  380. window.setPopupMenu(false);
  381. }
  382. }
  383. }
  384. /* @group : 물품분배
  385. * @ver : 2007.02.16 (CMCDEV-0001)
  386. * @by : 유동철(ACK)
  387. * @-----------------------------------
  388. * @type : function
  389. * @access : public
  390. * @desc : 그리드 행 추가 Function
  391. */
  392. function fExeInsertRow() {
  393. if(getNodesetCount("/root/main/dtbtgood/dtbtgoodlist") > 0) {
  394. grd_dtbtlist.insertRow(grd_dtbtlist.row, true);
  395. model.copyNode("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]", "/root/main/dtbtgood/dtbtgoodlist["+ (grd_dtbtlist.row-1) +"]");
  396. model.setValue("/root/main/dtbtgood/dtbtgoodlist["+ grd_dtbtlist.row +"]/choi","true");
  397. grd_dtbtlist.refresh();
  398. }
  399. }
  400. /* @group : 물품분배
  401. * @ver : 2007.02.16 (CMCDEV-0001)
  402. * @by : 유동철(ACK)
  403. * @-----------------------------------
  404. * @type : function
  405. * @access : public
  406. * @desc : 그리드 행 삭제 Function
  407. */
  408. function fExeDeleteRow() {
  409. if(getNodesetCount("/root/main/dtbtgood/dtbtgoodlist") > 0) {
  410. grd_dtbtlist.deleteRow(grd_dtbtlist.row, true);
  411. grd_dtbtlist.refresh();
  412. }
  413. }
  414. /* @group : 물품분배
  415. * @ver : 2007.02.16 (CMCDEV-0001)
  416. * @by : 유동철(ACK)
  417. * @-----------------------------------
  418. * @type : function
  419. * @access : public
  420. * @desc : 그리드 포커스 아웃 Function
  421. */
  422. function fExeFocusOut() {
  423. window.setPopupMenu(false);
  424. }
  425. ]]>
  426. </script>
  427. </xhtml:head>
  428. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  429. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  430. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">물품분배관리</caption>
  431. </group>
  432. <group id="grp_biz" scroll="auto" style="left:0px; top:35px; width:1195px; height:744; ">
  433. <group id="group2" style="left:0px; top:10px; width:1194; height:35; vertical-align:top; ">
  434. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194; height:35; "/>
  435. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">검색값 :</caption>
  436. <caption id="caption7" class="search_name" style="left:245; top:9px; width:86px; height:17px; ">검색방법 :</caption>
  437. <line id="line1" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29; "/>
  438. <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" navindex="1" style="left:95px; top:8px; width:100px; height:19px; "/>
  439. <caption id="caption26" class="search_name" style="left:504; top:9px; width:86px; height:17px; ">검색부서 :</caption>
  440. <select1 id="cmb_seadept" ref="/root/init/subappdeptcd" class="combo_search" navindex="3" appearance="minimal" style="left:596; top:8px; width:140px; height:19px; ">
  441. <choices>
  442. <itemset nodeset="/root/init/dutdept/appdeptcd">
  443. <label ref="nm"/>
  444. <value ref="cd"/>
  445. </itemset>
  446. </choices>
  447. <script type="javascript" ev:event="xforms-value-changed">
  448. <![CDATA[
  449. fGetSelectDeptCd();
  450. ]]>
  451. </script>
  452. </select1>
  453. <button id="btn_sea" class="btn1_letter2" navindex="5" style="left:1122; top:7; width:56px; height:22px; ">
  454. <caption>조회</caption>
  455. <script type="javascript" ev:event="DOMActivate">
  456. <![CDATA[
  457. fGetGoodCodeList();
  458. ]]>
  459. </script>
  460. </button>
  461. <select1 id="combo1" ref="/root/init/seamthdcd" class="combo_search" navindex="3" appearance="minimal" style="left:338; top:8px; width:105px; height:19px; ">
  462. <choices>
  463. <item>
  464. <label>바코드번호</label>
  465. <value>0</value>
  466. </item>
  467. <item>
  468. <label>물품코드</label>
  469. <value>1</value>
  470. </item>
  471. <item>
  472. <label>물품명</label>
  473. <value>2</value>
  474. </item>
  475. </choices>
  476. </select1>
  477. <caption id="caption4" class="search_name" style="left:781px; top:10px; width:105px; height:17px; ">분배일자 :</caption>
  478. <caption id="caption8" class="search_no_b" style="left:977; top:9px; width:12px; height:17px; ">~</caption>
  479. <input id="ipt_todd" ref="/root/init/duttodd" class="input_s_essential" inputtype="date" style="left:992; top:8; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  480. <input id="ipt_fromdd" ref="/root/init/dutfromdd" class="input_s_essential" inputtype="date" style="left:874; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  481. </group>
  482. <line id="line2" class="line_1" style="x1:305px; y1:70px; x2:1194px; y2:70px; "/>
  483. <caption id="caption5" class="tit_2" style="left:310px; top:55px; width:144px; height:14px; ">분배대상 물품목록</caption>
  484. <caption id="caption2" class="tit_2" style="left:310px; top:383px; width:144px; height:14px; ">분배물품 목록</caption>
  485. <line id="line3" class="line_1" style="x1:305px; y1:398; x2:1194px; y2:398; "/>
  486. <button id="button3" class="btn4_letter2" navindex="6" style="left:1138; top:376px; width:56px; height:22px; ">
  487. <caption>조회</caption>
  488. <script type="javascript" ev:event="onclick">
  489. <![CDATA[
  490. fGetSelectDtbt();
  491. ]]>
  492. </script>
  493. </button>
  494. <datagrid id="grd_dtbtapplist" nodeset="/root/main/dtbtappgood/dtbtappgoodlist" class="datagrid2" autoresize="true" caption="선택^분배부서^물품코드^물품명^Lot번호^규격^단위^청구수량^단가^유효일자" colsep="^" colwidth="24, 100, 100, 153, 100, 90, 70, 70, 70, 90" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:305; top:75px; width:889; height:299; ">
  495. <col ref="choi" type="checkbox"/>
  496. <col disabled="true" ref="deptcd" type="combo">
  497. <choices>
  498. <itemset nodeset="/root/init/dutdept/appdeptcd">
  499. <label ref="nm"/>
  500. <value ref="cd"/>
  501. </itemset>
  502. </choices>
  503. </col>
  504. <col ref="goodcd"/>
  505. <col ref="goodnm"/>
  506. <col ref="lotno"/>
  507. <col ref="spec"/>
  508. <col ref="unit"/>
  509. <col ref="winqty" format="#,###" mask="exclude" showmask="true" style="text-align:right; "/>
  510. <col ref="winunitcost" format="#,###" mask="exclude" showmask="true" style="text-align:right; "/>
  511. <col ref="validd" format="yyyy-mm-dd" mask="exclude" showmask="true" style="text-align:center; "/>
  512. <script type="javascript" ev:event="onmousedown">
  513. <![CDATA[
  514. fExeMouseDown();
  515. ]]>
  516. </script>
  517. <script type="javascript" ev:event="DOMFocusOut">
  518. <![CDATA[
  519. fExeFocusOut();
  520. ]]>
  521. </script>
  522. <script type="javascript" ev:event="xforms-select">
  523. <![CDATA[
  524. fOnClickDtbtGoodList();
  525. ]]>
  526. </script>
  527. </datagrid>
  528. <datagrid id="grd_dtbtlist" nodeset="/root/main/dtbtgood/dtbtgoodlist" class="datagrid2" autoresize="true" caption="선택^차수^분배부서^물품코드^물품명^Lot번호^규격^단위^분배수량^분배단가^존재^분배날짜^유효일자^posdeptcd" colsep="^" colwidth="24, 0, 100, 100, 153, 100, 80, 70, 70, 70, 0, 0, 100, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:305px; top:403px; width:889px; height:337px; ">
  529. <col ref="choi" type="checkbox"/>
  530. <col ref="dtbtdg"/>
  531. <col disabled="true" ref="deptcd" type="combo">
  532. <choices>
  533. <itemset nodeset="/root/init/dutdept/appdeptcd">
  534. <label ref="nm"/>
  535. <value ref="cd"/>
  536. </itemset>
  537. </choices>
  538. </col>
  539. <col ref="goodcd"/>
  540. <col ref="goodnm"/>
  541. <col ref="lotno" maxlength="30"/>
  542. <col ref="spec"/>
  543. <col ref="unit"/>
  544. <col ref="winqty" type="input" format="#,###" mask="exclude" maxlength="6" showmask="true" style="text-align:right; "/>
  545. <col ref="winunitcost" format="#,###" mask="exclude" showmask="true" style="text-align:right; "/>
  546. <col ref="exist"/>
  547. <col ref="dtbtdd"/>
  548. <col ref="validd" type="inputdate" format="yyyy-mm-dd" mask="exclude" maxlength="8" showmask="true" style="text-align:center; "/>
  549. <col ref="posdeptcd"/>
  550. </datagrid>
  551. <import id="import1" src="../../../lis/gooddelivemngtweb/xrw/SSLAW00100_물품목록.xrw" ref="/root/main/goodcd/goodcdlist" style="left:0px; top:55px; width:300px; height:688px; "/>
  552. <button id="button4" class="btn2_letter3" navindex="6" visibility="hidden" style="left:960px; top:378px; width:53px; height:19px; ">
  553. <caption>행추가</caption>
  554. <script type="javascript" ev:event="onclick">
  555. <![CDATA[
  556. fExeInsertRow();
  557. ]]>
  558. </script>
  559. </button>
  560. <button id="btn_del" class="btn2_letter3" navindex="6" style="left:1016px; top:378px; width:53px; height:19px; ">
  561. <caption>행삭제</caption>
  562. <script type="javascript" ev:event="onclick">
  563. <![CDATA[
  564. fExeDeleteRow();
  565. ]]>
  566. </script>
  567. </button>
  568. <button id="btn_excsave" class="btn2_letter4" navindex="6" style="left:1072px; top:378px; width:64px; height:19px; ">
  569. <caption>엑셀저장</caption>
  570. <script type="javascript" ev:event="DOMActivate">
  571. <![CDATA[
  572. fExcelOut();
  573. ]]>
  574. </script>
  575. </button>
  576. </group>
  577. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1194px; height:27px; ">
  578. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  579. <button id="btn_save" class="btn4_letter2" navindex="6" style="left:1079; top:3px; width:56px; height:22px; ">
  580. <caption>저장</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. fSaveGoodDtbt();
  584. ]]>
  585. </script>
  586. </button>
  587. <button id="btn_can" class="btn4_letter2" navindex="7" style="left:1138; top:3px; width:56px; height:22px; ">
  588. <caption>취소</caption>
  589. <script type="javascript" ev:event="DOMActivate">
  590. <![CDATA[
  591. fDeleteDtbt();
  592. ]]>
  593. </script>
  594. </button>
  595. </group>
  596. </xhtml:body>
  597. </xhtml:html>