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); }
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(); }
public EmployeeViewModel() { mainAtt = MainAtt.getInstance(); initDB(); DateTime timeNow = DateTime.Now; //DateTime aaa = timeNow.Date; //System.Windows.MessageBox.Show(aaa.ToString()); }
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(); }
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)); } } }
public JournalViewModel() { mainAtt = MainAtt.getInstance(); initDB(); }
public BillViewModel(string htID) { this.htID = htID; mainAtt = MainAtt.getInstance(); initDB(); }
public ReportingViewModel() { mainAtt = MainAtt.getInstance(); }
public CustomerViewModel() { mainAtt = MainAtt.getInstance(); initDB(); }
public StockViewModel() { mainAtt = MainAtt.getInstance(); initDB(); }
public ViolationViewModel(string employeeID) { this.employeeID = employeeID; mainAtt = MainAtt.getInstance(); initDB(); }
public DetailServiceViewModel() { mainAtt = MainAtt.getInstance(); }
public VoucherViewModel() { mainAtt = MainAtt.getInstance(); initDB(); }
public ProductViewModel() { mainAtt = MainAtt.getInstance(); initDB(); }