38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
@model HHWMS.Web.ContainerListVM
|
|
@inject IStringLocalizer<Program> Localizer;
|
|
|
|
<wt:searchpanel vm="@Model" reset-btn="true">
|
|
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
|
<wt:combobox field="Searcher.ZoneId" items="Searcher.AllZones" empty-text="@Localizer["Sys.All"]" />
|
|
<wt:textbox field="Searcher.Code"/>
|
|
<wt:combobox field="Searcher.Type" items="ContainerType"/>
|
|
<wt:combobox field="Searcher.IsLock"/>
|
|
<wt:combobox field="Searcher.Status" items="ContainerStatus"/>
|
|
<wt:textbox field="Searcher.LocationCode"/>
|
|
<wt:textbox field="Searcher.Length"/>
|
|
<wt:textbox field="Searcher.Width"/>
|
|
<wt:textbox field="Searcher.Height"/>
|
|
</wt:row>
|
|
</wt:searchpanel>
|
|
<wt:grid vm="@Model" url="/configs/Container/Search"/>
|
|
|
|
<script>
|
|
let template =
|
|
{"panels":[{"index":0,"height":60,"width":100,"paperHeader":43.5,"paperFooter":170.07874015748033,"printElements":[{"options":{"left":55.5,"top":25.5,"height":106.5,"width":142.5,"title":"code","testData":"C0006","field":"code","fontSize":18,"textAlign":"center","lineHeight":24,"textType":"barcode"},"printElementType":{"type":"text"}}],"paperNumberLeft":258,"paperNumberTop":144,"paperNumberDisabled":true}]};
|
|
|
|
let printData = [];
|
|
|
|
function print(ids, datas) {
|
|
datas.forEach(function (value, index, arr) {
|
|
printData.push({code: value.Code})
|
|
});
|
|
|
|
hiprint.init();
|
|
var hiprintTemplate = new hiprint.PrintTemplate({
|
|
template: template
|
|
});
|
|
hiprintTemplate.print(printData);
|
|
printData = [];
|
|
}
|
|
</script>
|