Cls_Filtros_CQP objFiltros = new Cls_Filtros_CQP(); //Deixando o metodo da class Universal
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ListaPlacaParaReparo();
         getTec();
         var count = new Class_Count_Day();
         count.CountDayTecnico();
         count.CountDayRepair();
     }
 }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ListaPlacaParaReparo();
                GetDefectCause();
                GetActions();
                GetLocation();
                GetRepairMan();
                ddlLocation.AutoPostBack = true;
                ddlSendRepair.Enabled    = false;

                var count = new Class_Count_Day();
                count.CountDayTecnico();
                count.CountDayRepair();
            }
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // RegisterHyperLink.NavigateUrl = "Register";
            // Ativar quando tiver a confirmação da conta habilitada para a funcionalidade de redefinição de senha
            //ForgotPasswordHyperLink.NavigateUrl = "Forgot";
            //OpenAuthLogin.ReturnUrl = Request.QueryString["ReturnUrl"];

            /* Conta os dias em que estao no reparo*/
            var count = new Class_Count_Day();

            count.CountDayTecnico();
            count.CountDayRepair();
            /*----------FIM ----------------*/

            var returnUrl = HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);

            if (!String.IsNullOrEmpty(returnUrl))
            {
                // RegisterHyperLink.NavigateUrl += "?ReturnUrl=" + returnUrl;
            }
        }
Beispiel #4
0
        protected void btnSalve_Click(object sender, EventArgs e)
        {
            foreach (GridViewRow row in GridView1.Rows)
            {
                if (((CheckBox)row.FindControl("ckeckBoxInsert")).Checked)
                {
                    string EntradaId = ((Label)row.FindControl("lblCodigo")).Text;

                    Entrada mod = new Entrada();
                    mod.EntradaId = Convert.ToInt32(EntradaId);
                    mod.Usuario   = ddlTec.SelectedValue;

                    RegistrosEntrada add = new RegistrosEntrada();
                    add.RegistrarTecnicoComBoard(mod);
                    add.UpdateStatus(mod);
                    var count = new Class_Count_Day();
                    count.CountDayTecnico();
                    count.CountDayRepair();
                    ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Relacionamento feito com sucesso');", true);
                    ListaAll();
                    getTec();
                }
            }
        }