Esempio n. 1
0
 /// <summary>
 /// 删除PathDetail信息
 /// </summary>
 /// <param name="id">记录Id</param>
 /// <returns>此次操作影响的行数</returns>
 public int DeletePathDetail(int id)
 {
     if (pathDetailDal == null)
     {
         pathDetailDal = new PathDetailDal();
     }
     int result = pathDetailDal.DeletePathDetail(id);
     return result;
 }
Esempio n. 2
0
 /// <summary>
 /// 增加PathDetail信息
 /// </summary>
 /// <param name="pathDetail">线路具体信息类对象</param>
 /// <returns>此次操作影响的行数</returns>
 public int InsertPathDetail(PathDetailModel pathDetail)
 {
     if (pathDetailDal == null)
     {
         pathDetailDal = new PathDetailDal();
     }
     int result = pathDetailDal.InsertPathDetail(pathDetail);
     return result;
 }
Esempio n. 3
0
 /// <summary>
 /// 修改PathDetail信息
 /// </summary>
 /// <param name="pathDetail">线路具体信息类对象</param>
 /// <returns>此次操作影响的行数</returns>
 public int UpdatePathDetail(PathDetailModel pathDetail)
 {
     if (pathDetailDal == null)
     {
         pathDetailDal = new PathDetailDal();
     }
     int result = pathDetailDal.UpdatePathDetail(pathDetail);
     return result;
 }
Esempio n. 4
0
 /// <summary>
 /// 增加PathDetail信息
 /// </summary>
 /// <param name="strCondition">查询条件</param>
 /// <returns>返回的记录表信息</returns>
 public DataTable SelectPathDetail(string strCondition)
 {
     if (pathDetailDal == null)
     {
         pathDetailDal = new PathDetailDal();
     }
     DataTable dt = pathDetailDal.SelectPathDetail(strCondition);
     return dt;
 }