Пример #1
0
        /// <summary>
        /// 根据检索条件检索出满足条件的信息
        /// </summary>
        /// <param name="CompanyCD">公司编码</param>
        /// <param name="OrderCD">订单编码</param>
        /// <param name="BillingNum">订单号</param>
        /// <param name="BillingType">开票类型</param>
        /// <param name="AccountsStatus">结算状态</param>
        /// <param name="StartDate">开始日期</param>
        /// <param name="EndDate">结束日期</param>
        /// <returns>DataTable</returns>
        public static DataTable SearchBillingInfo(string OrderCD, string BillingNum, string BillingType,
                                                  string AccountsStatus, string StartDate, string EndDate, string AuditStatus, string IsVoucher, string ContactUnits,
                                                  int pageIndex, int pageSize, string OrderBy, ref int totalCount)
        {
            string CompanyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD;

            try
            {
                return(BillingDBHelper.SearchBillingInfo(CompanyCD, OrderCD, BillingNum, BillingType, AccountsStatus, StartDate, EndDate,
                                                         AuditStatus, IsVoucher, ContactUnits, pageIndex, pageSize, OrderBy, ref totalCount));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }