| | |
| | | |
| | | <label class="text-right col-sm-1 col-md-1 control-label">意向客户<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2"> |
| | | <select id="Viscustomer" class="form-control" name="Viscustomer" data-placeholder="选择 序列 ..." style="font-weight:normal;"> |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in customer) |
| | | { |
| | | @if (!item.Id.Equals(Model.Viscustomer)) |
| | | @if (customer.Count > 0) |
| | | { |
| | | <select id="Viscustomer" class="form-control" name="Viscustomer" data-placeholder="选择 序列 ..." style="font-weight:normal;"> |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in customer) |
| | | { |
| | | <option value="@item.Id" hassubinfo="true"> |
| | | @item.Name |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.Id" hassubinfo="true" selected="selected"> |
| | | @item.Name |
| | | </option> |
| | | @if (!item.Id.Equals(Model.Viscustomer)) |
| | | { |
| | | <option value="@item.Id" hassubinfo="true"> |
| | | @item.Name |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.Id" hassubinfo="true" selected="selected"> |
| | | @item.Name |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | </select> |
| | | |
| | | } |
| | | |
| | | </select> |
| | | } |
| | | else |
| | | { |
| | | @Model.ViscustomerName |
| | | <input type="hidden" id="Viscustomer" name="Viscustomer" value="@Model.Viscustomer" /> |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | <input type="hidden" id="IsYwjl" name="IsYwjl" value="@IsYwjl" /> |
| | | </div> |
| | |
| | | }; |
| | | |
| | | laydate({ elem: "#Vistime", format: 'YYYY/MM/DD', istime: true, event: "focus" }); |
| | | $("#Viscustomer").chosen(); |
| | | |
| | | if ( @customer.Count > 0) |
| | | { |
| | | $("#Viscustomer").chosen(); |
| | | } |
| | | |
| | | var id = '@Model.Id'; |
| | | var bUpload = false; |
| | | var bAdd = false; // 新增操作 |