Beispiel #1
0
        public List <DeliverLog> GetDeliverLogNoUpload()
        {
            DataTable   table = null;
            LoggingData data  = new LoggingData(ip, username, password, database);

            table = data.GetDeliverLogNoUpload();
            if (table == null)
            {
                CLog4net.LogError("寄件日志表初始化错误");
                return(null);
            }
            List <DeliverLog> a = new List <DeliverLog>();

            foreach (System.Data.DataRow d in table.Rows)
            {
                DeliverLog dl = new DeliverLog();
                dl.Sn             = Convert.ToString(d[TbDeliverLog.packageCode]);
                dl.CourierCode    = Convert.ToString(d[TbDeliverLog.courierCode]);
                dl.ReceiverTelNum = Convert.ToString(d[TbDeliverLog.receiverTelNum]);
                dl.BoxCode        = Convert.ToInt32(d[TbDeliverLog.boxCode]);
                dl.CreatedTime    = Convert.ToDateTime(d[TbDeliverLog.createdTime]);
                dl.ServerSaved    = Convert.ToBoolean(d[TbDeliverLog.serverSaved]);
                dl.Remark         = Convert.ToString(d[TbDeliverLog.remark]);
                a.Add(dl);
            }
            return(a);
        }