From 7df23c739201c4413e3e64affae1707a694a2e1b Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 16 六月 2022 12:56:47 +0800 Subject: [PATCH] 打印合同 --- zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml | 601 +++++++++++++++++++++++++++++++---------------------- 1 files changed, 351 insertions(+), 250 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml index 50faffc..dadd4a8 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/EditTousushu.cshtml @@ -129,36 +129,43 @@ <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> + <div class="col-sm-2 col-md-2"> - @*<input class="form-control" label="鍓湰鏁伴噺" name="PrintNum" id="PrintNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.PrintNum" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')">*@ - <select id="PrintNumzi" class="form-control" name="PrintNumzi" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="PrintNumzichangge();"> - - @for (int i = 1; i < 6; i++) - { - @if (i != Model.PrintNum) - { - <option value="@i" hassubinfo="true"> - @i - </option> - } - else - { - <option value="@i" hassubinfo="true" selected="selected"> - @i - </option> - } - - } - </select> - </div> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="鍓湰鏁伴噺" name="PrintNum" id="PrintNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.PrintNum" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"> + @*<input class="form-control" list="PrintNumzi" label="鍓湰鏁伴噺" name="PrintNum" id="PrintNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.PrintNum" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"> + <datalist id="PrintNumzi"> + @for (int i = 1; i < 6; i++) + { + + <option value="@i" hassubinfo="true"> + @i + </option> + + + } + </datalist>*@ + <div class="input-group"> + <input type="text" name="PrintNum" id="PrintNum" class="form-control" value="@Model.PrintNum" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" onafterpaste="this.value=this.value.replace(/[^0-9]/g,'')"> + <div class="input-group-btn"> + <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> + + <span class="caret"></span> + </button> + <ul class="dropdown-menu pull-right"> + <li><a href="javascript:document.getElementById('PrintNum').value =1; ">1</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =2; ">2</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =3; ">3</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =4; ">4</a></li> + <li><a href="javascript:document.getElementById('PrintNum').value =5; ">5</a></li> + </ul> + </div><!-- /btn-group --> + </div><!-- /input-group --> + </div> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璐ㄧ枒鍑�</label> + @*<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"> <select id="TsrId" class="form-control" name="TsrId" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="TsrIdchangge();"> <option value="" hassubinfo="true">璇烽�夋嫨</option> @@ -181,7 +188,7 @@ </select> - </div> + </div>*@ @@ -292,9 +299,7 @@ </div> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addbeitousuren(this)" data-type="1">琚姇璇変汉</button> - </div> + @@ -335,23 +340,23 @@ else { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">琚姇璇変汉@(i+1)</label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="琚姇璇変汉@(i+1)" name="tousuRespondent" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Respondent"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">琚姇璇変汉@(i+1)</label> + <div class="col-sm-2 col-md-2" grouptype="Vdata"> + <input class="form-control" label="琚姇璇変汉@(i+1)" name="tousuRespondent" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Respondent"> - </div> + </div> - @if (i==0) - { - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addbeitousuren(this)" data-type="1">琚姇璇変汉</button> - </div> - } + @if (i == 0) + { + <div class="col-sm-2 col-md-2" grouptype="Vdata"> + <button type="button" class="addBtn" onclick="addbeitousuren(this)" data-type="1">琚姇璇変汉</button> + </div> + } - </div> + </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍦板潃@(i+1)</label> @@ -390,10 +395,14 @@ </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> + <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"> - <button type="button" class="addBtn" onclick="addxiangguangongyingshang(this)" data-type="1">鐩稿叧渚涘簲鍟�</button> + + <button type="button" class="addBtn" onclick="addbeitousuren(this)" data-type="1" style="width:32px">+</button> + <button type="button" class="delBtn" onclick="delBtn(this)" data-type="1" style="width:32px">-</button> </div> </div> + <div id="xiangguangongyingshang"> @@ -494,7 +503,14 @@ </div> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <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"> + <button type="button" class="addBtn" onclick="addxiangguangongyingshang(this)" data-type="2" style="width:32px">+</button> + <button type="button" class="delBtn" onclick="delBtn(this)" data-type="2" style="width:32px">-</button> + </div> + </div> @@ -514,8 +530,22 @@ <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="tousuXmPackage" id="tousuXmPackage" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.XmPackage"> + <div class="input-group"> + <input type="text" name="tousuXmPackage" id="tousuXmPackage" class="form-control" value="@Model.XmPackage"> + <div class="input-group-btn"> + <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> + <span class="caret"></span> + </button> + <ul class="dropdown-menu pull-right"> + <li><a href="javascript:$('#tousuXmPackage').val('绗�1鍖�')">绗�1鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�2鍖�')">绗�2鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�3鍖�')">绗�3鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�4鍖�')">绗�4鍖�</a></li> + <li><a href="javascript:$('#tousuXmPackage').val('绗�5鍖�')">绗�5鍖�</a></li> + </ul> + </div><!-- /btn-group --> + </div><!-- /input-group --> </div> </div> @@ -626,7 +656,7 @@ <input class="form-control" label="琚川鐤戜富浣�" name="tousuQuestioned" id="tousuQuestioned" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@Model.Questioned"> </div> - + </div> @@ -656,205 +686,222 @@ <div id="zhiyishixiang"> @for (int i = 0; i < complaintItemDTOs.Count; i++) { - @if (complaintItemDTOs.Count == 1) - { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" id="Questionlabel" class="text-right col-sm-1 col-md-1 control-label">鎶曡瘔浜嬮」</label> - <div class="col-sm-4 col-md-4" grouptype="Vdata"> - <select class="form-control" name="Question" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="Questionchangge(@i);"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in question) - { - @if (!item.CodeSn.Equals(complaintItemDTOs[i].Question)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } + <div class="zhiyishixiangitem"> + @if (complaintItemDTOs.Count == 1) + { + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" id="Questionlabel" class="text-right col-sm-1 col-md-1 control-label">鎶曡瘔浜嬮」</label> + <div class="col-sm-4 col-md-4" grouptype="Vdata"> + <select class="form-control" name="Question" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="Questionchangge(@i);"> + <option value="" hassubinfo="true">璇烽�夋嫨</option> + @foreach (var item in question) + { + @if (!item.CodeSn.Equals(complaintItemDTOs[i].Question)) + { + <option value="@item.CodeSn" hassubinfo="true"> + @item.Comments + </option> + } + else + { + <option value="@item.CodeSn" hassubinfo="true" selected="selected"> + @item.Comments + </option> + } - } - } + } + } - </select> - - </div> - - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addzhiyishixiang(this)" data-type="1">鎶曡瘔浜嬮」</button> - </div> - - - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" id="Evidentiallabel" class="text-right col-sm-1 col-md-1 control-label">浜嬪疄渚濇嵁</label> - <div class="col-sm-8 col-md-8"> - <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="3500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@complaintItemDTOs[i].Evidential</textarea> - </div> - </div> - - <div id="falvyiju@(i)"> - @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++) - { - @if (complaintItemDTOs[i].sysCodeDtls.Count == 1) - { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> - - - </div> - } - else - { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> - - - </div> - } - } - </div> - } - else - { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎶曡瘔浜嬮」@(i+1)</label> - <div class="col-sm-4 col-md-4" grouptype="Vdata"> - <select class="form-control" name="Question" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="Questionchangge(@i);"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in question) - { - @if (!item.CodeSn.Equals(complaintItemDTOs[i].Question)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - - </div> - @if (i == 0) - { - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addzhiyishixiang(this)" data-type="1">鎶曡瘔浜嬮」</button> - </div> - - } - - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">浜嬪疄渚濇嵁@(i+1)</label> - <div class="col-sm-8 col-md-8"> - <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="3500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@complaintItemDTOs[i].Evidential</textarea> - </div> - </div> - - <div id="falvyiju@(i)"> - @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++) - { - @if (complaintItemDTOs[i].sysCodeDtls.Count == 1) - { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> - - - </div> - } - else - { - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> - <div class="col-sm-8 col-md-8"> - 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents - </div> - - - </div> - } - } - </div> - } + </select> + <input type="hidden" name="complaintItemId" value="@complaintItemDTOs[i].Id" /> + </div> + </div> + + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" id="Evidentiallabel" class="text-right col-sm-1 col-md-1 control-label">浜嬪疄渚濇嵁</label> + <div class="col-sm-8 col-md-8"> + <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="3500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@complaintItemDTOs[i].Evidential</textarea> + </div> + </div> + + <div id="falvyiju@(i)"> + @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++) + { + @if (complaintItemDTOs[i].sysCodeDtls.Count == 1) + { + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> + + </div> + } + else + { + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> + + </div> + } + } + </div> + } + else + { + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎶曡瘔浜嬮」@(i+1)</label> + <div class="col-sm-4 col-md-4" grouptype="Vdata"> + <select class="form-control" name="Question" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="Questionchangge(@i);"> + <option value="" hassubinfo="true">璇烽�夋嫨</option> + @foreach (var item in question) + { + @if (!item.CodeSn.Equals(complaintItemDTOs[i].Question)) + { + <option value="@item.CodeSn" hassubinfo="true"> + @item.Comments + </option> + } + else + { + <option value="@item.CodeSn" hassubinfo="true" selected="selected"> + @item.Comments + </option> + } + + } + } + + </select> + <input type="hidden" name="complaintItemId" value="@complaintItemDTOs[i].Id" /> + </div> + + + </div> + + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">浜嬪疄渚濇嵁@(i+1)</label> + <div class="col-sm-8 col-md-8"> + <textarea class="form-control bt" name="Evidential" title="浜嬪疄渚濇嵁" isempty="" maxlength="3500" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@complaintItemDTOs[i].Evidential</textarea> + </div> + </div> + + <div id="falvyiju@(i)"> + @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++) + { + @if (complaintItemDTOs[i].sysCodeDtls.Count == 1) + { + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> + + </div> + } + else + { + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">娉曞緥渚濇嵁@(j+1)</label> + <div class="col-sm-8 col-md-8"> + 銆夽(complaintItemDTOs[i].sysCodeDtls[j].CodeSn)銆婡(complaintItemDTOs[i].sysCodeDtls[j].Classify2)锛欯complaintItemDTOs[i].sysCodeDtls[j].Contents + </div> + + <input type="hidden" name="Law" value="@complaintItemDTOs[i].sysCodeDtls[j].Comments" /> + <input type="hidden" name="complaintItemIdlaw" value="@complaintItemDTOs[i].Id" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> + </div> + } + } + </div> + } + + +</div> - } - </div> - - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-left col-sm-2 col-md-2 control-label">浜斻�佷笌鎶曡瘔浜嬮」鐩稿叧鐨勬姇璇夎姹�</label> - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璇锋眰</label> - <div class="col-sm-4 col-md-4" grouptype="Vdata"> - <select id="RequestInfo" class="form-control" name="RequestInfo" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in request_info) - { - @if (!item.CodeSn.Equals(Model.RequestInfo)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } } - } + </div> - </select> + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <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"> + + <button type="button" class="addBtn" onclick="addzhiyishixiang(this)" data-type="3" style="width:32px">+</button> + <button type="button" class="delBtn" onclick="delBtn(this)" data-type="3" style="width:32px">-</button> + </div> + </div> + + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label class="text-left col-sm-2 col-md-2 control-label">浜斻�佷笌鎶曡瘔浜嬮」鐩稿叧鐨勬姇璇夎姹�</label> + </div> + + <div class="clearfix layer-area" style="padding-bottom:15px;"> + <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璇锋眰</label> + <div class="col-sm-4 col-md-4" grouptype="Vdata"> + <select id="RequestInfo" class="form-control" name="RequestInfo" data-placeholder="閫夋嫨 搴忓垪 ..."> + <option value="" hassubinfo="true">璇烽�夋嫨</option> + @foreach (var item in request_info) + { + @if (!item.CodeSn.Equals(Model.RequestInfo)) + { + <option value="@item.CodeSn" hassubinfo="true"> + @item.Comments + </option> + } + else + { + <option value="@item.CodeSn" hassubinfo="true" selected="selected"> + @item.Comments + </option> + } + + } + } + + </select> + + </div> + @*<div class="col-sm-2 col-md-2" grouptype="Vdata"> + <button type="button" class="addBtn" onclick="addrequestinfo(this)" data-type="1">鏂板鎶曡瘔璇锋眰</button> + </div>*@ + + + </div> + + + + + + </div> - @*<div class="col-sm-2 col-md-2" grouptype="Vdata"> - <button type="button" class="addBtn" onclick="addrequestinfo(this)" data-type="1">鏂板鎶曡瘔璇锋眰</button> - </div>*@ - - - </div> - - - - - - - - </div> </div> </div> </div> @@ -864,14 +911,18 @@ <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> @*<a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> - </a>*@ - <a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎵撳嵃</span> + <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> + </a>*@ + @*<a class="btn btn-success" href="javascript:void(0)" onclick="printPosition();" style="margin-left:4px; border-radius:4px;"> + <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎵撳嵃</span> + </a>*@ + <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition(1);" style="margin-left:4px; border-radius:4px;"> + <i class="glyphicon glyphicon-ok"></i> <span class="bold">淇濆瓨</span> </a> - <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> + <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition(2);" style="margin-left:4px; border-radius:4px;"> <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> </a> + <input type="hidden" id="Status" name="Status" value="0" /> </div> </div> @@ -941,8 +992,8 @@ // 淇濆瓨宀椾綅淇℃伅 - var savePosition = function () { - + var savePosition = function (Status) { + if ($.trim($("#TsrName").val()) == '') { toastr.warning("鎶曡瘔浜轰笉鑳戒负绌�"); return; @@ -1011,7 +1062,7 @@ toastr.warning("鍓湰鏁伴噺涓嶈兘涓虹┖"); return; } - + $("#Status").val(Status); //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } $.ajax({ @@ -1133,18 +1184,18 @@ }); } - function PrintNumzichangge() { - var sss = $('#PrintNumzi').val(); - $('#PrintNum').val(sss); - } + //function PrintNumzichangge() { + // var sss = $('#PrintNumzi').val(); + // $('#PrintNum').val(sss); + //} function Questionchangge(i) { - + var challengeItemId = document.getElementsByName("complaintItemId")[i].value; var sss = document.getElementsByName("Question")[i].value; $.ajax({ type: "GET", - url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i, + url: "/CooperOrder/getQuestionLaw?id=" + sss + "&no=" + i + "&challengeItemId=" + challengeItemId, dataType: "json", global: false, data: "", @@ -1164,7 +1215,11 @@ 銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + ` </div> - +<input type="hidden" name="Law" value="` + data.DataList[i].Comments + `" /> + <input type="hidden" name="complaintItemIdlaw" value="` + data.Remark + `" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> </div> `; } else { @@ -1175,7 +1230,11 @@ 銆奰 + data.DataList[i].CodeSn + `銆媊 + data.DataList[i].Classify2 + `锛歚 + data.DataList[i].Contents + ` </div> - +<input type="hidden" name="Law" value="` + data.DataList[i].Comments + `" /> + <input type="hidden" name="complaintItemIdlaw" value="` + data.Remark + `" /> + <div class="col-sm-1 col-md-1" grouptype="Vdata"> + <button type="button" class="delBtn" onclick="dellawBtn(this)" data-type="1" style="width:32px">-</button> + </div> </div> `; } @@ -1225,7 +1284,7 @@ function addtousushouquan(obj) { - $("#tousushouquan").show(); + $("#tousushouquan").toggle(); //var sss = document.getElementsByName("tousuShouquandaibiao").length; @@ -1391,7 +1450,7 @@ $('#Evidentiallabel').text("浜嬪疄渚濇嵁1"); } - $('#zhiyishixiang').append(` + $('#zhiyishixiang').append(` <div class="zhiyishixiangitem"> <div class="clearfix layer-area" style="padding-bottom:15px;"> <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎶曡瘔浜嬮」`+ (sss + 1) + `</label> <div class="col-sm-4 col-md-4" grouptype="Vdata"> @@ -1408,7 +1467,7 @@ } </select> - + <input type="hidden" name="complaintItemId" value="`+ (guid()) + `" /> </div> </div> @@ -1430,7 +1489,7 @@ </div> - +</div> `); $("select").chosen(); } @@ -1462,9 +1521,51 @@ } - PrintNumzichangge(); + /* PrintNumzichangge();*/ - }); + }); + + function delBtn(obj) { + var num = $(obj).data().type; + console.log(num) + + if (num == 1) { + if ($('#beitousuren').find('.clearfix').length > 3) { + $('#beitousuren').find('.clearfix:last').remove(); + $('#beitousuren').find('.clearfix:last').remove(); + $('#beitousuren').find('.clearfix:last').remove(); + } + + } else if (num == 2) { + if ($('#xiangguangongyingshang').find('.clearfix').length > 1) { + $('#xiangguangongyingshang').find('.clearfix:last').remove(); + $('#xiangguangongyingshang').find('.clearfix:last').remove(); + $('#xiangguangongyingshang').find('.clearfix:last').remove(); + } + }else if (num == 3) { + if ($('#zhiyishixiang').find('.zhiyishixiangitem').length > 1) { + $('#zhiyishixiang').find('.zhiyishixiangitem:last').remove(); + } + + + + } + } + + + function dellawBtn(obj) { + + $(obj).parent().parent().remove(); + + + } + + function guid() { + function S4() { + return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); + } + return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4()); + } </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1