|
|
@@ -269,10 +269,7 @@ namespace UAS_MES.Make
|
|
|
LoadData(sncode_1, sender, new KeyEventArgs(Keys.Enter));
|
|
|
continue;
|
|
|
}
|
|
|
- if (sp_barcoderule == "TSN")
|
|
|
- {
|
|
|
- dh.UpdateByCondition("makeserial", "ms_nextmacode='" + LabelDataGridView.Rows[i].Cells["cm_makecode"].Value.ToString() + "'", "ms_id=(select max(ms_id) from makeserial where ms_sncode='" + LabelDataGridView.Rows[i].Cells["New_BarCode"].Value.ToString() + "')");
|
|
|
- }
|
|
|
+ dh.UpdateByCondition("makeserial", "ms_nextmacode='" + LabelDataGridView.Rows[i].Cells["cm_makecode"].Value.ToString() + "'", "ms_id=(select max(ms_id) from makeserial where ms_sncode='" + LabelDataGridView.Rows[i].Cells["New_BarCode"].Value.ToString() + "')");
|
|
|
}
|
|
|
else
|
|
|
{
|