private void chk_usuario_CheckedChanged(object sender, EventArgs e) { if (chk_usuario.Checked == true && (rb_data.Checked == true || rb_mensal.Checked == true)) { gp_usuario.Visible = true; chk_fornecedor.Checked = false; if (rb_data.Checked == true) { gp_data.Visible = true; gp_usuario.Location = gp_mensal.Location; gp_mensal.Visible = false; } if (rb_mensal.Checked == true) { gp_usuario.Location = gp_data.Location; gp_mensal.Visible = true; gp_data.Visible = false; } } else { if (chk_fornecedor.Checked == false) { if (tipo_relatorio != "Roteador_Geral" || tipo_relatorio != "Roteador_Alugado" || tipo_relatorio != "Roteador_Disponivel" || tipo_relatorio != "Roteador_Aguardando") { if (rb_data.Checked == true) { gp_data.Visible = true; } if (rb_mensal.Checked == true) { gp_mensal.Visible = true; } } } gp_usuario.Visible = false; } if (chk_usuario.Checked == true) { var cb_config = new ComboBox_Usuarios(); cb_config.combox_Usuario(cb_usuario_retirada, filial); buscar_por_usuario = true; } else { buscar_por_usuario = false; } }
private void chk_fornecedor_CheckedChanged(object sender, EventArgs e) { if (chk_fornecedor.Checked == true && (rb_data.Checked == true || rb_mensal.Checked == true)) { if (rb_data.Checked == true) { gp_fornecedor.Location = gp_mensal.Location; gp_data.Visible = true; gp_mensal.Visible = false; } if (rb_mensal.Checked == true) { gp_fornecedor.Location = gp_data.Location; gp_mensal.Visible = true; gp_data.Visible = false; } gp_fornecedor.Visible = true; chk_usuario.Checked = false; } else { if (chk_usuario.Checked == false) { if (rb_data.Checked == true) { gp_data.Visible = true; } if (rb_mensal.Checked == true) { gp_mensal.Visible = true; } } gp_fornecedor.Visible = false; } if (chk_fornecedor.Checked == true) { var cb_config = new ComboBox_Usuarios(); cb_config.combox_Fornecedor(cb_fornecedor, filial); buscar_por_fornecedor = true; } else { buscar_por_fornecedor = false; } }