Beispiel #1
0
        private void DeleteData()
        {
            //删除临时数据
            Mes_InWorkShopTempBLL InWorkShopTempBLL = new Mes_InWorkShopTempBLL();

            InWorkShopTempBLL.DeleteData("where I_StockCode = '" + cmbStock.Text + "' and I_WorkShop = '" + cmbWorkShop.Text + "' and I_OrderNo = '" + comOrderNo.Text + "'");
        }
Beispiel #2
0
 private void Delete()
 {
     try
     {
         string strID      = dataGridView1.Rows[dataGridView1.SelectedCells[0].RowIndex].Cells["ID"].Value.ToString();
         string strBarcode = dataGridView1.Rows[dataGridView1.SelectedCells[0].RowIndex].Cells["条码"].Value.ToString();
         Mes_InWorkShopTempBLL InWorkShopTempBLL = new Mes_InWorkShopTempBLL();
         string strSql = " where ID = '" + strID + "'";
         InWorkShopTempBLL.DeleteData(strSql);
         string[] str = strBarcode.Split(',');
         UpdateBarcode2(str[4]);
     }
     catch (Exception ex)
     {
         //MessageBox.Show("请选中某一行进行退仓库");
         lblTS.Text = "系统提示:请选中某一行进行退仓库";
     }
 }