@@ -7,6 +7,15 @@ | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||
var selectedRow; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var logbegin = ''; | |||
var logend = ''; | |||
var processId = ''; | |||
var page = { | |||
init: function () { | |||
@@ -15,6 +17,37 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
selectfn: function (begin, end) { | |||
logbegin = begin; | |||
logend = end; | |||
page.search(); | |||
} | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -181,6 +214,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -7,6 +7,15 @@ | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||
var selectedRow; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var logbegin = ''; | |||
var logend = ''; | |||
var processId = ''; | |||
var page = { | |||
init: function () { | |||
@@ -15,6 +17,37 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
selectfn: function (begin, end) { | |||
logbegin = begin; | |||
logend = end; | |||
page.search(); | |||
} | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -181,6 +214,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -7,6 +7,15 @@ | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||
var selectedRow; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var logbegin = ''; | |||
var logend = ''; | |||
var processId = ''; | |||
var page = { | |||
init: function () { | |||
@@ -15,6 +17,37 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
selectfn: function (begin, end) { | |||
logbegin = begin; | |||
logend = end; | |||
page.search(); | |||
} | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -181,6 +214,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -7,6 +7,15 @@ | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||
var selectedRow; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var logbegin = ''; | |||
var logend = ''; | |||
var processId = ''; | |||
var page = { | |||
init: function () { | |||
@@ -15,6 +17,37 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
selectfn: function (begin, end) { | |||
logbegin = begin; | |||
logend = end; | |||
page.search(); | |||
} | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -181,6 +214,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -7,6 +7,15 @@ | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||
var selectedRow; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var logbegin = ''; | |||
var logend = ''; | |||
var processId = ''; | |||
var page = { | |||
init: function () { | |||
@@ -15,6 +17,37 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
selectfn: function (begin, end) { | |||
logbegin = begin; | |||
logend = end; | |||
page.search(); | |||
} | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -181,6 +214,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -7,6 +7,15 @@ | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||
</div> | |||
</div> | |||
<div class="lr-layout-tool-right"> | |||
<div class=" btn-group btn-group-sm"> | |||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||
var selectedRow; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var logbegin = ''; | |||
var logend = ''; | |||
var processId = ''; | |||
var page = { | |||
init: function () { | |||
@@ -15,6 +17,37 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
selectfn: function (begin, end) { | |||
logbegin = begin; | |||
logend = end; | |||
page.search(); | |||
} | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -181,6 +214,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -2,19 +2,28 @@ | |||
ViewBag.Title = "申请类"; | |||
Layout = "~/Views/Shared/_Index.cshtml"; | |||
} | |||
<div class="lr-layout " > | |||
<div class="lr-layout "> | |||
<div class="lr-layout-center"> | |||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||
<div class="lr-layout-tool"> | |||
<div class="lr-layout-tool-left"> | |||
<div class="lr-layout-tool-item"> | |||
<div id="datesearch"></div> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||
</div> | |||
<div class="lr-layout-tool-item"> | |||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||
</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"> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | |||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | |||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 查看</a> | |||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||
var selectedRow; | |||
var bootstrap = function ($, learun) { | |||
"use strict"; | |||
var logbegin = ''; | |||
var logend = ''; | |||
var processId = ''; | |||
var page = { | |||
init: function () { | |||
@@ -15,6 +17,37 @@ var bootstrap = function ($, learun) { | |||
page.bind(); | |||
}, | |||
bind: function () { | |||
$('#datesearch').lrdate({ | |||
dfdata: [ | |||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||
], | |||
// 月 | |||
mShow: false, | |||
premShow: false, | |||
// 季度 | |||
jShow: false, | |||
prejShow: false, | |||
// 年 | |||
ysShow: false, | |||
yxShow: false, | |||
preyShow: false, | |||
yShow: false, | |||
// 默认 | |||
selectfn: function (begin, end) { | |||
logbegin = begin; | |||
logend = end; | |||
page.search(); | |||
} | |||
}); | |||
// 查询 | |||
$('#btn_Search').on('click', function () { | |||
var keyword = $('#txt_Keyword').val(); | |||
page.search({ keyword: keyword }); | |||
}); | |||
// 刷新 | |||
$('#lr_refresh').on('click', function () { | |||
location.reload(); | |||
@@ -181,6 +214,8 @@ var bootstrap = function ($, learun) { | |||
}, | |||
search: function (param) { | |||
param = param || {}; | |||
param.StartTime = logbegin; | |||
param.EndTime = logend; | |||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||
} | |||
}; | |||
@@ -190,6 +190,13 @@ | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Compile Include="Bootstraper.cs" /> | |||
<Compile Include="Modules\PurchaseEduApi.cs" /> | |||
<Compile Include="Modules\PurchaseInfoApi.cs" /> | |||
<Compile Include="Modules\PurchaseLogisticApi.cs" /> | |||
<Compile Include="Modules\PurchaseOtherApi.cs" /> | |||
<Compile Include="Modules\PurchasePrintApi.cs" /> | |||
<Compile Include="Modules\PurchaseStudentApi.cs" /> | |||
<Compile Include="Modules\PurchaseWorkApi.cs" /> | |||
<Compile Include="Modules\SSOApi.cs" /> | |||
<Compile Include="Modules\AssetManagementSystem\Ass_AssetsInfoItemApi.cs" /> | |||
<Compile Include="Modules\AttendanceApi.cs" /> | |||
@@ -0,0 +1,150 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System; | |||
using Learun.Application.WorkFlow; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:系部数据 | |||
/// </summary> | |||
public class PurchaseEduApi : BaseApi | |||
{ | |||
private Purchase_EduIBLL purchaseeduIBLL = new Purchase_EduBLL(); | |||
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); | |||
/// <summary> | |||
/// 注册接口 | |||
/// <summary> | |||
public PurchaseEduApi() | |||
: base("/learun/adms/purchaseedu") | |||
{ | |||
Get["/pagelist"] = GetPageList; | |||
Get["/form"] = GetForm; | |||
Post["/delete"] = DeleteForm; | |||
Post["/save"] = SaveForm; | |||
Post["/submit"] = Submit; | |||
//Get["/shList"] = GetshList; | |||
} | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表分页数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetPageList(dynamic _) | |||
{ | |||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
var data = purchaseeduIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = parameter.pagination.total, | |||
page = parameter.pagination.page, | |||
records = parameter.pagination.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var Purchase_EduData = purchaseeduIBLL.GetPurchase_EduEntity(keyValue); | |||
var Purchase_Edu_DetailsData = purchaseeduIBLL.GetPurchase_Edu_DetailsList(Purchase_EduData.Id); | |||
var jsonData = new | |||
{ | |||
Purchase_Edu = Purchase_EduData, | |||
Purchase_Edu_Details = Purchase_Edu_DetailsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetshList(dynamic _) | |||
//{ | |||
// FundsApplyEntity parameter = this.GetReqData<FundsApplyEntity>(); | |||
// var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); | |||
// var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); | |||
// var jsonData = new | |||
// { | |||
// FundsApply = FundsApplyData, | |||
// FundsApplyDetail = FundsApplyDetailData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response DeleteForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
purchaseeduIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
Purchase_EduEntity entity = parameter.strEntity.ToObject<Purchase_EduEntity>(); | |||
List<Purchase_Edu_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Edu_DetailsEntity>>(); | |||
//var code = entity.EnCode; | |||
purchaseeduIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 提交 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Submit(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var processId = Guid.NewGuid().ToString(); | |||
purchaseeduIBLL.ModifyStatus(keyValue, 1, processId); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
public string DetailList { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,150 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System; | |||
using Learun.Application.WorkFlow; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:系部数据 | |||
/// </summary> | |||
public class PurchaseInfoApi : BaseApi | |||
{ | |||
private Purchase_InfoIBLL PurchaseInfoIBLL = new Purchase_InfoBLL(); | |||
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); | |||
/// <summary> | |||
/// 注册接口 | |||
/// <summary> | |||
public PurchaseInfoApi() | |||
: base("/learun/adms/PurchaseInfo") | |||
{ | |||
Get["/pagelist"] = GetPageList; | |||
Get["/form"] = GetForm; | |||
Post["/delete"] = DeleteForm; | |||
Post["/save"] = SaveForm; | |||
Post["/submit"] = Submit; | |||
//Get["/shList"] = GetshList; | |||
} | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表分页数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetPageList(dynamic _) | |||
{ | |||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
var data = PurchaseInfoIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = parameter.pagination.total, | |||
page = parameter.pagination.page, | |||
records = parameter.pagination.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var Purchase_InfoData = PurchaseInfoIBLL.GetPurchase_InfoEntity(keyValue); | |||
var Purchase_Info_DetailsData = PurchaseInfoIBLL.GetPurchase_Info_DetailsList(Purchase_InfoData.Id); | |||
var jsonData = new | |||
{ | |||
Purchase_Info = Purchase_InfoData, | |||
Purchase_Info_Details = Purchase_Info_DetailsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetshList(dynamic _) | |||
//{ | |||
// FundsApplyEntity parameter = this.GetReqData<FundsApplyEntity>(); | |||
// var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); | |||
// var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); | |||
// var jsonData = new | |||
// { | |||
// FundsApply = FundsApplyData, | |||
// FundsApplyDetail = FundsApplyDetailData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response DeleteForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
PurchaseInfoIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
Purchase_InfoEntity entity = parameter.strEntity.ToObject<Purchase_InfoEntity>(); | |||
List<Purchase_Info_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Info_DetailsEntity>>(); | |||
//var code = entity.EnCode; | |||
PurchaseInfoIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 提交 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Submit(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var processId = Guid.NewGuid().ToString(); | |||
PurchaseInfoIBLL.ModifyStatus(keyValue, 1, processId); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
public string DetailList { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,150 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System; | |||
using Learun.Application.WorkFlow; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:系部数据 | |||
/// </summary> | |||
public class PurchaseLogisticApi : BaseApi | |||
{ | |||
private Purchase_LogisticIBLL PurchaseLogisticIBLL = new Purchase_LogisticBLL(); | |||
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); | |||
/// <summary> | |||
/// 注册接口 | |||
/// <summary> | |||
public PurchaseLogisticApi() | |||
: base("/learun/adms/PurchaseLogistic") | |||
{ | |||
Get["/pagelist"] = GetPageList; | |||
Get["/form"] = GetForm; | |||
Post["/delete"] = DeleteForm; | |||
Post["/save"] = SaveForm; | |||
Post["/submit"] = Submit; | |||
//Get["/shList"] = GetshList; | |||
} | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表分页数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetPageList(dynamic _) | |||
{ | |||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
var data = PurchaseLogisticIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = parameter.pagination.total, | |||
page = parameter.pagination.page, | |||
records = parameter.pagination.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var Purchase_LogisticData = PurchaseLogisticIBLL.GetPurchase_LogisticEntity(keyValue); | |||
var Purchase_Logistic_DetailsData = PurchaseLogisticIBLL.GetPurchase_Logistic_DetailsList(Purchase_LogisticData.Id); | |||
var jsonData = new | |||
{ | |||
Purchase_Logistic = Purchase_LogisticData, | |||
Purchase_Logistic_Details = Purchase_Logistic_DetailsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetshList(dynamic _) | |||
//{ | |||
// FundsApplyEntity parameter = this.GetReqData<FundsApplyEntity>(); | |||
// var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); | |||
// var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); | |||
// var jsonData = new | |||
// { | |||
// FundsApply = FundsApplyData, | |||
// FundsApplyDetail = FundsApplyDetailData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response DeleteForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
PurchaseLogisticIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
Purchase_LogisticEntity entity = parameter.strEntity.ToObject<Purchase_LogisticEntity>(); | |||
List<Purchase_Logistic_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Logistic_DetailsEntity>>(); | |||
//var code = entity.EnCode; | |||
PurchaseLogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 提交 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Submit(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var processId = Guid.NewGuid().ToString(); | |||
PurchaseLogisticIBLL.ModifyStatus(keyValue, 1, processId); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
public string DetailList { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,150 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System; | |||
using Learun.Application.WorkFlow; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:系部数据 | |||
/// </summary> | |||
public class PurchaseOtherApi : BaseApi | |||
{ | |||
private Purchase_OtherIBLL PurchaseOtherIBLL = new Purchase_OtherBLL(); | |||
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); | |||
/// <summary> | |||
/// 注册接口 | |||
/// <summary> | |||
public PurchaseOtherApi() | |||
: base("/learun/adms/PurchaseOther") | |||
{ | |||
Get["/pagelist"] = GetPageList; | |||
Get["/form"] = GetForm; | |||
Post["/delete"] = DeleteForm; | |||
Post["/save"] = SaveForm; | |||
Post["/submit"] = Submit; | |||
//Get["/shList"] = GetshList; | |||
} | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表分页数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetPageList(dynamic _) | |||
{ | |||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
var data = PurchaseOtherIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = parameter.pagination.total, | |||
page = parameter.pagination.page, | |||
records = parameter.pagination.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var Purchase_OtherData = PurchaseOtherIBLL.GetPurchase_OtherEntity(keyValue); | |||
var Purchase_Other_DetailsData = PurchaseOtherIBLL.GetPurchase_Other_DetailsList(Purchase_OtherData.Id); | |||
var jsonData = new | |||
{ | |||
Purchase_Other = Purchase_OtherData, | |||
Purchase_Other_Details = Purchase_Other_DetailsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetshList(dynamic _) | |||
//{ | |||
// FundsApplyEntity parameter = this.GetReqData<FundsApplyEntity>(); | |||
// var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); | |||
// var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); | |||
// var jsonData = new | |||
// { | |||
// FundsApply = FundsApplyData, | |||
// FundsApplyDetail = FundsApplyDetailData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response DeleteForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
PurchaseOtherIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
Purchase_OtherEntity entity = parameter.strEntity.ToObject<Purchase_OtherEntity>(); | |||
List<Purchase_Other_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Other_DetailsEntity>>(); | |||
//var code = entity.EnCode; | |||
PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 提交 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Submit(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var processId = Guid.NewGuid().ToString(); | |||
PurchaseOtherIBLL.ModifyStatus(keyValue, 1, processId); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
public string DetailList { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,150 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System; | |||
using Learun.Application.WorkFlow; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:系部数据 | |||
/// </summary> | |||
public class PurchasePrintApi : BaseApi | |||
{ | |||
private Purchase_PrintIBLL purchaseworkIBLL = new Purchase_PrintBLL(); | |||
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); | |||
/// <summary> | |||
/// 注册接口 | |||
/// <summary> | |||
public PurchasePrintApi() | |||
: base("/learun/adms/purchasework") | |||
{ | |||
Get["/pagelist"] = GetPageList; | |||
Get["/form"] = GetForm; | |||
Post["/delete"] = DeleteForm; | |||
Post["/save"] = SaveForm; | |||
Post["/submit"] = Submit; | |||
//Get["/shList"] = GetshList; | |||
} | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表分页数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetPageList(dynamic _) | |||
{ | |||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
var data = purchaseworkIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = parameter.pagination.total, | |||
page = parameter.pagination.page, | |||
records = parameter.pagination.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var Purchase_PrintData = purchaseworkIBLL.GetPurchase_PrintEntity(keyValue); | |||
var Purchase_Print_DetailsData = purchaseworkIBLL.GetPurchase_Print_DetailsList(Purchase_PrintData.Id); | |||
var jsonData = new | |||
{ | |||
Purchase_Print = Purchase_PrintData, | |||
Purchase_Print_Details = Purchase_Print_DetailsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetshList(dynamic _) | |||
//{ | |||
// FundsApplyEntity parameter = this.GetReqData<FundsApplyEntity>(); | |||
// var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); | |||
// var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); | |||
// var jsonData = new | |||
// { | |||
// FundsApply = FundsApplyData, | |||
// FundsApplyDetail = FundsApplyDetailData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response DeleteForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
purchaseworkIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
Purchase_PrintEntity entity = parameter.strEntity.ToObject<Purchase_PrintEntity>(); | |||
List<Purchase_Print_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Print_DetailsEntity>>(); | |||
//var code = entity.EnCode; | |||
purchaseworkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 提交 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Submit(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var processId = Guid.NewGuid().ToString(); | |||
purchaseworkIBLL.ModifyStatus(keyValue, 1, processId); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
public string DetailList { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,150 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System; | |||
using Learun.Application.WorkFlow; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:系部数据 | |||
/// </summary> | |||
public class PurchaseStudentApi : BaseApi | |||
{ | |||
private Purchase_StudentIBLL PurchaseStudentIBLL = new Purchase_StudentBLL(); | |||
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); | |||
/// <summary> | |||
/// 注册接口 | |||
/// <summary> | |||
public PurchaseStudentApi() | |||
: base("/learun/adms/PurchaseStudent") | |||
{ | |||
Get["/pagelist"] = GetPageList; | |||
Get["/form"] = GetForm; | |||
Post["/delete"] = DeleteForm; | |||
Post["/save"] = SaveForm; | |||
Post["/submit"] = Submit; | |||
//Get["/shList"] = GetshList; | |||
} | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表分页数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetPageList(dynamic _) | |||
{ | |||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
var data = PurchaseStudentIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = parameter.pagination.total, | |||
page = parameter.pagination.page, | |||
records = parameter.pagination.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var Purchase_StudentData = PurchaseStudentIBLL.GetPurchase_StudentEntity(keyValue); | |||
var Purchase_Student_DetailsData = PurchaseStudentIBLL.GetPurchase_Student_DetailsList(Purchase_StudentData.Id); | |||
var jsonData = new | |||
{ | |||
Purchase_Student = Purchase_StudentData, | |||
Purchase_Student_Details = Purchase_Student_DetailsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetshList(dynamic _) | |||
//{ | |||
// FundsApplyEntity parameter = this.GetReqData<FundsApplyEntity>(); | |||
// var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); | |||
// var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); | |||
// var jsonData = new | |||
// { | |||
// FundsApply = FundsApplyData, | |||
// FundsApplyDetail = FundsApplyDetailData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response DeleteForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
PurchaseStudentIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
Purchase_StudentEntity entity = parameter.strEntity.ToObject<Purchase_StudentEntity>(); | |||
List<Purchase_Student_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Student_DetailsEntity>>(); | |||
//var code = entity.EnCode; | |||
PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 提交 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Submit(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var processId = Guid.NewGuid().ToString(); | |||
PurchaseStudentIBLL.ModifyStatus(keyValue, 1, processId); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
public string DetailList { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -0,0 +1,150 @@ | |||
using Nancy; | |||
using Learun.Util; | |||
using System.Collections.Generic; | |||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||
using System; | |||
using Learun.Application.WorkFlow; | |||
namespace Learun.Application.WebApi | |||
{ | |||
/// <summary> | |||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 | |||
/// Copyright (c) 2013-2018 北京泉江科技有限公司 | |||
/// 创 建:超级管理员 | |||
/// 日 期:2020-06-03 14:29 | |||
/// 描 述:系部数据 | |||
/// </summary> | |||
public class PurchaseWorkApi : BaseApi | |||
{ | |||
private Purchase_WorkIBLL purchaseworkIBLL = new Purchase_WorkBLL(); | |||
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); | |||
/// <summary> | |||
/// 注册接口 | |||
/// <summary> | |||
public PurchaseWorkApi() | |||
: base("/learun/adms/purchasework") | |||
{ | |||
Get["/pagelist"] = GetPageList; | |||
Get["/form"] = GetForm; | |||
Post["/delete"] = DeleteForm; | |||
Post["/save"] = SaveForm; | |||
Post["/submit"] = Submit; | |||
//Get["/shList"] = GetshList; | |||
} | |||
#region 获取数据 | |||
/// <summary> | |||
/// 获取页面显示列表分页数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetPageList(dynamic _) | |||
{ | |||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||
var data = purchaseworkIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||
var jsonData = new | |||
{ | |||
rows = data, | |||
total = parameter.pagination.total, | |||
page = parameter.pagination.page, | |||
records = parameter.pagination.records | |||
}; | |||
return Success(jsonData); | |||
} | |||
/// <summary> | |||
/// 获取表单数据 | |||
/// <summary> | |||
/// <param name="_"></param> | |||
/// <returns></returns> | |||
public Response GetForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var Purchase_WorkData = purchaseworkIBLL.GetPurchase_WorkEntity(keyValue); | |||
var Purchase_Work_DetailsData = purchaseworkIBLL.GetPurchase_Work_DetailsList(Purchase_WorkData.Id); | |||
var jsonData = new | |||
{ | |||
Purchase_Work = Purchase_WorkData, | |||
Purchase_Work_Details = Purchase_Work_DetailsData, | |||
}; | |||
return Success(jsonData); | |||
} | |||
///// <summary> | |||
///// 获取页面显示列表数据 | |||
///// <summary> | |||
///// <param name="_"></param> | |||
///// <returns></returns> | |||
//public Response GetshList(dynamic _) | |||
//{ | |||
// FundsApplyEntity parameter = this.GetReqData<FundsApplyEntity>(); | |||
// var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); | |||
// var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); | |||
// var jsonData = new | |||
// { | |||
// FundsApply = FundsApplyData, | |||
// FundsApplyDetail = FundsApplyDetailData, | |||
// }; | |||
// return Success(jsonData); | |||
//} | |||
#endregion | |||
#region 提交数据 | |||
/// <summary> | |||
/// 删除实体数据 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response DeleteForm(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
purchaseworkIBLL.DeleteEntity(keyValue); | |||
return Success("删除成功!"); | |||
} | |||
/// <summary> | |||
/// 保存实体数据(新增、修改) | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response SaveForm(dynamic _) | |||
{ | |||
ReqFormEntity parameter = this.GetReqData<ReqFormEntity>(); | |||
Purchase_WorkEntity entity = parameter.strEntity.ToObject<Purchase_WorkEntity>(); | |||
List<Purchase_Work_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Work_DetailsEntity>>(); | |||
//var code = entity.EnCode; | |||
purchaseworkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||
return Success("保存成功!"); | |||
} | |||
/// <summary> | |||
/// 提交 | |||
/// <param name="_"></param> | |||
/// <summary> | |||
/// <returns></returns> | |||
public Response Submit(dynamic _) | |||
{ | |||
string keyValue = this.GetReqData(); | |||
var processId = Guid.NewGuid().ToString(); | |||
purchaseworkIBLL.ModifyStatus(keyValue, 1, processId); | |||
UserInfo userInfo = LoginUserInfo.Get(); | |||
nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo); | |||
return Success("提交成功!"); | |||
} | |||
#endregion | |||
#region 私有类 | |||
/// <summary> | |||
/// 表单实体类 | |||
/// <summary> | |||
private class ReqFormEntity | |||
{ | |||
public string keyValue { get; set; } | |||
public string strEntity { get; set; } | |||
public string DetailList { get; set; } | |||
} | |||
#endregion | |||
} | |||
} |
@@ -1,32 +1,46 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<unity> | |||
<typeAliases> | |||
<typeAlias alias="IDatabase" type="Learun.DataBase.IDatabase,Learun.DataBase" /> | |||
<typeAlias alias="SqlServer" type="Learun.DataBase.SqlServer.Database,Learun.DataBase.SqlServer" /> | |||
<typeAlias alias="MySql" type="Learun.DataBase.MySqlEx.Database,Learun.DataBase.MySqlEx" /> | |||
<typeAlias alias="Oracle" type="Learun.DataBase.Oracle.Database,Learun.DataBase.Oracle" /> | |||
<typeAliases> | |||
<typeAlias alias="IDatabase" type="Learun.DataBase.IDatabase,Learun.DataBase" /> | |||
<typeAlias alias="SqlServer" type="Learun.DataBase.SqlServer.Database,Learun.DataBase.SqlServer" /> | |||
<typeAlias alias="MySql" type="Learun.DataBase.MySqlEx.Database,Learun.DataBase.MySqlEx" /> | |||
<typeAlias alias="Oracle" type="Learun.DataBase.Oracle.Database,Learun.DataBase.Oracle" /> | |||
<!--工作流接口--> | |||
<typeAlias alias="INodeMethod" type=" Learun.Application.WorkFlow.INodeMethod, Learun.Application.WorkFlow" /> | |||
<typeAlias alias="NodeMethod" type=" Learun.Application.WorkFlow.NodeMethod, Learun.Application.WorkFlow" /> | |||
<!--工作流接口--> | |||
<typeAlias alias="INodeMethod" type=" Learun.Application.WorkFlow.INodeMethod, Learun.Application.WorkFlow" /> | |||
<typeAlias alias="NodeMethod" type=" Learun.Application.WorkFlow.NodeMethod, Learun.Application.WorkFlow" /> | |||
<typeAlias alias="PurchaseWorkMethod" type="Learun.Application.WorkFlow.PurchaseWorkMethod,Learun.Application.WorkFlow" /> | |||
<typeAlias alias="PurchaseLogisticMethod" type="Learun.Application.WorkFlow.PurchaseLogisticMethod,Learun.Application.WorkFlow" /> | |||
<typeAlias alias="PurchaseInfoMethod" type="Learun.Application.WorkFlow.PurchaseInfoMethod,Learun.Application.WorkFlow" /> | |||
<typeAlias alias="PurchaseStudentMethod" type="Learun.Application.WorkFlow.PurchaseStudentMethod,Learun.Application.WorkFlow" /> | |||
<typeAlias alias="PurchaseOtherMethod" type="Learun.Application.WorkFlow.PurchaseOtherMethod,Learun.Application.WorkFlow" /> | |||
<typeAlias alias="PurchaseEduMethod" type="Learun.Application.WorkFlow.PurchaseEduMethod,Learun.Application.WorkFlow" /> | |||
<typeAlias alias="PurchasePrintMethod" type="Learun.Application.WorkFlow.PurchasePrintMethod,Learun.Application.WorkFlow" /> | |||
<!--任务调度器--> | |||
<typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" /> | |||
<!--任务调度器--> | |||
<typeAlias alias="ITSMethod" type="Learun.Application.Extention.TaskScheduling.ITsMethod,Learun.Application.Extention" /> | |||
</typeAliases> | |||
<containers> | |||
<container name="IOCcontainer"> | |||
<type type="IDatabase" mapTo="SqlServer" name="SqlServer"></type > | |||
<type type="IDatabase" mapTo="MySql" name="MySql"></type > | |||
<type type="IDatabase" mapTo="Oracle" name="Oracle"></type > | |||
</container> | |||
</typeAliases> | |||
<containers> | |||
<container name="IOCcontainer"> | |||
<type type="IDatabase" mapTo="SqlServer" name="SqlServer"></type > | |||
<type type="IDatabase" mapTo="MySql" name="MySql"></type > | |||
<type type="IDatabase" mapTo="Oracle" name="Oracle"></type > | |||
</container> | |||
<container name="WfIOCcontainer"> | |||
<type type="INodeMethod" mapTo="NodeMethod"></type> | |||
</container> | |||
<container name="TsIOCcontainer"> | |||
<!--<type type="ITSMethod" mapTo="TestTask" name="taskioc"></type>--> | |||
</container> | |||
</containers> | |||
<container name="WfIOCcontainer"> | |||
<type type="INodeMethod" mapTo="NodeMethod"></type> | |||
<type type="IWorkFlowMethod" mapTo="PurchaseWorkMethod" name="PurchaseWorkMethod"></type> | |||
<type type="IWorkFlowMethod" mapTo="PurchaseLogisticMethod" name="PurchaseLogisticMethod"></type> | |||
<type type="IWorkFlowMethod" mapTo="PurchaseInfoMethod" name="PurchaseInfoMethod"></type> | |||
<type type="IWorkFlowMethod" mapTo="PurchaseStudentMethod" name="PurchaseStudentMethod"></type> | |||
<type type="IWorkFlowMethod" mapTo="PurchaseOtherMethod" name="PurchaseOtherMethod"></type> | |||
<type type="IWorkFlowMethod" mapTo="PurchaseEduMethod" name="PurchaseEduMethod"></type> | |||
<type type="IWorkFlowMethod" mapTo="PurchasePrintMethod" name="PurchasPrintMethod"></type> | |||
</container> | |||
<container name="TsIOCcontainer"> | |||
<!--<type type="ITSMethod" mapTo="TestTask" name="taskioc"></type>--> | |||
</container> | |||
</containers> | |||
</unity> |
@@ -46,6 +46,17 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) "); | |||
} | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
dp.Add("remark", queryParam["keyword"].ToString(), DbType.String); | |||
strSql.Append(" AND (t.remark Like @remark) "); | |||
} | |||
return this.BaseRepository("CollegeMISFor30").FindList<Purchase_EduEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -46,6 +46,17 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) "); | |||
} | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
dp.Add("remark", queryParam["keyword"].ToString(), DbType.String); | |||
strSql.Append(" AND (t.remark Like @remark) "); | |||
} | |||
return this.BaseRepository("CollegeMISFor30").FindList<Purchase_InfoEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -46,6 +46,17 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) "); | |||
} | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
dp.Add("remark", queryParam["keyword"].ToString(), DbType.String); | |||
strSql.Append(" AND (t.remark Like @remark) "); | |||
} | |||
return this.BaseRepository("CollegeMISFor30").FindList<Purchase_LogisticEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -46,6 +46,17 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) "); | |||
} | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
dp.Add("remark", queryParam["keyword"].ToString(), DbType.String); | |||
strSql.Append(" AND (t.remark Like @remark) "); | |||
} | |||
return this.BaseRepository("CollegeMISFor30").FindList<Purchase_OtherEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -46,6 +46,17 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) "); | |||
} | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
dp.Add("remark", queryParam["keyword"].ToString(), DbType.String); | |||
strSql.Append(" AND (t.remark Like @remark) "); | |||
} | |||
return this.BaseRepository("CollegeMISFor30").FindList<Purchase_PrintEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -46,6 +46,17 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) "); | |||
} | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
dp.Add("remark", queryParam["keyword"].ToString(), DbType.String); | |||
strSql.Append(" AND (t.remark Like @remark) "); | |||
} | |||
return this.BaseRepository("CollegeMISFor30").FindList<Purchase_StudentEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -46,6 +46,17 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
var queryParam = queryJson.ToJObject(); | |||
// 虚拟参数 | |||
var dp = new DynamicParameters(new { }); | |||
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) | |||
{ | |||
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); | |||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | |||
strSql.Append(" AND ( t.CreateTime >= @startTime AND t.CreateTime <= @endTime ) "); | |||
} | |||
if (!queryParam["keyword"].IsEmpty()) | |||
{ | |||
dp.Add("remark", queryParam["keyword"].ToString(), DbType.String); | |||
strSql.Append(" AND (t.remark Like @remark) "); | |||
} | |||
return this.BaseRepository("CollegeMISFor30").FindList<Purchase_WorkEntity>(strSql.ToString(),dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -17,11 +17,11 @@ export default { | |||
// ], | |||
"apiHost": [ | |||
// "http://fwh.ldyesz.edu.cn:9000/",//H5打包 | |||
"http://10.10.4.45:9000/",//app打包 | |||
// "http://192.168.10.58:8013/", | |||
// "http://10.10.4.45:9000/",//app打包 | |||
"http://localhost:31173/", | |||
], | |||
"webHost": "http://10.10.4.45:8000/", | |||
// "webHost": "http://192.168.10.58:8014/", | |||
// "webHost": "http://10.10.4.45:8000/", | |||
"webHost": "http://localhost:20472/", | |||
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | |||
"devAccount": [{ | |||
username: "system", | |||