Exemple #1
0
 private void ShowActiveCompanyDetails()
 {
     BusinessObjects.Company activeCompany = (from company in companyService.GetAllCompany()
                                              .Where(v => v.Status == true)
                                              select company).SingleOrDefault();
     SetControlsWithData(activeCompany);
 }
        private void SetDefaultData()
        {
            txtInvoiceNumber.Enabled = false;
            var lstInvoice = invoiceService.GetAllInvoices();

            if (lstInvoice != null && lstInvoice.Count == 0)
            {
                txtInvoiceNumber.Text = Constants.CONSTANT_INOVICE_NO;
            }
            else
            {
                int invoiceId = lstInvoice.Max(v => v.InvoiceId);
                txtInvoiceNumber.Text = Convert.ToString(++invoiceId);
            }

            var lstCompany = (from Company in companyService.GetAllCompany()
                              .Where(v => v.Status == true)
                              select Company).SingleOrDefault();

            CompanyFolderName = lstCompany.CompanyName;
        }
 public IActionResult Index()
 {
     return(View(_employRepo.GetAllCompany()));
 }