public ReviewScheduleController() { employeeBL = new EmployeeBL(); departmentBL = new DepartmentBL(); designationBL = new DesignationBL(); reviewDetailsBL = new ReviewDetailsBL(); }
/// <summary> /// creating object /// </summary> public WebAPITest() { //Arrange employeeRL = new EmployeeRL(); employeeBL = new EmployeeBL(employeeRL); employeesController = new EmployeesController(employeeBL); }
public EmployeeBLTests() { var container = new UnityContainer(); IOCRegistration.Register(container); this.employeeBL = container.Resolve <IEmployeeBL>(); }
/// <summary> /// addEmployeeDetail /// </summary> private void addEmployeeDetail() { employeeBL = new EmployeeBL(); Employee emp = GetEmployee(); int row = employeeBL.AddEmpDetails(emp); lblMsg.Text = (row > 0) ? "Record Added successfuly" : "Record not Added"; SessionManagement.SetUserSession(emp); Response.Redirect("~/MailDetailsForm.aspx"); }
public EmployeeController(IEmployeeBL EmployeeBusinessLayerInject) { try { EmployeeBusinessLayer = EmployeeBusinessLayerInject; } catch (Exception e) { Console.WriteLine(e.Message); } }
public EmployeeController(IEmployeeBL iEmployeeLogic) { _IEmployeeLogic = iEmployeeLogic; }
//Constructor public EmployeeController(IEmployeeBL _employeeBL) { employeeBL = _employeeBL; }
public EmployeesController(IEmployeeBL employeeBL) : base(employeeBL) { }
private void InitForm() { InitializeComponent(); _invoiceDetailGridModel = new List <InvoiceDetailGridModel>(); this._serviceTaxBL = new TaxBL(); this._serviceTypeOfPayBL = new TypeOfPayBL(); this._serviceCustomerBL = new CustomerBL(); this._serviceEmployeeBL = new EmployeeBL(); this._serviceInvoiceBL = new InvoiceBL(); this._serviceProductBL = new ProductBL(); _sbErrores = new StringBuilder(); var listOfEmployeeToComboBox = this._serviceEmployeeBL.SpGetEmployeeToComboBox(); EmployeesComboBox.DataSource = listOfEmployeeToComboBox; EmployeesComboBox.DisplayMember = "FullName"; EmployeesComboBox.ValueMember = "EmployeeID"; EmployeesComboBox.SelectedIndex = 1; listOfCustomeresToComboBox = this._serviceCustomerBL.Sp_GetAllCustomerToSearch(); SearchCustomerComboBox.DataSource = listOfCustomeresToComboBox; SearchCustomerComboBox.DisplayMember = "CompanyName"; SearchCustomerComboBox.ValueMember = "CustomerID"; SearchCustomerComboBox.SelectedIndex = -1; AutoCompleteStringCollection ac = new AutoCompleteStringCollection(); foreach (var item in listOfCustomeresToComboBox) { ac.Add(item.CompanyName); } SearchCustomerComboBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; SearchCustomerComboBox.AutoCompleteSource = AutoCompleteSource.CustomSource; SearchCustomerComboBox.AutoCompleteCustomSource = ac; SearchCustomerComboBox.Focus(); listOfProducts = this._serviceProductBL.ProductToSearching(); SearchProductComboBox.DataSource = listOfProducts; SearchProductComboBox.DisplayMember = "ProductName"; SearchProductComboBox.ValueMember = "ProductID"; SearchProductComboBox.SelectedIndex = -1; AutoCompleteStringCollection acproducts = new AutoCompleteStringCollection(); foreach (var item in listOfProducts) { acproducts.Add(item.ProductName); } SearchProductComboBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; SearchProductComboBox.AutoCompleteSource = AutoCompleteSource.CustomSource; SearchProductComboBox.AutoCompleteCustomSource = acproducts; SearchProductComboBox.SelectedIndexChanged += SearchProductComboBox_SelectedIndexChanged; //SearchProductComboBox.SelectedValueChanged += new System.EventHandler(this.SearchProductComboBox_SelectedValueChanged); SearchCustomerComboBox.SelectedIndexChanged += SearchCustomerComboBox_SelectedIndexChanged; SearchCustomerComboBox.SelectedValueChanged += new System.EventHandler(this.SearchCustomerComboBox_SelectedValueChanged); this.TypeOfPayComboBox.DataSource = this._serviceTypeOfPayBL.SpTypeOfPay(); this.TypeOfPayComboBox.DisplayMember = "Description"; this.TypeOfPayComboBox.ValueMember = "TypeOfPayID"; this.TypeOfPayComboBox.SelectedValue = 2; this.InvoiceDateRadDateTimePicker.ValueChanged += new System.EventHandler(this.InvoiceDateRadDateTimePicker_ValueChanged); InvoiceDateRadDateTimePicker.Value = DateTime.Now; this.TaxIDComboBox.DataSource = this._serviceTaxBL.Sp_Taxes(); this.TaxIDComboBox.DisplayMember = "TaxDescription"; this.TaxIDComboBox.ValueMember = "TaxID"; this.TaxIDComboBox.TextChanged += new System.EventHandler(this.TaxIDComboBox_TextChanged); this.TypeOfPayComboBox.TextChanged += TypeOfPayComboBox_TextChanged; if (this._stateForm == StateForm.NEW) { InvoiceNumberRadTextBox.Text = this._serviceInvoiceBL.SpGetLastInvoiceNumber().Value.GetInvoiceNumberExt(); } }
public EmployeeDepartmentsController(IEmployeeBL employeeBL) { _employeeBL = employeeBL; }
/// <summary> /// EmployeeWebService /// </summary> public EmployeeWebService() { employeeBL = new EmployeeBL(); }
/// <summary> /// Declare employee test case constructor /// </summary> public EmployeeTestCase() { repository = new EmployeesRL(); business = new EmployeeBL(repository); employeeController = new EmployeesController(business, distributedCache); }
public AdminController() { departmentBL = new DepartmentBL(); employeeBL = new EmployeeBL(); }
/// <summary> /// Initializes a new instance of the <see cref="EmployeesController"/> class. /// </summary> /// <param name="employeeBusiness">The employee business.</param> public EmployeesController(IEmployeeBL employeeBusiness) { this.employeeBusiness = employeeBusiness; }
public LoginRadForm() { InitializeComponent(); this._serviceEmployeeBL = new EmployeeBL(); }
/// <summary> /// Initializes a new instance of the <see cref="EmployeeController" /> class. /// </summary> /// <param name="businessDependencyInjection">dependency injection</param> public EmployeeController(IEmployeeBL businessDependencyInjection) { this.businessLayer = businessDependencyInjection; }
/// <summary> /// Constructor /// </summary> /// <param name="businessLayer">To Ascess all properties of IEmployeeBL</param> public EmployeeController(IEmployeeBL businessLayer) { this.businessLayer = businessLayer; }
public ManagerController() { employeeBL = new EmployeeBL(); }
public EmployeeController() { employeeBL = new EmployeeBL(); }
/// <summary> /// Initializes a new instance of the <see cref="EmployeeController"/> class. /// </summary> /// /// <param name="employeeBusiness">It is an object of IEmployee Business</param> public EmployeeController(IEmployeeBL employeeBusiness, IDistributedCache distributedCache) { this.employeeBusiness = employeeBusiness; this.distributedCache = distributedCache; }
/// <summary> /// Constructor /// </summary> /// <param name="businessLayer">To Ascess all properties of IEmployeeBL</param> public EmployeeManagementController(IEmployeeBL businessLayer) { this.businessLayer = businessLayer; }
/// <summary> /// khởi tạo kết nối với kiểm tra nghiệp vụ /// </summary> /// <param name="employeeBL"></param> public EmployeesController(IEmployeeBL employeeBL) { _employeeBL = employeeBL; }
public EmployeController(IEmployeeBL _repo) { this.repo = _repo; }
public EmployeeController(IEmployeeBL iEmployeeBL) { _IEmployeeBL = iEmployeeBL; }
public EmployeeController(IEmployeeBL empService) { this.empService = empService; }
public EmployeesController(IBaseBL <Employee> baseBL, IEmployeeBL employeeBL) : base(baseBL) { _employeeBL = employeeBL; }
public RegisterEmployee(IEmployeeBL employeeRepo) { this.employeeRepo = employeeRepo; }
public EmployeeLocationsController(IEmployeeBL employeeBL) { _employeeBL = employeeBL; }
public EmployeeController(IEmployeeBL employeeBL) { this.employeeBL = employeeBL; }
public EmployeeController(IEmployeeBL employee) { _employeeBL = employee; }