private void btnReport_Click(object sender, EventArgs e)
 {
     try
     {
         dataX d = new dataX(dateTimeFrom.Text, dateTimeTo.Text, comDelegate.Text, "");
         MainForm.displayDelegateReport2(gridControl1, "", d);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 2
0
 private void btnReport_Click(object sender, EventArgs e)
 {
     try
     {
         dataX d = new dataX(dateTimeFrom.Text, dateTimeTo.Text, "", comFactory.Text);
         MainForm.displayCompanyReport(GridControl1, d, "تقرير مبيعات الشركات");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 3
0
 public Delegate_Report(GridControl gridControl, dataX d)
 {
     try
     {
         InitializeComponent();
         this.gridControl = gridControl;
         this.d           = d;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 4
0
 public CustomerReturnItems_Report(GridControl gridControl, dataX d, int ReturnPermissionNum)
 {
     try
     {
         InitializeComponent();
         this.gridControl         = gridControl;
         this.d                   = d;
         this.ReturnPermissionNum = ReturnPermissionNum;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 5
0
 public Delegate_Report(GridControl gridControl, dataX d, string title, int flag)
 {
     try
     {
         InitializeComponent();
         this.gridControl = gridControl;
         this.d           = d;
         this.title       = title;
         this.flag        = flag;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 6
0
 private void btnReport_Click(object sender, EventArgs e)
 {
     try
     {
         dataX d = new dataX(dateTimeFrom.Text, dateTimeTo.Text, comDelegate.Text, "");
         d.delegateProfit = labTotalDelegateProfit.Text;
         int[] arr = gridView1.GetSelectedRows();
         d.company_profit_list = new List <company_profit>();
         foreach (int item in arr)
         {
             company_profit x = new company_profit();
             x.companyName    = gridView1.GetRowCellValue(item, "FactoryName").ToString();
             x.delegateProfit = gridView1.GetRowCellValue(item, "ValueDelegate").ToString();
             d.company_profit_list.Add(x);
         }
         MainForm.displayDelegateReport2(gridControl1, "", d);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 7
0
        public void displayDelegateReport2(GridControl gridControl, string branchName, dataX d)
        {
            Delegate_Report objForm = new Delegate_Report(gridControl, branchName, d);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlAccounting, "تقرير مبيعات المناديب");

            xtraTabControlSalesContent.RightToLeft = RightToLeft.Yes;

            if (xtraTabPage == null)
            {
                xtraTabControlAccounting.TabPages.Add("تقرير مبيعات المناديب");
                xtraTabPage = getTabPage(xtraTabControlAccounting, "تقرير مبيعات المناديب");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.RightToLeft = RightToLeft.Yes;
            xtraTabPage.Controls.Add(objForm);

            xtraTabControlAccounting.SelectedTabPage = xtraTabPage;

            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }