Exemplo n.º 1
0
 public frmPunishmentDecisionPersonal(PunishmentDecisionPersonal punishmentDecisionPersonal)
     : this()
 {
     this.punishmentDecisionPersonal = punishmentDecisionPersonal;
 }
Exemplo n.º 2
0
        private void SaveData()
        {
            if (punishmentDecisionPersonal == null)
                punishmentDecisionPersonal = new PunishmentDecisionPersonal();

            GetEntity(punishmentDecisionPersonal);

            NaturalPerson naturalPerson = new NaturalPerson
            {
                Sex = FieldEPeopleSex.Text,
                Age = FieldEPeopleAge.Text,
                CompanyTel = FieldEPeoplePhone.Text,
                Address = FieldEPeopleAddress.Text,
                CompanyName = FieldEPeopleCompanyName.Text,
                Job = FieldEPeoplePosition.Text,
                CompanyAddress = FieldEPeopleCompanyAddress.Text
            };
            InvokeUtil.SystemService.UpdateNaturalPersonByArgs(naturalPerson);

            InvokeUtil.SystemService.EntityUpdate(punishmentDecisionPersonal);
        }