CRM_EasyUI_2016/Views/CRM_Module/SelectProvince.cshtml
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@model GroupThink.CRM.Model.Sys.GroupThink_CRM_Province_Model
@using GroupThink.CRM.Common;
@using GroupThink.CRM.Model.Sys;
@using GroupThink.CRM.Web;
@{
ViewBag.Title = "SelectProvince";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
var ProvinceID = $(":radio[name='Province']:checked").val(); ;
var ProvinceName = $(":radio[name='Province']:checked")[0].nextSibling.nodeValue.replace(/^(\s|\xA0)+|(\s|\xA0)+$/g, '');
if (ProvinceID == null || ProvinceID == "") {
$.messageBox5s('提示', '请选择省份!');
}
else {
window.parent.document.getElementById("Id").value = "AreaCustomer" + ProvinceID;
window.parent.document.getElementById("Name").value = "(" + ProvinceName + ")" + "客户管理";
window.parent.document.getElementById("Controller").value = "GroupThink_CRM_AreaCustomer" + ProvinceID;
window.parent.document.getElementById("Action").value = "Index";
window.parent.document.getElementById("Url").value = "GroupThink_CRM_AreaCustomer" + ProvinceID;
//window.parent.document.getElementById("ParentId").value = "CustomerManagement";
window.parent.document.getElementById("IsLast").checked = true;
window.parent.frmReturnByClose();
}
});
$("#btnClose").click(function () {
window.parent.frmReturnByClose();
});
});
</script>
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="overflow: auto; padding: 5px;">
@using (Html.BeginForm("", "", null, FormMethod.Post, new { Id = "SelectProvinceForm" }))
{
<br />
<table>
<tbody>
<tr><td>
@for (int i = 0; i < ((List<GroupThink_CRM_Province_Model>)ViewData["Province"]).Count(); i++)
{
var t = ((List<GroupThink_CRM_Province_Model>)ViewData["Province"]).ElementAt(i).ProvinceName;
var v = ((List<GroupThink_CRM_Province_Model>)ViewData["Province"]).ElementAt(i).ProvinceID;
if ((i+1) % 3 == 0)
{
<input type="radio" name="Province" value="@v"/>@t <br />
}
else
{
<input type="radio" name="Province" value="@v"/>@t
}
}
</td></tr>
后面还有 21 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
