/// <summary>
 /// 表格行鼠标双击事件
 /// </summary>
 /// <param name="sender">事件对象</param>
 /// <param name="e">事件参数</param>
 private void t_pgg_Bill_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         if (t_pgg_Bill.SelectedItem == null)
         {
             return;
         }
         XTreeNode myItem    = t_tvw_Module.SelectedItem as XTreeNode;
         string    myTag     = string.Empty;
         string    parentTag = string.Empty;
         if (myItem == null && m_MQuery != null)
         {
             myTag = m_MQuery.BillType;
         }
         else
         {
             myTag = myItem.Tag.ToString();
             if (myItem.Parent != null)
             {
                 parentTag = myItem.Parent.Tag.ToString();
             }
         }
         if (myTag == "Q" || parentTag == "Q")
         {
             PT_B_Quotation myModel = (PT_B_Quotation)t_pgg_Bill.SelectedItem;
             FrmQuotation   myForm  = new FrmQuotation();
             myForm.PTBQuotation = myModel;
             myForm.ShowDialog();
             m_Entities.Dispose();
             m_Entities = new ProjectTrackingEntities();
             RefreshTreeNode();
         }
         else
         {
             PT_B_Project myModel = (PT_B_Project)t_pgg_Bill.SelectedItem;
             FrmProject   myForm  = new FrmProject();
             myForm.PTBProject = myModel;
             myForm.ShowDialog();
             m_Entities.Dispose();
             m_Entities = new ProjectTrackingEntities();
             RefreshTreeNode();
         }
     }
     catch (Exception ex)
     {
         XMessageBox.Exception(ex);
     }
 }
 /// <summary>
 /// 新建报价单窗口
 /// </summary>
 /// <param name="sender">事件对象</param>
 /// <param name="e">事件参数</param>
 private void t_btn_New_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         FrmQuotation myForm = new FrmQuotation();
         myForm.ShowDialog();
         m_Entities.Dispose();
         m_Entities = new ProjectTrackingEntities();
         RefreshTreeNode();
     }
     catch (Exception ex)
     {
         XMessageBox.Exception(ex);
     }
 }