//删除我的洗唛 protected void BtnDelMyXM_Click(object sender, DirectEventArgs e) { int Success = 0, Failed = 0; RowSelectionModel sm = Y_CareLabel_Grid.SelectionModel.Primary as RowSelectionModel; foreach (SelectedRow row in sm.SelectedRows) { Y_StyleCareLabel _Y_CareLabel = new Y_StyleCareLabel(); _Y_CareLabel.Id = int.Parse(row.RecordID); if (WMSFactory.Y_StyleCareLabel.Del(_Y_CareLabel)) { Success++; } else { Failed++; } } Y_CareLabel_Grid.Reload(); if (Failed > 0) { MsgBox.MessageShow("删除操作完成,成功" + Success.ToString() + "条,失败" + Failed.ToString() + "条!", "OK"); } else { MsgBox.NotifiShow("删除操作完成,成功" + Success.ToString() + "条,失败" + Failed.ToString() + "条!", "OK"); } }
//删除我的洗唛 protected void BtnDelMyXM_Click(object sender, DirectEventArgs e) { int Success = 0, Failed = 0; RowSelectionModel sm = Y_CareLabel_Grid.SelectionModel.Primary as RowSelectionModel; foreach (SelectedRow row in sm.SelectedRows) { Y_StyleCareLabel _Y_CareLabel = new Y_StyleCareLabel(); _Y_CareLabel.Id = int.Parse(row.RecordID); if (WMSFactory.Y_StyleCareLabel.Del(_Y_CareLabel)) Success++; else Failed++; } Y_CareLabel_Grid.Reload(); if (Failed > 0) MsgBox.MessageShow("删除操作完成,成功" + Success.ToString() + "条,失败" + Failed.ToString() + "条!", "OK"); else MsgBox.NotifiShow("删除操作完成,成功" + Success.ToString() + "条,失败" + Failed.ToString() + "条!", "OK"); }
//保存已经选择的图片 protected void BtnSaveSelected_Click(object sender, DirectEventArgs e) { if (StyleIDHidden.Text == "") { MsgBox.MessageShow("请先输入款式编号,然后单击查询按钮!", "ERROR"); return; } RowSelectionModel sm = CL_Grid.SelectionModel.Primary as RowSelectionModel; foreach (SelectedRow row in sm.SelectedRows) { Y_StyleCareLabel _Y_CareLabel = new Y_StyleCareLabel(); _Y_CareLabel.LbId = int.Parse(row.RecordID); _Y_CareLabel.StyleId = StyleIDHidden.Text; WMSFactory.Y_StyleCareLabel.Add(_Y_CareLabel); } CL_Win.Hide(); CL_WinEdit.Hide(); Y_CareLabel_Grid.Reload(); }
//保存已经选择的图片 protected void BtnSaveSelected_Click(object sender, DirectEventArgs e) { if (StyleIDHidden.Text == "") { MsgBox.MessageShow("请先输入款式编号,然后单击查询按钮!", "ERROR"); return; } RowSelectionModel sm = CL_Grid.SelectionModel.Primary as RowSelectionModel; foreach (SelectedRow row in sm.SelectedRows) { Y_StyleCareLabel _Y_CareLabel = new Y_StyleCareLabel(); _Y_CareLabel.LbId = int.Parse(row.RecordID); _Y_CareLabel.StyleId = StyleIDHidden.Text; WMSFactory.Y_StyleCareLabel.Add(_Y_CareLabel); } CL_Win.Hide(); CL_WinEdit.Hide(); Y_CareLabel_Grid.Reload(); }