public override GENERALALERT GetExistDataPC(AnnualFee dataIPSP) { var sCondition = $"TYPEID = 'annualfee' and ITEMNUMBER = '{dataIPSP.n_YearNo}' and OURNO = '{dataIPSP.TheBasicPatent?.s_CaseSerial}'"; var existAlert = new PC.BLL.GENERALALERT().GetModelList(sCondition); IsExistDataPC = existAlert.Count > 0; SyncResultInfoSet.AddInfo(InfoString.ToSyncInfo("年费", IsExistDataPC.Value, dataIPSP.n_AnnualFeeID, dataIPSP.TheBasicPatent?.s_CaseSerial + " 第" + dataIPSP.n_YearNo + "年"), dataIPSP.ClassInfo.TableName, typeof(GENERALALERT).Name); return(existAlert.Count > 0 ? existAlert[0] : null); }
public override GENERALALERT GetExistDataPC(TFTaskChain dataIPSP) { var sOAType = GetOATypeByTaskChainCode(dataIPSP.GetTheCodeTaskChain().s_Code); if (string.IsNullOrWhiteSpace(sOAType) || !dataIPSP.dt_CreateTime.HasValue) { SyncResultInfoSet.AddInfo( InfoString.ToSkipInfo("OA", dataIPSP.g_ID, dataIPSP.n_Num + " " + dataIPSP.s_Name), dataIPSP.ClassInfo.TableName, typeof(GENERALALERT).Name); return(null); } var sCondition = $"OATYPE = '{GetOATypeByTaskChainCode(dataIPSP.GetTheCodeTaskChain().s_Code)}' and OURNO = '{dataIPSP.GetRelatedCase()?.s_CaseSerial}' and TRIGERDATE1 =TO_DATE('{dataIPSP.dt_CreateTime.Value:yyyy/MM/dd}','yyyy/mm/dd')"; var existOA = new PC.BLL.GENERALALERT().GetModelList(sCondition); IsExistDataPC = existOA.Count > 0; SyncResultInfoSet.AddInfo( InfoString.ToSyncInfo("OA", IsExistDataPC.Value, dataIPSP.g_ID, dataIPSP.n_Num + " " + dataIPSP.s_Name), dataIPSP.ClassInfo.TableName, typeof(GENERALALERT).Name); return(existOA.Count > 0 ? existOA[0] : null); }