Browse Source

项目进度情况管理

金隅分支
zhangli 3 years ago
parent
commit
04ffb4c9c8
15 changed files with 1147 additions and 0 deletions
  1. +140
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/ProjectProcessManageController.cs
  2. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Form.cshtml
  3. +86
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Form.js
  4. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Index.cshtml
  5. +117
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Index.js
  6. +53
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/IndexData.cshtml
  7. +160
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/IndexData.js
  8. +7
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  9. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
  10. +29
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LogisticsManagement/ProjectProcessManageMap.cs
  11. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
  12. +150
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageBLL.cs
  13. +77
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageEntity.cs
  14. +49
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageIBLL.cs
  15. +215
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageService.cs

+ 140
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/ProjectProcessManageController.cs View File

@@ -0,0 +1,140 @@
using Learun.Util;
using System.Data;
using Learun.Application.TwoDevelopment.LogisticsManagement;
using System.Web.Mvc;
using System.Collections.Generic;

namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-07-05 15:56
/// 描 述:项目进展情况
/// </summary>
public class ProjectProcessManageController : MvcControllerBase
{
private ProjectProcessManageIBLL projectProcessManageIBLL = new ProjectProcessManageBLL();

#region 视图功能

/// <summary>
/// 主页面
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Form()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexData()
{
return View();
}
#endregion

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject<Pagination>();
var data = projectProcessManageIBLL.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetList(string queryJson)
{
var data = projectProcessManageIBLL.GetList(queryJson);
return Success(data);
}
/// <summary>
/// 获取表单数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetFormData(string keyValue)
{
var ProjectProcessManageData = projectProcessManageIBLL.GetProjectProcessManageEntity( keyValue );
var jsonData = new {
ProjectProcessManage = ProjectProcessManageData,
};
return Success(jsonData);
}
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
projectProcessManageIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="strEntity">实体</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
[AjaxOnly]
public ActionResult SaveForm(string keyValue, string strEntity)
{
ProjectProcessManageEntity entity = strEntity.ToObject<ProjectProcessManageEntity>();
projectProcessManageIBLL.SaveEntity(keyValue,entity);
if (string.IsNullOrEmpty(keyValue))
{
}
return Success("保存成功!");
}
#endregion

}
}

+ 23
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Form.cshtml View File

@@ -0,0 +1,23 @@
@{
ViewBag.Title = "项目进展情况";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="ProjectDataManage">
<div class="lr-form-item-title">项目<font face="宋体">*</font></div>
<div id="PId" readonly="readonly" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ProjectDataManage">
<div class="lr-form-item-title">项目阶段<font face="宋体">*</font></div>
<div id="PPId" readonly="readonly" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="ProjectProcessManage">
<div class="lr-form-item-title">项目进展情况<font face="宋体">*</font></div>
<textarea id="Progress" class="form-control" style="height: 100px;" isvalid="yes" checkexpession="NotNull" ></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="ProjectProcessManage">
<div class="lr-form-item-title">时间<font face="宋体">*</font></div>
<input id="ProcessTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', onpicked: function() { $('#ProcessTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull"/>
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/ProjectProcessManage/Form.js")

+ 86
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Form.js View File

@@ -0,0 +1,86 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-07-05 15:56
* 描 述:项目进展情况
*/
var acceptClick;
var keyValue = request('keyValue');
var PPId = request("PPId");//项目阶段id
var PId = request("PId");//项目Id
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#PId').lrselect({
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/LogisticsManagement/ProjectManage/GetList',
value: "Id",
text: "Name",
});
if (!!PId) {
$('#PId').lrselectSet(PId);
}
$('#PPId').lrselect({
type: 'tree',
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
allowSearch: true,
// 访问数据接口地址
url: top.$.rootUrl + '/LogisticsManagement/ProjectPhaseManage/GetTree',
select: function (item) {
if (item != null && item != undefined) {

}
}
});
if (!!PPId) {
$('#PPId').lrselectSet(PPId);
}
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id ).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
if (data && data.ProjectProcessManage) {
$('#PId').lrselectSet(data.ProjectProcessManage.PId);
$('#PPId').lrselectSet(data.ProjectProcessManage.PPId);
}
});
}
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Index.cshtml View File

