Exemplo n.º 1
0
        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;
 }
Exemplo n.º 3
0
 public override Node Clone()
 {
     return(new IterativeClause(
                Preamble?.Clone() as StatementList,
                Condition?.CloneExpr(),
                Afterword?.CloneStatement()));
 }
Exemplo n.º 4
0
 public Customer(Preamble Preamble, DateTime DateOfBirth, string Firstname, string Lastname)
 {
     preamble    = Preamble;
     dateOfBirth = DateOfBirth;
     firstname   = Firstname;
     lastname    = Lastname;
 }
Exemplo n.º 5
0
 public override Statement CloneStatement()
 {
     return(new IfStatement(
                Condition.CloneExpr(),
                True.Clone() as Block)
     {
         Preamble = Preamble?.CloneStatement(),
         False = False?.CloneStatement()
     });
 }
Exemplo n.º 6
0
        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();
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
 //Constructor
 public Travelpartner(bool Adult, Preamble Preamble, DateTime DateOfBirth, string Firstname, string Lastname) : base(Preamble, DateOfBirth, Firstname, Lastname)
 {
     adult = Adult;
 }
Exemplo n.º 9
0
 public override void AppendPreambleCode(string code)
 {
     Preamble.AppendLine(new string(' ', 4) + (code).Trim());
 }
Exemplo n.º 10
0
 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;
 }
Exemplo n.º 11
0
 public override void AppendPreambleCode(string code)
 {
     Preamble.AppendLine(code);
 }