@@ -147,9 +147,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -186,9 +186,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -120,9 +120,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_fullname', | |||||
keyId: 'name', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_departmentid']); | |||||
callback(_data['id']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -203,9 +203,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -26,7 +26,7 @@ var bootstrap = function ($, learun) { | |||||
bind: function () { | bind: function () { | ||||
var loginInfo = top.learun.clientdata.get(['userinfo']); | var loginInfo = top.learun.clientdata.get(['userinfo']); | ||||
$('#ReceiveUser').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId); | $('#ReceiveUser').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId); | ||||
$('#PDepartment').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }).lrselectSet(loginInfo.departmentId); | |||||
$('#PDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }).lrselectSet(loginInfo.departmentId); | |||||
$('#Ass_ReceiveItem').jfGrid({ | $('#Ass_ReceiveItem').jfGrid({ | ||||
headData: [ | headData: [ | ||||
{ | { | ||||
@@ -26,7 +26,7 @@ var bootstrap = function ($, learun) { | |||||
bind: function () { | bind: function () { | ||||
var loginInfo = top.learun.clientdata.get(['userinfo']); | var loginInfo = top.learun.clientdata.get(['userinfo']); | ||||
$('#ReceiveUser').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId); | $('#ReceiveUser').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }).lrselectSet(loginInfo.userId); | ||||
$('#PDepartment').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }).lrselectSet(loginInfo.departmentId); | |||||
$('#PDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }).lrselectSet(loginInfo.departmentId); | |||||
$('#Ass_ReceiveItem').jfGrid({ | $('#Ass_ReceiveItem').jfGrid({ | ||||
headData: [ | headData: [ | ||||
{ | { | ||||
@@ -183,9 +183,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -282,7 +282,7 @@ | |||||
var companys = $.parseJSON(msg).data.data; | var companys = $.parseJSON(msg).data.data; | ||||
var str = '<option value="">请选择</option>'; | var str = '<option value="">请选择</option>'; | ||||
$.each(companys, function (i, item) { | $.each(companys, function (i, item) { | ||||
str += '<option value="' + item.f_departmentid + '">' + item.f_fullname + '</option>' | |||||
str += '<option value="' + item.id + '">' + item.name + '</option>' | |||||
}) | }) | ||||
$("#F_DepartmentId").html(str); | $("#F_DepartmentId").html(str); | ||||
}, | }, | ||||
@@ -347,9 +347,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -368,9 +368,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -301,7 +301,7 @@ | |||||
var companys = $.parseJSON(msg).data.data; | var companys = $.parseJSON(msg).data.data; | ||||
var str = '<option value="">请选择</option>'; | var str = '<option value="">请选择</option>'; | ||||
$.each(companys, function (i, item) { | $.each(companys, function (i, item) { | ||||
str += '<option value="' + item.f_departmentid + '">' + item.f_fullname + '</option>' | |||||
str += '<option value="' + item.id + '">' + item.name + '</option>' | |||||
}) | }) | ||||
$("#F_DepartmentId").html(str); | $("#F_DepartmentId").html(str); | ||||
}, | }, | ||||
@@ -5,11 +5,7 @@ | |||||
<div class="lr-form-wrap"> | <div class="lr-form-wrap"> | ||||
<div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | <div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | ||||
<div class="lr-form-item-title">员工名字</div> | <div class="lr-form-item-title">员工名字</div> | ||||
<input id="UserName" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | |||||
<div class="lr-form-item-title">部门</div> | |||||
<div id="Department" ></div> | |||||
<div id="UserNo" type="text" class="form-control"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | <div class="col-xs-12 lr-form-item" data-table="ADR_Record" > | ||||
<div class="lr-form-item-title">考勤类型</div> | <div class="lr-form-item-title">考勤类型</div> | ||||
@@ -21,6 +21,8 @@ var bootstrap = function ($, learun) { | |||||
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', | url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', | ||||
param: {} | param: {} | ||||
}); | }); | ||||
$('#UserNo').lrDataSourceSelect({ code: 'BaseUser', value: 'f_account', text: 'f_realname' }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
@@ -98,23 +98,55 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/LogisticsManagement/ADR_Record/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/ADR_Record/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ label: "员工名字", name: "UserName", width: 100, align: "left" }, | |||||
{ | |||||
label: "员工名字", name: "UserNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', | |||||
key: value, | |||||
keyId: 'f_account', | |||||
callback: function (_data) { | |||||
callback(_data['f_realname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "员工编号", name: "UserNo", width: 100, align: "left" }, | { label: "员工编号", name: "UserNo", width: 100, align: "left" }, | ||||
{ | { | ||||
label: "部门", name: "Department", width: 100, align: "left", | label: "部门", name: "Department", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('department', { | |||||
console.log(value); | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||||
key: value, | key: value, | ||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data.name); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "考勤类型", name: "ADType", width: 100, align: "left" }, | |||||
{ | |||||
label: "考勤类型", name: "ADType", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'ADType', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} }, | |||||
{ label: "考勤时间", name: "ADTime", width: 100, align: "left" }, | { label: "考勤时间", name: "ADTime", width: 100, align: "left" }, | ||||
{ label: "打卡时间", name: "ClockTime", width: 100, align: "left" }, | { label: "打卡时间", name: "ClockTime", width: 100, align: "left" }, | ||||
{ label: "打卡结果", name: "ClockStatus", width: 100, align: "left" }, | |||||
{ | |||||
label: "打卡结果", name: "ClockStatus", 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: "ClockPlace", width: 100, align: "left" }, | { label: "打卡地点", name: "ClockPlace", width: 100, align: "left" }, | ||||
], | ], | ||||
mainId: 'ID', | mainId: 'ID', | ||||
@@ -246,9 +246,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -259,9 +259,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#Department').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }); | |||||
$('#Department').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#UnitName').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | $('#UnitName').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | ||||
$('#Type').lrDataItemSelect({ code: 'EUserType' }); | $('#Type').lrDataItemSelect({ code: 'EUserType' }); | ||||
$('#RelationShip').lrDataItemSelect({ code: 'ERelationship' }); | $('#RelationShip').lrDataItemSelect({ code: 'ERelationship' }); | ||||
@@ -119,9 +119,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#Creater').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | $('#Creater').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | ||||
$('#Department').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }); | |||||
$('#Department').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#UnitName').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | $('#UnitName').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); | ||||
$('#Type').lrDataItemSelect({ code: 'EUserType' }); | $('#Type').lrDataItemSelect({ code: 'EUserType' }); | ||||
$('#RelationShip').lrDataItemSelect({ code: 'ERelationship' }); | $('#RelationShip').lrDataItemSelect({ code: 'ERelationship' }); | ||||
@@ -113,9 +113,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -83,9 +83,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -29,10 +29,10 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
sync: true, | sync: true, | ||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data.f_fullname); | |||||
callback(_data.name); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#WPDepartment').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }); | |||||
$('#WPDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#WPUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | $('#WPUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | ||||
$('#WPTimeType').lrDataItemSelect({ code: 'WorkPlanType' }); | $('#WPTimeType').lrDataItemSelect({ code: 'WorkPlanType' }); | ||||
$('#WPFile').lrUploader(); | $('#WPFile').lrUploader(); | ||||
@@ -45,7 +45,7 @@ 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); | ||||
$('#WPDepartment').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }); | |||||
$('#WPDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#WPUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | $('#WPUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | ||||
$('#WPTimeType').lrDataItemSelect({ code: 'WorkPlanType' }); | $('#WPTimeType').lrDataItemSelect({ code: 'WorkPlanType' }); | ||||
// 刷新 | // 刷新 | ||||
@@ -110,9 +110,9 @@ var bootstrap = function ($, learun) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data['f_fullname']); | |||||
callback(_data['name']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#WSDepartment').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }); | |||||
$('#WSDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#WSUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | $('#WSUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | ||||
$('#WSTimeType').lrDataItemSelect({ code: 'WorkSummaryType' }); | $('#WSTimeType').lrDataItemSelect({ code: 'WorkSummaryType' }); | ||||
$('#WSFile').lrUploader(); | $('#WSFile').lrUploader(); | ||||
@@ -45,7 +45,7 @@ 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); | ||||
$('#WSDepartment').lrDataSourceSelect({ code: 'classdata', value: 'f_departmentid', text: 'f_fullname' }); | |||||
$('#WSDepartment').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); | |||||
$('#WSUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | $('#WSUser').lrDataSourceSelect({ code: 'BaseUser', value: 'f_userid', text: 'f_realname' }); | ||||
$('#WSTimeType').lrDataItemSelect({ code: 'WorkSummaryType' }); | $('#WSTimeType').lrDataItemSelect({ code: 'WorkSummaryType' }); | ||||
// 刷新 | // 刷新 | ||||
@@ -486,9 +486,9 @@ | |||||
sync: true, | sync: true, | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
result = _data.f_fullname; | |||||
result = _data.name; | |||||
} | } | ||||
}); | }); | ||||
return result; | return result; | ||||
@@ -527,9 +527,9 @@ | |||||
sync: true, | sync: true, | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | ||||
key: value, | key: value, | ||||
keyId: 'f_departmentid', | |||||
keyId: 'id', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
result = _data.f_fullname; | |||||
result = _data.name; | |||||
} | } | ||||
}); | }); | ||||
return result; | return result; | ||||
@@ -29,9 +29,23 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
var baseDataName = this.BaseRepository().getDbConnection().Database; | |||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT * "); | |||||
strSql.Append(" FROM ADR_Record t "); | |||||
strSql.Append(@"SELECT t.ID, | |||||
emp.F_RealName UserName, | |||||
t.UserNo, | |||||
emp.F_DepartmentId Department , | |||||
t.ADType, | |||||
t.ADTime, | |||||
t.ClockTime, | |||||
t.ClockStatus, | |||||
t.ClockPlace, | |||||
t.ADYear, | |||||
t.ADMonth, | |||||
t.ADDay, | |||||
t.ADPhoto | |||||
"); | |||||
strSql.Append($" FROM ADR_Record t RIGHT JOIN {baseDataName}.dbo.LR_Base_User emp ON t.UserNo=emp.F_Account"); | |||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
@@ -45,13 +59,15 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
if (!queryParam["UserName"].IsEmpty()) | if (!queryParam["UserName"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("UserName", "%" + queryParam["UserName"].ToString() + "%", DbType.String); | dp.Add("UserName", "%" + queryParam["UserName"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.UserName Like @UserName "); | |||||
strSql.Append(" AND emp.EmpName Like @UserName "); | |||||
} | } | ||||
if (!queryParam["Department"].IsEmpty()) | if (!queryParam["Department"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("Department",queryParam["Department"].ToString(), DbType.String); | dp.Add("Department",queryParam["Department"].ToString(), DbType.String); | ||||
strSql.Append(" AND t.Department = @Department "); | |||||
strSql.Append(" AND emp.F_DepartmentId = @Department "); | |||||
} | } | ||||
return this.BaseRepository("CollegeMIS").FindList<ADR_RecordEntity>(strSql.ToString(),dp, pagination); | return this.BaseRepository("CollegeMIS").FindList<ADR_RecordEntity>(strSql.ToString(),dp, pagination); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||