Commit 2325478c authored by 黄奎's avatar 黄奎

页面修改

parent 9749668e
...@@ -196,9 +196,6 @@ namespace Edu.Model.ViewModel.Contract ...@@ -196,9 +196,6 @@ namespace Edu.Model.ViewModel.Contract
} }
} }
/// <summary> /// <summary>
/// 学员生日字符串 /// 学员生日字符串
/// </summary> /// </summary>
...@@ -234,7 +231,6 @@ namespace Edu.Model.ViewModel.Contract ...@@ -234,7 +231,6 @@ namespace Edu.Model.ViewModel.Contract
} }
} }
/// <summary> /// <summary>
/// 第二期-支付日期 /// 第二期-支付日期
/// </summary> /// </summary>
...@@ -518,10 +514,19 @@ namespace Edu.Model.ViewModel.Contract ...@@ -518,10 +514,19 @@ namespace Edu.Model.ViewModel.Contract
/// </summary> /// </summary>
public string SchoolStatusStr { get; set; } public string SchoolStatusStr { get; set; }
/// <summary> /// <summary>
/// 行政审核状态 /// 行政审核状态
/// </summary> /// </summary>
public string AdminStatusStr { get; set; } public string AdminStatusStr { get; set; }
/// <summary>
/// 是否查询所有
/// </summary>
public int IsQueryAll { get; set; }
/// <summary>
/// 查询合同人员
/// </summary>
public int QCreateBy { get; set; }
} }
} }
...@@ -91,12 +91,20 @@ namespace Edu.Repository.Contract ...@@ -91,12 +91,20 @@ namespace Edu.Repository.Contract
where += $@" AND {nameof(RB_Education_Contract_ViewModel.Status)} NOT IN(0,4) "; where += $@" AND {nameof(RB_Education_Contract_ViewModel.Status)} NOT IN(0,4) ";
} }
} }
if (demodel.IsQueryAll == 1)
{
if (demodel.QCreateBy > 0)
{
where += $@" AND {nameof(RB_Education_Contract_ViewModel.CreateBy)} ={demodel.QCreateBy}";
}
}
else else
{ {
if (demodel.CreateBy > 0) if (demodel.CreateBy > 0)
{ {
where += $@" AND {nameof(RB_Education_Contract_ViewModel.CreateBy)} ={demodel.CreateBy}"; where += $@" AND {nameof(RB_Education_Contract_ViewModel.CreateBy)} ={demodel.CreateBy}";
} }
}
if (demodel.Status >= 0) if (demodel.Status >= 0)
{ {
if (demodel.Status == 5) if (demodel.Status == 5)
...@@ -108,7 +116,6 @@ namespace Edu.Repository.Contract ...@@ -108,7 +116,6 @@ namespace Edu.Repository.Contract
where += $@" AND {nameof(RB_Education_Contract_ViewModel.Status)} ={demodel.Status}"; where += $@" AND {nameof(RB_Education_Contract_ViewModel.Status)} ={demodel.Status}";
} }
} }
}
string sql = $@" SELECT * FROM RB_Education_Contract WHERE {where} ORDER BY Id DESC "; string sql = $@" SELECT * FROM RB_Education_Contract WHERE {where} ORDER BY Id DESC ";
return GetPage<RB_Education_Contract_ViewModel>(pageIndex, pageSize, out rowsCount, sql, parameters).ToList(); return GetPage<RB_Education_Contract_ViewModel>(pageIndex, pageSize, out rowsCount, sql, parameters).ToList();
} }
......
...@@ -108,10 +108,15 @@ namespace Edu.WebApi.Controllers.Course ...@@ -108,10 +108,15 @@ namespace Edu.WebApi.Controllers.Course
CType = (ContractTypeEnum)base.ParmJObj.GetInt("CType"), CType = (ContractTypeEnum)base.ParmJObj.GetInt("CType"),
Status = base.ParmJObj.GetInt("Status"), Status = base.ParmJObj.GetInt("Status"),
StudentName = base.ParmJObj.GetStringValue("StudentName"), StudentName = base.ParmJObj.GetStringValue("StudentName"),
IsAduit = base.ParmJObj.GetInt("IsAduit") IsAduit = base.ParmJObj.GetInt("IsAduit"),
IsQueryAll=base.ParmJObj.GetInt("IsQueryAll"),
QCreateBy=base.ParmJObj.GetInt("QCreateBy"),
}; };
dmodel.Group_Id = userInfo.Group_Id; dmodel.Group_Id = userInfo.Group_Id;
if (dmodel.IsQueryAll == 0)
{
dmodel.CreateBy = userInfo.Id; dmodel.CreateBy = userInfo.Id;
}
var list = educationContractModule.GetEducationContractPageListModule_V3(pageModel.PageIndex, pageModel.PageSize, out long count, dmodel); var list = educationContractModule.GetEducationContractPageListModule_V3(pageModel.PageIndex, pageModel.PageSize, out long count, dmodel);
pageModel.Count = Convert.ToInt32(count); pageModel.Count = Convert.ToInt32(count);
pageModel.PageData = list.Select(x => new pageModel.PageData = list.Select(x => new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment