public override string Insert(MessageModel mm) { string rtn = ""; // 插入的信息字符数小于5 if (mm.Message.Length < 15) { MessageExecutor me = new MessageExecutor(); if (me.Insert(mm)) { rtn = "执行者:经理" + " 内容:" + mm.Message + " 时间:" + mm.PublishTime.ToString(); } } // 否则让上级去执行 else { rtn = "你所插入的Message不符合要求"; } return(rtn); }
public override string Insert(MessageModel mm) { string rtn = ""; // 插入的信息字符数小于5 if (mm.Message.Length < 10) { MessageExecutor me = new MessageExecutor(); if (me.Insert(mm)) { rtn = "执行者:主管" + " 内容:" + mm.Message + " 时间:" + mm.PublishTime.ToString(); } } // 否则让上级去执行 else if (base.Executor != null) { rtn = Executor.Insert(mm); } return(rtn); }