@@ -26,7 +26,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult Index() | public ActionResult Index() | ||||
{ | { | ||||
return View(); | |||||
return View(); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 表单页 | /// 表单页 | ||||
@@ -35,7 +35,7 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
[HttpGet] | [HttpGet] | ||||
public ActionResult Form() | public ActionResult Form() | ||||
{ | { | ||||
return View(); | |||||
return View(); | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -61,6 +61,19 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// <summary> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetList() | |||||
{ | |||||
var data = conferenceRoomIBLL.GetList(); | |||||
return Success(data); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取表单数据 | /// 获取表单数据 | ||||
/// <summary> | /// <summary> | ||||
@@ -69,8 +82,9 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetFormData(string keyValue) | public ActionResult GetFormData(string keyValue) | ||||
{ | { | ||||
var ConferenceRoomData = conferenceRoomIBLL.GetConferenceRoomEntity( keyValue ); | |||||
var jsonData = new { | |||||
var ConferenceRoomData = conferenceRoomIBLL.GetConferenceRoomEntity(keyValue); | |||||
var jsonData = new | |||||
{ | |||||
ConferenceRoom = ConferenceRoomData, | ConferenceRoom = ConferenceRoomData, | ||||
}; | }; | ||||
return Success(jsonData); | return Success(jsonData); | ||||
@@ -102,9 +116,21 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers | |||||
public ActionResult SaveForm(string keyValue, string strEntity) | public ActionResult SaveForm(string keyValue, string strEntity) | ||||
{ | { | ||||
ConferenceRoomEntity entity = strEntity.ToObject<ConferenceRoomEntity>(); | ConferenceRoomEntity entity = strEntity.ToObject<ConferenceRoomEntity>(); | ||||
conferenceRoomIBLL.SaveEntity(keyValue,entity); | |||||
conferenceRoomIBLL.SaveEntity(keyValue, entity); | |||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
} | } | ||||
/// <summary> | |||||
/// 启用禁用实体数据 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult DoEnable(string keyValue, string status) | |||||
{ | |||||
conferenceRoomIBLL.DoEnable(keyValue, status); | |||||
return Success("操作成功!"); | |||||
} | |||||
#endregion | #endregion | ||||
} | } | ||||
@@ -3,25 +3,29 @@ | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | Layout = "~/Views/Shared/_Form.cshtml"; | ||||
} | } | ||||
<div class="lr-form-wrap"> | <div class="lr-form-wrap"> | ||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom" > | |||||
<div class="lr-form-item-title">名称</div> | |||||
<input id="Name" type="text" class="form-control" /> | |||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom"> | |||||
<div class="lr-form-item-title">场地名称<font face="宋体">*</font></div> | |||||
<input id="Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom" > | |||||
<div class="lr-form-item-title">地点</div> | |||||
<input id="Address" type="text" class="form-control" /> | |||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom"> | |||||
<div class="lr-form-item-title">地点<font face="宋体">*</font></div> | |||||
<input id="Address" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom" > | |||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom"> | |||||
<div class="lr-form-item-title">状态</div> | <div class="lr-form-item-title">状态</div> | ||||
<input id="Status" type="text" class="form-control" /> | |||||
<div id="Status"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom" > | |||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom"> | |||||
<div class="lr-form-item-title">可容纳人数</div> | <div class="lr-form-item-title">可容纳人数</div> | ||||
<input id="Scale" type="text" class="form-control" /> | |||||
<input id="Scale" type="text" class="form-control" /> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom" > | |||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom"> | |||||
<div class="lr-form-item-title">备注</div> | <div class="lr-form-item-title">备注</div> | ||||
<textarea id="Remark" class="form-control" style="height:100px;" ></textarea> | |||||
<textarea id="Remark" class="form-control" style="height:100px;"></textarea> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="ConferenceRoom"> | |||||
<div class="lr-form-item-title">添加时间<font face="宋体">*</font></div> | |||||
<input id="CreateTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm',onpicked: function () { $('#CreateTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ConferenceRoom/Form.js") | @Html.AppendJsFile("/Areas/PersonnelManagement/Views/ConferenceRoom/Form.js") |
@@ -15,6 +15,7 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$("#Status").lrDataItemSelect({ code: 'EnableStatus' }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
@@ -11,12 +11,12 @@ | |||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | <div class="lr-query-formcontent"> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">名称</div> | |||||
<div class="lr-form-item-title">场地名称</div> | |||||
<input id="Name" type="text" class="form-control" /> | <input id="Name" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">状态</div> | <div class="lr-form-item-title">状态</div> | ||||
<input id="Status" type="text" class="form-control" /> | |||||
<div id="Status"></div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -31,6 +31,10 @@ | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></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_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||||
<a id="lr_enable" class="btn btn-default"><i class="fa fa-lock"></i> 启用</a> | |||||
<a id="lr_disable" class="btn btn-default"><i class="fa fa-unlock"></i> 禁用</a> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="lr-layout-body" id="gridtable"></div> | <div class="lr-layout-body" id="gridtable"></div> | ||||
@@ -16,18 +16,19 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$("#Status").lrDataItemSelect({ code: 'EnableStatus' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
}); | }); | ||||
// 新增 | // 新增 | ||||
$('#lr_add').on('click', function () { | $('#lr_add').on('click', function () { | ||||
learun.layerForm({ | |||||
learun.layerForm({ | |||||
id: 'form', | id: 'form', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/Form', | url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/Form', | ||||
width: 600, | |||||
height: 400, | |||||
width: 800, | |||||
height: 600, | |||||
callBack: function (id) { | callBack: function (id) { | ||||
return top[id].acceptClick(refreshGirdData); | return top[id].acceptClick(refreshGirdData); | ||||
} | } | ||||
@@ -41,8 +42,8 @@ var bootstrap = function ($, learun) { | |||||
id: 'form', | id: 'form', | ||||
title: '编辑', | title: '编辑', | ||||
url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/Form?keyValue=' + keyValue, | url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/Form?keyValue=' + keyValue, | ||||
width: 600, | |||||
height: 400, | |||||
width: 800, | |||||
height: 600, | |||||
callBack: function (id) { | callBack: function (id) { | ||||
return top[id].acceptClick(refreshGirdData); | return top[id].acceptClick(refreshGirdData); | ||||
} | } | ||||
@@ -53,9 +54,45 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_delete').on('click', function () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 启用 | |||||
$('#lr_enable').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var Status = $('#gridtable').jfGridValue('Status'); | |||||
if (Status == "1") { | |||||
learun.alert.warning("当前项已启用!"); | |||||
return false; | |||||
} | |||||
learun.layerConfirm('是否确认启用该项!', function (res) { | |||||
if (res) { | |||||
learun.postForm(top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/DoEnable', { keyValue: keyValue, status: "1" }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 禁用 | |||||
$('#lr_disable').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('ID'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var Status = $('#gridtable').jfGridValue('Status'); | |||||
if (Status != "1") { | |||||
learun.alert.warning("当前项未启用!"); | |||||
return false; | |||||
} | |||||
learun.layerConfirm('是否确认禁用该项!', function (res) { | |||||
if (res) { | |||||
learun.postForm(top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/DoEnable', { keyValue: keyValue, status: "0" }, function () { | |||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
} | } | ||||
@@ -68,20 +105,25 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/GetPageList', | url: top.$.rootUrl + '/PersonnelManagement/ConferenceRoom/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ label: "名称", name: "Name", width: 100, align: "left"}, | |||||
{ label: "地点", name: "Address", width: 100, align: "left"}, | |||||
{ label: "状态", name: "Status", width: 100, align: "left"}, | |||||
{ label: "可容纳人数", name: "Scale", width: 100, align: "left"}, | |||||
{ label: "备注", name: "Remark", width: 100, align: "left"}, | |||||
{ label: "场地名称", name: "Name", width: 200, align: "left" }, | |||||
{ label: "地点", name: "Address", width: 200, align: "left" }, | |||||
{ | |||||
label: "状态", name: "Status", width: 100, align: "left", formatter: function (cellvalue) { | |||||
return cellvalue == 1 ? "启用" : "禁用"; | |||||
} | |||||
}, | |||||
{ label: "可容纳人数", name: "Scale", width: 100, align: "left" }, | |||||
{ label: "添加时间", name: "CreateTime", width: 100, align: "left" }, | |||||
], | ], | ||||
mainId:'ID', | |||||
isPage: true | |||||
mainId: 'ID', | |||||
isPage: true, | |||||
sidx: 'CreateTime desc' | |||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function () { | refreshGirdData = function () { | ||||
@@ -537,6 +537,8 @@ | |||||
<Compile Include="Areas\PersonnelManagement\Controllers\EpidemicReportController.cs" /> | <Compile Include="Areas\PersonnelManagement\Controllers\EpidemicReportController.cs" /> | ||||
<Compile Include="Areas\PersonnelManagement\Controllers\EpidemicSituationCopyController.cs" /> | <Compile Include="Areas\PersonnelManagement\Controllers\EpidemicSituationCopyController.cs" /> | ||||
<Compile Include="Areas\PersonnelManagement\Controllers\MeetingManagementController.cs" /> | <Compile Include="Areas\PersonnelManagement\Controllers\MeetingManagementController.cs" /> | ||||
<Compile Include="Areas\PersonnelManagement\Controllers\MeetingMinutesController.cs" /> | |||||
<Compile Include="Areas\PersonnelManagement\Controllers\MeetingNoticeController.cs" /> | |||||
<Compile Include="Areas\PersonnelManagement\Controllers\MeetingSignInRecordController.cs" /> | <Compile Include="Areas\PersonnelManagement\Controllers\MeetingSignInRecordController.cs" /> | ||||
<Compile Include="Areas\PersonnelManagement\Controllers\MP_PerformanceTrackingController.cs" /> | <Compile Include="Areas\PersonnelManagement\Controllers\MP_PerformanceTrackingController.cs" /> | ||||
<Compile Include="Areas\PersonnelManagement\Controllers\MP_QualityObjectivesController.cs" /> | <Compile Include="Areas\PersonnelManagement\Controllers\MP_QualityObjectivesController.cs" /> | ||||
@@ -1731,9 +1733,15 @@ | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\Form.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\Form.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\FormView.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\FormView.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\Index.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\Index.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexAll.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyApply.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexStatistics.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexStatistics.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\qrCode.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingMinutes\Form.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingMinutes\Index.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Form.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Index.js" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\Form.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\Form.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\FormViewAttendance.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\FormViewAttendance.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\Index.js" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\Index.js" /> | ||||
@@ -8275,6 +8283,12 @@ | |||||
<Content Include="Areas\PersonnelManagement\Views\ADR_Restriction\FormDay.cshtml" /> | <Content Include="Areas\PersonnelManagement\Views\ADR_Restriction\FormDay.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\IndexCenter.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\IndexCenter.cshtml" /> | ||||
<Content Include="Areas\LogisticsManagement\Views\ADR_Record\FormView.cshtml" /> | <Content Include="Areas\LogisticsManagement\Views\ADR_Record\FormView.cshtml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexAll.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\qrCode.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingMinutes\Form.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingMinutes\Index.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Form.cshtml" /> | |||||
<Content Include="Areas\PersonnelManagement\Views\MeetingNotice\Index.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||
<Content Include="Views\Login\Default-beifen.cshtml" /> | <Content Include="Views\Login\Default-beifen.cshtml" /> | ||||
@@ -221,6 +221,9 @@ | |||||
<ItemGroup> | <ItemGroup> | ||||
<Compile Include="Bootstraper.cs" /> | <Compile Include="Bootstraper.cs" /> | ||||
<Compile Include="Modules\LessonInfoOfElectiveOnlineApi.cs" /> | <Compile Include="Modules\LessonInfoOfElectiveOnlineApi.cs" /> | ||||
<Compile Include="Modules\PersonnelManagement\MeetingManagementApi.cs" /> | |||||
<Compile Include="Modules\PersonnelManagement\MeetingMinutesApi.cs" /> | |||||
<Compile Include="Modules\PersonnelManagement\MeetingSignInRecordApi.cs" /> | |||||
<Compile Include="Modules\RepairReport\RepairReportTeacherApi.cs" /> | <Compile Include="Modules\RepairReport\RepairReportTeacherApi.cs" /> | ||||
<Compile Include="Modules\RepairReport\RepairReportStudentApi.cs" /> | <Compile Include="Modules\RepairReport\RepairReportStudentApi.cs" /> | ||||
<Compile Include="Modules\SSOApi.cs" /> | <Compile Include="Modules\SSOApi.cs" /> | ||||
@@ -243,6 +243,8 @@ | |||||
<Compile Include="PersonnelManagement\ADR_RestrictionDayMap.cs" /> | <Compile Include="PersonnelManagement\ADR_RestrictionDayMap.cs" /> | ||||
<Compile Include="PersonnelManagement\JbjiabanMap.cs" /> | <Compile Include="PersonnelManagement\JbjiabanMap.cs" /> | ||||
<Compile Include="PersonnelManagement\MeetingManagementMap.cs" /> | <Compile Include="PersonnelManagement\MeetingManagementMap.cs" /> | ||||
<Compile Include="PersonnelManagement\MeetingMinutesMap.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingNoticeMap.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingSignInRecordMap.cs" /> | <Compile Include="PersonnelManagement\MeetingSignInRecordMap.cs" /> | ||||
<Compile Include="PersonnelManagement\MP_ManageMentPlanMap.cs" /> | <Compile Include="PersonnelManagement\MP_ManageMentPlanMap.cs" /> | ||||
<Compile Include="PersonnelManagement\PMCadreMap.cs" /> | <Compile Include="PersonnelManagement\PMCadreMap.cs" /> | ||||
@@ -482,6 +482,14 @@ | |||||
<Compile Include="PersonnelManagement\MeetingManagement\MeetingManagementEntity.cs" /> | <Compile Include="PersonnelManagement\MeetingManagement\MeetingManagementEntity.cs" /> | ||||
<Compile Include="PersonnelManagement\MeetingManagement\MeetingManagementIBLL.cs" /> | <Compile Include="PersonnelManagement\MeetingManagement\MeetingManagementIBLL.cs" /> | ||||
<Compile Include="PersonnelManagement\MeetingManagement\MeetingManagementService.cs" /> | <Compile Include="PersonnelManagement\MeetingManagement\MeetingManagementService.cs" /> | ||||
<Compile Include="PersonnelManagement\MeetingMinutes\MeetingMinutesBLL.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingMinutes\MeetingMinutesEntity.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingMinutes\MeetingMinutesIBLL.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingMinutes\MeetingMinutesService.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeBLL.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeEntity.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeIBLL.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingNotice\MeetingNoticeService.cs" /> | |||||
<Compile Include="PersonnelManagement\MeetingSignInRecord\MeetingSignInRecordBLL.cs" /> | <Compile Include="PersonnelManagement\MeetingSignInRecord\MeetingSignInRecordBLL.cs" /> | ||||
<Compile Include="PersonnelManagement\MeetingSignInRecord\MeetingSignInRecordEntity.cs" /> | <Compile Include="PersonnelManagement\MeetingSignInRecord\MeetingSignInRecordEntity.cs" /> | ||||
<Compile Include="PersonnelManagement\MeetingSignInRecord\MeetingSignInRecordIBLL.cs" /> | <Compile Include="PersonnelManagement\MeetingSignInRecord\MeetingSignInRecordIBLL.cs" /> | ||||
@@ -42,6 +42,29 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// <summary> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<ConferenceRoomEntity> GetList() | |||||
{ | |||||
try | |||||
{ | |||||
return conferenceRoomService.GetList(); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取ConferenceRoom表实体数据 | /// 获取ConferenceRoom表实体数据 | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
@@ -118,6 +141,29 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 启用禁用实体数据 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
public void DoEnable(string keyValue, string status) | |||||
{ | |||||
try | |||||
{ | |||||
conferenceRoomService.DoEnable(keyValue, status); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
} | } | ||||
@@ -20,7 +20,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
[Column("ID")] | [Column("ID")] | ||||
public string ID { get; set; } | public string ID { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 名字 | |||||
/// 场地名称 | |||||
/// </summary> | /// </summary> | ||||
[Column("NAME")] | [Column("NAME")] | ||||
public string Name { get; set; } | public string Name { get; set; } | ||||
@@ -44,6 +44,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// </summary> | /// </summary> | ||||
[Column("REMARK")] | [Column("REMARK")] | ||||
public string Remark { get; set; } | public string Remark { get; set; } | ||||
/// <summary> | |||||
/// 添加时间 | |||||
/// </summary> | |||||
[Column("CREATETIME")] | |||||
public DateTime CreateTime { get; set; } | |||||
#endregion | #endregion | ||||
#region 扩展操作 | #region 扩展操作 | ||||
@@ -21,6 +21,13 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// <param name="queryJson">查询参数</param> | /// <param name="queryJson">查询参数</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
IEnumerable<ConferenceRoomEntity> GetPageList(Pagination pagination, string queryJson); | IEnumerable<ConferenceRoomEntity> GetPageList(Pagination pagination, string queryJson); | ||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// <summary> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
IEnumerable<ConferenceRoomEntity> GetList(); | |||||
/// <summary> | /// <summary> | ||||
/// 获取ConferenceRoom表实体数据 | /// 获取ConferenceRoom表实体数据 | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
@@ -43,6 +50,13 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// <summary> | /// <summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
void SaveEntity(string keyValue, ConferenceRoomEntity entity); | void SaveEntity(string keyValue, ConferenceRoomEntity entity); | ||||
/// <summary> | |||||
/// 启用禁用实体数据 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
void DoEnable(string keyValue, string status); | |||||
#endregion | #endregion | ||||
} | } | ||||
@@ -29,15 +29,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
try | try | ||||
{ | { | ||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | |||||
strSql.Append(@" | |||||
t.ID, | |||||
t.Name, | |||||
t.Address, | |||||
t.Status, | |||||
t.Scale, | |||||
t.Remark | |||||
"); | |||||
strSql.Append("SELECT t.* "); | |||||
strSql.Append(" FROM ConferenceRoom t "); | strSql.Append(" FROM ConferenceRoom t "); | ||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
@@ -50,10 +42,17 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
} | } | ||||
if (!queryParam["Status"].IsEmpty()) | if (!queryParam["Status"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("Status", "%" + queryParam["Status"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.Status Like @Status "); | |||||
if (queryParam["Status"].ToString() == "1") | |||||
{ | |||||
dp.Add("Status", queryParam["Status"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.Status = @Status "); | |||||
} | |||||
else | |||||
{ | |||||
strSql.Append(" AND t.Status != '1' "); | |||||
} | |||||
} | } | ||||
return this.BaseRepository("CollegeMIS").FindList<ConferenceRoomEntity>(strSql.ToString(),dp, pagination); | |||||
return this.BaseRepository("CollegeMIS").FindList<ConferenceRoomEntity>(strSql.ToString(), dp, pagination); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -68,6 +67,33 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// <summary> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<ConferenceRoomEntity> GetList() | |||||
{ | |||||
try | |||||
{ | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT t.* "); | |||||
strSql.Append(" FROM ConferenceRoom t "); | |||||
strSql.Append(" WHERE 1=1 and t.Status = '1' "); | |||||
return this.BaseRepository("CollegeMIS").FindList<ConferenceRoomEntity>(strSql.ToString()); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取ConferenceRoom表实体数据 | /// 获取ConferenceRoom表实体数据 | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
@@ -105,7 +131,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
this.BaseRepository("CollegeMIS").Delete<ConferenceRoomEntity>(t=>t.ID == keyValue); | |||||
this.BaseRepository("CollegeMIS").Delete<ConferenceRoomEntity>(t => t.ID == keyValue); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -153,6 +179,30 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 启用禁用实体数据 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
public void DoEnable(string keyValue, string status) | |||||
{ | |||||
try | |||||
{ | |||||
this.BaseRepository("CollegeMIS").ExecuteBySql("update ConferenceRoom set Status='" + status + "' where ID='" + keyValue + "' "); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
} | } | ||||
@@ -0,0 +1,77 @@ | |||||
<template> | |||||
<view></view> | |||||
</template> | |||||
<script> | |||||
import wx from '@/common/js/weixin-js-sdk.js'; | |||||
export default { | |||||
name:"scanCode", | |||||
props:{}, | |||||
data() { | |||||
return { | |||||
wxObject:null, | |||||
}; | |||||
}, | |||||
mounted() { | |||||
this.setConfig() | |||||
}, | |||||
methods: { | |||||
setConfig() { | |||||
const promise = new Promise((resolve, reject) => { | |||||
// let url = window.location.href | |||||
let url = /(Android)/i.test(navigator.userAgent) ? location.href.split('#')[0] : window.localStorage.getItem('scanUrl') | |||||
this.HTTP_GET("weixinapi/getweixinwebaccess_token?url=" + encodeURIComponent(url)).then((success)=>{ | |||||
if(!success){ | |||||
resolve(false) | |||||
return | |||||
} | |||||
this.wxObject = wx | |||||
this.wxObject.config({ | |||||
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 | |||||
appId: success.appid, // 必填,公众号的唯一标识 | |||||
timestamp: success.timestamp, // 必填,生成签名的时间戳 | |||||
nonceStr: success.noncestr, // 必填,生成签名的随机串 | |||||
signature: success.certificate, // 必填,签名 | |||||
jsApiList: ["scanQRCode"] // 必填,需要使用的JS接口列表 | |||||
}); | |||||
this.wxObject.ready(() => { | |||||
this.TOAST("扫码初始化成功") | |||||
}) | |||||
this.wxObject.error(() => { | |||||
this.TOAST("扫码初始化失败") | |||||
}) | |||||
}) | |||||
}) | |||||
return promise | |||||
}, | |||||
scanCode(){ | |||||
return new Promise((resolve)=>{ | |||||
if(!this.wxObject||!this.wxObject.scanQRCode){ | |||||
this.TOAST("无效方法") | |||||
resolve(false) | |||||
}else{ | |||||
this.TOAST("正在调用扫码...") | |||||
} | |||||
this.wxObject.scanQRCode({ | |||||
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, | |||||
scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 | |||||
success: (res) => { | |||||
this.TOAST("方法调用成功") | |||||
var result = res.resultStr; // 当 needResult 为 1 时,扫码返回的结果 | |||||
var resultArr = result.split(','); // 扫描结果以逗号分割数组 | |||||
var codeContent = resultArr[resultArr.length - 1]; // 获取数组最后一个元素,也就是最终的内容 | |||||
resolve({result:codeContent}) | |||||
}, | |||||
fail: (res) =>{ | |||||
this.TOAST("调用扫码失败") | |||||
resolve(false) | |||||
} | |||||
}); | |||||
}) | |||||
} | |||||
}, | |||||
} | |||||
</script> | |||||
<style> | |||||
</style> |
@@ -7,15 +7,15 @@ export default { | |||||
"enableSignUp": true, | "enableSignUp": true, | ||||
//请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 | //请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 | ||||
//黑龙江正式地址 | //黑龙江正式地址 | ||||
"apiHost": [ | |||||
"http://1.190.222.34:9001/" | |||||
], | |||||
"webHost":"http://1.190.222.34:9000/", | |||||
//本地: | |||||
// "apiHost": [ | // "apiHost": [ | ||||
// "http://localhost:9003/" | |||||
// "http://1.190.222.34:9001/" | |||||
// ], | // ], | ||||
// "webHost":"http://localhost:8000/", | |||||
// "webHost":"http://1.190.222.34:9000/", | |||||
//本地: | |||||
"apiHost": [ | |||||
"http://localhost:8088/" | |||||
], | |||||
"webHost":"http://localhost:8087/", | |||||
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | // 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | ||||
"devAccount": [ | "devAccount": [ | ||||
{ username: "system", password: "www.qj.com" } | { username: "system", password: "www.qj.com" } | ||||