Esempio n. 1
0
    public void InitData()
    {
        DataTable dt = WareHouseDAL.GetWareHouseName();

        DropDownList1.DataSource = dt;
        DropDownList1.DataBind();

        string wareHouseID = DropDownList1.SelectedItem.Value;

        DropDownList2.DataSource = CompanyConsignBLL.GetDepotSeat(wareHouseID);
        DropDownList2.DataBind();
    }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
 public static DataTable GetWareHouseName()
 {
     return(WareHouseDAL.GetWareHouseName());
 }
Esempio n. 4
0
 /// <summary>
 /// 获取仓库xml字符串
 /// </summary>
 /// <returns></returns>
 public static string GetWareHouseXML()
 {
     return(WareHouseDAL.GetWareHouseXML());
 }
Esempio n. 5
0
 /// <summary>
 /// 获取出库名(Outstock.aspx)
 /// </summary>
 /// <param name="WareHouseID"></param>
 /// <returns></returns>
 public static ListItem GetWareHouseName(string storeOrderID)
 {
     return(WareHouseDAL.GetWareHouseName(storeOrderID));
 }
Esempio n. 6
0
 /// <summary>
 /// 获取指定的仓库信息
 /// </summary>
 /// <param name="wareHouseID">仓库ID</param>
 /// <returns>返回DataTable对象</returns>
 public static DataTable GetWareHouseInfoByWareHouseID(int wareHouseID)
 {
     return(WareHouseDAL.GetWareHouseInfoByWareHouseID(wareHouseID));
 }
Esempio n. 7
0
 /// <summary>
 /// 通过仓库名称获取仓库名称的行数
 /// </summary>
 /// <param name="wareHouseName">仓库名称</param>
 public static int GetWareHouseNameCountByWareHouseName(string wareHouseName)
 {
     return(WareHouseDAL.GetWareHouseNameCountByWareHouseName(wareHouseName));
 }
Esempio n. 8
0
 /// <summary>
 /// 读取仓库名称
 /// </summary>
 /// <returns></returns>
 public string GetWareHouseNameByID(string warehouseId)
 {
     return(WareHouseDAL.GetWareHouseNameByID(warehouseId));
 }
Esempio n. 9
0
 /// <summary>
 /// 获取最大的权限编号
 /// </summary>
 /// <returns>返回最大的权限编号</returns>
 public static int GetMaxWareControlFromWareHouse()
 {
     return(WareHouseDAL.GetMaxWareControlFromWareHouse());
 }
Esempio n. 10
0
 /// <summary>
 /// 查询仓库信息
 /// </summary>
 /// <param name="WareHouseID"></param>
 /// <returns></returns>
 public static WareHouseModel GetWareHouseItem(int WareHouseID)
 {
     return(WareHouseDAL.GetWareHouseItem(WareHouseID));
 }
Esempio n. 11
0
 /// <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));
 }
Esempio n. 12
0
 /// <summary>
 /// 通过仓库ID和仓库名称获取仓库名称的行数
 /// </summary>
 /// <param name="depotSeatModel">仓库模型</param>
 /// <returns>返回通过仓库ID和仓库名称获取仓库名称的行数</returns>
 public static int GetWareHouseNameCountByWareHouseIDName(WareHouseModel wareHouseModel)
 {
     return(WareHouseDAL.GetWareHouseNameCountByWareHouseIDName(wareHouseModel));
 }
Esempio n. 13
0
 /// <summary>
 /// 添加仓库信息
 /// </summary>
 /// <param name="psm">仓库模型</param>
 /// <returns>返回添加仓库模型所影响的行数</returns>
 public static int AddWareHouse(WareHouseModel psm)
 {
     return(WareHouseDAL.AddWareHouse(psm));
 }
Esempio n. 14
0
 /// <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));
 }
Esempio n. 15
0
 /// <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));
 }
Esempio n. 16
0
 /// <summary>
 /// 读取产品基础数据的仓库信息
 /// CYB
 /// </summary>
 /// <returns></returns>
 public DataTable GetProductWareHouseInfo()
 {
     return(WareHouseDAL.GetProductWareHouseInfo());
 }
Esempio n. 17
0
 public static DataTable GetWareHouseName_Currency(string currency)
 {
     return(WareHouseDAL.GetWareHouseName_Currency(currency));
 }
Esempio n. 18
0
 /// <summary>
 /// 更新指定仓库信息
 /// </summary>
 /// <param name="psm">仓库模型</param>
 /// <returns>返回更新指定仓库信息所影响的行数</returns>
 public static int UpdWareHouseByWareHouseID(WareHouseModel psm)
 {
     return(WareHouseDAL.UpdWareHouseByWareHouseID(psm));
 }
Esempio n. 19
0
 /// <summary>
 /// 删除指定仓库信息
 /// </summary>
 /// <param name="WareHouseID">仓库ID</param>
 /// <returns>返回删除指定仓库信息所影响的行数</returns>
 public static int DelWareHouseByWareHouseID(int WareHouseID)
 {
     return(WareHouseDAL.DelWareHouseByWareHouseID(WareHouseID));
 }
Esempio n. 20
0
 /// <summary>
 /// 获取所有仓库权限控制编号
 /// </summary>
 /// <returns></returns>
 public static IList <WareHouseModel> GetAllWareHouse()
 {
     return(WareHouseDAL.GetWareHouses());
 }