|
|
@@ -142,8 +142,13 @@ namespace UAS_LabelMachine
|
|
|
adh = SystemInf.adh;
|
|
|
back_adh = SystemInf.back_adh;
|
|
|
CheckForIllegalCrossThreadCalls = false;
|
|
|
- pi_inoutno.Focus();
|
|
|
+ pi_inoutno.TableName = "prodinout";
|
|
|
+ pi_inoutno.Field = "pi_inoutno";
|
|
|
+ pi_inoutno.ValueField = "pi_inoutno";
|
|
|
+ pi_inoutno.Condition = "pi_class in('出货单','拨出单')";
|
|
|
+
|
|
|
|
|
|
+ pi_inoutno.Focus();
|
|
|
Point pt = new Point();
|
|
|
//禁止所有列的排序
|
|
|
foreach (DataGridViewColumn dgv in LabelInf.Columns)
|
|
|
@@ -162,7 +167,7 @@ namespace UAS_LabelMachine
|
|
|
OutBoxCapacity.Value = Properties.Settings.Default.OutboxCapacity;
|
|
|
asc.controllInitializeSize(this);
|
|
|
asc.controlAutoSize(this);
|
|
|
-
|
|
|
+ pi_inoutno.BringToFront();
|
|
|
//实例化打印进程
|
|
|
try
|
|
|
{
|
|
|
@@ -2663,5 +2668,26 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
|
int.TryParse(Process_outboxcode.Text, out Outbox2);
|
|
|
}
|
|
|
+
|
|
|
+ private void LabelPrinter_UserOnSelectIndexChange(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ switch ((sender as Control).Parent.Name)
|
|
|
+ {
|
|
|
+ case "SingleLabelPrinter":
|
|
|
+ if (SingleDoc != null)
|
|
|
+ SingleDoc.Printer.SwitchTo(SingleLabelPrinter.Text);
|
|
|
+ break;
|
|
|
+ case "MidLabelPrinter":
|
|
|
+ if (MidDoc != null)
|
|
|
+ MidDoc.Printer.SwitchTo(MidLabelPrinter.Text);
|
|
|
+ break;
|
|
|
+ case "OutBoxPrinter":
|
|
|
+ if (OutBoxDoc != null)
|
|
|
+ OutBoxDoc.Printer.SwitchTo(OutBoxLabelPrint.Text);
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|