zrg
2025-01-14 2ddf33de9961526f6f62d2f32f3f67aad87212f0
DAL/¹«ÓÃ/frmHlpBillList1.cs
@@ -48,12 +48,16 @@
            string sWhere = tSQL;  //特殊条件(日期限制,部门限制)
            DBUtility.Xt_BaseBillFun.Sub_SQLWhere(ref sWhere);
            ////过滤条件
            //if (frmCondition.SqlStr.Trim().Length == 0)
            //    return;
            frmCondition.SqlStr = "select * from " + ViewName + " where 1=1 ";
            //过滤条件
            if (frmCondition.SqlStr.Trim().Length == 0)
            {
                frmCondition.SqlStr = "select top(1000) * from " + ViewName + " where 1=1 ";
            }
            sSql = frmCondition.SqlStr + sWhere ;
            sSql = sSql.Replace("AND ä½œåºŸäºº=''", "");
            sSql = sSql.Replace("Top 10", "top(1000)");
 
            //
            DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);