|
|
@@ -1075,6 +1075,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
if (EnablePrint)
|
|
|
{
|
|
|
+ int selectedindex = OutBoxCombox.SelectedIndex;
|
|
|
for (int i = 0; i < OutBoxCombox.Items.Count; i++)
|
|
|
{
|
|
|
OutBoxCombox.SelectedIndex = i;
|
|
|
@@ -1099,6 +1100,7 @@ namespace UAS_LabelMachine
|
|
|
OutReport.PrintSettings.Printer = OutBoxPrinter.Text;
|
|
|
OutReport.Print();
|
|
|
}
|
|
|
+ OutBoxCombox.SelectedIndex = selectedindex;
|
|
|
Properties.Settings.Default.OPrinter = OutBoxPrinter.Text;
|
|
|
Properties.Settings.Default.Save();
|
|
|
dh.UpdateByCondition("prodiobarcode", "pib_outifprint=-1", "pib_inoutno='" + pi_inoutno.Text + "' and pib_outboxcode2='" + pib_outboxcode2 + "'");
|