Пример #1
0
        private void ModifyGsStatus()
        {
            if (this.dgv_StockInfor.SelectedRows.Count == 0)
            {
                MessageBox.Show("请选中要要修改的货位!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            EditGSStaView egsv = new EditGSStaView();

            egsv.ShowDialog();
            if (egsv.IsSure == true)
            {
                if (PoupAskmes("您确定要修改选中货位状态么?") != 1)
                {
                    return;
                }
                List <GsPosModel> gsList = new List <GsPosModel>();
                for (int i = 0; i < this.dgv_StockInfor.SelectedRows.Count; i++)
                {
                    GsPosModel gsPos = new GsPosModel();

                    int rowth   = int.Parse(this.dgv_StockInfor.SelectedRows[i].Cells["排"].Value.ToString());
                    int colth   = int.Parse(this.dgv_StockInfor.SelectedRows[i].Cells["列"].Value.ToString());
                    int layerth = int.Parse(this.dgv_StockInfor.SelectedRows[i].Cells["层"].Value.ToString());

                    gsPos.HouseName = this.cb_StoreHouse.Text;
                    gsPos.Rowth     = rowth;
                    gsPos.Colth     = colth;
                    gsPos.Layerth   = layerth;
                    gsList.Add(gsPos);
                }
                this.presenter.ModifyGsStatus(gsList, egsv.GSStatus, egsv.GSTaskStatus);
            }
        }
Пример #2
0
        private void ShowCellExpandEventHandler(object sender, CellPositionEventArgs e)
        {
            EditGSStaView       egssv = new EditGSStaView();
            ExpandFormEventArgs efea  = new ExpandFormEventArgs();

            efea.ExpandForm = egssv;
            // this.iStorageManage.EventStorageViewAddExpandForm.Invoke(this, efea);
        }
Пример #3
0
        private void ModifyGsStatus()
        {
            if (this.storageControl1.selectPositions == null)
            {
                MessageBox.Show("请选中要要修改的货位!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            EditGSStaView egsv = new EditGSStaView();

            egsv.ShowDialog();
            if (egsv.IsSure == true)
            {
                if (PoupAskmes("您确定要修改选中货位状态么?") != 1)
                {
                    return;
                }

                long gsID = this.storageControl1.selectPositions.GoodsSiteID;
                this.presenter.ModifyGsStatus(this.tscb_StoreHouseName.Text, gsID, egsv.GSStatus, egsv.GSTaskStatus);
            }
        }