| | |
| | | lookSearchSupplier.Properties.NullText = "请选择"; |
| | | lookSearchSupplier.EditValueChanged += |
| | | LookSearchSupplier_EditValueChanged; |
| | | getSuppler(); |
| | | // getSuppler(); |
| | | } |
| | | |
| | | public bool IsReadly { get; set; } |
| | |
| | | if (EditChanged != null) EditChanged(this, e); |
| | | } |
| | | |
| | | private void getSuppler() |
| | | public void getSuppler(string orgId) |
| | | { |
| | | var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", " and 1=1"); |
| | | string _keyWhere = ""; |
| | | if (!string.IsNullOrEmpty(orgId)) |
| | | _keyWhere = " and a.erp_sczz ='" + orgId + "'"; |
| | | var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", |
| | | " and 1=1" + _keyWhere); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 线别 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string GetRwd() |
| | | { |
| | | var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; |
| | | if (row != null) |
| | | { |
| | | string id = row["daa021"].ToString(); |
| | | return id; |
| | | } |
| | | return ""; |
| | | } |
| | | } |
| | | } |