Exemplo n.º 1
0
        //update sell price
        public void bindUpdateSellPriceForm(List <DataRowView> rows, ProductsSellPriceForm productsSellPriceForm, String query)
        {
            if (!xtraTabControlSalesContent.Visible)
            {
                xtraTabControlSalesContent.Visible = true;
            }

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

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

            xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;

            UpdateSellPrice objForm = new UpdateSellPrice(rows, productsSellPriceForm, query, xtraTabControlSalesContent);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Exemplo n.º 2
0
        //record sell price
        public void bindRecordSellPriceForm(ProductsSellPriceForm productsSellPriceForm)
        {
            if (!xtraTabControlSalesContent.Visible)
            {
                xtraTabControlSalesContent.Visible = true;
            }

            XtraTabPage xtraTabPage = getTabPage("تسجيل اسعار البنود");

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

            xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;
            SetSellPrice objForm = new SetSellPrice(productsSellPriceForm, xtraTabControlSalesContent);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Exemplo n.º 3
0
        //functions
        //Products sell price
        public void bindDisplayProductsSellPriceForm(XtraTabPage xtraTabPage)
        {
            ProductsSellPriceForm objForm = new ProductsSellPriceForm(this);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Exemplo n.º 4
0
 public SetSellPrice(ProductsSellPriceForm productsSellPriceForm, XtraTabControl xtraTabControlSalesContent)
 {
     try
     {
         InitializeComponent();
         this.xtraTabControlSalesContent = xtraTabControlSalesContent;
         this.productsSellPriceForm      = productsSellPriceForm;
         dbconnection = new MySqlConnection(connection.connectionString);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 5
0
 public UpdateSellPriceForm(List <DataRowView> rows, ProductsSellPriceForm productsSellPriceForm, string query, XtraTabControl xtraTabControlSalesContent)
 {
     try
     {
         InitializeComponent();
         this.xtraTabControlSalesContent = xtraTabControlSalesContent;
         this.rows = rows;
         this.productsSellPriceForm = productsSellPriceForm;
         this.query   = query;
         dbconnection = new MySqlConnection(connection.connectionString);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 6
0
        public UpdateSellPrice(List <DataRowView> rows, ProductsSellPriceForm productsSellPriceForm, string query, XtraTabControl xtraTabControlSalesContent)
        {
            try
            {
                InitializeComponent();
                this.xtraTabControlSalesContent = xtraTabControlSalesContent;
                this.rows = rows;
                this.productsSellPriceForm = productsSellPriceForm;
                this.query   = query;
                dbconnection = new MySqlConnection(connection.connectionString);

                customPanel = new customPanel();
                panContent.Controls.Add(customPanel.Controls["panContent"]);
                panContent.Controls["panContent"].Visible = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }