Esempio n. 1
0
        public void bindUpdateSupplierForm(DataRowView rows, Supplier_Report supplierReport)
        {
            if (!xtraTabControlPurchases.Visible)
            {
                xtraTabControlPurchases.Visible = true;
            }

            XtraTabPage xtraTabPage = getTabPage(xtraTabControlPurchases, "تعديل بيانات مورد");

            if (xtraTabPage == null)
            {
                xtraTabControlPurchases.TabPages.Add("تعديل بيانات مورد");
                xtraTabPage = getTabPage(xtraTabControlPurchases, "تعديل بيانات مورد");
            }
            xtraTabPage.Controls.Clear();

            xtraTabControlPurchases.SelectedTabPage = xtraTabPage;

            UpdateSupplier objForm = new UpdateSupplier(rows, supplierReport, xtraTabControlPurchases);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Esempio n. 2
0
        public void bindRecordSupplierForm(Supplier_Report SupplierReport)
        {
            if (!xtraTabControlPurchases.Visible)
            {
                xtraTabControlPurchases.Visible = true;
            }

            XtraTabPage xtraTabPage = getTabPage(xtraTabControlPurchases, "اضافة مورد");

            if (xtraTabPage == null)
            {
                xtraTabControlPurchases.TabPages.Add("اضافة مورد");
                xtraTabPage = getTabPage(xtraTabControlPurchases, "اضافة مورد");
            }
            xtraTabPage.Controls.Clear();

            xtraTabControlPurchases.SelectedTabPage = xtraTabPage;
            AddSupplier objForm = new AddSupplier(SupplierReport, xtraTabControlPurchases);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Esempio n. 3
0
        public AddSupplier(Supplier_Report SupplierReport, XtraTabControl XtraTabControlPurchases)
        {
            InitializeComponent();

            dbconnection            = new MySqlConnection(connection.connectionString);
            supplierReport          = SupplierReport;
            xtraTabControlPurchases = XtraTabControlPurchases;
        }
Esempio n. 4
0
        public UpdateSupplier(DataRowView rows, Supplier_Report supplierReport, XtraTabControl XtraTabControlPurchases)
        {
            InitializeComponent();

            dbconnection            = new MySqlConnection(connection.connectionString);
            dbconnection2           = new MySqlConnection(connection.connectionString);
            selRow                  = rows;
            SupplierReport          = supplierReport;
            xtraTabControlPurchases = XtraTabControlPurchases;
        }
Esempio n. 5
0
        public void bindDisplaySupplierForm(XtraTabPage xtraTabPage)
        {
            Supplier_Report objForm = new Supplier_Report(this, xtraTabControlPurchases);

            objForm.TopLevel = false;

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