Browse Source

no message

master
Juj 4 months ago
parent
commit
49cd49e468
  1. 75
      KanBan/NFine.Application/SRM/WatchPanelApp.cs
  2. 8
      KanBan/NFine.Web/Areas/SRM/Views/WatchPanel/PanelWIPZhiXingDa.cshtml
  3. 2
      KanBan/NFine.Web/Content/Cust069/css/index.css

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

@ -1404,7 +1404,8 @@ inner join dbo.ICSInventory e on a.InvCode=e.InvCode and a.WorkPoint=e.WorkPoint
left join dbo.ICSWareHouseLotInfo d on c.LotNo=d.LotNo and a.WorkPoint=b.WorkPoint
inner join ICSDepartment f on a.DepCode=f.DepCode and a.WorkPoint=f.WorkPoint
where isnull(d.LotNo,'')=''
group by c.ProductDate,e.InvName,f.DepName ";
group by c.ProductDate,e.InvName,f.DepName
order by f.DepName desc ";
DataTable dt = SqlHelper.GetDataTableBySql(SqlText);
@ -1460,14 +1461,33 @@ where ODNType='1' and a.Quantity-a.RCVQuantity>0";
string SqlText = "";
SqlText = @"
select a.,a.,sum(a.) as ,a.线,a. from(
select a.InvCode as '',b.InvName as '',
case when b.AmountEnable='1' then a.Quantity/b.EATTRIBUTE1 else a.Quantity end '',
a.FromWarehouseCode as '线',FORMAT(a.MTIME , 'yyyy-MM-dd') as ''
from ICSTransfer a
left join dbo.ICSInventory b on a.InvCode=b.InvCode and a.WorkPoint=b.WorkPoint
where FORMAT(a.MTIME , 'yyyy-MM-dd')=FORMAT(getdate() , 'yyyy-MM-dd')) a
group by a. ,a.,a.,a.线";
select a.,a.,a.,
case when a.线='021' then 'L1' when a.线='022' then 'L2' when a.线='023' then 'L3' when a.线='024' then 'L4'
when a.线='025' then 'L5' when a.线='026' then 'L6' when a.线='027' then 'L7' when a.线='015' then 'C1' end as '线'
,a. from (
select a.,a.,
sum(case when a.Flag='负' then -1*a. else a. end ) as ,
case when a.F not in ('021','022','023','024','025','026','027','015') and a.T in ('021','022','023','024','025','026','027','015') then a.T
when a.F = '015' and a.T in ('021','022','023','024','025','026','027') then a.T
when a.F in ('021','022','023','024','025','026','027') and a.T='015' then a.F
else a.F end as '线'
,a.
from(
select a.InvCode as '',b.InvName as '',
case when b.AmountEnable='1' then a.Quantity/b.EATTRIBUTE1 else a.Quantity end '',
a.FromWarehouseCode as 'F',
a.ToWarehouseCode as 'T',
case when a.FromWarehouseCode not in('021','022','023','024','025','026','027','015') and a.ToWarehouseCode in ('021','022','023','024','025','026','027','015') then '正' else '负' end Flag ,
format(a.MTIME , 'yyyy-MM-dd') as ''
from dbo.ICSWareHouseLotInfoLog a
inner join dbo.ICSInventory b on a.InvCode=b.InvCode and a.WorkPoint=b.WorkPoint
inner join dbo.ICSWarehouse c on a.ToWarehouseCode=c.WarehouseCode and a.WorkPoint=c.WorkPoint
where BusinessCode in ('70','47') and a.TransType in ('6','14')
and (a.FromWarehouseCode in('021','022','023','024','025','026','027')or a.ToWarehouseCode in('021','022','023','024','025','026','027'))
)a
group by a. ,a.,a.,a.F,a.T
) a";
DataTable dt = SqlHelper.GetDataTableBySql(SqlText);
@ -1555,15 +1575,34 @@ select OOCode as '委外订单号','' as '状态','' as '出库单号',PlanArriv
)d
select count(*) as DB into #Temp5 from(
select a.,a.,sum(a.) as ,a.线,a. from(
select a.InvCode as '',b.InvName as '',
case when b.AmountEnable='1' then a.Quantity/b.EATTRIBUTE1 else a.Quantity end '',
a.FromWarehouseCode as '线',FORMAT(a.MTIME , 'yyyy-MM-dd') as ''
from ICSTransfer a
left join dbo.ICSInventory b on a.InvCode=b.InvCode and a.WorkPoint=b.WorkPoint
where FORMAT(a.MTIME , 'yyyy-MM-dd')=FORMAT(getdate() , 'yyyy-MM-dd')) a
group by a. ,a.,a.,a.线
select count(*) as DB into #Temp5 from(
select a.,a.,a.,
case when a.线='021' then 'L1' when a.线='022' then 'L2' when a.线='023' then 'L3' when a.线='024' then 'L4'
when a.线='025' then 'L5' when a.线='026' then 'L6' when a.线='027' then 'L7' when a.线='015' then 'C1' end as '线'
,a. from (
select a.,a.,
sum(case when a.Flag='负' then -1*a. else a. end ) as ,
case when a.F not in ('021','022','023','024','025','026','027','015') and a.T in ('021','022','023','024','025','026','027','015') then a.T
when a.F = '015' and a.T in ('021','022','023','024','025','026','027') then a.T
when a.F in ('021','022','023','024','025','026','027') and a.T='015' then a.F
else a.F end as '线'
,a.
from(
select a.InvCode as '',b.InvName as '',
case when b.AmountEnable='1' then a.Quantity/b.EATTRIBUTE1 else a.Quantity end '',
a.FromWarehouseCode as 'F',
a.ToWarehouseCode as 'T',
case when a.FromWarehouseCode not in('021','022','023','024','025','026','027','015') and a.ToWarehouseCode in ('021','022','023','024','025','026','027','015') then '正' else '负' end Flag ,
format(a.MTIME , 'yyyy-MM-dd') as ''
from dbo.ICSWareHouseLotInfoLog a
inner join dbo.ICSInventory b on a.InvCode=b.InvCode and a.WorkPoint=b.WorkPoint
inner join dbo.ICSWarehouse c on a.ToWarehouseCode=c.WarehouseCode and a.WorkPoint=c.WorkPoint
where BusinessCode in ('70','47') and a.TransType in ('6','14')
and (a.FromWarehouseCode in('021','022','023','024','025','026','027')or a.ToWarehouseCode in('021','022','023','024','025','026','027'))
)a
group by a. ,a.,a.,a.F,a.T
) a
)e

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

