Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


Field Mapping for PDF


PDF Field Name

var

Leap Field ID

Leap Field Title

1

Month Ending

monthEndCalYear

F_MonthEndCalYear

Combined Month Ending and Calendar Year

2

Contractor Name

contractorName

F_ContractorName

General Contractor Name

3

Project Name

projectName

F_ProjectName

Project Name

4

Awarding Agency Name

contractAwardAgency

F_ContractAwardAgency

F_ContractAwardAgency

5

Project Number

projectNumber

F_ProjectNumber

Project Number

6

Is Contractor an S/MBE? What is DAS Class?

vendorCertClass

F_VendorCertClass

Certification Class

7

Actual Project Mobilization Date

mobilizationDate

F_MobilizationDate

Actual Project Mobilization Date

8

Project Value

projectValue

F_ProjectValue

Project Value

9

Percent Completed to Date

percentCompleteToDate

F_PercentCompleteToDate

Percent Completed To Date

10

Is this a FINAL Report?

isFinalReport

F_IsFinalReport

Is This a Final Report?

11

Estimated Completion Date

estCompletionDate

F_EstCompletionDate

Estimated Completion Date

12

Report Entry Date

reportEntryDate

F_ReportEntryDate

Report Entry Date

13

Printed Name and Printed Title of Person Signing

signerName

F_SignerName

Signer Name & Title

14

Month Ending

monthEndCalYearBottom

F_MonthEndCalYear

Combined Month Ending and Calendar Year

15

Contractor Name

contractorNameBottom

F_ContractorName

General Contractor Name

16

Project Name

projectNameBottom

F_ProjectName

Project Name

17

Project Number

projectNumberBottom

F_ProjectNumber

Project Number

18

S/MBE Contractor Textbox

gcCertifcateClass

F_GcCertificateClass

SMBE Table As Text

app.getSharedData().FillPdfUrl = '';

app.getSharedData().FillPdf = function() {

var ajaxResult = '';
var beanJSON;
var obj = {};
obj.monthEndCalYear = '';
obj.contractorName = '';
obj.projectName = '';
obj.contractAwardAgency = '';
obj.projectNumber = '';
obj.vendorCertClass = '';
obj.mobilizationDate = '';
obj.projectValue = '';
obj.percentCompleteToDate = '';
obj.isFinalReport = '';
obj.estCompletionDate = '';
obj.reportEntryDate = '';
obj.signerName = '';
obj.monthEndCalYearBottom = '';
obj.contractorNameBottom = '';
obj.projectNameBottom = '';
obj.projectNumberBottom = '';
obj.smbeTableAsText = '';

if (!app.getSharedData().isEmpty(monthEndCalYear)) {
obj.monthEndCalYear = monthEndCalYear;
}
if (!app.getSharedData().isEmpty(contractorName)) {
obj.contractorName = contractorName;
}
if (!app.getSharedData().isEmpty(projectName)) {
obj.projectName = projectName;
}
if (!app.getSharedData().isEmpty(contractAwardAgency)) {
obj.contractAwardAgency = contractAwardAgency;
}
if (!app.getSharedData().isEmpty(projectNumber)) {
obj.projectNumber = projectNumber;
}
if (!app.getSharedData().isEmpty(vendorCertClass)) {
obj.vendorCertClass = vendorCertClass;
}
if (!app.getSharedData().isEmpty(mobilizationDate)) {
obj.mobilizationDate = mobilizationDate;
}
if (!app.getSharedData().isEmpty(projectValue)) {
obj.projectValue = projectValue;
}
if (!app.getSharedData().isEmpty(percentCompleteToDate)) {
obj.percentCompleteToDate = percentCompleteToDate;
}
if (!app.getSharedData().isEmpty(isFinalReport)) {
obj.isFinalReport = isFinalReport;
}
if (!app.getSharedData().isEmpty(estCompletionDate)) {
obj.estCompletionDate = estCompletionDate;
}
if (!app.getSharedData().isEmpty(reportEntryDate)) {
obj.reportEntryDate = reportEntryDate;
}
if (!app.getSharedData().isEmpty(signerName)) {
obj.signerName = signerName;
}
if (!app.getSharedData().isEmpty(monthEndCalYearBottom)) {
obj.monthEndCalYearBottom = monthEndCalYearBottom;
}
if (!app.getSharedData().isEmpty(contractorNameBottom)) {
obj.contractorNameBottom = contractorNameBottom;
}
if (!app.getSharedData().isEmpty(projectNameBottom)) {
obj.projectNameBottom = projectNameBottom;
}
if (!app.getSharedData().isEmpty(projectNumberBottom)) {
obj.projectNumberBottom = projectNumberBottom;
}
if (!app.getSharedData().isEmpty(smbeTableAsText)) {
obj.smbeTableAsText = smbeTableAsText;
}

beanJSON = JSON.stringify(obj);

var url = app.getSharedData().ldapSearchByCriteriaUrl;
$.ajax({
contentType: "application/json",
dataType : 'json',
url : url,
type : 'POST',
data: beanJSON,
async: false,
headers: { 'Access-Control-Allow-Origin' : '*'},
success : function(data) {
var json_text = JSON.stringify(data);
var json_obj = JSON.parse(json_text);
ajaxResult = json_text;
},
error : function(xhr, errorType, exception) {
var responseText;
try {
responseText = jQuery.parseJSON(xhr.responseText);
alert("error posting form fields " + responseText.ExceptionType + " " + responseText.StackTrace + " " + responseText.Message);
} catch (e) {
alert("error posting form fields xhr:" + xhr.responseText + " errortype: " + errorType + " exception: " + exception);
}
}
});
return ajaxResult;
}

