コード例 #1
0
 private void ShowActiveCompanyDetails()
 {
     BusinessObjects.Company activeCompany = (from company in companyService.GetAllCompany()
                                              .Where(v => v.Status == true)
                                              select company).SingleOrDefault();
     SetControlsWithData(activeCompany);
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public IActionResult Index()
 {
     return(View(_employRepo.GetAllCompany()));
 }