public virtual ReturnMessageClass GetData() { ReturnMessageClass msg = new ReturnMessageClass(MessageDisplay.MSG_NO_DATA); msg.Status = ResultStatus.Fail; Dt = Dao.GetData(TxtDate, AsAdjType, AdjType.SubStr(1, 1)); //無資料時return fail (不產檔) if (Dt != null) { if (Dt.Rows.Count > 0) { msg.Status = ResultStatus.Success; } } Dt.Filter("ab_type in ('A','-')"); return(msg); }