tijian_tieying/web/dccdc/Views/Registration/RegisteInfo.cshtml
2025-02-20 12:14:39 +08:00

172 lines
9.1 KiB
Plaintext

@model dccdc.Models.RegisterZydjViewModel
@section scripts{
<script type="text/javascript">
//拍照
function getpersonphoto() {
try {
var a = window.top.Formium.external.Print.PaiZhao();
document.getElementById("base64img").src = a;
$("#phone_path").val(a);
}
catch (e) {
}
}
//提交前验证
function validate() {
//2023-10-25 xulu 婚否为必填
if ($("#trade_type_maintain_id").val() == "") {
$.ligerDialog.alert("请选择婚否状态!");
return false;
}
if ($("#phone_path").val() == "") {
$.ligerDialog.alert("请上传照片后重试!",
function () {
});
return;
}
wait = $.ligerDialog.waitting("进行中,请稍后……");
return true;
}
//提交成功后的操作
function success(data) {
wait.close();
if (data.State == "1") {
window.parent.closeDialog();
}
}
</script>
}
@using (Ajax.BeginForm("RegisteInfo", new AjaxOptions { HttpMethod = "Post", OnSuccess = "success", OnBegin = "validate" }))
{
@Html.HiddenFor(m => m.physical_num_old)
@Html.HiddenFor(m => m.id);
@Html.HiddenFor(m => m.physical_num, new { id = "physical_num" })
@Html.HiddenFor(m => m.register_person)
@Html.HiddenFor(m => m.enterprise_info_maintain_id, new { id = "enterprise_info_maintain_id" })
@Html.HiddenFor(m => m.register_type)
@Html.HiddenFor(m => m.payment)
@Html.HiddenFor(m => m.physical_type)
@Html.HiddenFor(m => m.importid)
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<table class="t1 adaptation">
<tr>
<td class="rtd"></td>
<td class="rtd"></td>
<td class="rtd"></td>
<td class="rtd"></td>
<td class="rtd">
<input type="hidden" name="img64" id="img64" value="0" />
</td>
</tr>
<tr>
<td class="ltd" width="72">身份证号:</td>
<td class="rtd" width="150">@Html.TextBoxFor(m => m.card_number, new { id = "cardnumber", @class = "l-text" }) @Html.ValidationMessageFor(m => m.card_number)</td>
<td class="ltd" width="72">姓名:</td>
<td class="rtd" width="124">@Html.TextBoxFor(m => m.person_name, new { style = "width:100px", @class = "l-text", @id = "personname" }) @Html.ValidationMessageFor(m => m.person_name)</td>
<td class="ltd" width="72">性别:</td>
<td class="rtd" width="108">@Html.RadioButtonFor(m => m.sex, "男", new { id = "nan" })男&nbsp; @Html.RadioButtonFor(m => m.sex, "女", new { id = "nv" })女 </td>
<td class="ltd" width="72">年龄:</td>
<td class="rtd" width="108">@Html.TextBoxFor(m => m.person_age, new { id = "age", style = "width:20px", @class = "l-text" }) @Html.ValidationMessageFor(m => m.person_age)</td>
<td class="ltd" width="100">出生日期:</td>
<td class="rtd" width="108">@Html.TextBoxFor(m => m.birth, new { id = "birth" }) @Html.ValidationMessageFor(m => m.birth)</td>
<td valign="middle" id="zp" rowspan="4" width="120">
@if (ViewBag.src != null)
{
<img src="@ViewBag.src" id="base64img" style="width: 90px" />
}
else
{
<img src="" style="width: 90px" id="base64img" />
}
</td>
</tr>
<tr>
<td class="ltd">民族:</td>
<td class="rtd"> @Html.TextBoxFor(m => m.nation, new { @class = "l-text" }) </td>
<td class="ltd">婚否:</td>
<td class="rtd">@Html.DropDownListFor(m => m.marry_status, ViewData["hf"] as SelectList, "----请选择----", new { id = "trade_type_maintain_id" })</td>
<td class="ltd">部门:</td>
<td class="rtd"> @Html.TextBoxFor(m => m.department, new { @class = "l-text" }) </td>
<td class="ltd">工号:</td>
<td class="rtd">@Html.TextBoxFor(m => m.job_num, new { @class = "l-text" }) </td>
<td class="ltd">电话:</td>
<td class="rtd"> @Html.TextBoxFor(m => m.phone, new { @class = "l-text" }) </td>
</tr>
<tr>
<td class="ltd">企业名称:</td>
<td class="rtd">@Html.TextBoxFor(m => m.util_name, new { @class = "l-text", id = "qymc",style="pointer-events:none;" }) </td>
<td class="ltd" width="100">体检方案:</td>
<td class="rtd"> @Html.HiddenFor(m => m.physical_category) @Html.DropDownListFor(m => m.medical_scheme_maintain_id, ViewData["tjfn"] as SelectList, new { id = "tjfn", style = "width:150px;pointer-events:none;" })</td>
<td class="ltd" width="130">通用体检方案:</td>
<td class="rtd">@Html.HiddenFor(m => m.common_scheme) @Html.DropDownListFor(m => m.common_scheme_id, ViewData["tytjfn"] as SelectList, "----请选择----", new { id = "tytjfn", style = "width:120px;pointer-events:none;" }) </td>
<td class="ltd" width="100">体检类型:</td>
<td class="rtd" colspan="3">@Html.HiddenFor(m => m.exam_type, new { id = "exam_type" }) @Html.DropDownListFor(m => m.exam_type_id, ViewData["tjlx"] as SelectList, "----请选择----", new { id = "exam_type_id" })@*@Html.ValidationMessageFor(m => m.exam_type_id)*@</td>
</tr>
<tr>
<td class="ltd">在岗状态:</td>
<td class="rtd">@Html.HiddenFor(m => m.status, new { id = "status" }) @Html.DropDownListFor(m => m.job_status_id, ViewData["zgzt"] as SelectList, "----请选择----", new { id = "job_status_id" })</td>
<td class="ltd">有害因素:</td>
<td class="rtd"> @Html.HiddenFor(m => m.hazard_ids, new { id = "hazards_ids" }) @Html.TextBoxFor(m => m.hazards, new { @class = "l-text", id = "yhys", @onclick = "hyys()" ,style="pointer-events:none;"}) </td>
<td class="ltd">有害类别:</td>
<td class="rtd">@Html.HiddenFor(m => m.hazard_type_ids, new { id = "hazard_type_ids" }) @Html.TextBoxFor(m => m.hazard_type_names, new { id = "yhlb", @class = "l-text",style="pointer-events:none;" }) </td>
@*<td class="ltd">打印:</td>
<td class="rtd" colspan="3">@Html.CheckBoxFor(m => m.txm)<span>条形码</span>&nbsp;&nbsp;&nbsp;@Html.CheckBoxFor(m => m.zyd)<span>指引单</span></td>*@
</tr>
<tr>
<td class="ltd">专业工龄:</td>
<td class="rtd">@Html.TextBoxFor(m => m.unnomel_ages, new { @class = "l-text", style = "width:100px" })</td>
<td class="ltd">总工龄:</td>
<td class="rtd">
<table>
<tr>
<td style="border-bottom: 0px">@Html.TextBoxFor(m => m.work_years, new { @class = "l-text", style = "width:40px" })</td>
<td style="border-bottom: 0px"><span>年</span></td>
<td style="border-bottom: 0px">@Html.TextBoxFor(m => m.work_months, new { @class = "l-text", style = "width:40px" })</td>
<td style="border-bottom: 0px"><span>月</span></td>
</tr>
</table>
</td>
<td class="ltd">接害工龄:</td>
<td class="rtd">
<table>
<tr>
<td style="border-bottom: 0px">@Html.TextBoxFor(m => m.touch_years, new { @class = "l-text", style = "width:40px" })</td>
<td style="border-bottom: 0px"><span>年</span></td>
<td style="border-bottom: 0px">@Html.TextBoxFor(m => m.touch_months, new { @class = "l-text", style = "width:40px" })</td>
<td style="border-bottom: 0px"><span>月</span></td>
</tr>
</table>
</td>
<td class="ltd">作业工种:</td>
<td class="rtd">@Html.TextBoxFor(m => m.work_category, new { @class = "l-text" }) </td>
<td class="ltd">协议金额:</td>
<td class="rtd" colspan="2">@Html.TextBoxFor(m => m.agreement_money, new { @class = "l-text", id = "xyje", @readonly = "readonly", @style = "text-align:right" }) </td>
</tr>
<tr>
<td class="ltd">接害因素(用于报告)</td>
<td colspan="9">@Html.TextAreaFor(m => m.hazards_text, new { @class = "l-textarea", id = "hazards_text",@style= "width: 816px; height: 208px;" }) </td>
</tr>
</table>
<div align="center">
@*@Html.ValidationMessageFor(m => m.phone_path)*@
@Html.HiddenFor(m => m.phone_path, new { id = "phone_path" })
<input type="button" class="l-button" value="拍照" onclick="getpersonphoto()" style="width: 60px;height:30px" />
<input type="submit" class="l-button" value="提交" style="width: 60px;height:30px" />
@*<input type="button" class="l-button" value="返回" style="width: 60px;height:30px" onclick="self.location=document.referrer;" />*@
</div>
}