Browse Source

北京北汽订单创建要货看板界面加载超时修改

master
lvzb 1 year ago
parent
commit
76501ac21e
  1. 6
      .gitignore
  2. 2
      北京北汽/Controller/CK.SCP.Controller.csproj
  3. 26
      北京北汽/Controller/SCP_PO_CONTROLLER.cs
  4. BIN
      北京北汽/DLL/Z.EntityFramework.Extensions.dll
  5. 2
      北京北汽/SCP/Views/PlanData/SCP_PO_CREATE_ASK.aspx.cs

6
.gitignore

@ -0,0 +1,6 @@
################################################################################
# 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。
################################################################################
/.vs/北京北汽/v16/.suo
/.vs/VSWorkspaceState.json

2
北京北汽/Controller/CK.SCP.Controller.csproj

@ -54,7 +54,7 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Z.EntityFramework.Extensions">
<HintPath>..\SCP\bin\Z.EntityFramework.Extensions.dll</HintPath>
<HintPath>..\DLL\Z.EntityFramework.Extensions.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>

26
北京北汽/Controller/SCP_PO_CONTROLLER.cs

@ -270,6 +270,32 @@ namespace CK.SCP.Controller
}
return p_list;
}
public static List<V_TB_PO_DETAIL> LOAD_PO_DETAIL_SUM_ASK(List<V_TB_PO_DETAIL> p_list)
{
using (ScpEntities db = EntitiesFactory.CreateScpInstance())
{
if (p_list.Count > 0)
{
//var _detail = p_list[0];
foreach (V_TB_PO_DETAIL _detail in p_list)
{
var _ask = db.TB_ASK_DETAIL.Where(p => p.PoBillNum == _detail.PoBillNum && p.IsDeleted == false).GroupBy(p => new { p.PoBillNum, p.PoLine, p.PartCode }).Select(p => new { AskSum = p.Sum(itm => itm.AskQty), PoLine = p.Key.PoLine, PoBillNum = p.Key.PoBillNum, PartCode = p.Key.PartCode });
_ask.ToList().ForEach(itm =>
{
if (_detail.PoBillNum == itm.PoBillNum && _detail.PoLine == itm.PoLine && _detail.PartCode == itm.PartCode)
{
_detail.TempQty = itm.AskSum;
}
});
}
}
}
return p_list;
}
public static ResultObject<bool> Save_TB_PO_STATE(List<string> p_list, PoState p_state)
{
ResultObject<bool> _ret = new ResultObject<bool>();

BIN
北京北汽/DLL/Z.EntityFramework.Extensions.dll

Binary file not shown.

2
北京北汽/SCP/Views/PlanData/SCP_PO_CREATE_ASK.aspx.cs

@ -119,7 +119,7 @@ namespace SCP.PlanData
}
this.Grid_V_TB_PO_DETAIL.RecordCount = ret.Count();
var list = SortAndPage<V_TB_PO_DETAIL>(ret, Grid_V_TB_PO_DETAIL);
var _ls= SCP_CONTRACT_CONTROLLER.GET_CONTRACT_PRICE_LIST(SCP_PO_CONTROLLER.LOAD_PO_DETAIL_SUM(list.ToList()));
var _ls= SCP_CONTRACT_CONTROLLER.GET_CONTRACT_PRICE_LIST(SCP_PO_CONTROLLER.LOAD_PO_DETAIL_SUM_ASK(list.ToList()));
if (qadOrder != null)
{
if (qadOrder.ModType == (int)BillModType.Non_Contract)

Loading…
Cancel
Save