2 xi de xi_de 于 2016.01.15 11:10 提问

mvc4 +easy ui form load 标签下的值

刚刚遇到一个问题 ,实在不知怎么用好的方法解决,






        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.WareHouseM.Manager)
            </th>
            <td>
                @Html.TextBoxFor(m => m.WareHouseM.Manager, new { @class = "easyui-combobox", required = "true" })
            </td>
            <th>@Html.LabelFor(m => m.WareHouseM.Phone)</th>
            <td>@Html.TextBoxFor(m => m.WareHouseM.Phone, new { @class = "easyui-textbox" })</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.WareHouseM.Fax)</th>
            <td>@Html.TextBoxFor(m => m.WareHouseM.Fax, new { @class = "easyui-textbox" })</td>
            <th>@Html.LabelFor(m => m.WareHouseM.MobilePhone)</th>
            <td>@Html.TextBoxFor(m => m.WareHouseM.MobilePhone, new { @class = "easyui-textbox" })</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.WareHouseM.Address)</th>
            <td colspan="3">@Html.TextBoxFor(m => m.WareHouseM.Address, new { @class = "easyui-textbox", style = " width:455px;" })</td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(m => m.WareHouseM.PostNO)
            </th>
            <td>@Html.TextBoxFor(m => m.WareHouseM.PostNO, new { @class = "easyui-textbox" })</td>
            <th>@Html.LabelFor(m => m.WareHouseM.PosClear)</th>
            <td>@Html.TextBoxFor(m => m.WareHouseM.PosClear, new { @class = "easyui-validatebox", type = "checkbox" })</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.WareHouseM.SimpleWareHouseName)</th>
            <td>@Html.TextBoxFor(m => m.WareHouseM.SimpleWareHouseName, new { @class = "easyui-textbox" })</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.WareHouseM.Memo)</th>
            <td colspan="3">@Html.TextBoxFor(m => m.WareHouseM.Memo, new { @class = "easyui-textbox", style = " width:455px;" })</td>
        </tr>
    </table>
</form>





我在页面上用到 二级对象来加载数据控件,但是在 赋值的时候不能 用 easy ui form load()方法吧查出来的对象加载出来。用一级对象 是可以的 问问哪位有好的解决方法 不想一个一个的去赋值。

@Html.LabelFor(m => m.WareHouseM.WareHouseName) @Html.TextBoxFor(m => m.WareHouseM.WareHouseName, new { @class = "easyui-textbox", required = "true" }) @Html.LabelFor(m => m.WareHouseM.WareHouseCode)
@Html.TextBoxFor(m => m.WareHouseM.WareHouseCode, new { @class = "easyui-textbox", required = "true" })

1个回答

devmiao
devmiao   Ds   Rxr 2016.01.19 04:34
xi_de
xi_de 看了你给我的 资料 还是没有解决 我现在的 多级对象 赋值的问题 不过还是 谢谢你
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!