初始化
This commit is contained in:
107
Face.Web/Content/Views/CxwBasicFunc/CompanyList.cshtml
Normal file
107
Face.Web/Content/Views/CxwBasicFunc/CompanyList.cshtml
Normal file
@@ -0,0 +1,107 @@
|
||||
@model List<Face.Domain.Entities.Company>
|
||||
@*@model Face.Domain.Entities.Company*@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">应收列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("CompanyDetails", "CxwBasicFunc")','companyBox_Content')">添加客户</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>企业名称</th>
|
||||
<th>行业</th>
|
||||
<th>公司地址</th>
|
||||
<th>详细地址</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("CompanyDetails", "CxwBasicFunc")',@Model[i].ID,'companyBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].CompanyName</td>
|
||||
<td>@Model[i].Industry</td>
|
||||
<td>@Model[i].Region</td>
|
||||
<td>@Model[i].Address</td>
|
||||
<td>@Model[i].CreateTime</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- /.card-body -->
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="companyBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>基础数据</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>客户列表</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/common.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
87
Face.Web/Content/Views/CxwBasicFunc/PLineList.cshtml
Normal file
87
Face.Web/Content/Views/CxwBasicFunc/PLineList.cshtml
Normal file
@@ -0,0 +1,87 @@
|
||||
@using PagedList.Mvc;
|
||||
@using PagedList;
|
||||
@model List<Face.Domain.Entities.ProductType>
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">产品类型列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("PLineDetails", "CxwBasicFunc")','plineBox_Content')">添加类型</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>类型名称</th>
|
||||
<th>型号说明</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("PLineDetails", "CxwBasicFunc")',@Model[i].ID,'plineBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].ProductName</td>
|
||||
<td>@Model[i].Desc</td>
|
||||
<td>@Model[i].Remark</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ibox-content" id="contentx">
|
||||
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="plineBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="~/Plugin/common.js"></script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
119
Face.Web/Content/Views/CxwBasicFunc/ProjectList.cshtml
Normal file
119
Face.Web/Content/Views/CxwBasicFunc/ProjectList.cshtml
Normal file
@@ -0,0 +1,119 @@
|
||||
@model List<Face.Domain.Entities.Product>
|
||||
@*@model List<Face.Domain.ViewModels.PPlan.CxwProduct>*@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.ProductType> ProductTypeList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//类型
|
||||
}
|
||||
|
||||
<link href="~/Content/css/ProjectList.css" rel="stylesheet" />
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">产品列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddUser" onclick="gotoCommonPartial('@Url.Action("ProjectDetails", "CxwBasicFunc")','projectBox_Content')">添加产品</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<!--客户-->
|
||||
<select id="company" class="form-control" name="CompanyID" style="width:95px;">
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
<option value="0">所有</option>
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option value="@item.ID">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<div class="table-responsive">
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<div class="row productData" style="margin: 0px;border-bottom:1px solid #cccccc;" onclick="gotoDetailPartial('@Url.Action("ProjectDetails", "CxwBasicFunc")',@Model[i].ID,'projectBox_Content')">
|
||||
<div class="col-xs-4" style="padding: 0px;">
|
||||
<div class="product">
|
||||
<ul id="productInfo">
|
||||
<li>ID:<span class="grey">@Model[i].ID</span></li>
|
||||
@foreach (var item in CompanyList)
|
||||
{
|
||||
if (Model[i].CompanyID == item.ID)
|
||||
{
|
||||
<li>客户:<span class="grey"> @item.CompanyName </span> </li>
|
||||
}
|
||||
}
|
||||
@foreach (var item in ProductTypeList)
|
||||
{
|
||||
if (Model[i].ProductTypeID == item.ID)
|
||||
{
|
||||
<li>类型:<span class="grey">@item.ProductName</span></li>
|
||||
}
|
||||
}
|
||||
<li>名称:<span class="grey">@Model[i].ProductName</span></li>
|
||||
<li>工艺流程:<span class="grey">@Model[i].ProcessFlow</span></li>
|
||||
<li>录入人:<span class="grey">@Model[i].EnteredBy</span></li>
|
||||
<li>单价:<span class="grey">@Model[i].ReferencePrice</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-5 col-md-2 col-lg-2 imge" style="padding: 1px;">
|
||||
@*<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image">*@
|
||||
<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image" height="118">
|
||||
|
||||
</div>
|
||||
<div class="col-xs-3" style="padding: 1px;">
|
||||
<ul id="productImg">
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image2)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image3)" alt="暂无图片" width="50" height="39"> </li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12" style="padding: 0px;">
|
||||
<span class="remark">备注:<span class="grey">@Model[i].Remark</span></span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<!--页-->
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4" id="projectBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
<script src="~/CxwPlugin/ProjectPage.js"></script>
|
||||
<script src="~/CxwPlugin/ProjectList.js"></script>
|
||||
88
Face.Web/Content/Views/CxwBasicFunc/_CompanyDetails.cshtml
Normal file
88
Face.Web/Content/Views/CxwBasicFunc/_CompanyDetails.cshtml
Normal file
@@ -0,0 +1,88 @@
|
||||
@model Face.Domain.Entities.Company
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" >@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyCompanyForm">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">公司名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入公司名称" name="CompanyName" class="form-control" value="@Model.CompanyName">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">公司行业</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入公司行业" name="Industry" class="form-control" value="@Model.Industry">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">公司地址</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入公司地址 如:(广东省深圳市龙岗区)" name="Region" class="form-control" value="@Model.Region">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">详细地址</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入公司详细地址" name="Address" class="form-control" value="@Model.Address">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPLine" onclick="excutedUpDate('btnModifyPLine','@Url.Action("ModifyCompany", "CxwBasicFunc")','modifyCompanyForm','@Url.Action("CompanyList", "CxwBasicFunc")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
</script>
|
||||
79
Face.Web/Content/Views/CxwBasicFunc/_PLineDetails.cshtml
Normal file
79
Face.Web/Content/Views/CxwBasicFunc/_PLineDetails.cshtml
Normal file
@@ -0,0 +1,79 @@
|
||||
@model Face.Domain.Entities.ProductType
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyPLineForm">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">产品类型名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入类型名称" name="ProductName" class="form-control" value="@Model.ProductName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">说明</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入型号说明" name="Desc" class="form-control" value="@Model.Desc">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPLine">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
</script>
|
||||
249
Face.Web/Content/Views/CxwBasicFunc/_ProjectDetails.cshtml
Normal file
249
Face.Web/Content/Views/CxwBasicFunc/_ProjectDetails.cshtml
Normal file
@@ -0,0 +1,249 @@
|
||||
@model Face.Domain.Entities.Product
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
//string imagesrc = "";
|
||||
//if (Model.PreviewImage != null)
|
||||
//{
|
||||
// //imagesrc = "data:image/" + Url.Action("GetImgPostFixByBytes", "Home", Model.PreviewImage) + ";base64," + Convert.ToBase64String(Model.PreviewImage);
|
||||
// imagesrc = "data:image/jpg;base64," + Convert.ToBase64String(Model.PreviewImage);
|
||||
//}
|
||||
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.ProductType> ProductTypeList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//类型
|
||||
List<Face.Domain.Entities.ProcessFlow> ProcessFlowList = Face.Services.Cache.CxwCacheHelp.GetProcessFlow();//工艺流程
|
||||
|
||||
string[] jurisdiction = new string[ProcessFlowList.Count];
|
||||
if (Model.ProcessFlow != null)
|
||||
{
|
||||
string str = Model.ProcessFlow;
|
||||
jurisdiction = str.Split(',');
|
||||
ViewBag.jur = jurisdiction;
|
||||
}
|
||||
}
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyProjectForm">
|
||||
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" name="ID" class="form-control" value="@Model.ID" readonly />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">产品名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
@*<input type="hidden" name="ID" value="@Model.ID" />*@
|
||||
<input type="text" placeholder="请输入产品名称" id="ProductName" name="ProductName" class="form-control" value="@Model.ProductName">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">客户名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b " name="CompanyID">
|
||||
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option @(Model.CompanyID == item.ID ? "selected" : "" ) value="@item.ID">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">产品类型</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="ProductTypeID">
|
||||
|
||||
@if (ProductTypeList != null && ProductTypeList.Count > 0)
|
||||
{
|
||||
foreach (var item in ProductTypeList)
|
||||
{
|
||||
<option @(Model.ProductTypeID == item.ID ? "selected" : "" ) value="@item.ID">@item.ProductName</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">参考单价</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入参考单价" name="ReferencePrice" class="form-control" value="@Model.ReferencePrice">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">工序流程</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" id="ProcessFlow" name="ProcessFlow" class="form-control">
|
||||
@for (int i = 0; i < ProcessFlowList.Count; i++)
|
||||
{
|
||||
<div class="i-checks"><label> <input type="checkbox" value="@ProcessFlowList[i].ID" @if (ViewBag.jur != null) { foreach (var item in jurisdiction) { @(item.ToInt() == ProcessFlowList[i].ID ? "checked='checked'" : "") } }> <i></i>@ProcessFlowList[i].ProcessName</label></div>
|
||||
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
<div id="img">
|
||||
<input type="hidden" id="img9" name="Image" />
|
||||
|
||||
@if (Model.Image1 != null && Model.Image1 != "")
|
||||
{
|
||||
<input type="hidden" id="img1" name="Image1" value="@(Model.Image1)" />
|
||||
}
|
||||
@if (Model.Image2 != null && Model.Image2 != "")
|
||||
{
|
||||
<input type="hidden" id="img2" name="Image2" value="@(Model.Image2)" />
|
||||
}
|
||||
@if (Model.Image3 != null && Model.Image3 != "")
|
||||
{
|
||||
<input type="hidden" id="img3" name="Image3" value="@(Model.Image3)" />
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">参考图片</label>
|
||||
<div class="col-md-9">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择多图片</button>
|
||||
<div class="layui-upload-list">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>图片</th>
|
||||
<th>大小</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
@*@if (Model.Image1 != null && Model.Image1 != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image1)" alt="暂无图片" style="width:100px;height:100px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg1">删除</button></th>
|
||||
</tr>}
|
||||
@if (Model.Image2 != null && Model.Image2 != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image2)" alt="暂无图片" style="width:100px;height:100px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg2">删除</button></th>
|
||||
</tr>
|
||||
}
|
||||
@if (Model.Image3 != null && Model.Image3 != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image3)" alt="暂无图片" style="width:100px;height:100px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg3">删除</button></th>
|
||||
</tr>
|
||||
}*@
|
||||
|
||||
</thead>
|
||||
<tbody id="demoList"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
@*<div class="layui-progress layui-progress-big" lay-showpercent="true" lay-filter="demo" id="progress">
|
||||
<div class="layui-progress-bar" lay-percent="0%" style="width: 0%;">
|
||||
<span class="layui-progress-text">0%</span>
|
||||
</div>
|
||||
</div>*@
|
||||
<br />
|
||||
<button type="button" class="layui-btn" id="testListAction">开始上传</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyProject" onclick="excutedUpDate('btnModifyProject','@Url.Action("ModifyProject", "CxwBasicFunc")','modifyProjectForm','@Url.Action("ProjectList", "CxwBasicFunc")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
|
||||
var url3 = "/Content/layui/layui.js";
|
||||
$.getScript(url3);
|
||||
|
||||
|
||||
var url4 = "/CxwPlugin/ProjectDetails.js";
|
||||
$.getScript(url4);
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@*<script src="~/Content/layui/layui.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/ProjectDetails.js"></script>*@
|
||||
|
||||
|
||||
|
||||
68
Face.Web/Content/Views/CxwBasicFunc/_ProjectListdata.cshtml
Normal file
68
Face.Web/Content/Views/CxwBasicFunc/_ProjectListdata.cshtml
Normal file
@@ -0,0 +1,68 @@
|
||||
@model List<Face.Domain.Entities.Product>
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.ProductType> ProductTypeList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//类型
|
||||
}
|
||||
<div class="table-responsive">
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<div class="row productData" style="margin: 0px;border-bottom:1px solid #cccccc;" onclick="gotoDetailPartial('@Url.Action("ProjectDetails", "CxwBasicFunc")',@Model[i].ID,'projectBox_Content')">
|
||||
<div class="col-xs-4" style="padding: 0px;">
|
||||
<div class="product">
|
||||
<ul id="productInfo">
|
||||
<li>ID:<span class="grey">@Model[i].ID</span></li>
|
||||
@foreach (var item in CompanyList)
|
||||
{
|
||||
if (Model[i].CompanyID == item.ID)
|
||||
{
|
||||
<li>客户:<span class="grey"> @item.CompanyName </span> </li>
|
||||
}
|
||||
}
|
||||
@foreach (var item in ProductTypeList)
|
||||
{
|
||||
if (Model[i].ProductTypeID == item.ID)
|
||||
{
|
||||
<li>类型:<span class="grey">@item.ProductName</span></li>
|
||||
}
|
||||
}
|
||||
<li>名称:<span class="grey">@Model[i].ProductName</span></li>
|
||||
<li>工艺流程:<span class="grey">@Model[i].ProcessFlow</span></li>
|
||||
<li>录入人:<span class="grey">@Model[i].EnteredBy</span></li>
|
||||
<li>单价:<span class="grey">@Model[i].ReferencePrice</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-5 imge" style="padding: 1px;">
|
||||
@*<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image">*@
|
||||
<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image" height="118">
|
||||
</div>
|
||||
<div class="col-xs-3" style="padding: 1px;">
|
||||
<ul id="productImg">
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image2)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image3)" alt="暂无图片" width="50" height="39"> </li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12" style="padding: 0px;">
|
||||
<span class="remark">备注:<span class="grey">@Model[i].Remark</span></span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
|
||||
<script src="~/CxwPlugin/ProjectPage.js"></script>
|
||||
<script src="~/CxwPlugin/ProjectList.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user