Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            RPT.print_sallary_of_depart all = new RPT.print_sallary_of_depart();

            RPT.from_print frm = new RPT.from_print();

            all.SetDataSource(client.print_sallary_of_depart(comboBox1.SelectedText.ToString()));
            frm.crystalReportViewer1.ReportSource = all;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            RPT.print_all_clients all = new RPT.print_all_clients();

            RPT.from_print frm = new RPT.from_print();


            frm.crystalReportViewer1.ReportSource = all;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            RPT.print_AllClients all = new RPT.print_AllClients();

            RPT.from_print frm = new RPT.from_print();

            //all.SetDataSource(order.get_order_diatels(id_order));
            frm.crystalReportViewer1.ReportSource = all;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 4
0
        private void button3_Click(object sender, EventArgs e)
        {
            // gg.SetParameterValue("@id", this.dataGridView1.CurrentRow.Cells[0].Value.ToString());
            this.Cursor = Cursors.WaitCursor;

            RPT.print_sallary_of_depart all = new RPT.print_sallary_of_depart();

            RPT.from_print frm = new RPT.from_print();
            all.SetParameterValue("@department", comboBox1.SelectedItem.ToString());
            //   all.SetDataSource(client.print_sallary_of_depart(comboBox1.SelectedText.ToString()));
            frm.crystalReportViewer1.ReportSource = all;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 5
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            RPT.print_details_about_sallary_of_client all = new RPT.print_details_about_sallary_of_client();

            RPT.from_print frm = new RPT.from_print();
            all.SetParameterValue(0, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
            all.SetParameterValue(1, txt_month.Text);
            all.SetParameterValue(2, txt_year.Text);


            frm.crystalReportViewer1.ReportSource = all;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 6
0
        private void button9_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            RPT.get_data_about_staying_to_print all = new RPT.get_data_about_staying_to_print();



            all.SetParameterValue(0, Convert.ToString(dateTimePicker1.Value.Month));
            all.SetParameterValue(1, Convert.ToString(dateTimePicker1.Value.Year));



            RPT.from_print frm = new RPT.from_print();


            frm.crystalReportViewer1.ReportSource = all;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 7
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            if (rad_motions.Checked == true)
            {
                if (dataGridView1.CurrentRow.Cells[4].Value.ToString() == "مقيم")
                {
                    this.Cursor = Cursors.WaitCursor;

                    RPT.print_client_card_staying all = new RPT.print_client_card_staying();

                    RPT.from_print frm = new RPT.from_print();
                    all.SetParameterValue(0, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
                    all.SetParameterValue(1, txt_month.Text);
                    all.SetParameterValue(2, txt_year.Text);
                    frm.crystalReportViewer1.ReportSource = all;
                    frm.ShowDialog();
                    this.Cursor = Cursors.Default;
                }
                else if (dataGridView1.CurrentRow.Cells[4].Value.ToString() == "راتب")
                {
                    this.Cursor = Cursors.WaitCursor;

                    RPT.print_client_card_salary all = new RPT.print_client_card_salary();

                    RPT.from_print frm = new RPT.from_print();
                    all.SetParameterValue(0, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
                    all.SetParameterValue(1, txt_month.Text);
                    all.SetParameterValue(2, txt_year.Text);
                    frm.crystalReportViewer1.ReportSource = all;
                    frm.ShowDialog();
                    this.Cursor = Cursors.Default;
                }

                else if (dataGridView1.CurrentRow.Cells[4].Value.ToString() == "شيفت")
                {
                    this.Cursor = Cursors.WaitCursor;

                    RPT.print_client_card_shifts all = new RPT.print_client_card_shifts();

                    RPT.from_print frm = new RPT.from_print();
                    all.SetParameterValue(0, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
                    all.SetParameterValue(1, txt_month.Text);
                    all.SetParameterValue(2, txt_year.Text);
                    frm.crystalReportViewer1.ReportSource = all;
                    frm.ShowDialog();
                    this.Cursor = Cursors.Default;
                }
            }



            else if (rad_over_all.Checked == true)
            {
                if (dataGridView1.CurrentRow.Cells[4].Value.ToString() == "مقيم")
                {
                    this.Cursor = Cursors.WaitCursor;

                    RPT.print_client_card_staying_over_all all = new RPT.print_client_card_staying_over_all();

                    RPT.from_print frm = new RPT.from_print();
                    all.SetParameterValue(0, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
                    all.SetParameterValue(1, txt_month.Text);
                    all.SetParameterValue(2, txt_year.Text);
                    frm.crystalReportViewer1.ReportSource = all;
                    frm.ShowDialog();
                    this.Cursor = Cursors.Default;
                }
                else if (dataGridView1.CurrentRow.Cells[4].Value.ToString() == "راتب")
                {
                    this.Cursor = Cursors.WaitCursor;

                    RPT.print_client_card_salary_over_all all = new RPT.print_client_card_salary_over_all();

                    RPT.from_print frm = new RPT.from_print();
                    all.SetParameterValue(0, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
                    all.SetParameterValue(1, txt_month.Text);
                    all.SetParameterValue(2, txt_year.Text);
                    frm.crystalReportViewer1.ReportSource = all;
                    frm.ShowDialog();
                    this.Cursor = Cursors.Default;
                }

                else if (dataGridView1.CurrentRow.Cells[4].Value.ToString() == "شيفت")
                {
                    this.Cursor = Cursors.WaitCursor;

                    RPT.print_client_card_shifts_over_all all = new RPT.print_client_card_shifts_over_all();

                    RPT.from_print frm = new RPT.from_print();
                    all.SetParameterValue(0, Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
                    all.SetParameterValue(1, txt_month.Text);
                    all.SetParameterValue(2, txt_year.Text);
                    frm.crystalReportViewer1.ReportSource = all;
                    frm.ShowDialog();
                    this.Cursor = Cursors.Default;
                }
            }
            else
            {
                MessageBox.Show("خطأ", "يرجي تحديد جدول البيانات", MessageBoxButtons.OK);
            }
        }