1、添加contextMenuStrip1控件
2、右键打开功能
private void 打开文件ToolStripMenuItem_Click(object sender, EventArgs e)
{
//文件没有选中
if (this.listView1.SelectedItems.Count == 0)
return;
//获取选中文件
var selectedItem = this.listView1.SelectedItems[0];
string name = selectedItem.SubItems[0].Text;
try
{
DataTable dt = BLL.ProData.GetData(BillID, name);
string FileName = Application.StartupPath + "\\" + name;
Util.P