xi_de 2016-01-15 03:10 采纳率: 13%
浏览 1380

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 2016-01-18 20:34
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算