private bool IsFieldExist(string paraName) { if (type == "Add") { if (CheckItemValid.IsContain(paraName, fieldSet, StringComparison.OrdinalIgnoreCase)) { return(true); } } else { if (CheckItemValid.IsContain(paraName, fieldSet, StringComparison.OrdinalIgnoreCase) && paraName != resultList[resultIndex].ThirdPartyDBPatamter.FieldName) { return(true); } } return(false); }
private bool IsParaExist(string paraName) { if (type == "Add") { if (CheckItemValid.IsContain(paraName, parameterSet, StringComparison.OrdinalIgnoreCase)) { return(true); } } else { if (CheckItemValid.IsContain(paraName, parameterSet, StringComparison.OrdinalIgnoreCase) && paraName != parameterList[parameterIndex].GWDataDBField.FieldName) { return(true); } } return(false); }
private bool IsChannelExist(string channelName) { if (type == "Add") { if (CheckItemValid.IsContain(channelName, nameSet, StringComparison.Ordinal)) { return(true); } } else { if (CheckItemValid.IsContain(channelName, nameSet, StringComparison.Ordinal) && (txtChannelName.Text != channelSet[channelIndex].ChannelName)) { return(true); } } return(false); }
private bool IsSPNameExist(string SPName) { if (type == "Add") { if (CheckItemValid.IsContain(SPName, SPNameSet, StringComparison.OrdinalIgnoreCase)) { return(true); } } else { if (CheckItemValid.IsContain(SPName, SPNameSet, StringComparison.OrdinalIgnoreCase) && (txtSPName.Text != channel.SPName)) { return(true); } } return(false); }