示例#1
0
 private void btnRefreshDateListAppt_Click(object sender, EventArgs e)
 {
     try
     {
         clsApptDays.LoadDateList(1);
         clsApptDays.FindDate(Convert.ToDateTime(tbDateAL.Text));
     }
     catch (Exception ex) { }
 }
示例#2
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;
        }
示例#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;
        }