| | |
| | | |
| | | List<SysCodeDtl> TypeId = ViewData["TypeId"] as List<SysCodeDtl>; //物品状态 |
| | | |
| | | |
| | | List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; |
| | | |
| | | } |
| | | @{ |
| | |
| | | </select> |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | </div> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">单位名称<i class="red">*</i></label> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">单位名称</label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <input id="DanweiName" class="form-control" label="单位名称" name="DanweiName" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="true" type="text" value="@Model.DanweiName"> |
| | | |
| | |
| | | |
| | | var id = '@Model.Id'; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // 保存岗位信息 |
| | | var savePosition = function () { |
| | |
| | | toastr.warning("类别不能为空"); |
| | | return; |
| | | } |
| | | if ($.trim($("#DanweiName").val()) == '') { |
| | | toastr.warning("单位名称不能为空"); |
| | | return; |
| | | } |
| | | //if ($.trim($("#DanweiName").val()) == '') { |
| | | // toastr.warning("单位名称不能为空"); |
| | | // return; |
| | | //} |
| | | |
| | | if ($.trim($("#Lianxiren").val()) == '') { |
| | | toastr.warning("联系人不能为空"); |
| | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('成功保存', { icon: 6 }); |
| | | |
| | | |
| | | |
| | | |
| | | try { |
| | |
| | | parent.layer.close(index); |
| | | return false; |
| | | } |
| | | |
| | | var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))'; |
| | | |
| | | |
| | | |
| | | $(function () { |
| | | var data = JSON.parse(ActionInfo22); |
| | | for (var o in data) { |
| | | $("." + data[o].PageShortcut).show(); |
| | | |
| | | } |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |