Exemplo n.º 1
0
        protected void FetchAllEmployee()
        {
            Business.HR.EmployeeMaster objEmployeeMaster = new Business.HR.EmployeeMaster();
            Entity.HR.EmployeeMaster   employeeMaster    = new Entity.HR.EmployeeMaster();
            employeeMaster.CompanyId_FK = 1;
            DataTable dt = objEmployeeMaster.Employee_GetAll_Active(employeeMaster);

            if (dt != null)
            {
                ddlServiceEngineer.DataSource     = dt;
                ddlServiceEngineer.DataValueField = "EmployeeMasterId";
                ddlServiceEngineer.DataTextField  = "EmployeeName";
                ddlServiceEngineer.DataBind();
            }
            ddlServiceEngineer.InsertSelect();

            if (dt != null && dt.Rows.Count > 0)
            {
                if (!HttpContext.Current.User.IsInRole(Entity.HR.Utility.CUSTOMER_LIST_SHOW_ALL))
                {
                    ddlServiceEngineer.SelectedValue = HttpContext.Current.User.Identity.Name;
                    ddlServiceEngineer.Enabled       = false;
                }
            }
        }
Exemplo n.º 2
0
        private void EmployeeMaster_GetAll()
        {
            Business.HR.EmployeeMaster ObjBelEmployeeMaster = new Business.HR.EmployeeMaster();
            Entity.HR.EmployeeMaster   ObjElEmployeeMaster  = new Entity.HR.EmployeeMaster();
            ObjElEmployeeMaster.CompanyId_FK = 1;
            DataTable dt = ObjBelEmployeeMaster.Employee_GetAll_Active(ObjElEmployeeMaster);

            gvEmployeerMaster.DataSource = dt;
            gvEmployeerMaster.DataBind();
        }
Exemplo n.º 3
0
        private void EmployeeMaster_GetAll()
        {
            Business.HR.EmployeeMaster ObjBelEmployeeMaster = new Business.HR.EmployeeMaster();
            Entity.HR.EmployeeMaster   ObjElEmployeeMaster  = new Entity.HR.EmployeeMaster();
            ObjElEmployeeMaster.CompanyId_FK = 1;
            DataTable dt = ObjBelEmployeeMaster.Employee_GetAll_Active(ObjElEmployeeMaster);

            ddlContactPerson.DataSource     = dt;
            ddlContactPerson.DataTextField  = "EmployeeName";
            ddlContactPerson.DataValueField = "EmployeeMasterId";
            ddlContactPerson.DataBind();
            ddlContactPerson.InsertSelect();
        }
Exemplo n.º 4
0
        private void EmployeeMaster_GetAll()
        {
            Business.HR.EmployeeMaster ObjBelEmployeeMaster = new Business.HR.EmployeeMaster();
            Entity.HR.EmployeeMaster   ObjElEmployeeMaster  = new Entity.HR.EmployeeMaster();
            ObjElEmployeeMaster.CompanyId_FK = 1;
            DataTable dt = ObjBelEmployeeMaster.Employee_GetAll_Active(ObjElEmployeeMaster);

            dt = dt.Select("DesignationMasterId IN (1,3)").CopyToDataTable();
            ddlEngineer.DataSource     = dt;
            ddlEngineer.DataTextField  = "EmployeeName";
            ddlEngineer.DataValueField = "EmployeeMasterId";
            ddlEngineer.DataBind();
            ddlEngineer.InsertSelect();
        }
Exemplo n.º 5
0
        private void LoadEmployee(DropDownList ddlAssignEngineer)
        {
            Business.HR.EmployeeMaster objEmployeeMaster = new Business.HR.EmployeeMaster();
            Entity.HR.EmployeeMaster   employeeMaster    = new Entity.HR.EmployeeMaster();

            employeeMaster.CompanyId_FK = 1;
            DataTable dt = objEmployeeMaster.Employee_GetAll_Active(employeeMaster);

            dt = dt.Select("DesignationMasterId IN (1,3)").CopyToDataTable();
            ddlAssignEngineer.DataSource     = dt;
            ddlAssignEngineer.DataTextField  = "EmployeeName";
            ddlAssignEngineer.DataValueField = "EmployeeMasterId";
            ddlAssignEngineer.DataBind();
            ddlAssignEngineer.InsertSelect();
        }
Exemplo n.º 6
0
        protected void EmployeeMaster_GetAll()
        {
            Business.HR.EmployeeMaster objEmployeeMaster = new Business.HR.EmployeeMaster();
            Entity.HR.EmployeeMaster   employeeMaster    = new Entity.HR.EmployeeMaster();
            employeeMaster.CompanyId_FK = 1;
            DataTable dt = objEmployeeMaster.Employee_GetAll_Active(employeeMaster);

            if (dt != null)
            {
                ddlEmployee.DataSource     = dt;
                ddlEmployee.DataValueField = "EmployeeMasterId";
                ddlEmployee.DataTextField  = "EmployeeName";
                ddlEmployee.DataBind();
            }
            ddlEmployee.InsertSelect();
        }
Exemplo n.º 7
0
        protected void EmployeeMaster_GetAll()
        {
            Business.HR.EmployeeMaster ObjBelEmployeeMaster = new Business.HR.EmployeeMaster();
            Entity.HR.EmployeeMaster   ObjElEmployeeMaster  = new Entity.HR.EmployeeMaster();
            ObjElEmployeeMaster.CompanyId_FK = 1;
            DataTable dt = ObjBelEmployeeMaster.Employee_GetAll_Active(ObjElEmployeeMaster);

            dt = dt.Select("DesignationMasterId IN (1,3)").CopyToDataTable();
            if (dt.Rows.Count > 0)
            {
                gvEmployeerMaster.DataSource = dt;
            }
            else
            {
                gvEmployeerMaster.DataSource = null;
            }
            gvEmployeerMaster.DataBind();
        }