Commit 80c28192 authored by 朱天博's avatar 朱天博

1.车间看板接口优化

parent 3ce33ce1
...@@ -78,8 +78,7 @@ namespace FTT.Board.Controllers.API ...@@ -78,8 +78,7 @@ namespace FTT.Board.Controllers.API
{ {
WorkTeamID = value.FactoryWorkShopTeamID, WorkTeamID = value.FactoryWorkShopTeamID,
PageIndex = value.PageIndex, PageIndex = value.PageIndex,
PageSize = value.PageSize, PageSize = value.PageSize
PageIndexInspection = value.PageIndexInspection
}, true); }, true);
model.UserWageRanking = Table2Model.ToModelList<UserWageRanking>(dataSet.Tables[0]); model.UserWageRanking = Table2Model.ToModelList<UserWageRanking>(dataSet.Tables[0]);
...@@ -90,5 +89,21 @@ namespace FTT.Board.Controllers.API ...@@ -90,5 +89,21 @@ namespace FTT.Board.Controllers.API
model.DayYield = (int)dataSet.Tables[5].Rows[0][0]; model.DayYield = (int)dataSet.Tables[5].Rows[0][0];
return model.ToString(); return model.ToString();
} }
public string PostCXInspection(FactoryBoardRepuest value)
{
List<ConstantlyInspection> model = new List<ConstantlyInspection>();
DataSet dataSet = Dbo.Create(ModuleName).GetDataSet("[SP_MES_FactoryWageBoardCX]", new
{
WorkTeamID = value.FactoryWorkShopTeamID,
PageIndex = value.PageIndex,
PageSize = value.PageSize
}, true);
model = Table2Model.ToModelList<ConstantlyInspection>(dataSet.Tables[1]);
JsonSerializerSettings jsSettings = new JsonSerializerSettings();
jsSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
return JsonConvert.SerializeObject(model, jsSettings).ToString();
}
} }
} }
\ No newline at end of file
...@@ -21,12 +21,6 @@ namespace FTT.Board.Models ...@@ -21,12 +21,6 @@ namespace FTT.Board.Models
/// </summary> /// </summary>
public int PageIndex { get; set; } public int PageIndex { get; set; }
/// <summary>
/// 页码品检用
/// </summary>
public int PageIndexInspection { get; set; }
/// <summary> /// <summary>
/// 条数 /// 条数
/// </summary> /// </summary>
......
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