private void UrunAlis() { frmUrunAlis alis = Application.OpenForms["frmUrunAlis"] as frmUrunAlis; UrunAlisReport cr = new UrunAlisReport(); var result = (from s in db.vwUrunAlisAltUsts where s.AlisGrupNo == GrupNo select s).ToList(); PrintYardim ch = new PrintYardim(); DataTable dt = ch.ConvertTo(result); cr.SetDataSource(dt); crvPrint.ReportSource = cr; }
private void Satis() { AlSat.frmSatis als = Application.OpenForms["frmSatis"] as AlSat.frmSatis; pSatis cr = new pSatis(); var srg = (from s in _db.ViewUps where s.SatisNo == int.Parse(als.txtSatisNo.Text) select s).ToList(); PrintYardim ch = new PrintYardim(); DataTable dt = ch.ConvertTo(srg); cr.SetDataSource(dt); crvPrint.ReportSource = cr; }
private void HastaTakipList() { frmUrolojiListe lst = Application.OpenForms["HastaTakipList"] as frmUrolojiListe; hastatakiplist cr = new hastatakiplist(); var src = (from s in db.HastaTakips select s).ToList(); if (src != null) { PrintYardim ch = new PrintYardim(); DataTable dt = ch.ConvertTo(src); cr.SetDataSource(dt); crystalReportViewer1.ReportSource = cr; } }
private void SiparisAl() { frmSiparisAl stk = Application.OpenForms["frmSiparisAl"] as frmSiparisAl; rSiparisAl ral = new rSiparisAl(); var lst = (from s in db.vwSiparisAls where s.SiparisNo == int.Parse(MainPage.Aktar) select s).ToList(); if (lst != null) { PrintYardim ch = new PrintYardim(); //ch : crystal Help kısaltması. DataTable dt = ch.ConverTo(lst); ral.SetDataSource(dt); crvPrint.ReportSource = ral; } MainPage.Aktar = ""; }
private void StokGiris() { frmStokGiris stk = Application.OpenForms["frmStokGiris"] as frmStokGiris; rStokGiris rsg = new rStokGiris(); var lst = (from s in db.vwStokGiris where s.StokGNo == int.Parse(MainPage.Aktar) select s).ToList(); if (lst != null) { PrintYardim ch = new PrintYardim(); //ch : crystal Help kısaltması. DataTable dt = ch.ConverTo(lst); rsg.SetDataSource(dt); crvPrint.ReportSource = rsg; } MainPage.Aktar = ""; }