select row_number()over(order by d.businessdate) as '序號','接單日期'=d.businessdate,'合同號'=d.docno,'色號'=d.proname,'客戶'=d.cusname,'流水號'=d.docno,'料品'=d.iteminfo_itemname,
'工序'=a.gx,'出缸時間'=a.zyenddate,
'染色水溶數量'=i.qty,'染色質量狀況'=i.zlzk,'定型烘乾時間'=j.date,'定型烘乾數量'=j.qty,'定型質量狀況'=j.zlzk,
'發貨時間'=g.shipconfirmdate,'發貨數量'=g.qtypriceamount,'備註'=a.remarks
from (select s.id,s.businessdate,s.docno,c.name as cusname,p.name as proname,l.iteminfo_itemname from sm_soline l
inner join sm_so s on s.id=l.so
inner join cbo_customer_trl c on c.id=s.orderby_customer
inner join cbo_project_trl p on p.id=l.project
where s.org=1001011070000620 and l.doclineno=10) d
left join
(select a.id,a.qty,a.zlzk,a.mo,a.remarks from cust_clourvaluationmanageline a
inner join cust_clourvaluationmanage h on a.clourvaluationmanage=h.id
where h.colourworkshop=1 and a.mo!='') i on i.mo=d.docno
left join
(select a.id,a.date,a.qty,a.zlzk,a.mo,a.remarks from cust_clourvaluationmanageline a
inner join cust_clourvaluationmanage h on a.clourvaluationmanage=h.id
where h.colourworkshop=0 and a.mo!='') j on j.mo=d.docno
left join (select * from sm_shipline where srcdocno!='' ) g on g.srcdocno=d.docno
left join
(select * from cust_clourvaluationmanageline where mo!='') a on a.mo=d.docno
/*注:
select * from (select a.a,a.b from a where a.a='',a.b='') a
left join (select b.a,b.b,b.c from b where ***xx) b on a.a=b.b
*/
改進後的篩選函式
private void queryindent click object sender,eventargs e if gs if nullflag gs and company gs else if khbh if nullflag khbh and khbh like khbh else if ...
篩選 查詢 串聯
篩選 eq index index first last hasclass class filter expr obj ele fn is expr obj ele fn map callback has expr ele not expr ele fn slice start,end 主要用於找子...
jQuery篩選與查詢
p eq 0 當前操作中第n個jquery物件,類似索引 li first 第乙個節點 li last 最後乙個節點 this hasclass node 節點是否含有某個特定的類,返回布林值 li has ul 包含特定後代的節點 div children div中的每個子節點,第一層 div f...