public void LoadOrgApp() { try { lsvOrgApply.Items.Clear(); List <CApplyInfoEntity> OrgAppList = new List <CApplyInfoEntity>(); OrgAppList = _currentUser.ListOrganizeApplies(); foreach (CApplyInfoEntity apply in OrgAppList) { ListViewItem lviName = new ListViewItem(); ListViewItem.ListViewSubItem lvsiApplyer; ListViewItem.ListViewSubItem lvsiComment; ListViewItem.ListViewSubItem lvsiAudite; ListViewItem.ListViewSubItem lvsiCreTime; // ListViewItem.ListViewSubItem lvsiAudTime; lviName.Text = apply.Res_Name; lviName.Tag = apply.App_Id; lvsiApplyer = new ListViewItem.ListViewSubItem(); lvsiApplyer.Text = apply.Usr_Name; lviName.SubItems.Add(lvsiApplyer); lvsiComment = new ListViewItem.ListViewSubItem(); lvsiComment.Text = apply.App_Comment; lviName.SubItems.Add(lvsiComment); lvsiAudite = new ListViewItem.ListViewSubItem(); switch ((int)apply.App_Audited) { case 1: lvsiAudite.Text = "未审核"; break; case 2: lvsiAudite.Text = "已批准"; break; case 3: lvsiAudite.Text = "未批准"; break; } lviName.SubItems.Add(lvsiAudite); lvsiCreTime = new ListViewItem.ListViewSubItem(); lvsiCreTime.Text = apply.App_CreateTime.ToString(); lviName.SubItems.Add(lvsiCreTime); // lvsiAudTime = new ListViewItem.ListViewSubItem(); // lvsiAudTime.Text = apply.App_AudTime.ToString(); // lviName.SubItems.Add(lvsiAudTime); lsvOrgApply.Items.Add(lviName); } } catch (Exception ex) { MessageBox.Show("加载归档申请列表失败:" + ex.Message, "文档管理系统", MessageBoxButtons.OK, MessageBoxIcon.Error); } }