@using System.Text @using System.Data @using ZoomLa.Common @using ZoomLa.BLL @using ZoomLa.Model @using ZoomLa.Components @using ZoomLa.SQLDAL @using ZoomLa.BLL.Content @model ZoomLaCMS.Models.Field.VM_FieldModel @functions{ public string TableField() { //ZL_User.UserName,ZL_User.UserID string Name = Model.fieldMod.FieldName; string Value = Model.GetValue(); try { FieldModel fieldmod = new FieldModel(Model.fieldMod.Content); string tbName = fieldmod.GetValue("TextField").Split('.')[0]; string textField = fieldmod.GetValue("TextField").Split('.')[1]; string valField = textField; if (!string.IsNullOrEmpty(fieldmod.GetValue("ValueField"))) { valField = fieldmod.GetValue("ValueField").Split('.')[1]; } //string.IsNullOrEmpty(Content.Split(',')[1]) ? textField : Content.Split(',')[1].Split('.')[1]; string where = fieldmod.GetValue("WhereStr"); if (!string.IsNullOrEmpty(where)) { where = " AND " + where; } string downHtml = ""; DataTable dt = SqlHelper.ExecuteTable(CommandType.Text, "Select * From " + tbName + " WHERE 1=1 " + where); if (fieldmod.GetValue("FieldType").Equals("1"))//单选模式 { downHtml += ""; if (!string.IsNullOrEmpty(Value)) { downHtml = downHtml.Replace("value='" + Value + "'", "value='" + Value + "' selected='selected'"); } string json = ZoomLa.BLL.Helper.JsonHelper.GetJson( new string[] { "style" }, new string[] { "z-index:" + (999 + Model.fieldMod.OrderID) }); downHtml += ""; } else//多选模式 { downHtml += "