コード例 #1
0
        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);
        }
コード例 #2
0
 public RecruiterViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
     Genders = new List <string>();
     Genders.Add("Male");
     Genders.Add("Female");
 }
コード例 #3
0
 public TransactionViewModel()
 {
     mainAtt     = MainAtt.getInstance();
     voucherVm   = new VoucherViewModel();
     dtServiceVM = new DetailServiceViewModel();
     stockVM     = new StockViewModel();
     initDB();
 }
コード例 #4
0
 public EmployeeViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
     DateTime timeNow = DateTime.Now;
     //DateTime aaa = timeNow.Date;
     //System.Windows.MessageBox.Show(aaa.ToString());
 }
コード例 #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));
            }
        }
コード例 #6
0
 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();
 }
コード例 #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));
                }
            }
        }
コード例 #8
0
 public JournalViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
コード例 #9
0
 public BillViewModel(string htID)
 {
     this.htID = htID;
     mainAtt   = MainAtt.getInstance();
     initDB();
 }
コード例 #10
0
 public ReportingViewModel()
 {
     mainAtt = MainAtt.getInstance();
 }
コード例 #11
0
 public CustomerViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
コード例 #12
0
 public StockViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
コード例 #13
0
 public ViolationViewModel(string employeeID)
 {
     this.employeeID = employeeID;
     mainAtt         = MainAtt.getInstance();
     initDB();
 }
コード例 #14
0
 public DetailServiceViewModel()
 {
     mainAtt = MainAtt.getInstance();
 }
コード例 #15
0
 public VoucherViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }
コード例 #16
0
 public ProductViewModel()
 {
     mainAtt = MainAtt.getInstance();
     initDB();
 }