public frmMonthEndClosed(Model.MonthlySubs d)
 {
     InitializeComponent();
     data                       = d;
     dtMonthEnd                 = d.SelecctedDate;
     dtMonthEndPrevious         = d.SelecctedDate.AddMonths(-1);
     dtMonthEndNext             = d.SelecctedDate.AddMonths(1);
     dgvBank.ItemsSource        = lstMonthEndClosed;
     db.Database.CommandTimeout = 180;
 }
Beispiel #2
0
 private void CdrMonthlySubscription_DisplayModeChanged(object sender, CalendarModeChangedEventArgs e)
 {
     if (cdrMonthlySubscription.DisplayMode == CalendarMode.Month)
     {
         data             = new Model.MonthlySubs(cdrMonthlySubscription.DisplayDate);
         this.DataContext = data;
         cdrMonthlySubscription.SelectedDate = data.SelecctedDate;
         cdrMonthlySubscription.DisplayMode  = CalendarMode.Year;
         LoadMonthlySubsciption(data.SelecctedDate);
     }
 }
Beispiel #3
0
        public frmMonthlySubscription()
        {
            InitializeComponent();

            data             = new Model.MonthlySubs();
            this.DataContext = data;

            cbxBank.ItemsSource       = db.MASTERBANKs.OrderBy(x => x.BANK_NAME).ToList();
            cbxBank.DisplayMemberPath = "BANK_NAME";
            cbxBank.SelectedValuePath = "BANK_CODE";

            cbxFileType.ItemsSource       = db.MonthlySubscriptonFileTypes.ToList();
            cbxFileType.SelectedValuePath = "Id";
            cbxFileType.DisplayMemberPath = "FileType";
        }