public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/RadControlsSilverlightClient;component/rptEPMonthlyAccountActivity.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.dataServiceDataSource = ((Telerik.Windows.Controls.RadDataServiceDataSource)(this.FindName("dataServiceDataSource")));
     this.calReportDate = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("calReportDate")));
     this.exportButton = ((Telerik.Windows.Controls.RadButton)(this.FindName("exportButton")));
     this.busyIndicator = ((Telerik.Windows.Controls.RadBusyIndicator)(this.FindName("busyIndicator")));
     this.RadGridView1 = ((Telerik.Windows.Controls.RadGridView)(this.FindName("RadGridView1")));
 }
Example #2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Chart;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.dtmStart = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("dtmStart")));
     this.dtmEnd = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("dtmEnd")));
     this.chkFlowRate = ((System.Windows.Controls.CheckBox)(this.FindName("chkFlowRate")));
     this.chkPressure = ((System.Windows.Controls.CheckBox)(this.FindName("chkPressure")));
     this.btnView = ((Telerik.Windows.Controls.RadButton)(this.FindName("btnView")));
     this.btnExport = ((Telerik.Windows.Controls.RadButton)(this.FindName("btnExport")));
     this.lblChartName = ((System.Windows.Controls.Label)(this.FindName("lblChartName")));
     this.printer = ((System.Windows.Controls.Image)(this.FindName("printer")));
     this.chart = ((Visiblox.Charts.Chart)(this.FindName("chart")));
     this.behaviourManager = ((Visiblox.Charts.BehaviourManager)(this.FindName("behaviourManager")));
     this.track = ((Visiblox.Charts.TrackballBehaviour)(this.FindName("track")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Medical.Apartment.Silverlight.UI;component/Customer/TreatmentAdminPage.xaml", System.UriKind.Relative));
     this.scrollViewerCustomers = ((System.Windows.Controls.ScrollViewer)(this.FindName("scrollViewerCustomers")));
     this.uiTitle = ((System.Windows.Controls.TextBlock)(this.FindName("uiTitle")));
     this.uiParamsDisplay = ((System.Windows.Controls.TextBlock)(this.FindName("uiParamsDisplay")));
     this.gridTreatment = ((System.Windows.Controls.Grid)(this.FindName("gridTreatment")));
     this.panelHasContract = ((System.Windows.Controls.StackPanel)(this.FindName("panelHasContract")));
     this.lblSite = ((System.Windows.Controls.TextBlock)(this.FindName("lblSite")));
     this.ucSitePicker = ((Medical.Apartment.Silverlight.UI.SitePicker)(this.FindName("ucSitePicker")));
     this.lblFromDate = ((System.Windows.Controls.TextBlock)(this.FindName("lblFromDate")));
     this.uiDateFrom = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("uiDateFrom")));
     this.lblToDate = ((System.Windows.Controls.TextBlock)(this.FindName("lblToDate")));
     this.uiDateTo = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("uiDateTo")));
     this.btnSearch = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.ucTreatmentAdmin = ((Medical.Apartment.Silverlight.UI.TreatmentAdmin)(this.FindName("ucTreatmentAdmin")));
 }
        public void FormControlService_ServiceDateChanged(Object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
        {
            Telerik.Windows.Controls.RadDatePicker serviceDatePicker = (Telerik.Windows.Controls.RadDatePicker)sender;

            Boolean dateChanged = false;

            if ((serviceDatePicker.Tag is Client.Core.Forms.Controls.Service) && (serviceDatePicker.Tag != null))
            {
                Client.Core.Forms.Controls.Service serviceControl = (Client.Core.Forms.Controls.Service)serviceDatePicker.Tag;

                if ((serviceControl.ServiceDate.HasValue) && (serviceDatePicker.SelectedDate.HasValue))
                {
                    dateChanged = (serviceControl.ServiceDate.Value != serviceDatePicker.SelectedDate.Value);
                }

                else
                {
                    dateChanged = true;
                }


                if (dateChanged)
                {
                    serviceControl.ServiceDate = serviceDatePicker.SelectedDate;

                    if (serviceControl.HasEventHandler("ServiceDateChanged"))
                    {
                        FormServerProcessing_ControlPanelDisable(serviceControl, Mercury.Client.Core.Forms.ServerProcessRequestType.RaiseEvent);

                        form.RaiseEvent(serviceControl, "ServiceDateChanged", FormServerProcessCompleted);
                    }
                }
            }

            return;
        }
 //Date Creator
 public string DateFromRadDatePicker(Telerik.Windows.Controls.RadDatePicker radDatePicker)
 {
     return(new NecessaryFunction().MysqlDateFormate(radDatePicker.SelectedDate.ToString()));
 }
 //Three month Back Time
 public string ThreeMonthBack(Telerik.Windows.Controls.RadDatePicker radDatePicker)
 {
     return(new NecessaryFunction().MysqlDateFormate(((DateTime)radDatePicker.SelectedDate).AddDays(-3).ToString()));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Medical.Apartment.Silverlight.UI;component/Customer/CustomerAdminPage.xaml", System.UriKind.Relative));
     this.scrollViewerCustomers = ((System.Windows.Controls.ScrollViewer)(this.FindName("scrollViewerCustomers")));
     this.uiTitle = ((System.Windows.Controls.TextBlock)(this.FindName("uiTitle")));
     this.uiParamsDisplay = ((System.Windows.Controls.TextBlock)(this.FindName("uiParamsDisplay")));
     this.gridCustomer = ((System.Windows.Controls.Grid)(this.FindName("gridCustomer")));
     this.lblFirstName = ((System.Windows.Controls.TextBlock)(this.FindName("lblFirstName")));
     this.txtFirstName = ((System.Windows.Controls.TextBox)(this.FindName("txtFirstName")));
     this.lblLastName = ((System.Windows.Controls.TextBlock)(this.FindName("lblLastName")));
     this.txtLastName = ((System.Windows.Controls.TextBox)(this.FindName("txtLastName")));
     this.chkHasContract = ((System.Windows.Controls.CheckBox)(this.FindName("chkHasContract")));
     this.panelHasContract = ((System.Windows.Controls.StackPanel)(this.FindName("panelHasContract")));
     this.ucSitePicker = ((Medical.Apartment.Silverlight.UI.SitePicker)(this.FindName("ucSitePicker")));
     this.lblFromDate = ((System.Windows.Controls.TextBlock)(this.FindName("lblFromDate")));
     this.uiDateFrom = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("uiDateFrom")));
     this.lblToDate = ((System.Windows.Controls.TextBlock)(this.FindName("lblToDate")));
     this.uiDateTo = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("uiDateTo")));
     this.chkShowInactive = ((System.Windows.Controls.CheckBox)(this.FindName("chkShowInactive")));
     this.btnSearch = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.gvwCustomers = ((Telerik.Windows.Controls.RadGridView)(this.FindName("gvwCustomers")));
     this.ucCntactInfoPanel = ((Medical.Apartment.Silverlight.UI.ContactInformationPanel)(this.FindName("ucCntactInfoPanel")));
     this.btnSaveCustomer = ((Medical.Apartment.Silverlight.UI.SingleClickButton)(this.FindName("btnSaveCustomer")));
     this.btnCancelCustomer = ((System.Windows.Controls.Button)(this.FindName("btnCancelCustomer")));
     this.gridDetails = ((System.Windows.Controls.Grid)(this.FindName("gridDetails")));
     this.ucTreatmentAdmin = ((Medical.Apartment.Silverlight.UI.TreatmentAdmin)(this.FindName("ucTreatmentAdmin")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Medical.Apartment.Silverlight.UI;component/Administration/MedicineInputAdminPage" +
                 ".xaml", System.UriKind.Relative));
     this.LayoutRootOrgAdmin = ((System.Windows.Controls.Grid)(this.FindName("LayoutRootOrgAdmin")));
     this.uiTitle = ((System.Windows.Controls.TextBlock)(this.FindName("uiTitle")));
     this.uiParamsDisplay = ((System.Windows.Controls.TextBlock)(this.FindName("uiParamsDisplay")));
     this.scrollViewerMedicine = ((System.Windows.Controls.ScrollViewer)(this.FindName("scrollViewerMedicine")));
     this.lblSite = ((System.Windows.Controls.TextBlock)(this.FindName("lblSite")));
     this.ucSitePicker = ((Medical.Apartment.Silverlight.UI.SitePicker)(this.FindName("ucSitePicker")));
     this.lblFromDate = ((System.Windows.Controls.TextBlock)(this.FindName("lblFromDate")));
     this.uiDateFrom = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("uiDateFrom")));
     this.lblToDate = ((System.Windows.Controls.TextBlock)(this.FindName("lblToDate")));
     this.uiDateTo = ((Telerik.Windows.Controls.RadDatePicker)(this.FindName("uiDateTo")));
     this.btnSearch = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
     this.gvwMedicines = ((Telerik.Windows.Controls.RadGridView)(this.FindName("gvwMedicines")));
     this.gridMedicineIput = ((System.Windows.Controls.Grid)(this.FindName("gridMedicineIput")));
     this.gvwMedicineInput = ((Telerik.Windows.Controls.RadGridView)(this.FindName("gvwMedicineInput")));
     this.btnSaveMedicineInput = ((Medical.Apartment.Silverlight.UI.SingleClickButton)(this.FindName("btnSaveMedicineInput")));
     this.btnCancelMedicineInput = ((System.Windows.Controls.Button)(this.FindName("btnCancelMedicineInput")));
 }