public static Boolean IsSame(POrder a, POrder b) { if (a.IsDone() || b.IsDone()) { return false; } if (a.ContractedCount > 0 || b.ContractedCount > 0) { return false; } if (a.IsCancelRemains() || b.IsCancelRemains()) { return false; } if (a.Code.CompareTo(b.Code) == 0 && a.ReqCount == b.ReqCount && a.ReqPrice == b.ReqPrice && a.LongShort == b.LongShort && a.TargetAccount == b.TargetAccount) { return true; } return false; }