Пример #1
0
        private void txtEndTime_DoubleClick(object sender, EventArgs e)
        {
            FrmTime frmTime = new FrmTime("Chọn thời gian kết thúc");

            if (frmTime.ShowDialog() == DialogResult.OK)
            {
                endDate = new DateTime(endDate.Year, endDate.Month, endDate.Day, FrmReporting.ChangeModeTime(frmTime.Hour, frmTime.Mode), frmTime.Minute, frmTime.Second);
                UpdateDatetime();
            }
        }
Пример #2
0
        private void button10_Click(object sender, EventArgs e)
        {
            if (!Employee.CheckGrant(StaticClass.storeId, StaticClass.cashierId, Employee.CFA_REPORT_DISPLAY))
            {
                return;
            }
            FrmReporting frmReporting = new FrmReporting();

            frmReporting.ShowDialog();
        }
Пример #3
0
 private void button10_Click(object sender, EventArgs e)
 {
     FrmReporting frmReporting = new FrmReporting();
     frmReporting.ShowDialog();
 }
Пример #4
0
 private void button10_Click(object sender, EventArgs e)
 {
     if (!Employee.CheckGrant(StaticClass.storeId, StaticClass.cashierId, Employee.CFA_REPORT_DISPLAY))
     {
         return;
     }
     FrmReporting frmReporting = new FrmReporting();
     frmReporting.ShowDialog();
 }
Пример #5
0
        private void button16_Click(object sender, EventArgs e)
        {
            FrmDayOfWeek frmDayOfWeek = new FrmDayOfWeek();
            DateTime     cr1          = DateTime.Now;
            DateTime     cr2          = DateTime.Now;
            decimal      price;

            int[]  cr3;
            Prices prices;

            if (frmDayOfWeek.ShowDialog() == DialogResult.OK)
            {
                cr3 = new int[frmDayOfWeek.creListBox1.SelectedItems.Count];
                for (int i = 0; i < frmDayOfWeek.creListBox1.SelectedItems.Count; i++)
                {
                    cr3[i] = frmDayOfWeek.creListBox1.SelectedIndices[i] + 1;
                }
                FrmTime frmTime = new FrmTime("Giờ bắt đầu ");
                frmTime.myPassPara = startTimeText;
                if (frmTime.ShowDialog() == DialogResult.OK)
                {
                    cr1                = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, FrmReporting.ChangeModeTime(frmTime.Hour, frmTime.Mode), frmTime.Minute, frmTime.Second);
                    frmTime            = new FrmTime("Thời gian kết thúc ");
                    frmTime.myPassPara = startTimeText;
                    if (frmTime.ShowDialog() == DialogResult.OK)
                    {
                        cr2 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, FrmReporting.ChangeModeTime(frmTime.Hour, frmTime.Mode), frmTime.Minute, frmTime.Second);
                        FrmKeyboardNumber frmKeyboardNumber = new FrmKeyboardNumber("Giá ", String.Format("{0:0,0}", Convert.ToDecimal(txtGiaMua.Text)));
                        if (frmKeyboardNumber.ShowDialog() == DialogResult.OK)
                        {
                            price = Convert.ToDecimal(frmKeyboardNumber.value);
                            for (int i = 0; i < cr3.Length; i++)
                            {
                                prices       = new Prices(price, cr1, cr2, cr3[i].ToString());
                                prices.isNew = true;
                                specialPricing.PricesList.Add(prices);
                                creListBox4.Items.Add(prices);
                            }
                        }
                    }
                }
            }
        }
Пример #6
0
        private void button10_Click(object sender, EventArgs e)
        {
            FrmReporting frmReporting = new FrmReporting();

            frmReporting.ShowDialog();
        }