Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Dosya dosya = new Dosya();

            dosya.ProgressChanged += Dosya_ProcChanged;
            dosya.Cikar("Setup.exe");
        }
Ejemplo n.º 2
0
 public NIslemSonuc <int> Ekle(Dosya dosya)
 {
     try
     {
         entity.Dosya.Add(dosya);
         entity.SaveChanges();
         return(new NIslemSonuc <int>
         {
             basariliMi = true,
             Veri = dosya.dosya_id,
             mesaj = "Dosya Ekleme Başarılı"
         });
     }
     catch (Exception ex)
     {
         return(new NIslemSonuc <int>
         {
             basariliMi = false,
             hata = new NHata
             {
                 aciklama = "Ekleme Metodunda Hata",
                 mesaj = ex.Message,
                 sinif = "Dosya Veritabani",
                 strace = ex.StackTrace,
                 tarih = DateTime.Now
             },
             mesaj = ex.Message
         });
     }
 }
Ejemplo n.º 3
0
        public ServiceResult Edits(int DosyaId, string DosyaAdi, string kullaniciId)
        {
            ServiceResult result = new ServiceResult();
            Dosya         dosya  = db.Dosya.SingleOrDefault(x => x.DosyaId == DosyaId);

            if (dosya == null)
            {
                result.Data = false;
                return(result);
            }
            db.Entry(dosya).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            dosya.KullaniciId     = Convert.ToInt32(kullaniciId);
            var eskiyol = dosya.DosyaYolu;
            var dosyaAdiwithExtension = DosyaAdi + dosya.DosyaTipi;
            var dosyanewpath          = Path.Combine(hostingEnvironment.WebRootPath, "Dosyalarım", kullaniciId, dosyaAdiwithExtension);
            var ispathExist           = db.Dosya.Any(x => x.DosyaYolu == dosyanewpath && x.Durumu != true);

            if (ispathExist == true)
            {
                result.Code    = 0;
                result.Data    = false;
                result.Message = "Dosya Zaten Var";
                return(result);
            }
            else
            {
                dosya.DosyaAdi  = dosyaAdiwithExtension;
                dosya.DosyaYolu = dosyanewpath;
                System.IO.File.Move(eskiyol, dosyanewpath);
                db.SaveChanges();
                result.Code    = 1;
                result.Message = "Başarılı";
                return(result);
            }
        }
 public ActionResult DosyaYukle(string Gorev_Id, string Kullanici_Id, HttpPostedFileBase dosya)
 {
     using (TezProjectEntities db = new TezProjectEntities())
     {
         try
         {
             string dosyaYolu   = Gorev_Id + Kullanici_Id + Path.GetFileName(dosya.FileName);
             var    yuklemeYeri = Path.Combine(Server.MapPath("~/UploadedFiles"), dosyaYolu);
             dosya.SaveAs(yuklemeYeri);
             Dosya dosyam = new Dosya();
             dosyam.Gorev_Id       = Convert.ToInt32(Gorev_Id);
             dosyam.Kullanici_Id   = Convert.ToInt32(Kullanici_Id);
             dosyam.Dosya_Adi      = dosyaYolu;
             dosyam.Yukleme_Yeri   = yuklemeYeri;
             dosyam.Dosya_Uzantisi = Path.GetExtension(dosya.FileName);
             //TODO: Dosya Uzantısı kontrol edilecek.
             db.Dosyas.Add(dosyam);
             db.SaveChanges();
             TempData["Message"] = Gorev_Id + " Idli gorev için dosya Yukleme işlemi Başarılı";
             return(RedirectToAction("OgrenciGorevListele"));
         }
         catch (Exception)
         {
             TempData["Message"] = Gorev_Id + " Idli gorev için dosya Yukleme işlemi Başarısız";
             return(RedirectToAction("OgrenciGorevListele"));
         }
     }
 }
Ejemplo n.º 5
0
        private void GetAllFiles()
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();

            DialogResult result = fbd.ShowDialog();

            if (result == DialogResult.OK)
            {
                lst.Clear();

                string[] allfiles = Directory.GetFiles(fbd.SelectedPath, "*.*", SearchOption.AllDirectories);

                foreach (var file in allfiles.OrderBy(x => x))
                {
                    FileInfo info = new FileInfo(file);
                    try
                    {
                        Dosya dosya = new Dosya(info);
                        lst.Add(dosya);
                    }
                    catch (Exception)
                    {
                    }
                }
            }
        }
