Пример #1
0
        private void navBarItemSupplierPullAgl_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.FromArgb(54, 70, 151);

                XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "tabPageSupplierPullAglReport");
                if (xtraTabPage == null)
                {
                    tabPageSupplierPullAglReport.Name = "tabPageSupplierPullAglReport";
                    tabPageSupplierPullAglReport.Text = "عرض سحوبات الموردين-آجل";
                    panelSupplierPullAglReport.Name   = "panelSupplierPullAglReport";
                    panelSupplierPullAglReport.Dock   = DockStyle.Fill;

                    SupplierPullAglShow                 = new BankSupplierPullAgl_Report(this);
                    SupplierPullAglShow.Size            = new Size(1109, 660);
                    SupplierPullAglShow.TopLevel        = false;
                    SupplierPullAglShow.FormBorderStyle = FormBorderStyle.None;
                    SupplierPullAglShow.Dock            = DockStyle.Fill;
                }
                panelSupplierPullAglReport.Controls.Clear();
                panelSupplierPullAglReport.Controls.Add(SupplierPullAglShow);
                tabPageSupplierPullAglReport.Controls.Add(panelSupplierPullAglReport);
                MainTabControlBank.TabPages.Add(tabPageSupplierPullAglReport);
                SupplierPullAglShow.Show();
                MainTabControlBank.SelectedTabPage = tabPageSupplierPullAglReport;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #2
0
        public void bindUpdateSupplierPullAglForm(DataRowView sellRow, BankSupplierPullAgl_Report form)
        {
            BankSupplierPullAgl_Update objForm = new BankSupplierPullAgl_Update(sellRow, form, MainTabControlBank);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "تعديل مرتد مورد-آجل");

            if (xtraTabPage == null)
            {
                MainTabControlBank.TabPages.Add("تعديل مرتد مورد-آجل");
                xtraTabPage = getTabPage(MainTabControlBank, "تعديل مرتد مورد-آجل");
            }
            xtraTabPage.Controls.Clear();
            xtraTabPage.Controls.Add(objForm);
            MainTabControlBank.SelectedTabPage = xtraTabPage;
            objForm.FormBorderStyle            = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock = DockStyle.Fill;
            objForm.Show();
        }
Пример #3
0
        public void bindRecordSupplierPullAglForm(BankSupplierPullAgl_Report form)
        {
            BankSupplierPullAgl_Record objForm = new BankSupplierPullAgl_Record(/*form,*/ MainTabControlBank);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "اضافة مرتد مورد-آجل");

            if (xtraTabPage == null)
            {
                MainTabControlBank.TabPages.Add("اضافة مرتد مورد-آجل");
                xtraTabPage = getTabPage(MainTabControlBank, "اضافة مرتد مورد-آجل");
                xtraTabPage.Controls.Clear();
                xtraTabPage.Controls.Add(objForm);
            }
            MainTabControlBank.SelectedTabPage = xtraTabPage;
            objForm.FormBorderStyle            = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock = DockStyle.Fill;
            objForm.Show();
        }