@@ -111,7 +111,9 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
[AjaxOnly] | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
paginationobj.sidx = "Status"; | |||
var data = repairReportStudentIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
@@ -111,6 +111,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||
public ActionResult GetPageList(string pagination, string queryJson) | |||
{ | |||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||
paginationobj.sidx = "Status"; | |||
var data = repairReportTeacherIBLL.GetPageList(paginationobj, queryJson); | |||
var jsonData = new | |||
{ | |||
@@ -105,7 +105,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.DeptNo ? data.DeptNo:""); | |||
tableHtml += (data.DeptNo_ ? data.DeptNo_:""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += ' <p class="MsoNormal" align="center" style="text-align:center">'; | |||
@@ -114,7 +114,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.MajorNo ? data.MajorNo:""); | |||
tableHtml += (data.MajorNo_ ? data.MajorNo_:""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' </tr>'; | |||
tableHtml += ' <tr>'; | |||
@@ -125,7 +125,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.TeachClassNo ? data.TeachClassNo:""); | |||
tableHtml += (data.TeachClassNo_ ? data.TeachClassNo_:""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += ' <p class="MsoNormal" align="center" style="text-align:center">'; | |||
@@ -156,7 +156,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td colspan="3" valign="top" style="width:363.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.ServiceType ? data.ServiceType:""); | |||
tableHtml += (data.ServiceType_ ? data.ServiceType_:""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' </tr>'; | |||
tableHtml += ' <tr style="mso-yfti-irow:6;height:96.6pt">'; | |||
@@ -231,7 +231,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.IsPay == 1 ? "是" : "否"); | |||
tableHtml += (title.indexOf("结束") >= 0 ? (data.IsPay == 1 ? "是" : "否") : ""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += ' <p class="MsoNormal">'; | |||
@@ -240,7 +240,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left: none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.Amount ? data.Amount : ""); | |||
tableHtml += (title.indexOf("结束") >= 0 ? (data.Amount ? data.Amount : "") : ""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' </tr>'; | |||
tableHtml += ' <tr style="mso-yfti-irow:13;mso-yfti-lastrow:yes;height:67.0pt">'; | |||
@@ -128,28 +128,28 @@ var bootstrap = function ($, learun) { | |||
key: data.ServiceType, | |||
code: 'repairtype', | |||
callback: function (_data) { | |||
data.ServiceType = _data.text | |||
data.ServiceType_ = _data.text | |||
//班级 | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | |||
key: data.TeachClassNo, | |||
keyId: 'classno', | |||
callback: function (_data1) { | |||
data.TeachClassNo = _data1['classname'] | |||
data.TeachClassNo_ = _data1['classname'] | |||
//专业 | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: data.MajorNo, | |||
keyId: 'majorno', | |||
callback: function (_data2) { | |||
data.MajorNo = _data2['majorname'] | |||
data.MajorNo_ = _data2['majorname'] | |||
//系部 | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: data.DeptNo, | |||
keyId: 'deptno', | |||
callback: function (_data3) { | |||
data.DeptNo = _data3['deptname'] | |||
data.DeptNo_ = _data3['deptname'] | |||
prints(data, "preview", "学生报修维修单(待维修)"); | |||
} | |||
}); | |||
@@ -178,28 +178,28 @@ var bootstrap = function ($, learun) { | |||
key: data.ServiceType, | |||
code: 'repairtype', | |||
callback: function (_data) { | |||
data.ServiceType = _data.text | |||
data.ServiceType_ = _data.text | |||
//班级 | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', | |||
key: data.TeachClassNo, | |||
keyId: 'classno', | |||
callback: function (_data1) { | |||
data.TeachClassNo = _data1['classname'] | |||
data.TeachClassNo_ = _data1['classname'] | |||
//专业 | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', | |||
key: data.MajorNo, | |||
keyId: 'majorno', | |||
callback: function (_data2) { | |||
data.MajorNo = _data2['majorname'] | |||
data.MajorNo_ = _data2['majorname'] | |||
//系部 | |||
learun.clientdata.getAsync('custmerData', { | |||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', | |||
key: data.DeptNo, | |||
keyId: 'deptno', | |||
callback: function (_data3) { | |||
data.DeptNo = _data3['deptname'] | |||
data.DeptNo_ = _data3['deptname'] | |||
prints(selectedRow, "preview", "学生报修单(结束维修)"); | |||
} | |||
}); | |||
@@ -142,7 +142,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td colspan="3" valign="top" style="width:363.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.ServiceType ? data.ServiceType : ""); | |||
tableHtml += (data.ServiceType_ ? data.ServiceType_ : ""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' </tr>'; | |||
tableHtml += ' <tr style="mso-yfti-irow:6;height:96.6pt">'; | |||
@@ -217,7 +217,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.IsPay==1 ? "是" : "否"); | |||
tableHtml += (title.indexOf("结束")>=0?(data.IsPay==1 ? "是" : "否"):""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += ' <p class="MsoNormal">'; | |||
@@ -226,7 +226,7 @@ | |||
tableHtml += ' </p>'; | |||
tableHtml += ' </td>'; | |||
tableHtml += ' <td valign="top" style="border-top:none;border-left: none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt">'; | |||
tableHtml += (data.Amount ? data.Amount : ""); | |||
tableHtml += (title.indexOf("结束") >= 0 ? (data.Amount ? data.Amount : "") : ""); | |||
tableHtml += ' </td>'; | |||
tableHtml += ' </tr>'; | |||
tableHtml += ' <tr style="mso-yfti-irow:13;mso-yfti-lastrow:yes;height:67.0pt">'; | |||
@@ -125,7 +125,7 @@ var bootstrap = function ($, learun) { | |||
key: data.ServiceType, | |||
code: 'repairtype', | |||
callback: function (_data) { | |||
data.ServiceType = _data.text | |||
data.ServiceType_ = _data.text | |||
prints(data, "preview", "教师报修维修单(待维修)"); | |||
//callback(_data.text); | |||
} | |||
@@ -146,7 +146,7 @@ var bootstrap = function ($, learun) { | |||
key: data.ServiceType, | |||
code: 'repairtype', | |||
callback: function (_data) { | |||
data.ServiceType = _data.text | |||
data.ServiceType_ = _data.text | |||
prints(data, "preview", "教师报修单(结束维修)"); | |||
//callback(_data.text); | |||
} | |||
@@ -64,6 +64,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||
strSql.Append(" AND t.Creator = '" + userLogin.userId + "' "); | |||
//} | |||
} | |||
//strSql.Append(" order by t.createtime desc"); | |||
return this.BaseRepository("CollegeMIS").FindList<RepairReport_TeacherEntity>(strSql.ToString(), dp, pagination); | |||
} | |||
catch (Exception ex) | |||