protected bool Equals(DepartmentPurchaseOrderPK entity)
        {
            if (entity == null) return false;
            if (!base.Equals(entity)) return false;

            return true;
        }
 private DepartmentPurchaseOrder CreateNewDepartmentPurchaseOrder()
 {
     CoralPOS.Models.DepartmentPurchaseOrder order = new DepartmentPurchaseOrder
                                                         {
                                                             CreateDate = DateTime.Now,
                                                             CreateId = "admin",
                                                             UpdateDate = DateTime.Now,
                                                             UpdateId = "admin",
                                                             ExclusiveKey = 1,
                                                             DelFlg = 0,
                                                         };
     DepartmentPurchaseOrderPK pk = new DepartmentPurchaseOrderPK
                                        {
                                            DepartmentId = 1,
                                            PurchaseOrderId = DepartmentPurchaseOrderLogic.FindNextId()
                                        };
     order.DepartmentPurchaseOrderPK = pk;
     return order;
 }