@@ -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; | ||||
@@ -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) { | ||||
@@ -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> | ||||
@@ -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) { | ||||
@@ -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> | ||||
@@ -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 () { | ||||
@@ -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', | ||||
@@ -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 { | |||||
} |
@@ -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"> | ||||
@@ -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 扩展操作 | ||||
@@ -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 "); | ||||