private void GetRecordBarCodeInfo() { if (string.IsNullOrEmpty(this.WhCodeInfo)) { MessageErp.ErrorMessage(ErpUIText.Get("ERP_ErrWhCodeRequired")); return; } ComBarCodeLensInfo _BC = ComBarCodeLens.GetLensInfoFromBarCode(this.BarCodeInfo); if (null != _BC) { this.MsgInfo = _BC.LensCode + " | SPH:" + _BC.SPH.ToString() + " | CYL:" + _BC.CYL.ToString() + " | ADD:" + _BC.X_ADD.ToString() + _BC.F_LR; this.BarCodeInfo = ""; this.SaveBarCode(_BC); } }
private void ExecuteCmdBarCodeLEnter(KeyEventArgs parameter) { if (parameter.Key != Key.Enter) { return; } try { var _LensL = ComBarCodeLens.GetLensInfoFromBarCode(this.BillMain.BarCodeL); this.BillMain.LensCodeL = _LensL.LensCode; this.BillMain.SPHL = _LensL.SPH; this.BillMain.CYLL = _LensL.CYL; this.BillMain.X_ADDL = _LensL.X_ADD; this.IsFocusBillBarCode = true; } catch { } }