using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using WMS.Business; using WMS.Common; using WMS.Frm.Base; using WMS.Model.RK; namespace WMS.FrmRK.AutoRK { public partial class FrmRKTask : FormBase { public FrmRKTask() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { //string locid = gdv_Loc.GetRowCellValue(gdv_Loc.FocusedRowHandle, "LOCATION_ID").ToString(); //WebLockConfig.Instance.WebAutoRK.UpdateLocCtlSts(locid); ///写pLC } private void RkData() { List onListData = WMS.Business.IBussFactory.Instance().GetUpShelfGoodsData(); if (onListData != null) { bgcrkmx.DataSource = onListData; } } private void FrmRKTask_Load(object sender, EventArgs e) { RkData(); } string ctl = ""; private void ctrlButtons1_Click(object sender, EventArgs e) { if (ctl.Trim().Length == 0) { return; } if (SystemCommon.ShowMessageBoxResult("确认要删除入库任务") == DialogResult.OK) { string err= WMS.Business.IBussFactory.Instance().DeleteTaskData(ctl); if (err.Trim().Length > 0) { SystemCommon.ShowInfoMessageBox("删除失败" + err); return; } SystemCommon.ShowInfoMessageBox("删除成功"); ctl = ""; } } private void ctrlButtons2_Click(object sender, EventArgs e) { } private void ctrlButtons4_Click(object sender, EventArgs e) { RkData(); } private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { if (gridView1.RowCount > 0) { ctl = gridView1.GetFocusedRowCellValue("CTL").ToString(); } } } }