예제 #1
0
        //录单汇总
        private void toolAllOrder_Click(object sender, EventArgs e)
        {
            //var db_new = new BathDBDataContext(LogIn.connectionString);
            if (!dao.get_authority(LogIn.m_User, "录单汇总"))
            {
                BathClass.printErrorMsg("不具有权限");
                return;
            }

            TableOrderTableForm orderTableForm = new TableOrderTableForm(LogIn.connectionString, LogIn.m_User);
            orderTableForm.ShowDialog();
        }
예제 #2
0
        //录单汇总
        private void BtnInputOrders_Click(object sender, EventArgs e)
        {
            var db_new = new BathDBDataContext(connectionString);
            InputEmployee inputEmployee = new InputEmployee(db_new);
            if (inputEmployee.ShowDialog() != DialogResult.OK)
                return;

            if (!BathClass.getAuthority(db_new, inputEmployee.emplyee, "录单汇总"))
            {
                BathClass.printErrorMsg("不具有权限");
                return;
            }

            TableOrderTableForm orderTableForm = new TableOrderTableForm(connectionString, inputEmployee.emplyee);
            orderTableForm.ShowDialog();
        }