Beispiel #1
0
        public DateTimePicker() : base()
        {
            StackPanel pnl = new StackPanel();
            InnerDatePicker  = new SmtDatePicker();
            InnerTimePicker  = new TimePicker();
            //InnerTimePicker.Width = 50;
            //StackPanel spSpliter = new StackPanel();
            //spSpliter.Width = 5;
            pnl.Orientation = Orientation.Horizontal;

            InnerDatePicker.Style = Application.Current.Resources["DatePickerStyle"] as Style;
            InnerDatePicker.Margin = new Thickness(0, 0, 5, 0);
            InnerTimePicker.Style = Application.Current.Resources["TimePickerStyle"] as Style;
            //InnerDatePicker.MaxWidth = 300;
            InnerDatePicker.MinWidth = 110;
            //InnerTimePicker.MinWidth = 270;
            //InnerTimePicker.MaxWidth = 110;
            //InnerTimePicker.FlowDirection = System.Windows.FlowDirection.RightToLeft;
            //InnerTimePicker.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right;
            
            //InnerTimePicker.HorizontalAlignment = System.Windows.HorizontalAlignment.Right;
            //InnerTimePicker.UseLayoutRounding = true;
            
            pnl.Children.Add(InnerDatePicker);
            //pnl.Children.Add(spSpliter);
            pnl.Children.Add(InnerTimePicker);
            TimePcikerSetting(false);
            this.Content = pnl;

            EndUpdate();
        }      
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightDemo;component/ZDIMSDemo/Controls/GPSSample.xaml", System.UriKind.Relative));
     this.dialog                  = ((EasySL.Controls.DialogPanel)(this.FindName("dialog")));
     this.LayoutRoot              = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.border1                 = ((System.Windows.Controls.Border)(this.FindName("border1")));
     this.label1                  = ((System.Windows.Controls.Label)(this.FindName("label1")));
     this.comboBox_device         = ((System.Windows.Controls.ComboBox)(this.FindName("comboBox_device")));
     this.checkBox1               = ((System.Windows.Controls.CheckBox)(this.FindName("checkBox1")));
     this.checkBox2               = ((System.Windows.Controls.CheckBox)(this.FindName("checkBox2")));
     this.checkBox3               = ((System.Windows.Controls.CheckBox)(this.FindName("checkBox3")));
     this.label2                  = ((System.Windows.Controls.Label)(this.FindName("label2")));
     this.slider1                 = ((System.Windows.Controls.Slider)(this.FindName("slider1")));
     this.interval                = ((System.Windows.Controls.Label)(this.FindName("interval")));
     this.border2                 = ((System.Windows.Controls.Border)(this.FindName("border2")));
     this.label3                  = ((System.Windows.Controls.Label)(this.FindName("label3")));
     this.datePicker1             = ((System.Windows.Controls.DatePicker)(this.FindName("datePicker1")));
     this.timePicker1             = ((System.Windows.Controls.TimePicker)(this.FindName("timePicker1")));
     this.label4                  = ((System.Windows.Controls.Label)(this.FindName("label4")));
     this.label5                  = ((System.Windows.Controls.Label)(this.FindName("label5")));
     this.datePicker2             = ((System.Windows.Controls.DatePicker)(this.FindName("datePicker2")));
     this.timePicker2             = ((System.Windows.Controls.TimePicker)(this.FindName("timePicker2")));
     this.label6                  = ((System.Windows.Controls.Label)(this.FindName("label6")));
     this.button_showHistoryPath  = ((System.Windows.Controls.Button)(this.FindName("button_showHistoryPath")));
     this.button_clearHistoryPath = ((System.Windows.Controls.Button)(this.FindName("button_clearHistoryPath")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
                 "nent/Program/ObjectTools/DateTimePicker.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.DatePicker = ((System.Windows.Controls.DatePicker)(this.FindName("DatePicker")));
     this.TimePicker = ((System.Windows.Controls.TimePicker)(this.FindName("TimePicker")));
 }
Beispiel #4
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
                                                                   "nent/Program/ObjectTools/DateTimePicker.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.DatePicker = ((System.Windows.Controls.DatePicker)(this.FindName("DatePicker")));
     this.TimePicker = ((System.Windows.Controls.TimePicker)(this.FindName("TimePicker")));
 }
