public ReviewScheduleController()
 {
     employeeBL      = new EmployeeBL();
     departmentBL    = new DepartmentBL();
     designationBL   = new DesignationBL();
     reviewDetailsBL = new ReviewDetailsBL();
 }
Esempio n. 2
0
 /// <summary>
 /// creating object
 /// </summary>
 public WebAPITest()
 {
     //Arrange
     employeeRL          = new EmployeeRL();
     employeeBL          = new EmployeeBL(employeeRL);
     employeesController = new EmployeesController(employeeBL);
 }
Esempio n. 3
0
        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");
        }
Esempio n. 5
0
 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;
 }
Esempio n. 8
0
 public EmployeesController(IEmployeeBL employeeBL) : base(employeeBL)
 {
 }
Esempio n. 9
0
        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();
            }
        }
Esempio n. 10
0
 public EmployeeDepartmentsController(IEmployeeBL employeeBL)
 {
     _employeeBL = employeeBL;
 }
 /// <summary>
 /// EmployeeWebService
 /// </summary>
 public EmployeeWebService()
 {
     employeeBL = new EmployeeBL();
 }
Esempio n. 12
0
 /// <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();
 }
Esempio n. 14
0
 /// <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;
 }
Esempio n. 15
0
 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;
 }
Esempio n. 17
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="businessLayer">To Ascess all properties of IEmployeeBL</param>
 public EmployeeController(IEmployeeBL businessLayer)
 {
     this.businessLayer = businessLayer;
 }
Esempio n. 18
0
 public ManagerController()
 {
     employeeBL = new EmployeeBL();
 }
Esempio n. 19
0
 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;
 }
Esempio n. 21
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="businessLayer">To Ascess all properties of IEmployeeBL</param>
 public EmployeeManagementController(IEmployeeBL businessLayer)
 {
     this.businessLayer = businessLayer;
 }
Esempio n. 22
0
 /// <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;
 }
Esempio n. 23
0
 public EmployeController(IEmployeeBL _repo)
 {
     this.repo = _repo;
 }
 public EmployeeController(IEmployeeBL iEmployeeBL)
 {
     _IEmployeeBL = iEmployeeBL;
 }
Esempio n. 25
0
 public EmployeeController(IEmployeeBL empService)
 {
     this.empService = empService;
 }
 public EmployeesController(IBaseBL <Employee> baseBL, IEmployeeBL employeeBL) : base(baseBL)
 {
     _employeeBL = employeeBL;
 }
Esempio n. 27
0
 public RegisterEmployee(IEmployeeBL employeeRepo)
 {
     this.employeeRepo = employeeRepo;
 }
Esempio n. 28
0
 public EmployeeLocationsController(IEmployeeBL employeeBL)
 {
     _employeeBL = employeeBL;
 }
 public EmployeeController(IEmployeeBL employeeBL)
 {
     this.employeeBL = employeeBL;
 }
Esempio n. 30
0
 public EmployeeController(IEmployeeBL employee)
 {
     _employeeBL = employee;
 }