@using ContractService.Authorization @using ContractService.Configuration @using ContractService.LegalContract @using ContractService.Views.Shared.Modals @using ContractService.Views.Shared.Query @{ ViewBag.Title = "法律服务合同详情"; string activeMenu = PermissionNames.PagesCaseContractMgCaseMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string contractNo = ViewBag.ContractNo, contractState = ViewBag.ContractState, kpLevel = ViewBag.KeyPointLevel, kpState = ViewBag.KeyPointState; int noteType = AbpSession.AccountType == AccountTypeDefinition.Lawyer ? NoteTypeDefinition.LawyerNote : NoteTypeDefinition.Note; var inputs = new List() { new InputHide("id"), new InputHide("contractNo"), new Input("code", "补充合同编号"), new Input("name", "补充合同名称"), new InputWangEditor("contentInfo", "补充合同信息").SetNotRequired(), }; var modalBody = new ModalBodyViewModel(null, "form-sup") .AddTab("base", "补充合同信息", inputs) .AddTab("attach", "补充合同附件", "
"); var modal = new ModalViewModel("添加补充合同", "", modalBody, "modal-sup"); var kp_sup_inputs = new List() { new InputHide("id"), new InputHide("contractNo"), new InputHide("keyPointNo"), new Input("code", "变更材料编号"), new Input("name", "变更材料名称"), new InputWangEditor("contentInfo", "变更材料信息").SetNotRequired(), }; var kp_sup_modalBody = new ModalBodyViewModel(null, "form-sup-kp") .AddTab("base-kp", "变更材料信息", kp_sup_inputs) .AddTab("attach-kp", "变更材料附件", "
"); var kp_sup_modal = new ModalViewModel("变更材料(证据)", "", kp_sup_modalBody, "modal-sup-kp"); var modal_note = new ModalViewModel("添加备注", "", new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("contractNo"), new InputHide("noteType"), new InputHide("keyPointNo"), new InputTextarea("noteContent","备注内容") }, "form-note"), "modal-note"); var modal_attach = new ModalViewModel("添加附件", "", new ModalBodyViewModel(new List() { new Input("name", "附件名称"), new InputFile("attach", "合同附件").SetFileOption("a-info", "a-name", "a-ext") }, "form-attach"), "modal-attach", 0, ""); var modal_kp = new ModalViewModel("关键点", new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("contractNo"), new InputHide("parentNo"), new Input("parentName", "父关键点").SetDisabled(), new Input("name", "关键点名称"), new Input("keyPointLevel", "紧急级别").SetSelectOptions(kpLevel), new Input("kpType", "关键点日期").SetSelectOptions(""), new InputDate("alarmDate", "提醒日期", @class: "t1"), new InputDate("expireDate", "过期日期", @class: "t1"), new InputNumber("expireDay", "提醒天数", 1, @class: "t2").SetMin(1).SetHelp("距父关键点履行后的天数"), new InputNumber("alarmDay", "过期天数", 1, @class: "t2").SetMin(0).SetHelp("距提醒后的天数"), new InputTextarea("description", "关键点描述") }, "form-kp"), "modal-kp"); var modal_org = new ModalViewModel("分配关键点", "", new ModalBodyViewModel(new List() { new InputHide("id"), new AjaxSelect("staffNo", "关联员工", "Staff", contractNo, "query_staff").SetSearchClear("staffNo,staffOrgName"), new Input("staffOrgName", "员工部门").SetDisabled(), }, "form-org"), "modal-org"); } @section css{ }

@if (AbpSession.AccountType != AccountTypeDefinition.System) { if (IsGranted(PermissionNames.PagesCaseContractMgContractMgNote)) { } if (IsGranted(PermissionNames.PagesCaseContractMgContractMgLawNote)) { } }
合同内容
补充合同
@if (AbpSession.AccountType == AccountTypeDefinition.Client && IsGranted(PermissionNames.PagesCaseContractMgContractMgSupplement)) { }

合同关键点 律师负责人:@ViewBag.MasterLawyer 法务负责人:@ViewBag.MasterStaff

@if (AbpSession.AccountType != AccountTypeDefinition.System && IsGranted(PermissionNames.PagesCaseContractMgContractMgNote)) { }
@section modal{ @Html.Partial("Modals/_Modal", modal) @Html.Partial("Modals/_Modal", kp_sup_modal) @Html.Partial("Modals/_Modal", modal_note) @Html.Partial("Modals/_Modal", modal_attach) @Html.Partial("Modals/_Modal", modal_kp) @Html.Partial("Modals/_Modal", modal_org) @Html.Partial("Query/_Lawyer", new QuerySearchModel("query_lawyer", "lawyerNo|lawyer_no").SetOriginField("id").SetSearchFun("SetLawFirmQueryFun()").SetAjaxSelectName("name")) @Html.Partial("Query/_Staff", new QuerySearchModel("query_staff", "staffNo,name,staffOrgName").SetOriginField("id,name,staffOrgName").SetSearchFun("SetContractQueryFun()").SetAjaxSelectName("name")) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@