| | |
| | | /// </summary> |
| | | /// <param name="orgId"></param> |
| | | /// <param name="_dftVale"></param> |
| | | public void getSuppler(string orgId, string _dftVale = "") |
| | | public void getSuppler(string orgId,string depotId, string _dftVale = "") |
| | | { |
| | | lookSearchSupplier.EditValue = null; |
| | | string _keyWhere = ""; |
| | | if (!string.IsNullOrEmpty(orgId)) |
| | | _keyWhere = " and a.FSubsidiary ='" + orgId + "'"; |
| | | if (!string.IsNullOrEmpty(orgId) && !string.IsNullOrEmpty(depotId)) |
| | | _keyWhere = " and a.FSubsidiary ='" + orgId + "' and b.depot_guid ='" + depotId + "'"; |
| | | var pgq = new PageQueryModel(1, 999999, "b.xh", "asc", "", |
| | | " and is_ng='A'" + _keyWhere); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | |
| | | var strReturn = UtilityHelper.HttpPost("", |
| | | "MesDepotSectionsManager/GetListPage", json); |
| | | var rtn = UtilityHelper.ReturnToTablePage(strReturn); |
| | | var dt = rtn.rtnData.list; |
| | | var dt = rtn.rtnData.list; |
| | | lookSearchSupplier.Properties.DataSource = dt; |
| | | lookSearchSupplier.Properties.DisplayMember = "DepotSectionCode"; |
| | | lookSearchSupplier.Properties.ValueMember = "Guid"; |
| | | lookSearchSupplier.Properties.DisplayMember = "depotSectionCode"; |
| | | lookSearchSupplier.Properties.ValueMember = "guid"; |
| | | lookSearchSupplier.ForceInitialize(); |
| | | lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup; |
| | | if (!string.IsNullOrEmpty(_dftVale)) |
| | |
| | | var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; |
| | | if (row != null) |
| | | { |
| | | string id = row["DepotId"].ToString(); |
| | | string id = row["Guid"].ToString(); |
| | | return id; |
| | | } |
| | | return ""; |
| | |
| | | var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; |
| | | if (row != null) |
| | | { |
| | | string id = row["DepotCode"].ToString(); |
| | | string id = row["DepotSectionCode"].ToString(); |
| | | return id; |
| | | } |
| | | return ""; |
| | |
| | | return; |
| | | } |
| | | if (!string.IsNullOrEmpty(Code)) |
| | | lookSearchSupplier.EditValue = Int64.Parse(((Code.ToString().Trim()))); |
| | | lookSearchSupplier.EditValue = (((Code.ToString().Trim()))); |
| | | } |
| | | |
| | | /// <summary> |