"") { //引当状況確認からの遷移は緊急分も出す $strwhere = " WHERE picktimes IN ('$_POST[picktimes]',99) and "; } else { $strwhere = " WHERE picktimes ='$_POST[picktimes]' and "; } $strwhere .= "operatedate = DATE_ADD( CURDATE() , INTERVAL ".$_POST[chgday]." DAY ) AND centerid='".$_POST[center]."' "; if($_POST[brand] <> "") { $brand = $_POST["brand"]; $strwhere .= " and brand='$brand'"; } else { } if($userdata[brand] <> "") { $strwhere .= " and brand in(".$userdata[brand].")"; } else { } //流通型の条件指定 $strsqlmaker = "sm.ryutu_type in ("; foreach($_POST[ryutu_type] as $key => $val){ $strsqlmaker .= $val.","; } $strsqlmaker .= "-9) "; //サプライヤーコード if ($_POST[maker]<>""){ if($_POST["grouping"] == "1") { $strsqlmaker .= " and sm.makercodeG = '$_POST[maker]' "; } else { $strsqlmaker .= " and sm.makercode = '$_POST[maker]' "; } } if ($userdata["supplyerid2"]<> ""){ if($_POST["grouping"] == "1") { $strsqlmaker .= " and sm.makercodeG in (".$userdata["supplyerid2"].") "; } else { $strsqlmaker .= " and sm.makercode in (".$userdata["supplyerid2"].") "; } } //温度 if ($_POST[code]<>"") { $strsqlmaker .= "and sm.code in("; foreach($_POST[code] as $key => $val){ $strsqlmaker .= $val.","; } $strsqlmaker .= "-9) "; } //表示順 if ($orderby==2) { //商品順 $strorder = " ORDER BY ryutu_type,code,shohincd,loccode,shomi,waitingflg"; } else { //ロケーション順 $strorder = " ORDER BY ryutu_type,code DESC,sm.location,loccode,shohincd,shomi,waitingflg"; } //ピッキングデータ $strsql = "SELECT shohincd,sum(shukkaqty) as shukkaqty,shukkadate,operatedate,picktimes,loccode,shomi,min(zanzaiko) AS zanzaiko,waitingflg FROM `".$company."shukka` ".$strwhere." group by shohincd,loccode,shomi"; $strsql = "SELECT shohincd,sum(shukkaqty) as shukkaqty,shukkadate,operatedate,picktimes,loccode,shomi,min(zanzaiko) AS zanzaiko,waitingflg FROM `".$company."shukka` ".$strwhere." group by shohincd"; //$strsqlnozaiko = "SELECT shohincd,sum(shukkaqty) as shukkaqty,sum(orderqty) as orderqty,shukkadate,operatedate,picktimes,loccode,shomi,min(zanzaiko) AS zanzaiko,waitingflg FROM `".$company."shukka` ".$strwhere." and orderqty>0 group by shohincd,loccode,shomi"; //商品マスタをJOIN $strsql = "SELECT shohincd,sm.ryutu_type,centernisugata,shomiflg,shukkaqty,shukkadate,operatedate,kikaku,irisuu,aisuu,nisugata,shohinmei,code,loccode,pg.shomi,picktimes,zanzaiko,waitingflg,sm.makercode,sm.location FROM ($strsql) as pg LEFT JOIN `".$company."shohinmaster` AS sm USING (shohincd) WHERE ".$strsqlmaker.$strorder; //$strsqlnozaiko = "SELECT shohincd,shukkaqty,orderqty,shukkadate,operatedate,kikaku,irisuu,aisuu,nisugata,shohinmei,code,loccode,pg.shomi,picktimes,zanzaiko,waitingflg FROM ($strsqlnozaiko) as pg LEFT JOIN `".$company."shohinmaster` AS sm USING (shohincd) WHERE ".$strsqlmaker.$strorder; //温度帯データの取得 $codedata = dbselect("cname,code","`".$company."code`","codekind = '1'","code",-1); //流通型データの取得 $codedata10 = dbselect("cname,code","`".$company."code`","codekind = '10'","code",-1); ?> LogiGate<?php //echo $systemname; ?> 出力:<?php echo date("Y/m/d ",strtotime ("".$_POST[chgday]." day")); ?><?php //echo $_POST[picktimes]."回目"; ?> #\n"; for ($i=0;$i<$rows;$i++) { echo "\n"; } ?> ".$data[$i]."\n"; } ?>
".mysql_field_name($result, $i)."
------------------------------------------

$data["code"]) or ($prev_type<>$data["ryutu_type"]) or ($line==$pagekaigyo)) { if (($prevcode<>$data["code"]) or ($prev_type<>$data["ryutu_type"])) { //改ページから何枚目か $maime=1; $line=1; } elseif ($line==$pagekaigyo) { //改ページから何枚目か $maime++; $line=1; } else { $maime=1; } if ($i>0) { //格納していた商品ヘッダを出力 echo $strshohin_head1; echo $intshohingross; echo $strshohin_head2; //商品詳細を出力 echo $strshohin_detail; $intshohingross = "";$strshohin_detail="";$strshohin_head1="";$strshohin_head2=""; echo "\n
 
\n"; //改ページ } ?>
作業日:  出荷日: 
\n"; //テーブルヘッダ echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "\n"; } else { $line++; } if(($line==1) or ($prevshohin<>$data["shohincd"])) { if(($line>1) ) { //1行目は出力しない //格納していた商品ヘッダを出力 echo $strshohin_head1; echo $intshohingross;; echo $strshohin_head2; //商品詳細を出力 echo $strshohin_detail; // echo "\n\t\n";//商品分け区分線 $intshohingross = "";$strshohin_detail="";$strshohin_head1="";$strshohin_head2=""; } //商品が違ったら格納する $strshohin_head1 = "\n"; $stock = dbselect("sum(nonreserveqty)","`".$company."stockdata`","nonreserveqty > 0 and shohincd ='".$data["shohincd"]."' AND centerid='".$_POST[center]."'",-1,-1); if((int)$stock[0][0] > 0) { $zanzaiko = " : ".floor((int)$stock[0][0] / $data["irisuu"])."cs"; if((int)$data["irisuu"] > 1) { $zanzaiko .= "/".floor((int)$stock[0][0] % $data["irisuu"])."".$data["nisugata"]."";} $st = "(残".(int)$stock[0][0].$zanzaiko.")"; } else { $st = "(-)";} $strshohin_head1 .= " \n"; $strshohin_head1 .= " \n"; $strshohin_head1 .= " \n"; $strshohin_head2 .= " \n"; $strshohin_head2 .= "\n"; $strshohin_head2 .= "\n"; $strshohin_head2 .= " \n"; $strshohin_head2 .= " \n"; $strshohin_head2 .= " \n"; $strshohin_head2 .= "\n"; /* $strshohin_head2 .= "\n"; $strshohin_head2 .= " \n"; $strshohin_head2 .= " \n"; $strshohin_head2 .= " \n"; if($data["aisuu"] == 1) { $strshohin_head2 .= " \n"; } else { $strshohin_head2 .= " \n"; } if(($data["aisuu"] == 1) and ($data["irisuu"] == 1)){ $strshohin_head2 .= " \n"; } else { $strshohin_head2 .= " \n"; } $strshohin_head2 .= " \n"; $strshohin_head2 .= " \n"; $strshohin_head2 .= "\n"; */ } //出荷総数 $intshohingross += $data["shukkaqty"] ; //商品詳細を格納 /* $strshohin_detail .="\n"; $strshohin_detail .=" \n"; if($data["shomi"]=="") { $strshohin_detail .=" \n"; */ $inttotalbara=$data["shukkaqty"] ; //総バラ数 $intaisuu = ($inttotalbara / ($data["aisuu"]*$data["irisuu"])); //合数 $intcase = (($inttotalbara % ($data["aisuu"]*$data["irisuu"])) / $data["irisuu"]); //ケース $intbara = ($inttotalbara % ($data["aisuu"]*$data["irisuu"])) % $data["irisuu"]; //バラ if ($intaisuu==0) {$intaisuu=" ";} if ($intcase==0) {$intcase=" ";} if ($intbara==0) {$intbara=" ";} /* $strshohin_detail .=" \n"; $strshohin_detail .=" \n"; $strshohin_detail .=" \n"; $strshohin_detail .=" \n"; $strshohin_detail .=" \n"; $strshohin_detail .=""; if ($chgflg==1) { echo ""; } */ $prevcode=$data["code"]; $prev_type=$data["ryutu_type"]; $prevshohin=$data["shohincd"]; $i++; } //格納していた商品ヘッダを出力 echo $strshohin_head1; echo $intshohingross; echo $strshohin_head2; //商品詳細を出力 //echo $strshohin_detail; ?>
 商品コード :ロケーション
 商品名
規格数量 

".$data["shohincd"]." :".$data["location"]."  ".$st." ".GetListData($makerdata,$data["makercode"],0)."

".$data["kikaku"]." 

"; $strshohin_head2 = "".$data["kikaku"]." 

".$data["shohinmei"]."

 
   ロケーション数量

".$data["loccode"]."

 

"; } else { $strshohin_detail .="

".date("Y/m/d",strtotime($data["shomi"]))."

"; } */ /* if ($data["waitingflg"]==1) { $strshohin_detail .="入荷待ち"; } $strshohin_detail .="

".($data["shukkaqty"]+ $data["orderqty"])."".$data["kikaku"]."".$data["zanzaiko"]."
対象データがありません。バッチ番号(通常は1)、日付を確認ください。
"); #debug } ?>

".$str.""; } ?>