コード例 #1
0
 public static int InseryCategoryInspection(Base_BLL_AdminSettings Obj)
 {
     try
     {
         SqlHelper.ExecuteScalar(Base_BLL_CommonSettings.ConnectionString, "USP_Insery_Category_Inspection", Obj.ParentCatId, Obj.CategoryName, Obj.CategoryDesc);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(1);
 }
コード例 #2
0
        public static DataView GetInspectionCategory(Base_BLL_AdminSettings obj)
        {
            DataSet ds = new DataSet();

            try
            {
                ds = SqlHelper.ExecuteDataset(Base_BLL_CommonSettings.ConnectionString, "Get_Inspection_Category", obj.ParentCatId);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            DataView dv = new DataView(ds.Tables[0]);

            return(dv);
        }