コード例 #1
0
        private void PauseSlider()
        {
            v_VisaoAtendimentoPlantao v = Application.OpenForms["v_VisaoAtendimentoPlantao"] as v_VisaoAtendimentoPlantao;

            if (v != null)
            {
                v.StopSlider();
            }
        }
コード例 #2
0
        private void PassarVez()
        {
            v_VisaoAtendimentoPlantao v = Application.OpenForms["v_VisaoAtendimentoPlantao"] as v_VisaoAtendimentoPlantao;

            if (v != null)
            {
                v.PassarVez();
            }
        }
コード例 #3
0
ファイル: v_NovoPlantao.cs プロジェクト: netopvh/SGS-2.0
        private void NovoPlantao()
        {
            if (cbxEquipe.Text != string.Empty && advBandedGridView1.DataSource != DBNull.Value)
            {
                gbxCorretores.Enabled = false;
                gbxTempo.Enabled      = false;

                m_plantao.equipe         = cbxEquipe.Text;
                m_plantao.dataplantao    = DateTime.Now.Date;
                m_plantao.horainicial    = Convert.ToDateTime(tsePlantaoInicia.Text);
                m_plantao.horafinal      = Convert.ToDateTime(tsePlantaoTermina.Text);
                m_plantao.tempoporpessoa = Convert.ToDateTime(tseTempoPorPessoa.Text);
                m_plantao.usuariocad     = _UsuarioCad;

                c_plantao.NovoPlantao(m_plantao);
                int UltimoID = c_plantao.CarregarUltimaIDPlantao();
                advBandedGridView1.ActiveFilter.Clear();

                gridBand1.Columns["ColumnPosicao"].SortOrder = DevExpress.Data.ColumnSortOrder.Ascending;
                gridControl1.Enabled = false;
                advBandedGridView1.FocusedRowHandle = 0;
                for (int i = 0; i < advBandedGridView1.RowCount; i++)
                {
                    m_corretorPlantao.posicao      = Convert.ToInt32(advBandedGridView1.GetRowCellValue(advBandedGridView1.GetSelectedRows()[0], advBandedGridView1.Columns[0]));
                    m_corretorPlantao.nomecorretor = advBandedGridView1.GetRowCellValue(advBandedGridView1.GetSelectedRows()[0], advBandedGridView1.Columns[1]).ToString();
                    m_corretorPlantao.fk_plantao_corretorplantao = Convert.ToInt32(UltimoID);

                    c_corretorPlantao.NovoCorretorPlantao(m_corretorPlantao);
                    advBandedGridView1.MoveNext();
                }


                v_VisaoAtendimentoPlantao visaoPlantao = new v_VisaoAtendimentoPlantao(UltimoID);
                visaoPlantao.Show();
                FecharFormControleDePlantao();
                this.Close();
            }
        }