public DonationInformation() { //dtpDate.MinDate = DateTime.Now; this.MaximizeBox = false; InitializeComponent(); dtpEnglishDateType.Format = DateTimePickerFormat.Custom; dtpEnglishDateType.CustomFormat = "dd/MM"; donorRepo = new DonorRepository(); datetypeRepo = new DateTypeRepository(); desigRepo = new DesignationRepository(); employeeRepo = new EmployeeRepository(); prefixRepo = new PrefixesRepository(); roleRepo = new RoleRepository(); serviceNameRepo = new ServiceNameRepository(); serviceTypeRepo = new ServiceTypeRepository(); specialDayRepo = new SpecialDayRepository(); starRepo = new StarsRepository(); monthsRepo = new MonthsRepository(); pakshaRepo = new PakshaRepository(); thithiRepo = new ThidhiRepository(); monthlyAnnaRepo = new MonthlyAnnaRepository(); gothramRepo = new GothramsRepository(); transTypeRepo = new TransactionTypeRepository(); lstTokenPrint = new List<TokenPrint>(); stateRepo = new StateRepository(); lstStates = new List<State>(); prefixesRepo = new PrefixesRepository(); bindData(); btnUpdate.Visible = false; btnCancel.Visible = false; lblSpecialDay.Visible = false; cmbSpecialDay.Visible = false; lblMonth.Visible = false; cmbMonth.Visible = false; lblThithi.Visible = false; cmbThithi.Visible = false; lblMonthlyAnna.Visible = false; cmbMonthlyAnna.Visible = false; lblEnglishDatetype.Visible = false; dtpEnglishDateType.Visible = false; rbdEnglish.Checked = false; rbdTelugu.Checked = false; lblMonthyAnnaThithi.Visible = false; cmbMonthyAnnaThithi.Visible = false; }
public DonorMasterReportUI() { InitializeComponent(); oServiceTypeRep = new ServiceTypeRepository(); oServiceNameRep = new ServiceNameRepository(); oDateTypeRepository = new DateTypeRepository(); oDonorRepository = new DonorRepository(); oSpecialDayRepository = new SpecialDayRepository(); oMonthsRepository = new MonthsRepository(); oThidhiRepository = new ThidhiRepository(); oTeluguCalendarRepository = new TeluguCalendarRepository(); // oPakshaRepository = new PakshaRepository(); lstServiceType = oServiceTypeRep.GetAllAsQuerable().ToList(); lstMonths = oMonthsRepository.GetAllAsQuerable().ToList(); lstThidhi = oThidhiRepository.GetAllAsQuerable().ToList(); lstDateType = oDateTypeRepository.GetAllAsQuerable().ToList(); lstDateType.RemoveAt(0); lstSpecialDay = oSpecialDayRepository.GetAllAsQuerable().ToList(); // lstPaksha = oPakshaRepository.GetAllAsQuerable().ToList(); }