public DetailServiceViewModel(string htID)
        {
            tvm           = new TransactionViewModel();
            mainAtt       = MainAtt.getInstance();
            HtID          = htID;
            ServiceTypes  = new List <string>();
            pulses        = new List <string>();
            Prices        = new List <double>();
            electricities = new List <string>();
            ServiceTypes.Add("pulse");
            ServiceTypes.Add("electricity");


            pulses.Add("Telkomsel");
            pulses.Add("Indosat");
            pulses.Add("XL");

            electricities.Add("MyPLN");
            electricities.Add("YourElec");

            Prices.Add(11000);
            Prices.Add(21000);
            Prices.Add(52000);
            Prices.Add(101000);
            Prices.Add(201000);
        }
Ejemplo n.º 2
0
 public RecruiterViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
     Genders = new List <string>();
     Genders.Add("Male");
     Genders.Add("Female");
 }
 public TransactionViewModel()
 {
     mainAtt     = MainAtt.getInstance();
     voucherVm   = new VoucherViewModel();
     dtServiceVM = new DetailServiceViewModel();
     stockVM     = new StockViewModel();
     initDB();
 }
Ejemplo n.º 4
0
 public EmployeeViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
     DateTime timeNow = DateTime.Now;
     //DateTime aaa = timeNow.Date;
     //System.Windows.MessageBox.Show(aaa.ToString());
 }
Ejemplo n.º 5
0
        public void init()
        {
            MainAtt mainAtt  = MainAtt.getInstance();
            var     Journals = mainAtt.Mydb.Journals.ToList();

            for (int i = 0; i < Journals.Count; i++)
            {
                Add(new KeyValuePair <string, double>(Journals[i].JournalDate.ToString(), (double)Journals[i].credits));
            }
        }
 public TransactionViewModel(string htID)
 {
     mainAtt     = MainAtt.getInstance();
     Ht          = mainAtt.Mydb.HeaderTransactions.Where(a => a.HeaderID.Equals(htID)).FirstOrDefault();
     voucherVm   = new VoucherViewModel();
     dtServiceVM = new DetailServiceViewModel();
     stockVM     = new StockViewModel();
     initDB();
     UpdateTotalPrice();
 }
Ejemplo n.º 7
0
        public void init()
        {
            MainAtt mainAtt  = MainAtt.getInstance();
            var     Journals = mainAtt.Mydb.Journals.ToList();
            int     month    = 0;

            for (int i = 0; i < Journals.Count; i++)
            {
                int temp = 0;
                if (month == 0)
                {
                    month = Convert.ToDateTime(Journals[i].JournalDate).Date.Month;
                    Add(new KeyValuePair <string, double>(Journals[i].JournalDate.ToString(), (double)Journals[i].credits));
                }
                temp = Convert.ToDateTime(Journals[i].JournalDate).Date.Month;
                if (temp != month)
                {
                    month = temp;
                    Add(new KeyValuePair <string, double>(Journals[i].JournalDate.ToString(), (double)Journals[i].credits));
                }
            }
        }
Ejemplo n.º 8
0
 public JournalViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
Ejemplo n.º 9
0
 public BillViewModel(string htID)
 {
     this.htID = htID;
     mainAtt   = MainAtt.getInstance();
     initDB();
 }
Ejemplo n.º 10
0
 public ReportingViewModel()
 {
     mainAtt = MainAtt.getInstance();
 }
Ejemplo n.º 11
0
 public CustomerViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
Ejemplo n.º 12
0
 public StockViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
Ejemplo n.º 13
0
 public ViolationViewModel(string employeeID)
 {
     this.employeeID = employeeID;
     mainAtt         = MainAtt.getInstance();
     initDB();
 }
 public DetailServiceViewModel()
 {
     mainAtt = MainAtt.getInstance();
 }
Ejemplo n.º 15
0
 public VoucherViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
Ejemplo n.º 16
0
 public ProductViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }