Browse Source

新闻展示,项目进展情况显示创建人,富文本框

金隅分支
edy 3 years ago
parent
commit
b55c311866
11 changed files with 74 additions and 22 deletions
  1. +3
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsForm.js
  2. +2
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsIndex.js
  3. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolNews/Form.cshtml
  4. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolNews/Form.js
  5. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectManage/Form.cshtml
  6. +20
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/Index.js
  7. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/ProjectProcessManage/IndexData.js
  8. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/news/css/common.css
  9. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml
  10. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectManage/ProjectManageEntity.cs
  11. +2
    -8
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectProcessManage/ProjectProcessManageService.cs

+ 3
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsForm.js View File

@@ -111,11 +111,11 @@ var bootstrap = function ($, learun) {
param: {} param: {}
}); });
$('#AOStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' }); $('#AOStorageId').lrDataSourceSelect({ code: 'Ass_StorageData', value: 'sid', text: 'sname' });
$('#Ass_AssetsOutItemApply').jfGrid({ $('#Ass_AssetsOutItemApply').jfGrid({
headData: [ headData: [
{ {
label: '资产编号', name: 'AOICode', width: 150, align: 'left'
label: '资产编号', name: 'AOICode', width: 200, align: 'left'
}, },
{ {
label: '资产名称', name: 'AOIName', width: 150, align: 'left' label: '资产名称', name: 'AOIName', width: 150, align: 'left'
@@ -199,6 +199,7 @@ var bootstrap = function ($, learun) {
} else { } else {
$("#AOCode").val(NewAOCode); $("#AOCode").val(NewAOCode);
} }

} }
}; };
refreshGirdData = function (temprow) { refreshGirdData = function (temprow) {
@@ -207,7 +208,6 @@ var bootstrap = function ($, learun) {
$.each(temprow, $.each(temprow,
function (i, item) { function (i, item) {
var entity = { var entity = {
//AOICode: item.AICode,
AOICode: item.AICodeNumJY, AOICode: item.AICodeNumJY,
AOIName: item.AIASSName, AOIName: item.AIASSName,
AOISpecification: item.AISpecification, AOISpecification: item.AISpecification,
@@ -228,7 +228,6 @@ var bootstrap = function ($, learun) {
function (j, item2) { function (j, item2) {
$.each(tempdatra, $.each(tempdatra,
function (key, val) { function (key, val) {

if (tempdatra[key].AOICode === item2.AOICode) { if (tempdatra[key].AOICode === item2.AOICode) {
tempdatra[key] = item2; tempdatra[key] = item2;
ifnewrow = false; ifnewrow = false;


+ 2
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsOutApply/AssetsIndex.js View File

@@ -130,7 +130,7 @@ var bootstrap = function ($, learun) {
} }
learun.layerConfirm('是否确认删除该项!', function (res) { learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) { if (res) {
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutItemApply/DeleteForm', { keyValue: keyValue }, function () {
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData(); refreshGirdData();
}); });
} }
@@ -149,7 +149,7 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) { learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) { if (res) {
processId = learun.newGuid(); processId = learun.newGuid();
learun.postForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutItemApply/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res) {
learun.postForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res) {
refreshGirdData(res, {}); refreshGirdData(res, {});
}); });
} }
@@ -184,7 +184,6 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({ $('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/GetPageList', url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsOutApply/GetPageList',
headData: [ headData: [
{ label: "调拨单流水号", name: "AOCode", width: 200, align: "left" },
{ label: "调拨总价", name: "AOPrice", width: 100, align: "left" }, { label: "调拨总价", name: "AOPrice", width: 100, align: "left" },
//{ //{
// label: "出库原因", name: "AOReasonType", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { // label: "出库原因", name: "AOReasonType", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {


+ 14
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolNews/Form.cshtml View File

@@ -44,6 +44,20 @@
<div class="lr-form-item-title">标题图片</div> <div class="lr-form-item-title">标题图片</div>
<div id="F_NewsImage" ></div> <div id="F_NewsImage" ></div>
</div> </div>
<style>
#editor {
height: 400px;
overflow: auto;
position: relative
}
#edui1 {
padding-top: 80px
}
#edui1_toolbarbox {
position: absolute !important;
top:0
}
</style>
<div class="col-xs-12 lr-form-item" data-table="LR_OA_SchoolNews" > <div class="col-xs-12 lr-form-item" data-table="LR_OA_SchoolNews" >
<div class="lr-form-item-title">内容</div> <div class="lr-form-item-title">内容</div>
<div id="editor" style="height:300px;"></div> <div id="editor" style="height:300px;"></div>


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolNews/Form.js View File

@@ -29,6 +29,8 @@ var bootstrap = function ($, learun) {
$('#F_SendPostId').lrPostSelect({ type: 'treemultiple' }); $('#F_SendPostId').lrPostSelect({ type: 'treemultiple' });
//内容编辑器 //内容编辑器
ue = UE.getEditor('editor'); ue = UE.getEditor('editor');

}, },
initData: function () { initData: function () {
if (!!keyValue) { if (!!keyValue) {


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

@@ -15,6 +15,10 @@
<div class="lr-form-item-title">项目周期</div> <div class="lr-form-item-title">项目周期</div>
<input id="Period" type="text" class="form-control" /> <input id="Period" type="text" class="form-control" />
</div> </div>
<div class="col-xs-12 lr-form-item" data-table="ProjectManage" >
<div class="lr-form-item-title">项目费用</div>
<input id="ItemAmount" type="text" class="form-control" isvalid="yes" checkexpession="PositiveFloatint" />
</div>
<div class="col-xs-12 lr-form-item" data-table="ProjectManage"> <div class="col-xs-12 lr-form-item" data-table="ProjectManage">
<div class="lr-form-item-title">负责部门</div> <div class="lr-form-item-title">负责部门</div>
<div id="DepartmentId"></div> <div id="DepartmentId"></div>


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

@@ -17,6 +17,7 @@ var bootstrap = function ($, learun) {
page.bind(); page.bind();
}, },
bind: function () { bind: function () {
// $('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
// 刷新 // 刷新
$('#lr_refresh').on('click', function () { $('#lr_refresh').on('click', function () {
location.reload(); location.reload();
@@ -60,7 +61,7 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) { if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) { learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) { if (res) {
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData(); refreshGirdData();
}); });
} }
@@ -77,10 +78,24 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({ $('#gridtable').jfGrid({
url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/GetPageList', url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/GetPageList',
headData: [ headData: [
{ label: "项目进展情况", name: "Progress", width: 100, align: "left"},
{ label: "时间", name: "ProcessTime", width: 100, align: "left"},
{ label: "项目进展情况", name: "Progress", width: 100, align: "left" },
{ label: "时间", name: "ProcessTime", width: 100, align: "left" },
{
label: "申请人", name: "CreateUserId", 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: "CreateTime", width: 200, align: "left",
}
], ],
mainId:'Id',
mainId: 'Id',
isPage: true isPage: true
}); });
page.search(); page.search();
@@ -101,7 +116,7 @@ var bootstrap = function ($, learun) {
param = param || {}; param = param || {};
param.PPId = PPId; param.PPId = PPId;
param.PId = PId; param.PId = PId;
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
} }
}; };
refreshGirdData = function () { refreshGirdData = function () {


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

@@ -130,6 +130,23 @@ var bootstrap = function ($, learun) {
formatter: function (value) { formatter: function (value) {
return learun.formatDate(value, 'yyyy-MM-dd'); return learun.formatDate(value, 'yyyy-MM-dd');
} }
},
{
label: "申请人", name: "CreateUserId", 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: "CreateTime", width: 200, align: "left" ,
//formatter: function (value) {
// return learun.formatDate(value, 'yyyy-MM-dd');
//}
} }
], ],
mainId: 'Id', mainId: 'Id',


+ 3
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/news/css/common.css View File

@@ -1,4 +1,4 @@
@charset "utf-8";
@charset "utf-8";
/* CSS Document */ /* CSS Document */
body,html{ body,html{
font-size:12px; font-size:12px;
@@ -60,4 +60,6 @@ a,img{border:0;}
a{outline:none !important;} a{outline:none !important;}


img{border:0 none;} img{border:0 none;}
.listDotBox img {


}

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Utility/ListContentIndex.cshtml View File

@@ -13,7 +13,7 @@
} }
</style> </style>
<!-- / warpper --> <!-- / warpper -->
<div class="warpper" style="margin-top: 50px;">
<div class="warpper" style="margin-top: 50px; width: 60%;margin:0 auto">
<!-- / list_sec1 --> <!-- / list_sec1 -->
<div class="list_sec list_sec1"> <div class="list_sec list_sec1">
<div class="index_box"> <div class="index_box">


+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ProjectManage/ProjectManageEntity.cs View File

@@ -64,6 +64,12 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
/// </summary> /// </summary>
[Column("CREATEUSERID")] [Column("CREATEUSERID")]
public string CreateUserId { get; set; } public string CreateUserId { get; set; }
/// <summary>
/// 项目费用
/// </summary>
[Column("ITEMAMOUNT")]
public decimal? ItemAmount { get; set; }
#endregion #endregion


#region 扩展操作 #region 扩展操作


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

@@ -31,11 +31,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
{ {
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("SELECT "); strSql.Append("SELECT ");
strSql.Append(@"
t.Id,
t.Progress,
t.ProcessTime
");
strSql.Append(@" * ");
strSql.Append(" FROM ProjectProcessManage t "); strSql.Append(" FROM ProjectProcessManage t ");
strSql.Append(" WHERE 1=1 "); strSql.Append(" WHERE 1=1 ");
var queryParam = queryJson.ToJObject(); var queryParam = queryJson.ToJObject();
@@ -83,9 +79,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("SELECT "); strSql.Append("SELECT ");
strSql.Append(@" strSql.Append(@"
t.Id,
t.Progress,
t.ProcessTime
t.*
"); ");
strSql.Append(" FROM ProjectProcessManage t "); strSql.Append(" FROM ProjectProcessManage t ");
strSql.Append(" WHERE 1=1 "); strSql.Append(" WHERE 1=1 ");


Loading…
Cancel
Save