Initial commit
This commit is contained in:
53
Handler/Project/Dialog/fManualPrint0.cs
Normal file
53
Handler/Project/Dialog/fManualPrint0.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project.Dialog
|
||||
{
|
||||
public partial class fManualPrint0 : Form
|
||||
{
|
||||
public string NewID { get; set; }
|
||||
public fManualPrint0()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void fNewReelID_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
int qty = 0;
|
||||
int.TryParse(tbQty.Text, out qty);
|
||||
string rid, lot, manu, mfg, partnum,sid;
|
||||
rid = lot = manu = mfg =sid= partnum = "";
|
||||
if (tbRid.Text.isEmpty() == false) rid = tbRid.Text.Trim();
|
||||
if (tbSid.Text.isEmpty() == false) sid = tbSid.Text.Trim();
|
||||
if (tbMfg.Text.isEmpty() == false) mfg = tbMfg.Text.Trim();
|
||||
if (tbPart.Text.isEmpty() == false) partnum = tbPart.Text.Trim();
|
||||
if (tbLot.Text.isEmpty() == false) lot = tbLot.Text.Trim();
|
||||
if (tbManu.Text.isEmpty() == false) manu = tbManu.Text.Trim();
|
||||
var rlt = PUB.PrinterR.Print(new Class.Reel
|
||||
{
|
||||
id = rid,
|
||||
lot = lot,
|
||||
manu = manu,
|
||||
mfg = mfg,
|
||||
partnum =partnum,
|
||||
qty = qty,
|
||||
sid = sid,
|
||||
}, true, false);
|
||||
|
||||
PUB.log.Add($"manual print:{PUB.PrinterR.qrData}");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user