Ejemplo n.º 6
0
        void DosyalarıDoldur(Dosya dossya, AccordionControlElement element)
        {
            if (dossya.EkDosya == null)
            {
                return;
            }
            var ekdosyalar = dossya.EkDosya
                             .Where(x => x.isActive)
                             .ToList();

            foreach (var x in ekdosyalar)
            {
                var yeni = new AccordionControlElement()
                {
                    Image = GetImage(ElementTipi.EkDosya),
                    //Style = x.EkDosya?.Count  == 0 ? ElementStyle.Item : ElementStyle.Group,
                    Style = ElementStyle.Group,

                    Tag  = x,
                    Text = $"{x.Adı } {x.Soyadı }-{x.DavaTarihi.ToShortDateString()}",
                };

                element.Elements.Add(yeni);
                yeni.Click += Element_Click;
                if (x.EkDosya?.Count > 0)
                {
                    DosyalarıDoldur(x, yeni);
                }
            }
        }
 public ActionResult DosyaIndır(int kullanici_Id, int gorev_Id)
 {
     using (TezProjectEntities db = new TezProjectEntities())
     {
         Dosya dosya = db.Dosyas.Where(x => x.Gorev_Id == gorev_Id && x.Kullanici_Id == kullanici_Id).FirstOrDefault();
         //return File("~/Content/MyFile.pdf", "application/pdf", "MyRenamedFile.pdf");
         return(File(dosya.Yukleme_Yeri, dosya.Dosya_Uzantisi, dosya.Dosya_Adi));
     }
 }
Ejemplo n.º 8
0
        public void DBSil(int DosyaId, Dosya dosya)
        {
            var dosya1         = dosya;
            var silinecekDosya = dosya1.DosyaYolu;

            dosya1.Durumu = true;
            File.Delete(silinecekDosya);
            db.SaveChanges();
        }
Ejemplo n.º 9
0
        public ActionResult DegisiklikKaydet(int ID, string Aciklama, string Baslik)
        {
            Dosya dosya = _db.Dosyalar.Find(ID);

            dosya.Aciklama = Aciklama;
            dosya.Baslik   = Baslik;
            _db.SaveChanges();
            return(Json(""));
        }
Ejemplo n.º 10
0
 public byte[] DosyaGetir(Dosya dosya)
 {
     if (File.Exists(Path.Combine(DosyaYolu, dosya.DosyaKodu)))
     {
         byte[] allBytes = File.ReadAllBytes(Path.Combine(DosyaYolu, dosya.DosyaKodu));
         return(allBytes);
     }
     return(null);
 }
Ejemplo n.º 11
0
 public string DosyaYoluGetir(Dosya dosya)
 {
     if (File.Exists(Path.Combine(DosyaYolu, dosya.DosyaKodu)))
     {
         var dosyaYolu = Path.Combine(DosyaYolu, dosya.DosyaKodu);
         return(dosyaYolu);
     }
     return(null);
 }
