public FindClientTabItemViewModel(string nameHeader) : base(nameHeader) { QueryClientInfo = new QueryForFindClientInfo(); InitializeCommands(); FindByLastNameBit = true; ClientCategories = DbMs.GetClientCategory(); }
private void C_SelectedClientInfoEvent1(object sender, SelectedClientInfoEventArgs e) { var fullClient = DbMs.GetClientFullInfo((Set10ExchangeLoyClient)e.Client.Clone()); fullClient.Ammounts = new ObservableCollection <Set10ExchangeLoyAmmounts>(DbPg.GetBonus(fullClient.Client)); var currentClient = new ClientInfoTabItemViewModel(fullClient); AddItem(currentClient); }
private void ScanCardsCommandMethod() { var cards = asc122H.ScanCard(1); if (cards == null || cards.Count() == 0) { return; } string card = cards[0]; var client = DbMs.GetClientByNumCard(card); if (client == null || client.Count() == 0) { return; } ClientInfo = client.FirstOrDefault(); }
public void Go() { var dbConnection = DbPg.GetConnection(); var dbMsConnection = DbMs.GetConnection(); var clients = DbMs.AllChangedClients(); foreach (var cli in clients) { var kit = DbMs.GetClientFullInfo(cli, dbMsConnection); try { Sync(kit, dbConnection); DbMs.UpdateClientKitIsLoadToSet10(cli.Uid, true); } catch (Exception) { } } }
public ClientProfileTabItemViewModel(ClientKit client, string nameHeader) : base(nameHeader) { Client = client; SexTypes = DbMs.GetSexType(); ClientCategories = DbMs.GetClientCategory(); }
private void LoadListCommandMethod() { DbMs.SaveChargeBonusByClient(ChargeOnList, SelectedChargeOnDate, Note); }
private void ChargeOnNewClientCommandMethod() { DbMs.ChargeOnNewClient(); }
private void FindNowCommandMethod() { ClientList = FindByLastNameBit ? DbMs.SearchClientInfo(QueryClientInfo) : DbMs.SearchClientInfo(QCardNumber); }