/// <summary> /// 判断当前操作的车辆类型是否正在使用 /// </summary> private bool JudgeCarTypeUseMethod() { bool rbool = true; arraylist.Clear(); try { string strsql = String.Format("select * from dbo.ManagementStrategy where ManagementStrategy_CarType_ID in({0}) ", strCarType_ID); arraylist.Add(strsql); strsql = String.Format("select * from DrivewayStrategy where DrivewayStrategy_CarType_ID in({0}) ", strCarType_ID); arraylist.Add(strsql); strsql = String.Format("select * from PrintInfo where Print_CarType_ID in({0}) ", strCarType_ID); arraylist.Add(strsql); strsql = String.Format("select * from CarInfo where CarInfo_CarType_ID in({0}) ", strCarType_ID); arraylist.Add(strsql); if (LinQBaseDao.GetCount(arraylist) > 0) { rbool = false; } } catch { CommonalityEntity.WriteTextLog("CarTypeForm.JudgeCarTypeUseMethod()"); } return(rbool); }