private void btnMX_Click(object sender, EventArgs e)
 {
     //string str_DID = this.listView1.SelectedItems[0].SubItems[0].Text;
     LL.Main.HY_Report.HY_PurchasingdetailsReport hyrep = new LL.Main.HY_Report.HY_PurchasingdetailsReport();
     hyrep.Owner = this;
     hyrep.ShowDialog();//对话框模式窗口
     hyrep.Dispose();
 }
 private void buttonX1_Click(object sender, EventArgs e)
 {
     if (this.listView1.SelectedItems.Count == 0)
     {
         MessageBoxEx.Show("请选择单号后在在操作", "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         string str_DID = this.listView1.SelectedItems[0].SubItems[0].Text;
         LL.Main.HY_Report.HY_PurchasingdetailsReport hyrep = new LL.Main.HY_Report.HY_PurchasingdetailsReport();
         hyrep.Owner = this;
         hyrep.ShowDialog();//对话框模式窗口
         hyrep.Dispose();
     }
 }