public void AutoInvoiceGenerate()
        {
            decimal AlreadyExistInvoice = _PurchaseRepository.AlreadyExistInvoice();
            int     code = 1;

            if (AlreadyExistInvoice >= 1)
            {
                var LastExistInvoice = _PurchaseRepository.LastExistInvoice();
                if (LastExistInvoice != null)
                {
                    code = Convert.ToInt32(LastExistInvoice.Invoice);
                    code++;
                }
                txtInvoice.Text = code.ToString("000");
            }
            else
            {
                txtInvoice.Text = "001";
            }
        }