Beispiel #5
0
        public DateTimePicker() : base()
        {
            StackPanel pnl = new StackPanel();
            InnerDatePicker  = new DatePicker();
            InnerTimePicker  = new TimePicker();
            InnerTimePicker.Width = 50;
            StackPanel spSpliter = new StackPanel();
            spSpliter.Width = 5;
            pnl.Orientation = Orientation.Horizontal;

            pnl.Children.Add(InnerDatePicker);
            pnl.Children.Add(spSpliter);
            pnl.Children.Add(InnerTimePicker);

            this.Content = pnl;
            SetBinding();
        }
        public override void OnApplyTemplate()
        {
            if (datePicker != null)
                datePicker.SelectedDateChanged -= datePicker_SelectedDateChanged;
            if (timePicker != null)
                timePicker.ValueChanged -= timePicker_ValueChanged;

            base.OnApplyTemplate();

            datePicker = GetTemplateChild(PART_DatePicker) as DatePicker;
            timePicker = GetTemplateChild(PART_TimePicker) as TimePicker;

            if (datePicker != null)
            {
                datePicker.SelectedDate = Value;
                datePicker.SelectedDateChanged += datePicker_SelectedDateChanged;
            }
            if (timePicker != null)
            {
                timePicker.Value = Value;
                timePicker.ValueChanged += timePicker_ValueChanged;
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TimePickerAutomationPeer"/> class.
 /// </summary>
 /// <param name="owner">The TimePicker that is associated to this
 /// AutomationPeer.</param>
 public TimePickerAutomationPeer(TimePicker owner) : base(owner)
 {
 }
Beispiel #8
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Bcheck.TaskUI;component/TaskEditDialog.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtComments = ((System.Windows.Controls.TextBox)(this.FindName("txtComments")));
     this.lblComments = ((System.Windows.Controls.TextBlock)(this.FindName("lblComments")));
     this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton")));
     this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton")));
     this.lblDescription = ((System.Windows.Controls.TextBlock)(this.FindName("lblDescription")));
     this.txtDescription = ((C1.Silverlight.RichTextBox.C1RichTextBox)(this.FindName("txtDescription")));
     this.lblAssignedTo = ((System.Windows.Controls.TextBlock)(this.FindName("lblAssignedTo")));
     this.txtAssignedTo = ((BCheck.TaskUI.UC.UsersList)(this.FindName("txtAssignedTo")));
     this.lblStatus = ((System.Windows.Controls.TextBlock)(this.FindName("lblStatus")));
     this.cboStatus = ((System.Windows.Controls.ComboBox)(this.FindName("cboStatus")));
     this.lblKRIDefinition = ((System.Windows.Controls.TextBlock)(this.FindName("lblKRIDefinition")));
     this.txtKRIDefinition = ((System.Windows.Controls.TextBox)(this.FindName("txtKRIDefinition")));
     this.txtTaskName = ((System.Windows.Controls.TextBox)(this.FindName("txtTaskName")));
     this.lblMgmtSignoff = ((System.Windows.Controls.TextBlock)(this.FindName("lblMgmtSignoff")));
     this.cboMgmtSingoff = ((System.Windows.Controls.ComboBox)(this.FindName("cboMgmtSingoff")));
     this.lblKRI1 = ((System.Windows.Controls.TextBlock)(this.FindName("lblKRI1")));
     this.txtKRI = ((System.Windows.Controls.TextBox)(this.FindName("txtKRI")));
     this.txtLinkToProcess = ((System.Windows.Controls.TextBlock)(this.FindName("txtLinkToProcess")));
     this.lblDueTime = ((System.Windows.Controls.TextBlock)(this.FindName("lblDueTime")));
     this.txtDueTime = ((System.Windows.Controls.TimePicker)(this.FindName("txtDueTime")));
     this.lblAlertTime = ((System.Windows.Controls.TextBlock)(this.FindName("lblAlertTime")));
     this.txtAlertTime = ((System.Windows.Controls.TimePicker)(this.FindName("txtAlertTime")));
     this.lblEscalationTime = ((System.Windows.Controls.TextBlock)(this.FindName("lblEscalationTime")));
     this.txtEscalationTime = ((System.Windows.Controls.TimePicker)(this.FindName("txtEscalationTime")));
     this.btnBrowseForAssignedUsers = ((System.Windows.Controls.Button)(this.FindName("btnBrowseForAssignedUsers")));
     this.warningIcon = ((System.Windows.Controls.Image)(this.FindName("warningIcon")));
     this.lblInformRestrictions = ((System.Windows.Controls.TextBlock)(this.FindName("lblInformRestrictions")));
     this.txtManagers = ((BCheck.TaskUI.UC.UsersList)(this.FindName("txtManagers")));
     this.btnBrowseForManager = ((System.Windows.Controls.Button)(this.FindName("btnBrowseForManager")));
     this.lblManager = ((System.Windows.Controls.TextBlock)(this.FindName("lblManager")));
     this.lblTaskOwner = ((System.Windows.Controls.TextBlock)(this.FindName("lblTaskOwner")));
     this.txtTaskOwner = ((System.Windows.Controls.TextBox)(this.FindName("txtTaskOwner")));
     this.btnDeleteOwner = ((System.Windows.Controls.Button)(this.FindName("btnDeleteOwner")));
     this.btnDeleteLateReason = ((System.Windows.Controls.Button)(this.FindName("btnDeleteLateReason")));
     this.lblTimeToComplete = ((System.Windows.Controls.TextBlock)(this.FindName("lblTimeToComplete")));
     this.txtTimeToComplete = ((System.Windows.Controls.TimePicker)(this.FindName("txtTimeToComplete")));
     this.txtLinkToProcess2 = ((C1.Silverlight.RichTextBox.C1RichTextBox)(this.FindName("txtLinkToProcess2")));
     this.lblsystemoutrage = ((System.Windows.Controls.TextBlock)(this.FindName("lblsystemoutrage")));
     this.cboSystemOutrage = ((C1.Silverlight.C1ComboBox)(this.FindName("cboSystemOutrage")));
     this.lbllateincompletereason = ((System.Windows.Controls.TextBlock)(this.FindName("lbllateincompletereason")));
     this.cboLateincompletereason = ((C1.Silverlight.C1ComboBox)(this.FindName("cboLateincompletereason")));
     this.BusyIndicator = ((System.Windows.Controls.BusyIndicator)(this.FindName("BusyIndicator")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Galatee.Silverlight;component/Devis/UcProcesVerbalDepannageEp.xaml", System.UriKind.Relative));
     this.LayoutRoot             = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.CancelButton           = ((System.Windows.Controls.Button)(this.FindName("CancelButton")));
     this.label15                = ((System.Windows.Controls.Label)(this.FindName("label15")));
     this.TxtNumeroGps           = ((Galatee.Silverlight.Library.NumericTextBox)(this.FindName("TxtNumeroGps")));
     this.tabControle1           = ((System.Windows.Controls.TabControl)(this.FindName("tabControle1")));
     this.tabItemInfoDemande     = ((System.Windows.Controls.TabItem)(this.FindName("tabItemInfoDemande")));
     this.label11                = ((System.Windows.Controls.Label)(this.FindName("label11")));
     this.TxtCommentaire         = ((System.Windows.Controls.TextBox)(this.FindName("TxtCommentaire")));
     this.label15_Copy           = ((System.Windows.Controls.Label)(this.FindName("label15_Copy")));
     this.txt_MatriculeVehicule  = ((System.Windows.Controls.TextBox)(this.FindName("txt_MatriculeVehicule")));
     this.Cbo_Vehicule           = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_Vehicule")));
     this.rbt_DepMT              = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_DepMT")));
     this.rbt_DepPrepaid         = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_DepPrepaid")));
     this.rbt_DepConventionnel   = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_DepConventionnel")));
     this.rbt_DepReseau          = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_DepReseau")));
     this.label15_Copy3          = ((System.Windows.Controls.Label)(this.FindName("label15_Copy3")));
     this.Cbo_TypeDetaildePanne  = ((System.Windows.Controls.ComboBox)(this.FindName("Cbo_TypeDetaildePanne")));
     this.rbt_DepEclairagePublic = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_DepEclairagePublic")));
     this.Rdb_IsDéfinitif        = ((System.Windows.Controls.CheckBox)(this.FindName("Rdb_IsDéfinitif")));
     this.Rdb_IsProvisoire       = ((System.Windows.Controls.CheckBox)(this.FindName("Rdb_IsProvisoire")));
     this.txt_HeureDebut         = ((System.Windows.Controls.TimePicker)(this.FindName("txt_HeureDebut")));
     this.txt_HeureFin           = ((System.Windows.Controls.TimePicker)(this.FindName("txt_HeureFin")));
     this.IsFactureAfaire        = ((System.Windows.Controls.CheckBox)(this.FindName("IsFactureAfaire")));
     this.IsEltDevis             = ((System.Windows.Controls.CheckBox)(this.FindName("IsEltDevis")));
     this.label_NomClient        = ((System.Windows.Controls.Label)(this.FindName("label_NomClient")));
     this.txt_nomClient          = ((System.Windows.Controls.TextBox)(this.FindName("txt_nomClient")));
     this.label_NumVehicule      = ((System.Windows.Controls.Label)(this.FindName("label_NumVehicule")));
     this.txt_NumeroVehicule     = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumeroVehicule")));
     this.label_NomClient_Copy   = ((System.Windows.Controls.Label)(this.FindName("label_NomClient_Copy")));
     this.Txt_Siege_Defaut       = ((System.Windows.Controls.TextBox)(this.FindName("Txt_Siege_Defaut")));
     this.label_NomClient_Copy1  = ((System.Windows.Controls.Label)(this.FindName("label_NomClient_Copy1")));
     this.Txt_Cause_Defaut       = ((System.Windows.Controls.TextBox)(this.FindName("Txt_Cause_Defaut")));
     this.label_NomClient_Copy2  = ((System.Windows.Controls.Label)(this.FindName("label_NomClient_Copy2")));
     this.txt_Poste              = ((System.Windows.Controls.TextBox)(this.FindName("txt_Poste")));
     this.DtpFinTravaux          = ((System.Windows.Controls.DatePicker)(this.FindName("DtpFinTravaux")));
     this.label3                          = ((System.Windows.Controls.Label)(this.FindName("label3")));
     this.DtpDebutTravaux                 = ((System.Windows.Controls.DatePicker)(this.FindName("DtpDebutTravaux")));
     this.label2                          = ((System.Windows.Controls.Label)(this.FindName("label2")));
     this.label_NomClient_Copy3           = ((System.Windows.Controls.Label)(this.FindName("label_NomClient_Copy3")));
     this.txt_depart                      = ((System.Windows.Controls.TextBox)(this.FindName("txt_depart")));
     this.tabItemClient                   = ((System.Windows.Controls.TabItem)(this.FindName("tabItemClient")));
     this.btn_RechercheClient             = ((System.Windows.Controls.Button)(this.FindName("btn_RechercheClient")));
     this.Txt_ReferenceClient             = ((System.Windows.Controls.TextBox)(this.FindName("Txt_ReferenceClient")));
     this.TxtOrdre                        = ((System.Windows.Controls.TextBox)(this.FindName("TxtOrdre")));
     this.label_Reference                 = ((System.Windows.Controls.Label)(this.FindName("label_Reference")));
     this.label17                         = ((System.Windows.Controls.Label)(this.FindName("label17")));
     this.Txt_NomClient                   = ((System.Windows.Controls.TextBox)(this.FindName("Txt_NomClient")));
     this.lbl_CodeConsomateur             = ((System.Windows.Controls.Label)(this.FindName("lbl_CodeConsomateur")));
     this.lbl_CodeRelance                 = ((System.Windows.Controls.Label)(this.FindName("lbl_CodeRelance")));
     this.lbl_categoie                    = ((System.Windows.Controls.Label)(this.FindName("lbl_categoie")));
     this.label22                         = ((System.Windows.Controls.Label)(this.FindName("label22")));
     this.tab12_Txt_LibelleCodeConso      = ((System.Windows.Controls.TextBox)(this.FindName("tab12_Txt_LibelleCodeConso")));
     this.tab12_Txt_LibelleEtatClient     = ((System.Windows.Controls.TextBox)(this.FindName("tab12_Txt_LibelleEtatClient")));
     this.tab12_Txt_LibelleCategorie      = ((System.Windows.Controls.TextBox)(this.FindName("tab12_Txt_LibelleCategorie")));
     this.tab12_Txt_LibelleTypeClient     = ((System.Windows.Controls.TextBox)(this.FindName("tab12_Txt_LibelleTypeClient")));
     this.lbl_CodeRegroupement            = ((System.Windows.Controls.Label)(this.FindName("lbl_CodeRegroupement")));
     this.lbl_Nationnalite                = ((System.Windows.Controls.Label)(this.FindName("lbl_Nationnalite")));
     this.tab12_Txt_LibelleGroupeCode     = ((System.Windows.Controls.TextBox)(this.FindName("tab12_Txt_LibelleGroupeCode")));
     this.tab12_Txt_Nationnalite          = ((System.Windows.Controls.TextBox)(this.FindName("tab12_Txt_Nationnalite")));
     this.lbl_RegroupementCompteur_Copy12 = ((System.Windows.Controls.Label)(this.FindName("lbl_RegroupementCompteur_Copy12")));
     this.tab12_Txt_Datecreate            = ((System.Windows.Controls.TextBox)(this.FindName("tab12_Txt_Datecreate")));
     this.label17_Copy                    = ((System.Windows.Controls.Label)(this.FindName("label17_Copy")));
     this.Txt_Telephone                   = ((System.Windows.Controls.TextBox)(this.FindName("Txt_Telephone")));
     this.tabSaisieIndex                  = ((System.Windows.Controls.TabItem)(this.FindName("tabSaisieIndex")));
     this.groupBox2_Copy5                 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox2_Copy5")));
     this.dtp_DatePose                    = ((SilverlightContrib.Controls.GroupBox)(this.FindName("dtp_DatePose")));
     this.label14_Copy1                   = ((System.Windows.Controls.Label)(this.FindName("label14_Copy1")));
     this.label78                         = ((System.Windows.Controls.Label)(this.FindName("label78")));
     this.dtpDepose                       = ((System.Windows.Controls.DatePicker)(this.FindName("dtpDepose")));
     this.IsSelectionCtr                  = ((System.Windows.Controls.CheckBox)(this.FindName("IsSelectionCtr")));
     this.label14_Copy2                   = ((System.Windows.Controls.Label)(this.FindName("label14_Copy2")));
     this.dg_AncienCompteur               = ((System.Windows.Controls.DataGrid)(this.FindName("dg_AncienCompteur")));
     this.TxtperiodeDepose                = ((System.Windows.Controls.TextBox)(this.FindName("TxtperiodeDepose")));
     this.label14_Copy3                   = ((System.Windows.Controls.Label)(this.FindName("label14_Copy3")));
     this.labelDatepose                   = ((System.Windows.Controls.Label)(this.FindName("labelDatepose")));
     this.dg_compteur                     = ((System.Windows.Controls.DataGrid)(this.FindName("dg_compteur")));
     this.TxtperiodePose                  = ((System.Windows.Controls.TextBox)(this.FindName("TxtperiodePose")));
     this.label78_Copy                    = ((System.Windows.Controls.Label)(this.FindName("label78_Copy")));
     this.dtpPose                         = ((System.Windows.Controls.DatePicker)(this.FindName("dtpPose")));
     this.tabitemScelle                   = ((System.Windows.Controls.TabItem)(this.FindName("tabitemScelle")));
     this.LayoutRoot1                     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot1")));
     this.groupBox2_Copy3                 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox2_Copy3")));
     this.groupBox2_Copy2                 = ((SilverlightContrib.Controls.GroupBox)(this.FindName("groupBox2_Copy2")));
     this.dg_composantScellable           = ((System.Windows.Controls.DataGrid)(this.FindName("dg_composantScellable")));
     this.lnkLetter                       = ((System.Windows.Controls.HyperlinkButton)(this.FindName("lnkLetter")));
     this.rbt_AuneAction                  = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_AuneAction")));
     this.rbt_RuptureSimple               = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_RuptureSimple")));
     this.rbt_NouveauScelle               = ((System.Windows.Controls.RadioButton)(this.FindName("rbt_NouveauScelle")));
     this.btn_ListScelle                  = ((System.Windows.Controls.Button)(this.FindName("btn_ListScelle")));
     this.txt_NumScelleRompu              = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumScelleRompu")));
     this.txt_NumNouveauScelle            = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumNouveauScelle")));
     this.btn_Ajout                       = ((System.Windows.Controls.Button)(this.FindName("btn_Ajout")));
     this.txt_NombreScelle                = ((System.Windows.Controls.TextBox)(this.FindName("txt_NombreScelle")));
     this.dg_Scellage                     = ((System.Windows.Controls.DataGrid)(this.FindName("dg_Scellage")));
     this.btn_Supprimer                   = ((System.Windows.Controls.Button)(this.FindName("btn_Supprimer")));
     this.tabItemFacture                  = ((System.Windows.Controls.TabItem)(this.FindName("tabItemFacture")));
     this.btn_Devis                       = ((System.Windows.Controls.Button)(this.FindName("btn_Devis")));
     this.dataGridElementDevis            = ((System.Windows.Controls.DataGrid)(this.FindName("dataGridElementDevis")));
     this.txt_MontantHt                   = ((System.Windows.Controls.TextBox)(this.FindName("txt_MontantHt")));
     this.txt_MontantTaxe                 = ((System.Windows.Controls.TextBox)(this.FindName("txt_MontantTaxe")));
     this.txt_MontantTTc                  = ((System.Windows.Controls.TextBox)(this.FindName("txt_MontantTTc")));
     this.btn_Transmetre                  = ((System.Windows.Controls.Button)(this.FindName("btn_Transmetre")));
     this.btn_Rejeter                     = ((System.Windows.Controls.Button)(this.FindName("btn_Rejeter")));
     this.label1                          = ((System.Windows.Controls.Label)(this.FindName("label1")));
     this.Txt_NumeroDevis                 = ((System.Windows.Controls.TextBox)(this.FindName("Txt_NumeroDevis")));
     this.label2_Copy                     = ((System.Windows.Controls.Label)(this.FindName("label2_Copy")));
     this.txt_Commune1                    = ((System.Windows.Controls.TextBox)(this.FindName("txt_Commune1")));
     this.label3_Copy1                    = ((System.Windows.Controls.Label)(this.FindName("label3_Copy1")));
     this.txt_Quartier1                   = ((System.Windows.Controls.TextBox)(this.FindName("txt_Quartier1")));
     this.label13_Copy2                   = ((System.Windows.Controls.Label)(this.FindName("label13_Copy2")));
     this.txt_ModeRecueil1                = ((System.Windows.Controls.TextBox)(this.FindName("txt_ModeRecueil1")));
     this.label4                          = ((System.Windows.Controls.Label)(this.FindName("label4")));
     this.txt_NumRue1                     = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumRue1")));
     this.label15_Copy2                   = ((System.Windows.Controls.Label)(this.FindName("label15_Copy2")));
     this.txt_NumSecteur1                 = ((System.Windows.Controls.TextBox)(this.FindName("txt_NumSecteur1")));
     this.Txt_Porte1                      = ((System.Windows.Controls.TextBox)(this.FindName("Txt_Porte1")));
     this.label17_Copy1                   = ((System.Windows.Controls.Label)(this.FindName("label17_Copy1")));
     this.Txt_Commentaire1                = ((System.Windows.Controls.TextBox)(this.FindName("Txt_Commentaire1")));
     this.lbl_Etage_Copy1                 = ((System.Windows.Controls.Label)(this.FindName("lbl_Etage_Copy1")));
     this.label15_Copy1                   = ((System.Windows.Controls.Label)(this.FindName("label15_Copy1")));
     this.txt_TypePanne                   = ((System.Windows.Controls.TextBox)(this.FindName("txt_TypePanne")));
     this.txtHeureDebut                   = ((System.Windows.Controls.DatePicker)(this.FindName("txtHeureDebut")));
     this.txtHeureFin                     = ((System.Windows.Controls.DatePicker)(this.FindName("txtHeureFin")));
     this.label1_Copy                     = ((System.Windows.Controls.Label)(this.FindName("label1_Copy")));
     this.Txt_Nom_Declarant               = ((System.Windows.Controls.TextBox)(this.FindName("Txt_Nom_Declarant")));
     this.chk_Est_Client                  = ((System.Windows.Controls.CheckBox)(this.FindName("chk_Est_Client")));
     this.label13_Copy                    = ((System.Windows.Controls.Label)(this.FindName("label13_Copy")));
     this.txt_Vehicule                    = ((System.Windows.Controls.TextBox)(this.FindName("txt_Vehicule")));
 }
Beispiel #10
0
 /// <summary>
 /// 检查当前的CheckBox是否需要勾选
 /// </summary>
 /// <param name="strFlag"></param>
 private void IsNeedCard(string strNeedCardFlag, CheckBox cbNeedCard, TimePicker nudCardStartTime, TimePicker nudCardEndTime)
 {
     cbNeedCard.IsChecked = false;
     nudCardStartTime.IsEnabled = false;
     nudCardEndTime.IsEnabled = false;
     if (strNeedCardFlag == (Convert.ToInt32(IsChecked.Yes) + 1).ToString())
     {
         cbNeedCard.IsChecked = true;
         nudCardStartTime.IsEnabled = true;
         nudCardEndTime.IsEnabled = true;
     }
 }
Beispiel #11
0
        /// <summary>
        /// 控制打卡时间是否可填
        /// </summary>
        /// <param name="nudCardStartTime"></param>
        /// <param name="nudCardEndTime"></param>
        /// <param name="cb"></param>
        private void IsEnabledCardTime(TimePicker nudCardStartTime, TimePicker nudCardEndTime, CheckBox cbNeedCard)
        {
            nudCardStartTime.Value = null;
            nudCardEndTime.Value = null;
            nudCardStartTime.IsEnabled = false;
            nudCardEndTime.IsEnabled = false;

            if (cbNeedCard.IsChecked.Value == true)
            {
                nudCardStartTime.IsEnabled = true;
                nudCardEndTime.IsEnabled = true;
            }
        }