private void btn_SCZKD_Click(object sender, EventArgs e) { try { int[] rows = gv_ZGSJ.GetSelectedRows(); string idstr = ""; foreach (var item in rows) { DataRow dr = gv_ZGSJ.GetDataRow(item); idstr += "'" + dr["C_ID"].ToString() + "',"; if (dr["C_LINEWH_CODE"].ToString() == cbo_CK1.EditValue.ToString()) { MessageBox.Show("不能库内转库!"); return; } } idstr = idstr.Substring(0, idstr.Length - 1); string message = dal_Interface_FR.SENDZKD(idstr, cbo_CK1.EditValue.ToString()); if (message == "1") { MessageBox.Show("发送条码成功!"); } else { MessageBox.Show(message); dal_Interface_FR.RFLOG("转库单", message); } Query("E"); QueryM("M"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void btn_SCZKD_Click(object sender, EventArgs e) { int[] rows = gv_ZGSJ.GetSelectedRows(); string idstr = ""; foreach (var item in rows) { DataRow dr = gv_ZGSJ.GetDataRow(item); idstr += "'" + dr["C_ID"].ToString() + "',"; } idstr = idstr.Substring(0, idstr.Length - 1); dal_Interface_FR.SENDZKD(idstr, cbo_CK1.EditValue.ToString()); }