public List <string> GetStaticDataMappingAttributeValuesForFilter(MDMSVC.DC_SupplierImportAttributeValues_RQ RQ) { object result = null; ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["UploadStaticDataValueFilter_Get"], RQ, typeof(MDMSVC.DC_SupplierImportAttributeValues_RQ), typeof(List <string>), out result); return(result as List <string>); }
private string ValidFile() { string strFileType = string.Empty; if (ddlSupplierList.SelectedValue != "0" && ddlEntityList.SelectedValue != "0") { MDMSVC.DC_SupplierImportAttributeValues_RQ RQ = new MDMSVC.DC_SupplierImportAttributeValues_RQ(); RQ.PageNo = 0; RQ.PageSize = 1; RQ.AttributeType = "FileDetails"; RQ.AttributeValue = "FORMAT"; RQ.Status = "ACTIVE"; RQ.Entity = ddlEntityList.SelectedItem.Text; RQ.Supplier_Id = Guid.Parse(ddlSupplierList.SelectedItem.Value); var res = _objMappingSVCs.GetStaticDataMappingAttributeValues(RQ); if (res != null && res.Count > 0) { if (res.First().AttributeName == "TEXT") { strFileType = "txt"; } else if (res.First().AttributeName == string.Empty) { strFileType = string.Empty; } else { strFileType = res.First().AttributeName.ToLower(); } } } else { BootstrapAlert.BootstrapAlertMessage(dvmsgUploadCompleted, "Please select valid supplier & entity before upload.", BootstrapAlertType.Danger); } return(strFileType); }