Exemplo n.º 1
0
 /// <summary>删除主表,连同明细一起删除
 ///
 /// </summary>
 private void DoDelete()
 {
     m_orderDetailDAL.DeleteByCond("OrderId=" + m_orderMaster.OrderId + "");
     m_orderMasterDAL.Delete(m_orderMaster.OrderId);
     m_lstOrderMaster.Remove(m_orderMaster);
     m_orderMaster = null;
     if (m_lstOrderDetail != null)
     {
         m_lstOrderDetail.Clear();
         objListViewDetail.SetObjects(m_lstOrderDetail);
         objListViewDetail.Refresh();
     }
     SetMode(EntityOperationType.只读);
 }