Пример #1
0
        public override string GetCellCss(Field field, DataRow row)
        {
            //Durados.ParentField parentField = field.View.GetParentField("PLMId");
            //if (!string.IsNullOrEmpty(parentField.CloneParentViewName))
            //{

            if (field.View.Name == beSysReqCloneViewName)//parentField.CloneParentViewName ==beSysReqCloneViewName;
            {
                string yellowAlert = " cellYellowAlert";
                string paramVal    = capComparer.GetCapabilitiesMismatch(field, row);
                if (!string.IsNullOrEmpty(paramVal))
                {
                    return(yellowAlert);//
                }
            }

            return(base.GetCellCss(field, row));
        }
Пример #2
0
        public override string GetCellCss(Field field, DataRow row)
        {
            string yellowAlert = " cellYellowAlert";

            if (field.View.Name.ToLower().StartsWith(BESysReqViewName) && field.ContainerGraphicField == "BSSysCapMismatch")
            {
                return(GetCapabilityMismatchFieldGraphics(field, row, yellowAlert));
            }

            if (IsCompareField(field))
            {
                return(string.IsNullOrEmpty(capComparer.GetCapabilitiesMismatch(field, row)) ? field.ContainerGraphicProperties : yellowAlert);
            }
            else
            {
                return(base.GetCellCss(field, row));
            }
        }