| | |
| | | using System; |
| | | using System.Data; |
| | | using System.Windows.Media.Animation; |
| | | using DevExpress.Emf; |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | lookSearchSupplier.Properties.NullText = "请选择"; |
| | | lookSearchSupplier.EditValueChanged += |
| | | LookSearchSupplier_EditValueChanged; |
| | | getSuppler(); |
| | | } |
| | | public bool IsReadly { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 改变事件 |
| | | /// </summary> |
| | |
| | | if (EditChanged != null) EditChanged(this, e); |
| | | } |
| | | |
| | | private void getSuppler() |
| | | public void getSuppler(string orgId) |
| | | { |
| | | var _obj = new |
| | | { |
| | | currentPage = 1, |
| | | everyPageSize = 999999, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | keyWhere = " and a.FSubsidiary ='" + orgId + "'", |
| | | }; |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | |
| | | var dt = rtn.rtnData.list; |
| | | lookSearchSupplier.Properties.DataSource = dt; |
| | | lookSearchSupplier.Properties.DisplayMember = "suppName"; |
| | | lookSearchSupplier.Properties.ValueMember = "id"; |
| | | |
| | | lookSearchSupplier.Properties.ValueMember = "id"; |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | lookSearchSupplier.EditValue = null; |
| | | return; |
| | | } |
| | | // lookSearchSupplier.EditValue = ((Code.ToString().Trim())); |
| | | lookSearchSupplier.EditValue = Int64.Parse((Code.ToString().Trim())); |
| | | } |
| | | |
| | | } |
| | | } |