=8) { echo ""; sleep(2); header ("Location:/login/logout.php"); exit; } $outputnum=$_REQUEST["outputnum"]; // 출고현황에서 넘어온 출고번호 $callback=$_REQUEST["callback"]; // 출고현황에서 체크번호 if(isset($_REQUEST["mode"])) //수정 버튼을 클릭해서 호출했는지 체크 $mode=$_REQUEST["mode"]; else $mode=""; if(isset($_REQUEST["which"])) //수정 버튼을 클릭해서 호출했는지 체크 $which=$_REQUEST["which"]; else $which="2"; if(isset($_REQUEST["num"])) //수정 버튼을 클릭해서 호출했는지 체크 $num=$_REQUEST["num"]; else $num=""; if(isset($_REQUEST["page"])) //수정 버튼을 클릭해서 호출했는지 체크 $page=$_REQUEST["page"]; else $page=1; if(isset($_REQUEST["search"])) //수정 버튼을 클릭해서 호출했는지 체크 $search=$_REQUEST["search"]; else $search=""; if(isset($_REQUEST["find"])) //수정 버튼을 클릭해서 호출했는지 체크 $find=$_REQUEST["find"]; else $find=""; if(isset($_REQUEST["process"])) //수정 버튼을 클릭해서 호출했는지 체크 $process=$_REQUEST["process"]; else $process="전체"; $fromdate=$_REQUEST["fromdate"]; $todate=$_REQUEST["todate"]; if(isset($_REQUEST["regist_state"])) // 등록하면 1로 설정 접수상태 $regist_state=$_REQUEST["regist_state"]; else $regist_state="1"; $year=$_REQUEST["year"]; // 년도 체크박스 require_once("../lib/mydb.php"); $pdo = db_connect(); if((int)$outputnum>0) { try{ $sql = "select * from chandj.output where num=?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $outputnum, PDO::PARAM_STR); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); $con_num=$row["con_num"]; $outdate=$row["outdate"]; $indate=$row["indate"]; $orderman=$row["orderman"]; $outworkplace=$row["outworkplace"]; $outputplace=$row["outputplace"]; $receiver=$row["receiver"]; $phone=$row["phone"]; $comment=$row["comment"]; $root=$row["root"]; $delivery=$row["delivery"]; } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } } // 만약 기존에 발주건이 있다면 if((int)$outputnum>=1) { require_once("../lib/mydb.php"); $pdo = db_connect(); try{ $sql = "select * from chandj.motor where outputnum = ? "; $stmh = $pdo->prepare($sql); $stmh->bindValue(1,$outputnum,PDO::PARAM_STR); $stmh->execute(); $counter = $stmh->rowCount(); $row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다. if($counter>=1) { $mode="modify"; //수정모드로 전환 $num=$row["num"]; // 기존 발주서 연동이 있음. // print "번호를 찾았습니다.
" . $num; } } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } } else { if(isset($_REQUEST["num"])) //수정 버튼을 클릭해서 호출했는지 체크 출고현황에서 부르지 않았을때 $num=$_REQUEST["num"]; else $num=1; } if ($mode=="modify"){ try{ $sql = "select * from chandj.motor where num = ? "; $stmh = $pdo->prepare($sql); $stmh->bindValue(1,$num,PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); $row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다. if($count<1){ print "검색결과가 없습니다.
"; }else{ $con_num=$row["con_num"]; $outputnum=$row["outputnum"]; $outdate=$row["outdate"]; $indate=$row["indate"]; $outworkplace=$row["outworkplace"]; $orderman=$row["orderman"]; $outputplace=$row["outputplace"]; $receiver=$row["receiver"]; $phone=$row["phone"]; $comment=$row["comment"]; $root=$row["root"]; $delivery=$row["delivery"]; $regist_state=$row["regist_state"]; $out_control=$row["out_control"]; $in_control=$row["in_control"]; $inbox=$row["inbox"]; $casecover=$row["casecover"]; $switchset=$row["switchset"]; $which=$row["which"]; $motor220v_150k=$row["motor220v_150k"]; $motor220v_300k=$row["motor220v_300k"]; $motor220v_400k=$row["motor220v_400k"]; $motor220v_500k=$row["motor220v_500k"]; $motor220v_600k=$row["motor220v_600k"]; $motor220v_800k=$row["motor220v_800k"]; $motor220v_1000k=$row["motor220v_1000k"]; $motor220v_1500k=$row["motor220v_1500k"]; $motor220v_2000k=$row["motor220v_2000k"]; $motor380v_150k=$row["motor380v_150k"]; $motor380v_300k=$row["motor380v_300k"]; $motor380v_400k=$row["motor380v_400k"]; $motor380v_500k=$row["motor380v_500k"]; $motor380v_600k=$row["motor380v_600k"]; $motor380v_800k=$row["motor380v_800k"]; $motor380v_1000k=$row["motor380v_1000k"]; $motor380v_1500k=$row["motor380v_1500k"]; $motor380v_2000k=$row["motor380v_2000k"]; $bracket_150k=$row["bracket_150k"]; $bracket_screen300k=$row["bracket_screen300k"]; $bracket_300k=$row["bracket_300k"]; $bracket_500k=$row["bracket_500k"]; $bracket_800k=$row["bracket_800k"]; $bracket_1500k=$row["bracket_1500k"]; $bracket_2000k=$row["bracket_2000k"]; if($indate!="0000-00-00") $indate = date("Y-m-d", strtotime( $indate) ); else $indate=""; if($outdate!="0000-00-00") $outdate = date("Y-m-d", strtotime( $outdate) ); else $outdate=""; } }catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } } /* if ($mode!="modify"){ // 수정모드가 아닐때 신규 자료일때는 변수 초기화 한다. $con_num=0; $outdate=date("Y-m-d"); $indate=date("Y-m-d"); $orderman=$_SESSION["name"]; $outworkplace=null; $outputplace=null; $receiver=null; $phone=null; $comment=null; $root=null; $delivery=null; $regist_state=null; $motor220v=null; $motor220v_num=null; $motor380v=null; $motor380v_num=null; $bracket=null; $bracket_num=null; $out_control=null; $in_control=null; $inbox=null; $casecover=null; $switchset=null; $which==null; if($_SESSION["name"] =="안미희") $root="경동"; } */ ?> 주일기업 통합정보시스템


    모터 입출고 등록/수정 화면

입출고일 :
접 수 일 :
    회사구분 :    
주일   경동 주일   경동
현 장 명 :
(주일/경동 선택 후 주일공사 현장 또는 경동 발주처 현장명)
발주자 :
수신처(작업반장 or 업체) :
수신처주소 :
연락처 :
비 고 :

발주사항(입출고 수량입력)

구분 :
입고 name=which value="1">
 
출고 name=which value="2">