private void btnComplete_Click(object sender, EventArgs e) { buttonForceComplete_Click(null, null); if (modelList.Any(it => it.ScanCount != it.WorkshopQuantity)) { MessageBox.Show("存在条码未扫完", "消息提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1); return; } var result = MessageBox.Show("确认-配盘名称【" + StaticModel.MathchPalletName + "】完成拼盘?", "消息提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1); if (result == DialogResult.OK) { AssortedService.CreateAssortedBillByScanBarcode(StaticModel.ScanBarCode, StaticModel.MathchPalletCode, StaticModel.MathchPalletPlanNo, Glob.GetAssortedProductModelList()); FrmScanBarCode.Show(); this.Dispose(); this.Close(); } }
private void CreateFrmScanBar() { string mathchPalletName = this.lvwMathPalletList.FocusedItem.SubItems[0].Text.ToString(); FrmScanBarCode = new FrmGetMatchPalletCode(this, AssortedService, mathchPalletName); StaticModel.ScanBarCode = ""; StaticModel.MathchPalletName = mathchPalletName; StaticModel.MathchPalletPlanNo = this.lvwMathPalletList.FocusedItem.SubItems[2].Text; StaticModel.MathchPalletCode = this.lvwMathPalletList.FocusedItem.SubItems[3].Text.ToString(); FrmScanBarCode.Show(); this.Hide(); }