Пример #1
0
        public static DataTable SelectPurchaseApply(PurchaseApplyModel PurchaseApplyM, int pageIndex, int pageCount, string OrderBy, ref int totalCount)
        {
            try
            {
                DataTable dt = PurchaseApplyDBHelper.SelectPrimary(PurchaseApplyM, pageIndex, pageCount, OrderBy, ref totalCount);
                //dt.Columns.Add("IsCite");
                //dt.Columns.Add("IsCiteName");

                //for (int i = 0; i < dt.Rows.Count; i++)
                //{
                //    string ID = dt.Rows[i]["ID"].ToString();

                //    bool IsCite = PurchaseApplyBus.IsCitePurApply(ID);

                //    dt.Rows[i]["IsCite"] = IsCite;
                //    dt.Rows[i]["IsCiteName"] = IsCite ? '是' : '否';
                //}

                return(dt);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
 public static DataTable SelectPurchaseApply(PurchaseApplyModel PurchaseApplyM, string OrderBy)
 {
     try
     {
         DataTable dt = PurchaseApplyDBHelper.SelectPrimary(PurchaseApplyM, OrderBy);
         return(dt);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }