Esempio n. 1
0
        private void button10_Click(object sender, EventArgs e)
        {
            string[]  column = { Const.Department.Dept_ID, Const.Department.Description };
            FrmSearch search = new FrmSearch(departs, column);

            search.passdata = new FrmSearch.PassData(changeState);
            search.ShowDialog();
        }
Esempio n. 2
0
        private void button10_Click(object sender, EventArgs e)
        {
            string[]  column = { Employee_Prop.Cashier_ID, Employee_Prop.EmpName, Employee_Prop.Dept_ID, Employee_Prop.Address_1, Employee_Prop.Phone_1 };
            FrmSearch search = new FrmSearch(Employees, column);

            search.tableType = "Employee";
            search.passdata  = new FrmSearch.PassData(changeState);
            search.ShowDialog();
        }
Esempio n. 3
0
        private void button10_Click(object sender, EventArgs e)
        {
            string[]  column = { Const.Inventory.ItemNum, Const.Inventory.ItemName, Const.Inventory.Dept_ID, Const.Inventory.Cost, Const.Inventory
                                 .Price,                   Const.Inventory.In_Stock };
            FrmSearch search = new FrmSearch(inventory, column);

            search.passdata = new FrmSearch.PassData(changeState);
            search.ShowDialog();
        }
Esempio n. 4
0
        private void button18_Click(object sender, EventArgs e)
        {
            string[]  column = { Const.Inventory.ItemNum, Const.Inventory.ItemName, Const.Inventory.Dept_ID, Const.Inventory.Cost, Const.Inventory
                                 .Price,                   Const.Inventory.In_Stock };
            FrmSearch search = new FrmSearch(inventory, column);

            if (search.ShowDialog() == DialogResult.OK)
            {
                DataGridViewRow   dataGridViewRow   = search.selectRow;
                FrmKeyboardNumber frmKeyboardNumber = new FrmKeyboardNumber("Số lượng");
                if (frmKeyboardNumber.ShowDialog() == DialogResult.OK)
                {
                    Ingredient ingredient = new Ingredient(dataGridViewRow.Cells[0].Value.ToString(), dataGridViewRow.Cells[1].Value.ToString(), Convert.ToSingle(frmKeyboardNumber.value), 0, 0, Convert.ToDecimal(dataGridViewRow.Cells[3].Value));
                    ingredient.isNew = true;
                    InventIngredients.Add(ingredient);
                    dataGridView1.Rows.Add(new object[] { dataGridViewRow.Cells[1].Value.ToString(), String.Format("{0:0.##}", Convert.ToDecimal(frmKeyboardNumber.value)), String.Format("{0:0,0}", Convert.ToDecimal(frmKeyboardNumber.value) * Convert.ToDecimal(dataGridViewRow.Cells[3].Value)), ingredient });
                }
            }
        }
Esempio n. 5
0
        private void button50_Click(object sender, EventArgs e)
        {
            if (!Employee.CheckGrant(StaticClass.storeId, StaticClass.cashierId, Employee.CFA_PULLBACK_INVOICE))
            {
                return;
            }
            DataTable invoices = serviceGet.getGui.GetAllInvoices(StaticClass.storeId);

            string[]  column = { "Invoice_Number", "Station_ID", "Grand_Total", "Cashier_ID", "Store_ID" };
            FrmSearch search = new FrmSearch(invoices, column);

            search.tableType = "Invoices";
            //search.passdata = new FrmSearch.PassData(changeState);
            if (search.ShowDialog() == DialogResult.OK)
            {
                string invoiceNum = search.selectRow.Cells["Invoice_Number"].Value.ToString();
                string tableName  = search.selectRow.Cells["Orig_OnHoldID"].Value.ToString();
                printThanhToan(invoiceNum, tableName);
            }
        }
Esempio n. 6
0
 private void button50_Click(object sender, EventArgs e)
 {
     if (!Employee.CheckGrant(StaticClass.storeId, StaticClass.cashierId, Employee.CFA_PULLBACK_INVOICE))
     {
         return;
     }
     DataTable invoices = serviceGet.getGui.GetAllInvoices(StaticClass.storeId);
     string[] column = { "Invoice_Number", "Station_ID", "Grand_Total", "Cashier_ID", "Store_ID" };
     FrmSearch search = new FrmSearch(invoices, column);
     search.tableType = "Invoices";
     //search.passdata = new FrmSearch.PassData(changeState);
     if(search.ShowDialog() == DialogResult.OK)
     {
         string invoiceNum = search.selectRow.Cells["Invoice_Number"].Value.ToString();
         string tableName = search.selectRow.Cells["Orig_OnHoldID"].Value.ToString();
         printThanhToan(invoiceNum,tableName);
     }
 }
Esempio n. 7
0
 private void button10_Click(object sender, EventArgs e)
 {
     string[] column = { Employee_Prop.Cashier_ID, Employee_Prop.EmpName,Employee_Prop.Dept_ID,Employee_Prop.Address_1,Employee_Prop.Phone_1};
     FrmSearch search = new FrmSearch(Employees, column);
     search.tableType = "Employee";
     search.passdata = new FrmSearch.PassData(changeState);
     search.ShowDialog();
 }
Esempio n. 8
0
 private void button10_Click(object sender, EventArgs e)
 {
     string[] column = { Const.Inventory.ItemNum, Const.Inventory.ItemName,Const.Inventory.Dept_ID,Const.Inventory.Cost,Const.Inventory
                       .Price,Const.Inventory.In_Stock};
     FrmSearch search = new FrmSearch(inventory, column);
     search.passdata = new FrmSearch.PassData(changeState);
     search.ShowDialog();
 }
Esempio n. 9
0
        private void button10_Click(object sender, EventArgs e)
        {
            string[] column = {Const.Department.Dept_ID, Const.Department.Description};
            FrmSearch search = new FrmSearch(departs, column);
            search.passdata = new FrmSearch.PassData(changeState);
            search.ShowDialog();

        }
Esempio n. 10
0
 private void button18_Click(object sender, EventArgs e)
 {
     string[] column = { Const.Inventory.ItemNum, Const.Inventory.ItemName,Const.Inventory.Dept_ID,Const.Inventory.Cost,Const.Inventory
                       .Price,Const.Inventory.In_Stock};
     FrmSearch search = new FrmSearch(inventory, column);
     if(search.ShowDialog() == DialogResult.OK)
     {
         DataGridViewRow dataGridViewRow = search.selectRow;
         FrmKeyboardNumber frmKeyboardNumber = new FrmKeyboardNumber("Số lượng");
         if(frmKeyboardNumber.ShowDialog() == DialogResult.OK)
         {
             Ingredient ingredient = new Ingredient(dataGridViewRow.Cells[0].Value.ToString(), dataGridViewRow.Cells[1].Value.ToString(), Convert.ToSingle(frmKeyboardNumber.value), 0, 0, Convert.ToDecimal(dataGridViewRow.Cells[3].Value));
             ingredient.isNew = true;
             InventIngredients.Add(ingredient);
             dataGridView1.Rows.Add(new object[] { dataGridViewRow.Cells[1].Value.ToString(), String.Format("{0:0.##}", Convert.ToDecimal(frmKeyboardNumber.value)), String.Format("{0:0,0}", Convert.ToDecimal(frmKeyboardNumber.value) * Convert.ToDecimal(dataGridViewRow.Cells[3].Value)), ingredient });
         }
     }
 }