コード例 #1
0
 public static bool IsCitePurApply(string ID)
 {
     try
     {
         return(PurchaseApplyDBHelper.IsCitePurApply(ID));
     }
     catch
     {
         throw;
     }
 }
コード例 #2
0
        //填充主表
        public static DataTable GetPurchaseApply(string ID)
        {
            SqlCommand comm = PurchaseApplyDBHelper.GetPurchaseApply(ID);
            DataTable  dt   = SqlHelper.ExecuteSearch(comm);

            dt.Columns.Add("IsCite");
            for (int i = 0; i < dt.Rows.Count; ++i)
            {
                //string ID = dt.Rows[i]["ID"].ToString();
                bool IsCite = PurchaseApplyDBHelper.IsCitePurApply(ID);
                dt.Rows[i]["IsCite"] = IsCite;
            }
            return(dt);
        }