Sfoglia il codice sorgente

设置考试项---发证机关优化成可以支持模糊查询

lx 2 anni fa
parent
commit
5a1138af0f
1 ha cambiato i file con 17 aggiunte e 2 eliminazioni
  1. 17 2
      EMIS.Web/Views/ChargeProject/ProjectEdit.cshtml

+ 17 - 2
EMIS.Web/Views/ChargeProject/ProjectEdit.cshtml

@@ -59,6 +59,21 @@
             IsSingleSelect = true
         },
     };
+    ComboGridOptions cgopIssuedBy = new ComboGridOptions
+    {
+        TextField = "Name",
+        ValueField = "Value",
+        GridOptions = new DataGridOptions
+        {
+            Columns = new List<DataGridColumn>()
+            {
+                new BoundFieldColumn { FieldName="Name", HeaderText="发证机关", Align=AlignStyle.Center ,Width=0.1}
+            },
+            PageSize = 5, 
+            DataSourceUrl = Url.Content("~/DictionaryItem/DictionItemList?DictionaryDropdown=EX_Issuer"),
+            IsPagination = true, 
+        },
+    };
     ListControlOptions lcoptm = new ListControlOptions
     {
         ID = "ProjectSubjects",
@@ -121,8 +136,8 @@
                     <td style="width: 150px">
                         @Html.LabelFor(x => x.IssuedByID):
                     </td>
-                    <td>
-                        @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_Issuer, (x) => x.IssuedByID, new DropdownListOptions() { })
+                    <td> 
+                        @Html.ComboGridFor(x => x.IssuedByID, cgopIssuedBy)
                     </td>
                 </tr>
                 <tr>