@@ -0,0 +1,36 @@
@{
ViewBag.Title = "项目进展情况";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout lr-layout-left-center" id="lr_layout">
<div class="lr-layout-left">
<div class="lr-layout-wrap">
<div class="lr-layout-title lrlg ">树形列表</div>
<div id="dataTree" class="lr-layout-body"></div>
</div>
</div>
<div class="lr-layout-center">
<div class="lr-layout-wrap ">
<div class="lr-layout-title">
<span id="titleinfo" class="lrlg">列表信息</span>
</div>
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
@*<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>*@
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/ProjectProcessManage/Index.js")

+ 117
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Index.js View File

@@ -0,0 +1,117 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-07-05 15:56
* 描 述:项目进展情况
*/
var refreshGirdData;
var acceptClick;
var PPId;
var PId = request("PId");//项目Id
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.inittree();
page.initGird();
page.bind();
},
bind: function () {
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 新增
$('#lr_add').on('click', function () {
if (!PPId) {
learun.alert.warning('请选择阶段!');
return false;
}
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/Form?PPId=' + PPId + '&PId=' + PId,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/DeleteForm', { keyValue: keyValue}, function () {
refreshGirdData();
});
}
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/GetPageList',
headData: [
{ label: "项目进展情况", name: "Progress", width: 100, align: "left"},
{ label: "时间", name: "ProcessTime", width: 100, align: "left"},
],
mainId:'Id',
isPage: true
});
page.search();
},
inittree: function () {
// 初始化左侧树形数据
$('#dataTree').lrtree({
url: top.$.rootUrl + '/LogisticsManagement/ProjectPhaseManage/GetTree',
nodeClick: page.treeNodeClick
});
},
treeNodeClick: function (item) {
PPId = item.id;
$('#titleinfo').text(item.text);
page.search();
},
search: function (param) {
param = param || {};
param.PPId = PPId;
param.PId = PId;
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
acceptClick = function (callBack) {
if (!!callBack) {
callBack();
}
learun.layerClose(window.name);
};
page.init();
}

+ 53
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/IndexData.cshtml View File

@@ -0,0 +1,53 @@
@{
/**/

ViewBag.Title = "项目进展情况管理";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout lr-layout-left-center" id="lr_layout">
<div class="lr-layout-left">
<div class="lr-layout-wrap">
<div class="lr-layout-title lrlt ">类型</div>
<div id="dataTree" class="lr-layout-body"></div>
</div>
</div>
<div class="lr-layout-center">
<div class="lr-layout-wrap ">
<div class="lr-layout-title">
<span id="titleinfo" class="lrlt">未选择类型</span> - <span class="lrlt">列表信息</span>
</div>
<div class="lr-layout-tool">
@*<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">项目名称</div>
<input id="Name" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">负责部门</div>
<div id="DepartmentId"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">负责人</div>
<div id="ManagerId"></div>
</div>
</div>
</div>
</div>
</div>*@
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_data" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 填写项目进展情况</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/ProjectProcessManage/IndexData.js")

+ 160
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/IndexData.js View File

@@ -0,0 +1,160 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-06-21 15:49
* 描 述:项目管理
*/
var refreshGirdData;
var PTId;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.inittree();
page.initGird();
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#DepartmentId').lrDepartmentSelect();
$('#ManagerId').lrUserSelect(0);
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});

