/// <summary>
 /// 拖拽文件添加地址
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void txtMainAssyPath_DragDrop(object sender, DragEventArgs e)
 {
     if (cobODPNo.SelectedIndex == -1)
     {
         return;
     }
     //获取拖放数据
     if (e.Data.GetDataPresent(DataFormats.FileDrop))
     {
         string[] content = (string[])e.Data.GetData(DataFormats.FileDrop);
         if (Path.GetExtension(content[0]) == ".sldasm" || Path.GetExtension(content[0]) == ".SLDASM"
             ) //获取路径文件的后缀)
         {
             txtMainAssyPath.Text = content[0];
             objGeneralRequirement.MainAssyPath = content[0];
             try
             {
                 if (objRequirementService.UpdateMainAssyPath(objGeneralRequirement) > 0)
                 {
                     btnCeilingPackingList.Enabled = true;
                 }
             }
             catch (Exception ex)
             {
                 throw new Exception("装配地址导入数据库失败" + ex.Message);
             }
         }
     }
 }