示例#1
0
        private void initData()
        {
            grid.Rows.Clear();
            List <UploadPKBoxInfo> list = SqliteDataService.GetUnUploadPKBox();

            if (list != null && list.Count > 0)
            {
                foreach (UploadPKBoxInfo item in list)
                {
                    string shipData = "";
                    if (item.SHIP_DATE != null)
                    {
                        shipData = item.SHIP_DATE.ToString("yyyy-MM-dd");
                    }
                    grid.Rows.Insert(0, false, item.HU, shipData + ":" + (string.IsNullOrEmpty(item.UploadMsg) ? "待上传" : item.UploadMsg));
                    grid.Rows[0].Tag = item;
                }
            }
        }