@page "/PublicPrintingPage"

شماره تلفن شما

کد 6 رقمی شرح حال

دریافتـــ فایل شرح حال

شماره تلفن فردی که شرح حال را ایجاد کرده است و کد شرح حال را وارد کنید تا فایل قابل چاپ شرح حال را دریافت کنید

@code { ElementReference? _otpAInput; ElementReference? _otpBInput; ElementReference? _otpCInput; ElementReference? _otpDInput; ElementReference? _otpEInput; ElementReference? _otpFInput; char[] _otpKey = new[] { '0', '0', '0', '0', '0', '0' }; public async Task OTPTextChangedAsync(ChangeEventArgs e, int step) { switch (step) { case 0: if (e.Value != null && !e.Value.ToString().IsNullOrEmpty()) { _otpKey[0] = (e.Value.ToString())[0]; await _otpBInput!.Value.FocusAsync(); } break; case 1: if (e.Value != null && !e.Value.ToString().IsNullOrEmpty()) { _otpKey[1] = (e.Value.ToString())[0]; await _otpCInput!.Value.FocusAsync(); } else { await _otpAInput!.Value.FocusAsync(); } break; case 2: if (e.Value != null && !e.Value.ToString().IsNullOrEmpty()) { _otpKey[2] = (e.Value.ToString())[0]; await _otpDInput!.Value.FocusAsync(); } else { await _otpBInput!.Value.FocusAsync(); } break; case 3: if (e.Value != null && !e.Value.ToString().IsNullOrEmpty()) { _otpKey[3] = (e.Value.ToString())[0]; await _otpEInput!.Value.FocusAsync(); } else { await _otpCInput!.Value.FocusAsync(); } break; case 4: if (e.Value != null && !e.Value.ToString().IsNullOrEmpty()) { _otpKey[4] = (e.Value.ToString())[0]; await _otpFInput!.Value.FocusAsync(); } else { await _otpDInput!.Value.FocusAsync(); } break; case 5: if (e.Value != null && !e.Value.ToString().IsNullOrEmpty()) { _otpKey[5] = (e.Value.ToString())[0]; } else { await _otpEInput!.Value.FocusAsync(); } break; } } }