@@ -147,10 +147,10 @@ | |||||
<div class="lr-form-item-title">部门<font face="宋体">*</font></div> | <div class="lr-form-item-title">部门<font face="宋体">*</font></div> | ||||
<div id="F_DepartmentId" checkexpession="NotNull"></div> | <div id="F_DepartmentId" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | |||||
@*<div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | |||||
<div class="lr-form-item-title">系部</div> | <div class="lr-form-item-title">系部</div> | ||||
<div id="DeptNo"></div> | <div id="DeptNo"></div> | ||||
</div> | |||||
</div>*@ | |||||
<div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | <div class="col-xs-4 lr-form-item" data-table="EmpInfo"> | ||||
<div class="lr-form-item-title">岗位类别</div> | <div class="lr-form-item-title">岗位类别</div> | ||||
<div id="EmpSortNo"></div> | <div id="EmpSortNo"></div> | ||||
@@ -48,7 +48,7 @@ var bootstrap = function ($, learun) { | |||||
$("#ForeignLanguageNo").parent().hide(); | $("#ForeignLanguageNo").parent().hide(); | ||||
$("#EmpSortNo").parent().hide(); | $("#EmpSortNo").parent().hide(); | ||||
$("#EmpFullTimeNo").parent().hide(); | $("#EmpFullTimeNo").parent().hide(); | ||||
$("#DeptNo").parent().hide(); | |||||
//$("#DeptNo").parent().hide(); | |||||
$("#TitleOfTechPostNo").parent().hide(); | $("#TitleOfTechPostNo").parent().hide(); | ||||
$("#InSchoolDate").parent().hide(); | $("#InSchoolDate").parent().hide(); | ||||
$("#resume").parent().hide(); | $("#resume").parent().hide(); | ||||
@@ -127,7 +127,7 @@ var bootstrap = function ($, learun) { | |||||
$('#EmpSortNo').lrDataItemSelect({ code: 'jsgw' }); | $('#EmpSortNo').lrDataItemSelect({ code: 'jsgw' }); | ||||
$('#EmpFullTimeNo').lrDataItemSelect({ code: 'EmpFullTime' }); | $('#EmpFullTimeNo').lrDataItemSelect({ code: 'EmpFullTime' }); | ||||
$('#ObtainWay').lrDataItemSelect({ code: 'ObtainWay' }); | $('#ObtainWay').lrDataItemSelect({ code: 'ObtainWay' }); | ||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
//$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
$('#PostRank').lrDataSourceSelect({ code: 'BCdTitleOfTechPost', value: 'titleoftechpostno', text: 'titleoftechpost' }); | $('#PostRank').lrDataSourceSelect({ code: 'BCdTitleOfTechPost', value: 'titleoftechpostno', text: 'titleoftechpost' }); | ||||
$('#Photo').lrUploader(); | $('#Photo').lrUploader(); | ||||
$('#HighestRecord').lrDataSourceSelect({ code: 'BCdCultureDegree', value: 'culturedegreeno', text: 'culturedegree' }); | $('#HighestRecord').lrDataSourceSelect({ code: 'BCdCultureDegree', value: 'culturedegreeno', text: 'culturedegree' }); | ||||
@@ -11,10 +11,10 @@ | |||||
<div class="lr-form-item-title">部门</div> | <div class="lr-form-item-title">部门</div> | ||||
<div id="F_DepartmentId"></div> | <div id="F_DepartmentId"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="EmpInfo"> | |||||
@*<div class="col-xs-12 lr-form-item" data-table="EmpInfo"> | |||||
<div class="lr-form-item-title">系部</div> | <div class="lr-form-item-title">系部</div> | ||||
<div id="DeptNo"></div> | <div id="DeptNo"></div> | ||||
</div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
@@ -35,7 +35,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}); | }); | ||||
$('#F_DepartmentId').lrselect(); | $('#F_DepartmentId').lrselect(); | ||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
//$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
@@ -22,10 +22,10 @@ | |||||
<div class="lr-form-item-title">联系电话</div> | <div class="lr-form-item-title">联系电话</div> | ||||
<input id="mobile" type="text" class="form-control" /> | <input id="mobile" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-6 lr-form-item"> | |||||
@*<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | <div class="lr-form-item-title">系部</div> | ||||
<div id="DeptNo"></div> | <div id="DeptNo"></div> | ||||
</div> | |||||
</div>*@ | |||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">部门</div> | <div class="lr-form-item-title">部门</div> | ||||
<div id="F_DepartmentId"></div> | <div id="F_DepartmentId"></div> | ||||
@@ -16,7 +16,7 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 280, 400); | }, 280, 400); | ||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
//$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | |||||
$('#ProvinceNo').lrDataSourceSelect({ | $('#ProvinceNo').lrDataSourceSelect({ | ||||
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', | ||||
select: function (item) { | select: function (item) { | ||||
@@ -364,19 +364,19 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "系部", name: "DeptNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||||
key: value, | |||||
keyId: 'deptno', | |||||
callback: function (_data) { | |||||
callback(_data['deptname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
//{ | |||||
// label: "系部", name: "DeptNo", width: 100, align: "left", | |||||
// formatterAsync: function (callback, value, row, op, $cell) { | |||||
// learun.clientdata.getAsync('custmerData', { | |||||
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||||
// key: value, | |||||
// keyId: 'deptno', | |||||
// callback: function (_data) { | |||||
// callback(_data['deptname']); | |||||
// } | |||||
// }); | |||||
// } | |||||
//}, | |||||
{ | { | ||||
label: "性别", name: "GenderNo", width: 80, align: "left", | label: "性别", name: "GenderNo", width: 80, align: "left", | ||||
formatter: function (cellvalue) { | formatter: function (cellvalue) { | ||||
@@ -36,7 +36,7 @@ | |||||
<td>政治面貌</td> | <td>政治面貌</td> | ||||
<td>@Model.PartyFaceNo</td> | <td>@Model.PartyFaceNo</td> | ||||
<td>入党时间</td> | <td>入党时间</td> | ||||
<td>@(Model.JoinPartyTime.HasValue ? Model.JoinPartyTime.Value.ToShortDateString().Replace("/", "-") : "")</td> | |||||
<td>@(Model.JoinPartyTime != "" && Model.JoinPartyTime != null ? Model.JoinPartyTime.Replace("/", "-") : "")</td> | |||||
<td>最高学历(学位)</td> | <td>最高学历(学位)</td> | ||||
<td>@Model.HighestRecord</td> | <td>@Model.HighestRecord</td> | ||||
</tr> | </tr> | ||||
@@ -7,21 +7,25 @@ | |||||
<div class="lr-form-item-title">教师姓名<font face="宋体">*</font></div> | <div class="lr-form-item-title">教师姓名<font face="宋体">*</font></div> | ||||
<div id="TCName" isvalid="yes" checkexpession="NotNull"></div> | <div id="TCName" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||||
<div class="lr-form-item-title">资格种类</div> | |||||
<div id="TCTypeID" ></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||||
<div class="lr-form-item-title">任教学科<font face="宋体">*</font></div> | |||||
<input id="TCClass" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||||
<div class="lr-form-item-title">证书名称<font face="宋体">*</font></div> | |||||
<input id="TCType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||||
<div class="lr-form-item-title">证书编号<font face="宋体">*</font></div> | <div class="lr-form-item-title">证书编号<font face="宋体">*</font></div> | ||||
<input id="TCCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="TCCode" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||||
<div class="lr-form-item-title">资格种类</div> | |||||
<div id="TCTypeID"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||||
<div class="lr-form-item-title">任教学科</div> | |||||
<input id="TCClass" type="text" class="form-control"/> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | |||||
<div class="lr-form-item-title">取得时间<font face="宋体">*</font></div> | <div class="lr-form-item-title">取得时间<font face="宋体">*</font></div> | ||||
<input id="TCTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#TCTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
<input id="TCTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#TCTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js") | @Html.AppendJsFile("/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js") |
@@ -16,11 +16,12 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); | $('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); | ||||
$('#TCName').lrformselect({ | |||||
layerUrl: top.$.rootUrl + '/LR_OrganizationModule/User/SelectOnlyForm', | |||||
layerUrlW: 400, | |||||
layerUrlH: 300, | |||||
dataUrl: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByUserIds' | |||||
$('#TCName').lrselect({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo', | |||||
param: { strWhere: "1=1 " }, | |||||
value: "empid", | |||||
text: "empname" | |||||
}); | }); | ||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
@@ -7,8 +7,26 @@ | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | <div class="lr-layout-wrap lr-layout-wrap-notitle "> | ||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | |||||
@*<div class="lr-layout-tool-item"> | |||||
<div id="datesearch"></div> | <div id="datesearch"></div> | ||||
</div>*@ | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="multiple_condition_query"> | |||||
<div class="lr-query-formcontent"> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">教师姓名</div> | |||||
<div id="TCName"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">证书名称</div> | |||||
<input id="TCType" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">资格种类</div> | |||||
<div id="TCTypeID"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="lr-layout-tool-right"> | <div class="lr-layout-tool-right"> | ||||
@@ -15,6 +15,9 @@ var bootstrap = function ($, learun) { | |||||
page.bind(); | page.bind(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||||
page.search(queryJson); | |||||
}, 220, 400); | |||||
// 时间搜索框 | // 时间搜索框 | ||||
$('#datesearch').lrdate({ | $('#datesearch').lrdate({ | ||||
dfdata: [ | dfdata: [ | ||||
@@ -42,6 +45,14 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
} | } | ||||
}); | }); | ||||
$('#TCName').lrselect({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=EmpInfo', | |||||
param: { strWhere: "1=1 " }, | |||||
value: "empid", | |||||
text: "empname" | |||||
}); | |||||
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -101,14 +112,18 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "教师姓名", name: "TCName", width: 100, align: "left", | label: "教师姓名", name: "TCName", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('user', { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo', | |||||
key: value, | key: value, | ||||
keyId: 'empid', | |||||
callback: function (_data) { | callback: function (_data) { | ||||
callback(_data.name); | |||||
callback(_data['empname']); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "证书名称", name: "TCType", width: 150, align: "left" }, | |||||
{ label: "证书编号", name: "TCCode", width: 150, align: "left" }, | |||||
{ | { | ||||
label: "资格种类", name: "TCTypeID", width: 100, align: "left", | label: "资格种类", name: "TCTypeID", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
@@ -122,17 +137,18 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
{ label: "任教学科", name: "TCClass", width: 100, align: "left" }, | { label: "任教学科", name: "TCClass", width: 100, align: "left" }, | ||||
{ label: "证书编号", name: "TCCode", width: 100, align: "left" }, | |||||
{ label: "取得时间", name: "TCTime", width: 100, align: "left" }, | { label: "取得时间", name: "TCTime", width: 100, align: "left" }, | ||||
], | ], | ||||
mainId: 'TCID', | mainId: 'TCID', | ||||
isPage: true | |||||
isPage: true, | |||||
sidx:'TCTime desc' | |||||
}); | }); | ||||
page.search(); | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.StartTime = startTime; | |||||
param.EndTime = endTime; | |||||
//param.StartTime = startTime; | |||||
//param.EndTime = endTime; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
@@ -13,12 +13,12 @@ | |||||
<add name="CollegeMIS" connectionString="Server=112.45.152.8;Initial Catalog=NewCollegeMIS;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | <add name="CollegeMIS" connectionString="Server=112.45.152.8;Initial Catalog=NewCollegeMIS;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | ||||
<add name="hangfireString" connectionString="Server=112.45.152.8;Initial Catalog=HangFire;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" />--> | <add name="hangfireString" connectionString="Server=112.45.152.8;Initial Catalog=HangFire;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" />--> | ||||
<!--demo.quanjiang.com--> | <!--demo.quanjiang.com--> | ||||
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | <add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | ||||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | <add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | ||||
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | <!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | ||||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | <add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | ||||
@@ -2,8 +2,8 @@ | |||||
<connectionStrings> | <connectionStrings> | ||||
<!--<add name="BaseDb" connectionString="Server=192.168.2.126;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" /> | <!--<add name="BaseDb" connectionString="Server=192.168.2.126;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" /> | ||||
<add name="CollegeMIS" connectionString="Server=192.168.2.126;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" />--> | <add name="CollegeMIS" connectionString="Server=192.168.2.126;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" />--> | ||||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | |||||
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<!--金隅--> | <!--金隅--> | ||||
<!--<add name="BaseDb" connectionString="Server=192.168.100.225;Initial Catalog=adms7ultimate2;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" /> | <!--<add name="BaseDb" connectionString="Server=192.168.100.225;Initial Catalog=adms7ultimate2;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" /> | ||||
@@ -11,9 +11,9 @@ | |||||
<add name="hangfireString" connectionString="Server=192.168.100.225;Initial Catalog=Hangfire;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" />--> | <add name="hangfireString" connectionString="Server=192.168.100.225;Initial Catalog=Hangfire;User ID=sa;Password=Jykj@2019" providerName="System.Data.SqlClient" />--> | ||||
<!--<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | <!--<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | ||||
<!--demo.quanjiang.com--> | <!--demo.quanjiang.com--> | ||||
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | <add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | ||||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | |||||
<!--西昌--> | <!--西昌--> | ||||
<!--<add name="BaseDb" connectionString="Server=112.45.152.8;Initial Catalog=adms7ultimate2;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | <!--<add name="BaseDb" connectionString="Server=112.45.152.8;Initial Catalog=adms7ultimate2;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | ||||
<add name="CollegeMIS" connectionString="Server=112.45.152.8;Initial Catalog=NewCollegeMIS;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | <add name="CollegeMIS" connectionString="Server=112.45.152.8;Initial Catalog=NewCollegeMIS;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | ||||
@@ -57,11 +57,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("mobile", "%" + queryParam["mobile"].ToString() + "%", DbType.String); | dp.Add("mobile", "%" + queryParam["mobile"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.mobile Like @mobile "); | strSql.Append(" AND t.mobile Like @mobile "); | ||||
} | } | ||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
} | |||||
//if (!queryParam["DeptNo"].IsEmpty()) | |||||
//{ | |||||
// dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | |||||
// strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
//} | |||||
if (!queryParam["ProvinceNo"].IsEmpty()) | if (!queryParam["ProvinceNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("ProvinceNo", queryParam["ProvinceNo"].ToString(), DbType.String); | dp.Add("ProvinceNo", queryParam["ProvinceNo"].ToString(), DbType.String); | ||||
@@ -190,25 +190,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
try | try | ||||
{ | { | ||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | |||||
strSql.Append(@" | |||||
t.EmpId, | |||||
t.EmpNo, | |||||
t.EmpName, | |||||
t.F_CompanyId, | |||||
t.F_DepartmentId, | |||||
t.DeptNo, | |||||
t.GenderNo, | |||||
t.Photo, | |||||
t.Birthday, | |||||
t.NationalityNo, | |||||
t.PartyFaceNo, | |||||
t.IdentityCardNo, | |||||
t.CultureDegreeNo, | |||||
t.DegreeNo, | |||||
t.mobile, | |||||
t.EMail | |||||
"); | |||||
strSql.Append("SELECT t.* "); | |||||
strSql.Append(" FROM EmpInfo t "); | strSql.Append(" FROM EmpInfo t "); | ||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
@@ -740,10 +722,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
model.F_DepartmentId = entity.F_DepartmentId; | model.F_DepartmentId = entity.F_DepartmentId; | ||||
} | } | ||||
if (!string.IsNullOrEmpty(entity.DeptNo)) | |||||
{ | |||||
model.DeptNo = entity.DeptNo; | |||||
} | |||||
//if (!string.IsNullOrEmpty(entity.DeptNo)) | |||||
//{ | |||||
// model.DeptNo = entity.DeptNo; | |||||
//} | |||||
db.Update(model); | db.Update(model); | ||||
} | } | ||||
} | } | ||||
@@ -762,10 +744,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
model.F_DepartmentId = entity.F_DepartmentId; | model.F_DepartmentId = entity.F_DepartmentId; | ||||
} | } | ||||
if (!string.IsNullOrEmpty(entity.DeptNo)) | |||||
{ | |||||
model.DeptNo = entity.DeptNo; | |||||
} | |||||
//if (!string.IsNullOrEmpty(entity.DeptNo)) | |||||
//{ | |||||
// model.DeptNo = entity.DeptNo; | |||||
//} | |||||
db.Update(model); | db.Update(model); | ||||
} | } | ||||
} | } | ||||
@@ -20,32 +20,32 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
[Column("TCID")] | [Column("TCID")] | ||||
public string TCID { get; set; } | public string TCID { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// TCName | |||||
/// 教师empid | |||||
/// </summary> | /// </summary> | ||||
[Column("TCNAME")] | [Column("TCNAME")] | ||||
public string TCName { get; set; } | public string TCName { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// TCType | |||||
/// 证书名称 | |||||
/// </summary> | /// </summary> | ||||
[Column("TCTYPE")] | [Column("TCTYPE")] | ||||
public string TCType { get; set; } | public string TCType { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// TCTypeID | |||||
/// 资格种类 | |||||
/// </summary> | /// </summary> | ||||
[Column("TCTYPEID")] | [Column("TCTYPEID")] | ||||
public int? TCTypeID { get; set; } | |||||
public string TCTypeID { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// TCClass | |||||
/// 任教学科 | |||||
/// </summary> | /// </summary> | ||||
[Column("TCCLASS")] | [Column("TCCLASS")] | ||||
public string TCClass { get; set; } | public string TCClass { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// TCCode | |||||
/// 证书编号 | |||||
/// </summary> | /// </summary> | ||||
[Column("TCCODE")] | [Column("TCCODE")] | ||||
public string TCCode { get; set; } | public string TCCode { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// TCTime | |||||
/// 取得时间 | |||||
/// </summary> | /// </summary> | ||||
[Column("TCTIME")] | [Column("TCTIME")] | ||||
public DateTime? TCTime { get; set; } | public DateTime? TCTime { get; set; } | ||||
@@ -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.TCID, | |||||
t.TCName, | |||||
t.TCTypeID, | |||||
t.TCClass, | |||||
t.TCCode, | |||||
t.TCTime | |||||
"); | |||||
strSql.Append("SELECT t.* "); | |||||
strSql.Append(" FROM TeacherCertificate t "); | strSql.Append(" FROM TeacherCertificate t "); | ||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
@@ -49,6 +41,21 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | ||||
strSql.Append(" AND ( t.TCTime >= @startTime AND t.TCTime <= @endTime ) "); | strSql.Append(" AND ( t.TCTime >= @startTime AND t.TCTime <= @endTime ) "); | ||||
} | } | ||||
if (!queryParam["TCName"].IsEmpty()) | |||||
{ | |||||
dp.Add("TCName", queryParam["TCName"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.TCName=@TCName "); | |||||
} | |||||
if (!queryParam["TCType"].IsEmpty()) | |||||
{ | |||||
dp.Add("TCType", '%' + queryParam["TCType"].ToString() + '%', DbType.String); | |||||
strSql.Append(" AND t.TCType like @TCType "); | |||||
} | |||||
if (!queryParam["TCTypeID"].IsEmpty()) | |||||
{ | |||||
dp.Add("TCTypeID", queryParam["TCTypeID"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.TCTypeID=@TCTypeID "); | |||||
} | |||||
return this.BaseRepository().FindList<TeacherCertificateEntity>(strSql.ToString(),dp, pagination); | return this.BaseRepository().FindList<TeacherCertificateEntity>(strSql.ToString(),dp, pagination); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||