<div id="divMaterial" title="材料信息" style="display:none">
    <div id="divMaterialContent">

        <table id="tableEdit" class="font85 tableEdit">
            <tr>
                <td class="label">材料名称</td>
                <td>
                    @Html.TextBox("Name", null, new { maxlength = "100", @style = "width:260px" })&nbsp;<span class="redStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="label">材料类别</td>
                <td>
                    @Html.DropDownList("CategoryId", new SelectList(Model.DdlCategry, "ItemValue", "ItemText"))&nbsp;<span class="redStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="label">成本价</td>
                <td>
                    @Html.TextBox("CostPrice", null, new { maxlength = "50", @class = "price" })&nbsp;<span class="redStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="label">销售价</td>
                <td>
                    @Html.TextBox("SailPrice", null, new { maxlength = "50", @class = "price" })&nbsp;<span class="redStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="label">外协价</td>
                <td>
                    @Html.TextBox("FactoryPrice", null, new { maxlength = "50", @class = "price" })&nbsp;<span class="redStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="label">计价单位</td>
                <td>
                    @Html.DropDownList("PriceUnitId", new SelectList(Model.DdlPriceUnit, "ItemValue", "ItemText"))&nbsp;<span class="redStar">*</span>
                </td>
            </tr>


            <tr>
                <td class="label">开单可用</td>
                <td>
                    @Html.CheckBox("ForOrder")
                </td>
            </tr>
            <tr>
                <td class="label">登记库存</td>
                <td>
                    @Html.CheckBox("ForStock") &nbsp;
                    <a target="_blank" href="/VersionList/doc.html?c=12&d=0">“开单可用”和“登记库存”是什么意思？</a>
                </td>
            </tr>
            <tr id="trSaftyStock">
                <td class="label">安全库存</td>
                <td>
                    @Html.TextBox("SafetyStock", null, new { maxlength = "50", @class = "number" })
                </td>
            </tr>
            <tr id="trRMaterial">
                <td class="label">关联库存材料</td>
                <td>
                    @Html.DropDownList("StockMaterialId", new SelectList(Model.DdlMaterial, "ItemValue", "ItemText"))
                </td>
            </tr>
            <tr>
                <td class="label">状态</td>
                <td>
                    @Html.CheckBox("IsActive") 启用
                </td>
            </tr>
            <tr>
                <td class="label">备注</td>
                <td>@Html.TextArea("Memo", null, new { maxlength = "500", @style = "height:60px;width:90%" })</td>
            </tr>
        </table>
        <br />
    </div>
    @Html.Hidden("Id")
    <div style="text-align:right;">

        <div class="error-msg"></div>
        <button type="button" class="btn btn-default" id="btnCancel" onclick="$('#divMaterial').dialog('close');">取消</button>
        <button type="button" class="btn btn-primary" id="btnSaveMaterial">保存</button>

    </div>
</div>