Exemple #1
0
        private void btnStockTakingStart_Click(object sender, EventArgs e)
        {
            if (masterID.HasValue)
            {
                var result = stock.StartStockTaking(new StockTakingAgrs {
                    ID = masterID.Value
                });
                if (result)
                {
                    canEdit = true;

                    btnStockTakingEnd.Enabled = true;

                    btnStockTakingStart.Enabled = false;

                    txtNameAbbr.ReadOnly    = false;
                    txtProductCode.ReadOnly = false;
                    txtProductName.ReadOnly = false;
                    gridViewStockTaking.RefreshData();
                }
            }
        }