using ComponentFactory.Krypton.Toolkit; using NXWMS.Client.Model.AppModels.Result.Instock; 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.Instock.frmInstockChild { /// /// 手动上架 /// public partial class frmChildManualPutAway : KryptonForm { public frmChildManualPutAway() { InitializeComponent(); } #region 全局变量 /// /// 组盘码 /// public string TrayCodeMsg { get; set; } /// /// 托盘号 /// public string PalletNoMsg { get; set; } /// /// 上架单类型 /// public int PutAwayType { get; set; } public string EbinCode { get; set; } #endregion private void frmChildManualPutAway_Load(object sender, EventArgs e) { ktb_TrayCode.Text = this.TrayCodeMsg; ktb_TrayCode.Enabled = false; ktb_PalletNo.Text = this.PalletNoMsg; ktb_PalletNo.Enabled = false; ktb_BinCode.Text = EbinCode; } private void btnConfirm_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ktb_BinCode.Text)) { KryptonMessageBox.Show("请输入或扫描库位信息!"); return; } WmsInPutAwayResult wmsInPutAwayResult = new WmsInPutAwayResult(); wmsInPutAwayResult.PUTAWAY_TYPE = this.PutAwayType; wmsInPutAwayResult.TRAY_CODE = this.TrayCodeMsg; wmsInPutAwayResult.PALLET_CODE = this.PalletNoMsg; wmsInPutAwayResult.EBIN_CODE = this.ktb_BinCode.Text.Trim(); wmsInPutAwayResult.CREATE_BY = AppConfig.UserLoginResult.UserInfo.UserId; wmsInPutAwayResult.UPDATE_BY = AppConfig.UserLoginResult.UserInfo.UserId; var result = WmsInstockService.wmsInPutAwayService.ManualPutAwayPallet(wmsInPutAwayResult); if (result.Status == OperateStatus.Success) { KryptonMessageBox.Show(result.Message); frmWmsInPutAway.RefreshFrmHost(); this.Close(); } else { KryptonMessageBox.Show(result.Message); } } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } } }