Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
1.5 kB
2
Indexable
Never
function allDataForCompany(data){
  $.ajax({
    url: "/bin/mca-gov/CompanyInfo",
    type: "POST",
    contentType:"application/json; charset=utf-8",
    data: JSON.stringify(data),
    success: function(response){
      if (response.data !== undefined && response.data!=="" && response.data!==null) {
        var data = response.data.result;
        var companyInfo = data.companyInfo;
        var userInfo = data.userInfo;
        var address = data[0].address.addressLine1 +", "+ data[0].address.addressLine2 +", "+ data[0].address.city +", "+ data[0].address.district +", "+ data[0].address.state +", "+ data[0].address.pinCode;
        llpAddress.value = address;
        email.value = data[0].emailAddress;
        llpFllpName.value = data[0].companyName;
        // textboxOfAccouandRecord.value = llpFllpName.value;
        //certificateName.value = llpFllpName.value;
        // stmtOfSolvencyFirstTextBox.value = llpFllpName.value;

        //sessionStorage.setItem("companyOrigin", btoa(companyInfo[0].companyOrigin));
        //Notifications email mobile set items
        //sessionStorage.setItem("emailId", btoa(userInfo.emailId));
        //sessionStorage.setItem("mobileNo", btoa(userInfo.mobileNo));
        //sessionStorage.setItem("registeredAddress", btoa(JSON.stringify(companyInfo[0].registeredAddress)));
        sessionStorage.setItem("dateOfIncorporation", btoa(companyInfo[0].dateOfIncorporation));
      }
    },
    error: function(e){
      console.log("error", e);
    }
  });
}
Leave a Comment