private void ToolStripMenuItem_RPT_NETMONEY_Click(object sender, EventArgs e)
 {
     BL.CLS_REPORT_LIST.ReportFlag = 2;
     PL.FORM_RPTDATE form = new FORM_RPTDATE();
     if (form.ShowDialog() == DialogResult.OK)
     {
         RPT.RPT_NETMONEY rpt_netmoney = new RPT.RPT_NETMONEY();
         var DT = RPTCLS.RPT_NETMONEY(form.dateTimePicker_BEGIN_DATE.Value.ToString("yyyy-MM-dd"), form.dateTimePicker_END_DATE.Value.ToString("yyyy-MM-dd"));
         if (DT.Rows.Count > 0)
         {
             rpt_netmoney.DataSource             = DT;
             rpt_netmoney.xrLabel_BeginDate.Text = form.dateTimePicker_BEGIN_DATE.Value.ToString("yyyy-MM-dd");
             rpt_netmoney.xrLabel_EndDate.Text   = form.dateTimePicker_BEGIN_DATE.Value.ToString("yyyy-MM-dd");
             rpt_netmoney.ShowPreviewDialog();
         }
         else
         {
             MessageBox.Show("لا توجد بيانات للفترة المحددة");
         }
     }
 }
        //private void ToolStripMenuItem_PRD_COST_AND_PROFITS_Click(object sender, EventArgs e)
        //{

        //}

        private void ToolStripMenuItem_PROFIT_COST_Click(object sender, EventArgs e)
        {
            BL.CLS_REPORT_LIST.ReportFlag = 3;
            PL.FORM_RPTDATE form = new FORM_RPTDATE();
            if (form.ShowDialog() == DialogResult.OK)
            {
                RPT.RPT_CALC_PROFT_COST RPT_COST = new RPT.RPT_CALC_PROFT_COST();
                var DT = RPTCLS.RPT_CALC_PROFT_COST(form.dateTimePicker_BEGIN_DATE.Value.ToString("yyyy-MM-dd"), form.dateTimePicker_END_DATE.Value.ToString("yyyy-MM-dd"));
                if (DT.Rows.Count > 0)
                {
                    RPT_COST.DataSource = DT;
                    RPT_COST.xrLabel_BEGIN_DATE.Text = form.dateTimePicker_BEGIN_DATE.Value.ToString("yyyy-MM-dd");
                    RPT_COST.xrLabel_END_DATE.Text   = form.dateTimePicker_END_DATE.Value.ToString("yyyy-MM-dd");
                    RPT_COST.ShowPreviewDialog();
                }
                else
                {
                    MessageBox.Show("لا توجد بيانات للفترة المحددة");
                }
            }
        }
        private void ToolStripMenuItem_SLAESREP_Click(object sender, EventArgs e)
        {
            BL.CLS_REPORT_LIST.ReportFlag = 0;
            BL.CLS_ORDERS.ORDER_TYPES     = 0;
            PL.FORM_RPTDATE form = new FORM_RPTDATE();

            if (form.ShowDialog() == DialogResult.OK)
            {
                RPT.RPT_ALL_INVOS_BETWEEN_DATES y = new RPT.RPT_ALL_INVOS_BETWEEN_DATES();
                var DT = ORD.SEARCH_ORDER_DATE(BL.CLS_ORDERS.ORDER_TYPES, form.dateTimePicker_BEGIN_DATE.Value.ToString("yyyy-MM-dd"), form.dateTimePicker_END_DATE.Value.ToString("yyyy-MM-dd"));
                y.xrTableCell_BeginDate.Text = form.dateTimePicker_BEGIN_DATE.Value.ToString("yyyy-MM-dd");
                y.xrTableCell_EndDate.Text   = form.dateTimePicker_END_DATE.Value.ToString("yyyy-MM-dd");
                if (DT.Rows.Count > 0)
                {
                    y.DataSource = DT;
                    y.ShowPreviewDialog();
                }
                else
                {
                    MessageBox.Show("لا توجد بيانات للفترة المحددة");
                }
            }
        }