123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLAW00100_물품입고.xfm
- * 설 명 : 물품입고
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 김성희
- * 작 성 일 : 2007.10.02
- * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>물품입고관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <wingood>
- <wingoodlist>
- <choi/>
- <dutdeptnm/>
- <goodcd/>
- <goodnm/>
- <lotno/>
- <spec/>
- <unit/>
- <appqty/>
- <winqty/>
- <unitcost/>
- <instcd/>
- <posdeptcd/>
- <dutdeptcd/>
- <windd/>
- <windg/>
- <bfwinqty/>
- <valiterm/>
- <prodcustnm/>
- <suppcustnm/>
- <allsizespecid/>
- <adjtflagcd/>
- <adjtflagnm/>
- <setunit/>
- <model/>
- <stocqty/>
- <reqdd/>
- <reqno/>
- <seaflagcd/>
- <keeptmpr/>
- </wingoodlist>
- </wingood>
- <barcd>
- <barcdlist>
- <barcd/>
- <goodcd/>
- <goodnm/>
- <unit/>
- <validd/>
- <lotno/>
- </barcdlist>
- </barcd>
- <filewin>
- <filewinlist>
- <dutdeptcd/>
- <goodcd/>
- <goodnm/>
- <lotno/>
- <spec/>
- <winqty/>
- <unitcost/>
- <valiterm/>
- </filewinlist>
- </filewin>
- </main>
- <send/>
- <init>
- <seaval/>
- <seamthdcd>
- </seamthdcd>
- <useflagcd/>
- <dutdept>
- <appdeptcd/>
- </dutdept>
- <dutdeptcd/>
- <seamthdcd/>
- <winfromdd/>
- <wintodd/>
- <popupmenu>
- <item>
- <name>행추가</name>
- <func>fExeInsertRow</func>
- </item>
- <item>
- <name>행삭제</name>
- <func>fExeDeleteRow</func>
- </item>
- </popupmenu>
- <winbase/>
- <appdeptcd/>
- <deptinfo>
- <cd/>
- </deptinfo>
- <seaflagcd/>
- <goodshop/>
- <custinfo>
- <custlist>
- <instcd/>
- <entrregno/>
- <custnm/>
- </custlist>
- </custinfo>
- <adjtflagcd/>
- <dginfo>
- <windg/>
- </dginfo>
- </init>
- <hidden>
- <barcd>
- <barcdprnt/>
- <barcdprntcnt/>
- <barcdprntdirec/>
- </barcd>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LAZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
- <submission id="TRLAW00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/custinfo/custlist"/>
- <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dutdept/appdeptcd"/>
- <submission id="TRLAW00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/wingood/wingoodlist"/>
- <submission id="TRLAW00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/wingood/wingoodlist"/>
- <submission id="TRLAW00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dginfo"/>
- <submission id="TXLAW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wingoodlist" replace="instance" resultref="/root/main/barcd/barcdlist"/>
- <submission id="TXLAW00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wincancel" replace="instance"/>
- <submission id="TXLAW00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/barcdlist" replace="instance" resultref="/root/main/barcd/barcdlist"/>
- <bind id="bind1" ref="/root/main/wingood/wingoodlist/choi" readonly="../choi/@readonly = 'true'"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 초기화
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화 Function
- */
- function fExeInitialize() {
-
- //현재날짜
- var toDay = getCurrentDate();
-
- model.makeValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
-
- //---------------------------------
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/goodcd/goodcdlist"); // 물품코드목록 초기화
- model.removeNodeset("/root/main/winappgood/winappgoodlist"); // 입고신청 물품목록 초기화
- model.removeNodeset("/root/main/wingood/wingoodlist"); // 입고물품 목록 초기화
-
- //--------------------------------------
- // 해더 부분의 전체선택 체크박스가 보임.
- grd_winlist.fixedcellcheckbox(0, 1) = true;
-
- //grd_winlist.colWidth(9) = 0; // 청구수량
- grd_winlist.colHidden(grd_winlist.colRef("appqty")) = true;
- grd_winlist.colHidden(grd_winlist.colRef("windd")) = true;
-
- //-------------------------------------------------------
- model.makeValue("/root/hidden/barcd/barcdprnt", "0"); // 바코드 자동출력(0:자동, 1:수동)
- model.makeValue("/root/hidden/barcd/barcdprntdirec", "0"); // 바코드 출력방향(0:로컬, 1:원격)
- model.makeValue("/root/hidden/barcd/barcdprntcnt", "1"); // 바코드 출력매수
-
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
-
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- submit("TRLAA00103"); // 부서코드 목록
- submit("TRLAW00802"); // 거래처 목록
-
- if(model.getValue("/root/init/deptinfo/cd") == "L"){
- grd_winlist.colAttribute(grd_winlist.colRef("keeptmpr"), "visibility") = "visible";
- grd_winlist.colHidden(grd_winlist.colRef("keeptmpr")) = false;
- }
- /*
- //---------------------
- // 검색부서에 전체 추가
- var iLastNo = Number(getNodesetCount("/root/init/dutdept/appdeptcd"))+1;
- model.makeValue("/root/init/dutdept/appdeptcd["+iLastNo+"]/cd", "-");
- model.makeValue("/root/init/dutdept/appdeptcd["+iLastNo+"]/nm", "전체");
- */
- //------------------------------------------
- //model.setValue("/root/init/appdeptcd", "-"); // 검색부서
- cmb_seadept.select(0);
- model.setValue("/root/init/goodshop", "00");
-
- //------------------------------------------
- model.makeValue("/root/init/seaval", ""); // 검색값 초기화
- model.makeValue("/root/init/seamthdcd", "0"); // 검색방법 초기화(0:바코드, 1:물품코드, 2:물품명)
- model.makeValue("/root/init/winfromdd", toDay); // 입고일자(시작)
- model.makeValue("/root/init/wintodd", toDay); // 입고일자(종료)
- model.makeValue("/root/init/winbase", "0"); // 입고기준(0:청구량, 1:분배량)
- model.makeValue("/root/init/seaflagcd", "2"); // 조회기준(0:청구, 1:입고, 2:재고)
- model.makeValue("/root/init/adjtflagcd", "0"); // 재고보정(0:입고, 1:보정)
-
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
-
- fExeSeaFlagChange(); //조회기준에 따른 그리드, 버튼 설정
- //--------------
- model.refresh();
- }
-
- /* @group : 입고신청 목록
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 입고신청 물품 목록 조회 Function
- */
- function fGetWInAppGoodList() {
-
- var iWinDG = 0;
- var sWinDG = "";
- var sNode = "/root/main/wingood/wingoodlist";
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/wingood/wingoodlist");
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd")); // 로그인 사용자의 부서코드
- model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/appdeptcd")); // 검색부서
- model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval")); // 검색값
- model.makeValue("/root/send/seamthdcd", cmb_seamthdcd.value); // 검색방법
- model.makeValue("/root/send/winbase", model.getValue("/root/init/winbase")); // 입고기준
- model.makeValue("/root/send/winfromdd", model.getValue("/root/init/winfromdd")); // 청구시작일자
- model.makeValue("/root/send/wintodd", model.getValue("/root/init/wintodd")); // 청구종료일자
- model.makeValue("/root/send/goodshop", model.getValue("/root/init/goodshop")); // 거래처
- model.makeValue("/root/send/goodflag", ""); // 물품구분
- model.makeValue("/root/send/seaflagcd", model.getValue("/root/init/seaflagcd")); // 조회기준, 현재 청구중 구매만 조회하고 있어 수탁도 조회할수 있게 해달라는 요청사항 20090930 승현 추가
-
- //-------------------------
- if (submit("TRLAW00102")) {
-
- //--------------------------------------------------
- if (model.getValue("/root/init/seaflagcd") == "0" || model.getValue("/root/init/seaflagcd") == "3") {
- grd_winlist.colDisabled(grd_winlist.colRef("choi")) = false;
- //청구한 수량보다 입고한 수량이 크거나 같다면 완료된 항목으로 보고 색깔 변경.. 변경요청 7172
- for(i = 1; i < grd_winlist.rows; i++){
- if(model.getValue("/root/main/wingood/wingoodlist[" + i + "]/choi/@readonly") == "true"){
- grd_winlist.rowStyle(i, "data", "background-color") = "#e5f3c2";
- }
- }
- grd_winlist.refresh();
- }
- }
- }
-
- /* @group : 입고물품 목록
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 입고된 물품 목록 조회 Function
- */
- function fGetWinGoodList() {
-
- //----------------------------------------------------------------------------------------------
- if(model.getValue("/root/init/winfromdd") == "" || model.getValue("/root/init/wintodd") == "") {
- messageBox("입고일자가 입력되지 않았습니다.","I007");
- return false;
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/wingood/wingoodlist");
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd")); // 과코드
- model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/appdeptcd")); // 부서코드
- model.makeValue("/root/send/subdutdeptcd", model.getValue("/root/init/subappdeptcd")); // 재고부서코드
- model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval")); // 검색값
- model.makeValue("/root/send/seamthdcd", model.getValue("/root/init/seamthdcd")); // 검색방법
- model.makeValue("/root/send/winfromdd", model.getValue("/root/init/winfromdd")); // 입고일자(From)
- model.makeValue("/root/send/wintodd", model.getValue("/root/init/wintodd")); // 입고일자(T0)
- model.makeValue("/root/send/goodshop", model.getValue("/root/init/goodshop")); // 거래처
- model.makeValue("/root/send/seaflagcd", model.getValue("/root/init/seaflagcd")); // 조회기준(0:청구, 1:입고, 2:재고)
- model.makeValue("/root/send/goodflag", ""); // 물품구분
-
- //-------------------
- submit("TRLAW00103");
-
- //-----------------
- for (var iNo=1; iNo <= getNodesetCount("/root/main/wingood/wingoodlist"); iNo++) {
-
- if (model.getValue("/root/main/wingood/wingoodlist["+iNo+"]/adjtflagcd") == "1") {
- grd_winlist.rowStyle(iNo, "data", "background-color") = "#99ffcc";
- }
- }
- }
-
-
-
- /* @group :
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 Mouse Down처리 Function
- */
- function fExeMouseDown() {
-
- //-----------------------------------------
- // 마우스 오른쪽 버튼클릭 검사(1:왼쪽, 3:우측)
- // grd_winlist.mouseRow : 클릭 로우
- // grd_winlist.fixedrows : 고정 로우 수
- if(event.button == 3){
- if(grd_winlist.isCell(event.target) && grd_winlist.mouseRow >= grd_winlist.fixedrows){
- window.setPopupMenu(true, "/root/init/popupmenu/item", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
-
- /* @group : 그리드 행 추가
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 행 추가 Function
- */
- function fExeInsertRow() {
-
- if(getNodesetCount("/root/main/wingood/wingoodlist") > 0) {
- grd_winlist.insertRow(grd_winlist.row, true);
- model.copyNode("/root/main/wingood/wingoodlist["+ grd_winlist.row+"]" , "/root/main/wingood/wingoodlist["+ (grd_winlist.row-1)+"]");
- model.setValue("/root/main/wingood/wingoodlist["+ grd_winlist.row+"]/winqty", "0");
- model.makeValue("/root/main/wingood/wingoodlist["+ grd_winlist.row+"]/windg", "0");
-
- grd_winlist.refresh();
- }
- }
-
-
- /* @group : 그리드 행 삭제
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 행 삭제 Function
- */
- function fExeDeleteRow() {
- grd_winlist.deleteRow(grd_winlist.row, true);
- }
-
- /* @group : 바코드 재출력
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 바코드 재출력 Function
- */
- function fExeBarCdPrntData() {
-
- var sNode = "/root/main/wingood/wingoodlist";
- var barcdCnt = Number(getNodesetCount(sNode));
- var rowStatus = "";
- var iCnt = 0;
- var iFindNo = 0;
-
- //--------------------------------------------------
- if (model.getValue("/root/init/seaflagcd") == "0" || model.getValue("/root/init/seaflagcd") == "3") {
- messageBox("입고된 내역이 아닙니다. 재출력 ", "E001");
- return false;
- }
-
- //-----------------
- if (barcdCnt > 0) {
-
- model.makeNode("/root/send/barcdlist");
- model.setValue("/root/send/barcdlist", grd_winlist.getUpdateData());
-
- //--------------------------------------------------------
- iFindNo = grd_winlist.findRow("true", 1, 1, false, false);
- if ( Number(iFindNo) <= 0) {
- messageBox("바코드 재출력 내역을 선택해주세요. 재출력 ","E001");
- return false;
- }
-
- //-----------------------------------------------
- if (messageBox("바코드 재출력을", "Q004") == 6) {
- // //정상적으로 처리되면
- // if(submit("TXLAW00103")){
- // //바코드 출력
- // if (model.getValue("/root/hidden/barcd/barcdprnt") == "0") {
- // lis/gooddeliveweb/js/LAZ001.js
- //fExeBarCdPrnt("/root/main/barcd/barcdlist");
- fExeBarCdPrnt("/root/main/wingood/wingoodlist");
- // }
- // }
- }
- }
- }
-
- /* @group : 물품입고
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 포커스 아웃 Function
- */
- function fExeFocusOut() {
- window.setPopupMenu(false);
- }
-
- /* @group : 파일입고
- * @ver : 2007.10.04 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 피일입고 Function
- */
- function fExeFileWin() {
-
- var sNode = "/root/main/filewin/filewinlist";
-
-
- //--------------------------------------------------
- if (model.getValue("/root/init/seaflagcd") != "0" && model.getValue("/root/init/seaflagcd") != "3") {
- messageBox("조회기준을 청구량으로 변경하여야 합니다! ", "I007");
- return false;
- }
-
- // var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls|CSV Files(*.csv)|*.csv");
- var fileName = window.fileDialog("open", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|CSV Files(*.csv)|*.csv");
-
- //---------------------------------------
- if (fileName == "" || fileName == null) {
- messageBox("입고할 파일을 선택하세요", "E", "");
- return false;
- }
-
- //-------------------------------------------------
- var sStr = fileName.substring(fileName.length - 3);
-
- //---------------------
- // 파일입고 Node 초기화
- model.removeNodeset(sNode);
-
- //--------------------------------
- if (sStr.toLowerCase() == "csv") {
- grd_filewin.loadText(fileName);
-
- } else if(sStr.toLowerCase() == "xls") {
- grd_filewin.loadExcel(fileName);
-
- } else {
- messageBox("Excel파일을 선택하세요", "E", "");
- return;
- }
-
- //---------------------------------------
- // 파일 입고 시 추가적인 컬럼을 생성한다.
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- //------------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/dutdeptcd") == "") {
- messageBox("부서코드가 입력되지 않았습니다! Excel파일을 ", "I007");
- return false;
- }
-
- //---------------------------------------------------
- model.makeValue(sNode+"["+iNo+"]/choi", "true");
- model.makeValue(sNode+"["+iNo+"]/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue(sNode+"["+iNo+"]/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- model.makeValue(sNode+"["+iNo+"]/dutdeptnm", "파일입고");
- model.makeValue(sNode+"["+iNo+"]/appqty", "0");
- model.makeValue(sNode+"["+iNo+"]/unit", "-");
- model.makeValue(sNode+"["+iNo+"]/windd", "-");
- model.makeValue(sNode+"["+iNo+"]/windg", "0");
- model.makeValue(sNode+"["+iNo+"]/bfwinqty", "0");
- }
-
- //----------------------------------------------
- // 파일입고 물품목록 Node를 등록대상 Node로 복사
- model.removeNodeset("/root/main/wingood/wingoodlist");
- model.makeNode("/root/main/wingood/wingoodlist");
- copyNodesetType("/root/main/wingood/wingoodlist", sNode+"[*]");
-
- //--------------------
- fExeSeaClick(); //물품목록 리스트 재조회
-
- grd_winlist.refresh();
-
-
- }
-
- /* @group : 엑셀저장
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 엑셀저장 Function
- */
- function fExeExcel() {
- var fileName = window.fileDialog("save", ",", false, "물품입고목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != ""){
- grd_winlist.saveExcel(fileName);
- }
-
- }
-
- /* @group : 물품입고
- * @ver : 2007.10.04 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 물품입고 처리 Function
- */
- function fExeGoodWin() {
-
- var iCnt = 0;
- var iFindNo = 0;
- var sDescNode = "/root/main/wingood/wingoodlist";
-
- //------------------------------------------------------
- iFindNo = grd_winlist.findRow("true", 1, 1, true, true);
- if (Number(iFindNo) <= 0) {
- messageBox("입고할 물품을 선택하여 주십시오!", "I007");
- return false;
- }
-
- //------------------------
- grd_winlist.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sDescNode); iNo++) {
-
- //---------------------------------------------------------
- if (model.getValue(sDescNode+"["+iNo+"]/choi") == "true") {
-
- //----------------------
- // Lot번호 입력여부 검사
- if (model.getValue(sDescNode+"["+iNo+"]/lotno") == "") {
- messageBox(iNo+" 행에 Lot번호가 입력되지 않았습니다.","I007");
- return false;
- }
-
- //----------------------
- // 입고수량 입력여부 검사
- if (model.getValue(sDescNode+"["+iNo+"]/winqty") == "" || Number(model.getValue(sDescNode+"["+iNo+"]/winqty")) == 0) {
- messageBox(iNo+" 행에 입고수량이 입력되지 않았습니다.","I007");
- return false;
- }
-
- //----------------------
- // 유효기간 입력여부 검사
- if (model.getValue(sDescNode+"["+iNo+"]/valiterm") == "") {
- messageBox(iNo+" 행에 Lot번호가 입력되지 않았습니다.","I007");
- return false;
- }
-
- //------------------
- // 재고보정구분 설정
- model.setValue(sDescNode+"["+iNo+"]/adjtflagcd", model.getValue("/root/init/adjtflagcd"));
- //조회 기준에 따라 물품 입고 테이블에 winflag에 넣을거임.. 20091007 컬럼 추가에 따른 사항
- model.setValue(sDescNode+"["+iNo+"]/seaflagcd", model.getValue("/root/init/seaflagcd"));
-
- //------------------------------------------------------
- if (model.getValue(sDescNode+"["+iNo+"]/windg") == "" || model.getValue(sDescNode+"["+iNo+"]/windg") == "0") {
- grd_winlist.addStatus(iNo, "insert");
- } else {
- grd_winlist.addStatus(iNo, "update");
- }
- }
- }
- grd_winlist.refresh();
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/wingoodlist", grd_winlist.getUpdateData());
-
- //-----------------------------------------------
- // 입고가 정상적으로 처리되면 자동으로 바코드출력
- if (submit("TXLAW00101")) {
- fGetGoodCodeSubList();
-
- // //------------
- // // 바코드 출력
- // if (model.getValue("/root/hidden/barcd/barcdprnt") == "0") {
- // lis/gooddeliveweb/js/LAZ001.js
- fExeBarCdPrnt("/root/main/wingood/wingoodlist");
- // }
-
- //---------------------------------------------
- //model.removeNodeset(sDescNode+"[choi='true']"); // 입고물품 목록 초기화
- model.refresh();
- }
- fExeSeaClick(); //물품목록 리스트 재조회
- }
-
- /* @group : 입고취소
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 입고취소 Function
- */
- function fCancelWin() {
-
- var iCnt = 0;
- var iFindNo = 0;
- var sDescNode = "/root/main/wingood/wingoodlist";
- var vWinQty, vTmpwinQty;
-
- //------------------------------------------------------
- iFindNo = grd_winlist.findRow("true", 1, 1, true, true);
- if (Number(iFindNo) <= 0) {
- messageBox("입고취소할 물품을 선택하여 주십시오!", "I007");
- return false;
- }
-
- //------------------------
- grd_winlist.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sDescNode); iNo++) {
-
- //---------------------------------------------------------
- if (model.getValue(sDescNode+"["+iNo+"]/choi") == "true") {
- if (model.getValue(sDescNode+"["+iNo+"]/windg") == "" || Number(model.getValue(sDescNode+"["+iNo+"]/windg")) == 0) {
- messageBox("입고된 내역만 취소 할 수 있습니다.","I007");
- return false;
- }
-
- vWinQty = model.getValue(sDescNode+"["+iNo+"]/winqty"); //입고수량
- vTmpwinQty = model.getValue(sDescNode+"["+iNo+"]/tmpwinqty"); //입고수량
- //조회시 수량과 취소시 수량을 비교하기 위함
- if(vWinQty != vTmpwinQty){
- messageBox("입고수량을 수정 후 취소 할 수 없습니다.\n" + model.getValue(sDescNode+"["+iNo+"]/goodcd")+ "항목을","I007");
- return false;
- }
-
- //-----------------------------------
- grd_winlist.addStatus(iNo, "delete");
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/wincancel", grd_winlist.getUpdateData());
-
- //------------------------------------
- if (messageBox("취소", "Q004") == 6) {
- if (submit("TXLAW00102")) {
- //model.removeNodeset(sDescNode+"[choi='true']"); // 입고물품 목록 초기화
- fGetGoodCodeSubList();
- grd_winlist.clearStatus();
- model.refresh();
- }
- }
- fExeSeaClick(); //물품목록 리스트 재조회
- }
-
- /* @group : 물품입고
- * @ver : 2007.10.02 (CMCDEV-0001)
- * @by : 김성희
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 물품코드 목록 선택 체크시 입고물품 목록으로 값 추가 Function
- */
- function fExeChoiTrue(str) {
-
- var sSrcNode = "/root/main/winappgood/winappgoodlist";
- var sDescNode = "/root/main/wingood/wingoodlist";
- var sGoodNode = "/root/main/goodcd/goodcdlist";
-
-
- //-----------------
- if (str == "good") { //물품목록
-
- if (model.getValue(sGoodNode+"["+ grd_goodlist.row +"]/choi") == "true") {
-
- var goodcd = model.getValue(sGoodNode+"["+ grd_goodlist.row+"]/goodcd");
-
- //-------------------
- grd_winlist.addRow();
- //-----------------------------------------------------------------------
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/choi", "true");
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/goodcd", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/goodcd"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/allsizespecid", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/allsizespecid"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/goodnm", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/goodnm"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/lotno", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/lotno"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/spec", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/goodspec"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/unit", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/deliveunit"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/unitcost", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/goodunitcost"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/stocqty", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/stocqty"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/bfwinqty", "0");
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/instcd", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/instcd"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/posdeptcd", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/posdeptcd"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/dutdeptcd", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/dutdeptcd"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/dutdeptnm", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/dutdeptnm"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/valiterm", "99991231");
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/windd", "-");
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/windg", "0");
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/prodcustnm", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/prodcustnm"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/suppcustnm", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/suppcustnm"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/setunit", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/setunit"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/model", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/model"));
- model.makeValue(sDescNode+"["+grd_winlist.row+"]/keeptmpr", model.getValue(sGoodNode+"["+grd_goodlist.row+"]/keeptmpr"));
-
- grd_winlist.refresh();
- }
- }
-
- //--------------------
- grd_winlist.refresh();
- }
-
- function fGridReSet() {
- fGetGoodCodeSubList();
- model.removeNodeset("/root/main/wingood/wingoodlist"); // 입고물품 목록 초기화
- model.refresh();
- }
-
-
- //----------------------
- // 조회버튼 클릭 시 처리
- function fExeSeaClick() {
-
- //-------------------------
- grd_winlist.rebuildStyle();
- grd_winlist.rebuild();
-
- //--------------------------------------------------
- if (model.getValue("/root/init/seaflagcd") == "0" || model.getValue("/root/init/seaflagcd") == "3") {
- fGetWInAppGoodList(); // 청구량 기준으로 조회
- } else {
- fGetWinGoodList(); // 입고량 기준으로 조회
- }
-
- //-------------------------------------------------------------
- grd_winlist.colStyle(10, "data", "background-color") = "yellow";
- grd_winlist.fixedcellischeck(0,1) = false;
- }
-
- //----------------------
- // 조회기준 변경 시 처리
- function fExeSeaFlagChange() {
-
- if (model.getValue("/root/init/seaflagcd") == "0" || model.getValue("/root/init/seaflagcd") == "3") {
- cap_apptitle.value = "청구일자 : ";
- //grd_winlist.colWidth(9) = 60;
- //grd_winlist.colWidth(15) = 0;
- grd_winlist.colHidden(grd_winlist.colRef("appqty")) = false;
- grd_winlist.colHidden(grd_winlist.colRef("windd")) = true;
- grd_winlist.colHidden(grd_winlist.colRef("reqdd")) = false;
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- button1.disabled = false;
- btn_save.disabled = false;
- btn_can.disabled = true;
- btn_save.value = "저장";
-
- } else if (model.getValue("/root/init/seaflagcd") == "1") {
- cap_apptitle.value = "입고일자 : ";
- //grd_winlist.colWidth(9) = 0;
- //grd_winlist.colWidth(15) = 80;
- grd_winlist.colHidden(grd_winlist.colRef("appqty")) = true;
- grd_winlist.colHidden(grd_winlist.colRef("windd")) = false;
- grd_winlist.colHidden(grd_winlist.colRef("reqdd")) = true;
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- button1.disabled = false; //파일입고
- btn_save.disabled = false; //저장(수정)
- btn_can.disabled = false; //취소
- btn_save.value = "수정";
- } else {
- cap_apptitle.value = "청구일자 : ";
- //grd_winlist.colWidth(9) = 0;
- //grd_winlist.colWidth(15) = 0;
- grd_winlist.colHidden(grd_winlist.colRef("appqty")) = true;
- grd_winlist.colHidden(grd_winlist.colRef("windd")) = true;
- grd_winlist.colHidden(grd_winlist.colRef("reqdd")) = true;
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- button1.disabled = false;
- btn_save.disabled = false;
- btn_can.disabled = true;
- btn_save.value = "저장";
- model.makeValue("/root/init/winfromdd", getCurrentDate()); // 입고일자(시작)
- model.makeValue("/root/init/wintodd", getCurrentDate()); // 입고일자(종료)
- }
-
- //----------------------------------------------------
- model.removeNodeset("/root/main/wingood/wingoodlist");
- //grd_winlist.refresh();
- model.refresh();
- }
-
- //----------------------------
- // 검색값 입력 후 Enter키 입력
- function fExeSeaValOnKeyPress() {
-
- if (event.keyCode == "13") {
- model.setValue("/root/init/seaval", ipt_seaval.currentText);
- ipt_seaval.refresh();
-
- //-------------
- fExeSeaClick();
- }
- }
-
- //----------------------------------
- // 입고물품 선택 시 수량 기본값 설정
- function fExeGoodChoi(pRow) {
-
- var iSNo = Number(pRow);
- var iENo = Number(pRow);
- var sNode = "/root/main/wingood/wingoodlist";
-
- //----------------------
- // 전체 선택의 경우 처리
- if (Number(pRow) <= 0) {
- iSNo = 1;
- iENo = getNodesetCount(sNode);
- }
-
- //-------------------------------------------------------------
- // 청구일 경우 물품 선택 시 청구수량을 입고수량으로 기본값 적용
- if (model.getValue("/root/init/seaflagcd") == "0" || model.getValue("/root/init/seaflagcd") == "3") {
- for (var iNo=iSNo; iNo <= iENo; iNo++) {
- model.setValue(sNode+"["+iNo+"]/winqty", model.getValue(sNode+"["+iNo+"]/appqty"));
- }
- }
- }
-
- //-----------
- // 프린터설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- //----------------------------------------------------
- open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
-
- //---------------------------------------
- // 입고수량 변경시 선택여부 자동체크 기능
- function fExeQtyChange(pGridObj) {
- //------------------------------
- if (Number(pGridObj.col) != 11) {
- return false;
- }
-
- var sNode = "/root/main/wingood/wingoodlist";
- //var iUseQty = Number(model.getValue(sNode+"["+Number(pGridObj.row)+"]/winqty"));
-
- //---------------------------------------------------------------
- model.makeValue(sNode+"["+Number(pGridObj.row)+"]/choi", "true");
- //pGridObj.refresh();
-
- //--------------------------------------------------------
- if ( (Number(pGridObj.rows) - 1) > Number(pGridObj.row)) {
- pGridObj.row = Number(pGridObj.row) + 1;
- //pGridObj.col = 10;
- //pGridObj.selected = true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">물품입고관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:35px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194; height:35; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194; height:35; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">검색값 :</caption>
- <caption id="caption7" class="search_name" style="left:290px; top:9px; width:91px; height:17px; ">조회기준 :</caption>
- <line id="line1" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29; "/>
- <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" navindex="2" style="left:177px; top:8px; width:103px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeSeaValOnKeyPress();
- ]]>
- </script>
- </input>
- <caption id="caption26" class="search_name" style="left:946px; top:9px; width:61px; height:17px; ">부서 :</caption>
- <select1 id="cmb_seadept" ref="/root/init/appdeptcd" class="combo_search" navindex="7" appearance="minimal" style="left:1010px; top:8px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dutdept/appdeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fGridReSet();
- ]]>
- </script>
- </select1>
- <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1125; top:7; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSeaClick();
- ]]>
- </script>
- </button>
- <select1 id="cmb_seamthdcd" ref="/root/init/seamthdcd" class="combo_search" navindex="1" appearance="minimal" style="left:92px; top:8px; width:82px; height:19px; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>0</value>
- </item>
- <item>
- <label>물품명</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_no_b" style="left:648px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_todd" ref="/root/init/wintodd" class="input_s_essential" navindex="5" inputtype="date" required="true" style="left:663px; top:8px; width:90px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <input id="ipt_fromdd" ref="/root/init/winfromdd" class="input_s_essential" navindex="4" inputtype="date" required="true" style="left:555px; top:8px; width:90px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="cap_apptitle" class="search_name" style="left:464px; top:9px; width:86px; height:17px; ">청구일자 :</caption>
- <select1 id="cbo_seabase" ref="/root/init/seaflagcd" navindex="3" appearance="minimal" style="left:381px; top:8px; width:69px; height:19px; ">
- <choices>
- <item>
- <label>청구(구매)</label>
- <value>0</value>
- </item>
- <item>
- <label>청구(수탁)</label>
- <value>3</value>
- </item>
- <item>
- <label>입고내역</label>
- <value>1</value>
- </item>
- <item>
- <label>가납입고</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeSeaFlagChange();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:763px; top:9px; width:73px; height:17px; ">거래처 :</caption>
- <select1 id="cbo_custlist" ref="/root/init/goodshop" navindex="6" appearance="minimal" itemcount="20" style="left:840px; top:8px; width:99px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/custinfo/custlist">
- <label ref="custnm"/>
- <value ref="entrregno"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line2" class="line_1" style="x1:305px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:310px; top:55px; width:144px; height:14px; ">입고신청 물품목록</caption>
- <button id="btn_excsave" class="btn2_letter4" navindex="11" style="left:1129px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_winlist" nodeset="/root/main/wingood/wingoodlist" class="datagrid2" caption="선
택^부서명^보정
여부^물품코드^물품명^Lot번호^규격^기준
단위^청구
수량^재고
수량^입고
수량^단가^instcd^posdeptcd^dutdeptcd^입고일자^입고차수^bfwinqty^유효일자^포장구성단위^제조사^모델^납품처^ALL SIZE^adjtflagcd^청구일자^의뢰번호^seaflagcd^보관온도" colsep="^" colwidth="40, 60, 0, 70, 140, 110, 60, 50, 50, 50, 50, 0, 0, 0, 0, 80, 0, 0, 80, 80, 70, 80, 80, 0, 0, 70, 0, 0, 60" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="9" style="left:305px; top:75px; width:889px; height:668px; ">
- <col ref="choi" type="checkbox"/>
- <col class="text_center" ref="dutdeptnm"/>
- <col class="text_center" ref="adjtflagnm"/>
- <col class="text_center" ref="goodcd"/>
- <col ref="goodnm"/>
- <col class="text_center" ref="lotno" type="input" maxlength="30"/>
- <col class="text_center" ref="spec"/>
- <col class="text_center" ref="unit"/>
- <col class="text_right" ref="appqty" format="(-)#,###" mask="exclude" showmask="true"/>
- <col class="text_right" ref="stocqty" format="#,###" mask="exclude" showmask="true"/>
- <col ref="winqty" type="input" format="(-)#,###" maxlength="6" style="text-align:right; "/>
- <col ref="unitcost" secretendposition="20" secretmark="*" secretstartposition="0" format="#,###" style="text-align:right; "/>
- <col ref="instcd"/>
- <col ref="posdeptcd"/>
- <col ref="dutdeptcd"/>
- <col ref="windd" format="yyyy-mm-dd" mask="exclude" maxlength="8" showmask="true"/>
- <col ref="windg"/>
- <col ref="bfwinqty"/>
- <col ref="valiterm" type="inputdate" format="yyyy-mm-dd" mask="exclude" maxlength="8" showmask="true"/>
- <col class="text_center" ref="setunit"/>
- <col ref="prodcustnm"/>
- <col ref="model"/>
- <col ref="suppcustnm"/>
- <col ref="allsizespecid"/>
- <col ref="adjtflagcd"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqno"/>
- <col ref="seaflagcd"/>
- <col ref="keeptmpr" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fExeMouseDown();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fExeFocusOut();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeGoodChoi(grd_winlist.row);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeQtyChange(grd_winlist);
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_winlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <import id="imp_goodlist" instancetype="merge" src="SSLAW00100_물품목록.xrw" style="left:0px; top:55px; width:300px; height:688px; "/>
- <button id="btn_del" class="btn2_letter3" navindex="14" style="left:1073px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeDeleteRow();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" navindex="10" style="left:1017px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeInsertRow();
- ]]>
- </script>
- </button>
- <datagrid id="grd_filewin" nodeset="/root/main/filewin/filewinlist" visibility="hidden" caption="dutdeptcd^goodcd^goodnm^lotno^spec^winqty^unitcost^valiterm" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:260px; width:710px; height:150px; ">
- <col ref="dutdeptcd"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="lotno"/>
- <col ref="spec"/>
- <col ref="winqty"/>
- <col ref="unitcost"/>
- <col ref="valiterm"/>
- </datagrid>
- <bool id="bool_adjtflagcd" visibility="hidden" checkvalue="1,0" ref="/root/init/adjtflagcd" style="left:869px; top:50px; width:25px; height:20px; font-weight:bold; "/>
- <caption id="caption3" visibility="hidden" style="left:892px; top:51px; width:100px; height:20px; ">재고보정</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="15" style="left:1079; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeGoodWin();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter4" navindex="13" visibility="visible" style="left:996px; top:3px; width:80px; height:22px; ">
- <caption>파일입고</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeFileWin();
- ]]>
- </script>
- </button>
- <button id="btn_can" class="btn4_letter2" navindex="16" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCancelWin();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter6" navindex="12" style="left:0px; top:3px; width:104px; height:22px; ">
- <caption>바코드재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarCdPrntData();
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:105px; top:3px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSetPrntSetting();
- fSetPrint();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|