public List <PickUpLog> GetPickUpLogNoUpload() { DataTable table = null; LoggingData data = new LoggingData(ip, username, password, database); table = data.GetPickUpLogNoUpload(); if (table == null) { CLog4net.LogError("取件日志表初始化错误"); return(null); } List <PickUpLog> a = new List <PickUpLog>(); foreach (System.Data.DataRow d in table.Rows) { PickUpLog pl = new PickUpLog(); pl.Sn = Convert.ToString(d[TbPickuplog.packageCode]); pl.CourierCode = Convert.ToString(d[TbPickuplog.courierCode]); pl.ReceiverTelNum = Convert.ToString(d[TbPickuplog.receiverTelNum]); pl.BoxCode = Convert.ToInt32(d[TbPickuplog.boxCode]); pl.DeletedTime = Convert.ToDateTime(d[TbPickuplog.deletedTime]); pl.ReceiverIdentity = Convert.ToByte(d[TbPickuplog.receiverIdentity]); pl.ServerSaved = Convert.ToBoolean(d[TbPickuplog.serverSaved]); pl.Remark = Convert.ToString(d[TbPickuplog.remark]); a.Add(pl); } return(a); }