Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.User.Identity.IsAuthenticated == false)
        {
            Response.Redirect("~/Account/Login.aspx");
        }
        if (!IsPostBack)
        {
            PreencheddlSetor();
            deDataRelacao.Date  = System.DateTime.Now.Date.Date;
            deDataRelacao0.Date = System.DateTime.Now.Date.Date;
            deDataRelacao0.DataBind();
            deDataRelacao.DataBind();
            coRelacaoPontoDia.Add("IDSetor", "");
            coIDUsuarioRelacaoPontoDiaV.Add("IDUsuario", "");
            coIDUsuarioRelacaoPontoDia.Add("IDVinculoUsuario", "");
        }

        if (cbRelacaoDia.Text != "")
        {
            coRelacaoPontoDia["IDSetor"] = cr.CriptograFa(cbRelacaoDia.Value.ToString());
        }

        if (cbUsuarioRelacaoPontoDia.Text != "")
        {
            coIDUsuarioRelacaoPontoDia["IDVinculoUsuario"] = cr.CriptograFa(cbUsuarioRelacaoPontoDia.Value.ToString());
            var idUser = justificativa.GetIdUserByVinculo(cbUsuarioRelacaoPontoDia.Value.ToString());
            IDUsuario.Value = idUser;
            coIDUsuarioRelacaoPontoDiaV["IDUsuario"] = cr.CriptograFa(idUser);
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.User.Identity.IsAuthenticated == false)
        {
            Response.Redirect("~/Account/Login.aspx");
        }
        else if (!IsPostBack)
        {
            deDataRelacao.Text  = System.DateTime.Now.ToShortDateString();
            deDataRelacao0.Text = System.DateTime.Now.ToShortDateString();
            PreencheddlSetor();
            coLocalMarcacao.Add("IDSetor", "");
            coLocalMarcacao.Add("IDUsuario", "");
        }

        if (cbSetorLocalRegistro.Text != "")
        {
            coLocalMarcacao["IDSetor"] = cr.CriptograFa(cbSetorLocalRegistro.Value.ToString());
        }

        if (cbUsuarioBancoHora.Text != "")
        {
            coLocalMarcacao["IDUsuario"] = cr.CriptograFa(cbUsuarioBancoHora.Value.ToString());
        }
    }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.User.Identity.IsAuthenticated == false)
        {
            Response.Redirect("~/Account/Login.aspx");
        }
        else if (!IsPostBack)
        {
            PreencheddlSetor();
            coIDUsuarioServidorFicha.Add("IDSetor", "");
            coIDUsuarioServidorFicha.Add("IDUsuario", "");
        }

        if (cbSetorFolha.Text != "")
        {
            coIDUsuarioServidorFicha["IDSetor"] = cr.CriptograFa(cbSetorFolha.Value.ToString());

            if (cbUsuarioBancoHora.Text != "")
            {
                coIDUsuarioServidorFicha["IDUsuario"] = cr.CriptograFa(cbUsuarioBancoHora.Value.ToString());
            }
            else
            {
                coIDUsuarioServidorFicha["IDUsuario"] = "";
            }
        }
    }
Exemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.User.Identity.IsAuthenticated == false)
        {
            Response.Redirect("~/Account/Login.aspx");
        }
        else if (!IsPostBack)
        {
            dtDescontoInicio.Date = DateTime.Now.Date.Date;
            dtDescontoFim.Date    = DateTime.Now.Date.Date;
            PreencheddlSetor();
            coIDUsuarioDesconto.Add("IDSetor", "");
            coIDUsuarioDesconto.Add("IDUsuario", "");
        }

        if (cbSetorDesconto.Text != "")
        {
            coIDUsuarioDesconto["IDSetor"] = cr.CriptograFa(cbSetorDesconto.Value.ToString());

            if (cbServidorDesconto.Text != "")
            {
                coIDUsuarioDesconto["IDUsuario"] = cr.CriptograFa(cbServidorDesconto.Value.ToString());
            }
            else
            {
                coIDUsuarioDesconto["IDUsuario"] = "";
            }
        }
    }
