Browse Source

要货未完成查询优化

master
qian 21 hours ago
parent
commit
292f5018b4
  1. 6
      北京北汽/Controller/SCP_ASK_CONTROLLER.cs
  2. 4
      北京北汽/SCP/Views/PlanData/SCP_INCOMPLETE_ASK.aspx

6
北京北汽/Controller/SCP_ASK_CONTROLLER.cs

@ -640,8 +640,10 @@ namespace CK.SCP.Controller
if (p_list.Count > 0)
{
//var _detail = p_list[0];
var asklist = p_list.Select(q => q.AskBillNum).ToList();
var asklist = p_list.Select(q => q.AskBillNum).Distinct().ToList();
var arvdetail = db.TB_ARRIVE_DETAIL.Where(p => asklist.Contains(p.Remark) && p.IsDeleted == false && p.State == (int)ArriveState.OK && p.BillType == 3).ToList();
if (arvdetail.Count() > 0)
{
foreach (V_TB_INCOMPLETE_ASK _detail in p_list)
{
@ -657,6 +659,8 @@ namespace CK.SCP.Controller
}
}
}
return p_list;
}
/// <summary>

4
北京北汽/SCP/Views/PlanData/SCP_INCOMPLETE_ASK.aspx

@ -110,8 +110,8 @@
<f:BoundField runat="server" HeaderText="未发货数量" ColumnID="" DataField="Number" />
<f:BoundField runat="server" HeaderText="计划员" ColumnID="" DataField="Buyer" />
<f:BoundField Width = "100px" DataField = "BeginTime" DataFormatString = "{0:yyyy-MM-dd}" HeaderText = "订货日期" />
<f:BoundField Width = "100px" DataField = "EndTime" DataFormatString = "{0:yyyy-MM-dd}" HeaderText = "到货日期" />
<f:BoundField Width = "100px" DataField = "BeginTime" HeaderText = "订货日期" />
<f:BoundField Width = "100px" DataField = "EndTime" HeaderText = "到货日期" />
<f:BoundField Width = "100px" DataField = "ValidityDays" HeaderText = "距到货日期(天)" />
</Columns>
</f:Grid>

Loading…
Cancel
Save