mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-02-01 15:21:13 +01:00
lageretiketten improvements
This commit is contained in:
parent
e10cfe6fbd
commit
8acb138dad
@ -144,25 +144,29 @@ class EtikettenPDF extends SuperFPDF {
|
||||
break;
|
||||
|
||||
case "barcode":
|
||||
if((String)($items->attributes()->type)=="E30") {
|
||||
|
||||
if ((String)($items->attributes()->type)=="E30") {
|
||||
$this->EAN13($items->attributes()->x,$items->attributes()->y, $items[0],$items->attributes()->size);
|
||||
}
|
||||
else if((String)($items->attributes()->type)=="Code128" || (String)($items->attributes()->type)=="1") {
|
||||
else if ((String)($items->attributes()->type)=="Code128" || (String)($items->attributes()->type)=="1") {
|
||||
$this->Code128($items->attributes()->x, $items->attributes()->y, $items[0], $items->attributes()->width, $items->attributes()->size);
|
||||
}
|
||||
else if((String)($items->attributes()->type)=="GS1-128" || (String)($items->attributes()->type)=="1") {
|
||||
//$items[0] = "!FNC1!0104012345012345!FNC1!081231!FNC1!1012345";
|
||||
|
||||
$tmp =explode("!FNC1!",$items[0]);
|
||||
$codewithfnc1 = implode(chr(206),$tmp);
|
||||
|
||||
//echo chr(206)."0104012345012345".chr(206)."081231".chr(206)."1012345";
|
||||
//$this->Code128($items->attributes()->x, $items->attributes()->y, chr(206)."0104012345012345".chr(206)."081231".chr(206)."1012345", $items->attributes()->width, $items->attributes()->size); // 206 = FNC1
|
||||
$this->Code128($items->attributes()->x, $items->attributes()->y, $codewithfnc1, $items->attributes()->width, $items->attributes()->size); // 206 = FNC1
|
||||
//$this->Code128($items->attributes()->x, $items->attributes()->y, chr(206).$items[0], $items->attributes()->width, $items->attributes()->size); // 206 = FNC1
|
||||
else if ((String)($items->attributes()->type)=="GS1-128") {
|
||||
//$items[0] = "!FNC1!0104012345012345!FNC1!081231!FNC1!1012345";
|
||||
$tmp =explode("!FNC1!",$items[0]);
|
||||
$codewithfnc1 = implode(chr(206),$tmp);
|
||||
//echo chr(206)."0104012345012345".chr(206)."081231".chr(206)."1012345";
|
||||
//$this->Code128($items->attributes()->x, $items->attributes()->y, chr(206)."0104012345012345".chr(206)."081231".chr(206)."1012345", $items->attributes()->width, $items->attributes()->size); // 206 = FNC1
|
||||
$this->Code128($items->attributes()->x, $items->attributes()->y, $codewithfnc1, $items->attributes()->width, $items->attributes()->size); // 206 = FNC1
|
||||
//$this->Code128($items->attributes()->x, $items->attributes()->y, chr(206).$items[0], $items->attributes()->width, $items->attributes()->size); // 206 = FNC1
|
||||
}
|
||||
else { // standard auf 2 bzw default
|
||||
$this->Code39($items->attributes()->x,$items->attributes()->y, $items[0], 0.5, $items->attributes()->size);//, $printText=false)
|
||||
else { // standard Type 2, Code39
|
||||
if (isset($items->attributes()->linewidth)) {
|
||||
$baseline = $items->attributes()->linewidth;
|
||||
} else {
|
||||
$baseline = 0.5;
|
||||
}
|
||||
$this->Code39($items->attributes()->x,$items->attributes()->y, $items[0], $baseline, $items->attributes()->size);//, $printText=false)
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -9,6 +9,18 @@
|
||||
<div id="tabs-1">
|
||||
[MESSAGE]
|
||||
[TAB1]
|
||||
<form method="post" action="#" id="frmorder">
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
<fieldset>
|
||||
<legend>{|Auswahl Lagerplätze|}</legend>
|
||||
</fieldset>
|
||||
[TABELLE]
|
||||
<fieldset>
|
||||
<input type="checkbox" id="auswahlalle" onchange="alleauswaehlen();" /> {|alle markieren|}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row-height">
|
||||
@ -17,7 +29,13 @@
|
||||
|
||||
<fieldset>
|
||||
<legend>{|Auswahl Etiketten|}</legend>
|
||||
[FORMULAR]
|
||||
<table class="mkTableFormular">
|
||||
<tr><td>{|Etikett|}:</td><td><select name="etikettenauswahl" id="etikettenauswahl">[ETIKETTENOPTIONS]</select></td></tr>
|
||||
<tr><td>{|Drucker|}:</td><td><select name="etikettendrucker" id="etikettendrucker">[DRUCKEROPTIONS]</select></td></tr>
|
||||
<tr><td>
|
||||
<input type="submit" class="btnBlue" name="drucken" id="drucken" value="Drucken" />
|
||||
</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
@ -36,7 +54,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- spalte 2 zu -->
|
||||
|
||||
<form>
|
||||
[TAB1NEXT]
|
||||
</div>
|
||||
|
||||
@ -93,8 +111,12 @@ function Etikettendrucken(id, anzahl) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
function alleauswaehlen()
|
||||
{
|
||||
var wert = $('#auswahlalle').prop('checked');
|
||||
$('#lagerplatz_etiketten').find(':checkbox').prop('checked',wert);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@ -1060,6 +1060,47 @@ class Lager extends GenLager {
|
||||
JOIN lager_platz lp2 ON lp2.id = vorschlag.storage_area_id";
|
||||
|
||||
break;
|
||||
case 'lagerplatz_etiketten':
|
||||
$allowed['lager'] = array('platz');
|
||||
|
||||
// headings
|
||||
|
||||
$heading = array('','Lager', 'Bezeichnung', 'Nachschublager', 'Verbrauchslager','POS Lager', 'kein Auto-Versand','Volumen','Regalart','Kategorie','Kommissions- / Produktionslager','Menü');
|
||||
|
||||
$width = array('1%','15%','15%', '10%', '10%','5%','5%','10%','10%','5%','10%','8%','1%');
|
||||
$findcols = array('lp.id','l.bezeichnung','lp.kurzbezeichnung', "IF(lp.autolagersperre,'kein Versand aus diesem Lager','')", "IF(lp.verbrauchslager,'ja','')","IF(lp.poslager,'ja','')","IF(lp.sperrlager,'ja','')",'breite','regalart','abckategorie','a.name','id');
|
||||
$searchsql = array('lp.kurzbezeichnung','regalart','abckategorie','a.name');
|
||||
$defaultorder = 4;
|
||||
$defaultorderdesc = 1;
|
||||
$alignright = [10];
|
||||
|
||||
$menu = "<table><tr><td nowrap><a href=\"index.php?module=lager&action=platzeditpopup&id=%value%\"><img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"></a>"
|
||||
// . " <a href=\"#\" onclick=DeleteDialog(\"index.php?module=lager&action=deleteplatz&id=%value%\");><img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\"></a>"
|
||||
// . " <a href=\"#\" onclick=PrintDialog(\"index.php?module=lager&action=regaletiketten&id=%value%\");><img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/labelprinter.png\" border=\"0\"></a>"
|
||||
."</td></tr></table>";
|
||||
|
||||
$box = "CONCAT('<input type=\"checkbox\" name=\"auswahl[]\" value=\"',lp.id,'\" />') AS `auswahl`";
|
||||
|
||||
// SQL statement
|
||||
$sql = "SELECT SQL_CALC_FOUND_ROWS
|
||||
lp.id,
|
||||
$box,
|
||||
l.bezeichnung,
|
||||
lp.kurzbezeichnung, if(lp.autolagersperre,'kein Versand aus diesem Lager','') as autolagersperre,
|
||||
if(lp.verbrauchslager,'ja','') as verbrauchslager,
|
||||
if(lp.poslager,'ja','') as poslager,
|
||||
if(lp.sperrlager,'ja','') as sperrlager,
|
||||
if(lp.laenge!=0.0,CONCAT(lp.laenge,'/',lp.breite,'/',lp.hoehe),'-') as volumen,
|
||||
lp.regalart,lp.abckategorie, a.name,
|
||||
lp.id as menu
|
||||
FROM lager_platz lp
|
||||
INNER JOIN lager l ON l.id = lp.lager
|
||||
LEFT JOIN adresse a ON a.id=lp.adresse ";
|
||||
|
||||
// fester filter
|
||||
$where = " lp.geloescht=0 AND lp.id!=0";
|
||||
$count = "SELECT COUNT(id) FROM lager_platz WHERE geloescht=0";
|
||||
break;
|
||||
}
|
||||
|
||||
$erg = [];
|
||||
@ -4308,7 +4349,7 @@ $check_charge=="2" || $check_charge=="1" || $check_mhd=="1")
|
||||
public function LagerEtikettenlist()
|
||||
{
|
||||
$this->app->erp->Headlines('','Etiketten');
|
||||
|
||||
/*
|
||||
$this->app->YUI->AutoComplete('von','lagerplatz');
|
||||
$this->app->YUI->AutoComplete('bis','lagerplatz');
|
||||
|
||||
@ -4359,19 +4400,48 @@ $check_charge=="2" || $check_charge=="1" || $check_mhd=="1")
|
||||
echo json_encode(array('status'=>1));
|
||||
$this->app->ExitXentral();
|
||||
}
|
||||
*/
|
||||
|
||||
// Process multi action
|
||||
$auswahl = $this->app->Secure->GetPOST('auswahl');
|
||||
$drucken = $this->app->Secure->GetPOST('drucken');
|
||||
$selectedIds = [];
|
||||
if(!empty($auswahl)) {
|
||||
foreach($auswahl as $selectedId) {
|
||||
$selectedId = (int)$selectedId;
|
||||
if ($selectedId > 0) {
|
||||
$selectedIds[] = $selectedId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$etikettenauswahl = $this->app->Secure->GetPOST('etikettenauswahl');
|
||||
$etikettendrucker = $this->app->Secure->GetPOST('etikettendrucker');
|
||||
|
||||
if ($drucken) {
|
||||
foreach ($selectedIds as $selectedId) {
|
||||
// function EtikettenDrucker($kennung,$anzahl,$tabelle,$id,$variables="",$xml="",$druckercode="",$filenameprefix="",$xmlaspdf=false,$adresse=0,$verwendenals="")
|
||||
$this->app->erp->EtikettenDrucker($etikettenauswahl,1,'lager_platz',$selectedId,'','',$etikettendrucker);
|
||||
}
|
||||
}
|
||||
|
||||
$this->LagerHauptmenu();
|
||||
$etiketten = $this->app->erp->GetSelectEtiketten("lagerplatz_klein",$etikettenauswahl);
|
||||
if($etiketten=="") $etiketten="<option>Standard</option>";
|
||||
|
||||
$this->app->Tpl->Set('ETIKETTENOPTIONS',$etiketten);
|
||||
|
||||
$drucker = $this->app->erp->GetSelectEtikettenDrucker($etikettendrucker);
|
||||
$this->app->Tpl->Set('DRUCKEROPTIONS',$drucker);
|
||||
|
||||
$druckbutton = "<input type=\"button\" onclick=\"Etikettendrucken()\" class=\"btnBlue\" value=\"{|Drucken|}\">";
|
||||
$this->app->Tpl->Set('FORMULAR',"<form action=\"\" method=\"post\"><table class=\"mkTableFormular\">
|
||||
/* $this->app->Tpl->Set('FORMULAR',"<form action=\"\" method=\"post\"><table class=\"mkTableFormular\">
|
||||
<tr><td>{|Lagerplatz|} ({|von|}):</td><td><input type=\"text\" name=\"von\" id=\"von\" value=\"$von\"></td></tr>
|
||||
<tr><td>{|Lagerplatz|} ({|bis|}):</td><td><input type=\"text\" name=\"bis\" id=\"bis\" value=\"$bis\"> $druckbutton</td></tr>
|
||||
<tr><td>{|Etikett|}:</td><td><select name=\"etikettenauswahl\" id=\"etikettenauswahl\">".$etiketten."</select></td></tr>
|
||||
<tr><td>{|Drucker|}:</td><td><select name=\"etikettendrucker\" id=\"etikettendrucker\">".$drucker."</select></td></tr></table>
|
||||
</form><br><br>");
|
||||
</form><br><br>");*/
|
||||
|
||||
$this->app->YUI->TableSearch('TABELLE', 'lagerplatz_etiketten', 'show','','',basename(__FILE__), __CLASS__);
|
||||
|
||||
$this->app->Tpl->Parse('PAGE', 'lager_etikettenlist.tpl');
|
||||
}
|
||||
|
@ -35,7 +35,9 @@
|
||||
<br>
|
||||
<table>
|
||||
<tr><td width="150">{|Textbaustein|}:</td><td><line x="5" y="1" size="3">Test</line></td></tr>
|
||||
<tr><td width="150">{|Barcode|}:</td><td><barcode x="5" y="1" size="3" type="1">Test</barcode></td></tr>
|
||||
<tr><td width="150">{|Barcode Code 39 (Standard)|}:</td><td><barcode x="5" y="1" linewidth="0.5" size="3" type="2">Test</barcode></td></tr>
|
||||
<tr><td width="150">{|Barcode Code 128|}:</td><td><barcode x="5" y="1" size="3" type="1">Test</barcode></td></tr>
|
||||
<tr><td width="150">{|Barcode Code GS1-128|}:</td><td><barcode x="5" y="1" size="3" type="GS1-128">Test</barcode></td></tr>
|
||||
<tr><td width="150" valign="top">{|QR-Code|}:</td><td><qrcode x="5" y="1" size="3" type="3">Test</qrcode><br /><br /></td></tr>
|
||||
<tr><td width="150" valign="top">{|Artikel klein|}:</td><td>
|
||||
<label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user