New file |
| | |
| | | @model DTO.TChallengeletterDTO |
| | | @using DTO; |
| | | @using zhengcaioa.Models; |
| | | @{ |
| | | |
| | | |
| | | |
| | | List<SysCodeDtl> request_info = ViewData["request_info"] as List<SysCodeDtl>; //质疑请求 |
| | | List<SysCodeDtl> question = ViewData["question"] as List<SysCodeDtl>; //质疑事项 |
| | | List<SysCodeDtl> law = ViewData["law"] as List<SysCodeDtl>; //法律依据 |
| | | |
| | | List<TComplaintShouquandaibiaoDTO> challengecomplaintShouquandaibiaoDTOs = Model.complaintShouquandaibiaoDTOs; |
| | | |
| | | List<TChallengeItemDTO> challengeItemDTOs = Model.challengeItemDTOs; |
| | | |
| | | |
| | | } |
| | | @{ |
| | | Layout = null; |
| | | } |
| | | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
| | | <meta name="description" content=""> |
| | | <meta name="author" content="ThemeBucket"> |
| | | <title>@(SiteConfig.SiteName)</title> |
| | | <link href="~/css/bootstrap.min.css" rel="stylesheet"> |
| | | <link href="~/css/font-awesome.min.css" rel="stylesheet"> |
| | | <link href="~/css/animate.min.css" rel="stylesheet"> |
| | | |
| | | @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> |
| | | @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ |
| | | @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ |
| | | <link href="~/css/style.min.css" rel="stylesheet"> |
| | | <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> |
| | | <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> |
| | | |
| | | <style type="text/css"> |
| | | .webuploader-pick { |
| | | position: relative; |
| | | display: inline-block; |
| | | cursor: pointer; |
| | | background: #00b7ee; |
| | | padding: 8px 14px 7px 14px; |
| | | color: #fff; |
| | | text-align: center; |
| | | border-radius: 3px; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | div.clearfix > label { |
| | | padding-top: 8px; |
| | | } |
| | | |
| | | .chosen-container { |
| | | border-radius: 1px; |
| | | border: 1px solid #e5e6e7; |
| | | } |
| | | |
| | | .col-md-1.control-label { |
| | | padding-right: 0px; |
| | | font-weight: 400; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | table { |
| | | border-collapse: collapse; |
| | | border: none; |
| | | width: 900px; |
| | | margin-left: 0px; |
| | | text-align: center; |
| | | } |
| | | |
| | | td { |
| | | border: solid #000000 1px; |
| | | height: 30px; |
| | | } |
| | | </style> |
| | | |
| | | <!-- jqgrid--> |
| | | @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@ |
| | | <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> |
| | | <script src="~/js/bootstrap.min.js"></script> |
| | | @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@ |
| | | |
| | | <!--容器--> |
| | | @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ |
| | | @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> |
| | | @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ |
| | | <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ |
| | | <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/webuploader/webuploader.min.js"></script> |
| | | |
| | | <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> |
| | | <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> |
| | | @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ |
| | | @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ |
| | | <script src="~/js/TUJS.js"></script> |
| | | </head> |
| | | <body class="gray-bg" style="overflow:auto"> |
| | | <form id="formtest"> |
| | | <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> |
| | | <div class="row"> |
| | | <div class="col-sm-12"> |
| | | <div class="ibox float-e-margins"> |
| | | <div class="ibox-title"> |
| | | <h5> <i class="fa fa-list"></i> 基本信息</h5> |
| | | </div> |
| | | <div id="div_content" class="ibox-content" style="background-color:white;"> |
| | | <div class="row"> |
| | | <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,'')"> |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | <input type="hidden" id="OrderId" name="OrderId" value="@Model.OrderId" /> |
| | | <input type="hidden" id="Id" name="Id" value="@Model.Id" /> |
| | | </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">质疑供应商<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="质疑供应商" name="GysName" id="GysName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysName"> |
| | | |
| | | </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 class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="地址" name="GysAddress" id="GysAddress" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysAddress"> |
| | | |
| | | </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"> |
| | | <input class="form-control" label="邮编" name="GysPostcode" id="GysPostcode" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysPostcode"> |
| | | |
| | | </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 class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="联系人" name="GysContacts" id="GysContacts" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysContacts"> |
| | | |
| | | </div> |
| | | |
| | | <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"> |
| | | <input class="form-control" label="联系电话" name="GysPhone" id="GysPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.GysPhone"> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | <div id="zhiyishouquan"> |
| | | @for (int i = 0; i < challengecomplaintShouquandaibiaoDTOs.Count; i++) |
| | | { |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">授权代表@(i!=0?(i+""):"")</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="授权代表@(i!=0?(i+""):"")" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Shouquandaibiao"> |
| | | |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">联系电话@(i!=0?(i+""):"")</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="联系电话@(i!=0?(i+""):"")" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua"> |
| | | |
| | | </div> |
| | | @if (i == 0) |
| | | { |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <button type="button" class="addBtn" onclick="addzhiyishouquan(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!=0?(i+""):"")</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="地址@(i!=0?(i+""):"")" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Dizhi"> |
| | | |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">邮编@(i!=0?(i+""):"")</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="邮编@(i!=0?(i+""):"")" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Youbian"> |
| | | |
| | | </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">质疑项目名称<i class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" 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> |
| | | |
| | | <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"> |
| | | <input class="form-control" label="质疑项目编号" name="zhiyiXmCode" id="zhiyiXmCode" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.XmCode"> |
| | | |
| | | </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"> |
| | | <input class="form-control" label="包号" name="zhiyiXmPackage" id="zhiyiXmPackage" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@Model.XmPackage"> |
| | | |
| | | </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 class="red">*</i></label> |
| | | <div class="col-sm-2 col-md-2" 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> |
| | | |
| | | <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"> |
| | | <input class="form-control" label="采购文件获取日期" name="zhiyiDocumentsDate" id="zhiyiDocumentsDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.DocumentsDateName" readonly="readonly"> |
| | | |
| | | </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 id="zhiyishixiang"> |
| | | @for (int i = 0; i < challengeItemDTOs.Count; i++) |
| | | { |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">质疑事项@(i!=0?(i+""):"")</label> |
| | | <div class="col-sm-4 col-md-4" grouptype="Vdata"> |
| | | <select class="form-control" name="Question" data-placeholder="选择 序列 ..."> |
| | | <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> |
| | | |
| | | </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!=0?(i+""):"")</label> |
| | | <div class="col-sm-8 col-md-8"> |
| | | <textarea class="form-control bt" name="Evidential" title="事实依据" isempty="" maxlength="300" length="long">@challengeItemDTOs[i].Evidential</textarea> |
| | | </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!=0?(i+""):"")</label> |
| | | <div class="col-sm-4 col-md-4" grouptype="Vdata"> |
| | | <select class="form-control" name="Law" data-placeholder="选择 序列 ..." onchange="Lawchangge(@i);"> |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in law) |
| | | { |
| | | @if (!item.CodeSn.Equals(challengeItemDTOs[i].Law)) |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.CodeSn" hassubinfo="true" selected="selected"> |
| | | @item.Comments |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | </select> |
| | | |
| | | </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!=0?(i+""):"")</label> |
| | | <div class="col-sm-8 col-md-8"> |
| | | <textarea class="form-control bt" name="Lawcoment" title="内容" isempty="" maxlength="300" length="long">@challengeItemDTOs[i].Lawcoment</textarea> |
| | | </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> |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | </select> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="wrapper wrapper-content" style="margin-top:0px"></div> |
| | | <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="savePosition();" style="margin-left:4px; border-radius:4px;"> |
| | | <i class="glyphicon glyphicon-ok"></i> <span class="bold">提交</span> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | </form> |
| | | <script type="text/javascript"> |
| | | |
| | | //var DuanxinNeirong = document.getElementById("DuanxinNeirong"); |
| | | |
| | | //DuanxinNeirong.style.height = DuanxinNeirong.scrollHeight + 'px'; |
| | | |
| | | var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 + 1000; |
| | | $("#div_content").height(hh); |
| | | |
| | | toastr.options = { |
| | | "closeButton": true, |
| | | "debug": false, |
| | | "progressBar": true, |
| | | "positionClass": "toast-bottom-right", |
| | | "onclick": null, |
| | | "showDuration": "300", |
| | | "hideDuration": "600", |
| | | "timeOut": "4500", |
| | | "extendedTimeOut": "600", |
| | | "showEasing": "swing", |
| | | "hideEasing": "linear", |
| | | "showMethod": "fadeIn", |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | |
| | | laydate({ elem: "#zhiyiDocumentsDate", format: 'YYYY-MM-DD', istime: true, event: "focus" }); |
| | | |
| | | $("select").chosen(); |
| | | |
| | | var id = '@Model.Id'; |
| | | var bUpload = false; |
| | | var bAdd = false; // 新增操作 |
| | | var fileId = ""; // 上传文件生成的Id |
| | | var bEditFile = false; // 编辑时,是否关联了附件 |
| | | var bDeleteFile = false; // 删除操作 |
| | | var attachment_id = 0; // 附件id |
| | | var imgLoad = new Object(); |
| | | |
| | | |
| | | |
| | | |
| | | // 保存岗位信息 |
| | | var savePosition = function () { |
| | | |
| | | if ($.trim($("#GysName").val()) == '') { |
| | | toastr.warning("质疑供应商不能为空"); |
| | | return; |
| | | } |
| | | if ($.trim($("#GysAddress").val()) == '') { |
| | | toastr.warning("质疑供应商地址不能为空"); |
| | | return; |
| | | } |
| | | //if ($.trim($("#GysPostcode").val()) == '') { |
| | | // toastr.warning("质疑供应商邮编不能为空"); |
| | | // return; |
| | | //} |
| | | if ($.trim($("#GysContacts").val()) == '') { |
| | | toastr.warning("质疑供应商联系人不能为空"); |
| | | return; |
| | | } |
| | | if ($.trim($("#GysPhone").val()) == '') { |
| | | toastr.warning("质疑供应商联系电话不能为空"); |
| | | return; |
| | | } |
| | | |
| | | if ($.trim($("#zhiyiXmName").val()) == '') { |
| | | toastr.warning("项目名称不能为空"); |
| | | return; |
| | | } |
| | | if ($.trim($("#zhiyiXmCode").val()) == '') { |
| | | toastr.warning("项目编号不能为空"); |
| | | return; |
| | | } |
| | | if ($.trim($("#zhiyiPurchaserName").val()) == '') { |
| | | toastr.warning("采购人名称不能为空"); |
| | | return; |
| | | } |
| | | if ($.trim($("#zhiyiDocumentsDate").val()) == '') { |
| | | toastr.warning("采购文件获取日期不能为空"); |
| | | return; |
| | | } |
| | | if ($("#PrintNum").val() == '') { |
| | | toastr.warning("副本数量不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "/CooperOrder/SaveChallengeletter", |
| | | dataType: "json", |
| | | global: false, |
| | | data: $('form').serializeArray(), |
| | | success: function (data) { |
| | | |
| | | |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('成功保存', { icon: 6 }); |
| | | //window.location = "/Project/add?id=" + data.ReturnID; |
| | | |
| | | |
| | | try { |
| | | _pageAutoClose();//自动关闭页面方法 |
| | | } |
| | | catch (err) { |
| | | parent._CloseTab1("/CooperOrder/EditZhiyihan"); |
| | | } |
| | | |
| | | } |
| | | else { |
| | | // toastr.error("失败"); |
| | | parent.layer.msg(data.Message, { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | |
| | | |
| | | parent.layer.msg('失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | function Lawchangge(i) { |
| | | var sss = document.getElementsByName("Law")[i].value; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: "/CooperOrder/getLaw?id=" + sss, |
| | | dataType: "json", |
| | | global: false, |
| | | data: "", |
| | | success: function (data) { |
| | | |
| | | if (data.Result) { |
| | | document.getElementsByName("Lawcoment")[i].value = data.Message; |
| | | |
| | | } else { |
| | | parent.layer.msg('查询失败', { icon: 5 }); |
| | | } |
| | | }, |
| | | error: function () { |
| | | |
| | | |
| | | parent.layer.msg('查询失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function _pageAutoClose() { |
| | | parent.window._reloadPageData(); |
| | | var index = parent.layer.getFrameIndex(window.name); |
| | | parent.layer.isRefresh = true; |
| | | parent.layer.closeAll('loading'); |
| | | parent.layer.close(index); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | function addzhiyishouquan(obj) { |
| | | var sss = document.getElementsByName("zhiyiShouquandaibiao").length; |
| | | |
| | | $('#zhiyishouquan').append(` <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">授权代表`+ sss + `</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="授权代表`+ sss + `" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=""> |
| | | |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">联系电话`+ sss + `</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="联系电话`+ sss + `" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=""> |
| | | |
| | | </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">地址`+ sss + `</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="地址`+ sss + `" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" "> |
| | | |
| | | </div> |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">邮编`+ sss + `</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="邮编`+ sss + `" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" "> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </div>`); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | function addzhiyishixiang(obj) { |
| | | var sss = document.getElementsByName("Question").length; |
| | | |
| | | $('#zhiyishixiang').append(` |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">质疑事项`+ sss + `</label> |
| | | <div class="col-sm-4 col-md-4" grouptype="Vdata"> |
| | | <select class="form-control" name="Question" data-placeholder="选择 序列 ..."> |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in question) |
| | | { |
| | | |
| | | <option value="@item.CodeSn" hassubinfo="true" > |
| | | @item.Comments |
| | | </option> |
| | | |
| | | } |
| | | } |
| | | |
| | | </select> |
| | | |
| | | </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">事实依据`+ sss + `</label> |
| | | <div class="col-sm-8 col-md-8"> |
| | | <textarea class="form-control bt" name="Evidential" title="事实依据" isempty="" maxlength="4000" length="long"></textarea> |
| | | </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">法律依据`+ sss + `</label> |
| | | <div class="col-sm-4 col-md-4" grouptype="Vdata"> |
| | | <select class="form-control" name="Law" data-placeholder="选择 序列 ..." onchange="Lawchangge(`+ sss + `);"> |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in law) |
| | | { |
| | | |
| | | <option value="@item.CodeSn" hassubinfo="true" > |
| | | @item.Comments |
| | | </option> |
| | | |
| | | } |
| | | } |
| | | |
| | | </select> |
| | | |
| | | </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">内容`+ sss + `</label> |
| | | <div class="col-sm-8 col-md-8"> |
| | | <textarea class="form-control bt" name="Lawcoment" title="内容" isempty="" maxlength="4000" length="long"></textarea> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | `); |
| | | $("select").chosen(); |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |