Exemple #1
0
        private void DRSelectProjeto_Load(object sender, EventArgs e)
        {
            ServerDR.ReadProjeto(ref this.dsCadastro1);

            if (dsCadastro1.Tables["DRProjetoSelect"].Rows.Count == 0)
            {
                UltilsForm.ExecuteFormDialogModal(typeof(DRCadProjeto), this.StringConexcao, "Obra", CmpOperacao.Novo, "DRPROJETO", null);
                ServerDR.ReadProjeto(ref this.dsCadastro1);
                if (dsCadastro1.Tables["DRProjetoSelect"].Rows.Count == 0)
                {
                    MessageBox.Show("Nenhuma obra foi cadastrada, entre no sistema novamente", "Erro",
                                    MessageBoxButtons.OK, MessageBoxIcon.Error);
                    Application.Exit();
                    this.Close();
                    return;
                }
            }

            drDataGridView1.DRGrid.Columns[0].Width = 50;
            drDataGridView1.DRGrid.Columns[1].Width = 300;
            int position = drBS.Find("CODIGOPRJ", DRProjetoContext.DRProjeto.CodProjeto);

            if (position != -1)
            {
                drBS.Position = position;
            }
            dsCadastro1.AcceptChanges();

            ckAtiva.Checked = ServerDR.ProjetoDefaultSetado(Convert.ToInt32(drBS.Row["CODIGOPRJ"]));
        }
Exemple #2
0
 public DRSelecAtividade_Etapa()
 {
     InitializeComponent();
     if (!UltilsForm.DesignMode())
     {
         AddColuna();
     }
 }
Exemple #3
0
        private void drConsulta1_DoNewRegistro(object sender, EventArgs e)
        {
            DialogResult dl = MessageBox.Show("Você deseja incluir um Fornecedor", "Confirmação", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dl == DialogResult.Yes)
            {
                UltilsForm.ExecuteFormDialogModal(typeof(DRCadFornecedor), this.StringConexcao, "Fornecedor", CmpOperacao.Novo, "DRFORNECEDOR", null, AfterSaveForncedor);
            }
        }
Exemple #4
0
 private void drTextBox5_KeyPress(object sender, KeyPressEventArgs e)
 {
     UltilsForm.FormataMoedaTextBox(ref dtInclusao, ref e);
 }
Exemple #5
0
 private void drTextBox2_KeyPress(object sender, KeyPressEventArgs e)
 {
     UltilsForm.FormataMoedaTextBox(ref cValor, ref e);
 }
Exemple #6
0
 private void btDespeza_Click(object sender, EventArgs e)
 {
     DRProjetoContext.DRProjeto.InforParam = InfoSelecionada;
     UltilsForm.ExecuteFormModal(typeof(DRDespesaLan), this.StringConexcao, "Despesa por Etapa/Atividade");
 }