Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        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);
        }