Configuration
Field Requirements
Display Options
Comprehensive form component for collecting and validating requestor data (natural person or legal entity) for FOD service applications. Supports RSP/RSUD validation and configurable field requirements.
Configure component options to see the component in action. Authentication state is determined by MPass login.
<FodRequestorComponent @bind-Value="_requestorData"
UserContext="@_userContext"
PhoneRequired="true"
EmailRequired="false"
ShowTypeSelector="true"
ShowBeneficiaryQuestion="true"
OnRequestorTypeChanged="OnTypeChanged"
OnValidationComplete="OnValidationComplete" />
@code {
private FodRequestorData? _requestorData;
private UserContext _userContext = new()
{
IsAuthenticated = true,
Type = RequestorType.Person,
Idnp = "2001020304055",
Surname = "Popescu",
FirstName = "Ion",
Phone = "+37369123456",
Email = "ion.popescu@mail.md"
};
private void OnTypeChanged(RequestorType type)
{
Console.WriteLine($"Type changed: {type}");
}
private void OnValidationComplete(RequestorValidationResult result)
{
Console.WriteLine($"Valid: {result.IsValid}");
}
}Use these IDNP + Name combinations to test RSP validation.
| IDNP | Surname | First Name |
|---|---|---|
2001020304055 |
Popescu | Ion |
0123456789018 |
Ionescu | Maria |
2987654321007 |
Rusu | Andrei |
2001001000004 |
Munteanu | Elena |
2001001000005 |
Ciobanu | Vasile |
Use these IDNO values to test RSUD company lookup (Legal Entity form).
| IDNO | Company Name | Status |
|---|---|---|
1010607002906 |
S.R.L. "EBS INTEGRATOR" | Active |
1007024006932 |
S.A. "Banca Comercială Națională" | Active |
1006601003348 |
INSPECTORATUL FISCAL DE STAT MUN. CHIȘINĂU | Active |
1007024006934 |
S.R.L. "Servicii Inactive" | Inactive |
1007024006935 |
S.R.L. "În Lichidare" | In Liquidation |
1007024006936 |
S.R.L. "Companie Lichidată" | Liquidated |
Test combinations for representative authorization check (IDNO + Representative IDNP).
| Company IDNO | Representative IDNP | Roles |
|---|---|---|
1007024006932 |
2001001000003 |
Administrator |
1006601003348 |
2001001000004 |
Founder, Administrator |
1009876543210 |
2001001000005 |
Associate |
Component parameters and their descriptions.
Event callbacks available on the component.