private void Autogenerate()
        {
            SaleController saleController = new SaleController();
            SaleInfo       saleInfo       = saleController.AutogenerateCode(code);

            this.txtSaleNo.Text = saleInfo.AutoCode;
        }