From 2d7c6f2bd3071d0d458765ae108c98c88669e412 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期六, 28 一月 2023 13:41:23 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml | 34 +++++++++++++++++++++++++++------- 1 files changed, 27 insertions(+), 7 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml index 2870a79..ceb97f5 100644 --- a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml +++ b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml @@ -106,11 +106,20 @@ <option value="" hassubinfo="true">璇烽�夋嫨</option> @foreach (var item in ClassifyId) { - + + @if (!item.Id.Equals(Model.ClassifyId)) + { <option value="@item.Id" hassubinfo="true"> @item.ClassifyName </option> - + } + else + { + <option value="@item.Id" hassubinfo="true" selected="selected"> + @item.ClassifyName + </option> + } + } @@ -124,10 +133,21 @@ <option value="" hassubinfo="true">璇烽�夋嫨</option> @foreach (var item in Goods) { + @if (!item.Id.Equals(Model.Id)) + { + <option value="@item.Id" hassubinfo="true"> + @item.GoodsName + </option> + } + else + { + <option value="@item.Id" hassubinfo="true" selected="selected"> + @item.GoodsName + </option> + } - <option value="@item.Id" hassubinfo="true"> - @item.GoodsName - </option> + + } @@ -144,14 +164,14 @@ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍓╀綑鏁伴噺</label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="鍓╀綑鏁伴噺" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="" readonly=""> + <input class="form-control" label="鍓╀綑鏁伴噺" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.GoodsLeft" readonly=""> </div> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍏ュ簱鏁伴噺</label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="鍏ュ簱鏁伴噺" name="GoodsCaozuo" id="GoodsCaozuo" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> + <input class="form-control" label="鍏ュ簱鏁伴噺" name="GoodsCaozuo" id="GoodsCaozuo" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> </div> -- Gitblit v1.9.1