Exemplo n.º 1
0
 public MstLocationMappingController(IPageBLL PageBll, ILocationMappingBLL LocationMappingBLL, IEmployeeBLL EmployeeBLL) : base(PageBll, Enums.MenuList.MasterLocationMapping)
 {
     _locationMappingBLL = LocationMappingBLL;
     _pageBLL            = PageBll;
     _employeeBLL        = EmployeeBLL;
     _mainMenu           = Enums.MenuList.MasterData;
 }
Exemplo n.º 2
0
 protected void BGCgrdview_RowUpdating(object sender, GridViewUpdateEventArgs e)
 {
     try
     {
         GridViewRow  row                  = BGCgrdview.Rows[e.RowIndex];
         Label        lbladminid2          = (Label)row.FindControl("lbladminid2");
         DropDownList ddlstatus            = (DropDownList)row.FindControl("ddlstatus");
         Label        lblStatusChangeTime2 = (Label)row.FindControl("lblStatusChangeTime2");
         int          adminid              = Convert.ToInt32(lbladminid2.Text);
         string       status               = ddlstatus.SelectedValue;
         DateTime     statuschangetime     = DateTime.Now;
         IEmployeeBO  objbo                = EmployeeBOFactory.CreateEmployee(adminid, status, statuschangetime);
         IEmployeeBLL objbll               = EmployeeFactoryBLL.createnew();
         int          check                = objbll.displayapproved(objbo);
         if (check > 0)
         {
             BGCgrdview.EditIndex = -1;
             bgcdata();
         }
         else
         {
             Response.Redirect("<script>alert('Employee details are not updated please update again')</script>");
         }
     }
     catch (Exception ex)
     {
         Response.Write("<script>alert('Exception: " + ex.Message + "');</script>");
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                txtempname.Text = Session["candName"].ToString();

                txtloc.Text  = Session["loc"].ToString();
                txtgend.Text = Session["Gender"].ToString();

                var dateTimeNow = DateTime.Parse(Session["DOB"].ToString());
                txtdob.Text = dateTimeNow.ToShortDateString();

                var dateTimeNow1 = DateTime.Parse(Session["DOJ"].ToString());
                txtdoj.Text = dateTimeNow1.ToShortDateString();
                txtPid.Text = Session["ProjectID"].ToString();

                if (!IsPostBack)
                {
                    IEmployeeBLL objEmpBLL = EmployeeFactoryBLL.createEmployeeBLL();
                    List <int>   list1     = objEmpBLL.getUnitHeadID();
                    ddlunithead.DataSource = list1;
                    ddlunithead.DataBind();
                    ddlunithead.Items.Insert(0, "--Select--");
                }
            }


            catch (Exception)
            {
            }
        }
Exemplo n.º 4
0
        protected void BtnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                string       empName     = txtEmpName.Text;
                string       designation = txtdesignation.Text;
                Int32        ctc         = Convert.ToInt32(txtctc.Text);
                Int32        unitHead    = Convert.ToInt32(txtUnitHead.Text);
                IEmployeeBO  objBo       = EmployeeBOFactory.createEmployeeBO(empName, designation, ctc, unitHead);
                IEmployeeBLL objBll      = EmployeeFactoryBLL.createEmployeeBLL();
                int          res         = objBll.editEmployees(objBo);

                if (res > 0)
                {
                    Response.Write("<script>if(confirm('Employee Details Updated  Successfully.')){document.location='EditEmployeeDetails.aspx';}</script>");
                }
                else
                {
                    Response.Write("<script>if(confirm('Employee not Details Updated  Successfully.')){document.location='EditEmployeeDetails.aspx';}</script>");
                }
            }
            catch (Exception)
            {
            }
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                IEmployeeBLL objEmployeeMng = EmployeeFactoryBLL.createEmployeeBLobj();
                IEmployeeBO  objEmployee    = EmployeeBOFactory.createEmpBO();
                objEmployee.EmployeeName = txtempname.Text;
                objEmployee.DOJ          = DateTime.Parse(txtdoj.Text);
                objEmployee.DOB          = DateTime.Parse(txtdob.Text);
                objEmployee.Location     = txtloc.Text;
                objEmployee.Gender       = txtgend.Text;
                objEmployee.CTC          = Convert.ToInt32(txtctc.Text);
                objEmployee.Designation  = txtdesignation.Text;
                objEmployee.UnitHeadID   = Convert.ToInt32(ddlunithead.SelectedValue);

                objEmployee.ProjectId = 100001;
                int           ID    = objEmployeeMng.addEmployee(objEmployee);
                int           id    = Int32.Parse(Session["CandID"].ToString());
                ICandidateBLL obj   = CandidateFactoryBLL.createCandidateBLobj();
                ICandidateBO  objBo = CandidateFactoryBO.createEmployeeBO(id);

                obj.deleteCandidate(id);
                Response.Write("<script>if(confirm('Details Submitted Successfully.    Employee ID :" + ID + "')){document.location='AddSelectedCandidates_HR.aspx';}</script>");
            }

            catch (Exception)
            { }
        }
 public EmployeesController(
     IEmployeeBLL employeeBLL,
     ILoginBLL loginBLL
     )
 {
     _employeeBLL = employeeBLL;
     _loginBLL    = loginBLL;
 }
