public FindCustomerByName()
 {
     this.connect = ConnectDatabase.getInstance();
     InitializeComponent();
     listbox.Visibility    = Visibility.Hidden;
     nextbutton.Visibility = Visibility.Hidden;
 }
예제 #2
0
 public WithdrawMoney(Employee emp, Customer cust)
 {
     this.connect  = ConnectDatabase.getInstance();
     this.employee = emp;
     this.customer = cust;
     InitializeComponent();
 }
예제 #3
0
        public Payments(Employee emp)
        {
            this.connect  = ConnectDatabase.getInstance();
            this.employee = emp;
            InitializeComponent();

            dt = new DataTable();
            dt = connect.executeQuery("select * from customer");

            int size = dt.Rows.Count;

            for (int i = 0; i < size; i++)
            {
                data = dt.Rows[i];
                sendernames.Add(data["name"].ToString());
                senderaccnum.Add(data["accountnumber"].ToString());
            }
            combobox.ItemsSource = sendernames;

            types.Add("Electric Bill");
            types.Add("Phone Bill");
            types.Add("Voucher");
            types.Add("E-Commerce");
            types.Add("Credit Card");
            types.Add("Tickets");
            types.Add("Others");

            typebox.ItemsSource = types;
        }
예제 #4
0
 public WindowLogin()
 {
     this.connect = ConnectDatabase.getInstance();
     InitializeComponent();
     connect.executeUpdate("update deposit set enddate = (enddate + time) where (enddate - current_date) = 0 and aro = 0");
     connect.executeUpdate("update virtualaccount set status = 'Expired' where (enddate - current_date) < 0 and status = 'Not Paid'");
     connect.executeUpdate("delete from virtualaccount where status = 'Paid'");
 }
예제 #5
0
        public TransferMoney(Employee emp, Customer cust)
        {
            this.connect  = ConnectDatabase.getInstance();
            this.employee = emp;
            this.customer = cust;
            InitializeComponent();

            dt = new DataTable();
            dt = connect.executeQuery("select * from customer");

            int size = dt.Rows.Count;

            for (int i = 0; i < size; i++)
            {
                data = dt.Rows[i];
                sendernames.Add(data["name"].ToString());
                senderaccnum.Add(data["accountnumber"].ToString());
            }
            combobox.ItemsSource = sendernames;
        }
 public FindCustomerByAccountNum(Employee emp, string nextaction)
 {
     this.connect = ConnectDatabase.getInstance();
     InitializeComponent();
     this.employee = emp;
     this.action   = nextaction;
     if (nextaction.Equals("depositmoney"))
     {
         actiontxt.Content = "Deposit Money";
     }
     else if (nextaction.Equals("transfermoney"))
     {
         actiontxt.Content = "Transfer Money";
     }
     else
     {
         actiontxt.Content = "Payments";
     }
     nextbutton.Visibility = Visibility.Hidden;
     listbox.Visibility    = Visibility.Hidden;
 }
예제 #7
0
 public InputAccNum()
 {
     this.connect = ConnectDatabase.getInstance();
     InitializeComponent();
 }
 public FindCustomerByAccountNum()
 {
     this.connect = ConnectDatabase.getInstance();
     InitializeComponent();
 }
예제 #9
0
 public ATMDeposit(Customer cust)
 {
     this.connect  = ConnectDatabase.getInstance();
     this.customer = cust;
     InitializeComponent();
 }