public DepotSeat GetDepotByID(string depotid) { DataTable dt = SystemDAL.BaseProvider.GetDepotByID(depotid); DepotSeat model = new DepotSeat(); if (dt.Rows.Count > 0) { model.FillData(dt.Rows[0]); } return model; }
public List<DepotSeat> GetDepotSeatsByWareID(string wareid, string clientid) { DataTable dt = SystemDAL.BaseProvider.GetDepotSeatsByWareID(wareid); List<DepotSeat> list = new List<DepotSeat>(); foreach (DataRow dr in dt.Rows) { DepotSeat model = new DepotSeat(); model.FillData(dr); list.Add(model); } return list; }
/// <summary> /// 根据仓库ID获取货位 /// </summary> /// <param name="wareid"></param> /// <param name="clientid"></param> /// <returns></returns> public List<DepotSeat> GetDepotSeatsByWareID(string wareid, string clientid) { var dal = new WarehouseDAL(); DataTable dt = dal.GetDepotSeatsByWareID(wareid); List<DepotSeat> list = new List<DepotSeat>(); foreach (DataRow dr in dt.Rows) { DepotSeat model = new DepotSeat(); model.FillData(dr); list.Add(model); } return list; }
public List<DepotSeat> GetDepotSeats(string keyWords, int pageSize, int pageIndex, ref int totalCount, ref int pageCount, string clientID, string wareid = "") { DataSet ds = SystemDAL.BaseProvider.GetDepotSeats(keyWords, pageSize, pageIndex, ref totalCount, ref pageCount, clientID, wareid); List<DepotSeat> list = new List<DepotSeat>(); foreach (DataRow dr in ds.Tables[0].Rows) { DepotSeat model = new DepotSeat(); model.FillData(dr); list.Add(model); } return list; }
/// <summary> /// 获取货位详情 /// </summary> /// <param name="id"></param> /// <returns></returns> public DepotSeat GetDepotByID(string depotid) { var dal = new WarehouseDAL(); DataTable dt = dal.GetDepotByID(depotid); DepotSeat model = new DepotSeat(); if (dt.Rows.Count > 0) { model.FillData(dt.Rows[0]); } return model; }