Exemplo n.º 7
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string       username = txtusername.Text;
            string       password = txtpassword.Text;
            IEmployeeBO  obj      = EmployeeFBO.CheckEmployee(username, password);
            IEmployeeBLL obj1     = EmployeeFaBLL.createnew();

            obj1.RegisterEmp(obj);
        }
 public TraCarComplaintFormController(IPageBLL pageBll, IEmployeeBLL employeeBLL, IDelegationBLL delegationBLL, ICarComplaintFormBLL CFFBLL, IComplaintCategoryBLL ComplaintCategoryBLL, ISettingBLL SettingBLL, IFleetBLL FleetBLL) : base(pageBll, Enums.MenuList.TraCcf)
 {
     _CFFBLL               = CFFBLL;
     _employeeBLL          = employeeBLL;
     _delegationBLL        = delegationBLL;
     _complaintcategoryBLL = ComplaintCategoryBLL;
     _settingBLL           = SettingBLL;
     _fleetBLL             = FleetBLL;
     _mainMenu             = Enums.MenuList.Transaction;
 }
Exemplo n.º 9
0
 public RptPoController(IPageBLL pageBll, IRptPoBLL rptPoBLL, ISettingBLL SettingBLL, IEmployeeBLL employeeBLL, IFleetBLL fleetBLL)
     : base(pageBll, Core.Enums.MenuList.RptPo)
 {
     _pageBLL     = pageBll;
     _rptPoBLL    = rptPoBLL;
     _settingBLL  = SettingBLL;
     _employeeBLL = employeeBLL;
     _fleetBLL    = fleetBLL;
     _mainMenu    = Enums.MenuList.RptExecutiveSummary;
 }
 public EmployeeController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IEmployeeBLL employeeService,
     IDepartmentBLL departmentService,
     IDepartmentRoleBLL departmentRoleService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _employeeService = employeeService;
     _departmentService = departmentService;
     _departmentRoleService = departmentRoleService;
 }
Exemplo n.º 11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         IEmployeeBLL objEmpBLL = EmployeeFactoryBLL.createEmployeeBLL();
         List <int>   list      = objEmpBLL.getEmployeeID();
         ddlEmpID.DataSource = list;
         ddlEmpID.DataBind();
         ddlEmpID.Items.Insert(0, "--Select--");
     }
 }
 public UserManagerModel(
     IEmployeeLoginBLL employeeLoginService,
     IEmployeeBLL employeeService,
     IUnitOfWorkAsync unitOfWorkAsync,
     IDepartmentRoleBLL departmentRoleService,
     IDepartmentBLL departmentService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _employeeLoginService = employeeLoginService;
     _employeeService = employeeService;
     _departmentRoleService = departmentRoleService;
 }
 public EmployeeProjectController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IProjectRoleBLL projectRoleService,
     IProjectBLL projectService,
     IEmployeeBLL employeeService,
     IEmployeeProjectsBLL employeeProjectsService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _projectService = projectService;
     _projectRoleService = projectRoleService;
 _employeeService = employeeService;
 _employeeProjectsService = employeeProjectsService;
 }
 public AuthenticationController(
     IDepartmentBLL departmentService,
     IDepartmentRoleBLL departmentRoleService,
     IEmployeeBLL employeeService,
     IUnitOfWorkAsync unitOfWorkAsync,
     IEmployeeLoginBLL employeeLoginService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _employeeLoginService = employeeLoginService;
     _employeeService = employeeService;
     _departmentRoleService = departmentRoleService;
     _departmentService = departmentService;
 }
Exemplo n.º 15
0
 private void databind()
 {
     try
     {
         IEmployeeBLL       empbll  = EmployeeFactoryBLL.createnew();
         List <IEmployeeBO> newlist = empbll.displayall();
         viewgrdapproved.DataSource = newlist;
         viewgrdapproved.DataBind();
     }
     catch (Exception ex)
     {
         Response.Write("<script>alert('Exception: " + ex.Message + "');</script>");
     }
 }
Exemplo n.º 16
0
 private void bgcdata()
 {
     try
     {
         IEmployeeBLL       objbll = EmployeeFactoryBLL.createnew();
         List <IEmployeeBO> list   = objbll.displayunithead();
         BGCgrdview.DataSource = list;
         BGCgrdview.DataBind();
     }
     catch (Exception ex)
     {
         Response.Write("<script>alert('Exception: " + ex.Message + "');</script>");
     }
 }
