protected void btnPrnt_Click(object sender, EventArgs e) { string custidd = Request.QueryString["custid"]; if (!String.IsNullOrEmpty(custidd)) { int custid = Int32.Parse(custidd); int gun = 3; string gunS = Request.QueryString["gun"]; if (!String.IsNullOrEmpty(gunS)) { gun = Int32.Parse(gunS); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { FaturaBas bas = new FaturaBas(dc); AyarCurrent ay = new AyarCurrent(dc); extre extreBilgi = bas.ExtreBilgileri(custid, gun, ay.get()); Session["extre"] = extreBilgi; string uri = "/Baski.aspx?tip=extre"; Response.Redirect(uri); } } //Session["ctrl"] = GridView2; //ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script language=javascript>window.open('../Print.aspx','PrintMe','height=300px,width=300px,scrollbars=1');</script>"); }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } string custidd = Request.QueryString["custid"]; if (!IsPostBack) { if (!String.IsNullOrEmpty(custidd)) { int custid = Int32.Parse(custidd); string aciklama = txtAciklama.Text; using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } MusteriIslemleri m = new MusteriIslemleri(dc); Radius.customer must = m.musteriTekR(custid); musteri.InnerHtml = must.Ad; musteriEkBilgi.InnerHtml = must.telefon; } tarih.InnerHtml = DateTime.Now.ToString("D"); } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated || (!User.IsInRole("Admin") && !User.IsInRole("mudur"))) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris"); } string firma = KullaniciIslem.firma(); using (radiusEntities dc = MyContext.Context(firma)) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } CihazAraa(dc); string s = txtAra.Value; if (!String.IsNullOrEmpty(s) && !String.IsNullOrWhiteSpace(s)) { MusteriIslemleri m = new MusteriIslemleri(dc); GridView1.DataSource = m.musteriAraR2(s, "tedarikci"); GridView1.DataBind(); } } // detaylara bakalım DetayGoster(); } }
protected void btnDonemselKaydet_Click(object sender, EventArgs e) { string custidd = Request.QueryString["custid"]; if (!String.IsNullOrEmpty(custidd)) { int custid = Int32.Parse(custidd); DateTime basla = DateTime.Now.AddDays(-30); DateTime son = DateTime.Now; if (!String.IsNullOrEmpty(datetimepicker6.Value)) { basla = DateTime.Parse(datetimepicker6.Value); } if (!String.IsNullOrEmpty(datetimepicker7.Value)) { son = DateTime.Parse(datetimepicker7.Value); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { FaturaBas bas = new FaturaBas(dc); AyarCurrent ay = new AyarCurrent(dc); extre extreBilgi = bas.ExtreBilgileri(custid, ay.get(), basla, son); Session["extredonem"] = extreBilgi; string uri = "/Baski.aspx?tip=extredonem"; Response.Redirect(uri); } } }
protected void Page_Load(object sender, EventArgs e) { s += "sayfa load postback-"; string antenid = Request.QueryString["antenid"]; if (!String.IsNullOrEmpty(antenid)) { btnHepsiniTasi.Visible = true; } else { btnHepsiniTasi.Visible = false; } if (IsPostBack) { using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } Kaydet(dc); } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } ServisIslemleri s = new ServisIslemleri(dc); cihazGoster(s); drdPaketler.AppendDataBoundItems = true; drdPaketler.DataSource = s.servis_paketleri(); drdPaketler.DataValueField = "paket_id"; drdPaketler.DataTextField = "paket_adi"; drdPaketler.DataBind(); txtGarantiSuresi.Text = "24"; } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated || (!User.IsInRole("Admin") && !User.IsInRole("mudur"))) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris"); } string firma = KullaniciIslem.firma(); using (radiusEntities dc = MyContext.Context(firma)) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } MasrafAraa(dc); MakineIslem m = new MakineIslem(dc); string makine_id = Request.QueryString["makineid"]; if (!String.IsNullOrEmpty(makine_id)) { int makineid = Int32.Parse(makine_id); var mak = m.tekmakine(makineid); baslik.InnerHtml = mak.adi + "-" + mak.plaka; } } // detaylara bakalım DetayGoster(); } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } barkod.Focus(); this.Master.servisarama = true; this.Master.kisiarama = true; using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } MusteriIslemleri m = new MusteriIslemleri(dc); pos_banka_look pb = m.posbankalar(); drdPos.AppendDataBoundItems = true; drdPos.DataSource = pb.poslar; drdPos.DataValueField = "pos_id"; drdPos.DataTextField = "pos_adi"; } CihazAraa(dc); // detaylara bakalım DetayGoster(); } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } kullanici_repo kullanici = KullaniciIslem.currentKullanici(); string firma = kullanici.Firma; using (radiusEntities dc = MyContext.Context(firma)) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } AyarIslemleri ayarimiz = new AyarIslemleri(dc); if (!IsPostBack) { gosterHepsi(kullanici, dc); } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } string firma = KullaniciIslem.firma(); using (radiusEntities dc=MyContext.Context(firma)) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } musteriGoster(dc); if (GridView3.SelectedValue != null) { int id = Convert.ToInt32(GridView3.SelectedValue); UrunAra(dc, id); } } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } AyarIslemleri servis = new AyarIslemleri(dc); List <Radius.service_tips> tipler = servis.tipListesiR(); if (tipler != null) { drdTip.AppendDataBoundItems = true; drdTip.DataSource = tipler; drdTip.DataValueField = "tip_id"; drdTip.DataTextField = "tip_ad"; drdTip.DataBind(); } txtKimlikNo.Value = AletEdavat.KimlikUret(10); } if (User.IsInRole("Admin") || User.IsInRole("mudur")) { kullaniciSecim.Visible = true; if (!IsPostBack) { drdKullanici.AppendDataBoundItems = true; drdKullanici.DataSource = KullaniciIslem.firmaKullanicilari(); drdKullanici.DataValueField = "id"; drdKullanici.DataTextField = "userName"; drdKullanici.DataBind(); } } string s = txtAra.Value; if (!String.IsNullOrEmpty(s)) { MusteriIslemleri m = new MusteriIslemleri(dc); GridView1.DataSource = m.musteriAraR2(s, "musteri"); GridView1.SelectedIndex = 0; GridView1.DataBind(); } } }
private void makbuzYazdir(int custid, decimal tutar, string aciklama, radiusEntities dc) { ServisDAL.AyarCurrent ay = new AyarCurrent(dc); FaturaBas bas = new FaturaBas(dc); Makbuz_Gorunum faturaBilgisi = bas.MakbuzBilgileri(custid, aciklama, ay.get(), tutar, User.Identity.Name); Session["Makbuz_Gorunum"] = faturaBilgisi; Response.Redirect("/Baski.aspx?tip=tahsilat"); }
private void yazdirmaPesin(int id, string unvan, string tc, string vd, string adres) { using (radiusEntities dc = MyContext.Context(firma)) { FaturaPrinter pri = new FaturaPrinter(dc); AyarCurrent ay = new AyarCurrent(dc); pri.PesinBas(id, unvan, tc, vd, adres, faturaGoster, ay.get().cift_taraf, firma); } }
protected void btnCache_Click(object sender, EventArgs e) { using (radiusEntities dc = MyContext.Context("TOL")) { AyarCurrent cur = new AyarCurrent(dc); ayargenel ay = cur.get(); txtCache.Text = ay.sonfatura.ToString(); } }
private void yazdirmaInternet(int id) { using (radiusEntities dc = MyContext.Context(firma)) { FaturaPrinter pri = new FaturaPrinter(dc); AyarCurrent ay = new AyarCurrent(dc); pri.InternetBas(id, faturaGoster, ay.get().cift_taraf, firma); } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } goster(dc); } }
protected void Page_Load(object sender, EventArgs e) { string firma = KullaniciIslem.firma(); using (radiusEntities dc = MyContext.Context(firma)) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } Ara(dc); } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } using (radiusEntities dc = MyContext.Context(firma)) { goster(dc); if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.calismaTipli() == true) { btnSatis.Visible = false; btnFatura.Visible = false; } else { btnSatis.Visible = true; btnFatura.Visible = true; } } } if (User.IsInRole("servis")) { btnTahsilat.Visible = false; btnOde.Visible = false; btnExtre.Visible = false; btnFatura.Visible = false; panelOdeme.Visible = false; panelAlim.Visible = false; } else if (User.IsInRole("dukkan")) { btnFatura.Visible = false; } }
protected void yonlendir(string url, radiusEntities dc, int custid) { if (cbYazdir.Checked == true) { //Session["ctrl"] = yazdir; //ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script language=javascript>window.open('../Print.aspx','PrintMe','height=300px,width=300px,scrollbars=1');</script>"); ServisDAL.AyarCurrent ay = new AyarCurrent(dc); FaturaBas bas = new FaturaBas(dc); Makbuz_Gorunum faturaBilgisi = bas.MakbuzBilgileri(custid, txtAciklama.Text, ay.get(), 0, User.Identity.Name); Session["Makbuz_Gorunum"] = faturaBilgisi; Response.Redirect("/Baski.aspx?tip=emanet"); } else { Response.Redirect(url); } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated || (!User.IsInRole("Admin") && !User.IsInRole("mudur"))) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris"); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } Ara(dc); } } }
private void Ara() { DateTime baslangic = DateTime.Now.AddMonths(-3); if (!String.IsNullOrEmpty(datetimepicker6.Value)) { baslangic = DateTime.Parse(datetimepicker6.Value); } DateTime bitis = DateTime.Now; if (!String.IsNullOrEmpty(datetimepicker7.Value)) { bitis = DateTime.Parse(datetimepicker7.Value); } string firma = KullaniciIslem.firma(); using (radiusEntities dc = MyContext.Context(firma)) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } SatinAlim s = new SatinAlim(dc); string cust_id = Request.QueryString["custid"]; string cihaz_id = Request.QueryString["cihazid"]; string alim_id = Request.QueryString["alimid"]; string masraf_id = Request.QueryString["masrafid"]; if (!string.IsNullOrEmpty(cust_id)) { btnMusteriDetayim.Visible = true; } DetayOzet ozet = s.Detaylar(baslangic, bitis, cust_id, cihaz_id, alim_id, masraf_id); txtIslemAdet.InnerHtml = "İşlem :" + ozet.islem_adet.ToString(); txtToplamAdet.InnerHtml = "Miktar :" + ozet.toplam_adet.ToString(); txtYekun.InnerHtml = "Yekün :" + ozet.yekun.ToString("C"); grdAlimlar.DataSource = ozet.detaylar; grdAlimlar.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris"); } //this.Master.kisiarama = false; //this.Master.servisarama = false; //string firma = KullaniciIslem.firma(); using (radiusEntities dc = MyContext.Context(firma)) { MusteriIslemleri m = new MusteriIslemleri(dc); if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } List <anten> antenler = m.antenler(); if (antenler != null) { drdAnten.AppendDataBoundItems = true; drdAnten.DataSource = antenler; drdAnten.DataValueField = "anten_id"; drdAnten.DataTextField = "anten_adi"; drdAnten.DataBind(); drdAntenDuzen.AppendDataBoundItems = true; drdAntenDuzen.DataSource = antenler; drdAntenDuzen.DataValueField = "anten_id"; drdAntenDuzen.DataTextField = "anten_adi"; drdAntenDuzen.DataBind(); } toplu(m); } //gosterHepsiSession(m); } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } if (!IsPostBack) //check if the webpage is loaded for the first time. { ViewState["PreviousPage"] = Request.UrlReferrer;//Saves the Previous page url in ViewState } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } } }
public void MusteriAra(object sender, EventArgs e) { string s = txtAra.Value; if (!String.IsNullOrEmpty(s)) { using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } MusteriIslemleri m = new MusteriIslemleri(dc); GridView1.DataSource = m.musteriAraR2(s, "musteri"); GridView1.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } this.Master.servisarama = false; this.Master.kisiarama = false; kullanici_repo kullanici = KullaniciIslem.currentKullanici(); string firma = kullanici.Firma; using (radiusEntities dc = MyContext.Context(firma)) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } AyarIslemleri ayarimiz = new AyarIslemleri(dc); if (!IsPostBack) { List <Radius.service_tips> tipler = ayarimiz.tipListesiR(); drdTip.AppendDataBoundItems = true; drdTip.DataSource = ayarimiz.tipListesiR(); drdTip.DataValueField = "tip_id"; drdTip.DataTextField = "tip_ad"; drdTip.DataBind(); drdTipSec.AppendDataBoundItems = true; drdTipSec.DataSource = ayarimiz.tipListesiR(); drdTipSec.DataValueField = "tip_id"; drdTipSec.DataTextField = "tip_ad"; drdTipSec.DataBind(); gosterHepsi(kullanici, dc); } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } ServisIslemleri s = new ServisIslemleri(dc); cihazGoster(s); birimler(dc); txtGarantiSuresi.Text = "24"; } } }
protected void btnBelge_Click(object sender, EventArgs e) { string id = txtServisID.Value; int servisid = Int32.Parse(id); //burada servis başlama için bir geçiş sınıfıyla Session'a atıp Baski.aspx'e gönder using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { FaturaBas bas = new FaturaBas(dc); AyarCurrent ay = new AyarCurrent(dc); Servis_Baslama servisBilgisi = bas.ServisBilgileri(txtKimlikNo.Value.Trim(), ay.get()); Session["Servis_Baslama"] = servisBilgisi; } string uri = "/Baski.aspx?tip=baslama"; Response.Redirect(uri); //string kimlikNo = Request.QueryString["kimlik"]; //string url = "/TeknikTeknik/ServisBelgesi.aspx?kimlik=" + kimlikNo; //Response.Redirect(url); }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris"); } //this.Master.kisiarama = false; //string firma = KullaniciIslem.firma(); using (radiusEntities dc = MyContext.Context(firma)) { MusteriIslemleri m = new MusteriIslemleri(dc); if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } toplu(m); } } }
protected void btnPrint_Click(object sender, EventArgs e) { if (GridView1.SelectedValue != null) { int custid = Convert.ToInt32(GridView1.SelectedValue); int gun = 365; string gunS = Request.QueryString["gun"]; if (!String.IsNullOrEmpty(gunS)) { gun = Int32.Parse(gunS); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { FaturaBas bas = new FaturaBas(dc); AyarCurrent ay = new AyarCurrent(dc); extre extreBilgi = bas.ExtreBilgileri(custid, gun, ay.get()); Session["extre"] = extreBilgi; string uri = "/Baski.aspx?tip=extre"; Response.Redirect(uri); } } }
protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { System.Web.HttpContext.Current.Response.Redirect("/Account/Giris.aspx"); } using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma())) { if (!IsPostBack) { AyarCurrent ay = new AyarCurrent(dc); if (ay.lisansKontrol() == false) { Response.Redirect("/LisansError"); } //if (ay.calismaTipli() == true) //{ tarife_listesi(dc); //drdTarifeTanim.Visible = true; //} //else //{ // drdTarifeTanim.Visible = false; //} ortak(dc, "", ""); grdOperator.DataSource = KullaniciIslem.FirmaOperatorleri(); grdOperator.DataBind(); } } if (!User.IsInRole("Admin") && !User.IsInRole("mudur")) { txtHesapMaliyet.Visible = false; } }