一、引用包ui
Microsoft.EntityFrameworkCore.Toolsurl
Microsoft.EntityFrameworkCore.SqlServerget
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilationinput
Microsoft.AspNetCore.Http.Abstractionsit
Microsoft.AspNetCore.Mvc.RazorPagesio
Microsoft.EntityFrameworkCorefunction
二、easyui組件 easyui-comboboxclass
<div style="margin-bottom:10px">
<input id="documenttype" name="type" class="easyui-combobox" label="類型:" style="width:100%"
data-options="
idField: 'id',
textField: 'value',
url: '/filedocumentlist/getdxtype',
method: 'get',
columns: [[
{field:'id',title:'序號',width:60},
{field:'value',title:'值',width:100}
]],
onLoadSuccess:function(){
$('#documenttype').combobox('setValue','選擇房屋類型');
}
">
</div>require
三、easyui組件 easyui-combogridfile
<input id="Userid" name="Userid" class="easyui-combogrid" required label="用戶:" style="width:100%" data-options=" idField: 'id', textField: 'value', url: '/userrolelist/getuserlist', method: 'get', columns: [[ {field:'id',title:'序號',width:60}, {field:'value',title:'值',width:100} ]], onLoadSuccess:function(){ $('#Userid').combobox('setValue','選擇用戶'); } ">