Exemplo n.º 17
0
 public RptKpiMonitoringController(IPageBLL pageBll, IKpiMonitoringBLL KpiMonitoringBLL, IRemarkBLL RemarkBLL,
                                   ITraCtfBLL CtfBLL, ITraCsfBLL CsfBLL, ITraCrfBLL CrfBLL, IDocumentTypeBLL DocTypeBLL,
                                   IEmployeeBLL EmployeeBLL, ISettingBLL SettingBLL)
     : base(pageBll, Core.Enums.MenuList.RptKpiMonitoring)
 {
     _pageBLL          = pageBll;
     _kpiMonitoringBLL = KpiMonitoringBLL;
     _remarkBLL        = RemarkBLL;
     _settingBLL       = SettingBLL;
     _docTypeBLL       = DocTypeBLL;
     _employeeBLL      = EmployeeBLL;
     _ctfBLL           = CtfBLL;
     _csfBLL           = CsfBLL;
     _crfBLL           = CrfBLL;
     _mainMenu         = Enums.MenuList.RptExecutiveSummary;
 }
Exemplo n.º 18
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string       username = txtusername.Text;
            string       password = txtpassword.Text;
            IEmployeeBO  objBO    = EmployeeFBO.CheckEmployee(username, password);
            IEmployeeBLL objBLL   = EmployeeFaBLL.createnew();
            int          check    = objBLL.CheckEmp(objBO);

            if (check == 1)
            {
                Label3.Text = "Successfully loggedIn";
            }
            else
            {
                Label3.Text = "Login notSuccessfull";
            }
        }
Exemplo n.º 19
0
 public TraCrfController(IPageBLL pageBll, IEpafBLL epafBll, ITraCrfBLL crfBLL, IRemarkBLL RemarkBLL, IEmployeeBLL EmployeeBLL, IReasonBLL ReasonBLL,
                         ISettingBLL SettingBLL, IFleetBLL FleetBLL, IVendorBLL vendorBLL, ITraCsfBLL csfBLL, ITraTemporaryBLL tempBLL)
     : base(pageBll, Core.Enums.MenuList.TraCrf)
 {
     _epafBLL     = epafBll;
     _CRFBLL      = crfBLL;
     _remarkBLL   = RemarkBLL;
     _employeeBLL = EmployeeBLL;
     _reasonBLL   = ReasonBLL;
     _settingBLL  = SettingBLL;
     _mainMenu    = Enums.MenuList.Transaction;
     _fleetBLL    = FleetBLL;
     //_vendorBLL = vendorBLL;
     _settingList = _settingBLL.GetSetting();
     _csfBLL      = csfBLL;
     _tempBLL     = tempBLL;
 }
Exemplo n.º 20
0
        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                LblEmpID.Visible       = true;
                LblEmpName.Visible     = true;
                LblDesgn.Visible       = true;
                LblCTC.Visible         = true;
                LblUnitHeadID.Visible  = true;
                txtEmpID.Visible       = true;
                txtEmpName.Visible     = true;
                txtdesignation.Visible = true;
                txtctc.Visible         = true;
                rectc.Visible          = true;
                redesignation.Visible  = true;
                rfvctc.Visible         = true;
                rfvdesignation.Visible = true;

                txtUnitHead.Visible = true;
                BtnUpdate.Visible   = true;
                BtnCancel.Visible   = true;
                BtnSubmit.Visible   = false;
                LblEmpID1.Visible   = false;
                ddlEmpID.Visible    = false;
                int id = Convert.ToInt32(ddlEmpID.SelectedValue);

                Session["empid"] = ddlEmpID.SelectedValue;
                txtEmpID.Text    = Session["empid"].ToString();
                IEmployeeBO  objBo  = EmployeeBOFactory.createEmployeeBO(id);
                IEmployeeBLL objBll = EmployeeFactoryBLL.createEmployeeBLL();
                txtEmpName.Text = objBll.getEmpName(id);

                txtUnitHead.Text    = Convert.ToString(objBll.getUnitHeadId(id));
                txtctc.Text         = Convert.ToString(objBll.getctc(id));
                txtdesignation.Text = objBll.getDesignation(id);

                txtUnitHead.DataBind();

                txtEmpName.DataBind();
                ddlEmpID.Items.Insert(0, "--Select--");
            }
            catch (Exception)
            {
            }
        }
 public EmployeeController(IEmployeeBLL employeeBLL, IDepartmentBLL departmentBLL)
 {
     _employeeBLL   = employeeBLL;
     _departmentBLL = departmentBLL;
 }
Exemplo n.º 22
0
 public DepartmentBLL(IRepository repository, IEmployeeBLL employeeBll)
 {
     this.employeeBLL = employeeBll;
     this.repository  = repository;
 }
Exemplo n.º 23
0
 public employeescontroller(IEmployeeBLL bll)
 {
     _bll = bll ?? throw new ArgumentNullException(nameof(bll));
 }