Browse Source

看板数据源及页面显示调整

master
Juj 7 months ago
parent
commit
47a768eb18
  1. 31
      KanBan/NFine.Application/SRM/WatchPanelApp.cs
  2. 9
      KanBan/NFine.Web/Areas/SRM/Views/WatchPanel/PanelWIPZhiXingDa.cshtml

31
KanBan/NFine.Application/SRM/WatchPanelApp.cs

@ -1342,12 +1342,16 @@ Convert(decimal(18,1),isnull(QQ.COMQTY,0)) 完成数量,
string SqlText = "";
SqlText = @"
select SDNCode as '' ,ArriveDate
,case when getdate()-ArriveDate>3 then 'red' when getdate()-ArriveDate>2 and getdate()-ArriveDate<3 then 'yellow' when getdate()-ArriveDate>1 and getdate()-ArriveDate<2 then 'green' when getdate()-ArriveDate<=0 then 'white' end Status
,cast(getdate()-ArriveDate as int) as ''
,case when EATTRIBUTE3='0' then '' when EATTRIBUTE3='1' then '' when EATTRIBUTE3='2' then '' end as ''
,CreatePerson as ''
from dbo.ICSSDN where Type='1' and Status<>'3' and Quantity-SDNQuantity>0 group by SDNCode,ArriveDate,EATTRIBUTE3,CreatePerson
select
a.SDNCode as '' ,ArriveDate
,cast(getdate()-a.ArriveDate as int) as ''
,case when ISNULL(a.EATTRIBUTE3,'0')='0' then '' when ISNULL(a.EATTRIBUTE3,'0')='1' then '' when ISNULL(a.EATTRIBUTE3,'0')='2' then '' end as ''
,a.CreatePerson as ''
from dbo.ICSSDN a
left join [UFDATA_001_2021].dbo.DispatchLists dls on dls.DLID = a.SDNID and dls.irowno = a.Sequence
where a.Type='1' and a.Status<>'3' and a.Quantity-a.SDNQuantity>0
and a.SDNQuantity + dls.fOutQuantity <> a.Quantity
group by a.SDNCode,a.ArriveDate,a.EATTRIBUTE3,a.CreatePerson
";
@ -1531,12 +1535,15 @@ cast(sum(case when a.WarehouseCode='002' then a.Quantity/isnull(b.EATTRIBUTE1,1)
select count(*) as CPFH
into #Temp1
from (select
SDNCode as '' ,ArriveDate
,case when getdate()-ArriveDate>3 then 'red' when getdate()-ArriveDate>2 and getdate()-ArriveDate<3 then 'yellow' when getdate()-ArriveDate>1 and getdate()-ArriveDate<2 then 'green' when getdate()-ArriveDate<=0 then 'white' end Status
,cast(getdate()-ArriveDate as int) as ''
,case when EATTRIBUTE3='0' then '' when EATTRIBUTE3='1' then '' when EATTRIBUTE3='2' then '' end as ''
,CreatePerson as ''
from dbo.ICSSDN where Type='1' and Status<>'3' and Quantity-SDNQuantity>0 group by SDNCode,ArriveDate,EATTRIBUTE3,CreatePerson
a.SDNCode as '' ,ArriveDate
,cast(getdate()-a.ArriveDate as int) as ''
,case when ISNULL(a.EATTRIBUTE3,'0')='0' then '' when ISNULL(a.EATTRIBUTE3,'0')='1' then '' when ISNULL(a.EATTRIBUTE3,'0')='2' then '' end as ''
,a.CreatePerson as ''
from dbo.ICSSDN a
left join [UFDATA_001_2021].dbo.DispatchLists dls on dls.DLID = a.SDNID and dls.irowno = a.Sequence
where a.Type='1' and a.Status<>'3' and a.Quantity-a.SDNQuantity>0
and a.SDNQuantity + dls.fOutQuantity <> a.Quantity
group by a.SDNCode,a.ArriveDate,a.EATTRIBUTE3,a.CreatePerson
)a
select count(*) as CGWDH

9
KanBan/NFine.Web/Areas/SRM/Views/WatchPanel/PanelWIPZhiXingDa.cshtml

@ -224,16 +224,17 @@
<label id="YL"></label>
</td>
<td>
<span>成品库存:</span>
<label id="CP"></label>
<span>造粒料仓:</span>
<label id="ZLL"></label>
</td>
<td>
<span>保护膜仓:</span>
<label id="BHM"></label>
</td>
<td>
<span>造粒料仓:</span>
<label id="ZLL"></label>
<span>成品库存:</span>
<label id="CP"></label>
</td>
<td>
<span>分切库存:</span>

Loading…
Cancel
Save