Example #1
0
 private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     RP.ViweReports vr = new RP.ViweReports();
     vr.txt_name_search.Visible = true;
     vr.btn_name_search.Visible = true;
     vr.Show();
 }
Example #2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            try
            {
                DateTime fromDate;
                DateTime toDate;
                if (dateFrom.Text == "")
                {
                    fromDate = DateTime.Today;
                }
                else
                {
                    fromDate = Convert.ToDateTime(dateFrom.EditValue);
                }

                if (dateTo.Text == "")
                {
                    toDate = DateTime.Today;
                }
                else
                {
                    toDate = Convert.ToDateTime(dateTo.EditValue);
                }
                this.Cursor = Cursors.WaitCursor;
                // تحديد نوع السند

                RP.ViweReports frmRep = new RP.ViweReports();

                RP.PatientRPDate reprot = new RP.PatientRPDate();

                dt.Clear();
                dt = B.Select_Patient_tody(fromDate, toDate);

                reprot.SetDataSource(dt);
                reprot.SetParameterValue(0, fromDate);
                reprot.SetParameterValue(1, toDate);

                //frmRep.crystalReportViewer1.Refresh();
                frmRep.crystalReportViewer1.ReportSource = reprot;

                frmRep.Show();

                this.Cursor = Cursors.Default;
            }
            catch (Exception) { }
            ////dt = bb.SelectBond_Patient(Convert.ToInt32(txt_id.Text), txt_name.Text.ToString(), txt_noFile.Text.ToString());
            //dtpdy = pi.Select_Patient_tody(dateFrom.EditValue.ToString(), dateTo.EditValue.ToString());
            //xrp.DataSource = dtpdy;

            ////xrp.label1.Text = txt_title.Text;
            //xfr.documentViewer1.DocumentSource = xrp;
            //xfr.ShowDialog();
        }
Example #3
0
        public void PrintBond()
        {
            try
            {
                DateTime fromDate;
                DateTime toDate;
                if (dateFrom.Text == "")
                {
                    fromDate = DateTime.Today;
                }
                else
                {
                    fromDate = Convert.ToDateTime(dateFrom.EditValue);
                }

                if (dateTo.Text == "")
                {
                    toDate = DateTime.Today;
                }
                else
                {
                    toDate = Convert.ToDateTime(dateTo.EditValue);
                }
                this.Cursor = Cursors.WaitCursor;
                // تحديد نوع السند

                RP.ViweReports frmRep = new RP.ViweReports();

                RP.BondDate reprot = new RP.BondDate();

                dt.Clear();
                dt = B.BondDateRP(fromDate, toDate);


                reprot.SetDataSource(dt);
                reprot.SetParameterValue(0, fromDate);
                reprot.SetParameterValue(1, toDate);

                //frmRep.crystalReportViewer1.Refresh();
                frmRep.crystalReportViewer1.ReportSource = reprot;

                frmRep.Show();

                this.Cursor = Cursors.Default;
            }
            catch (Exception) { }
        }
Example #4
0
        public void PrintBond()
        {
            try
            {
                int    id = 0;
                string user_name;
                string noFile;
                if (txtIdPatient.Text == "")
                {
                    XtraMessageBox.Show("افرغ الحقول ثم قم بإضافة بيانات المريض");
                }
                else
                {
                    id = Convert.ToInt32(txtIdPatient.Text);
                }
                this.Cursor = Cursors.WaitCursor;

                user_name = txtNamePatient.Text;
                noFile    = txtNoFile.Text;
                // تحديد نوع السند

                RP.ViweReports frmRep = new RP.ViweReports();

                RP.BONDCR reprot = new RP.BONDCR();

                dt.Clear();
                dt = B.SelectBond_Patient(id, user_name, noFile);

                reprot.SetDataSource(dt);
                reprot.SetParameterValue(0, id);
                reprot.SetParameterValue(1, user_name);
                reprot.SetParameterValue(2, noFile);

                //frmRep.crystalReportViewer1.Refresh();
                frmRep.crystalReportViewer1.ReportSource = reprot;

                frmRep.Show();

                this.Cursor = Cursors.Default;
            }
            catch (Exception) { }
        }
Example #5
0
        public void PrintFile()
        {
            try
            {
                BL.Cls_Patient pit = new BL.Cls_Patient();
                int            id;
                if (txtIdPatient.Text == "")
                {
                    XtraMessageBox.Show("افرغ الحقول ثم قم بإضافة بيانات المريض");
                    id = Convert.ToInt32(txtIdPatient.Text);
                }
                else
                {
                    id = Convert.ToInt32(txtIdPatient.Text);
                }
                this.Cursor = Cursors.WaitCursor;

                // تحديد نوع السند

                RP.ViweReports frmRep = new RP.ViweReports();

                RP.File_Patient reprot = new RP.File_Patient();

                dt.Clear();
                dt = p.SelectpatientInNum(id);

                reprot.SetDataSource(dt);
                reprot.SetParameterValue(0, id);

                //frmRep.crystalReportViewer1.Refresh();
                frmRep.crystalReportViewer1.ReportSource = reprot;

                frmRep.Show();

                this.Cursor = Cursors.Default;
            }
            catch (Exception) { }
        }
Example #6
0
        public void PrintPatientSearch()
        {
            try
            {
                string name;
                if (txt_name_search.Text == "")
                {
                    name = "";
                }
                else
                {
                    name = txt_name_search.Text;
                }

                this.Cursor = Cursors.WaitCursor;
                // تحديد نوع السند

                RP.ViweReports frmRep = new RP.ViweReports();

                RP.Patient_data reprot = new RP.Patient_data();

                dt.Clear();
                dt = srp.SearchPatients(name);

                reprot.SetDataSource(dt);
                reprot.SetParameterValue(0, name);

                //frmRep.crystalReportViewer1.Refresh();
                frmRep.crystalReportViewer1.ReportSource = reprot;

                frmRep.Show();

                this.Cursor = Cursors.Default;
            }
            catch (Exception) { }
        }
Example #7
0
 private void barButtonItem8_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     RP.ViweReports vr = new RP.ViweReports();
     vr.grob_BondDateRP.Visible = true;
     vr.Show();
 }