1. Import
This commit is contained in:
197
html/stock/stock_scancommandlist.php
Normal file
197
html/stock/stock_scancommandlist.php
Normal file
@@ -0,0 +1,197 @@
|
||||
<?php
|
||||
/*=======================================================================
|
||||
*
|
||||
* stock_scancommandlist.php
|
||||
*
|
||||
* Autor: Marc Vollmann
|
||||
*
|
||||
=======================================================================*/
|
||||
|
||||
|
||||
include_once ("../include/mcglobal.inc.php");
|
||||
include_once ("../include/auth.inc.php");
|
||||
include_once ("../include/inc_dbfields2array.inc.php");
|
||||
|
||||
|
||||
// Check HTTP-Parameters
|
||||
// Stocks
|
||||
getSecHttpVars("1",array("f_act", "customerId", "cscIdRoot", "statusMessage", "deactivateMenu",
|
||||
"stkIdRoot"));
|
||||
|
||||
// Id of the current employee and the costcenter (individual root-node) logged in
|
||||
if ($cscIdRoot == ""): $cscIdRoot = getFieldValueFromId("employee","emp_id",$emp_id,"csc_id"); endif;
|
||||
if ($customerId == ""): $customerId = getFieldValueFromId("costcenter","csc_id",$cscIdRoot,"cs_id"); endif;
|
||||
|
||||
// Get the rights of the employee logged in
|
||||
$empRights = getRights($emp_id);
|
||||
|
||||
// Init
|
||||
if ($cscIdCurrent == ""): $cscIdCurrent = $cscIdRoot; endif;
|
||||
if ($hqId == ""): $hqId = $hq_id; endif;
|
||||
if ($customerId == ""): $customerId = "0"; endif;
|
||||
|
||||
// Attention: Definition AFTER definitions of $customerId, $cscIdRoot and $cscIdCurrent
|
||||
$pageTitel = "LÄGER";
|
||||
$deactivateMenuStatic = "1";
|
||||
if ($generatePDF != "1") :
|
||||
include_once ("../geo/geocode.inc.php");
|
||||
endif;
|
||||
include_once ("../admin/menu.php");
|
||||
include_once ("../include/html.inc.php");
|
||||
include_once ("../include/inc_stock.inc.php");
|
||||
|
||||
// Get the rights of the employee logged in and check the accessibility
|
||||
// authCheckEmployeeRights($emp_id, "14", "1");
|
||||
|
||||
// Select user-type for mode of security check
|
||||
$userType = getFieldValueFromId("user","usr_id",$usr_id,"usr_type");
|
||||
$userTypeName = getUserTypeName($userType);
|
||||
|
||||
// Parameters have to exist for both: customer and headquarter
|
||||
if (($userTypeName != "stk") && ($customerId == "" || $cscIdRoot == "" || $cscIdCurrent == "")) :
|
||||
gotoReferer("1"); // Parameter missing
|
||||
endif;
|
||||
|
||||
// Check authentication verifying emmployee an his/her costcenter- and customer-association
|
||||
if ( !( ($userType == "1") || ($userType == "4") || authCheck($hq_id,$usr_id,$emp_id,$cscIdRoot,$customerId,$cscIdActual) ) ) :
|
||||
gotoReferer("1");
|
||||
endif;
|
||||
|
||||
|
||||
// *** SCAN COMMANDS ***
|
||||
|
||||
$scanCmdNameArray = array("MV-RESET", "MV-DISPOSAL", "MV-IN", "MV-OUT", "MV-QUANTITY", "MV-TAN", "MV-REMARK", "MV-SERNO", "MV-JOB");
|
||||
$scanCmdDescriptionArray = array("RESET", "DISPONIEREN", "WARENEINGANG", "WARENAUSGANG", "MENGE EINTRAGEN", "TAN EINTRAGEN", "BEMERKUNG EINTRAGEN", "SERIENNR. EINTRAGEN", "AUFTRAG EINTRAGEN");
|
||||
$tmpLen = count($scanCmdNameArray);
|
||||
|
||||
$output .= "<table>\n";
|
||||
for ($i = 0; $i < $tmpLen; $i++) :
|
||||
$output .= " <tr>\n";
|
||||
$output .= " <td>\n";
|
||||
$output .= " <span class=\"f10bp1\" style=\"text-align: center;\">" . $scanCmdDescriptionArray[$i] . "</span>";
|
||||
$output .= " </td>\n";
|
||||
$output .= " </tr>\n";
|
||||
$output .= " <tr>\n";
|
||||
$output .= " <td>\n";
|
||||
$output .= " <img src=\"../include/barcode_BCGcode39.php?scale=1&text=" . $scanCmdNameArray[$i] . "\">";
|
||||
$output .= " <br><br>";
|
||||
$output .= " </td>\n";
|
||||
$output .= " </tr>\n";
|
||||
endfor;
|
||||
$output .= "</table>\n";
|
||||
|
||||
|
||||
// *** NUMBERS ***
|
||||
|
||||
$tableSpacer = "50";
|
||||
|
||||
// 0 .. 9
|
||||
$output2 .= "<table>\n";
|
||||
for ($i = 0; $i < 5; $i++) :
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <span class=\"f10bp1\">" . " " . "</span>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " <td width=\"" . $tableSpacer . "\">\n";
|
||||
$output2 .= " ";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <span class=\"f10bp1\">" . " " . "</span>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <img src=\"../include/barcode_BCGcode39.php?scale=1&text=-" . $i . "-\">";
|
||||
$output2 .= " <br><br>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " <td width=\"" . $tableSpacer . "\">\n";
|
||||
$output2 .= " ";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <img src=\"../include/barcode_BCGcode39.php?scale=1&text=-" . ($i + 5) . "-\">";
|
||||
$output2 .= " <br><br>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
endfor;
|
||||
|
||||
$scanCmdNameArray = array("-CLR-", "-BACK-");
|
||||
$scanCmdDescriptionArray = array("FELD LÖSCHEN", "LETZTES ZEICHEN ENTFERNEN");
|
||||
$tmpLen = count($scanCmdNameArray);
|
||||
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td colspan=\"3\">\n";
|
||||
$output2 .= " <br><br><br>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
|
||||
for ($i = 0; $i < $tmpLen; $i++) :
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <span class=\"f10bp1\" style=\"text-align: center;\">" . $scanCmdDescriptionArray[$i] . "</span>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <img src=\"../include/barcode_BCGcode39.php?scale=1&text=" . $scanCmdNameArray[$i] . "\">";
|
||||
$output2 .= " <br><br>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
endfor;
|
||||
|
||||
// Further commands
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td colspan=\"3\">\n";
|
||||
$output2 .= " <br><br>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <span class=\"f10bp1\" style=\"text-align: center;\">" . "AUFTRAG SUCHEN" . "</span>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
$output2 .= " <tr>\n";
|
||||
$output2 .= " <td>\n";
|
||||
$output2 .= " <img src=\"../include/barcode_BCGcode39.php?scale=1&text=" . "MV-OPENJOBS" . "\">";
|
||||
$output2 .= " <br><br>";
|
||||
$output2 .= " </td>\n";
|
||||
$output2 .= " </tr>\n";
|
||||
|
||||
$output2 .= "</table>\n";
|
||||
?>
|
||||
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>BARCODES DER SCAN COMMANDS</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php echo $phpMenuOut ?>
|
||||
<?php echo $phpReducedMenuOut ?>
|
||||
<?php echo $phpPageTitelOut ?>
|
||||
|
||||
<div class="maincontent" name="maincontent" id="maincontent">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="vertical-align: top;">
|
||||
<?php echo $output ?>
|
||||
</td>
|
||||
<td style="width: 150px;">
|
||||
|
||||
</td>
|
||||
<td style="vertical-align: top;">
|
||||
<?php echo $output2 ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user