private string ConstructErrorInfo() { string strInfo; strInfo = "线长度小于域值" + COMMONCONST.dLengthThread + " "; string strFields = ""; StandardLayer distLayer = LayerReader.GetLayerByName(m_structLengthPara.strFtName, SysDbHelper.GetStandardIDBySchemaID(this.m_SchemaID)); if (m_structLengthPara.fieldArray != null) { for (int i = 0; i < m_structLengthPara.fieldArray.Count; i++) { strFields = strFields + "|" + FieldReader.GetAliasName(m_structLengthPara.fieldArray[i], distLayer.ID); } strFields = strFields.Remove(0, 1); strFields = strFields + " 字段都为空"; strInfo = strInfo + ",并且 " + strFields; } return(strInfo); }
private string ConstructErrorInfo() { string strInfo = ""; string strFields = ""; StandardLayer distLayer = LayerReader.GetLayerByName(m_structBlankPara.strFtName, SysDbHelper.GetStandardIDBySchemaID(this.m_SchemaID)); if (m_structBlankPara.fieldArray.Count > 0) { for (int i = 1; i < m_structBlankPara.fieldArray.Count; i++) { strFields = strFields + "|" + FieldReader.GetAliasName(m_structBlankPara.fieldArray[i], distLayer.ID); } strFields = strFields.Remove(0, 1); } if (m_structBlankPara.iType == 0) { strInfo = "字段 " + strFields + " 都为空"; } else if (m_structBlankPara.iType == 1) { strInfo = "字段 " + strFields + " 中有一个或多个为空"; } return(strInfo); }