private PPCellAttach CheckEditStyle(string cell) { string cellValue = this.GetCellValue(cell); int num = PPCConvert.Address2Row(cell); if (CLCard.InRange(this.midBegin, this.midEnd, this.curCell)) { if (num == PPCConvert.Address2Row(this.midBegin)) { return(PPCellAttach.Option); } return(PPCellAttach.None); } if ((cellValue != "") && (cellValue[0] != '<')) { if (this.readOnly) { return(PPCellAttach.None); } return(PPCellAttach.Label); } if (cellValue == string.Empty) { if (this.readOnly) { return(PPCellAttach.None); } return(PPCellAttach.Unknow); } if (cellValue[0] == '<') { return(PPCardCompiler.GetXmlEditStyle(cellValue)); } return(PPCellAttach.None); }
private void GetMasRevList(string mainClassName, ArrayList mastersList, ArrayList revsList) { DEItemMaster2[] masters = null; DEItemRevision2[] revs = null; string[] fieldNames = null; string[] operators = null; object[] values = null; PLMDataType[] attrTypes = null; ArrayList allAncestorName = CLCard.GetAllAncestorName(mainClassName); for (int i = allAncestorName.Count - 1; i >= 0; i--) { fieldNames = new string[] { "M.PLM_R_RELEASEDESC", "M.PLM_M_STATE" }; operators = new string[] { " LIKE ", "=" }; values = new object[] { "%:" + allAncestorName[i].ToString(), 'R' }; attrTypes = new PLMDataType[] { PLMDataType.String, PLMDataType.Char }; this.GetItemMasRev(out masters, out revs, fieldNames, operators, values, attrTypes); mastersList.AddRange(masters); revsList.AddRange(revs); } }