Linq學習

                IEnumerable<DataRow> cbCurrent = from dr in cbRows.AsEnumerable()
                                                 where
                                                 dr.Field<string>("ObjectNO").ToString() == row["運輸單號"].ToString() ||
                                                 dr.Field<string>("ObjectNO").ToString() == row["報關任務單"].ToString()
                                                 select dr;string

 

 

            //收入
            DataRow[] srRows = chargeTable.Select(" chargeType = 1 and chargeSort <> 3");
            //代墊
            DataRow[] ddRows = chargeTable.Select(" chargeType = 1 and chargeSort = 3");
            //應付
            DataRow[] yfRows = chargeTable.Select(" chargeType = 2");
            //業務成本
            DataRow[] cbRows = chargeTable.Select(" chargeType = 3");select

相關文章
相關標籤/搜索