|
|
@@ -361,6 +361,7 @@ namespace UAS_LabelMachine
|
|
|
//更新流水号
|
|
|
dh.UpdateByCondition("RULEMAXNUM", "rmn_maxnumber='" + (MaxNum) + "'", "rmn_nrcode='" + (pi_cardcode.Text == "" ? "Default" : pi_cardcode.Text) + "' and rmn_prefix='" + Prefix + "'");
|
|
|
LoadGridData(new object(), new EventArgs());
|
|
|
+ LabelInf.Rows[LabelInf.Rows.Count - 1].Selected = true;
|
|
|
//加载完数据之后进行容量的判断
|
|
|
int BoxNum = LabelInfDataTable.Select("pib_outboxcode2='" + OutBoxNum.Text + "'").Length;
|
|
|
if (BoxNum > OutboxCapacity.Value)
|
|
|
@@ -963,6 +964,7 @@ namespace UAS_LabelMachine
|
|
|
MidReport.PrintSettings.ShowDialog = false;
|
|
|
MidReport.PrintSettings.Printer = MidLabelPrinter.Text;
|
|
|
MidReport.Print();
|
|
|
+ SelectRowIndex = -1;
|
|
|
}
|
|
|
Properties.Settings.Default.MPrinter = MidLabelPrinter.Text;
|
|
|
Properties.Settings.Default.Save();
|
|
|
@@ -1048,11 +1050,6 @@ namespace UAS_LabelMachine
|
|
|
MessageBox.Show("未维护外箱标签", "提示");
|
|
|
}
|
|
|
|
|
|
- private void LoadGridData()
|
|
|
- {
|
|
|
- LoadGridData(new object(), new EventArgs());
|
|
|
- }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 自定义函数 加载明细行的数据,多处使用添加进函数
|
|
|
/// </summary>
|
|
|
@@ -1077,7 +1074,6 @@ namespace UAS_LabelMachine
|
|
|
if (LabelInf.Rows.Count > 0)
|
|
|
{
|
|
|
LabelInf.FirstDisplayedScrollingRowIndex = LabelInf.Rows.Count - 1;
|
|
|
- LabelInf.Rows[LabelInf.Rows.Count - 1].Selected = true;
|
|
|
}
|
|
|
double CollectNum = 0;
|
|
|
double OutNum = 0;
|