Exemple #1
0
    void LoadData()
    {
        uxTable.ClientIDMode           = ClientIDMode.Static;
        uxEmployeesHidden.ClientIDMode = ClientIDMode.Static;

        List <vEmployeesOrganization> list = AttendanceBLL.GetEmployeesOrganizations();

        uxExcludeList.DataSource = list;
        uxExcludeList.DataBind();


        List <int>    years     = Enumerable.Range(PersianDate.Now.Year - 1, 5).ToList();
        List <object> yearslist = new List <object>();

        foreach (int i in years)
        {
            yearslist.Add(new { Value = i, Text = i });
        }
        uxFiscalYear.DataSource = yearslist;
        uxFiscalYear.DataBind();

        //List<object> relist = new List<object>();
        //relist.Add(new { ID = 0, Text = "نخیر" });
        //relist.Add(new { ID = 1, Text = "بلی" });

        //uxReturnList.DataSource = relist;
        //uxReturnList.DataBind();

        //List<ExceptionType> elist = AttendanceBLL.GetExceptionTypeList("Leave");
        //uxExceptionType.DataSource = elist;
        //uxExceptionType.DataBind();
    }
    void LoadData()
    {
        uxTable.ClientIDMode = ClientIDMode.Static;

        List <vEmployeesOrganization> list = AttendanceBLL.GetEmployeesOrganizations();

        uxEmployees.DataSource = list;
        uxEmployees.DataBind();
    }
Exemple #3
0
    void LoadData()
    {
        uxTable.ClientIDMode = ClientIDMode.Static;

        List <vEmployeesOrganization> list = AttendanceBLL.GetEmployeesOrganizations();

        uxEmployees.DataSource = list;
        uxEmployees.DataBind();

        List <ExceptionType> elist = AttendanceBLL.GetExceptionTypeList("Leave");

        uxExceptionType.DataSource = elist;
        uxExceptionType.DataBind();
    }
Exemple #4
0
    void LoadData()
    {
        uxTable.ClientIDMode = ClientIDMode.Static;

        List <vEmployeesOrganization> list = AttendanceBLL.GetEmployeesOrganizations();

        uxEmployees.DataSource = list;
        uxEmployees.DataBind();

        List <object> relist = new List <object>();

        relist.Add(new { ID = 0, Text = "نخیر" });
        relist.Add(new { ID = 1, Text = "بلی" });

        uxReturnList.DataSource = relist;
        uxReturnList.DataBind();

        //List<ExceptionType> elist = AttendanceBLL.GetExceptionTypeList("Leave");
        //uxExceptionType.DataSource = elist;
        //uxExceptionType.DataBind();
    }
Exemple #5
0
    void LoadData()
    {
        List <vEmployeesOrganization> list = AttendanceBLL.GetEmployeesOrganizations();

        uxEmployees.DataSource = list;
        uxEmployees.DataBind();

        List <vUserAccount> UList = UserBLL.GetUsersAccounts();
        StringBuilder       rows  = new StringBuilder();

        foreach (vUserAccount emp in UList)
        {
            String tr =
                t.Replace("$id", emp.UserId.ToString()).
                Replace("$name", emp.NAME);
            MembershipUser User = Membership.GetUser(emp.UserId);
            if (User.IsLockedOut)
            {
                tr = tr.Replace("$status", lbDan.Replace("$txt", "قفل شده"));
            }
            else
            {
                tr = tr.Replace("$status", lbPri.Replace("$txt", "فعال است"));
            }
            tr = tr.Replace("$role", Roles.GetRolesForUser(User.UserName).FirstOrDefault());
            tr = tr.Replace("$did", emp.UserId.ToString());
            rows.Append(tr);
        }
        uxEmployeeList.InnerHtml = rows.ToString();

        //List<USERINFO> Employees = UserBLL.GetAllEmployees();
        //uxUsers.DataSource = Employees;
        //uxUsers.DataBind();

        string[] rolelist = Roles.GetAllRoles();
        uxRole.DataSource = rolelist;
        uxRole.DataBind();
    }