//Used to check if a string is empty
app.getSharedData().isEmpty = function(str) {
return (!str || 0 === str.length);
}
//end of ajax

/* onClick of Button */

var netid = BO.F_NetIDTest.getValue();
var firstName = BO.F_FirstNameTest.getValue();
var lastName = BO.F_lastnametest.getValue();
var monthEndCalYear = BO.F_MonthEndCalYear.getValue();
var contractorName = BO.F_ContractorName.getValue();
var projectName = BO.F_ProjectName.getValue();
var contractAwardAgency = BO.F_ContractAwardAgency.getValue();
var projectNumber = BO.F_ProjectNumber.getValue();
var vendorCertClass = BO.F_VendorCertClass.getValue();
var mobilizationDate = BO.F_MobilizationDate.getValue();
var projectValue = BO.F_ProjectValue.getValue();
var percentCompleteToDate = BO.F_PercentCompleteToDate.getValue();
var isFinalReport = BO.F_IsFinalReport.getValue();
var estCompletionDate = BO.F_EstCompletionDate.getValue();
var reportEntryDate = BO.F_ReportEntryDate.getValue();
var signerName = BO.F_SignerName.getValue();
var monthEndCalYearBottom = BO.F_MonthEndCalYear.getValue();
var contractorNameBottom = BO.F_ContractorName.getValue();
var projectNameBottom = BO.F_ProjectName.getValue();
var projectNumberBottom = BO.F_ProjectNumber.getValue();
var smbeTableAsText = BO.F_SmbeTableAsText.getValue();

var result = app.getSharedData().FillPdf();
var json_obj = JSON.parse(result);

//From returning LDAP search, not sure if parts of this need to be used
var tbl = BO.F_firstlastsrchresults;
tbl.setValue(new Array()); //clear table

for (var i = 0; i < json_obj.length; i++){
var row = json_obj[i];
var person = app.getSharedData().LdapSearchByCriteriaResult();
person.initializeData(row);

var newRow = tbl.createNew();
// var newCols = newRow.getChildren();

get(newRow, 'F_srchfirstname').setValue(person.firstName);
get(newRow, 'F_SrchLastname').setValue(person.lastName);
get(newRow, 'F_Srchtblenetid').setValue(person.netId);
get(newRow, 'F_srchtblorg').setValue(person.deptName);
get(newRow, 'F_srchtblemail').setValue(person.email);
get(newRow, 'F_srchtblphone').setValue(person.phoneNumber);

//newCols.get(0).setValue(person.firstName);
//newCols.get(1).setValue(person.lastName);
//newCols.get(2).setValue(person.netId);
//newCols.get(3).setValue(person.deptName);
//newCols.get(4).setValue(person.email);
//newCols.get(5).setValue(person.phoneNumber);

tbl.add(newRow);

}

  • No labels