public TdTerminalDesc(TerminalManagement terminalManager, ReceptionEquipmentManagement receptionEquipment, Terminal terminal, List<Terminal> excludeTerminalList) : this(terminalManager, receptionEquipment, terminal) { foreach (Terminal terminal2 in excludeTerminalList) { this.m_NewNames.Add(terminal2.Name); } }
public TdTerminalDesc(TerminalManagement terminalManager, ReceptionEquipmentManagement receptionEquipment, Terminal terminal) { this.m_NewNames = new List<string>(); this.m_TerminalManagement = terminalManager; this.m_ReceptionEquipment = receptionEquipment; this.m_Terminal = terminal; this.m_TdTerminal = terminal.NetTerminalList[0] as TDTerminal; }
public DolphinController() { _audit = new AuditManagement(); _user = new UserManagement(); _menu = new MenuManagement(); _role = new RoleManagement(); _client = new ClientManagement(); _brand = new BrandManagement(); _terminal = new TerminalManagement(); _incident = new IncidentManagement(); }
public UserProfileCompareResult(string[] userSelected, TrafficCollectionModel model, List<NetWorkType> netTypeList) : this() { this.userProfileSelected = userSelected; this.m_netTypeList = netTypeList; this.m_UserProfileManagement = model.UserProfileManagement; this.m_TerminalManagement = model.TerminalManagement; this.m_UnionPsManagement = model.UnionPsServiceManagement; this.m_UnionCsManagement = model.UnionCsServiceManagement; this.getServiceTerminalFromNetWorkType(); this.InitTerminalService(); this.Init(); }
public TerminalTdControl(TrafficCollectionModel model, Terminal terminal, FormOpenType property) { this.m_TerminalManagement = model.TerminalManagement; this.m_Terminal = terminal; if (property == FormOpenType.New) { this.InitTerminal(); } else { this.m_OldTerminalName = terminal.Name; } this.m_TerminalPropertyModel = new TerminalTdPropertyModel(model, terminal.Clone() as Terminal); }
public UserProfileControl(Huawei.UNet.Traffic.Interface.UserProfile inUserProfile, TrafficCollectionModel model, List<NetWorkType> netTypeList, FormOpenType formOpenType) { this.m_Model = model; this.m_NewProfile = inUserProfile; this.m_NetWorkTypeList = netTypeList; this.m_UserProfileManagement = this.m_Model.UserProfileManagement; this.m_UnionCsManagement = this.m_Model.UnionCsServiceManagement; this.m_UnionPsManagement = this.m_Model.UnionPsServiceManagement; this.m_TerminalManager = this.m_Model.TerminalManagement; this.m_UserProfileManagement = this.m_Model.UserProfileManagement; if (formOpenType == FormOpenType.New) { this.m_NewProfile.Name = this.GenerateName(); } }
private void InitManagement() { this.m_MobManagement = this.m_Model.MobilityManagement; this.m_SerManagement = this.m_Model.UnionPsServiceManagement; this.m_UserProfileManagement = this.m_Model.UserProfileManagement; this.m_TerminalManagement = this.m_Model.TerminalManagement; this.m_EnvManagement = this.m_Model.EnvironemntMangement; this.m_McsManagement = this.m_Model.McsManagement; this.m_MimoManagement = this.m_Model.MIMOManagement; this.m_ReceptionEquipmentManagement = this.m_Model.RecepEquipManagement; }
public TdTerminalValidator(TrafficCollectionModel model) { this.m_TerminalManagement = model.TerminalManagement; this.m_ReceptionEquipment = model.RecepEquipManagement; }
static void Main(string[] args) { try { var fileLog = ConfigurationManager.AppSettings["FileLog"]; var log = new ProgramLog(fileLog); } catch (DirectoryNotFoundException) { var exception = new ConfigurationDirectoryNotFoundException(ConfigurationManager.AppSettings["FileLog"]); Console.WriteLine(exception.Message); throw exception; } IAdress vasinAdress = ContactAddressInformation.CreateNewAdress("Belarus", "Grodno", "Kleckova", new Tuple <int, char, char>(12, '/', 'A'), 3); IList <int> vasinListNumbers = new List <int>(); vasinListNumbers.Add(654321); vasinListNumbers.Add(543210); IList <string> vasinListEmails = new List <string>(); vasinListEmails.Add("*****@*****.**"); vasinListEmails.Add("*****@*****.**"); IContactInforamtion vasinaContactInforamtion = ContactAddressInformation.CreateNewContacts(vasinListNumbers, vasinListEmails); IFullName vasyasFullName = PersonalIdentification.CreateNewFullName("Vasya", "Pupkin", "Ivanavich"); IPassportIdentification passportIdentification = PersonalIdentification.CreateNewPassportIdentification( vasyasFullName, "REPUBLIC OF BELARUS", new DateTime(1997, 10, 28), true, "3456797K000PB9", "REPUBLIC OF BELARUS"); IPassportData passportData = PersonalIdentification.CreateNewPassportData(passportIdentification, "KH248248", "MINISTRY OF INTERNAL AFFAIRS", new DateTime(2015, 10, 28), new DateTime(2025, 10, 28)); IInformationOfAnIndividual informationOfVasya = InformationProvided.CreateNewInformationOfAnIndividual(vasinAdress, vasinaContactInforamtion, passportData); Console.WriteLine(informationOfVasya.ToString()); // IBillingCompany billingCompany = CompanyManagement.CreateNewCompany("Company"); IAdress billingCompanyAdress = ContactAddressInformation.CreateNewAdress("Belarus", "Grodno", "Kleckova", new Tuple <int, char, char>(10, '/', '2'), 3); CompanyManagement.ChangeAdress(billingCompany, billingCompanyAdress); IList <int> companyListNumbers = new List <int>(); vasinListNumbers.Add(123456); vasinListNumbers.Add(234567); IList <string> companyListEmails = new List <string>(); vasinListEmails.Add("*****@*****.**"); vasinListEmails.Add("*****@*****.**"); IContactInforamtion companyContactInforamtion = ContactAddressInformation.CreateNewContacts(companyListNumbers, companyListEmails); CompanyManagement.ChangeContactInforamtion(billingCompany, companyContactInforamtion); CompanyManagement.ChangeAboutLegalEntity(billingCompany, "Some company"); StationManagment.CreateNewStation(billingCompany, CodecType.G711); try { StationManagment.AddPortRange(billingCompany.Stations[0], 2030, 2110); } catch (PortArgumentOutOfRangeException e) { Console.WriteLine(e.Message); } Console.WriteLine(StationManagment.OutputAllPorts(billingCompany.Stations[0])); IClient client = ContractManagement.CreateNewClient(informationOfVasya); IRate rate = ContractManagement.CreateNewRate("Tarif", 0.5); ISubscriberNumber subscriberNumber1 = ContractManagement.CreateNewSubscriberNumber(rate, 505050); ISubscriberNumber subscriberNumber2 = ContractManagement.CreateNewSubscriberNumber(rate, 525252); ContractManagement.MakeNewTerminalContract(billingCompany, client, subscriberNumber1); ContractManagement.MakeNewTerminalContract(billingCompany, client, subscriberNumber2); TerminalManagement.ConnectTerminal(billingCompany.Stations[0], client.Contracts[0].Terminal, 2030); Thread.Sleep(200); TerminalManagement.ConnectTerminal(billingCompany.Stations[0], client.Contracts[1].Terminal, 2100); Thread.Sleep(200); TerminalManagement.CallToSubscriber(billingCompany.Stations[0], client.Contracts[0].Terminal, client.Contracts[1].Terminal); Thread.Sleep(200); TerminalManagement.AnswerTheCall(billingCompany.Stations[0], client.Contracts[0].Terminal, client.Contracts[1].Terminal); Thread.Sleep(1200); TerminalManagement.CompleteCall(billingCompany.Stations[0], client.Contracts[0].Terminal, client.Contracts[1].Terminal); Thread.Sleep(200); TerminalManagement.DisconnectTerminal(billingCompany.Stations[0], client.Contracts[0].Terminal); Thread.Sleep(200); TerminalManagement.DisconnectTerminal(billingCompany.Stations[0], client.Contracts[1].Terminal); try { Console.WriteLine(CallManagement.ViewCallLog(client.Contracts[0].Terminal.SubscriberNumber, 30)); } catch (CallLogArgumentException e) { Console.WriteLine(e.Message); } }
public GsmTerminalValidator(TrafficCollectionModel model) { this.m_TerminalManager = model.TerminalManagement; this.m_TrafficColModel = model; }