| | |
| | | using System; |
| | | using System.Data; |
| | | using System.Windows.Forms; |
| | | using System.Windows.Media.Animation; |
| | | using DevExpress.Emf; |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.Entity; |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using static DevExpress.XtraPrinting.Native.PageSizeInfo; |
| | | using System; |
| | | using System.Data; |
| | | |
| | | namespace Gs.DevApp.UserControl |
| | | { |
| | |
| | | lookSearchSupplier.EditValueChanged += |
| | | LookSearchSupplier_EditValueChanged; |
| | | } |
| | | public bool IsReadly { get; set; } |
| | | private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } } |
| | | |
| | | /// <summary> |
| | | /// 改变事件 |
| | |
| | | if (EditChanged != null) EditChanged(this, e); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读供应商 |
| | | /// </summary> |
| | | /// <param name="orgId"></param> |
| | | /// <param name="_dftVale"></param> |
| | | public void getSuppler(string orgId, string _dftVale = "") |
| | | { |
| | | lookSearchSupplier.EditValue = null; |
| | |
| | | lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; |
| | | if (!string.IsNullOrEmpty(_dftVale)) |
| | | SetIdOrCode(_dftVale); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | return; |
| | | } |
| | | // lookSearchSupplier.EditValue = ((Code.ToString().Trim())); |
| | | lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim())); |
| | | if (!string.IsNullOrEmpty(Code)) |
| | | lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim())); |
| | | } |
| | | |
| | | } |