private void LoadData(int id) { var src = new PartyBLL().GetParty(id, new SearchCriteria() { StringParams = new List <string>() { "0", "" } }); if (src != null && src.Count() > 0) { var party = src.FirstOrDefault(); txtEmailID.Text = party.emailID; txtContactPerson.Text = party.ContactPerson; txtAddress.Text = party.PartyAddress; txtFAX.Text = party.FAX; txtPAN.Text = party.PAN; txtPartyName.Text = party.PartyName; txtPhone.Text = party.Phone; txtMob.Text = party.Mobile; txtTAN.Text = party.TAN; txtFullName.Text = party.FullName; hdnKYCPath.Value = "KYC" + PartyId.ToString().TrimEnd(); //ddlLine.SelectedValue = party.fLineID.ToString(); ddlPartyType.SelectedValue = party.PartyType.ToString(); ddlGroup.SelectedValue = party.GroupID.ToString(); ddlPrincipal.SelectedValue = party.PrincipalID.ToString(); AutoCompleteCountry1.CountryId = party.CountryID.ToString(); AutoCompleteCountry1.CountryName = party.CountryName; var path = Server.MapPath("~/Forwarding/KYCUploads"); var newFileName = "KYC" + PartyId.ToString().TrimEnd(); // Guid.NewGuid().ToString(); if (!string.IsNullOrEmpty(path)) { path += @"\" + newFileName + ".pdf"; //System.IO.Path.GetExtension(fileName); hdnKYCPath.Value = path; if (File.Exists(path)) { lnkKYCUpload.Enabled = true; lnkKYCUpload.Text = newFileName + ".pdf"; //lblUploadedFileName.Text = newFileName; //lblUploadedFileName.Visible = true; } } } }
private void LoadData(int id) { var src = new PartyBLL().GetGroup(id, new SearchCriteria() { StringParams = new List <string>() { "0", "" } }); if (src != null && src.Count() > 0) { var party = src.FirstOrDefault(); txtAddress.Text = party.GroupAddress; txtPartyName.Text = party.GroupName; } }