Exemplo n.º 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.User.Identity.IsAuthenticated == false)
        {
            Response.Redirect("~/Account/Login.aspx");
        }
        if (!IsPostBack)
        {
            PreencheddlSetor();
            deDataInicioFaltaInjustificada.Date = System.DateTime.Now.Date.Date;
            deDataFimFaltaInjustificada.Date    = System.DateTime.Now.Date.Date;
            deDataInicioFaltaInjustificada.DataBind();
            deDataFimFaltaInjustificada.DataBind();

            coFaltaInjustificada.Add("IDSetor", "");
            coFaltaInjustificada.Add("IDVinculoUsuario", "");
        }

        if (cbSetorFaltaInjustificada.Text != "")
        {
            coFaltaInjustificada["IDSetor"] = cr.CriptograFa(cbSetorFaltaInjustificada.Value.ToString());
        }

        if (cbUsuarioFaltaInjustificada.Text != "")
        {
            coFaltaInjustificada["IDVinculoUsuario"] = cr.CriptograFa(cbUsuarioFaltaInjustificada.Value.ToString());
        }
    }
Exemplo n.º 6
0
    protected void btGerarFolhaFrequencia_Click(object sender, EventArgs e)
    {
        if (cbSetorFolha.Text != "")
        {
            coIDUsuarioSetorFFrequencia["IDSetor"] = crip.CriptograFa(cbSetorFolha.Value.ToString());
        }

        if (cbUsuario.Text != "")
        {
            // coIDUsuarioSetorFFrequencia["IDUsuario"] = crip.CriptograFa(cbUsuario.Value.ToString());
            coIDUsuarioSetorFFrequencia["IDVinculoUsuario"] = crip.CriptograFa(cbUsuario.Value.ToString());
            var idUser = justificativa.GetIdUserByVinculo(cbUsuario.Value.ToString());
            IDUsuario.Value = idUser;
            coIDUsuarioSetorFFrequenciaV["IDUsuario"] = crip.CriptograFa(IDUsuario.Value.ToString());
        }
        else
        {
            coIDUsuarioSetorFFrequencia["IDVinculoUsuario"] = crip.CriptograFa("0");
            coIDUsuarioSetorFFrequenciaV["IDUsuario"]       = crip.CriptograFa("0");
        }



        this.Page.RegisterStartupScript("MSG", @"<script language='javascript'> if(ASPxClientEdit.ValidateGroup('ValidaGrupo'))MudaPagina();</script>");
        //HorasMes(Convert.ToInt32(cbMes.SelectedItem.Value));
    }
Exemplo n.º 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.User.Identity.IsAuthenticated == false)
        {
            Response.Redirect("~/Account/Login.aspx");
        }
        else if (!IsPostBack)
        {
            deReldtInicioFaltaInjustificada.Date = System.DateTime.Now.Date.Date;
            deReldtFimFaltaInjustificada.Date    = System.DateTime.Now.Date.Date;
            PreencheddlSetor();
        }

        if (cbRelSetorFaltaInjustificada.Text != "")
        {
            coRelFalta["IDSetor"] = cr.CriptograFa(cbRelSetorFaltaInjustificada.Value.ToString());
        }

        if (cbRelUsuarioFaltaInjustificada.Text != "")
        {
            coRelFaltaUsuario["IDUsuario"] = cr.CriptograFa(cbRelUsuarioFaltaInjustificada.Value.ToString());
        }
    }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (HttpContext.Current.User.Identity.IsAuthenticated == false)
     {
         Response.Redirect("~/Account/Login.aspx");
     }
     if (!IsPostBack)
     {
         PreencheddlSetor();
         coSituacaoCadastral.Add("IDSetor", "");
     }
     if (cbSetorFolha.Text != "")
     {
         coSituacaoCadastral["IDSetor"] = cr.CriptograFa(cbSetorFolha.Value.ToString());
     }
 }
Exemplo n.º 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.User.Identity.IsAuthenticated == false)
        {
            Response.Redirect("~/Account/Login.aspx");
        }
        else if (!IsPostBack)
        {
            PreencheddlSetor();
            PreencheddlMotivoFalta();
            deMotivoFalta.Date    = System.DateTime.Now.Date.Date;
            deMotivoFaltaFim.Date = System.DateTime.Now.Date.Date;
            coMotivoFaltaPeriodo.Add("IDSetor", "");
        }

        if (cbSetorMotivoFalta.Text != "")
        {
            coMotivoFaltaPeriodo["IDSetor"] = cr.CriptograFa(cbSetorMotivoFalta.Value.ToString());
        }
    }