public void InitData() { DataTable dt = WareHouseDAL.GetWareHouseName(); DropDownList1.DataSource = dt; DropDownList1.DataBind(); string wareHouseID = DropDownList1.SelectedItem.Value; DropDownList2.DataSource = CompanyConsignBLL.GetDepotSeat(wareHouseID); DropDownList2.DataBind(); }
private void Pagebind() { drpwarehouse.DataSource = WareHouseDAL.GetProductWareHouseInfo(); drpwarehouse.DataTextField = "Name"; drpwarehouse.DataValueField = "ID"; drpwarehouse.DataBind(); if (drpwarehouse.DataSource != null) { drpwarehouse.Attributes.Add("onchange", "showNext(this.options[selectedIndex].value)"); drpdepotseat.Attributes.Add("onchange", "getdepotseat()"); } if (drpwarehouse.Items.Count > 0) { drpdepotseat.DataSource = DepotSeatDAL.GetDepotSeats(drpwarehouse.SelectedItem.Value.ToString()); drpdepotseat.DataTextField = "Name"; drpdepotseat.DataValueField = "ID"; drpdepotseat.DataBind(); } }
public static DataTable GetWareHouseName() { return(WareHouseDAL.GetWareHouseName()); }
/// <summary> /// 获取仓库xml字符串 /// </summary> /// <returns></returns> public static string GetWareHouseXML() { return(WareHouseDAL.GetWareHouseXML()); }
/// <summary> /// 获取出库名(Outstock.aspx) /// </summary> /// <param name="WareHouseID"></param> /// <returns></returns> public static ListItem GetWareHouseName(string storeOrderID) { return(WareHouseDAL.GetWareHouseName(storeOrderID)); }
/// <summary> /// 获取指定的仓库信息 /// </summary> /// <param name="wareHouseID">仓库ID</param> /// <returns>返回DataTable对象</returns> public static DataTable GetWareHouseInfoByWareHouseID(int wareHouseID) { return(WareHouseDAL.GetWareHouseInfoByWareHouseID(wareHouseID)); }
/// <summary> /// 通过仓库名称获取仓库名称的行数 /// </summary> /// <param name="wareHouseName">仓库名称</param> public static int GetWareHouseNameCountByWareHouseName(string wareHouseName) { return(WareHouseDAL.GetWareHouseNameCountByWareHouseName(wareHouseName)); }
/// <summary> /// 读取仓库名称 /// </summary> /// <returns></returns> public string GetWareHouseNameByID(string warehouseId) { return(WareHouseDAL.GetWareHouseNameByID(warehouseId)); }
/// <summary> /// 获取最大的权限编号 /// </summary> /// <returns>返回最大的权限编号</returns> public static int GetMaxWareControlFromWareHouse() { return(WareHouseDAL.GetMaxWareControlFromWareHouse()); }
/// <summary> /// 查询仓库信息 /// </summary> /// <param name="WareHouseID"></param> /// <returns></returns> public static WareHouseModel GetWareHouseItem(int WareHouseID) { return(WareHouseDAL.GetWareHouseItem(WareHouseID)); }
/// <summary> /// Get the information of the WareHouse by Number and CountryCode /// </summary> /// <param name="number">Number</param> /// <param name="countryCode">CountryCode</param> /// <returns>Return DataTable Object</returns> public static DataTable GetWareHouseInfoByNumberCountryCode(string number, string countryCode) { return(WareHouseDAL.GetWareHouseInfoByNumberCountryCode(number, countryCode)); }
/// <summary> /// 通过仓库ID和仓库名称获取仓库名称的行数 /// </summary> /// <param name="depotSeatModel">仓库模型</param> /// <returns>返回通过仓库ID和仓库名称获取仓库名称的行数</returns> public static int GetWareHouseNameCountByWareHouseIDName(WareHouseModel wareHouseModel) { return(WareHouseDAL.GetWareHouseNameCountByWareHouseIDName(wareHouseModel)); }
/// <summary> /// 添加仓库信息 /// </summary> /// <param name="psm">仓库模型</param> /// <returns>返回添加仓库模型所影响的行数</returns> public static int AddWareHouse(WareHouseModel psm) { return(WareHouseDAL.AddWareHouse(psm)); }
/// <summary> /// Judge the WareHouseId whether exist by Id before delete or update /// </summary> /// <param name="Id">Id</param> /// <returns>Return the counts of the WareHouse by Id</returns> public static int WareHouseIdIsExist(int Id) { return(WareHouseDAL.WareHouseIdIsExist(Id)); }
/// <summary> /// Judge the WareHouseId whether has operation by Id before delete /// </summary> /// <param name="Id">Id</param> /// <returns>Return the counts of the WareHouse by Id</returns> public static int WareHouseIdWhetherHasOperation(int Id) { return(WareHouseDAL.WareHouseIdWhetherHasOperation(Id)); }
/// <summary> /// 读取产品基础数据的仓库信息 /// CYB /// </summary> /// <returns></returns> public DataTable GetProductWareHouseInfo() { return(WareHouseDAL.GetProductWareHouseInfo()); }
public static DataTable GetWareHouseName_Currency(string currency) { return(WareHouseDAL.GetWareHouseName_Currency(currency)); }
/// <summary> /// 更新指定仓库信息 /// </summary> /// <param name="psm">仓库模型</param> /// <returns>返回更新指定仓库信息所影响的行数</returns> public static int UpdWareHouseByWareHouseID(WareHouseModel psm) { return(WareHouseDAL.UpdWareHouseByWareHouseID(psm)); }
/// <summary> /// 删除指定仓库信息 /// </summary> /// <param name="WareHouseID">仓库ID</param> /// <returns>返回删除指定仓库信息所影响的行数</returns> public static int DelWareHouseByWareHouseID(int WareHouseID) { return(WareHouseDAL.DelWareHouseByWareHouseID(WareHouseID)); }
/// <summary> /// 获取所有仓库权限控制编号 /// </summary> /// <returns></returns> public static IList <WareHouseModel> GetAllWareHouse() { return(WareHouseDAL.GetWareHouses()); }