username@email.com
2022-07-25 09c2292a34980beff332c65239b68e9c619a9663
zhengcaioa/zhengcaioa/Views/CooperOrder/EditZhiyihan.cshtml
@@ -247,7 +247,7 @@
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">质疑项目名称<i class="red">*</i></label>
                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                    <div class="col-sm-4 col-md-4" grouptype="Vdata">
                                        <input class="form-control" label="质疑项目名称" name="zhiyiXmName" id="zhiyiXmName" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@Model.XmName">
                                    </div>
@@ -282,7 +282,7 @@
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">采购人名称<i class="red">*</i></label>
                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                    <div class="col-sm-4 col-md-4" grouptype="Vdata">
                                        <input class="form-control" label="采购人名称" name="zhiyiPurchaserName" id="zhiyiPurchaserName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.PurchaserName">
                                    </div>
@@ -307,37 +307,48 @@
                                    <div class="zhiyishixiangitem">
                                        @if (challengeItemDTOs.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)
                                        <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(challengeItemDTOs[i].Question))
                                                        {
                                                            @if (!item.CodeSn.Equals(challengeItemDTOs[i].Question))
                                                            {
                                                                <option value="@item.CodeSn" hassubinfo="true">
                                                                    @item.Comments
                                                                </option>
                                                            }
                                                            else
                                                            {
                                                                <option value="@item.CodeSn" hassubinfo="true" selected="selected">
                                                                    @item.Comments
                                                                </option>
                                                            }
                                                            <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="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                                </div>
                                                    }
                                                    }
                                                </select>
                                                <input type="hidden" name="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                            </div>
                                            @if (i == 0)
                                            {
                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                    <button type="button" class="addBtn" onclick="OpenWindow('自定义质疑事项','98%','100%', '/SysCode/Editquestionzidingyi')" data-type="1">自定义质疑事项</button>
                                                </div>
                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                    <button type="button" class="addBtn" onclick="addlawinfo(this)" data-type="1">新增法律依据</button>
                                                </div>
                                                @*<div class="col-sm-2 col-md-2" grouptype="Vdata">
                <button type="button" class="addBtn" onclick="addquestion(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>
@@ -353,9 +364,9 @@
                                                <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">
                                                        《@(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                        《@(challengeItemDTOs[i].sysCodeDtls[j].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                    </div>
                                                    <input type="hidden"  name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
                                                    <input type="hidden"  name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
                                                    <input type="hidden"  name="challengeItemIdlaw" value="@challengeItemDTOs[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>
@@ -367,9 +378,9 @@
                                            <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">
                                                    《@(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                    《@(challengeItemDTOs[i].sysCodeDtls[j].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                </div>
                                                <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
                                                <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
                                                <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[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>
@@ -384,46 +395,49 @@
                                        }
                                        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(challengeItemDTOs[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="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                                </div>
                                                @if (i == 0)
                                    <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)
                                                {
                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                        <button type="button" class="addBtn" onclick="addzhiyishixiang(this)" data-type="1">质疑事项</button>
                                                    </div>
                                                    @*<div class="col-sm-2 col-md-2" grouptype="Vdata">
                        <button type="button" class="addBtn" onclick="addquestion(this)" data-type="1">新增质疑事项</button>
                    </div>*@
                                                    @if (!item.CodeSn.Equals(challengeItemDTOs[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="challengeItemId" value="@challengeItemDTOs[i].Id" />
                                        </div>
                                        @if (i == 0)
                                        {
                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                <button type="button" class="addBtn" onclick="OpenWindow('自定义质疑事项','98%','100%', '/SysCode/Editquestionzidingyi')" data-type="1">自定义质疑事项</button>
                                            </div>
                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                                <button type="button" class="addBtn" onclick="addlawinfo(this)" data-type="1">新增法律依据</button>
                                            </div>
                                            @*<div class="col-sm-2 col-md-2" grouptype="Vdata">
                <button type="button" class="addBtn" onclick="addquestion(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>
                                                <label grouptype="Vdata" 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'">@challengeItemDTOs[i].Evidential</textarea>
                                                </div>
@@ -436,9 +450,9 @@
                                                <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">
                                                        《@(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                        《@(challengeItemDTOs[i].sysCodeDtls[j].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                    </div>
                                                    <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
                                                    <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
                                                    <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[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>
@@ -451,9 +465,9 @@
                                            <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">
                                                    《@(challengeItemDTOs[i].sysCodeDtls[j].CodeSn)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                    《@(challengeItemDTOs[i].sysCodeDtls[j].Classify3)》@(challengeItemDTOs[i].sysCodeDtls[j].Classify2):@challengeItemDTOs[i].sysCodeDtls[j].Contents
                                                </div>
                                                <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].Comments" />
                                                <input type="hidden" name="Law" value="@challengeItemDTOs[i].sysCodeDtls[j].CodeSn" />
                                                <input type="hidden" name="challengeItemIdlaw" value="@challengeItemDTOs[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>
@@ -519,9 +533,9 @@
                                            </div>
                                            @*<div class="col-sm-2 col-md-2" grouptype="Vdata">
                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
                    <button type="button" class="addBtn" onclick="addrequestinfo(this)" data-type="1">新增质疑请求</button>
                </div>*@
                </div>
@@ -680,13 +694,17 @@
                            parent.layer.msg('成功保存', { icon: 6 });
                            //window.location = "/Project/add?id=" + data.ReturnID;
                            try {
                                _pageAutoClose();//自动关闭页面方法
                            if (Status == 1) {
                                _reloadPageData();
                            } else {
                                try {
                                    _pageAutoClose();//自动关闭页面方法
                                }
                                catch (err) {
                                    parent._CloseTab1("/CooperOrder/EditZhiyihan");
                                }
                            }
                            catch (err) {
                                parent._CloseTab1("/CooperOrder/EditZhiyihan");
                            }
                        }
                        else {
@@ -756,10 +774,10 @@
                                        <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" >
                                               《` + data.DataList[i].CodeSn + `》` + data.DataList[i].Classify2 + `:` + data.DataList[i].Contents + `
                                               《` + data.DataList[i].Classify3 + `》` + data.DataList[i].Classify2 + `:` + data.DataList[i].Contents + `
                                            </div>
<input type="hidden"  name="Law" value="` + data.DataList[i].Comments + `" />
<input type="hidden"  name="Law" value="` + data.DataList[i].CodeSn + `" />
  <input type="hidden"   name="challengeItemIdlaw" 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>
@@ -773,10 +791,10 @@
                                        <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" >
                                                 《` + data.DataList[i].CodeSn + `》` + data.DataList[i].Classify2 + `:` + data.DataList[i].Contents + `
                                                 《` + data.DataList[i].Classify3 + `》` + data.DataList[i].Classify2 + `:` + data.DataList[i].Contents + `
                                            </div>
<input type="hidden"  name="Law" value="` + data.DataList[i].Comments + `" />
<input type="hidden"  name="Law" value="` + data.DataList[i].CodeSn + `" />
  <input type="hidden"  name="challengeItemIdlaw" 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>
@@ -875,7 +893,7 @@
            if (document.getElementsByName("Question").length == 1) {
                $('#Questionlabel').text("质疑事项1");
                $('#Evidentiallabel').text("事实依据1");
                $('#Evidentiallabel').text("事实依据");
            }
            $('#zhiyishixiang').append(`   <div class="zhiyishixiangitem">
@@ -901,9 +919,9 @@
                                        </div>
                                        <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>
                                            <label grouptype="Vdata" 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="事实依据`+ sss + `" 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'"></textarea>
                                                <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'"></textarea>
                                            </div>
                                        </div>
 <div  id="falvyiju`+ sss + `">
@@ -924,15 +942,22 @@
        }
        var _reloadPageData = function () {
            window.location = "/CooperOrder/EditTousushu?id=" + $("#OrderId").val();
            window.location = "/CooperOrder/EditZhiyihan?id=" + $("#OrderId").val();
        }
        var _reloadPageData1 = function (ReturnID) {
            window.location = "/CooperOrder/EditZhiyihan?id=" + $("#OrderId").val() + "&ReturnID=" + ReturnID;
        }
        var addquestion = function () {
            OpenWindow("新增质疑事项", "98%", "90%", "/SysCode/Editquestion/");
        }
        var addrequestinfo = function () {
            OpenWindow("新增质疑请求", "98%", "90%", "/SysCode/Editrequestinfo/");
            OpenWindow("新增质疑请求", "98%", "90%", "/SysCode/Editrequestinfozidingyi/");
        }
        var addlawinfo = function () {
            OpenWindow("新增法律依据", "98%", "90%", "/SysCode/Editlawzidingyi/");
        }
        //function PrintNumzichangge() {
        //    var sss = $('#PrintNumzi').val();