Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public List<T_OA_VEHICLEUSEAPP> Get_ByParentID(string parentID)
 {
     VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll();
     return vddBll.Get_ByParentID(parentID);
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 public int Del_VDDetails(string[] ids)
 {
     
     VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll();
     return vddBll.Del_VDDetail(ids);
 }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
        public List <T_OA_VEHICLEUSEAPP> Get_ByParentID(string parentID)
        {
            VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll();

            return(vddBll.Get_ByParentID(parentID));
        }
Esempio n. 8
0
        public int Del_VDDetails(string[] ids)
        {
            VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll();

            return(vddBll.Del_VDDetail(ids));
        }