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; } } }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }