From 841273f01aa22a6c78aa9c2cc7d350bf705eacdb Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 05 十二月 2022 15:26:30 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml index 17122a0..c52535a 100644 --- a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml +++ b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Chuku.cshtml @@ -107,9 +107,18 @@ @foreach (var item in ClassifyId) { - <option value="@item.Id" hassubinfo="true"> - @item.ClassifyName - </option> + @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> + } } @@ -125,9 +134,18 @@ @foreach (var item in Goods) { - <option value="@item.Id" hassubinfo="true"> - @item.GoodsName - </option> + @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> + } } @@ -144,7 +162,7 @@ <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="number" value="@Model.GoodsLeft" readonly=""> </div> -- Gitblit v1.9.1