コード例 #1
0
 private void scan_btn_Click(object sender, EventArgs e)
 {
     using (scan_barcode scan = new scan_barcode())
     {
         scan.Mode = "APPROVER";
         scan.ShowDialog();
         approve_id = scan.theID;
     }
 }
コード例 #2
0
        private static void itemClicked(string name)
        {
            if (GF.form != null && GF.mainPage.ActiveMdiChild != null)
            {
                if (GF.mainPage.ActiveMdiChild.Name.Trim() == "cashier")
                {
                    if (((cashier)GF.mainPage.ActiveMdiChild).done_btn.Visible)
                    {
                        DialogResult theResult = MessageBox.Show("YOU DID NOT CLICK 'DONE' BUTTON YET !!\r\n\r\nYOU REALLY WANT TO LEAVE ?", "WARNING !!", MessageBoxButtons.YesNo);
                        if (theResult == DialogResult.No)
                        {
                            return;
                        }
                    }
                }
            }

            switch (name.Replace("ToolStripMenuItem", ""))
            {
            case "cardCheck":
                using (scan_barcode scan = new scan_barcode())
                {
                    scan.Mode  = "CARD_CHECK";
                    scan.Owner = GF.mainPage;
                    scan.ShowDialog();
                }
                break;

            //CONFIG :: CROSS_PROMOTION
            case "crossPromotion":
                GF.form = new cross_promotion();
                break;

            //RE-ISSUE CARD
            case "reIssueCard":
                GF.form = new re_issue_card();
                break;

            //CONFIG :: COUPON SET
            case "couponSet":
                GF.form = new config_coupon_set();
                break;

            //CONFIG :: MEMBER CARD
            case "memberCard":
                GF.form = new config_member_card();
                break;

            //CONFIG :: VIP CARD
            case "VIPCard":
                GF.form = new vip_card();
                break;

            //CONFIG :: GIFT CERTIFICATE
            case "giftCertificateConfig":
                using (gift_certificate_manage giftCertificateConfig = new gift_certificate_manage())
                {
                    giftCertificateConfig.ShowDialog();
                }
                break;

            //CONFIG :: GIFT VOUCHER
            case "voucherConfig":
                using (voucher_manage voucherConfig = new voucher_manage())
                {
                    voucherConfig.ShowDialog();
                }
                break;

            case "issueEVoucher":
                using (issue_e_voucher issueEVoucher = new issue_e_voucher())
                {
                    issueEVoucher.ShowDialog();
                }
                break;

            //CONFIG :: AGENT
            case "agent":
                GF.form = new agent_list();
                break;

            //CONFIG :: HR
            case "configDepartment":
                GF.form = new config_department();
                break;

            case "configWorkTime":
                GF.form = new config_work_time();
                break;

            case "configYearlyDayOff":
                GF.form = new config_yearly_dayoff();
                break;

            // CONFIG :: SPA
            case "spaItem":
                GF.form = new spa_item();
                break;

            case "spaProgram":
                GF.form = new program();
                break;

            case "spaProgramType":
                GF.form = new program_type();
                break;

            case "promotion":
                GF.form = new promotion();
                break;

            // CONFIG :: STORE
            case "itemCatagory":
                GF.form = new item_categories();
                break;

            case "storeItem":
                GF.form = new item();
                break;

            case "unit":
                GF.form = new unit();
                break;

            // CONFIG :: DEBTOR
            case "configDebtor":
                GF.form = new debtor_data();
                break;

            // CONFIG :: USERS
            case "manageUsers":
                GF.form = new user_page();
                break;

            case "usersAuth":
                GF.form = new users_auth();
                break;

            case "logs":
                GF.form = new log();
                break;

            // RESERVE ::
            case "reserveTop":
                GF.form = new reservation();
                break;

            case "dailySummary":
                GF.form = new report_daily_summary();
                break;

            case "bookingCancelReport":
                GF.form = new report_booking_cancel();
                break;

            case "endDayMassageReport":
                GF.form = new report_massage_end_day();
                break;

            case "massageHour":
                GF.form = new report_therapist();
                break;

            case "massageHourSummaryReport":
                GF.form = new report_massage_hour_summary();
                break;

            case "monthlyMassageHourReport":
                GF.form = new report_monthly_massage_hour_report();
                break;

            case "spaProgramSummaryReport":
                GF.form = new report_spa_program_summary();
                break;

            case "customerSummaryReport":
                GF.form = new report_customer_summary();
                break;

            // SHOP ::
            case "cashierTop":
                GF.form = new cashier();
                break;

            case "sellingPrice":
                GF.form = new selling_price();
                break;

            case "endDayCashierReport":
                GF.form = new report_cashier_end_day();
                break;

            case "revenueReport":
                GF.form = new report_revenue();
                break;

            case "soldItemReport":
                GF.form = new report_sold_item();
                break;

            case "soldItemSummaryReport":
                GF.form = new report_sold_item_summary();
                break;

            case "miscItemReport":
                GF.form = new report_misc_item();
                break;

            // STORE ::
            case "storeManage":
                GF.form = new store();
                break;

            case "storeTransaction":
                GF.form = new store_transaction();
                break;

            // ACCOUNTING ::

            // HR
            case "contract":
                GF.form = new emp_contract();
                break;

            case "employeeData":
                GF.form = new emp_data();
                break;

            case "leave":
                GF.form = new emp_leave();
                break;

            case "promote":
                GF.form = new emp_promote();
                break;

            case "monthlyClockInOutReport":
                GF.form = new report_monthly_clock_in_out();
                break;

            case "fingerPrintLog":
                GF.form = new report_finger_print_log();
                break;

            // CUSTOMER
            case "customer":
                GF.form = new customer();
                break;

            case "customerListReport":
                GF.form = new report_customer_list();
                break;

            case "customerHistory":
                GF.form = new report_customer_history();
                break;

            case "memberCardOfCustomer":
                GF.form = new report_membercard_in_customer();
                break;

            //COUPON
            case "couponTop":
                GF.form = new coupon();
                break;

            //CARD USAGE
            case "memberCardBalanceSummary":
                GF.form = new report_member_card_balance_summary();
                break;

            case "memberCardUsage":
                GF.form = new report_member_card_usage();
                break;

            case "vipCardUsage":
                GF.form = new report_vip_card_usage();
                break;

            //STOCK
            case "itemListReport":
                GF.form = new report_item_list();
                break;

            case "stockTransactionReport":
                GF.form = new report_stock_transaction();
                break;

            //DEBTOR REPORT
            case "debtorListReport":
                GF.form = new report_debtor();
                break;

            case "debtDetailReport":
                GF.form = new report_debt_detail();
                break;

            default:
                GF.form = null;
                break;
            }

            if (GF.form != null)
            {
                GF.initPage(GF.form, GF.mainPage);
            }
        }