Ejemplo n.º 12
0
        private void TsmiKaydet_Click(object sender, EventArgs e)
        {
            if (sfdKaydet.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            _dosya = new Dosya(sfdKaydet.FileName);
            _dosya.Kaydet(_aktar.Kanallar);
        }
Ejemplo n.º 13
0
        private void TsmiAramSonuclariniKaydet_Click(object sender, EventArgs e)
        {
            if (sfdKaydet.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            _dosya = new Dosya(sfdKaydet.FileName);
            _dosya.Kaydet(KanalBul());
        }
Ejemplo n.º 14
0
        public IActionResult YeniDosyaEkle(string dosyaTuru, IFormFile dosya)
        {
            try
            {
                if (string.IsNullOrWhiteSpace(dosyaTuru))
                {
                    throw new Exception("Hata: Dosya türü belirsiz!");
                }
                Tur theTur = db.Tur.FirstOrDefault(u => u.isim == dosyaTuru);
                if (theTur == null)
                {
                    throw new Exception("Hata: tür seçimi hatalı!");
                }
                if (dosya == null)
                {
                    throw new Exception("Hata: Dosya eklemediniz!");
                }
                if (dosya.Length < 1)
                {
                    throw new Exception("Hata: Dosya boş görünüyor!");
                }

                string sysname = Arac.RandomString(16);
                string path    = Path.Combine(uploadsRoot, sysname);

                using (Stream gelenStream = dosya.OpenReadStream())
                    using (MemoryStream ms = new MemoryStream())
                    {
                        gelenStream.CopyTo(ms);
                        using (MemoryStream output = new SIFRELEME().Kilitle(ms))
                            using (FileStream fs = new FileStream(path, FileMode.Create))
                                fs.Write(output.ToArray(), 0, Convert.ToInt32(output.Length));
                    }


                Dosya d = new Dosya();
                d.tur     = theTur;
                d.tarih   = DateTime.Now;
                d.isim    = Path.GetFileNameWithoutExtension(dosya.FileName);
                d.boyut   = dosya.Length;
                d.uzantı  = Path.GetExtension(dosya.FileName);
                d.sysname = sysname;
                d.kulName = HttpContext.Session.GetString("kulname");
                IconMaker icon = new IconMaker();
                d.icon = icon.Yap(dosya.FileName);
                db.Add(d);
                db.SaveChanges();
                return(Json("Tamam"));
            }
            catch (Exception e)
            {
                return(Json("Hata: " + e.Message));
            }
        }
Ejemplo n.º 15
0
 void GetValues(Dosya dos)
 {
     txtDosyaNo.Text           = dos.DosyaNo;
     txtAdı.Text               = dos.Adı;
     txtSoyadı.Text            = dos.Soyadı;
     txtTCNO.Text              = dos.TCNO.ToString();
     dateDavaTarihi.EditValue  = dos.DavaTarihi;
     dateKayıtTarihi.EditValue = dos.CreatedDate;
     chckZaman.Checked         = dos.ZamanAsimi;
     txtAçıklama.Text          = dos.Açıklama;
 }
Ejemplo n.º 16
0
 void EkdosyaSil(Dosya ekdosya)
 {
     ekdosya.EkDosya.ToList().ForEach(x =>
     {
         DosyaSil(x);
         if (ekdosya.EkDosya?.Count > 0)
         {
             EkdosyaSil(x);
         }
     });
 }
        public IActionResult Sil(int id)
        {
            var galeri = db.GetirIdile(id);

            if (db.Sil(galeri))
            {
                string webRoot  = _env.WebRootPath;
                string filePath = webRoot + galeri.Resim;
                Dosya.DosyaSil(filePath);
            }
            return(Redirect("/Admin/Galeri/Goster/" + galeri.GaleriKatId.ToString()));
        }
Ejemplo n.º 18
0
 public bool DosyaSil(Dosya dosya)
 {
     if (File.Exists(Path.Combine(DosyaYolu, dosya.DosyaKodu)))
     {
         var dosyaYolu = Path.Combine(DosyaYolu, dosya.DosyaKodu);
         File.Delete(Path.Combine(DosyaYolu, dosya.DosyaIsmi));
         db.Dosyalar.Remove(dosya);
         db.SaveChanges();
         return(true);
     }
     return(false);
 }
Ejemplo n.º 19
0
        public JsonResult ResimEkle(Dosya dosya, HttpPostedFileBase link)
        {
            try
            {
                string   uzanti    = Path.GetExtension(link.FileName).ToLower();
                string[] Uzantilar = new[] { ".jpg", ".png", ".docx", ".xlsx", ".pdf" };

                if (uzanti == ".jpg" || uzanti == ".png")
                {
                    string dosyaadi = ResimKaydet(link);
                    dosya.link = "/Content/images/" + dosyaadi;
                }
                else if (uzanti == ".docx" || uzanti == ".xlsx" || uzanti == ".pdf")
                {
                    string wep      = Path.GetFileNameWithoutExtension(link.FileName) + Guid.NewGuid() + Path.GetExtension(link.FileName);
                    string dosyaadi = wep;
                    dosya.link = "/Content/images/" + dosyaadi;
                }
                else
                {
                    return(Json(false, JsonRequestBehavior.AllowGet));
                }
                int imgId = 0;
                var file  = dosya.link;

                if (file != null)
                {
                    BinaryReader reader = new BinaryReader(link.InputStream);
                    Dosya        img    = new Dosya();
                    img.link = dosya.link;
                    foreach (string u in Uzantilar)
                    {
                        if (uzanti == u)
                        {
                            if (ModelState.IsValid)
                            {
                                using (context)
                                {
                                    context.Dosyas.Add(img);
                                    context.SaveChanges();
                                    imgId = img.id;
                                }
                            }
                        }
                    }
                }
                return(Json(true, JsonRequestBehavior.AllowGet));
            }
            catch
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }
        }
Ejemplo n.º 20
0
 public Dosya DosyaKaydet(byte[] veri, string dosyaIsmi)
 {
     if (veri != null && veri.Length != 0)
     {
         var dosya     = new Dosya(dosyaIsmi);
         var dosyaYolu = Path.Combine(DosyaYolu, dosya.DosyaKodu);
         File.WriteAllBytes(dosyaYolu, veri);
         db.Dosyalar.Add(dosya);
         db.SaveChanges();
         return(dosya);
     }
     return(null);
 }
Ejemplo n.º 21
0
        public void Form1_Load(object sender, EventArgs e)
        {
            ElementDosyaParent.Elements.Clear();
            ElementParentTalepler.Elements.Clear();
            ElementParentUcretBilgileri.Elements.Clear();
            ElementParentÇalışmaDönemi.Elements.Clear();
            ElementParentKıdemTaz.Elements.Clear();
            Container.Controls.Clear();
            //Container.AddControl(new Forms.İhbarTazminatıForm());

            ElementTest.HeaderControl = simpleButton2;
            ÇalışmaDosyası            = null;
            DosyaDoldur();
        }
Ejemplo n.º 22
0
        public ServiceResult DosyaYukle(DosyaYukleme yuklenecekDosya, string kullaniciId)
        {
            var           kId    = Convert.ToInt32(kullaniciId);
            ServiceResult result = new ServiceResult();

            foreach (var item in yuklenecekDosya.Files)
            {
                var filename = Path.GetFileName(item.FileName);

                var path        = Path.Combine(hostingEnvironment.WebRootPath, "Dosyalarım");
                var filepath    = Path.Combine(path, kullaniciId, filename);
                var isPathExist = db.Dosya.Any(x => x.DosyaYolu == filepath && x.Durumu != true);
                if (isPathExist == true)
                {
                    result.Message = "Bir veya birden fazla dosyanız zaten yuklu";
                }
                else
                {
                    if (item.Length < 0)
                    {
                        result.Message = "Dosyanız yuklenemedi";
                    }
                    Dosya dosya = new Dosya
                    {
                        DosyaBoyutu       = Convert.ToInt32(item.Length),
                        DosyaTipi         = Path.GetExtension(filename),
                        DosyaAdi          = filename,
                        DosyaYolu         = filepath,
                        KullaniciId       = kId,
                        OlusturulmaZamani = DateTime.Now,
                        DosyaMi           = true
                    };
                    db.Dosya.Add(dosya);
                    result.Data    = true;
                    result.Code    = 1;
                    result.Message = "Başarılı bir şekilde yukleme tamamlandı";
                    db.SaveChanges();
                    var checkpath = Path.Combine(hostingEnvironment.WebRootPath, "Dosyalarım", kullaniciId);
                    if (!Directory.Exists(checkpath))
                    {
                        Directory.CreateDirectory(checkpath);
                    }
                    using (var filestream = new FileStream(filepath, FileMode.Create))
                    {
                        item.CopyTo(filestream);
                    }
                }
            }
            return(result);
        }
Ejemplo n.º 23
0
 public bool DosyaDelete(Dosya dosya)
 {
     try
     {
         int      id  = Convert.ToInt32(dosya.ID);
         TblDosya dos = db.TblDosya.Single(pe => pe.ID == id);
         db.TblDosya.Remove(dos);
         db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Ejemplo n.º 24
0
        protected void BtnKaydet_Click(object sender, EventArgs e)
        {
            divBilgiMesaji.Visible = true;

            try
            {
                System.Threading.Thread.Sleep(3000);

                if (FuDosya.HasFile)
                {
                    FileInfo fileInfo = new FileInfo(FuDosya.FileName);
                    Dosya    dosya    = new Dosya
                    {
                        baslik            = TxtBaslik.Text,
                        iliskili_firma_id = int.Parse(DrpFirma.SelectedValue.ToString()),
                        kategori_id       = int.Parse(DrpKategori.SelectedValue),
                        silindi_mi        = false,
                        tarih             = DateTime.Now,
                        uzanti            = fileInfo.Extension,
                        yol = string_islemleri.BenzersizAdUret() + fileInfo.Extension,
                        yukleyen_personel_tc = (Session["kullanici"] as Personel).personel_tc,
                    };

                    var sonuc = dosya_veritabani.Ekle(dosya);
                    if (sonuc.basariliMi)
                    {
                        divBilgiMesaji.InnerText = sonuc.mesaj;

                        string kaydedilecek_yol = "/Uploads/" + dosya.yol;
                        FuDosya.SaveAs(Server.MapPath(kaydedilecek_yol));
                    }
                    else
                    {
                        divBilgiMesaji.InnerText = sonuc.mesaj;
                    }
                }
                else
                {
                    divBilgiMesaji.InnerText = "Dosya Seçiniz..!";
                }
            }
            catch (Exception ex)
            {
                divBilgiMesaji.InnerText = ex.Message;
            }
        }
Ejemplo n.º 25
0
        public ServiceResult Sil(int DosyaId)
        {
            ServiceResult result = new ServiceResult();
            Dosya         dosya  = db.Dosya.SingleOrDefault(x => x.DosyaId == DosyaId);

            if (dosya != null)
            {
                DBSil(DosyaId, dosya);
                result.Code = 1;
                result.Data = true;
            }
            else
            {
                result.Data = false;
            }
            return(result);
        }
Ejemplo n.º 26
0
        private void TsmiAc_Click(object sender, EventArgs e)
        {
            if (ofdAc.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            _dosya = new Dosya(ofdAc.FileName);
            _dosya.Ac();

            _aktar = new Aktar(_dosya);
            ListViewYukle(_aktar.Kanallar);

            KanalSayisi();

            tstBul.Text = null;
        }
        public ActionResult DosyaYukle(Dosya p)
        {
            if (Request.Files.Count > 0)
            {
                string dosyaAdi = Path.GetFileName(Request.Files[0].FileName);
                //string uzanti = Path.GetExtension(Request.Files[0].FileName);
                string yol = "~/Dosya/" + dosyaAdi;
                Request.Files[0].SaveAs(Server.MapPath(yol));
                p.DosyaYolu = "/Dosya/" + dosyaAdi;
            }
            c.Dosyas.Add(p);
            c.SaveChanges();

            var projeId = c.Faturas.Where(x => x.FaturaId == p.FaturaId).Select(y => y.ProjeId).FirstOrDefault();

            return(RedirectToAction("ListeGetir", new { id = projeId }));
        }
        public void DosyaTB_Ekle(string DosyaYolu, int DosyaBoyutu, string DosyaTipi, string DosyaAdi, int ParentId, int KullaniciId, bool DosyaMi)
        {
            Dosya dosya = new Dosya
            {
                DosyaBoyutu       = DosyaBoyutu,
                DosyaTipi         = DosyaTipi,
                DosyaAdi          = DosyaAdi,
                DosyaYolu         = DosyaYolu,
                KullaniciId       = KullaniciId,
                OlusturulmaZamani = DateTime.Now,
                ParentId          = ParentId,
                DosyaMi           = DosyaMi,
                Durumu            = null
            };

            db.Dosya.Add(dosya);
            db.SaveChanges();
        }
Ejemplo n.º 29
0
 Dosya SetValues(Dosya dos, bool isActive, int?anadosyaId)
 {
     if (isActive)
     {
         dos.DosyaNo    = txtDosyaNo.Text;
         dos.Adı        = txtAdı.Text;
         dos.Soyadı     = txtSoyadı.Text;
         dos.TCNO       = long.Parse(txtTCNO.Text);
         dos.DavaTarihi = (DateTime)dateDavaTarihi.EditValue;
         dos.ZamanAsimi = chckZaman.Checked;
         dos.Açıklama   = txtAçıklama.Text;
         dos.UserId     = MainForm.User.Id;
         dos.AnaDosyaID = anadosyaId;
         //dos.UpdatedDate = dos.Id > 0 ? DateTime.Now : (DateTime?)null;
     }
     //dos.DeletedDate = DateTime.Now;
     dos.isActive = isActive;
     return(dos);
 }
Ejemplo n.º 30
0
        public bool DosyaEkle(Dosya dosya)
        {
            try
            {
                TblDosya dos = new TblDosya();

                dos.Ad        = dosya.Ad;
                dos.OlusTarih = Convert.ToDateTime(dosya.OlusTarihi);
                dos.Path      = dosya.Path;
                dos.Sira      = Convert.ToInt32(dosya.Sira);
                //  dos.TipID = Convert.ToInt32(dosya.TipID);
                db.TblDosya.Add(dos);
                db.SaveChanges();
                return(true);
            }
            catch
            {
                return(false);
            }
        }
Ejemplo n.º 31
0
        public static bool tahlilal(string barkodd,string hastatckno, bool tekrarmi)
        {
            if (barkodd.Length > 0)
            {
                MuayeneTetkik[] mtetkik = Persistence.ReadList<MuayeneTetkik>(@"select * from MuayeneTetkik where barkod=@prm0", barkodd);
                if (mtetkik == null)
                    return false;
                if (mtetkik.Length == 0)
                    return false;

                if (!tekrarmi)
                {
                    if (System.IO.File.Exists(Current.pdfklasor + "\\" + hastatckno + "_" + barkodd + ".pdf"))
                    return true;
                }

                LabSoapClient lsc = new LabSoapClient();
                Dosya[] dosya = new Dosya[1];
                string sSonuc = "";
                string sSonucAciklama = "";

                try
                {
                    dosya = lsc.LabTetkikGetir(Current.AktifDoktor.TckNo.ToString(),
                            Current.AktifDoktor.TckNo.ToString(),
                            Current.AktifDoktor.WebServisSifre, "", barkodd,
                            hastatckno, "", "",
                            out sSonuc, out sSonucAciklama);
                    if (dosya.Length == 0)
                    {
                        foreach (MuayeneTetkik mt in mtetkik)
                        {
                            mt.Sonuc = sSonucAciklama;
                            mt.Update();
                        }
                        //MessageBox.Show(Current.pdfklasor + "\\" + Current.AktifHasta.TckNo.ToString() + "_" + barkodd +
                        //    ".pdf dosyası bilgisayarınızda bulunamadı.\nMerkezi sistemden tekrar istendi ancak çekilemedi.\nKarşı sistemden gelen mesaj:\n\n-" + sSonucAciklama + "-");
                        return false;
                    }

                    foreach (MuayeneTetkik mt in mtetkik)
                    {
                        mt.Sonuc = "Geldi";
                        mt.DonusTarihi = DateTime.Now;
                        mt.Update();
                    }

                    //int i = 0;
                    //foreach (Dosya item in dosya)
                    //{
                        //i++;
                        byte[] encodedDataAsBytes = System.Convert.FromBase64String(dosya[0].dosya);
                        string pdfstr = System.Text.Encoding.GetEncoding("ISO-8859-9").GetString(encodedDataAsBytes);
                        TextWriter writer = new StreamWriter(Current.pdfklasor + "\\" + hastatckno + "_" + barkodd
                            + ".pdf", false, Encoding.GetEncoding("ISO-8859-9"));
                        writer.Write(pdfstr);
                        writer.Flush();
                        writer.Close();
                        writer.Dispose();
                   // }
                    if (System.IO.File.Exists(Current.pdfklasor + "\\" + hastatckno + "_" + barkodd + ".pdf"))
                        return true;
                    else
                        return false;

                }

                catch
                {
                    return false;
                }
            }
            return true;

            #region bakanlik
            ///////////////////////////////////////////////////////////////////////////////////////////////////////

            //CLaboratuvar lab = new CLaboratuvar();
            //string rMesaj; int Sonuc;

            //LaboratuvarHastaTetkikListeleCevap labsonuc = lab.fHastaTetkikListele(
            //    "P",
            //    Current.AktifDoktor.TckNo.ToString(),
            //    Current.AktifDoktor.TckNo.ToString(),
            //    Current.AktifDoktor.WebServisSifre,
            //    Current.AktifDoktor.Adi,
            //    Current.AktifDoktor.Soyadi,
            //    0,
            //    33,
            //    Current.AktifHasta.TckNo.ToString(),
            //    Current.AktifHasta.Adi,
            //    Current.AktifHasta.Soyadi,
            //    Current.AktifHasta.Cinsiyeti.ToString()[0].ToString(),
            //    Current.AktifHasta.BeyanCinsiyeti.ToString()[0].ToString(),
            //    Current.AktifHasta.BeyanDogumTarihi.ToString("yyyyMMdd"),
            //    Current.AktifHasta.DogumTarihi.ToString("yyyyMMdd"),
            //    out rMesaj,
            //    out Sonuc
            //    );

            //LaboratuvarTetkikGetirCevap tetkiksonuc = lab.fTetkikGetir
            //    (
            //     "P",
            //    Current.AktifDoktor.TckNo.ToString(),
            //    Current.AktifDoktor.TckNo.ToString(),
            //    Current.AktifDoktor.WebServisSifre,
            //    Current.AktifDoktor.Adi,
            //    Current.AktifDoktor.Soyadi,
            //    0,
            //    33,
            //    "100827000222",
            //    "170011",
            //    "28e6eeb2-a39b-479c-b201-8a71837feeb9",
            //    "2681",
            //    "KIRKLARELİ HALK SAĞLIĞI LABORATUARI",

            //    out rMesaj,
            //    out Sonuc

            //);
            #endregion bakanlik
        }