예제 #1
0
        private void Base_Load(object sender, EventArgs e)
        {
            DispayButtonOnUserRight();

            myTimer.Interval = 300;
            //Start timer
            myTimer.Start();
            lblDate.Text = System.DateTime.Now.ToShortDateString();

            FillGridBill();

            SelectedButtonNew((int)Btn.Billing);
            this.pnlMiddle.Controls.Clear();
            frmBilling obj = new frmBilling(this, BillNo);

            obj.TopLevel   = false;
            obj.AutoScroll = true;
            this.pnlMiddle.Controls.Add(obj);
            obj.Show();
            lblPageHead.Text = "Generate Bill";
            //FrmLogin obj=new FrmLogin;
            //if (FrmLogin.Username=="A")
            //    btnTransfer.Visible=true;
            //else
            //    btnTransfer.Visible=false;

            pnlLeft2.Visible = false;
        }
예제 #2
0
 private void btnBilling_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (fr8 == null)
     {
         fr8           = new frmBilling();
         fr8.MdiParent = this;
         fr8.Show();
     }
 }
예제 #3
0
        private void btnBilling_Click(object sender, EventArgs e)
        {
            pnlLeft2.Visible = false;
            SelectedButtonNew((int)Btn.Billing);
            this.pnlMiddle.Controls.Clear();
            frmBilling obj = new frmBilling(this, BillNo);

            obj.TopLevel   = false;
            obj.AutoScroll = true;
            this.pnlMiddle.Controls.Add(obj);
            obj.Show();
            lblPageHead.Text = "Generate Bill";
        }
예제 #4
0
        private void dgvBill_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if ((dgvBill.SelectedRows.Count != 0) && (dgvBill.SelectedRows[0].Cells[0].Value != null) && (Convert.ToString(dgvBill.SelectedRows[0].Cells[0].Value) != ""))
            {
                BillNo = int.Parse(dgvBill.SelectedRows[0].Cells["BillNo"].Value.ToString());

                //if (dgvBill.Rows[e.RowIndex].Cells["BillNo"].Value != null)
                //{
                //  BillNo = dgvBill.Rows[e.RowIndex].Cells["BillNo"].Value.ToString();
                SelectedButtonNew((int)Btn.Billing);
                this.pnlMiddle.Controls.Clear();
                frmBilling obj = new frmBilling(this, BillNo);
                obj.TopLevel   = false;
                obj.AutoScroll = true;
                this.pnlMiddle.Controls.Add(obj);
                obj.Show();
                lblPageHead.Text = "Generate Bill-" + BillNo;
            }
        }