|
|
@@ -6413,20 +6413,84 @@ FROM
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ // 父母的监护权(针对未成年人)/法定监护人(姓氏、名字、地址(若与申请人的地址不同)、电话号码、电子邮箱地址以及国籍)
|
|
|
+ SetFieldValue(formFields, "parental_authority", "");
|
|
|
+ //(如适用)国民身份号码
|
|
|
+ SetFieldValue(formFields, "id_number", idCard);
|
|
|
|
|
|
- SetFieldValue(formFields, "IdNo", idCard); // 身份证号码
|
|
|
+ #region 护照信息
|
|
|
+ //清除值
|
|
|
+ SetFieldValue(formFields, "travel_type_ordinary_passport", "Off"); // 旅行证件类型 - 普通护照
|
|
|
+ SetFieldValue(formFields, "travel_type_diplomatic_passport", "Off"); // 旅行证件类型 - 外交护照
|
|
|
+ SetFieldValue(formFields, "travel_type_service_passport", "Off"); // 旅行证件类型 - 服务护照
|
|
|
+ SetFieldValue(formFields, "travel_type_offical_passport", "Off"); // 旅行证件类型 - 公务护照
|
|
|
+ SetFieldValue(formFields, "travel_type_special_passport", "Off"); // 旅行证件类型 - 特别护照
|
|
|
+ SetFieldValue(formFields, "travel_type_other_passport_details", ""); // 其他旅行证件(请注明)
|
|
|
+ //设置值
|
|
|
+ if (passportInfo != null)
|
|
|
+ {
|
|
|
+ // 签证类型
|
|
|
+ var visatypeInfo = await _sqlSugar.Queryable<Sys_SetData>().FirstAsync(x => x.Id == passportInfo.PassportType);
|
|
|
+ if (visatypeInfo != null)
|
|
|
+ {
|
|
|
+ string visaName = visatypeInfo?.Name ?? "-";
|
|
|
+ if (visaName.contains("普通")) SetFieldValue(formFields, "travel_type_ordinary_passport", "Yes"); // 旅行证件类型 - 普通护照
|
|
|
+ else if (visaName.contains("外交")) SetFieldValue(formFields, "travel_type_diplomatic_passport", "Yes"); // 旅行证件类型 - 外交护照
|
|
|
+ else if (visaName.contains("服务")) SetFieldValue(formFields, "travel_type_service_passport", "Yes"); // 旅行证件类型 - 服务护照
|
|
|
+ else if (visaName.contains("公务")) SetFieldValue(formFields, "travel_type_offical_passport", "Yes"); // 旅行证件类型 - 公务护照
|
|
|
+ else // 旅行证件类型 - 特别护照
|
|
|
+ {
|
|
|
+ SetFieldValue(formFields, "travel_type_other_passport", "Yes");
|
|
|
+ SetFieldValue(formFields, "travel_type_other_passport_details", "");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
+ #region 护照信息
|
|
|
+ SetFieldValue(formFields, "travel_number", passportInfo.CertNo); // 签证 编号
|
|
|
+ SetFieldValue(formFields, "travel_issue_country", passportInfo.Country); // 签发 国
|
|
|
+ SetFieldValue(formFields, "travel_issue_date", passportInfo.IssueDt?.ToString("yyyy-MM-dd") ?? ""); // 签发日期
|
|
|
+ SetFieldValue(formFields, "travel_issue_vaild", passportInfo.ExpiryDt?.ToString("yyyy-MM-dd") ?? ""); // 有效期至
|
|
|
+ #endregion
|
|
|
+ }
|
|
|
|
|
|
+ #endregion
|
|
|
|
|
|
+ #region 适用情况下,欧盟、欧洲经济区或瑞士公民,或英国籍且为《欧盟-英国脱欧协议》受益人的家庭成员的个人资料 “默认空”
|
|
|
|
|
|
- string selected = "√";
|
|
|
+ SetFieldValue(formFields, "eu_info_surname",""); // 姓氏(家族名)
|
|
|
+ SetFieldValue(formFields, "eu_info_first_name", ""); // 名字(名字)
|
|
|
+ SetFieldValue(formFields, "eu_info_birthday", ""); // 出生日期 (日-月-年)
|
|
|
+ SetFieldValue(formFields, "eu_info_nationality", ""); // 国籍
|
|
|
+ SetFieldValue(formFields, "eu_info_id_number", ""); // 旅行证件或身份证号码
|
|
|
|
|
|
- #region 1. 个人信息
|
|
|
+ #region 与欧盟、欧洲经济区或瑞士公民,或作为《欧盟-英国脱欧协议》受益人的英国国民之间的家庭关系(如适用)
|
|
|
+ SetFieldValue(formFields, "eu_family_relationship_spouse", "Off"); // 夫妻
|
|
|
+ SetFieldValue(formFields, "eu_family_relationship_child", "Off"); // 子女
|
|
|
+ SetFieldValue(formFields, "eu_family_relationship_grandchild", "Off"); // 孙子女
|
|
|
+ SetFieldValue(formFields, "eu_family_relationship_ascendant", "Off"); // 有赡养关系的长辈
|
|
|
+ SetFieldValue(formFields, "eu_family_relationship_registered", "Off"); // 注册伴侣关系
|
|
|
+ #endregion
|
|
|
+ #endregion
|
|
|
|
|
|
+ string applicantAddressAndEmail = $"{custInfo.Address} {custInfo.Email}";
|
|
|
+ SetFieldValue(formFields, "applicant_address_and_email", applicantAddressAndEmail); // 申请人的家庭住址和电子邮箱地址
|
|
|
+ SetFieldValue(formFields, "applicant_tel", custInfo.Tel); // 申请人的电话
|
|
|
|
|
|
+ #region 在非当前国籍所属国家的居住情况 “默认空”
|
|
|
+ SetFieldValue(formFields, "uncurrent_count_no", "Yes"); // 否
|
|
|
+ SetFieldValue(formFields, "uncurrent_count_yes", "Off"); // 是
|
|
|
+ SetFieldValue(formFields, "uncurrent_country_residence", "");// 居留许可或同等证明
|
|
|
+ SetFieldValue(formFields, "uncurrent_country_no", ""); // No
|
|
|
+ SetFieldValue(formFields, "uncurrent_country_valid_until", "");// 有效期至
|
|
|
+ #endregion
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+ string selected = "√";
|
|
|
+
|
|
|
+ #region 1. 个人信息
|
|
|
+
|
|
|
#region 是否曾用别名从韩国出入境
|
|
|
SetFieldValue(formFields, "applicant_no", selected); // 否 默认选中
|
|
|
SetFieldValue(formFields, "applicant_yes", "");
|
|
|
@@ -6462,53 +6526,7 @@ FROM
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
- #region 3. 护照信息
|
|
|
-
|
|
|
- //清除值
|
|
|
- SetFieldValue(formFields, "passport_type_diplomatic", ""); // 旅行证件类型 - 外交护照
|
|
|
- SetFieldValue(formFields, "passport_type__official", ""); // 旅行证件类型 - 公务护照
|
|
|
- SetFieldValue(formFields, "passport_type__regular", ""); // 旅行证件类型 - 普通护照
|
|
|
- SetFieldValue(formFields, "passport_type__other", ""); // 旅行证件类型 - 其它
|
|
|
- //设置值
|
|
|
- if (passportInfo != null)
|
|
|
- {
|
|
|
- // 签证类型
|
|
|
- var visatypeInfo = await _sqlSugar.Queryable<Sys_SetData>().FirstAsync(x => x.Id == passportInfo.PassportType);
|
|
|
- if (visatypeInfo != null)
|
|
|
- {
|
|
|
- string visaName = visatypeInfo?.Name ?? "-";
|
|
|
- if (visaName.contains("外交")) SetFieldValue(formFields, "passport_type_diplomatic", selected); // 旅行证件类型 - 外交护照
|
|
|
- else if (visaName.contains("公务")) SetFieldValue(formFields, "passport_type__official", selected); // 旅行证件类型 - 公务护照
|
|
|
- else if (visaName.contains("普通")) SetFieldValue(formFields, "passport_type__regular", selected); // 旅行证件类型 - 普通护照
|
|
|
- else if (visaName.contains("其它")) // 旅行证件类型 - 其它
|
|
|
- {
|
|
|
- SetFieldValue(formFields, "passport_type__other", selected);
|
|
|
- SetFieldValue(formFields, "passport_type__other_remark", "");
|
|
|
- }
|
|
|
- else SetFieldValue(formFields, "passport_ordinary", selected); // 旅行证件类型 - 普通护照
|
|
|
- }
|
|
|
-
|
|
|
- SetFieldValue(formFields, "passport_no", passportInfo.CertNo); // 签证 编号
|
|
|
- SetFieldValue(formFields, "passport_country", passportInfo.Country); // 签发 国
|
|
|
- SetFieldValue(formFields, "passport_issuePlace", passportInfo.Area); // 签发 地
|
|
|
- SetFieldValue(formFields, "passport_issue_date", passportInfo.IssueDt?.ToString("yyyy-MM-dd") ?? ""); // 签发日期
|
|
|
- SetFieldValue(formFields, "passport_expiryDate", passportInfo.ExpiryDt?.ToString("yyyy-MM-dd") ?? ""); // 有效期至
|
|
|
-
|
|
|
- #region 是否有其他护照信息
|
|
|
- SetFieldValue(formFields, "otherPassport_no", selected); // 否 默认选中
|
|
|
- SetFieldValue(formFields, "otherPassport_yes", ""); // 是
|
|
|
- //清除值
|
|
|
- SetFieldValue(formFields, "other_passport_type_diplomatic", ""); // 旅行证件类型 - 外交护照
|
|
|
- SetFieldValue(formFields, "other_passport_type_official", ""); // 旅行证件类型 - 公务护照
|
|
|
- SetFieldValue(formFields, "other_passport_type_regular", ""); // 旅行证件类型 - 普通护照
|
|
|
- SetFieldValue(formFields, "other_passport_type_other", ""); // 旅行证件类型 - 其它
|
|
|
- SetFieldValue(formFields, "other_passport_no", ""); // 签证 编号
|
|
|
- SetFieldValue(formFields, "other_passport_country", ""); // 签发 国
|
|
|
- SetFieldValue(formFields, "other_passport_expiry_date", ""); // 有效期至
|
|
|
- #endregion
|
|
|
- }
|
|
|
-
|
|
|
- #endregion
|
|
|
+
|
|
|
|
|
|
#region 4. 联系信息
|
|
|
|
|
|
@@ -6811,6 +6829,8 @@ FROM
|
|
|
SetFieldValue(formFields, "declaration_applicant_name", applicant_name); // 申请人姓名
|
|
|
#endregion
|
|
|
|
|
|
+
|
|
|
+
|
|
|
filePaths.Add(outputPath);
|
|
|
}
|
|
|
catch (Exception ex)
|