private FormData GetFormData(JsonSet json) { var formData = new FormData(); formData.DirectorateName = json.NAZIV_DIR; formData.Number = json.ARHIVSKI_BR_NAS; formData.Date = json.DATUM; formData.EmployeeEmail = json.EMAIL_RADNIKA; formData.ManagerEmail = json.EMAIL_RUKOVODIOCA; formData.SignatoryPosition = json.NAZIV_POTPISNIKA; formData.SignatoryFullName = json.POTPISNIK_PREZIME_IME; formData.PreambleText = Preamble.GeneratePreamble(json.ID_ODSUSTVA); formData.MainText = MainText.GenerateMainText(json); formData.RationaleText = Rationale.GenerateRationaleText(json.ID_ODSUSTVA); if (json.POL == "Z") { formData.Deliver = "Zaposlenoj"; } else if (json.POL == "M") { formData.Deliver = "Zaposlenom"; } return(formData); }
public BoekingViewModel() { travelpartners = new List <Travelpartner>(); maincustomer = new MainCustomer(); mvr = Preamble.mvr; dhr = Preamble.dhr; }
public override Node Clone() { return(new IterativeClause( Preamble?.Clone() as StatementList, Condition?.CloneExpr(), Afterword?.CloneStatement())); }
public Customer(Preamble Preamble, DateTime DateOfBirth, string Firstname, string Lastname) { preamble = Preamble; dateOfBirth = DateOfBirth; firstname = Firstname; lastname = Lastname; }
public override Statement CloneStatement() { return(new IfStatement( Condition.CloneExpr(), True.Clone() as Block) { Preamble = Preamble?.CloneStatement(), False = False?.CloneStatement() }); }
public Ctl(string filename) { Filename = filename; OriginalLines = File.ReadLines(filename).Select(x => x.TrimEnd()).ToList(); int v = OriginalLines.FindIndex(x => x.Substring(0, startMarker.Length) == startMarker); Preamble = OriginalLines.Take(v).ToList(); Body = OriginalLines.Skip(v).ToList(); vbpLines = Preamble.Select(x => new VbpLine(x)).ToList(); }
public static DataCall CSBKRadioCall(int numberOfPreambles, bool group, RadioID from, RadioID to, CSBKBurst burst) { DataCall call = new DataCall(group, false, from, to); for (int i = 0; i < numberOfPreambles; i++) { Preamble pre = new Preamble((byte)(numberOfPreambles - i), to, from); call.bursts.Add(pre); } call.bursts.Add(burst); return(call); }
//Constructor public Travelpartner(bool Adult, Preamble Preamble, DateTime DateOfBirth, string Firstname, string Lastname) : base(Preamble, DateOfBirth, Firstname, Lastname) { adult = Adult; }
public override void AppendPreambleCode(string code) { Preamble.AppendLine(new string(' ', 4) + (code).Trim()); }
public MainCustomer(string Adress, string Residence, string Telephonenumber, string Email, Preamble Preamble, DateTime DateOfBirth, string Firstname, string Lastname) : base(Preamble, DateOfBirth, Firstname, Lastname) { adress = Adress; residence = Residence; telephonenumber = Telephonenumber; email = Email; }
public override void AppendPreambleCode(string code) { Preamble.AppendLine(code); }