Пример #1
0
 public DailyItemsClass()
 {
     clsServiceItems = new ServiceItems(CCFBGlobal.connectionString);
     clsServiceItems.openWhere("");
     svcItemsFood        = new List <ServiceItem>();
     svcItemsNonFood     = new List <ServiceItem>();
     svcItemsBabyService = new List <ServiceItem>();
 }
Пример #2
0
        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";
        }
Пример #3
0
        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;
        }
Пример #4
0
        public YearlyForm()
        {
            InitializeComponent();
            foreach (ComboBox cb in tabPage2.Controls.OfType <ComboBox>())
            {
                cbList.Add(cb);
            }
            ServiceItems clsServiceItems = new ServiceItems(CCFBGlobal.connectionString);

            clsServiceItems.openWhere("ItemRule = " + CCFBGlobal.itemRule_SpecialService.ToString());
            lvwSpclFood.Items.Clear();
            ListViewItem lvwItm;

            for (int i = 0; i < clsServiceItems.DSet.Tables[0].Rows.Count; i++)
            {
                lvwItm      = new ListViewItem();
                lvwItm.Text = clsServiceItems.DSet.Tables[0].Rows[i]["ItemDesc"].ToString();
                lvwItm.SubItems.Add(clsServiceItems.DSet.Tables[0].Rows[i]["ItemKey"].ToString());
                lvwSpclFood.Items.Add(lvwItm);
            }
            CurrentFiscalStart = CCFBGlobal.CurrentFiscalStartDate();
            CurrentFiscalEnd   = CCFBGlobal.CurrentFiscalEndDate();
            SetCalendarRange(CurrentFiscalStart, CurrentFiscalEnd);
        }