-
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Index.js
index c07fa16d5..20f62d7cd 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Index.js
@@ -52,56 +52,79 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
- learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ADR_Restriction/DeleteForm', { keyValue: keyValue}, function () {
+ learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ADR_Restriction/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
+ // 启用
+ $('#lr_enable').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ID');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认启用!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/PersonnelManagement/ADR_Restriction/Enable', { keyValue: keyValue }, function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/ADR_Restriction/GetPageList',
headData: [
- { label: "开始时间", name: "WorkTime", width: 100, align: "left"},
- { label: "结束时间", name: "CloseTime", width: 100, align: "left"},
- { label: "签到有效时间", name: "SignInStartTime", width: 100, align: "left"},
- { label: "-", name: "SignInEndTime", width: 100, align: "left"},
- { label: "签退有效时间", name: "SignOutStartTime", width: 100, align: "left"},
- { label: "-", name: "SignOutEndTime", width: 100, align: "left"},
- { label: "迟到超过时间", name: "LateOvertime", width: 100, align: "left"},
- { label: "早退超过时间", name: "LeaveOverTime", width: 100, align: "left"},
- { label: "未签到,记为", name: "NoSignIn", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op,$cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'ADR_Status',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }},
- { label: "未签退,记为", name: "NoSignOut", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op,$cell) {
- learun.clientdata.getAsync('dataItem', {
- key: value,
- code: 'ADR_Status',
- callback: function (_data) {
- callback(_data.text);
- }
- });
- }},
+ { label: "上班时间", name: "WorkTime", width: 100, align: "left" },
+ { label: "下班时间", name: "CloseTime", width: 100, align: "left" },
+ //{ label: "签到有效时间", name: "SignInStartTime", width: 100, align: "left"},
+ //{ label: "-", name: "SignInEndTime", width: 100, align: "left"},
+ //{ label: "签退有效时间", name: "SignOutStartTime", width: 100, align: "left"},
+ //{ label: "-", name: "SignOutEndTime", width: 100, align: "left"},
+ { label: "允许迟到范围(分)", name: "LateOvertime", width: 100, align: "left" },
+ { label: "允许早退范围(分)", name: "LeaveOverTime", width: 100, align: "left" },
+ {
+ label: "未签到,记为", name: "NoSignIn", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'ADStatus',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "未签退,记为", name: "NoSignOut", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'ADStatus',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "是否启用", name: "REnable", width: 100, align: "left", formatter: function (val) {
+ return val ? "
" : "
";
+ }
+ },
],
- mainId:'ID',
+ mainId: 'ID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
- $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Website/Learun.Application.Website.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Website/Learun.Application.Website.csproj
index 33f1ddf47..5db75a8fe 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Website/Learun.Application.Website.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Website/Learun.Application.Website.csproj
@@ -26,10 +26,14 @@
-
Learun.Application.Website
-
1~a7250b02-76e9-4d74-aa27-f5cdf7719296
-
http://123.57.209.16:8090/VaultService
-
SourceGear Vault Visual Studio 2005 Client:{1EA47954-8515-402d-82D9-B5C332120A8D}
+
+
+
+
+
+
+
+
true
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ADR_Record/ADR_RecordService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ADR_Record/ADR_RecordService.cs
index e5248474d..226e1d428 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ADR_Record/ADR_RecordService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/ADR_Record/ADR_RecordService.cs
@@ -68,6 +68,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
}
+
return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination);
}
catch (Exception ex)
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionBLL.cs
index f7fd1301a..9fb2465f9 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionBLL.cs
@@ -93,6 +93,28 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}
}
+ ///
+ /// 启用限制
+ ///
+ /// 主键
+ public void Enable(string keyValue)
+ {
+ try
+ {
+ aDR_RestrictionService.Enable(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
///
/// 保存实体数据(新增、修改)
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionIBLL.cs
index a2255542b..67e6c66a2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionIBLL.cs
@@ -37,6 +37,11 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// 主键
void DeleteEntity(string keyValue);
///
+ /// 启用限制
+ ///
+ /// 主键
+ void Enable(string keyValue);
+ ///
/// 保存实体数据(新增、修改)
///
/// 主键
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionService.cs
index 6aaf40df7..da393765d 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionService.cs
@@ -42,6 +42,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
t.LateOvertime,
t.LeaveOverTime,
t.NoSignIn,
+ t.REnable,
t.NoSignOut
");
strSql.Append(" FROM ADR_Restriction t ");
@@ -49,7 +50,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
var queryParam = queryJson.ToJObject();
// 虚拟参数
var dp = new DynamicParameters(new { });
- return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination);
+ return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
@@ -100,7 +101,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
try
{
- this.BaseRepository("CollegeMIS").Delete(t=>t.ID == keyValue);
+ this.BaseRepository("CollegeMIS").Delete(t => t.ID == keyValue);
}
catch (Exception ex)
{
@@ -114,6 +115,35 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
}
}
+ ///
+ /// 启用限制
+ ///
+ /// 主键
+ public void Enable(string keyValue)
+ {
+ var db = this.BaseRepository("CollegeMIS").BeginTrans();
+ try
+ {
+ var sql = "UPDATE dbo.ADR_Restriction SET REnable='false'";
+ db.ExecuteBySql(sql);
+ var entity = db.FindEntity(a => a.ID == keyValue);
+ entity.REnable = true;
+ db.Update(entity);
+ db.Commit();
+ }
+ catch (Exception ex)
+ {
+ db.Rollback();
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
///
/// 保存实体数据(新增、修改)
@@ -154,7 +184,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
try
{
- return this.BaseRepository("CollegeMIS").FindEntity(m=>m.REnable==true);
+ return this.BaseRepository("CollegeMIS").FindEntity(m => m.REnable == true);
}
catch (Exception ex)
{
diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
index db1d81965..cf65c06a9 100644
--- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
+++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
@@ -137,11 +137,11 @@
// 全局样式
"globalStyle": {
- "navigationBarTextStyle": "black",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#FFF",
- "backgroundColor": "#f3f3f3",
- "navigationBarTitleText": "力软敏捷开发框架",
+ "navigationBarTextStyle": "black",//导航栏标题颜色及状态栏前景颜色
+ "enablePullDownRefresh": false,//是否开启下拉刷新
+ "navigationBarBackgroundColor": "#FFF",//导航栏背景颜色
+ "backgroundColor": "#f3f3f3",//窗口背景色
+ "navigationBarTitleText": "数字化校园",//导航栏标题文字内容
"mp-alipay": { "allowsBounceVertical": "NO" }
},
diff --git a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/App.config b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/App.config
index 6688fcf64..2baacb87a 100644
--- a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/App.config
+++ b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/App.config
@@ -5,7 +5,7 @@
-
+
diff --git a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Quanjiang.DigitalScholl.JobService.csproj b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Quanjiang.DigitalScholl.JobService.csproj
index a2ade3afd..adca8eb44 100644
--- a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Quanjiang.DigitalScholl.JobService.csproj
+++ b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Quanjiang.DigitalScholl.JobService.csproj
@@ -124,44 +124,6 @@
-
-
- {8f770f8b-06b3-43da-886f-15d41cec62ee}
- Learun.Application.AppMagager
-
-
- {0cdd0dc8-74cf-4c71-923c-66204a8923d3}
- Learun.Application.Base
-
-
- {79f8e2f1-08e7-4336-93e0-512b39f9dd54}
- Learun.Application.Mapping
-
-
- {56f9a112-fd96-4809-98f4-0d7c5de0711b}
- Learun.Application.TwoDevelopment
-
-
- {890532f8-5205-4ee9-965c-84500cad24de}
- Learun.DataBase.SqlServer
-
-
- {7f5e2a6c-c859-494a-8577-75bf9603a80c}
- Learun.DataBase.Repository
-
-
- {c329f9e1-4327-4769-9d08-07e6fec41005}
- Learun.DataBase
-
-
- {81c03609-ae0d-414c-829b-16b990487add}
- Learun.Ioc
-
-
- {cf8ae293-88ab-436c-9720-a8386ba5d7b7}
- Learun.Util
-
-
diff --git a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Service1.cs b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Service1.cs
index 3f5887499..0066c3ded 100644
--- a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Service1.cs
+++ b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.JobService/Service1.cs
@@ -20,6 +20,8 @@ namespace Quanjiang.DigitalScholl.JobService
ServerName = "QuanjiangDigitalSchollJobService"
};
_server = new BackgroundJobServer(options);
+ //自动运行连接考勤机
+ RecurringJob.Trigger("HKAttendance");
}
protected override void OnStop()
diff --git a/Learun.Framework.Ultimate V7/西昌单校区版V3.0.sln b/Learun.Framework.Ultimate V7/西昌单校区版V3.0.sln
index 3063ad091..12da3917c 100644
--- a/Learun.Framework.Ultimate V7/西昌单校区版V3.0.sln
+++ b/Learun.Framework.Ultimate V7/西昌单校区版V3.0.sln
@@ -1595,6 +1595,10 @@ Global
{36083FBB-CE7F-4EE0-8459-C4B60A2DD070} = {16DDB25D-3101-47A2-BDC8-161954FD77FA}
{DBB22F9E-ED75-40EB-A091-717D42C65A9B} = {29DFF52B-8455-4EA1-8798-3AEE210D9372}
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.0\lib\NET35
+ SolutionGuid = {968C278F-4142-4DFF-96B0-B3D70A649451}
+ EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {968C278F-4142-4DFF-96B0-B3D70A649451}
EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.0\lib\NET35