void xtraTabbedMdiManager1_SelectedPageChanged(object sender, EventArgs e) { try { this.teklifVermeButton.Enabled = false; this.teslimEtmeButton.Enabled = false; this.siparisMaliyetButton.Enabled = false; this.siparisToplamaButton.Enabled = false; this.faturaHazirlaButton.Enabled = false; this.sepetiGeriAlButton.Enabled = false; this.teklifKaydetButton.Enabled = false; this.iceriAktarButton.Enabled = false; if ((this.ActiveMdiChild is xFrmTeklif)) { xFrmTeklif frm = this.ActiveMdiChild as xFrmTeklif; if (frm.TeklifObject.ID > 0) { this.teklifVermeButton.Enabled = true; this.teslimEtmeButton.Enabled = true; this.siparisMaliyetButton.Enabled = true; this.siparisToplamaButton.Enabled = true; this.faturaHazirlaButton.Enabled = true; this.sepetiGeriAlButton.Enabled = frm.IsTempValue; this.teklifKaydetButton.Enabled = frm.IsValueChanged; this.iceriAktarButton.Enabled = true; } } } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FMN", 4) + ex.Message); } }
void teklifHazirlaButton_ItemClick(object sender, ItemClickEventArgs e) { xFrmTeklif frm = new xFrmTeklif(); frm.Text = L.YeniTeklifHazirla; frm.MdiParent = this; Commons.IsOpenForm(frm); }
void faturaHazirlaButton_ItemClick(object sender, ItemClickEventArgs e) { try { xFrmTeklif temp = this.ActiveMdiChild as xFrmTeklif; temp.FaturaHazirla(); } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FMN", 12) + ex.Message); } }
void siparisMaliyetButton_ItemClick(object sender, ItemClickEventArgs e) { try { xFrmTeklif temp = this.ActiveMdiChild as xFrmTeklif; temp.SiparisMaliyetListesi(); } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FMN", 11) + ex.Message); } }
void teklifKaydetButton_ItemClick(object sender, ItemClickEventArgs e) { try { xFrmTeklif temp = this.ActiveMdiChild as xFrmTeklif; temp.Saved(); } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FMN", 7) + ex.Message); } }
private void teklifGridView_DoubleClick(object sender, EventArgs e) { try { xFrmTeklif frm = new xFrmTeklif(); frm.MdiParent = this.MdiParent; frm.TeklifObject = TeklifMethods.GetTeklif(BAYMYO.UI.Converts.NullToInt64(teklifGridView.GetFocusedRowCellValue("ID"))); frm.Name = "frm" + frm.TeklifObject.ID; Commons.IsOpenForm(frm); } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FTD", 3) + ex.Message); } }
void teslimEtmeButton_ItemClick(object sender, ItemClickEventArgs e) { try { xFrmTeklif temp = this.ActiveMdiChild as xFrmTeklif; if (!Commons.ShowBox(QuestionType.TeslimFormu)) { temp.SiparisFormuFiyatsiz(FormType.Delivery); } temp.SiparisFormu(FormType.Delivery); } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FMN", 9) + ex.Message); } }
void iceriAktarButton_ItemClick(object sender, ItemClickEventArgs e) { xFrmTeklif temp = this.ActiveMdiChild as xFrmTeklif; temp.SiparisIceriAktar(); }
void sepetiGeriAlButton_ItemClick(object sender, ItemClickEventArgs e) { xFrmTeklif temp = this.ActiveMdiChild as xFrmTeklif; temp.SepetiGeriAl(); }
void formuYenileButton_ItemClick(object sender, ItemClickEventArgs e) { try { Commons.Loading(this.ActiveMdiChild.Text + " ekranındaki bilgiler güncelleniyor. .."); if (this.ActiveMdiChild is xFrmUrunRapor) { xFrmUrunRapor frm = this.ActiveMdiChild as xFrmUrunRapor; frm.GetUrunRapor(); } else if (this.ActiveMdiChild is xFrmStok) { xFrmStok frm = this.ActiveMdiChild as xFrmStok; frm.GetKategoriler(); frm.GetUrunler(); frm.GetFirmalar(); frm.GetData(); } else if (this.ActiveMdiChild is xFrmTeklif) { xFrmTeklif frm = this.ActiveMdiChild as xFrmTeklif; frm.GetDefault(); frm.GetStokListe(); frm.GetTeklif(); } else if (this.ActiveMdiChild is xFrmTeklifDetay) { xFrmTeklifDetay frm = this.ActiveMdiChild as xFrmTeklifDetay; frm.GetTeklifler(); } else if (this.ActiveMdiChild is xFrmUrun) { xFrmUrun frm = this.ActiveMdiChild as xFrmUrun; frm.GetKategoriler(); frm.GetData(); } else if (this.ActiveMdiChild is xFrmKategori) { xFrmKategori frm = this.ActiveMdiChild as xFrmKategori; frm.GetData(); } else if (this.ActiveMdiChild is xFrmFirma) { xFrmFirma frm = this.ActiveMdiChild as xFrmFirma; frm.GetData(); } else if (this.ActiveMdiChild is xFrmDoviz) { xFrmDoviz frm = this.ActiveMdiChild as xFrmDoviz; frm.GetData(); } } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FMN", 6) + ex.Message); } finally { Commons.Status(this.ActiveMdiChild.Text + " ekranındaki bilgiler güncellendi!"); Commons.Loaded(); } }
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); } }