예제 #1
0
        protected void SaveInfo()
        {
            Accident_Info info = new Accident_Info(int.Parse(txtKey.Text));

            info.Datetime       = DateTime.ParseExact(txtDatetime.Text, "dd/MM/yyyy", CultureInfo.InvariantCulture);
            info.SeedsKey       = DDLSeeds.SelectedValue.ToInt();
            info.Code           = txtCode.Text;
            info.EquipmentKey   = int.Parse(DDLEquipment.SelectedValue);
            info.Treatments     = txtTreatments.Text;
            info.Notice         = txtNotice.Text;
            info.MemberKey      = int.Parse(DDLMember.SelectedValue);
            info.CooperativeKey = int.Parse(DDLCooperative.SelectedValue);
            info.Save();
        }