| | |
| | | |
| | | </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"> |
| | | @if ("A" == Model.ChushuStatus) |
| | | { |
| | | <input type="checkbox" class="form-control" id="ChushuStatusName" checked="checked" name="ChushuStatusName" value="A" /> |
| | | } |
| | | else |
| | | { |
| | | <input type="checkbox" class="form-control" id="ChushuStatusName" name="ChushuStatusName" value="A" /> |
| | | } |
| | | <input type="hidden" id="ChushuStatus" name="ChushuStatus" value="" /> |
| | | |
| | | </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"> |
| | | @if ("A" == Model.ShouCangStatus) |
| | | { |
| | | <input type="checkbox" class="form-control" id="ShouCangStatusName" checked="checked" name="ShouCangStatusName" value="A" /> |
| | | } |
| | | else |
| | | { |
| | | <input type="checkbox" class="form-control" id="ShouCangStatusName" name="ShouCangStatusName" value="A" /> |
| | | } |
| | | <input type="hidden" id="ShouCangStatus" name="ShouCangStatus" value="" /> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label class="text-right col-sm-1 col-md-1 control-label">问题<i class="red">*</i></label> |
| | |
| | | return; |
| | | } |
| | | |
| | | if ($("#ChushuStatusName").is(':checked')) { |
| | | $("#ChushuStatus").val("A"); |
| | | } else { |
| | | $("#ChushuStatus").val("D"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | imgLoad = parent.layer.load(2, { shade: [0.2, '#fff'] }); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/Liaotian/Save", |
| | | dataType: "json", |
| | | global: false, |
| | | data: { Id: id, Question: $("#Question").val(), Anwser: $("#Anwser").val(), Questiontype: $("#Questiontype").val(), Problemtype: $("#Problemtype").val(), Shiyongfatiao: $("#Shiyongfatiao").val()}, |
| | | data: { Id: id, Question: $("#Question").val(), Anwser: $("#Anwser").val(), Questiontype: $("#Questiontype").val(), Problemtype: $("#Problemtype").val(), Shiyongfatiao: $("#Shiyongfatiao").val(), ChushuStatus: $("#ChushuStatus").val()}, |
| | | success: function (data) { |
| | | |
| | | |
| | |
| | | return; |
| | | } |
| | | |
| | | if ($("#ChushuStatusName").is(':checked')) { |
| | | $("#ChushuStatus").val("A"); |
| | | } else { |
| | | $("#ChushuStatus").val("D"); |
| | | } |
| | | |
| | | |
| | | imgLoad = parent.layer.load(2, { shade: [0.2, '#fff'] }); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/Liaotian/Tijiaobingshenhe", |
| | | dataType: "json", |
| | | global: false, |
| | | data: { Id: id, Question: $("#Question").val(), Anwser: $("#Anwser").val(), Questiontype: $("#Questiontype").val(), Problemtype: $("#Problemtype").val(), Shiyongfatiao: $("#Shiyongfatiao").val() }, |
| | | data: { Id: id, Question: $("#Question").val(), Anwser: $("#Anwser").val(), Questiontype: $("#Questiontype").val(), Problemtype: $("#Problemtype").val(), Shiyongfatiao: $("#Shiyongfatiao").val(), ChushuStatus: $("#ChushuStatus").val() }, |
| | | success: function (data) { |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | $("#ShouCangStatusName").change(function () { |
| | | |
| | | if ($("#ShouCangStatusName").is(':checked')) { |
| | | $("#ShouCangStatus").val("A"); |
| | | } else { |
| | | $("#ShouCangStatus").val("D"); |
| | | } |
| | | |
| | | |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/Liaotian/ShouCang", |
| | | dataType: "json", |
| | | global: false, |
| | | data:{ Id: id, Question: $("#Question").val(), Anwser: $("#Anwser").val(), Questiontype: $("#Questiontype").val(), Problemtype: $("#Problemtype").val(), Shiyongfatiao: $("#Shiyongfatiao").val(), ChushuStatus: $("#ChushuStatus").val(), ShouCangStatus: $("#ShouCangStatus").val() }, |
| | | success: function (data) { |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('操作成功', { icon: 6 }); |
| | | |
| | | } |
| | | else { |
| | | |
| | | parent.layer.msg(data.Message, { icon: 5 }); |
| | | } |
| | | }, |
| | | error: function () { |
| | | |
| | | |
| | | parent.layer.msg('失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | $("#Questiontype").change(function () { |