Beispiel #1
0
 private void btn_harcamalar_Click(object sender, EventArgs e)
 {
     if (ck_prj.Checked)
     {
         flag = "P";
         harcama_ongorusu f1 = new harcama_ongorusu();
         f1.lbl_pdr.Text      = "PDR";
         f1.lbl_cdr.Text      = "CDR";
         f1.lbl_prototip.Text = "Prototip";
         f1.lbl_kabul.Text    = "Kabul";
         f1.lbl_test.Text     = "Test";
         f1.lbl_s6.Enabled    = false;
         f1.txt_s6.Enabled    = false;
         f1.dtp_s6.Enabled    = false;
         f1.Show();
     }
     else
     {
         flag = "S";
         harcama_ongorusu f1 = new harcama_ongorusu();
         f1.lbl_pdr.Text      = "S1";
         f1.lbl_cdr.Text      = "S2";
         f1.lbl_prototip.Text = "S3";
         f1.lbl_kabul.Text    = "S5";
         f1.lbl_test.Text     = "S4";
         f1.lbl_s6.Enabled    = true;
         f1.txt_s6.Enabled    = true;
         f1.dtp_s6.Enabled    = true;
         f1.Show();
     }
 }
Beispiel #2
0
        private void btn_prj_duzenle_Click(object sender, EventArgs e)
        {
            proje_duzenle obj = new proje_duzenle();

            obj.lbl_id.Text         = id;
            obj.cmb_birim.Text      = birim;
            obj.txt_butce.Text      = butce;
            obj.txt_musteri.Text    = musteri;
            obj.txt_proje_adi.Text  = proje_adi;
            obj.txt_proje_no.Text   = proje_no;
            obj.dtp_baslangıc.Value = baslangic;
            obj.dtp_bitis.Value     = bitis;
            obj.txt_vade.Text       = vade;
            obj.rcb_aciklama.Text   = aciklama;
            obj.lbl_harcamalar.Text = harcamalar;
            obj.lbl_birim.Text      = harcama_birim;
            if (flag == "S")
            {
                obj.ck_seri.Checked = true;
            }
            else
            {
                obj.ck_prj.Checked = true;
            }
            obj.Show();


            harcama_ongorusu ho = new harcama_ongorusu();

            if (flag == "S")
            {
                ho.lbl_pdr.Text      = "S1";
                ho.lbl_cdr.Text      = "S2";
                ho.lbl_prototip.Text = "S3";
                ho.lbl_kabul.Text    = "S5";
                ho.lbl_test.Text     = "S4";
                ho.lbl_s6.Enabled    = true;
                ho.txt_s6.Enabled    = true;
                ho.dtp_s6.Enabled    = true;
            }
            else
            {
                ho.lbl_pdr.Text      = "PDR";
                ho.lbl_cdr.Text      = "CDR";
                ho.lbl_prototip.Text = "Prototip";
                ho.lbl_kabul.Text    = "Kabul";
                ho.lbl_test.Text     = "Test";
                ho.lbl_s6.Enabled    = false;
                ho.txt_s6.Enabled    = false;
                ho.dtp_s6.Enabled    = false;
            }
            ho.txt_m_mlz.Text     = harcama_m_mlz;
            ho.txt_el_mlz.Text    = harcama_el_mlz;
            ho.txt_imalat.Text    = harcama_imalat;
            ho.txt_test.Text      = harcama_test;
            ho.txt_risk.Text      = harcama_risk;
            ho.txt_avans.Text     = odeme_avans;
            ho.txt_pdr.Text       = odeme_pdr;
            ho.txt_cdr.Text       = odeme_cdr;
            ho.txt_prototip.Text  = odeme_prototip;
            ho.txt_o_test.Text    = odeme_test;
            ho.txt_kabul.Text     = odeme_kabul;
            ho.txt_s6.Text        = s6;
            ho.dtp_avans.Value    = dtp_avans;
            ho.dtp_pdr.Value      = dtp_pdr;
            ho.dtp_cdr.Value      = dtp_cdr;
            ho.dtp_prototip.Value = dtp_prototip;
            ho.dtp_test.Value     = dtp_test;
            ho.dtp_kabul.Value    = dtp_kabul;
            ho.dtp_s6.Value       = dtp_s6;

            ho.Show();
        }