/// <summary> /// 验证文本是否为空 /// </summary> /// <param name="text"></param> /// <returns></returns> public bool CheckNullOrEmpty(Ext.Net.TextField text) { if (string.IsNullOrEmpty(text.Text.Trim())) { text.Text = ""; text.Focus(); return(true); } else { return(false); } }