Beispiel #1
0
        private void tsmi_ModifyCode_Click(object sender, EventArgs e)
        {
            if (this.parentPNP.RoleID > 2)
            {
                MessageBox.Show("当前用户没有此功能的操作权限!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (this.storageControl1.selectPositions == null)
            {
                return;
            }

            AddStockListView aslv = new AddStockListView();

            int    currRow     = this.dgv_GoodsSiteDetail.CurrentRow.Index;
            string code        = this.dgv_GoodsSiteDetail.Rows[currRow].Cells["TrayID"].Value.ToString();
            string stockListID = this.dgv_GoodsSiteDetail.Rows[currRow].Cells["StockListID"].Value.ToString();

            aslv.SetCode(code);
            aslv.ShowDialog();
            if (aslv.IsSure == true)
            {
                this.presenter.ModifyStockCode(long.Parse(stockListID), this.storageControl1.selectPositions.GoodsSiteID, aslv.StockListStr.Trim());
            }
        }
Beispiel #2
0
        private void tsmi_ModifyCode_Click(object sender, EventArgs e)
        {
            if (this.parentPNP.RoleID > 2)
            {
                MessageBox.Show("当前用户没有此功能的操作权限!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (this.dgv_StockInfor.CurrentRow == null)
            {
                return;
            }
            int currRow = this.dgv_StockInfor.CurrentRow.Index;

            BindingSource bs = new BindingSource();

            bs = (BindingSource)this.dgv_StockInfor.DataSource;
            DataTable stockList = (DataTable)bs.DataSource;

            string           stockID = stockList.Rows[currRow]["库存ID"].ToString();
            string           codestr = stockList.Rows[currRow]["料框条码"].ToString();
            AddStockListView aslv    = new AddStockListView();

            aslv.SetCode(codestr);
            aslv.ShowDialog();
            if (aslv.IsSure == true)
            {
                this.presenter.ModifyStockList(stockID, codestr, aslv.StockListStr);
            }
        }
Beispiel #3
0
        private void tsmi_AddStockList_Click(object sender, EventArgs e)
        {
            if (this.parentPNP.RoleID > 2)
            {
                MessageBox.Show("当前用户没有此功能的操作权限!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (this.storageControl1.selectPositions == null)
            {
                return;
            }

            AddStockListView aslv = new AddStockListView();

            aslv.ShowDialog();
            if (aslv.IsSure == true)
            {
                this.presenter.AddStockList(this.storageControl1.selectPositions.GoodsSiteID, aslv.StockListStr);
            }
        }
Beispiel #4
0
        private void tsmi_addStockList_Click(object sender, EventArgs e)
        {
            if (this.parentPNP.RoleID > 2)
            {
                MessageBox.Show("当前用户没有此功能的操作权限!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (this.dgv_StockInfor.CurrentRow == null)
            {
                return;
            }
            int              currRow = this.dgv_StockInfor.CurrentRow.Index;
            string           stockID = this.dgv_StockInfor.Rows[currRow].Cells["StockID"].Value.ToString();
            AddStockListView aslv    = new AddStockListView();

            aslv.ShowDialog();
            if (aslv.IsSure == true)
            {
                this.presenter.AddStockList(stockID, aslv.StockListStr);
            }
        }