99 lines
2.6 KiB
C#
99 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using WMS.Business;
|
|
using WMS.Business.CK;
|
|
using WMS.Common;
|
|
using WMS.Frm.Base;
|
|
using WMS.Model.Base;
|
|
using WMS.Model.CK;
|
|
using WMS.Model.RK;
|
|
|
|
namespace WMS.FrmCK
|
|
{
|
|
public partial class FrmInTsk : FormBase
|
|
{
|
|
List<StorageAreaLocationModel> goodsInfo = new List<StorageAreaLocationModel>();
|
|
public FrmInTsk()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
private void Bindata()
|
|
{
|
|
goodsInfo = IBussFactory<BussPickingWaveGoods>.Instance().GetLocHand();
|
|
if (goodsInfo != null)
|
|
{
|
|
bindingSource1.DataSource = goodsInfo;
|
|
|
|
}
|
|
}
|
|
void Bindtask()
|
|
{
|
|
List<PickingWaveGoodsModel> taskData= IBussFactory<BussPickingWaveGoods>.Instance().GetTaskdataHand();
|
|
if (taskData != null)
|
|
{
|
|
bindingSource2.DataSource = taskData;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
string outStand = string.Empty;
|
|
private void ctrlButtons1_Click(object sender, EventArgs e)
|
|
{
|
|
if (gdv_Kcmx.RowCount == 0)
|
|
{
|
|
return;
|
|
}
|
|
if (gdv_Kcmx.FocusedRowHandle < 0)
|
|
{
|
|
gdv_Kcmx.FocusedRowHandle = 0;
|
|
return;
|
|
}
|
|
if (SystemCommon.ShowMessageBoxResult("State completion Confirmation") == DialogResult.OK)
|
|
{
|
|
string locId = gdv_Kcmx.GetFocusedRowCellValue("LOCATION_ID").ToString();
|
|
|
|
//IBussFactory<BussPickingWaveGoods>.Instance().HandDataLoc(locId, outStand);
|
|
Bindtask();
|
|
Bindata();
|
|
}
|
|
}
|
|
|
|
|
|
private void FrmInTsk_Load(object sender, EventArgs e)
|
|
{
|
|
Bindata();
|
|
Bindtask();
|
|
}
|
|
|
|
private void ctrlButtons2_Click(object sender, EventArgs e)
|
|
{
|
|
if (gridView1.RowCount < 0)
|
|
{
|
|
return;
|
|
}
|
|
if (gridView1.FocusedRowHandle < 0)
|
|
{
|
|
return;
|
|
}
|
|
string locd = gridView1.GetFocusedRowCellValue("LOC_ID").ToString();
|
|
string errText = IBussFactory<BussPickingWaveGoods>.Instance().DeleHandLoc(locd);
|
|
if (errText.Trim().Length > 0)
|
|
{
|
|
SystemCommon.ShowInfoMessageBox(errText);
|
|
return;
|
|
}
|
|
Bindata();
|
|
Bindtask();
|
|
}
|
|
}
|
|
}
|