Example #1
0
        void GetUrunKatalog()
        {
            try
            {
                switch (this.katalogTipiRadioGroup.EditValue.ToString())
                {
                case "Hepsi":
                    m_UrunKatalogListe = UrunKatalogMethods.GetUrunKatalog();
                    break;

                default:
                    m_UrunKatalogListe = UrunKatalogMethods.GetEnUcuzUrunler();
                    break;
                }
                if (TeklifDetayObject != null)
                {
                    foreach (TeklifDetay td in TeklifDetayObject)
                    {
                        UrunKatalog k = m_UrunKatalogListe.Find(x => x.StokID.Equals(td.StokID));
                        if (k != null)
                        {
                            k.Adet = td.Adet;
                        }
                    }
                }
                this.urunKatalogBindingSource.DataSource = m_UrunKatalogListe;
            }
            catch (Exception ex)
            {
                Commons.Status(Commons.GetErrorCode("FUK", 2) + ex.Message);
            }
        }
Example #2
0
 void barkodTumUrunlerButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         Commons.CreateCatalogBarkod(UrunKatalogMethods.GetUrunKatalog());
     }
     catch (Exception ex)
     {
         Commons.Status(Commons.GetErrorCode("FMN", 16) + ex.Message);
     }
 }
Example #3
0
 void enUcuzUrunButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         Commons.CreateCatalog(UrunKatalogMethods.GetEnUcuzUrunler());
     }
     catch (Exception ex)
     {
         Commons.Status(Commons.GetErrorCode("FMN", 13) + ex.Message);
     }
 }