Browse Source

看板修改

master
Juj 5 months ago
parent
commit
9a10cbd8c1
  1. 36
      KanBan/NFine.Application/SRM/WatchPanelApp.cs
  2. 29
      KanBan/NFine.Web/Areas/SRM/Views/WatchPanel/PanelWIPZhiXingDa.cshtml

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

@ -1347,11 +1347,10 @@ Convert(decimal(18,1),isnull(QQ.COMQTY,0)) 完成数量,
,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
FROM ICSSDN a
left join [UFDATA_001_2021].dbo.DispatchLists dls on dls.DLID = a.SDNID and dls.irowno = a.Sequence
WHERE a.WorkPoint='UFDATA_001_2021' AND a.Type='1' AND a.Status<>'3' and a.Quantity-a.SDNQuantity>0
and a.SDNQuantity + dls.fOutQuantity <> a.Quantity and dls.iQuantity>dls.fOutQuantity and a.WHCode not in ('018','019','020')
";
@ -1390,7 +1389,7 @@ where DNType='1' and a.Quantity-a.RCVQuantity>0";
string SqlText = "";
SqlText = @"
select f.DepName as '线',e.InvName as '',sum(case when e.AmountEnable='1' then c.Quantity/isnull(e.EATTRIBUTE1,1) else c.Quantity end ) as '' ,
select f.DepName as '线',e.InvName as '',sum(case when e.AmountEnable='1' then c.Quantity/isnull(e.EATTRIBUTE1,1) else c.Quantity end ) as '' ,
CASE
WHEN DATEDIFF(MINUTE, c.ProductDate, GETDATE()) < 60 THEN CAST(DATEDIFF(MINUTE, c.ProductDate, GETDATE()) AS VARCHAR) + ''
WHEN DATEDIFF(HOUR, c.ProductDate, GETDATE()) < 24 THEN CAST(DATEDIFF(HOUR, c.ProductDate, GETDATE()) AS VARCHAR) + ' ' + CAST((DATEDIFF(MINUTE, c.ProductDate, GETDATE()) % 60) AS VARCHAR) + ''
@ -1409,7 +1408,7 @@ left join dbo.ICSWareHouseLotInfo d on c.LotNo=d.LotNo and a.WorkPoint=b.WorkPoi
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
order by f.DepName desc ";
order by f.DepName desc , c.ProductDate asc ";
DataTable dt = SqlHelper.GetDataTableBySql(SqlText);
@ -1476,7 +1475,7 @@ where ODNType='1' and a.Quantity-a.RCVQuantity>0";
string SqlText = "";
SqlText = @"
select a.,a.,a.,
select a.,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 (
@ -1487,9 +1486,9 @@ case when a.仓库F not in ('021','022','023','024','025','026','027','015') an
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.
,a. ,a.T as ''
from(
select a.InvCode as '',b.InvName as '',
select a.InvCode as '',b.InvName+'|'+b.InvStd as '',
case when b.AmountEnable='1' then a.Quantity/b.EATTRIBUTE1 else a.Quantity end '',
a.FromWarehouseCode as 'F',
a.ToWarehouseCode as 'T',
@ -1545,16 +1544,15 @@ cast(sum(case when a.WarehouseCode='002' then a.Quantity/isnull(b.EATTRIBUTE1,1)
SqlText = @"
select count(*) as CPFH
into #Temp1
from (select
from ( 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
FROM ICSSDN a
left join [UFDATA_001_2021].dbo.DispatchLists dls on dls.DLID = a.SDNID and dls.irowno = a.Sequence
WHERE a.WorkPoint='UFDATA_001_2021' AND a.Type='1' AND a.Status<>'3' and a.Quantity-a.SDNQuantity>0
and a.SDNQuantity + dls.fOutQuantity <> a.Quantity and dls.iQuantity>dls.fOutQuantity and a.WHCode not in ('018','019','020')
)a
select count(*) as CGWDH
@ -1607,7 +1605,7 @@ SELECT
select count(*) as DB into #Temp5 from(
select a.,a.,a.,
select a.,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 (
@ -1618,9 +1616,9 @@ case when a.仓库F not in ('021','022','023','024','025','026','027','015') an
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.
,a. ,a.T as ''
from(
select a.InvCode as '',b.InvName as '',
select a.InvCode as '',b.InvName+'|'+b.InvStd as '',
case when b.AmountEnable='1' then a.Quantity/b.EATTRIBUTE1 else a.Quantity end '',
a.FromWarehouseCode as 'F',
a.ToWarehouseCode as 'T',

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

@ -90,13 +90,13 @@
.CustDiv2 div span:nth-child(1),.CustDiv2 div div span:nth-child(1) {
width: 15% !important;
width: 22% !important;
}
.CustDiv2 div span:nth-child(2),.CustDiv2 div div span:nth-child(2) {
width: 15% !important;
width: 28% !important;
}
.CustDiv2 div span:nth-child(3),.CustDiv2 div div span:nth-child(3) {
width: 15% !important;
width: 20% !important;
}
.CustDiv2 div span:nth-child(4),.CustDiv2 div div span:nth-child(4) {
width: 15% !important;
@ -105,7 +105,7 @@
width: 15% !important;
}
.CustDiv2 div span:nth-child(6),.CustDiv2 div div span:nth-child(6) {
width: 25% !important;
width: 18% !important;
}
@ -140,19 +140,19 @@
.CustDiv5 div span:nth-child(1),.CustDiv5 div div span:nth-child(1) {
width: 20% !important;
width: 10% !important;
}
.CustDiv5 div span:nth-child(2),.CustDiv5 div div span:nth-child(2) {
width: 20% !important;
width: 30% !important;
}
.CustDiv5 div span:nth-child(3),.CustDiv5 div div span:nth-child(3) {
width: 20% !important;
width: 35% !important;
}
.CustDiv5 div span:nth-child(4),.CustDiv5 div div span:nth-child(4) {
width: 15% !important;
}
.CustDiv5 div span:nth-child(5),.CustDiv5 div div span:nth-child(5) {
width: 25% !important;
width: 10% !important;
}
.InfoNum {
@ -236,7 +236,7 @@
<span>成品库存:</span>
<label id="CP"></label>
</td>
<td>
<td>`
<span>分切库存:</span>
<label id="FQ"></label>
</td>
@ -324,7 +324,7 @@
<div class="content CustDiv3" style="display: block;" id="marqueelist3">
<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>
@ -419,9 +419,10 @@
<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>
<span class="col">目标仓库</span>
@*<span class="col">调拨时间</span>*@
</div>
<div class="marquee-view" id="marqueeCust6">
<div class="marquee" id="marqueeCustCH6">
@ -718,7 +719,7 @@
}
html += ' <div class="row ' + statusClass + '"> ';
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> </div> ';
}
@ -806,7 +807,7 @@
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> </div> ';
html += ' <span class="col" >' + data[i].目标仓库 + '</span> </div> ';
}
html += "</ul>";
$("#marqueeCustCH6").css("animation-duration", data.length * 1.3 + "s");

Loading…
Cancel
Save