Ejemplo n.º 1
0
        void hizliStokGirisiButton_ItemClick(object sender, ItemClickEventArgs e)
        {
            xFrmHizliStokGirisi frm = new xFrmHizliStokGirisi();

            frm.Text = L.HizliStokGirisi;
            Commons.IsOpenForm(frm);
        }
Ejemplo n.º 2
0
        internal static void Update(TableNames table)
        {
            try
            {
                xFrmStok            stokForm      = System.Windows.Forms.Application.OpenForms["xFrmStok"] as xFrmStok;
                xFrmHizliStokGirisi stokFormHizli = System.Windows.Forms.Application.OpenForms["xFrmHizliStokGirisi"] as xFrmHizliStokGirisi;
                switch (table)
                {
                case TableNames.Kategori:
                    if (stokForm != null)
                    {
                        stokForm.GetKategoriler();
                    }
                    if (stokFormHizli != null)
                    {
                        stokFormHizli.GetKategoriler();
                    }
                    xFrmUrun urunForm = System.Windows.Forms.Application.OpenForms["xFrmUrun"] as xFrmUrun;
                    if (urunForm != null)
                    {
                        urunForm.GetKategoriler();
                    }
                    foreach (System.Windows.Forms.Form item in System.Windows.Forms.Application.OpenForms)
                    {
                        if (item is xFrmTeklif)
                        {
                            xFrmTeklif teklifForm = item as xFrmTeklif;
                            teklifForm.GetKategoriler();
                        }
                    }
                    break;

                case TableNames.Urun:
                    if (stokForm != null)
                    {
                        stokForm.GetUrunler();
                        stokForm.GetUrunlerForKategori();
                    }
                    if (stokFormHizli != null)
                    {
                        stokFormHizli.GetUrunlerForKategori();
                    }
                    break;

                case TableNames.Firma:
                    if (stokForm != null)
                    {
                        stokForm.GetFirmalar();
                    }
                    if (stokFormHizli != null)
                    {
                        stokFormHizli.GetFirmalar();
                    }
                    break;

                case TableNames.Stok:
                    xFrmUrunRapor urunRaporForm = System.Windows.Forms.Application.OpenForms["xFrmUrunRapor"] as xFrmUrunRapor;
                    if (urunRaporForm != null)
                    {
                        urunRaporForm.GetUrunRapor();
                    }
                    foreach (System.Windows.Forms.Form item in System.Windows.Forms.Application.OpenForms)
                    {
                        if (item is xFrmTeklif)
                        {
                            xFrmTeklif teklifForm = item as xFrmTeklif;
                            teklifForm.GetStokListe();
                        }
                    }
                    break;

                case TableNames.Teklif:
                    xFrmTeklifDetay teklifDetayForm = System.Windows.Forms.Application.OpenForms["xFrmTeklifDetay"] as xFrmTeklifDetay;
                    if (teklifDetayForm != null)
                    {
                        teklifDetayForm.GetTeklifler();
                    }
                    break;

                case TableNames.Doviz:
                    foreach (System.Windows.Forms.Form item in System.Windows.Forms.Application.OpenForms)
                    {
                        if (item is xFrmTeklif)
                        {
                            xFrmTeklif teklifForm = item as xFrmTeklif;
                            teklifForm.GetDoviz();
                        }
                    }
                    break;
                }
            }
            catch (Exception ex)
            {
                Commons.Status(Commons.GetErrorCode("CMN", 19) + ex.Message);
            }
        }