@ -264,7 +264,7 @@
<span class="col">发货单号</span>
<span class="col">状态</span>
<span class="col">滞留天数</span>
<span class="col">管理员</span>
<span class="col">业务员</span>
@*<span class="col">计划完工日期</span>
<span class="col">生产进度</span>*@
</div>
@ -416,10 +416,10 @@
</div>
<div class="content CustDiv5" style="display: block;" id="marqueelist6">
<div class="head">
<span class="col">产线</span>
<span class="col">存货编码</span>
<span class="col">存货名称</span>
<span class="col">数量</span>
<span class="col">产线</span>
<span class="col">调拨时间</span>
</div>
<div class="marquee-view" id="marqueeCust6">
@ -803,8 +803,8 @@
var html = "";
for (var i = 0; i < data.length; i++) {
html += ' <div class="row"> ';
html += ' <span class="col">' + data[i].存货编码 + '</span> <span class="col">' + data[i].存货名称 + '</span>';
html += ' <span class="col" >' + data[i].数量 + '</span> <span class="col">' + data[i].产线 + '</span> ';
html += ' <span class="col">' + data[i].产线 + '</span> <span class="col">' + data[i].存货编码 + '</span>';
html += ' <span class="col" >' + data[i].存货名称 + '</span> <span class="col">' + data[i].数量 + '</span> ';
html += ' <span class="col" >' + data[i].调拨时间 + '</span> </div> ';
}
html += "</ul>";

2
KanBan/NFine.Web/Content/Cust069/css/index.css

@ -79,7 +79,7 @@ a{
}
/* 监控 */
.monitor{
height: 21rem;
height: 23rem;
}
.monitor .inner{
padding: 1rem 0;

Loading…
Cancel
Save