Example #1
0
        //int rowIndex = 0;


        public TrxLogForm(MainForm frmMainIn, Client clsClientIn)
        {
            InitializeComponent();
            bNormalMode = false;
            frmMain     = frmMainIn;
            clsClient   = clsClientIn;
            pnlIncludeOptions.Visible = (CCFBPrefs.EnableFastTrack == true);
            InitFoodServiceClass();
            clsSvcDays.LoadDateList(0);
            lvColSorterLog       = new ListViewColumnSorter();
            lvColSorterLog.Order = SortOrder.None;

            lvColSorterAppt       = new ListViewColumnSorter();
            lvColSorterAppt.Order = SortOrder.None;
            PrefsChanged();
            if (clsSvcDays.RowCount > 0)
            {
                curSvcDisplayDate = DateTime.Parse(clsSvcDays.LastDate());
                //RefreshSvcPage();
            }

            if (CCFBPrefs.EnableAppointments == true)
            {
                clsAppointments = new TrxLog(CCFBGlobal.connectionString, false, false, true, true);
                clsAppointments.IncludeAppointments = true;
                clsApptDays = new DistinctLogDays(CCFBGlobal.connectionString);
                clsApptDays.LoadDateList(1);
                if (clsApptDays.RowCount > 0)
                {
                    curApptDisplayDate = DateTime.Parse(clsApptDays.LastDate());
                    //RefreshApptPage();
                }
                RefreshApptPage();
            }
            else
            {
                tabControl1.TabPages.RemoveByKey("tpgAppt");
            }

            refreshTimeStart = refreshTimeLeft = CCFBPrefs.ServiceLogRefreshRate;
            bNormalMode      = true;
        }
        public ServiceItemsForm()
        {
            InitializeComponent();

            clsSvcItems = new ServiceItems(CCFBGlobal.connectionString);
            grpFamilySizes.BackColor = CCFBGlobal.bkColorBaseEdit;
            pnlEditArea.BackColor    = CCFBGlobal.bkColorBaseEdit;

            lvColSorter       = new ListViewColumnSorter();
            lvColSorter.Order = SortOrder.None;

            CCFBGlobal.InitCombo(cboType, CCFBGlobal.parmTbl_SvcCategory);
            CCFBGlobal.InitCombo(cboRules, CCFBGlobal.parmTbl_SvcRules);

            CCFBGlobal.InitCombo(cboFilter, CCFBGlobal.parmTbl_SvcCategory);

            traverseAndAddControlsToCollections(this.Controls);
            loadingData             = false;
            cboFilter.SelectedValue = "0";
        }
Example #3
0
        //int rowIndex = 0;


        public TrxLogForm(MainForm frmMainIn, Client clsClientIn)
        {
            InitializeComponent();
            frmMain   = frmMainIn;
            clsClient = clsClientIn;
            clsHHServiceTrans.ServiceTrxOnly = true;
            clsSvcDays.LoadDateList(0);
            lvColSorterLog       = new ListViewColumnSorter();
            lvColSorterLog.Order = SortOrder.None;

            lvColSorterAppt       = new ListViewColumnSorter();
            lvColSorterAppt.Order = SortOrder.None;
            PrefsChanged();
            if (clsSvcDays.RowCount > 0)
            {
                curSvcDisplayDate = DateTime.Parse(clsSvcDays.LastDate());
                RefreshSvcPage();
            }
            if (CCFBPrefs.EnableAppointments == true)
            {
                clsAppointments = new TrxLog(CCFBGlobal.connectionString);
                clsAppointments.AppointmentsOnly = true;
                clsApptDays = new DistinctLogDays(CCFBGlobal.connectionString);
                clsApptDays.LoadDateList(1);
                if (clsApptDays.RowCount > 0)
                {
                    curApptDisplayDate = DateTime.Parse(clsApptDays.LastDate());
                    RefreshApptPage();
                }
            }
            else
            {
                tabControl1.TabPages.RemoveByKey("tpgAppt");
            }

            refreshTimeStart = refreshTimeLeft = CCFBPrefs.ServiceLogRefreshRate;
            //tbTotBabyDL.Visible = false;
        }
        public ServiceItemsForm()
        {
            InitializeComponent();

            clsSvcItems = new ServiceItems(CCFBGlobal.connectionString);
            grpFamilySizes.BackColor = CCFBGlobal.bkColorBaseEdit;
            pnlEditArea.BackColor    = CCFBGlobal.bkColorBaseEdit;

            lvColSorter       = new ListViewColumnSorter();
            lvColSorter.Order = SortOrder.None;

            CCFBGlobal.InitCombo(cboType, CCFBGlobal.parmTbl_SvcCategory);
            CCFBGlobal.InitCombo(cboRules, CCFBGlobal.parmTbl_SvcRules);
            if (CCFBPrefs.EnableServiceGroups == true)
            {
                CCFBGlobal.InitCombo(cboSvcGrp, CCFBGlobal.parmTbl_ServiceGroup);
                cboSvcGrp.Visible = true;
                lblSvcGrp.Visible = true;
            }
            else
            {
                cboSvcGrp.Visible = false;
                lblSvcGrp.Visible = false;
            }

            CCFBGlobal.InitCombo(cboFilter, CCFBGlobal.parmTbl_SvcCategory);

            traverseAndAddControlsToCollections(this.Controls);
            loadingData             = false;
            cboFilter.SelectedValue = "0";

            chkArray[0] = chkFirstSvc;
            chkArray[1] = chkSecondSvc;
            chkArray[2] = chkThirdSvc;
            chkArray[3] = chkFourthSvc;
            chkArray[4] = chkFivePlusSvc;
        }