@model DTO.ProjectDTO
|
@using DTO;
|
@using zhengcaioa.Models;
|
@{
|
// List<Zhuanjium> zhuanjia = ViewData["zhuanjia"] as List<Zhuanjium>; //专家
|
List<Cgf> cgfs = ViewData["cgfs"] as List<Cgf>; //采购方式
|
List<Area> sheng = ViewData["sheng"] as List<Area>; //省
|
List<Area> shi = ViewData["shi"] as List<Area>; //市
|
List<Area> quxian = ViewData["quxian"] as List<Area>; //区县
|
List<SysCodeDtl> flbx = ViewData["flbx"] as List<SysCodeDtl>; //问题类型
|
|
|
|
List<Projectreason> projectreasons = Model.projectreasons;
|
|
List<Projectyouxiao> Projectyouxiaos = Model.Projectyouxiaos;
|
|
List<ProjectzhongbiaoDTO> Projectzhongbiaos = Model.Projectzhongbiaos;
|
|
|
//string[] arrJobLevel = (Model.Zhuanjia ?? "").Split(',');
|
|
}
|
@{
|
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;
|
}
|
</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 id="StartTime" class="form-control" label="公告时间" name="StartTime" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.StartTime.ToString("yyyy/MM/dd HH:mm:ss")" readonly="readonly">
|
<input type="hidden" id="Id" name="Id" value="@Model.Id" />
|
</div>
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">项目区域<i class="red">*</i></label>
|
|
<div class="col-sm-1 col-md-1" grouptype="Vdata">
|
<select id="Sheng" class="form-control" name="Sheng" data-placeholder="选择 序列 ..." style="font-weight:normal;">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in sheng)
|
{
|
@if (!item.CodeId.Equals(Model.Sheng))
|
{
|
<option value="@item.CodeId" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeId" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
|
</div>
|
<div class="col-sm-1 col-md-1" grouptype="Vdata">
|
<select id="City" class="form-control" name="City" data-placeholder="选择 序列 ..." style="font-weight:normal;">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in shi)
|
{
|
@if (!item.CodeId.Equals(Model.City))
|
{
|
<option value="@item.CodeId" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeId" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
|
</div>
|
<div class="col-sm-1 col-md-1" grouptype="Vdata">
|
<select id="AreaId" class="form-control" name="AreaId" data-placeholder="选择 序列 ..." style="font-weight:normal;">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in quxian)
|
{
|
@if (!item.CodeId.Equals(Model.AreaId))
|
{
|
<option value="@item.CodeId" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeId" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
|
</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">
|
<select id="Cgfs" class="form-control" name="Cgfs" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in cgfs)
|
{
|
@if (!item.Id.Equals(Model.Cgfs))
|
{
|
<option value="@item.Id" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.Id" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
|
</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>
|
<div class="col-sm-2 col-md-2">
|
<input id="Number" class="form-control" label="公告时间" name="Number" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Number">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">项目名称<i class="red">*</i></label>
|
<div class="col-sm-4 col-md-4">
|
<input id="Name" class="form-control" label="公告时间" name="Name" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Name">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">采购预算</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="评审得分" name="Caigouyusuan" id="Caigouyusuan" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.CaigouyusuanName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,4})?/)">
|
</div>
|
<label class="text-left col-sm-1 col-md-1 control-label" style="width:60px;">万元</label>
|
</div>
|
<div id="addlist_1">
|
@for (int i = 0; i < Projectzhongbiaos.Count; i++)
|
{
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">中标(成交)供应商</label>
|
<div class="col-sm-4 col-md-4">
|
<input class="form-control" label="中标(成交)供应商" name="Names" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Projectzhongbiaos[i].Names">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">报价</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="报价" name="Price" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Projectzhongbiaos[i].Price">
|
<input type="hidden" name="ZhongbiaoId" value="@Projectzhongbiaos[i].ZhongbiaoId" />
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:60px;">评审得分</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="评审得分" name="Defen" id="Defen" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Projectzhongbiaos[i].DefenName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
</div>
|
<div class="col-sm-1 col-md-1" style="width:100px;">
|
@if (Projectzhongbiaos[i].ProjectId != null && Projectzhongbiaos[i].ProjectId == "yes")
|
{
|
<button type="button" data-type="1">添加供应商</button>
|
}
|
else
|
{
|
<button type="button" onclick="_pageAdd('@Projectzhongbiaos[i].Names')" data-type="1" style="color:red;">添加供应商</button>
|
}
|
|
|
</div>
|
@if (i == 0)
|
{
|
<div class="col-sm-1 col-md-1" style="width:80px;">
|
|
<button type="button" class="addBtn" onclick="addBtn(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>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">第二候选供应商</label>
|
<div class="col-sm-4 col-md-4">
|
<input class="form-control" label="公告时间" name="Drhx" id="Drhx" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Drhx">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">报价</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="公告时间" name="DrhxPrice" id="DrhxPrice" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.DrhxPrice">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:60px;">评审得分</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="评审得分" name="DrhxDefen" id="DrhxDefen" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.DrhxDefenName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
</div>
|
<div class="col-sm-1 col-md-1" style="width:100px;">
|
@if (Model.Drcunzai != null && Model.Drcunzai == "yes")
|
{
|
<button type="button" data-type="1">添加供应商</button>
|
}
|
else
|
{
|
<button type="button" onclick="_pageAdd('@Model.Drhx')" data-type="1" style="color:red;">添加供应商</button>
|
}
|
|
|
</div>
|
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">第三候选供应商</label>
|
<div class="col-sm-4 col-md-4">
|
<input class="form-control" label="公告时间" name="Dshx" id="Dshx" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Dshx">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">报价</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="公告时间" name="DshxPrice" id="DshxPrice" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.DshxPrice">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:60px;">评审得分</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="评审得分" name="DshxDefen" id="DshxDefen" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.DshxDefenName" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
|
</div>
|
<div class="col-sm-1 col-md-1" style="width:100px;">
|
@if (Model.Dscunzai != null && Model.Dscunzai == "yes")
|
{
|
<button type="button" data-type="1">添加供应商</button>
|
}
|
else
|
{
|
<button type="button" onclick="_pageAdd('@Model.Dshx')" data-type="1" style="color:red;">添加供应商</button>
|
}
|
|
|
</div>
|
</div>
|
<div id="addlist_2">
|
@for (int i = 0; i < Projectyouxiaos.Count; i++)
|
{
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">有效供应商</label>
|
<div class="col-sm-6 col-md-6">
|
<input class="form-control" label="公告时间" name="namesyouxiao" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Projectyouxiaos[i].Namesyouxiao">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">报价</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="公告时间" name="priceyouxiao" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Projectyouxiaos[i].Priceyouxiao">
|
<input type="hidden" name="YouxiaoId" value="@Projectyouxiaos[i].YouxiaoId" />
|
</div>
|
<div class="col-sm-1 col-md-1" style="width:100px;">
|
@if (Projectyouxiaos[i].ProjectId != null && Projectyouxiaos[i].ProjectId == "yes")
|
{
|
<button type="button" data-type="1" >添加供应商</button>
|
}
|
else
|
{
|
<button type="button" onclick="_pageAdd('@Projectyouxiaos[i].Namesyouxiao')" data-type="1" style="color:red;">添加供应商</button>
|
}
|
|
|
</div>
|
@if (i == 0)
|
{
|
<div class="col-sm-1 col-md-1" style="width:80px;">
|
<button type="button" class="addBtn" onclick="addBtn(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>
|
}
|
</div>
|
|
<div id="addlist_3">
|
@for (int i = 0; i < projectreasons.Count; i++)
|
{
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">无效供应商</label>
|
<div class="col-sm-6 col-md-6">
|
<input class="form-control" label="无效供应商" name="reasonname" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="500" ismust="true" type="text" value="@projectreasons[i].Reasonname">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">原因</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
@*<textarea class="form-control bt" name="reasonremark" maxlength="4000" title="原因" isempty="" length="long">@projectreasons[i].Reasonremark</textarea>*@
|
<input class="form-control" label="原因" name="reasonremark" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@projectreasons[i].Reasonremark">
|
<input type="hidden" name="ReasonId" value="@projectreasons[i].ReasonId" />
|
</div>
|
<div class="col-sm-1 col-md-1" style="width:100px;">
|
@if (projectreasons[i].ProjectId != null && projectreasons[i].ProjectId == "yes")
|
{
|
<button type="button" data-type="1" >添加供应商</button>
|
}
|
else
|
{
|
<button type="button" onclick="_pageAdd('@projectreasons[i].Reasonname')" data-type="1" style="color:red;">添加供应商</button>
|
}
|
|
|
</div>
|
@if (i == 0)
|
{
|
<div class="col-sm-1 col-md-1" style="width:80px;">
|
<button type="button" class="addBtn" onclick="addBtn(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>
|
<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">
|
<select id="Fblx" class="form-control" name="Fblx" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in flbx)
|
{
|
@if (!item.CodeSn.Equals(Model.Fblx))
|
{
|
<option value="@item.CodeSn" hassubinfo="true">
|
@item.Comments
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeSn" hassubinfo="true" selected="selected">
|
@item.Comments
|
</option>
|
}
|
|
}
|
}
|
|
|
</select>
|
|
</div>
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">原因:</label>
|
<div class="col-sm-7 col-md-7">
|
@*<textarea class="form-control bt" id="Fbyy" name="Fbyy" title="备注" maxlength="500" isempty="" length="long">@Model.Fbyy</textarea>*@
|
<input class="form-control" label="备注" id="Fbyy" name="Fbyy" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@Model.Fbyy">
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">评审专家</label>
|
<div class="col-sm-8 col-md-8">
|
<input class="form-control" label="评审专家" maxlength="500" id="Zhuanjia" name="Zhuanjia" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Zhuanjia">
|
</div>
|
@*<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">评审专家</label>
|
<div class="col-sm-11 col-md-11" grouptype="Vdata">
|
<select id="ZhuanjiaList" data-placeholder="评审专家" class="chosen-select form-control" tabindex="2" style="width:100%;" label="评审专家" name="ZhuanjiaList" labtype="combox" addvisible="true" editvisible="true" reg="" ismust="true" grouptype="Vdata" multiple="multiple">
|
|
|
@foreach (var item in zhuanjia)
|
{
|
bool bSelected = false;
|
foreach (string level in arrJobLevel)
|
{
|
if (item.Id.Equals(level))
|
{
|
bSelected = true;
|
break;
|
}
|
}
|
|
if (bSelected)
|
{
|
<option value="@item.Id" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.Id" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
|
}
|
</select>
|
</div>*@
|
</div>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">采购人名称</label>
|
<div class="col-sm-3 col-md-3">
|
<input id="Caigourenname" class="form-control" label="采购人名称" name="Caigourenname" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Caigourenname">
|
</div>
|
<div class="col-sm-1 col-md-1" style="width:100px;">
|
@if (Model.Caigourennamecunzai != null && Model.Caigourennamecunzai == "yes")
|
{
|
<button type="button" data-type="1">添加供应商</button>
|
}
|
else
|
{
|
<button type="button" onclick="_pageAdd('@Model.Caigourenname')" data-type="1" style="color:red;">添加供应商</button>
|
}
|
|
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">地址</label>
|
<div class="col-sm-3 col-md-3">
|
<input id="Caigourenaddress" class="form-control" label="地址" name="Caigourenaddress" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Caigourenaddress">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">联系方式</label>
|
<div class="col-sm-2 col-md-2">
|
<input id="Caigourencontact" class="form-control" label="联系方式" name="Caigourencontact" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Caigourencontact">
|
</div>
|
</div>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">代理机构名称</label>
|
<div class="col-sm-3 col-md-3">
|
<input id="Dailiname" class="form-control" label="采购人名称" name="Dailiname" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Dailiname">
|
</div>
|
<div class="col-sm-1 col-md-1" style="width:100px;">
|
@if (Model.Dailinamecunzai != null && Model.Dailinamecunzai == "yes")
|
{
|
<button type="button" data-type="1">添加供应商</button>
|
}
|
else
|
{
|
<button type="button" onclick="_pageAdd('@Model.Dailiname')" data-type="1" style="color:red;">添加供应商</button>
|
}
|
|
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">地址</label>
|
<div class="col-sm-3 col-md-3">
|
<input id="Dailiaddress" class="form-control" label="地址" name="Dailiaddress" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Dailiaddress">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">联系方式</label>
|
<div class="col-sm-2 col-md-2">
|
<input id="Dailicontact" class="form-control" label="联系方式" name="Dailicontact" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Dailicontact">
|
</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">备注:</label>
|
<div class="col-sm-11 col-md-11">
|
<textarea class="form-control bt" id="Remark" name="Remark" title="备注" isempty="" maxlength="4000" length="long">@Model.Remark</textarea>
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<div class="col-sm-1 col-md-1">
|
<a class="btn btn-success " href="javascript:void(0)" onclick="tuquxiangmu();" style="width:100px;">
|
<i class="glyphicon glyphicon-ok"></i> <span class="bold">提取项目</span>
|
</a>
|
</div>
|
<div class="col-sm-11 col-md-11"><input id="Question" placeholder="请输入项目网址" class="form-control" label="提取项目信息" name="Question" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="500" ismust="true" type="text" value="@Model.Question"></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 hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
|
$("#div_content").height(hh);
|
|
$("#ZhuanjiaList").chosen();
|
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"
|
};
|
|
function delBtn(obj) {
|
var num = $(obj).data().type;
|
console.log(num)
|
|
if (num == 1) {
|
if ($('#addlist_1').find('.clearfix').length > 1) {
|
$('#addlist_1').find('.clearfix:last').remove();
|
}
|
|
} else if (num == 2) {
|
if ($('#addlist_2').find('.clearfix').length > 1) {
|
$('#addlist_2').find('.clearfix:last').remove();
|
}
|
|
} else if (num == 3) {
|
if ($('#addlist_3').find('.clearfix').length > 1) {
|
$('#addlist_3').find('.clearfix:last').remove();
|
}
|
|
}
|
}
|
|
function addBtn(obj) {
|
var oTr = document.createElement('div');
|
var num = $(obj).data().type;
|
console.log(num)
|
if (num == 1) {
|
$('#addlist_1').append(oTr);
|
$(oTr).html(` <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-1 col-md-1 control-label">中标(成交)供应商</label>
|
<div class="col-sm-4 col-md-4">
|
<input class="form-control" label="公告时间" name="Names" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">报价</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="公告时间" name="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="">
|
<input type="hidden" name="ZhongbiaoId" value="" />
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:60px;">评审得分</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="评审得分" name="Defen" id="Defen" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)" >
|
</div>
|
|
</div>`);
|
} else if (num == 2) {
|
$('#addlist_2').append(oTr);
|
$(oTr).html(`<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">有效供应商</label>
|
<div class="col-sm-6 col-md-6">
|
<input class="form-control" label="公告时间" name="Namesyouxiao" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">报价</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
<input class="form-control" label="公告时间" name="Priceyouxiao" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="">
|
<input type="hidden" name="YouxiaoId" value="" />
|
</div>
|
|
|
</div>`);
|
} else if (num == 3) {
|
$('#addlist_3').append(oTr);
|
$(oTr).html(` <div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">未通过资格或符合审查供应商</label>
|
<div class="col-sm-6 col-md-6">
|
<input class="form-control" label="公告时间" name="Reasonname" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="">
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">原因</label>
|
<div class="col-sm-2 col-md-2" style="width:10%;">
|
|
<input class="form-control" label="原因" name="reasonremark" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
|
<input type="hidden" name="ReasonId" value="" />
|
</div>
|
|
|
</div>`);
|
}
|
}
|
|
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();
|
|
laydate({ elem: "#StartTime", format: 'YYYY/MM/DD hh:mm:ss', istime: true, event: "focus" });
|
|
var delPosition = function () {
|
|
|
if (id == null || id == '') {
|
toastr.warning("请先保存");
|
return;
|
}
|
$.ajax({
|
type: "GET",
|
url: "/Project/Nullify?id=" + id,
|
dataType: "json",
|
global: false,
|
data: '',
|
success: function (data) {
|
|
|
if (data.Result) {
|
// parent._afterSave(true);
|
parent.layer.msg('删除成功', { icon: 6 });
|
_pageAutoClose();//自动关闭页面方法
|
}
|
else {
|
// toastr.error("");
|
parent.layer.msg('删除失败', { icon: 5 });
|
}
|
|
},
|
error: function () {
|
if ($.isNumber(imgLoad)) {
|
parent.layer.close(imgLoad);
|
}
|
//toastr.error("保存失败");
|
|
parent.layer.msg('保存失败', { icon: 5 });
|
}
|
});
|
|
}
|
|
// 保存岗位信息
|
var savePosition = function () {
|
|
if (Verify.isNull($("#StartTime").val())) {
|
toastr.warning("公告时间不能为空");
|
return;
|
}
|
|
if (Verify.isNull($("#Sheng").val()) || Verify.isNull($("#City").val()) || Verify.isNull($("#AreaId").val())) {
|
toastr.warning("区域不能为空");
|
return;
|
}
|
if ($("#Cgfs").val() == '') {
|
toastr.warning("采购方式不能为空");
|
return;
|
}
|
|
if ($.trim($("#Number").val()) == '') {
|
toastr.warning("项目编号不能为空");
|
return;
|
}
|
|
if ($.trim($("#Name").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: "/Project/Save",
|
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("/Project/Add");
|
}
|
|
}
|
else {
|
// toastr.error("失败");
|
parent.layer.msg(data.Message, { icon: 5 });
|
}
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
}
|
|
|
$("#Sheng").change(function () {
|
|
var sheng = $("#Sheng").val();
|
$.ajax({
|
type: "GET",
|
url: "/Project/getCity?shengid=" + sheng,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
var city = $("#City");
|
city.find('option').remove();
|
var aaa = '<option value="" hassubinfo="true">请选择</option>';
|
city.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
|
var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>';
|
city.append(o);
|
}
|
}
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
|
$("#City").change(function () {
|
|
var city = $("#City").val();
|
$.ajax({
|
type: "GET",
|
url: "/Project/getAreaId?cityid=" + city,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
var quxian = $("#AreaId");
|
quxian.find('option').remove();
|
var aaa = '<option value="" hassubinfo="true">请选择</option>';
|
quxian.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
|
var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>';
|
quxian.append(o);
|
}
|
}
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
|
var tuquxiangmu = function () {
|
|
var Question = $.trim($("#Question").val());
|
if (Question == null || Question == "") {
|
toastr.warning("请输入项目网址");
|
return;
|
}
|
$.ajax({
|
type: "GET",
|
url: "/Project/getProjectxinxi?address=" + Question,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
var starttime = $("#StartTime");
|
starttime.val(data.StartTimestr);
|
var Number = $("#Number");
|
Number.val(data.Number);
|
var Name = $("#Name");
|
Name.val(data.Name);
|
var Zhuanjia = $("#Zhuanjia");
|
Zhuanjia.val(data.Zhuanjia);
|
var Remark = $("#Remark");
|
Remark.val(data.Remark);
|
|
var Caigourenname = $("#Caigourenname");
|
Caigourenname.val(data.Caigourenname);
|
var Caigourenaddress = $("#Caigourenaddress");
|
Caigourenaddress.val(data.Caigourenaddress);
|
var Caigourencontact = $("#Caigourencontact");
|
Caigourencontact.val(data.Caigourencontact);
|
var Dailiname = $("#Dailiname");
|
Dailiname.val(data.Dailiname);
|
var Dailiaddress = $("#Dailiaddress");
|
Dailiaddress.val(data.Dailiaddress);
|
var Dailicontact = $("#Dailicontact");
|
Dailicontact.val(data.Dailicontact);
|
|
var Names = $("input[name='Names']");
|
var Price = $("input[name='Price']")
|
|
if (Names != null && Names.length > 0) {
|
if (data.Projectzhongbiaos != null && data.Projectzhongbiaos.length > 0) {
|
Names[0].value=data.Projectzhongbiaos[0].Names;
|
Price[0].value=data.Projectzhongbiaos[0].Price;
|
}
|
}
|
if (data.Projectzhongbiaos != null && data.Projectzhongbiaos.length > 0) {
|
for (var i = 0; i < data.Projectzhongbiaos.length; i++) {
|
if (Names != null && Names.length > i) {
|
Names[i].value = data.Projectzhongbiaos[i].Names;
|
Price[i].value = data.Projectzhongbiaos[i].Price;
|
} else {
|
var oTr = document.createElement('div');
|
$('#addlist_1').append(oTr);
|
$(oTr).html('<div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-1 col-md-1 control-label">中标(成交)供应商</label>'
|
+'<div class="col-sm-6 col-md-6">'
|
+ '<input class="form-control" label="中标(成交)供应商" name="Names" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="' + data.Projectzhongbiaos[i].Names+'">'
|
+ '</div>'
|
+ '<label class="text-right col-sm-1 col-md-1 control-label" style="width:30px;">报价</label>'
|
+ '<div class="col-sm-2 col-md-2" style="width:10%;">'
|
+ '<input class="form-control" label="中标(成交)供应商" name="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="' + data.Projectzhongbiaos[i].Price +'">'
|
+ '<input type="hidden" name="ZhongbiaoId" value="" />'
|
+ ' </div>'
|
+ '<div class="col-sm-1 col-md-1" style="width:100px;">'
|
+ '<button type = "button" onclick = "_pageAdd(\'' + data.Projectzhongbiaos[i].Names +'\')" data - type="1" style="color:red;" >添加供应商</button >'
|
+ ' </div>'
|
+ '</div>');
|
}
|
}
|
}
|
|
|
|
},
|
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 _pageAdd(namecus) {
|
OpenWindow("新增意向客户", "98%", "90%", "/IntentionCustomer/Edit?namecus=" + namecus);
|
}
|
</script>
|
</body>
|
</html>
|