public override void ReplaceContent(ref VelocityContext vltContext) { this.type = base.GetString("type").ToLower(); vltContext.Put("type", this.type); vltContext.Put("CurDate", DateTime.Now.ToString("yyyy-MM-dd")); this.type = base.GetString("type").ToLower().Trim(); this.modelName = base.GetString("modelName").Trim().ToLower(); this.GUID = base.GetString("GUID").Trim(); if (this.type == "add") { vltContext.Put("pageTitle", "新增IP段"); } else if (this.type == "edit") { vltContext.Put("pageTitle", "修改IP段"); this.OutPutTable(ref vltContext, IPConfig.GetIPList(this.FilePath + "\\IPSetting.xml", this.GUID, ref this.ErrorMessage)); } }