Esempio n. 1
0
        private void StockDetailEventHandler(object sender, QueryGoodsSiteEventArgs e)
        {
            List <View_StockListDetailModel> stockDetailModelList = bllView_StockDetail.GetStockDetailByGsID(e.GoodsSiteID);
            List <TB_Tray_indexModel>        trayDetailModelList  = new List <TB_Tray_indexModel>();

            if (stockDetailModelList != null)
            {
                for (int i = 0; i < stockDetailModelList.Count; i++)
                {
                    TB_Tray_indexModel trayDetailModel = bllTrayDetail.GetModel(stockDetailModelList[i].TrayID);//查询料框电芯详细
                    trayDetailModelList.Add(trayDetailModel);
                }
            }
            this.View.ShowStockDetail(stockDetailModelList, trayDetailModelList);
        }
Esempio n. 2
0
        private void UseGsEventHandler(object sender, QueryGoodsSiteEventArgs e)
        {
            int gsStatus = this.View.AskMessBox("您确定启用当选中前货位么?");

            if (gsStatus == 0)
            {
                bool status = bllGoodsSite.UpdateGoodsSiteStatus(EnumGSStoreStatus.空货位.ToString(), EnumGSRunStatus.待用.ToString(), EnumTaskCategory.出入库.ToString(), e.GoodsSiteID);
                if (status)
                {
                    this.View.ShowMessage("信息提示", "货位启用成功!");
                }
                else
                {
                    this.View.ShowMessage("信息提示", "货位启用失败!");
                }
            }
        }
Esempio n. 3
0
        private void UnuseGsEventHandler(object sender, QueryGoodsSiteEventArgs e)
        {
            int gsStatus = this.View.AskMessBox("您确定禁用当选中前货位么?");

            if (gsStatus == 0)
            {
                View_QueryStockListModel viewStockListModel = bllView_QueryStockList.GetModelByGSID(e.GoodsSiteID);
                if (viewStockListModel != null)
                {
                    this.View.ShowMessage("信息提示", "当前货位存有货物,不能禁用此货位,如要禁用当前货位,请将当前货物出库!");
                    return;
                }
                bool status = bllGoodsSite.UpdateGoodsSiteStatus(EnumGSStoreStatus.空货位.ToString(), EnumGSRunStatus.异常.ToString(), EnumTaskCategory.出入库.ToString(), e.GoodsSiteID);
                if (status)
                {
                    this.View.ShowMessage("信息提示", "货位禁用成功!");
                }
                else
                {
                    this.View.ShowMessage("信息提示", "货位禁用失败!");
                }
            }
        }
Esempio n. 4
0
 private void QueryGoodsSiteEventHandler(object sender, QueryGoodsSiteEventArgs e)
 {
     currentSelectGSID = e.GoodsSiteID;
     RefreshStockDetail(e.GoodsSiteID);
 }