コード例 #1
0
 public UjfMeetingAddChangeForm(UjfMeeting m)
 {
     this.meeting = new UjfMeeting();
     this.InitializeComponent();
     this.set_Font(Manager.WindowFont);
     this.meeting = m;
     this.sfdVotingKind.Faset = FasetsEnum.UjfVotingType;
     this.sfdVotingKind.RefreshValues();
     this.sfdVotingKind.set_SelectedIndex(0);
     if (!m.IsNew)
     {
         this.dbEndVotingDate.Value = this.meeting.EndVotingDate;
         this.dbNoticeDate.Value = this.meeting.NoticeDate;
         this.dbDate.Value = this.meeting.Date;
         this.dbProtocolDate.Value = this.meeting.ProtocolDate;
         this.nudProtocolNumber.set_Value((decimal) this.meeting.ProtocolNumber);
         this.tbMeetingInitiator.set_Text(this.meeting.MeetingInitiator);
         this.tbVotingAcceptAdress.set_Text(this.meeting.VotingAcceptAdress);
         this.dbPublishVotingDate.Value = this.meeting.PublishVotingDate;
         this.sfdVotingKind.SelectedFasetItem = FasetItem.FindById(this.meeting.VotingKindId);
     }
 }
コード例 #2
0
ファイル: HouseServiceView.cs プロジェクト: u4097/SQLScript
 private void tsbDeleteMeeting_Click(object sender, System.EventArgs e)
 {
     this.meeting = this.bsUjfMeetings.get_Current() as UjfMeeting;
     if (this.meeting != null)
     {
         if (System.Windows.Forms.MessageBox.Show("Вы действительно хотите удалить? ", "Внимание", System.Windows.Forms.MessageBoxButtons.YesNo) != System.Windows.Forms.DialogResult.No)
         {
             UjfApartmentOwnerMapper mapper = new UjfApartmentOwnerMapper();
             UjfMeetingQuestionMapper mapper2 = new UjfMeetingQuestionMapper();
             new UjfApartmentOwnerVotingMapper().DeleteByMeetingId(this.meeting.Id);
             mapper2.DeleteByMeetingId(this.meeting.Id);
             mapper.DeleteByMeetingId(this.meeting.Id);
             this.meeting.Delete();
             this.meeting.SaveChanges();
             this.UpdateBindingSourceMeeting();
         }
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("Выберите строку для удаления");
     }
 }
コード例 #3
0
ファイル: HouseServiceView.cs プロジェクト: u4097/SQLScript
 private void tsbChangeMeeting_Click(object sender, System.EventArgs e)
 {
     this.meeting = this.bsUjfMeetings.get_Current() as UjfMeeting;
     if (this.meeting != null)
     {
         new UjfMeetingAddChangeForm(this.meeting).ShowDialog();
         this.UpdateBindingSourceMeeting();
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("Выберите строку для редатирования");
     }
 }
コード例 #4
0
ファイル: HouseServiceView.cs プロジェクト: u4097/SQLScript
 private void tsbAddMeeting_Click(object sender, System.EventArgs e)
 {
     this.meeting = new UjfMeeting();
     this.meeting.HouseId = this.house.Id;
     UjfMeetingAddChangeForm form = new UjfMeetingAddChangeForm(this.meeting);
     form.ShowDialog();
     this.UpdateBindingSourceMeeting();
     if (form.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         Mappers.UjfApartmentOwnerMapper.FillUjfApartmentOwnerExec(this.house.Id, this.meeting.Id);
     }
 }
コード例 #5
0
 public UjfMeetingAddChangeForm()
 {
     this.meeting = new UjfMeeting();
     this.InitializeComponent();
 }