Esempio n. 1
0
 public BusStationForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
     //BusStationBindingSource.DataSource = context.BusStation;
 }
Esempio n. 2
0
 public CxlFeeForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
     SetReadOnly(true);
 }
Esempio n. 3
0
 public BusTableForm(FlexInterfaces.Core.ICoreSys sys)
 {
     //might need to set some fields as read only depending on test results
     InitializeComponent();
     Connect(sys);
     LoadLookups();
 }
Esempio n. 4
0
 public cpratesCopyForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
     username = sys.User.Name;
 }
Esempio n. 5
0
 private void Connect(FlexInterfaces.Core.ICoreSys sys)
 {
     Connection.EFConnectionString = sys.Settings.EFConnectionString;
     context = new FlextourEntities(sys.Settings.EFConnectionString);
     sys.Connect("");
     imagesRoot = sys.Settings.ImagesRoot;
     sys.Disconnect();
 }
Esempio n. 6
0
 private void Connect(FlexInterfaces.Core.ICoreSys sys)
 {
     Connection.EFConnectionString = sys.Settings.EFConnectionString;
     _context = new FlextourEntities(sys.Settings.EFConnectionString);
     _context.CommandTimeout = 600;
     _context.ContextOptions.UseCSharpNullComparisonBehavior = true;
     importMappingBindingSource.DataSource = _context.ImportMapping.OrderBy(i => i.Code).ThenBy(i => i.WeekdaySurcharge);
 }
Esempio n. 7
0
 public WaypointForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
     SetReadOnly(true);
     SetMapProperties();         //Mapping
 }
Esempio n. 8
0
 public ReportTypeForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     //LoadLookups();
     setReadOnly(true);
     dataPath = sys.Settings.DataPath;
 }
Esempio n. 9
0
        public AirSegForm(FlexInterfaces.Core.ICoreSys sys)
        {
            InitializeComponent();

            Connect(sys);
            LoadLookups();
            lockGrid(true);
        }
Esempio n. 10
0
        private void Connect(FlexInterfaces.Core.ICoreSys sys)
        {
            Connection.EFConnectionString = sys.Settings.EFConnectionString;
            context        = new FlextourEntities(sys.Settings.EFConnectionString);
            username       = sys.User.Name;
            _accountingURL = sys.Settings.TourAccountingURL;

            ////////////////
        }
Esempio n. 11
0
 public CompanyForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     CompanyBindingSource.DataSource  = context.COMPANY;
     cODETextEdit.Properties.ReadOnly = true;
     GridViewCompany.Columns.ColumnByName(colName).OptionsColumn.AllowEdit = false;
     enableNavigator(false);
 }
Esempio n. 12
0
        public DeptForm(FlexInterfaces.Core.ICoreSys sys)
        {
            InitializeComponent();
            Connect(sys);
            LoadLookups();

            //  DeptBindingSource.DataSource = context.Dept;
            DeptBindingSource.DataSource = from opt in context.Dept where opt.Code == "KJM9" select opt;
        }
Esempio n. 13
0
        public AirForm(FlexInterfaces.Core.ICoreSys sys)
        {
            InitializeComponent();
            Connect(sys);
            //AirBindingSource.DataSource = context.AIR;
            setReadOnly(true);

            enableNavigator(false);
        }
Esempio n. 14
0
 public HtlChainForm(FlexInterfaces.Core.ICoreSys sys)
 {
     try {
         InitializeComponent();
         Connect(sys);
         SetReadOnly(true);
     }
     catch (Exception ex) {
         DisplayHelper.DisplayError(this, ex);
     }
 }
Esempio n. 15
0
 public RelatedProductsForm(FlexInterfaces.Core.ICoreSys sys)
 {
     try {
         InitializeComponent();
         Connect(sys);
         LoadLookups();
         SetReadOnly(true);
     }
     catch (Exception ex) {
         DisplayHelper.DisplayError(this, ex);
     }
 }
Esempio n. 16
0
 public AmenAssignForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connection.EFConnectionString = sys.Settings.EFConnectionString;
     context = new FlextourEntities(sys.Settings.EFConnectionString);
     //treeList2.ParentFieldName = "PARENT_CODE";
     //treeList2.KeyFieldName = "CODE";
     //treeList1.KeyFieldName = "CODE";
     //treeList1.ParentFieldName = "PARENT_CODE";
     LoadLookups();
     modifiedRecs = new System.Collections.Generic.List <string>();
 }
