Beispiel #1
0
        private void btn_prjDZN_Click(object sender, EventArgs e)
        {
            if (txt_butce.Text.Contains('.') & txt_butce.Text.Contains(','))
            {
                DialogResult uyarı = new DialogResult();
                uyarı = MessageBox.Show("Aynı anda hem virgül hem nokta giremezsiniz!", "FATURA SİLME", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

                if (uyarı == DialogResult.OK)
                {
                }
                else
                {
                }
            }
            else
            {
                txt_butce.Text      = hf.Comma2Dot(txt_butce.Text);
                lbl_harcamalar.Text = hf.Comma2Dot(lbl_harcamalar.Text);

                vade      = Convert.ToString(txt_vade.Text);
                baslangic = Convert.ToDateTime(dtp_baslangıc.Text);
                bitis     = baslangic.AddDays(int.Parse(vade));

                db = new DBConnect();

                db.InsertProjeGiris(Convert.ToString(txt_proje_no.Text), Convert.ToString(txt_proje_adı.Text), Convert.ToDecimal(txt_butce.Text), Convert.ToString(cmb_birim.Text), Convert.ToString(txt_musteri.Text), Convert.ToDateTime(dtp_baslangıc.Text), Convert.ToDateTime(bitis), Convert.ToInt32(txt_vade.Text), Convert.ToString(rcb_acıklama.Text), Convert.ToDecimal(harcama_m_mlz), Convert.ToDecimal(harcama_el_mlz), Convert.ToDecimal(harcama_imalat), Convert.ToDecimal(harcama_test), Convert.ToDecimal(harcama_risk), Convert.ToDecimal(lbl_harcamalar.Text), Convert.ToString(lbl_birim.Text), Convert.ToDecimal(odeme_avans), Convert.ToDateTime(dtp_avans), Convert.ToDecimal(odeme_pdr), Convert.ToDateTime(dtp_pdr), Convert.ToDecimal(odeme_cdr), Convert.ToDateTime(dtp_cdr), Convert.ToDecimal(odeme_prototip), Convert.ToDateTime(dtp_prototip), Convert.ToDecimal(odeme_test), Convert.ToDateTime(dtp_test), Convert.ToDecimal(odeme_kabul), Convert.ToDateTime(dtp_kabul), Convert.ToDecimal(s6), Convert.ToDateTime(dtp_s6), Convert.ToString(flag));
                this.Close();
            }
        }
Beispiel #2
0
        private void btn_ftr_dzn_Click(object sender, EventArgs e)
        {
            if (txt_ftr_tutar.Text.Contains('.') & txt_ftr_tutar.Text.Contains(','))
            {
                DialogResult uyarı = new DialogResult();
                uyarı = MessageBox.Show("Aynı anda hem virgül hem nokta giremezsiniz!", "FATURA SİLME", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

                if (uyarı == DialogResult.OK)
                {
                }
                else
                {
                }
            }
            else
            {
                txt_ftr_tutar.Text = hf.Comma2Dot(txt_ftr_tutar.Text);
                txt_avans.Text     = hf.Comma2Dot(txt_avans.Text);

                DateTime dt = Convert.ToDateTime(txt_ftr_tarih.Text);

                string    dateToday = dt.ToString("d");
                DayOfWeek day       = Convert.ToDateTime(txt_ftr_tarih.Text).DayOfWeek;
                string    dayToday  = day.ToString();

                if ((day == DayOfWeek.Saturday) || (day == DayOfWeek.Sunday))
                {
                    MessageBox.Show("Lütfen hafta içi olacak bir tarih giriniz! ");
                }
                else
                {
                    fatura_euro = Convert.ToDecimal(hf.EuroCalculation(txt_ftr_tarih.Text, txt_ftr_tutar.Text, cmb_birim.Text, Convert.ToString(fatura_euro)));

                    if (fatura_euro == Convert.ToDecimal(0000))
                    {
                        MessageBox.Show("Lütfen İnternete Bağlanınız");
                    }
                    else
                    {
                        vade      = Convert.ToString(txt_ftr_vade.Text);
                        baslangic = Convert.ToDateTime(txt_ftr_tarih.Text);
                        bitis     = baslangic.AddDays(int.Parse(vade));

                        if (cb_durum.Checked)
                        {
                            db = new DBConnect();
                            db.UpdateFaturalar(Convert.ToInt32(lbl_id.Text), Convert.ToString(txt_fatura_no.Text), Convert.ToString(cmb_projeNo.Text), Convert.ToString(cmb_firma.Text), Convert.ToInt32(txt_ftr_vade.Text), bitis, Convert.ToString(rcb_acıklama.Text), Convert.ToDateTime(txt_ftr_tarih.Text), ck_alarm.Checked, Convert.ToDecimal(txt_ftr_tutar.Text), Convert.ToString(cmb_birim.Text), Convert.ToInt32(txt_avans.Text), fatura_euro, Convert.ToString(lbl_tip.Text), Convert.ToString(cmb_ftr_tip.Text), Convert.ToString("ÖDENDİ"));
                            this.Close();
                        }
                        else
                        {
                            db = new DBConnect();
                            db.UpdateFaturalar(Convert.ToInt32(lbl_id.Text), Convert.ToString(txt_fatura_no.Text), Convert.ToString(cmb_projeNo.Text), Convert.ToString(cmb_firma.Text), Convert.ToInt32(txt_ftr_vade.Text), bitis, Convert.ToString(rcb_acıklama.Text), Convert.ToDateTime(txt_ftr_tarih.Text), ck_alarm.Checked, Convert.ToDecimal(txt_ftr_tutar.Text), Convert.ToString(cmb_birim.Text), Convert.ToInt32(txt_avans.Text), fatura_euro, Convert.ToString(lbl_tip.Text), Convert.ToString(cmb_ftr_tip.Text), Convert.ToString("ÖDENMEDİ"));
                            this.Close();
                        }
                    }
                }
            }
        }
Beispiel #3
0
        private void btn_stf_kayit_Click(object sender, EventArgs e)
        {
            if (txt_mlz_brmFiyat.Text.Contains('.') & txt_mlz_brmFiyat.Text.Contains(','))
            {
                DialogResult uyarı = new DialogResult();
                uyarı = MessageBox.Show("Aynı anda hem virgül hem nokta giremezsiniz!", "FATURA SİLME", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

                if (uyarı == DialogResult.OK)
                {
                }
                else
                {
                }
            }

            else
            {
                txt_mlz_brmFiyat.Text = hf.Comma2Dot(txt_mlz_brmFiyat.Text);

                DateTime  dt        = Convert.ToDateTime(date_teslim.Text);
                string    dateToday = dt.ToString("d");
                DayOfWeek day       = Convert.ToDateTime(date_teslim.Text).DayOfWeek;


                if ((day == DayOfWeek.Saturday) || (day == DayOfWeek.Sunday))
                {
                    MessageBox.Show("Lütfen hafta içi olacak bir tarih giriniz! ");
                }
                else
                {
                    siparis_euro = hf.EuroCalculation(date_teslim.Text, txt_mlz_brmFiyat.Text, cmb_paraBirimi.Text, siparis_euro);

                    db = new DBConnect();
                    db.InsertSE(Convert.ToString(cmb_prjno.Text), Convert.ToString(txt_siparisNo.Text), Convert.ToString(txt_tedarikci.Text), Convert.ToString(txt_talepKisi.Text), Convert.ToDateTime(date_teslim.Text), Convert.ToInt32(txt_vade.Text), Convert.ToDateTime(date_temin.Text), Convert.ToDecimal(txt_mlz_brmFiyat.Text), Convert.ToString(cmb_paraBirimi.Text), Convert.ToDecimal(siparis_euro), Convert.ToString(rcb_aciklama.Text));

                    this.Close();
                }
            }
        }
Beispiel #4
0
        private void btn_kaydet_Click(object sender, EventArgs e)
        {
            txt_avans.Text    = hf.Comma2Dot(txt_avans.Text);
            txt_cdr.Text      = hf.Comma2Dot(txt_cdr.Text);
            txt_el_mlz.Text   = hf.Comma2Dot(txt_el_mlz.Text);
            txt_imalat.Text   = hf.Comma2Dot(txt_imalat.Text);
            txt_kabul.Text    = hf.Comma2Dot(txt_kabul.Text);
            txt_m_mlz.Text    = hf.Comma2Dot(txt_m_mlz.Text);
            txt_o_test.Text   = hf.Comma2Dot(txt_o_test.Text);
            txt_pdr.Text      = hf.Comma2Dot(txt_pdr.Text);
            txt_prototip.Text = hf.Comma2Dot(txt_prototip.Text);
            txt_risk.Text     = hf.Comma2Dot(txt_risk.Text);
            txt_test.Text     = hf.Comma2Dot(txt_test.Text);
            txt_toplam.Text   = hf.Comma2Dot(txt_toplam.Text);
            txt_s6.Text       = hf.Comma2Dot(txt_s6.Text);


            txt_toplam.Text = Convert.ToString(Convert.ToDecimal(txt_test.Text) + Convert.ToDecimal(txt_risk.Text) + Convert.ToDecimal(txt_m_mlz.Text) + Convert.ToDecimal(txt_imalat.Text) + Convert.ToDecimal(txt_el_mlz.Text));

            proje_giris   f1 = (proje_giris)Application.OpenForms["proje_giris"];
            proje_duzenle f2 = (proje_duzenle)Application.OpenForms["proje_duzenle"];

            if (f1 != null)
            {
                Label label_harcamalar = (Label)f1.Controls["lbl_harcamalar"];
                Label label_birim      = (Label)f1.Controls["lbl_birim"];
                label_harcamalar.Text = txt_toplam.Text.ToString();
                label_birim.Text      = cmb_toplam_brm.Text.ToString();
                f1.harcama_m_mlz      = Convert.ToString(txt_m_mlz.Text);
                f1.harcama_el_mlz     = Convert.ToString(txt_el_mlz.Text);
                f1.harcama_imalat     = Convert.ToString(txt_imalat.Text);
                f1.harcama_test       = Convert.ToString(txt_test.Text);
                f1.harcama_risk       = Convert.ToString(txt_risk.Text);
                f1.odeme_avans        = Convert.ToString(txt_avans.Text);
                f1.odeme_pdr          = Convert.ToString(txt_pdr.Text);
                f1.odeme_cdr          = Convert.ToString(txt_cdr.Text);
                f1.odeme_prototip     = Convert.ToString(txt_prototip.Text);
                f1.odeme_test         = Convert.ToString(txt_o_test.Text);
                f1.odeme_kabul        = Convert.ToString(txt_kabul.Text);
                f1.s6           = Convert.ToString(txt_s6.Text);
                f1.dtp_avans    = Convert.ToDateTime(dtp_avans.Text);
                f1.dtp_cdr      = Convert.ToDateTime(dtp_cdr.Text);
                f1.dtp_kabul    = Convert.ToDateTime(dtp_kabul.Text);
                f1.dtp_prototip = Convert.ToDateTime(dtp_prototip.Text);
                f1.dtp_pdr      = Convert.ToDateTime(dtp_pdr.Text);
                f1.dtp_test     = Convert.ToDateTime(dtp_test.Text);
                f1.dtp_s6       = Convert.ToDateTime(dtp_s6.Text);
            }
            else
            {
                Label label_harcamalar = (Label)f2.Controls["lbl_harcamalar"];
                Label label_birim      = (Label)f2.Controls["lbl_birim"];
                label_harcamalar.Text = txt_toplam.Text.ToString();
                label_birim.Text      = cmb_toplam_brm.Text.ToString();
                f2.harcama_m_mlz      = Convert.ToString(txt_m_mlz.Text);
                f2.harcama_el_mlz     = Convert.ToString(txt_el_mlz.Text);
                f2.harcama_imalat     = Convert.ToString(txt_imalat.Text);
                f2.harcama_test       = Convert.ToString(txt_test.Text);
                f2.harcama_risk       = Convert.ToString(txt_risk.Text);
                f2.odeme_avans        = Convert.ToString(txt_avans.Text);
                f2.odeme_pdr          = Convert.ToString(txt_pdr.Text);
                f2.odeme_cdr          = Convert.ToString(txt_cdr.Text);
                f2.odeme_prototip     = Convert.ToString(txt_prototip.Text);
                f2.odeme_test         = Convert.ToString(txt_o_test.Text);
                f2.odeme_kabul        = Convert.ToString(txt_kabul.Text);
                f2.s6           = Convert.ToString(txt_s6.Text);
                f2.dtp_avans    = Convert.ToDateTime(dtp_avans.Text);
                f2.dtp_cdr      = Convert.ToDateTime(dtp_cdr.Text);
                f2.dtp_kabul    = Convert.ToDateTime(dtp_kabul.Text);
                f2.dtp_prototip = Convert.ToDateTime(dtp_prototip.Text);
                f2.dtp_pdr      = Convert.ToDateTime(dtp_pdr.Text);
                f2.dtp_test     = Convert.ToDateTime(dtp_test.Text);
                f2.dtp_s6       = Convert.ToDateTime(dtp_s6.Text);
            }
            this.Close();
        }