示例#1
0
文件: MsgHtml.cs 项目: vein7/Net00
 public override bool IsExist <TValue>(CellBase <TValue> cell, bool isExist)
 {
     if (isExist)
     {
         return(true);
     }
     Builder.AppendFormat("行:{0},列:{1},“<b>{2}</b>”不存在。<br />", rowNo, cell.Name, cell.Value);
     return(false);
 }
示例#2
0
文件: MsgHtml.cs 项目: vein7/Net00
        public override bool NotNull <TValue>(CellBase <TValue> cell, object obj)
        {
            if (obj != null && string.IsNullOrWhiteSpace(obj.ToString()) == false)
            {
                return(true);
            }

            Builder.AppendFormat("行:{0},列:{1},不能为空。<br />", rowNo, cell.Name);
            return(false);
        }
示例#3
0
文件: MsgHtml.cs 项目: vein7/Net00
        /// <summary>
        /// 解析时会为 cell.Value 赋值
        /// </summary>
        public override bool Parse <TValue>(CellBase <TValue> cell, object obj)
        {
            if ((cell.TryParse ?? ObjUtil.TryParse)(obj, out cell.Value))
            {
                return(true);
            }

            Builder.AppendFormat("行:{0},列:{1},{2}。<br />", rowNo, cell.Name, SMsg <TValue> .InvalidType);
            return(false);
        }
示例#4
0
文件: Cell.cs 项目: vein7/Net00
 public abstract bool IsExist <TValue>(CellBase <TValue> cell, bool isExist);
示例#5
0
文件: Cell.cs 项目: vein7/Net00
 public abstract bool NotNull <TValue>(CellBase <TValue> cell, object obj);
示例#6
0
文件: Cell.cs 项目: vein7/Net00
 /// <summary>
 /// 解析时会为 cell.Value 赋值
 /// </summary>
 public abstract bool Parse <TValue>(CellBase <TValue> cell, object obj);