Created
November 7, 2014 11:06
-
-
Save alpavlove/111009aee2fdc9f040da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actionsByType = { | |
Client: { | |
participantId: scope.project.Client.Id, | |
onHideCallback: function () { | |
scope.project.Client = { | |
Id: popupScope.participant.Id, | |
TypeId: popupScope.participant.Type.Id, | |
TypeName: popupScope.participant.Type.Name, | |
Address: popupScope.participant.Address | |
}; | |
if (popupScope.participant.Type.NameEn === 'company') { | |
scope.project.Client.Name = popupScope.participant.Organization; | |
} else if (popupScope.participant.Type.NameEn === 'individual') { | |
scope.project.Client.Name = popupScope.participant.LastName + ' ' + popupScope.participant.FirstName + ' ' + popupScope.participant.MiddleName; | |
} | |
} | |
}, | |
VerifyingDepartment: { | |
participantId: scope.project.TaxAuditProject.VerifyingDepartmentId, | |
onHideCallback: function () { | |
scope.project.TaxAuditProject.VerifyingDepartment = popupScope.participant.Organization; | |
} | |
}, | |
Inspector: { | |
participantId: scope.project.TaxAuditProject.InspectorId, | |
onHideCallback: function () { | |
scope.project.TaxAuditProject.InspectorSurname = popupScope.participant.LastName + ' ' + popupScope.participant.FirstName + ' ' + popupScope.participant.MiddleName; | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment