Ejemplo n.º 1
0
        private void bbtPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                var row = gridView1.FocusedRowHandle;

                var objView = gridView1.GetFocusedRow();
                if (objView == null)
                {
                    return;
                }
                var objData = (PYC_ViewModel)objView;
                using (var db = new RestaurantManagerDataEntities())
                {
                    var obj     = db.PYCs.AsNoTracking().FirstOrDefault(x => x.idyc == objData.idyc);
                    var details = new PYCBll().GetListD_PYC(objData.idyc);
                    using (frmPrint frm = new frmPrint())
                    {
                        frm.PrintPYC(obj, details);
                        frm.ShowDialog();
                    }
                }
            }
            catch
            {
            }
        }
Ejemplo n.º 2
0
        public void do_Print()
        {
            if (do_Validation())
            {
                return;
            }
            try
            {
                var req = new ProductPrintRequest
                {
                    ProductBegin = Convert.ToInt32(lp_PRoductBegin.EditValue),
                    ProductEnd   = Convert.ToInt32(lp_PRoductEnd.EditValue),
                    companyId    = lc_Company.EditValue == null ? 0 : (int)lc_Company.EditValue,
                    DepotId      = lc_Depot.EditValue == null ? 0 : (int)lc_Depot.EditValue
                };
                List <ProductDTO> data = new List <ProductDTO>();
                data = _repository.Run <ReportService, List <ProductDTO> >(x => x.Get_List_EnvanterBilgisi(req));

                if (data.Count > 0)
                {
                    frmPrint frm = new frmPrint();
                    frm.PrintEnvanterBilgisi(data);
                    frm.ShowDialog();
                }
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 3
0
        private void btnProBarcodeLabel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ProductDTO Orow = (ProductDTO)gcvProducts.GetFocusedRow();

            if (Orow != null)
            {
                if (Orow.PBarcodeType == (int)BacodeCaracter.EAN13)
                {
                    if (Orow.PBarcode.Length > 0)
                    {
                        frmPrint frm = new frmPrint();
                        frm.PrintBarcode_13(Orow);
                        frm.ShowDialog();
                    }
                }
                if (Orow.PBarcodeType == (int)BacodeCaracter.EAN8)
                {
                    if (Orow.PBarcode.Length > 0)
                    {
                        frmPrint frm = new frmPrint();
                        frm.PrintBarcode_8(Orow);
                        frm.ShowDialog();
                    }
                }
            }
        }
Ejemplo n.º 4
0
        //
        // Print Customer

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            frmPrint frm = new frmPrint();

            frm.PrintTopPurchase();
            frm.ShowDialog(this);
        }
Ejemplo n.º 5
0
 private void btExcel_Click(object sender, EventArgs e)
 {
     using (frmPrint frm = new frmPrint())
     {
         frm.PrintListEmp();
         frm.ShowDialog();
     }
 }
Ejemplo n.º 6
0
        private void Yazdir()
        {
            frmPrint prnt = new frmPrint();

            prnt.HangiForm = "StokGiris";
            MainPage.Aktar = txtStokGirisNo.Text;
            prnt.Show();
        }
Ejemplo n.º 7
0
        private void Yaz()
        {
            frmPrint pr = new frmPrint();

            pr.GrupNo     = txtAlisGrupNo.Text;
            pr.HangiListe = "UrunAlis";
            pr.Show();
        }
        void EffectivePermissionsReportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            frmPrint frm = new frmPrint();
            ptEffectivePermissions rep = new ptEffectivePermissions();

            rep.Applications = new IAzManApplication[] { this.application };
            frm.document     = rep;
            this.SnapIn.Console.ShowDialog(frm);
        }
        void ItemsHReportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            frmPrint         frm = new frmPrint();
            ptItemsHierarchy rep = new ptItemsHierarchy();

            rep.Applications = new IAzManApplication[] { this.application };
            frm.document     = rep;
            this.SnapIn.Console.ShowDialog(frm);
        }
Ejemplo n.º 10
0
 private void bbi_Report_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (__dll_SaleOwner.Count > 0)
     {
         frmPrint frm = new frmPrint();
         frm.DailySaleOwner(__dll_SaleOwner);
         frm.ShowDialog();
     }
 }
Ejemplo n.º 11
0
 private void bbi_Print_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (__dll_SaleBarcodCreate.Count > 0)
     {
         frmPrint frm = new frmPrint();
         frm.PrintSaleBarcodCreate(__dll_SaleBarcodCreate);
         frm.ShowDialog();
     }
 }
Ejemplo n.º 12
0
        void AuthorizationsReportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            frmPrint             frm = new frmPrint();
            ptItemAuthorizations rep = new ptItemAuthorizations();

            rep.Applications = this.store.GetApplications();
            frm.document     = rep;
            this.SnapIn.Console.ShowDialog(frm);
        }
        public void Yazdir()
        {
            frmPrint fPr1 = new frmPrint();

            if (fPr1.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("Etiket basıldı");
            }
        }
Ejemplo n.º 14
0
 private void btnXBC_Click(object sender, EventArgs e)
 {
     if (check)
     {
         using (frmPrint frm = new frmPrint())
         {
             frm.printDSSVLop(Lop, Khoa, SinhVienDAO.Instance.GetListSV(MaLop));
             frm.ShowDialog();
         }
     }
 }
Ejemplo n.º 15
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     if (check)
     {
         using (frmPrint frm = new frmPrint())
         {
             frm.printDSMonHoc(tenLop, tenKhoa, MonHocDAO.Instance.SelectByLop(malop));
             frm.ShowDialog();
         }
     }
 }
Ejemplo n.º 16
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     if (check)
     {
         using (frmPrint frm = new frmPrint())
         {
             frm.printDSDiemCaNhan(SinhVienDAO.Instance.GetStudentDetail(masv), DiemMonHocDAO.Instance.GetListDiemSV(masv));
             frm.ShowDialog();
         }
     }
 }
Ejemplo n.º 17
0
        private void do_report()
        {
            DailyOwnerDTO oRow = (DailyOwnerDTO)gcv_DailyOwner.GetFocusedRow();

            if (oRow != null)
            {
                frmPrint frm = new frmPrint();
                frm.PrintGunSonu(oRow);
                frm.ShowDialog();
            }
        }
Ejemplo n.º 18
0
 private void btPrint_Click(object sender, EventArgs e)
 {
     using (frmPrint frm = new frmPrint())
     {
         splashScreenManager1.ShowWaitForm();
         frm.PrintPurchaseBill(txPurchaseID.Text, cbEmployee.Text, purchaseDate.DateTime);
         splashScreenManager1.CloseWaitForm();
         frm.ShowDialog();
         frm.Owner = this;
     }
 }
Ejemplo n.º 19
0
        //
        // Print Bill

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            if (AcceptText())
            {
                waitForm.ShowWaitForm();
                frmPrint frm = new frmPrint();
                List <OrderBillDetail> mlist = detail.getList(cbBillID.Text);
                frm.PrintOrderBill(cbBillID.Text, mlist);
                waitForm.CloseWaitForm();
                frm.ShowDialog();
            }
        }
Ejemplo n.º 20
0
 private void bbi_Print_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (AppMain.User.ReportPrint.GetValueOrDefault() == false)
     {
         XtraMessageBox.Show("Rapor Alma Yetkiniz Yoktur.", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
     }
     if (_productlist.Count > 0)
     {
         frmPrint frm = new frmPrint();
         frm.PrintProduct(_productlist);
         frm.ShowDialog();
     }
 }
Ejemplo n.º 21
0
        private void btnprinter_Click(object sender, EventArgs e)
        {
            if (gridControl1.DataSource != null)
            {
                using (frmPrint frm = new frmPrint())
                {
                    rpThongTin rp = ThongTinDAO.Instance.getThongTinNamHoc(maHKy);

                    frm.printDHB(tenKhoa, rp, DiemMonHocDAO.Instance.GetListHBSV(maHKy, maKhoa));
                    frm.ShowDialog();
                }
            }
        }
Ejemplo n.º 22
0
        private void btnIn_Click(object sender, EventArgs e)
        {
            phieuChiTien.NgayLap = DateTime.Parse(String.Format("{0:MM/dd/yyyy}", dtPhieu.Text));
            phieuChiTien.SoTien  = (float)Convert.ToDouble(txtTienTra.Text);
            phieuChiTien.GhiChu  = txtLyDo.Text;
            phieuChiTien.MaPhieu = txtPhieu.Text;
            phieuChiTien.TenNV   = cbNhanVien.Text;

            var print = new frmPrint();

            print.PrintReportChi(phieuChiTien);
            print.ShowDialog();
        }
        private void _print()
        {
            rptBCHoatDongTapHuan rpt      = new rptBCHoatDongTapHuan();
            CategoryTapHuan      enumLoai = (CategoryTapHuan)_id_loai;
            //switch (enumLoai)
            //{
            //    case CategoryTapHuan.TH_TAPHUAN:
            var data = (from p in context.QL_HOATDONG_TAPHUAN
                        where deSearchTuNgay.DateTime.Date <= p.TH_THOIGIAN_BATDAU &&
                        p.TH_THOIGIAN_BATDAU <= deSearchDenNgay.DateTime.Date &&
                        p.TH_LOAI_ID == _id_loai
                        select p).ToList();
            List <clsHoatDongTapHuan> listTapHuan = new List <clsHoatDongTapHuan>();

            foreach (QL_HOATDONG_TAPHUAN row in data)
            {
                clsHoatDongTapHuan item = new clsHoatDongTapHuan();
                item.TH_TEN      = row.TH_TEN;
                item.TH_THOIGIAN = FunctionHelper.formatFromDateToDate(row.TH_THOIGIAN_BATDAU, row.TH_THOIGIAN_KETTHUC);
                //item.TH_DIADIEM = row.TH_DIADIEM;
                //item.TH_DONVI_THUCHIEN = row.TH_DONVI_THUCHIEN;
                //item.TH_SOLUONG = row.TH_SOLUONG;
                //item.TH_TONGTIEN = row.TH_TONGTIEN??0;
                item.TH_NOIDUNG = row.TH_NOIDUNG;
                listTapHuan.Add(item);
            }
            DataTable dataTapHuan = FunctionHelper.ConvertToDataTable(listTapHuan);

            dataTapHuan.TableName = "HoatDongTapHuan";

            rpt.pLeftHeader.Value       = clsParameter.pHospital;
            rpt.pParentLeftHeader.Value = clsParameter.pParentHospital;
            rpt.pTitle.Value            = lueLoaiTapHuan.Text.ToUpper();
            rpt.pTuNgayDenNgay.Value    = FunctionHelper.formatFromDateToDate(deSearchTuNgay.DateTime, deSearchDenNgay.DateTime);
            //rpt.pTitleFooter.Value = ReportHelper.getTitleFooter(LoaiBaoCao.BM10);
            //rpt.pValueFooter.Value = ReportHelper.getValueFooter(LoaiBaoCao.BM10);

            rpt.DataSource = dataTapHuan;
            rpt.DataMember = "HoatDongTapHuan";
            //        break;
            //    default:
            //        break;
            //}

            frmPrint f = new frmPrint(rpt);

            f.ShowDialog();
        }
Ejemplo n.º 24
0
 private void btnPrintReport_Click(object sender, EventArgs e)
 {
     try
     {
         var fromDate = dtpFromDate.Value;
         var toDate   = dtpToDate.Value;
         using (frmPrint frm = new frmPrint())
         {
             frm.PrintBaoCaoDoanhThu(fromDate, toDate, lstHOADONTT);
             frm.ShowDialog();
         }
     }
     catch
     {
     }
 }
        void EffectivePermissionsReportAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            IAzManApplication[] applications = new IAzManApplication[this.SelectedNodes.Count];
            int index = 0;

            foreach (ApplicationScopeNode applicationScopeNode in this.SelectedNodes)
            {
                applications[index++] = applicationScopeNode.Application;
            }
            frmPrint frm = new frmPrint();
            ptEffectivePermissions rep = new ptEffectivePermissions();

            rep.Applications = applications;
            frm.document     = rep;
            this.SnapIn.Console.ShowDialog(frm);
        }
Ejemplo n.º 26
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            //if (rbsp.Checked)
            //{
            //    PriceRepository priceRepository = new PriceRepository();
            //    var costPrices = priceRepository.GetSellingPrices(fromdt.Value, dtto.Value, txtProdFrom.Text, txtProdTo.Text, txtSuppFrom.Text, txtSuppTo.Text, txtDeptFrom.Text, txtDeptTo.Text).ToList();
            //    if (costPrices.Count <= 0)
            //    {
            //        MessageBox.Show("No records to display!!", "No Records!!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //    }
            //    else
            //    {
            //        ReportDocument report = new PriceChange();
            //        report.SetDataSource(costPrices);
            //        report.SetParameterValue("@Company", Properties.Settings.Default.COMPANYNAME.ToUpper());
            //        report.SetParameterValue("@Branch", Properties.Settings.Default.BRANCHNAME.ToUpper());
            //        report.SetParameterValue("@Username", Properties.Settings.Default.USERNAME.ToUpper());
            //        report.SetParameterValue("@ReportName", "Selling");
            //        Form form = new frmPrint(report);
            //        form.Text = "Selling Price Change Report";
            //        form.Show();
            //    }
            //}
            //if (rbpc.Checked)
            //{
            StockCardm        priceRepository = new StockCardm();
            List <StockCardm> costPrices      = priceRepository.stockCard(txtProdFrom.Text, txtProdTo.Text, txtSuppFrom.Text, txtSuppTo.Text, fromdt.Value, dtto.Value, txtDeptFrom.Text, txtDeptTo.Text).ToList();

            if (costPrices.Count <= 0)
            {
                MessageBox.Show("No records to display!!", "No Records!!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                StockCard report = new StockCard();
                report.SetDataSource(costPrices);
                report.SetParameterValue("@Company", Properties.Settings.Default.COMPANYNAME.ToUpper());
                report.SetParameterValue("@Branch", Properties.Settings.Default.BRANCHNAME.ToUpper());
                report.SetParameterValue("@Username", Properties.Settings.Default.USERNAME.ToUpper());
                report.SetParameterValue("@fromdate", fromdt.Value.Date);
                report.SetParameterValue("@todate", dtto.Value.Date);
                Form form = new frmPrint(report);
                form.Text = "Stock Card Report";
                form.Show();
            }
            //}
        }
Ejemplo n.º 27
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     //  var obj = lstD_PYC.Current as PYC;
     if (this.idyc > 0)
     {
         using (var db = new RestaurantManagerDataEntities())
         {
             var obj     = db.PYCs.AsNoTracking().FirstOrDefault(x => x.idyc == this.idyc);
             var details = new PYCBll().GetListD_PYC(this.idyc);
             using (frmPrint frm = new frmPrint())
             {
                 frm.PrintPYC(obj, details);
                 frm.ShowDialog();
             }
         }
     }
 }
        private void btnControl_btnEventPrint_Click(object sender, EventArgs e)
        {
            string str;

            //if (chkAll.Checked)
            //    str = "SELECT sp.*, dvt.TEN DVT_TEN, gt.TEN GOITHAU_TEN FROM DM_SANPHAM sp "
            //        + " LEFT JOIN dbo.DM_GOITHAU gt ON gt.GOITHAU_ID = sp.SP_GOITHAU "
            //        + " LEFT JOIN dbo.DM_DVT dvt ON dvt.DVT_ID=sp.DVT_ID "
            //        + " WHERE isnull(gt.DELETED,0)=0 "
            //        + " and DOT_MA='" + clsParameter._dotMaDauThau + "'";
            //else
            str = "SELECT sp.*, dvt.TEN DVT_TEN, gt.TEN GOITHAU_TEN, sx.TEN NUOCSX_TEN FROM DM_SANPHAM sp "
                  + " LEFT JOIN DM_GOITHAU gt ON gt.GOITHAU_ID = sp.SP_GOITHAU "
                  + " LEFT JOIN DM_NUOCSX sx ON sx.NUOCSX_ID = sp.SP_NUOCSX_ID "
                  + " LEFT JOIN DM_DVT dvt ON dvt.DVT_ID=sp.DVT_ID "
                  + " WHERE isnull(gt.DELETED,0)=0 "
                  + " and DOT_MA='" + clsParameter._dotMaDauThau + "'"
                  + " and gt.GOITHAU_ID = " + clsChangeType.change_int(lueGoiThauFilter.EditValue)
                  + " order by sp.SP_MA asc";
            DataTable dt = new DataTable();

            da.SelectCommand = new SqlCommand(str, clsConnection._conn);
            da.Fill(dt);
            XtraReport _rpt = new XtraReport();

            if (FunctionHelper.LaGoiVTYT(Convert.ToInt64(lueGoiThauFilter.EditValue)))
            {
                rptDsSanPham_VTYT rpt = new rptDsSanPham_VTYT();
                rpt.DataSource = dt;
                rpt.DataMember = "SANPHAM";
                _rpt           = rpt;
            }
            else
            {
                rptDsSanPham rpt = new rptDsSanPham();
                rpt.DataSource = dt;
                rpt.DataMember = "SANPHAM";
                _rpt           = rpt;
            }

            frmPrint f = new frmPrint(_rpt);

            f.ShowDialog();
        }
Ejemplo n.º 29
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     if (removeMSTT != 0)
     {
         var    listTT              = employeePaymentBO.GetData(u => u.isDelete == false && u.ID == removeMSTT);
         string printMSNV           = listTT.First().MSNV;
         int    MonthTimekeep       = listTT.First().MonthOfPay;
         int    YearTimekeep        = listTT.First().YearOfPay;
         List <pTimekeeping> listDB = new List <pTimekeeping>();
         var listTimekeep           = timekeepingBO.GetData(u => u.isDelete == false && u.MSNV == printMSNV && u.Date.Value.Month == MonthTimekeep && u.Date.Value.Year == YearTimekeep);
         foreach (var item in listTimekeep)
         {
             pTimekeeping ptime = new pTimekeeping();
             ptime.Id             = item.Id;
             ptime.MSNV           = item.MSNV;
             ptime.TimeEnd        = item.TimeEnd != string.Empty ? item.TimeEnd : "X";
             ptime.TimeStart      = item.TimeStart != string.Empty ? item.TimeStart : "X";
             ptime.Time           = item.Time;
             ptime.Weight         = item.Weight;
             ptime.Type           = item.Type;
             ptime.TotalWeight    = item.TotalWeight;
             ptime.Food           = item.Food;
             ptime.Bunus          = item.Bunus;
             ptime.Punish         = item.Punish;
             ptime.Date           = item.Date.Value;
             ptime.Note           = item.Note;
             ptime.AdvancePayment = item.AdvancePayment;
             if (item.isRest == true)
             {
                 ptime.isRest = "Yes";
             }
             else
             {
                 ptime.isRest = "No";
             }
             listDB.Add(ptime);
         }
         using (frmPrint frmprint = new frmPrint(listDB, printMSNV, MonthTimekeep, YearTimekeep))
         {
             frmprint.ShowDialog();
         }
     }
 }
Ejemplo n.º 30
0
        public void PrintPreview(ReportClass iReport, string rpt_procedure, Hashtable ht, bool isPrint)
        {
            try
            {
                DataTable DTab_reportData = (DataTable)ReportData(rpt_procedure);
                if (DTab_reportData.Rows.Count > 0)
                {
                    if (isPrint == false)
                    {
                        // frmRptv ifrmPrint = new frmRptv();

                        iReport.SetDataSource(DTab_reportData);
                        foreach (object obj in ht.Keys)
                        {
                            iReport.SetParameterValue(obj.ToString(), ht[obj]);
                        }
                        frmPrint ifrmPrint = new frmPrint(iReport);
                        ifrmPrint.Visible = true;
                    }
                    else
                    {
                        iReport.ReportOptions.EnableSaveDataWithReport = true;
                        iReport.SetDataSource(DTab_reportData);
                        foreach (object obj in ht.Keys)
                        {
                            iReport.SetParameterValue(obj.ToString(), ht[obj]);
                        }
                        iReport.PrintToPrinter(1, false, 0, 0); //iReport.PrintToPrinter(1, false, 0, 0);
                    }
                }
                else
                {
                    MessageBox.Show("No Records Found");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
            }
        }