Exemplo n.º 1
0
        public void Satis()
        {
            frmSatis frm = new frmSatis(); // Ramda çalıştırımak için yeni nesne türettik

            //frm.MdiParent = ActiveForm;
            frm.MdiParent   = Application.OpenForms["frmAnasayfa"] as frmAnasayfa;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
        }
Exemplo n.º 2
0
        private void btn101_Click(object sender, EventArgs e)
        {
            string   odano    = (sender as Button).Text;
            frmSatis frmSatis = new frmSatis();

            frmSatis.OdaNo = odano;
            frmSatis.Giris = Gara;
            frmSatis.Cikis = Cara;
            txtOdaNo.Text  = odano;
        }
Exemplo n.º 3
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            SaleOwnerDTO oRow = (SaleOwnerDTO)gridView1.GetFocusedRow();

            if (oRow != null)
            {
                frmSatis frm = new frmSatis();
                frm.MdiParent     = this.MdiParent;
                frm._FormOpenType = Infrastructure.FormOpenType.Edit;
                frm.Show(oRow.RecId);
            }
        }
Exemplo n.º 4
0
        private void ButtonClick(object sender, EventArgs e)
        {
            if (cbDizayn.Checked)
            {
                return;
            }

            if (((SimpleButton)sender).Tag != null)
            {
                string satisid = ((SimpleButton)sender).AccessibleName;
                string masaadi = ((SimpleButton)sender).Text;
                //((SimpleButton)sender).Enabled = false;
                frmSatis Satis = new frmSatis(0, int.Parse(satisid), masaadi, "0");
                Satis.gbBaslik.Tag = ((SimpleButton)sender).Tag;
                Satis.gbBaslik.AccessibleDescription = ((SimpleButton)sender).AccessibleDescription;
                Satis.gbBaslik.AccessibleName        = ((SimpleButton)sender).AccessibleName;
                Satis.txtpkSatislar.Text             = ((SimpleButton)sender).AccessibleName;
                Satis.Satis1Toplam.Tag = ((SimpleButton)sender).AccessibleName;
                Satis.ShowDialog();

                if (Satis.txtpkSatislar.Text == "0")
                {
                    ((SimpleButton)sender).ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;

                    //((SimpleButton)sender).Tag = ((SimpleButton)sender).Tag.ToString();
                    //((SimpleButton)sender).Text = "1.Masa Aç";
                    ((SimpleButton)sender).AccessibleName = "0";
                    ((SimpleButton)sender).ToolTip        = "Fiş No = 0";
                }
                else
                {
                    //((SimpleButton)sender).Text = "1.Masa Açık";
                    ((SimpleButton)sender).ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
                    //satış ekranında kaydetin altına konuldu
                    //DB.ExecuteSQL("update Masalar set fkSatislar=" + Satis.txtpkSatislar.Text + " where pkMasalar=" + ((SimpleButton)sender).Tag.ToString());
                    ((SimpleButton)sender).AccessibleName = Satis.txtpkSatislar.Text;
                    ((SimpleButton)sender).ToolTip        = "Fiş No =" + Satis.txtpkSatislar.Text;
                }
                DB.ExecuteSQL("update Masalar set fkSatislar=" + Satis.txtpkSatislar.Text + " where pkMasalar=" + ((SimpleButton)sender).Tag.ToString());

                ((SimpleButton)sender).Focus();
                Satis.Dispose();

                //((SimpleButton)sender).Enabled = true;
                //MessageBox.Show(((SimpleButton)sender).Tag.ToString());
                //SatisDetayEkle(((SimpleButton)sender).Tag.ToString());
                //yesilisikyeni();

                //KONTROL
                //DB.GetData();
            }
        }
        private void satışToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSatis frm = new frmSatis();

            frm.ShowDialog();
        }