public List <T_OA_VEHICLEDISPATCHDETAIL> GetDetailListByDispatchId(string dispatchId) { VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); IQueryable <T_OA_VEHICLEDISPATCHDETAIL> detailList = vddBll.GetDetailByDispatchId(dispatchId); if (detailList == null) { return(null); } return(detailList.ToList()); }
public int DeleteVehicleDispatchList(List <T_OA_VEHICLEDISPATCH> vehicleDispatchList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); foreach (T_OA_VEHICLEDISPATCH obj in vehicleDispatchList) { if (vddBll.DeleteVehicleDispatchDetailByDiaspatchId(obj.VEHICLEDISPATCHID) == -1) { return(-1); } if (!vehicleDispatchManagerBll.DeleteVehicleDispatch(obj.VEHICLEDISPATCHID)) { return(-1); } } return(1); }
public List<T_OA_VEHICLEUSEAPP> Get_ByParentID(string parentID) { VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); return vddBll.Get_ByParentID(parentID); }
public List<T_OA_VEHICLEDISPATCHDETAIL> GetDetailListByDispatchId(string dispatchId) { VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); IQueryable<T_OA_VEHICLEDISPATCHDETAIL> detailList = vddBll.GetDetailByDispatchId(dispatchId); if (detailList == null) { return null; } return detailList.ToList(); }
public int Del_VDDetails(string[] ids) { VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); return vddBll.Del_VDDetail(ids); }
public int DeleteVehicleDispatchList(List<T_OA_VEHICLEDISPATCH> vehicleDispatchList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); foreach (T_OA_VEHICLEDISPATCH obj in vehicleDispatchList) { if (vddBll.DeleteVehicleDispatchDetailByDiaspatchId(obj.VEHICLEDISPATCHID) == -1) { return -1; } if (!vehicleDispatchManagerBll.DeleteVehicleDispatch(obj.VEHICLEDISPATCHID)) { return -1; } } return 1; }
public List <T_OA_VEHICLEUSEAPP> Get_ByParentID(string parentID) { VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); return(vddBll.Get_ByParentID(parentID)); }
public int Del_VDDetails(string[] ids) { VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); return(vddBll.Del_VDDetail(ids)); }