Пример #1
0
        //绑定快捷键
        private void Form_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
                this.Close();
                break;

            case Keys.F1:
                addTool_Click(null, null);
                break;

            case Keys.F2:
                delTool_Click(null, null);
                break;

            case Keys.F3:
                editTool_Click(null, null);
                break;

            case Keys.F4:
                BathClass.exportDgvToExcel(dgv);
                break;

            case Keys.F5:
                PrintDGV.Print_DataGridView(dgv, "客房管理", false, "");
                break;

            default:
                break;
            }
        }
Пример #2
0
 //导出
 private void exportTool_Click(object sender, EventArgs e)
 {
     if (m_thread != null && m_thread.IsAlive)
     {
         m_thread.Abort();
     }
     BathClass.exportDgvToExcel(dgv);
 }
Пример #3
0
 private void exportGoods_Click(object sender, EventArgs e)
 {
     if (m_Thread.IsAlive)
     {
         MessageBox.Show("数据加载中,请稍侯...");
         return;
     }
     BathClass.exportDgvToExcel(dgv);
 }
Пример #4
0
 //导出清单
 private void exportTool_Click(object sender, EventArgs e)
 {
     if (m_thread != null && m_thread.IsAlive)
     {
         BathClass.printErrorMsg("数据正在加载,请稍后!");
         return;
     }
     BathClass.exportDgvToExcel(dgv);
 }
Пример #5
0
        //绑定快捷键
        private void Form_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
                this.Close();
                break;

            case Keys.F3:
                dgv_show();
                break;

            case Keys.F4:
                BathClass.exportDgvToExcel(dgv);
                break;

            default:
                break;
            }
        }
Пример #6
0
        //绑定快捷键
        private void Form_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
                this.Close();
                break;

            case Keys.F5:
                PrintDGV.Print_DataGridView(dgv, "会员消费详情", false, "");
                break;

            case Keys.F4:
                BathClass.exportDgvToExcel(dgv);
                break;

            default:
                break;
            }
        }
Пример #7
0
        //绑定快捷键
        private void Form_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
                this.Close();
                break;

            case Keys.F1:
                break;

            case Keys.F2:
                break;

            case Keys.F3:
                break;

            case Keys.F4:
                BathClass.exportDgvToExcel(DgvFemale);
                break;

            case Keys.F5:
                break;

            case Keys.F6:
                break;

            case Keys.F7:
                break;

            case Keys.F8:
                break;

            default:
                break;
            }
        }
        //绑定快捷键
        private void Form_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
                this.Close();
                break;

            case Keys.F1:
                toolAdd_Click(null, null);
                break;

            case Keys.F5:
                PrintDGV.Print_DataGridView(dgvDetails, "优惠方案报表", false, "");
                break;

            case Keys.F4:
                BathClass.exportDgvToExcel(dgvDetails);
                break;

            default:
                break;
            }
        }
Пример #9
0
        //绑定快捷键
        private void Form_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
                this.Close();
                break;

            case Keys.F3:
                dgvCustomer_show();
                break;

            case Keys.F5:
                PrintDGV.Print_DataGridView(dgvCustomerList, "客户挂账统计", false, "");
                break;

            case Keys.F4:
                BathClass.exportDgvToExcel(dgvCustomerList);
                break;

            default:
                break;
            }
        }
Пример #10
0
 //导出
 private void exportTool_Click(object sender, EventArgs e)
 {
     BathClass.exportDgvToExcel(dgv);
 }