//填写项目进展情况
$('#lr_data').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'ProjectDataManageIndex',
title: '项目进展情况管理',
url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/Index?PId=' + keyValue,
width: 1000,
height: 800,
btn: ['确定'],
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
},
inittree: function () {
// 初始化左侧树形数据
$('#dataTree').lrtree({
url: top.$.rootUrl + '/LogisticsManagement/ProjectTypeManage/GetTree',
nodeClick: page.treeNodeClick
});
},
treeNodeClick: function (item) {
PTId = item.id;
$('#titleinfo').text(item.text);
page.search();
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LogisticsManagement/ProjectManage/GetPageList',
headData: [
{ label: "项目名称", name: "Name", width: 200, align: "left" },
{ label: "项目周期", name: "Period", width: 100, align: "left" },
{
label: "负责部门", name: "DepartmentId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata',
key: value,
keyId: 'id',
callback: function (_data) {
callback(_data['name']);
}
});
}
},
{
label: "负责人", name: "ManagerId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{
label: "项目状态", name: "Status", width: 100, align: "left",
formatter: function (value) {
if (value == 0) {
return '<span class=\"label label-default\">草稿</span>';
} else if (value == 1) {
return '<span class=\"label label-warning\">进行中</span>';
} else if (value == 2) {
return '<span class=\"label label-success\">完成</span>';
}
}
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
],
mainId: 'Id',
isPage: true,
sidx: 'CreateTime desc',
isSubGrid: true, // 是否有子表单
subGridExpanded: function (subContentId, rowItem) {
var PId = rowItem.Id;
$('#' + subContentId).jfGrid({
url: top.$.rootUrl + '/LogisticsManagement/ProjectPhaseManage/GetList',
headData: [
{ name: "Name", width: 150, align: "left" }
],
mainId: 'Id',
isPage: false,
sidx: 'Sort',
sord: 'ASC',
isSubGrid: true, // 是否有子表单
subGridExpanded: function (subContentId, rowItem) {
$('#' + subContentId).jfGrid({
url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/GetList',
headData: [
{ label: "项目进展情况", name: "Progress", width: 200, align: "left" },
{
label: "时间", name: "ProcessTime", width: 100, align: "left",
formatter: function (value) {
return learun.formatDate(value, 'yyyy-MM-dd');
}
}
],
mainId: 'Id',
isPage: false,
});
var param;
param = param || {};
param.PPId = rowItem.Id;
param.PId = PId;
$('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
});
var param;
param = param || {};
//param.BId = rowItem.Id;
$('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
});
page.search();
},
search: function (param) {
param = param || {};
param.PTId = PTId;
//param.SqlParameter = " and [Status]=1";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 7
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -818,6 +818,7 @@
<Compile Include="Areas\LR_Desktop\Controllers\CalculateProjectController.cs" />
<Compile Include="Areas\LR_Desktop\Controllers\FormulaMainController.cs" />
<Compile Include="Areas\LR_Desktop\Controllers\FormulaChildController.cs" />
<Compile Include="Areas\LogisticsManagement\Controllers\ProjectProcessManageController.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Areas\AdmissionsPlatform\Views\AP_OnlineUserInfo\DropOutIndex.js" />
@@ -1211,6 +1212,7 @@
<Content Include="Areas\LogisticsManagement\Views\ProjectDataManage\IndexData.js" />
<Content Include="Areas\LogisticsManagement\Views\ProjectPhaseManage\Form.js" />
<Content Include="Areas\LogisticsManagement\Views\ProjectPhaseManage\Index.js" />
<Content Include="Areas\LogisticsManagement\Views\ProjectProcessManage\IndexData.js" />
<Content Include="Areas\LR_AuthorizeModule\Views\Authorize\AppForm.js" />
<Content Include="Areas\LR_AuthorizeModule\Views\Authorize\Form.css" />
<Content Include="Areas\LR_AuthorizeModule\Views\Authorize\Form.js" />
@@ -6514,6 +6516,10 @@
<Content Include="Areas\LR_Desktop\Views\FormulaChild\Index.js" />
<Content Include="Areas\LR_Desktop\Views\FormulaChild\Form.cshtml" />
<Content Include="Areas\LR_Desktop\Views\FormulaChild\Form.js" />
<Content Include="Areas\LogisticsManagement\Views\ProjectProcessManage\Index.cshtml" />
<Content Include="Areas\LogisticsManagement\Views\ProjectProcessManage\Index.js" />
<Content Include="Areas\LogisticsManagement\Views\ProjectProcessManage\Form.cshtml" />
<Content Include="Areas\LogisticsManagement\Views\ProjectProcessManage\Form.js" />
</ItemGroup>
<ItemGroup>
<Folder Include="Areas\EducationalAdministration\Views\OpenLessonPlanOfElectivePre\" />
@@ -7359,6 +7365,7 @@
<Content Include="Areas\LR_Desktop\Views\QualityReport\IndexReport.cshtml" />
<Content Include="Areas\LR_Desktop\Views\QualityReport\FormView.cshtml" />
<Content Include="Areas\LogisticsManagement\Views\ProjectDataManage\IndexData.cshtml" />
<Content Include="Areas\LogisticsManagement\Views\ProjectProcessManage\IndexData.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj View File

@@ -574,6 +574,7 @@
<Compile Include="LogisticsManagement\ProjectTypeManageMap.cs" />
<Compile Include="LogisticsManagement\ProjectManageMap.cs" />
<Compile Include="EducationalAdministration\FillinFromMap.cs" />
<Compile Include="LogisticsManagement\ProjectProcessManageMap.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 29
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/LogisticsManagement/ProjectProcessManageMap.cs View File

@@ -0,0 +1,29 @@
using Learun.Application.TwoDevelopment.LogisticsManagement;
using System.Data.Entity.ModelConfiguration;

namespace Learun.Application.Mapping
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-07-05 15:56
/// 描 述:项目进展情况
/// </summary>
public class ProjectProcessManageMap : EntityTypeConfiguration<ProjectProcessManageEntity>
{
public ProjectProcessManageMap()
{
#region 表、主键
//表
this.ToTable("PROJECTPROCESSMANAGE");
//主键
this.HasKey(t => t.Id);
#endregion

#region 配置关系
#endregion
}
}
}


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj View File

@@ -1713,6 +1713,10 @@
<Compile Include="LR_Desktop\FormulaChild\FormulaChildService.cs" />
<Compile Include="LR_Desktop\FormulaChild\FormulaChildBLL.cs" />
<Compile Include="LR_Desktop\FormulaChild\FormulaChildIBLL.cs" />
<Compile Include="LogisticsManagement\ProjectProcessManage\ProjectProcessManageEntity.cs" />
<Compile Include="LogisticsManagement\ProjectProcessManage\ProjectProcessManageService.cs" />
<Compile Include="LogisticsManagement\ProjectProcessManage\ProjectProcessManageBLL.cs" />
<Compile Include="LogisticsManagement\ProjectProcessManage\ProjectProcessManageIBLL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Learun.Application.Organization\Learun.Application.Organization.csproj">


+ 150
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageBLL.cs View File

@@ -0,0 +1,150 @@
using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.LogisticsManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-07-05 15:56
/// 描 述:项目进展情况
/// </summary>
public class ProjectProcessManageBLL : ProjectProcessManageIBLL
{
private ProjectProcessManageService projectProcessManageService = new ProjectProcessManageService();

#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ProjectProcessManageEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
return projectProcessManageService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ProjectProcessManageEntity> GetList(string queryJson)
{
try
{
return projectProcessManageService.GetList(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
/// <summary>
/// 获取ProjectProcessManage表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ProjectProcessManageEntity GetProjectProcessManageEntity(string keyValue)
{
try
{
return projectProcessManageService.GetProjectProcessManageEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
projectProcessManageService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
/// <returns></returns>
public void SaveEntity(string keyValue, ProjectProcessManageEntity entity)
{
try
{
projectProcessManageService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}
}

+ 77
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageEntity.cs View File

@@ -0,0 +1,77 @@
using Learun.Util;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Learun.Application.TwoDevelopment.LogisticsManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-07-05 15:56
/// 描 述:项目进展情况
/// </summary>
public class ProjectProcessManageEntity
{
#region 实体成员
/// <summary>
/// Id
/// </summary>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 项目Id
/// </summary>
[Column("PID")]
public string PId { get; set; }
/// <summary>
/// 项目阶段Id
/// </summary>
[Column("PPID")]
public string PPId { get; set; }
/// <summary>
/// 项目进展情况描述
/// </summary>
[Column("PROGRESS")]
public string Progress { get; set; }
/// <summary>
/// 时间
/// </summary>
[Column("PROCESSTIME")]
public string ProcessTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[Column("CREATEUSERID")]
public string CreateUserId { get; set; }
#endregion

#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.Id = Guid.NewGuid().ToString();
this.CreateTime = DateTime.Now;
this.CreateUserId = LoginUserInfo.Get().userId;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.Id = keyValue;
}
#endregion
#region 扩展字段
#endregion
}
}


+ 49
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageIBLL.cs View File

@@ -0,0 +1,49 @@
using Learun.Util;
using System.Data;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.LogisticsManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-07-05 15:56
/// 描 述:项目进展情况
/// </summary>
public interface ProjectProcessManageIBLL
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<ProjectProcessManageEntity> GetPageList(Pagination pagination, string queryJson);
IEnumerable<ProjectProcessManageEntity> GetList(string queryJson);
/// <summary>
/// 获取ProjectProcessManage表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
ProjectProcessManageEntity GetProjectProcessManageEntity(string keyValue);
#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
void DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, ProjectProcessManageEntity entity);
#endregion

}
}

+ 215
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageService.cs View File

@@ -0,0 +1,215 @@
using Dapper;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Learun.Application.TwoDevelopment.LogisticsManagement
{
/// <summary>
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2021-07-05 15:56
/// 描 述:项目进展情况
/// </summary>
public class ProjectProcessManageService : RepositoryFactory
{
#region 获取数据

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">查询参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ProjectProcessManageEntity> GetPageList(Pagination pagination, string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.Id,
t.Progress,
t.ProcessTime
");
strSql.Append(" FROM ProjectProcessManage t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["Progress"].IsEmpty())
{
dp.Add("Progress", queryParam["Progress"].ToString(), DbType.String);
strSql.Append(" AND t.Progress = @Progress ");
}
if (!queryParam["PId"].IsEmpty())
{
dp.Add("PId", queryParam["PId"].ToString(), DbType.String);
strSql.Append(" AND t.PId = @PId ");
}
if (!queryParam["PPId"].IsEmpty())
{
dp.Add("PPId", queryParam["PPId"].ToString(), DbType.String);
strSql.Append(" AND t.PPId = @PPId ");
}
return this.BaseRepository("CollegeMIS").FindList<ProjectProcessManageEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<ProjectProcessManageEntity> GetList(string queryJson)
{
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.Id,
t.Progress,
t.ProcessTime
");
strSql.Append(" FROM ProjectProcessManage t ");
strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
if (!queryParam["PId"].IsEmpty())
{
dp.Add("PId", queryParam["PId"].ToString(), DbType.String);
strSql.Append(" AND t.PId = @PId ");
}
if (!queryParam["PPId"].IsEmpty())
{
dp.Add("PPId", queryParam["PPId"].ToString(), DbType.String);
strSql.Append(" AND t.PPId = @PPId ");
}
if (!queryParam["Progress"].IsEmpty())
{
dp.Add("Progress", queryParam["Progress"].ToString(), DbType.String);
strSql.Append(" AND t.Progress = @Progress ");
}

strSql.Append(" order by t.ProcessTime desc");
return this.BaseRepository("CollegeMIS").FindList<ProjectProcessManageEntity>(strSql.ToString(), dp);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}


/// <summary>
/// 获取ProjectProcessManage表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
public ProjectProcessManageEntity GetProjectProcessManageEntity(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<ProjectProcessManageEntity>(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

#region 提交数据

/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
try
{
this.BaseRepository("CollegeMIS").Delete<ProjectProcessManageEntity>(t => t.Id == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="entity">实体</param>
public void SaveEntity(string keyValue, ProjectProcessManageEntity entity)
{
try
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
this.BaseRepository("CollegeMIS").Update(entity);
}
else
{
entity.Create();
this.BaseRepository("CollegeMIS").Insert(entity);
}
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}

#endregion

}
}

Loading…
Cancel
Save