_LawFirm.cshtml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. @using ContractService.Configuration
  2. @using ContractService.Helpers
  3. @using ContractService.Views.Shared.Query
  4. @model QuerySearchModel
  5. @{
  6. string originFiled = "id,name,userName",
  7. modalId = "query_lawyer",
  8. modalName = "律所信息",
  9. url = IwbConsts.ApiAppUrl + "/Query/QueryLawFirm";
  10. List<QueryItem> queryItems = new List<QueryItem>()
  11. {
  12. new QueryItem("name", "律所名称",true),
  13. new QueryItem("displayName", "系统显示名称",true),
  14. new QueryItem("masterLawyerName", "律所负责人"),
  15. };
  16. originFiled = string.IsNullOrEmpty(Model.OriginField) ? originFiled : Model.OriginField;
  17. modalId = string.IsNullOrEmpty(Model.ModalId) ? modalId : Model.ModalId;
  18. modalName = string.IsNullOrEmpty(Model.ModalName) ? modalName : Model.ModalName;
  19. QueryViewModel qmModel = new QueryViewModel(modalName, url, modalId, queryItems, originFiled, Model.TargetField, Model.AjaxSelectNameField, Model.SubmitEventName, Model.ItemDbClickEventName, Model.ItemClickEventName, Model.IsMultiple, Model.QueryTreeSearch, Model.SearchBindFun, Model.ModalWidth);
  20. }
  21. @Html.Partial("Query/_QueryModal", qmModel)
  22. @using (Html.BeginScripts())
  23. {
  24. @*<script>
  25. $(function() {
  26. if (window.query_modal_lawyer && window.query_modal_lawyer.nonUserName) {
  27. }
  28. })
  29. </script>*@
  30. }