Esempio n. 17
0
        public CruItForm(FlexInterfaces.Core.ICoreSys sys)
        {
            InitializeComponent();
            Connect(sys);
            LoadLookups();
            CruItBindingSource.DataSource = context.CRUIT;

            //gsLoad.gridSearchLoad(codeSearch, "CODE", "NAME", "Code", "Name", "CODE", "CODE", "CODE", CruItBindingSource, "CODE");
            //codeSearch.GridControl.DataSource = from c in context.CRU select new { c.CODE, c.NAME };
            //codeSearch.ButtonEdit.Properties.ReadOnly = true;
            //GridViewCruIt.Columns.ColumnByName(col).OptionsColumn.AllowEdit = false;
        }
Esempio n. 18
0
 public CityCodeForm(FlexInterfaces.Core.ICoreSys sys)
 {
     try {
         InitializeComponent();
         Connect(sys);
         LoadLookups();
         SetReadOnly(true);
         SetMapProperties();         //Mapping
     }
     catch (Exception ex) {
         DisplayHelper.DisplayError(this, ex);
     }
 }
Esempio n. 19
0
        public MGMRatesImportForm(FlexInterfaces.Core.ICoreSys sys)
        {
            InitializeComponent();
            Connect(sys);
            LoadLookups();

            _sys                                 = sys;
            _bgWorker.DoWork                    += _bgWorker_DoWork;
            _bgWorker.RunWorkerCompleted        += _bgWorker_RunWorkerCompleted;
            _bgWorker.ProgressChanged           += _bgWorker_ProgressChanged;
            _bgWorker.WorkerSupportsCancellation = true;
            _bgWorker.WorkerReportsProgress      = true;
            openFileDialog.InitialDirectory      = sys.Settings.DataPath;
        }
Esempio n. 20
0
 public InvtMaint(bool val, FlexInterfaces.Core.ICoreSys sys)
 {
     try {
         InitializeComponent();
         Connect(sys);
         LoadLookups();
         _sys = sys;
         SetReadOnly(true);
         SetReadOnlyKeyFields(true);
     }
     catch (Exception ex) {
         DisplayHelper.DisplayError(this, ex);
     }
 }
Esempio n. 21
0
 public PRatesForm(FlexInterfaces.Core.ICoreSys sys)
 {
     try {
         InitializeComponent();
         _sys = sys;
         Connect(sys);
         LoadLookups();
         SetReadOnly(true);
         GridViewLookup.FocusedRowHandle = DevExpress.Data.BaseListSourceDataController.FilterRow;
     }
     catch (Exception ex) {
         DisplayHelper.DisplayError(this, ex);
     }
 }
Esempio n. 22
0
        public packItinMaint(FlexInterfaces.Core.ICoreSys sys)
        {
            InitializeComponent();
            Connect(sys);
            LoadLookups();


            //packages
            //gsLoad.gridSearchLoad(codeSearch, "CODE", "NAME", "Code", "Name", "CODE", "CODE", "NAME", PitinBindingSource, "CODE");
            //codeSearch.ButtonEdit.Properties.ReadOnly = true;
            //catSearch.ButtonEdit.Properties.ReadOnly = true;



            // //categories


            //this.catSearch.GridControl.DataSource = from c in context.ROOMCOD select new { c.CODE, c.DESC };
            //codeSearch.GridControl.DataSource = from c in context.PACK select new { c.CODE, c.NAME };
            //status_stringComboBoxEdit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
        }
Esempio n. 23
0
 public cruRateCopyForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
 }
Esempio n. 24
0
        public void Show(FlexInterfaces.Core.ICoreSys sys)
        {
            HRatesForm xform1 = new HRatesForm(sys);

            xform1.ShowDialog();
        }
Esempio n. 25
0
        public void Show(FlexInterfaces.Core.ICoreSys sys)
        {
            HotelGenInfo xform1 = new HotelGenInfo(sys);

            xform1.ShowDialog();
        }
Esempio n. 26
0
 public OperatorForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
 }
Esempio n. 27
0
 private void Connect(FlexInterfaces.Core.ICoreSys sys)
 {
     Connection.EFConnectionString = sys.Settings.EFConnectionString;
     context    = new FlextourEntities(sys.Settings.EFConnectionString);
     defaultAgy = sys.Settings.DefaultAgency;
 }
Esempio n. 28
0
 public ExtranetSecurityForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
 }
Esempio n. 29
0
 private void Connect(FlexInterfaces.Core.ICoreSys sys)
 {
     Connection.EFConnectionString = sys.Settings.EFConnectionString;
     _context = new FlextourEntities(sys.Settings.EFConnectionString);
 }
Esempio n. 30
0
 public SpecialValueForm(FlexInterfaces.Core.ICoreSys sys)
 {
     InitializeComponent();
     Connect(sys);
     LoadLookups();
 }