示例#1
0
文件: Frm_Out.cs 项目: TGHGH/MES-CAR
 private void btn_Out_Click(object sender, EventArgs e)
 {
     if (this.Lvw_Task.CheckedItems.Count == 0)
     {
         MessageBox.Show("请选择要打印的生产任务", "出库管理", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         Invoice invoice = new Invoice();
         string taskStr = "";
         foreach (ListViewItem item in this.Lvw_Task.Items)
         {
             if (item.Checked)
             {
                 taskStr = taskStr + item.Text.Trim() + "-";
                 item.Remove();
             }
         }
         invoice.NewSend(taskStr);
         MessageBox.Show("出库成功", "出库管理", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
         this.Lvw_TaskNp.Items.Clear();
         this.btn_Refresh_Click(this, new EventArgs());
     }
 }