private void InitializeConstructor()
        {
            ComboFunctions.FillCompanyCombo(ddlCompany);
            ComboFunctions.FillBookingTypeCombo(ddlBookingType);
            ddlBookingType.SelectedValue = Enums.BOOKING_TYPES.LOCAL;

            dtpInvoiceDate.Value = DateTime.Now.ToDate();
            dtpDueDate.Value     = DateTime.Now.ToDate().AddMonths(1);
            FormatChargesGrid();

            grdLister.ShowGroupPanel      = false;
            grdLister.AutoCellFormatting  = true;
            grdLister.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
            grdLister.ShowRowHeaderColumn = false;

            objMaster = new InvoiceBO();
            this.SetProperties((INavigation)objMaster);

            grdLister.AllowAddNewRow = false;


            dtpFromDate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            dtpTillDate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.LastDayOfMonthValue());



            grdLister.CommandCellClick += new CommandCellClickEventHandler(grdLister_CommandCellClick);
        }
예제 #2
0
        private void InitializeConstructor()
        {
            var obj = General.GetObject <Gen_SysPolicy_DocumentNumberSetup>(c => c.DocumentId == Enums.GEN_DOCUMENTS.INVOICENO && (c.AutoIncrement == null || c.AutoIncrement == false));

            if (obj != null)
            {
                txtInvoiceNo.ReadOnly = false;
                txtInvoiceNo.Enabled  = true;
                this.AutoInc          = false;
            }


            ComboFunctions.FillCompanyCombo(ddlCompany);
            ComboFunctions.FillBookingTypeCombo(ddlBookingType);
            ddlBookingType.SelectedValue = Enums.BOOKING_TYPES.LOCAL;

            dtpInvoiceDate.Value = DateTime.Now.ToDate();
            dtpDueDate.Value     = DateTime.Now.ToDate().AddMonths(1);
            FormatChargesGrid();

            grdLister.ShowGroupPanel = false;
            // grdLister.AutoCellFormatting = true;
            grdLister.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
            grdLister.ShowRowHeaderColumn = false;

            objMaster = new InvoiceBO();
            this.SetProperties((INavigation)objMaster);

            grdLister.AllowAddNewRow = false;


            dtpFromDate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            dtpTillDate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.LastDayOfMonthValue());



            grdLister.CommandCellClick   += new CommandCellClickEventHandler(grdLister_CommandCellClick);
            grdLister.ContextMenuOpening += new ContextMenuOpeningEventHandler(grdLister_ContextMenuOpening);
        }
 public void load()
 {
     ComboFunctions.FillBookingTypeCombo(comboBox1);
 }