using ComponentFactory.Krypton.Toolkit; using NXWMS.Client.Model.AppModels.Result.OutStock; using NXWMS.Client.Model.CoreModels; using NXWMS.Services; 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; namespace NXWMS.Forms.OutStock.frmOutstockChild { public partial class frmChildManualPutDown : KryptonForm { public frmChildManualPutDown() { InitializeComponent(); } #region 全局变量 /// /// 下架单信息 /// public WmsOutPutDownResult putDownResult { get; set; } #endregion private void btnConfirm_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ktb_ConfirmBinCode.Text)) { KryptonMessageBox.Show("请输入或扫描确认库位信息!"); return; } if (ktb_ConfirmBinCode.Text != ktb_PutDownBinCode.Text) { KryptonMessageBox.Show("确认库位和下架库位不一致,无法进行手动下架。请重新输入或扫描。"); return; } putDownResult.UPDATE_BY = AppConfig.UserLoginResult.UserInfo.UserId; var result = WmsInvoiceService.wmsOutPutDownService.ManualPutDownPallet(putDownResult); if (result.Status == OperateStatus.Success) { KryptonMessageBox.Show(result.Message); frmWmsOutPutDown.RefreshFrmHost(); this.Close(); } else { KryptonMessageBox.Show(result.Message); } } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } private void frmChildManualPutDown_Load(object sender, EventArgs e) { ktb_TrayCode.Text = this.putDownResult.TRAY_CODE; ktb_TrayCode.Enabled = false; ktb_PalletNo.Text = this.putDownResult.PALLET_CODE; ktb_PalletNo.Enabled = false; ktb_PutDownBinCode.Text = this.putDownResult.SBIN_CODE; ktb_PutDownBinCode.Enabled = false; ktb_ConfirmBinCode.Text = putDownResult.SBIN_CODE; } } }