Beispiel #1
0
 //Constructor
 public LibroHandler(Element.NumericUpDown updwLibro, Element.NumericUpDown updwRenglon, Element.MaskedTextBox txtNroFolio, Element.TextBox txtDescripcion)
 {
     this.updwLibro = updwLibro;
     this.updwRenglon = updwRenglon;
     this.txtNroFolio = txtNroFolio;
     this.txtDescripcion = txtDescripcion;
 }
 public MaskedTextBoxTextEditorDropDown(MaskedTextBox maskedTextBox)
 {
     this.cloneMtb = MaskedTextBoxDesigner.GetDesignMaskedTextBox(maskedTextBox);
     this.errorProvider = new ErrorProvider();
     ((ISupportInitialize) this.errorProvider).BeginInit();
     base.SuspendLayout();
     this.cloneMtb.Dock = DockStyle.Fill;
     this.cloneMtb.TextMaskFormat = MaskFormat.IncludePromptAndLiterals;
     this.cloneMtb.ResetOnPrompt = true;
     this.cloneMtb.SkipLiterals = true;
     this.cloneMtb.ResetOnSpace = true;
     this.cloneMtb.Name = "MaskedTextBoxClone";
     this.cloneMtb.TabIndex = 0;
     this.cloneMtb.MaskInputRejected += new MaskInputRejectedEventHandler(this.maskedTextBox_MaskInputRejected);
     this.cloneMtb.KeyDown += new KeyEventHandler(this.maskedTextBox_KeyDown);
     this.errorProvider.BlinkStyle = ErrorBlinkStyle.NeverBlink;
     this.errorProvider.ContainerControl = this;
     base.Controls.Add(this.cloneMtb);
     this.BackColor = SystemColors.Control;
     base.BorderStyle = BorderStyle.FixedSingle;
     base.Name = "MaskedTextBoxTextEditorDropDown";
     base.Padding = new Padding(0x10);
     base.Size = new Size(100, 0x34);
     ((ISupportInitialize) this.errorProvider).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Beispiel #3
0
 public static bool validar(MaskedTextBox msk)
 {
     if (!msk.MaskFull)
         return false;
     else
         return true;
 }
        /// <summary>
        /// Initializes a new instance of the 'DateTimePickerPresentation' class.
        /// </summary>
        /// <param name="maskedTextBox">.NET MaskedTextBox reference.</param>
        /// <param name="dateTimePicker">.NET DateTimePicker reference.</param>
        public DateTimePickerPresentation(MaskedTextBox maskedTextBox, DateTimePicker dateTimePicker)
        {
            mMaskedTextBoxIT = maskedTextBox;
            mDateTimePickerIT = dateTimePicker;
            if (mMaskedTextBoxIT != null)
            {
                // Create and configure the ErrorProvider control.
                mErrorProvider = new ErrorProvider();
                mErrorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink;

                // Link MaskedTextBox control events.
                mMaskedTextBoxIT.GotFocus += new EventHandler(HandleMaskedTextBoxITGotFocus);
                mMaskedTextBoxIT.LostFocus += new EventHandler(HandleMaskedTextBoxITLostFocus);
                mMaskedTextBoxIT.TextChanged += new EventHandler(HandleMaskedTextBoxITTextChanged);
                mMaskedTextBoxIT.EnabledChanged += new EventHandler(HandleMaskedTextBoxITEnabledChanged);
                mMaskedTextBoxIT.KeyDown += new KeyEventHandler(HandleMaskedTextBoxITKeyDown);
            }

            if (dateTimePicker != null)
            {
                mDateTimePickerIT.Enter += new System.EventHandler(HandleDateTimePickerITEnter);
                mDateTimePickerIT.KeyUp += new System.Windows.Forms.KeyEventHandler(HandleDateTimePickerITKeyUp);
                mDateTimePickerIT.DropDown += new System.EventHandler(HandleDateTimePickerITDropDown);
                mDateTimePickerIT.CloseUp += new System.EventHandler(HandleDateTimePickerCloseUp);
            }
        }
        private void InitializeControl()
        {
            SuspendLayout();
            _maskedTextBox = new MaskedTextBox
                                 {
                                     Mask = "00/00/0000",
                                     Size = new Size(139, 20),
                                     Location = new Point(0, 0),
                                     TabIndex = 0,
                                     ValidatingType = typeof (DateTime),
                                 };

            _dropDownButton = new Button();
            _dropDownButton.Size = new Size(16, 16);
            _dropDownButton.FlatStyle = FlatStyle.Standard;
            _dropDownButton.BackColor = Color.White;
            _dropDownButton.Location = new Point(_maskedTextBox.Width - 20, 1);
            _dropDownButton.BackgroundImage = Strings.calendar_icon;
            _dropDownButton.Click += OnDropDownButtonClick;
            _dropDownButton.Cursor = Cursors.Arrow;
            _maskedTextBox.Controls.Add(_dropDownButton);
            AutoScaleMode=AutoScaleMode.Dpi;
            _maskedTextBox.Text = DateTime.Now.ToString("dd/MM/yyyy");
            Controls.Add(_maskedTextBox);
            ResumeLayout(true);
        }
Beispiel #6
0
        public void enbControls(Boolean boolean) /// true if enabled
        {
            foreach (Control gb in this.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;
                    tx.ReadOnly = !boolean;
                }


                else if (gb.GetType().ToString() == "System.Windows.Forms.ComboBox")
                {
                    System.Windows.Forms.ComboBox tx = (ComboBox)gb;
                    tx.Enabled = boolean;
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.MaskedTextBox")
                {
                    System.Windows.Forms.MaskedTextBox tx = (MaskedTextBox)gb;
                    tx.ReadOnly = !boolean;
                }
            }

            panbutt_Nav.Visible = !boolean;
            panSav.Visible      = boolean;
        }
Beispiel #7
0
        private bool CheckEmpty()
        {
            //به وسیله حلقه فورایچ  بین کنترل های جسجو می کند
            bool tf = false;

            foreach (Control c in groupBox1.Controls)
            {
                if (c is System.Windows.Forms.TextBox)
                {
                    System.Windows.Forms.TextBox chk = (System.Windows.Forms.TextBox)c;
                    // چک میکند که ببیند ایا این کنترل مقدار تکس دارد یا نه
                    if (chk.Text == "")
                    {
                        tf = true;
                    }
                }
            }
            foreach (Control c in groupBox1.Controls)
            {
                if (c is System.Windows.Forms.MaskedTextBox)
                {
                    System.Windows.Forms.MaskedTextBox chk = (System.Windows.Forms.MaskedTextBox)c;
                    if (chk.Text == "")
                    {
                        tf = true;
                    }
                }
            }
            if (com_AddNew.SelectedIndex < 0)
            {
                tf = true;
            }
            return(tf);
        }
Beispiel #8
0
        public FormCFLO()
        {
            InitializeComponent();
            #region Manually Initialize Components
            //

            for (int i = 0; i < MAXC; i++)
            {
                label[i]          = new System.Windows.Forms.Label();
                label[i].AutoSize = true;
                label[i].Location = new System.Drawing.Point(3, 11);
                label[i].Name     = "label" + i.ToString();
                label[i].Size     = new System.Drawing.Size(52, 13);
                label[i].TabIndex = 0;
                label[i].Text     = "Period " + i.ToString();
                if (i == 0)
                {
                    label[i].Text = "Initial " + i.ToString();
                }
                //
                cj[i]           = new System.Windows.Forms.MaskedTextBox();
                cj[i].Location  = new System.Drawing.Point(61, 8);
                cj[i].Name      = "cj" + i.ToString();
                cj[i].Size      = new System.Drawing.Size(100, 20);
                cj[i].Text      = "0.0";
                cj[i].TabIndex  = 1;
                cj[i].TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
                //
                nj[i]           = new System.Windows.Forms.MaskedTextBox();
                nj[i].Location  = new System.Drawing.Point(168, 8);
                nj[i].Name      = "nj" + i.ToString();
                nj[i].Size      = new System.Drawing.Size(42, 20);
                nj[i].Text      = "1";
                nj[i].TabIndex  = 2;
                nj[i].TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
                if (i == 0)
                {
                    nj[i].ReadOnly = true;
                }
                //
                panel[i]          = new System.Windows.Forms.Panel();
                panel[i].Location = new System.Drawing.Point(3, 3);
                panel[i].Name     = "panel" + i.ToString();
                panel[i].Size     = new System.Drawing.Size(271, 24);
                panel[i].TabIndex = 1;
                panel[i].Controls.Add(label[i]);
                panel[i].Controls.Add(cj[i]);
                panel[i].Controls.Add(nj[i]);
                panel[i].SuspendLayout();
                panel[i].ResumeLayout(false);
                panel[i].PerformLayout();
                //
                leftcentr2.Controls.Add(panel[i]);
                cfi[i] = new System.Windows.Forms.Panel();
                cfi[i] = panel[i];
            }
            setformTitle("Uneven Cashflow Calculator - FA");
            this.Text = formTitle;
            #endregion
        }
 //
 public clsGLAcLookUp( MaskedTextBox pTB, string pTitle,string pJoin = "", string pAddWhere = ""  )
 {
     fTB = pTB;
       fTitle = pTitle;
       fJoin = pJoin;
       fAddWhere = pAddWhere;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the MaskedTextBoxAdv class.
 /// </summary>
 public MaskedTextBoxAdv()
 {
     this.SetStyle(ControlStyles.Selectable, false);
     _MaskedTextBox = new MaskedTextBoxInternal();
     this.BackColor = SystemColors.Window;
     InitControl();
 }
Beispiel #11
0
        public static void AcomodarCostoMkb(MaskedTextBox mtb,decimal dec)
        {
            //se coonvierte el decimal en string
            string strDescimal =dec.ToString();
            //se tomael tamaño del string
            int tamañostrDescimal = strDescimal.Length;
            //se toma el tamaño del maskedtexbox
            int tamañoMtb = mtb.TextLength;

            if (strDescimal.Contains(".0000"))
            {

                strDescimal = strDescimal.Replace(".0000", ".00");
                int tamañostrDescimal2 = strDescimal.Length;

                for (int c = tamañostrDescimal2; c < tamañoMtb; c++)
                {
                    strDescimal = "0" + strDescimal;
                }
                mtb.Text = strDescimal;

            }
            else
            {
                mtb.Text = dec + "";
                for (int c = tamañostrDescimal; c < tamañoMtb; c++)
                {
                    strDescimal = "0" + strDescimal;
                }
            }
        }
 public static bool IsValidMaskDescriptor(MaskDescriptor maskDescriptor, out string validationErrorDescription)
 {
     validationErrorDescription = string.Empty;
     if (maskDescriptor == null)
     {
         validationErrorDescription = System.Design.SR.GetString("MaskDescriptorNull");
         return false;
     }
     if ((string.IsNullOrEmpty(maskDescriptor.Mask) || string.IsNullOrEmpty(maskDescriptor.Name)) || string.IsNullOrEmpty(maskDescriptor.Sample))
     {
         validationErrorDescription = System.Design.SR.GetString("MaskDescriptorNullOrEmptyRequiredProperty");
         return false;
     }
     MaskedTextProvider maskedTextProvider = new MaskedTextProvider(maskDescriptor.Mask, maskDescriptor.Culture);
     MaskedTextBox box = new MaskedTextBox(maskedTextProvider) {
         SkipLiterals = true,
         ResetOnPrompt = true,
         ResetOnSpace = true,
         ValidatingType = maskDescriptor.ValidatingType,
         FormatProvider = maskDescriptor.Culture,
         Culture = maskDescriptor.Culture
     };
     box.TypeValidationCompleted += new TypeValidationEventHandler(MaskDescriptor.maskedTextBox1_TypeValidationCompleted);
     box.MaskInputRejected += new MaskInputRejectedEventHandler(MaskDescriptor.maskedTextBox1_MaskInputRejected);
     box.Text = maskDescriptor.Sample;
     if ((box.Tag == null) && (maskDescriptor.ValidatingType != null))
     {
         box.ValidateText();
     }
     if (box.Tag != null)
     {
         validationErrorDescription = box.Tag.ToString();
     }
     return (validationErrorDescription.Length == 0);
 }
 internal static MaskedTextBox GetDesignMaskedTextBox(MaskedTextBox mtb)
 {
     MaskedTextBox box = null;
     if (mtb == null)
     {
         box = new MaskedTextBox();
     }
     else
     {
         if (mtb.MaskedTextProvider == null)
         {
             box = new MaskedTextBox {
                 Text = mtb.Text
             };
         }
         else
         {
             box = new MaskedTextBox(mtb.MaskedTextProvider);
         }
         box.ValidatingType = mtb.ValidatingType;
         box.BeepOnError = mtb.BeepOnError;
         box.InsertKeyMode = mtb.InsertKeyMode;
         box.RejectInputOnFirstFailure = mtb.RejectInputOnFirstFailure;
         box.CutCopyMaskFormat = mtb.CutCopyMaskFormat;
         box.Culture = mtb.Culture;
     }
     box.UseSystemPasswordChar = false;
     box.PasswordChar = '\0';
     box.ReadOnly = false;
     box.HidePromptOnLeave = false;
     return box;
 }
        Element.TextBox txtPrefijo; // txt prefijo del vehiculo

        #endregion Fields

        #region Constructors

        public VehiculoHandler(Element.ComboBox cboDesc, Element.ComboBox cboMarca, Element.MaskedTextBox txtDominio, Element.TextBox txtPrefijo)
        {
            this.cboDesc = cboDesc;
            this.cboMarca = cboMarca;
            this.txtDominio = txtDominio;
            this.txtPrefijo = txtPrefijo;
        }
Beispiel #15
0
        public ParteHandler(Element.ComboBox cboTipoDoc, Element.MaskedTextBox txtNroDni, Element.ComboBox cboSexo,
                            Element.TextBox txtNombre, Element.TextBox txtApellido, Element.MaskedTextBox txtCuit,
                            Element.DateTimePicker dpFecNac, Element.ComboBox cboECivil, Element.TextBox txtDomicilio,
                            Element.ComboBox cboCiudad, Element.ComboBox cboDepartamento, Element.ComboBox cboProvincia,
                            Element.ComboBox cboNacionalidad)
        {
            this.cboTipoDoc = cboTipoDoc;
            this.txtNroDni = txtNroDni;
            this.cboSexo = cboSexo;
            this.txtNombre = txtNombre;
            this.txtApellido = txtApellido;
            this.txtCuit = txtCuit;
            this.dpFecNac = dpFecNac;
            this.cboECivil = cboECivil;
            this.txtDomicilio = txtDomicilio;
            this.cboCiudad = cboCiudad;
            this.cboDepartamento = cboDepartamento;
            this.cboProvincia = cboProvincia;
            this.cboNacionalidad = cboNacionalidad;

            formatoPartes();

            con.Connect();
            ds1 = con.fillDs("SELECT * FROM DOCUMENTOS;", "PARTES");
            ds2 = con.fillDs("SELECT * FROM SEXOS;", "SEXOS");
            ds3 = con.fillDs("SELECT * FROM ESTADOS_CIVILES;", "ESTADOS");
            ds7 = con.fillDs("SELECT * FROM NACIONALIDADES;", "NACIONALIDADES");
            cboTipoDoc.DataSource = ds1.Tables[0];
            cboSexo.DataSource = ds2.Tables[0];
            cboECivil.DataSource = ds3.Tables[0];
            cboNacionalidad.DataSource = ds7.Tables[0];
        }
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     IWindowsFormsEditorService service = null;
     if (((context != null) && (context.Instance != null)) && (provider != null))
     {
         service = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
         if ((service == null) || (context.Instance == null))
         {
             return value;
         }
         MaskedTextBox instance = context.Instance as MaskedTextBox;
         if (instance == null)
         {
             instance = new MaskedTextBox {
                 Text = value as string
             };
         }
         MaskedTextBoxTextEditorDropDown control = new MaskedTextBoxTextEditorDropDown(instance);
         service.DropDownControl(control);
         if (control.Value != null)
         {
             value = control.Value;
         }
     }
     return value;
 }
Beispiel #17
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
            this.label1         = new System.Windows.Forms.Label();
            this.SuspendLayout();
            //
            // maskedTextBox1
            //
            this.maskedTextBox1.Location = new System.Drawing.Point(0, 0);
            this.maskedTextBox1.Name     = "maskedTextBox1";
            this.maskedTextBox1.Size     = new System.Drawing.Size(42, 20);
            this.maskedTextBox1.TabIndex = 0;
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(44, 3);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(64, 13);
            this.label1.TabIndex = 1;
            //
            // DateTextBox1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.label1);
            this.Controls.Add(this.maskedTextBox1);
            this.Name = "DateTextBox1";
            this.Size = new System.Drawing.Size(100, 20);
            this.ResumeLayout(false);
            this.PerformLayout();

            this.Mode  = 0;
            this.Value = DateTime.Now;
        }
 public MaskDesignerDialog(MaskedTextBox instance, IHelpService helpService)
 {
     if (instance == null)
     {
         this.maskedTextBox = new MaskedTextBox();
     }
     else
     {
         this.maskedTextBox = MaskedTextBoxDesigner.GetDesignMaskedTextBox(instance);
     }
     this.helpService = helpService;
     this.InitializeComponent();
     DesignerUtils.ApplyListViewThemeStyles(this.listViewCannedMasks);
     base.SuspendLayout();
     this.txtBoxMask.Text = this.maskedTextBox.Mask;
     this.AddDefaultMaskDescriptors(this.maskedTextBox.Culture);
     this.maskDescriptionHeader.Text = System.Design.SR.GetString("MaskDesignerDialogMaskDescription");
     this.maskDescriptionHeader.Width = this.listViewCannedMasks.Width / 3;
     this.dataFormatHeader.Text = System.Design.SR.GetString("MaskDesignerDialogDataFormat");
     this.dataFormatHeader.Width = this.listViewCannedMasks.Width / 3;
     this.validatingTypeHeader.Text = System.Design.SR.GetString("MaskDesignerDialogValidatingType");
     this.validatingTypeHeader.Width = ((this.listViewCannedMasks.Width / 3) - SystemInformation.VerticalScrollBarWidth) - 4;
     base.ResumeLayout(false);
     this.HookEvents();
 }
Beispiel #19
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WindowsFormHost1 = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 2:
                this.MaskedTextBox1 = ((System.Windows.Forms.MaskedTextBox)(target));
                return;

            case 3:
                this.Button1 = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\..\MainWindow.xaml"
                this.Button1.Click += new System.Windows.RoutedEventHandler(this.Button1_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Button2 = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\..\MainWindow.xaml"
                this.Button2.Click += new System.Windows.RoutedEventHandler(this.Button2_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #20
0
 protected override void AbstractDelete()
 {
     _maskedTextBox.TextChanged -= Change;//[C#] コントロールの変化をイベント処理する
     Remove(Panel, _label);
     Remove(Panel, _maskedTextBox);
     _label = null;
     _maskedTextBox = null;
 }
Beispiel #21
0
 /// <summary>
 /// Adapta numeros decimal a cajas de texto con formato 0000.00
 /// </summary>
 /// <param name="mtb">Caja de texto donde se introducira la cadena de caracteres que representa el costo.</param>
 /// <param name="costo">Costo en formato decimal</param>
 private void adaptarCosto(MaskedTextBox mtb, decimal costo)
 {
     String strCosto = (costo*100).ToString();
     int posPunto = strCosto.IndexOf(".");
     strCosto = strCosto.Substring(0, posPunto + 1);
     mtb.Text = strCosto;
     Herramientas.validarMascaraCosto(mtb);
 }
        public Form1()
        {
            this.chkShowWeeksNumbers     = new System.Windows.Forms.CheckBox();
            this.chkThisFormTopMost      = new System.Windows.Forms.CheckBox();
            this.maskedInputBox          = new System.Windows.Forms.MaskedTextBox();
            this.btnShowFloatingCalendar = new System.Windows.Forms.Button();
            this.SuspendLayout();
            //
            // chkShowNumbersOfWeeks
            //
            this.chkShowWeeksNumbers.AutoSize = true;
            this.chkShowWeeksNumbers.Location = new System.Drawing.Point(18, 116);
            this.chkShowWeeksNumbers.Name     = "chkShowWeeksNumbers";
            this.chkShowWeeksNumbers.Size     = new System.Drawing.Size(137, 17);
            this.chkShowWeeksNumbers.TabIndex = 1;
            this.chkShowWeeksNumbers.Text     = "Show number of weeks";
            this.chkShowWeeksNumbers.UseVisualStyleBackColor = true;
            //
            // chkThisFormTopMost
            //
            this.chkThisFormTopMost.AutoSize = true;
            this.chkThisFormTopMost.Location = new System.Drawing.Point(18, 139);
            this.chkThisFormTopMost.Name     = "chkThisFormTopMost";
            this.chkThisFormTopMost.Size     = new System.Drawing.Size(124, 17);
            this.chkThisFormTopMost.TabIndex = 2;
            this.chkThisFormTopMost.Text     = "This form TopMost";
            this.chkThisFormTopMost.UseVisualStyleBackColor = true;
            this.chkThisFormTopMost.CheckedChanged         += new EventHandler(chkThisFormTopMost_CheckedChanged);
            //
            // maskedInputBox
            //
            this.maskedInputBox.Location       = new System.Drawing.Point(18, 53);
            this.maskedInputBox.Mask           = "00/00/0000 00:00";
            this.maskedInputBox.Name           = "maskedInputBox";
            this.maskedInputBox.Size           = new System.Drawing.Size(115, 20);
            this.maskedInputBox.TabIndex       = 3;
            this.maskedInputBox.ValidatingType = typeof(System.DateTime);
            //
            // btnShowFloatingCalendar
            //
            this.btnShowFloatingCalendar.Location = new System.Drawing.Point(139, 49);
            this.btnShowFloatingCalendar.Name     = "btnShowFloatingCalendar";
            this.btnShowFloatingCalendar.Size     = new System.Drawing.Size(65, 27);
            this.btnShowFloatingCalendar.TabIndex = 4;
            this.btnShowFloatingCalendar.Text     = "Calendar";
            this.btnShowFloatingCalendar.UseVisualStyleBackColor = true;
            this.btnShowFloatingCalendar.Click += new EventHandler(btnShowFloatingCalendar_Click);

            //
            // Form1
            //
            this.Controls.Add(this.btnShowFloatingCalendar);
            this.Controls.Add(this.maskedInputBox);
            this.Controls.Add(this.chkThisFormTopMost);
            this.Controls.Add(this.chkShowWeeksNumbers);

            InitializeComponent();
        }
 public static bool validarMaskedTextBox(MaskedTextBox unMaskedTextBox, String unMensajeDeAlerta)
 {
     if (unMaskedTextBox.Text.Length < 1)
     {
         MessageBox.Show(unMensajeDeAlerta);
         return false;
     }
     return true;
 }
Beispiel #24
0
 private void ConstructForms(Form form)
 {
     btnBrowse     = form.Controls.Find("btnBrowse", true)[0] as Button;
     tbFolder      = form.Controls.Find("tbFolder", true)[0] as TextBox;
     btnOk         = form.Controls.Find("btnOk", true)[0] as Button;
     btnCancel     = form.Controls.Find("btnCancel", true)[0] as Button;
     mtbPwdSize    = form.Controls.Find("mtbPwdSize", true)[0] as MaskedTextBox;
     mtbPwdExpired = form.Controls.Find("mtbPwdExpired", true)[0] as MaskedTextBox;
     mtbLocked     = form.Controls.Find("mtbLocked", true)[0] as MaskedTextBox;
     mtbInactivity = form.Controls.Find("mtbInactivity", true)[0] as MaskedTextBox;
 }
Beispiel #25
0
        public Control getFieldControl(object Value)
        {
            MaskedTextBox dateTimeFieldControl = new MaskedTextBox("00/00/0000 90:00");
            dateTimeFieldControl.ValidatingType = typeof(DateTime);
            if(((DateTime) Value).CompareTo(DateTime.MinValue)==0)
                dateTimeFieldControl.Text = string.Empty;
            else
                dateTimeFieldControl.Text = Value.ToString();

            return dateTimeFieldControl;
        }
Beispiel #26
0
        public bool ValidateMaskedTextbox(MaskedTextBox test)
        {
            if (test.Text.Length == 0)
            {
                test.BackColor = _invalidColor;
                return false;
            }

            test.BackColor = _validColor;
            return true;
        }
 public MaskedTextBoxDesignerActionList(MaskedTextBoxDesigner designer) : base(designer.Component)
 {
     this.maskedTextBox = (MaskedTextBox) designer.Component;
     this.discoverySvc = base.GetService(typeof(ITypeDiscoveryService)) as ITypeDiscoveryService;
     this.uiSvc = base.GetService(typeof(IUIService)) as IUIService;
     this.helpService = base.GetService(typeof(IHelpService)) as IHelpService;
     if (this.discoverySvc != null)
     {
         IUIService uiSvc = this.uiSvc;
     }
 }
 public static bool validarMatricula(MaskedTextBox unMaskedTextBox, String unMensajeDeAlerta)
 {
     if (Regex.Match(unMaskedTextBox.Text, "[A-Z][A-Z][A-Z][-][0-9][0-9][0-9]").Success)
     {
         return true;
     }
     else
     {
         MessageBox.Show(unMensajeDeAlerta);
         return false;
     }
 }
Beispiel #29
0
		public void WordWrapTest ()
		{

			MaskedTextBox mtb;

			mtb = new MaskedTextBox ();
			Assert.AreEqual (false, mtb.WordWrap, "#W1");
			mtb.WordWrap = true;
			Assert.AreEqual (false, mtb.WordWrap, "#W2");
			
			mtb.Dispose ();
		}
        /// <summary>
        /// Creates a new instance for an autonumeric
        /// </summary>
        /// <param name="maskedTextBox"></param>
        /// <param name="label"></param>
        /// <param name="checkBox"></param>
        public AutonumericPresentation(MaskedTextBox maskedTextBox, Label label, CheckBox checkBox)
            : base(maskedTextBox)
        {
            mAutoMode = true;
            mAutoLabelIT = label;
            mCheckBoxIT = checkBox;
            DataType = ModelType.Autonumeric;

            if (mCheckBoxIT != null)
            {
                mCheckBoxIT.CheckedChanged += new EventHandler(HandleCheckBoxITChanged);
            }
        }
Beispiel #31
0
 private void InitializeComponent()
 {
     this.pnlInput = new Panel();
     this.mtbInput = new MaskedTextBox();
     this.rdbASCII = new RadioButton();
     this.rdbHEX = new RadioButton();
     this.pnlInput.SuspendLayout();
     base.SuspendLayout();
     this.pnlInput.AutoScroll = true;
     this.pnlInput.Controls.Add(this.mtbInput);
     this.pnlInput.Location = new Point(0, 0);
     this.pnlInput.Name = "pnlInput";
     this.pnlInput.Size = new Size(0xbd, 0x25);
     this.pnlInput.TabIndex = 0;
     this.mtbInput.Font = new Font("Courier New", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.mtbInput.Location = new Point(0, 0);
     this.mtbInput.Mask = ">AA AA AA AA AA AA AA";
     this.mtbInput.Name = "mtbInput";
     this.mtbInput.Size = new Size(0xbd, 20);
     this.mtbInput.TabIndex = 0;
     this.mtbInput.KeyDown += new KeyEventHandler(this.mtbInput_KeyDown);
     this.mtbInput.Validating += new CancelEventHandler(this.mtbInput_Validating);
     this.rdbASCII.AutoSize = true;
     this.rdbASCII.Location = new Point(0xc1, 0x11);
     this.rdbASCII.Name = "rdbASCII";
     this.rdbASCII.Size = new Size(0x34, 0x11);
     this.rdbASCII.TabIndex = 0x80;
     this.rdbASCII.Text = "ASCII";
     this.rdbASCII.UseVisualStyleBackColor = true;
     this.rdbHEX.AutoSize = true;
     this.rdbHEX.Checked = true;
     this.rdbHEX.Location = new Point(0xc1, 0);
     this.rdbHEX.Name = "rdbHEX";
     this.rdbHEX.Size = new Size(0x2f, 0x11);
     this.rdbHEX.TabIndex = 0x7f;
     this.rdbHEX.TabStop = true;
     this.rdbHEX.Text = "HEX";
     this.rdbHEX.UseVisualStyleBackColor = true;
     this.rdbHEX.CheckedChanged += new EventHandler(this.rdbHEX_CheckedChanged);
     base.AutoScaleDimensions = new SizeF(96f, 96f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     base.Controls.Add(this.rdbASCII);
     base.Controls.Add(this.rdbHEX);
     base.Controls.Add(this.pnlInput);
     base.Name = "HexAsciiInputControl";
     base.Size = new Size(0xf5, 0x25);
     this.pnlInput.ResumeLayout(false);
     this.pnlInput.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
   //
   public clsLookUpGLAc( 
 MaskedTextBox pTextBox, 
 string pTitle, 
 string pJoin = "" 
 //,string pAddWhere = ""
 )
   {
       fTextBox = pTextBox;
         fTitle = pTitle;
         fJoin = pJoin;
         // Additional where is not required here, it is now available at Find Method
         //fAddWhere = pAddWhere;
         //fAutoPopulate = pAutoPopulate;
   }
Beispiel #33
0
        public static Boolean tieneDato(System.Windows.Forms.MaskedTextBox field)
        {
            Boolean res = true;

            try
            {
                if (string.IsNullOrEmpty(field.Text.Replace(field.Culture.DateTimeFormat.DateSeparator, "").Replace(field.Culture.DateTimeFormat.TimeSeparator, "").Trim()))
                {
                    res = false;
                }
            }
            catch (Exception)
            { throw; }
            return(res);
        }
        public void DetallesPerfiles(int Id, TextBox nombre, TextBox apellido, TextBox tipo, TextBox fechaNac, TextBox dir, MaskedTextBox tel, MaskedTextBox ced, TextBox proced, TextBox sexo, TextBox espc, TextBox cp, TextBox cdo, PictureBox pb)
        {
            try
            {
                byte[] datos = new byte[0];
                String query = "SELECT *FROM Candidatos INNER JOIN Perfil"
                 +" on Candidatos.Pk_candidato= Perfil.Fk_candidato"
                 +" WHERE Pk_candidato=" + Id;
                con = new SqlConnection(CadCon.Servidor());
                con.Open();
                cmd = new SqlCommand(query, con);

                cmd.ExecuteNonQuery();
                dt = new DataTable();
                sda= new SqlDataAdapter(cmd);
                sda.Fill(dt);

                /************************************************ */
                nombre.Text = dt.Rows[0][1].ToString();
                apellido.Text = dt.Rows[0][2].ToString();
                tipo.Text = dt.Rows[0][5].ToString();
                fechaNac.Text = dt.Rows[0][6].ToString();
                /************************************************ */

                dir.Text = dt.Rows[0][3].ToString();
                tel.Text = dt.Rows[0][4].ToString();
                ced.Text = dt.Rows[0][8].ToString();
                proced.Text = dt.Rows[0][12].ToString();
                sexo.Text = dt.Rows[0][13].ToString();
                espc.Text = dt.Rows[0][14].ToString();
                cp.Text = dt.Rows[0][15].ToString();
                cdo.Text = dt.Rows[0][16].ToString();

                /************************************************************/
                dse = new DataSet();
                sda.Fill(dse, "Candidatos");

                dr = dse.Tables["Candidatos"].Rows[0];
                datos = (byte[])dr["foto"];
                System.IO.MemoryStream mst = new System.IO.MemoryStream(datos);
                pb.Image = System.Drawing.Bitmap.FromStream(mst);
                /******************************************************************************************/

            }
            catch (SqlException sql) { MessageBox.Show(sql.Message); }
            cmd.Dispose();
            con.Close();
        }
        //Para Verificar que la cedula sea Correcta
        public static bool ValidaCedula(MaskedTextBox Txt)
        {
            string sCedula = Txt.Text;
            int iDigital = 0;
            int p = 0;
            int t = 0;
            int d = 0;
            decimal Resultado = 0;
            int i = 0;
            string sCon = null;

            sCedula = sCedula.Replace("-", "");

            sCedula = sCedula.Trim();

            if (sCedula.Length != 11)
                return false;

            if (!decimal.TryParse(sCedula, out Resultado))
                return false;

            iDigital = int.Parse(sCedula.Substring(10, 1));
            sCon = "1212121212";
            p = 0;
            t = 0;
            d = 0;

            for (i = 0; i <= 9; i++)
            {
                sCedula = sCedula.Trim();
                p = Convert.ToInt32(sCedula.Substring(i, 1)) * Convert.ToInt32(sCon.Substring(i, 1));
                if (p > 9)
                {
                    p = p - 10 + 1;
                }
                t = t + p;
            }

            d = (10 - (t % 10)) % 10;
            if (iDigital != d)
            {
                return false;
            }
            else
            {
                return true;
            }
        }
        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            // Create the interop host control.
            System.Windows.Forms.Integration.WindowsFormsHost host =
                new System.Windows.Forms.Integration.WindowsFormsHost();

            // Create the MaskedTextBox control.
            MaskedTextBox mtbDate = new MaskedTextBox("00/00/0000");

            // Assign the MaskedTextBox control as the host control's child.
            host.Child = mtbDate;

            // Add the interop host control to the Grid
            // control's collection of child controls.
            this.grid1.Children.Add(host);
        }
Beispiel #37
0
        private bool ValidarMaskedTextBox(MaskedTextBox mt)
        {
            

            if (String.IsNullOrWhiteSpace(mt.Text) )
            {

                mt.BackColor = Color.Pink;
                return false;
            }
            else
            {
                mt.BackColor = Color.White;
                return true;
            }
        }
        /// <summary>
        /// Initializes a new instance of the 'PasswordPresentation' class.
        /// </summary>
        /// <param name="passwordTextBox">.NET MaskedTextBox reference fot password.</param>
        /// <param name="confirmTextBox">.NET MaskedTextBox reference for confirmation.</param>
        public PasswordPresentation(MaskedTextBox passwordTextBox, MaskedTextBox confirmTextBox)
        {
            mMaskedTextBoxPasswordIT = passwordTextBox;
            mMaskedTextBoxPasswordPresentation = new MaskedTextBoxPresentation(passwordTextBox);
            mMaskedTextBoxConfirmIT = confirmTextBox;
            mMaskedTextBoxConfirmPresentation = new MaskedTextBoxPresentation(confirmTextBox);

            // Create and configure the ErrorProvider control.
            mErrorProvider = new ErrorProvider();
            mErrorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink;

            // Link MaskedTextBox control events.
            mMaskedTextBoxPasswordPresentation.GotFocus += new EventHandler<GotFocusEventArgs>(HandlePasswordPresenationGotFocus);
            mMaskedTextBoxPasswordPresentation.LostFocus += new EventHandler<LostFocusEventArgs>(HandlePasswordPresenationLostFocus);
            mMaskedTextBoxPasswordPresentation.ValueChanged += new EventHandler<ValueChangedEventArgs>(HandlePasswordPresenationValueChanged);
            mMaskedTextBoxPasswordPresentation.EnableChanged += new EventHandler<EnabledChangedEventArgs>(HandlePasswordPresenationEnabledChanged);
        }
        private void HandleDatesNullNoNullCheckChanged(object sender, EventArgs e)
        {
            if (!Semaphore)
            {
                Semaphore = !Semaphore;

                foreach (object o in tpDates.Controls)
                {
                    if (o.GetType().ToString().ToUpper() == "SYSTEM.WINDOWS.FORMS.MASKEDTEXTBOX")
                    {
                        System.Windows.Forms.MaskedTextBox t = (System.Windows.Forms.MaskedTextBox)o;
                        t.Text = "";
                    }
                }

                Semaphore = !Semaphore;

                GenerateClause();
            }
        }
Beispiel #40
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
            this.label1         = new System.Windows.Forms.Label();
            this.SuspendLayout();
            //
            // maskedTextBox1
            //
            this.maskedTextBox1.Location = new System.Drawing.Point(0, 0);
            this.maskedTextBox1.Mask     = "00:00:00";
            this.maskedTextBox1.Name     = "maskedTextBox1";
            this.maskedTextBox1.Size     = new System.Drawing.Size(52, 20);
            this.maskedTextBox1.TabIndex = 0;
            String hour   = (DateTime.Now.Hour + "").PadLeft(2, '0');
            String minute = (DateTime.Now.Minute + "").PadLeft(2, '0');
            String second = (DateTime.Now.Second + "").PadLeft(2, '0');

            this.maskedTextBox1.Text = hour + ":" + minute + ":" + second;
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(58, 3);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(51, 13);
            this.label1.TabIndex = 1;
            this.label1.Text     = "hh:mm:ss";
            //
            // TimeTextBox
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.label1);
            this.Controls.Add(this.maskedTextBox1);
            this.Name = "TimeTextBox";
            this.Size = new System.Drawing.Size(111, 20);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
        private void HandleDateTextChanged(object sender, EventArgs e)
        {
            // clear the other text boxes
            if (!Semaphore)
            {
                Semaphore = !Semaphore;

                rbDateIsNotNull.Checked = false;
                rbDateIsNull.Checked    = false;

                foreach (object o in tpDates.Controls)
                {
                    if (o.GetType().ToString().ToUpper() == "SYSTEM.WINDOWS.FORMS.MASKEDTEXTBOX")
                    {
                        if (o != sender)
                        {
                            System.Windows.Forms.MaskedTextBox ss = (System.Windows.Forms.MaskedTextBox)sender;
                            System.Windows.Forms.MaskedTextBox t  = (System.Windows.Forms.MaskedTextBox)o;

                            if (ss.Name == "txtBetweenLower" || ss.Name == "txtBetweenUpper")
                            {
                                if (t.Name != "txtBetweenLower" && t.Name != "txtBetweenUpper")
                                {
                                    t.Text = "";
                                }
                            }
                            else
                            {
                                t.Text = "";
                            }
                        }
                    }
                }
            }

            Semaphore = !Semaphore;

            GenerateClause();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.host = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 2:
                this.maskedTextBox = ((System.Windows.Forms.MaskedTextBox)(target));

            #line 16 "..\..\HostWinFormControl.xaml"
                this.maskedTextBox.MaskInputRejected += new System.Windows.Forms.MaskInputRejectedEventHandler(this.maskedTextBox_MaskInputRejected);

            #line default
            #line hidden
                return;

            case 3:
                this.lblErrorText = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public CollectorListScreen(Screen backScreen) : base("Collector List", backScreen, 1, 2, 3)
        {
            #region Instantiation
            this.tlpSearchBar = new System.Windows.Forms.TableLayoutPanel();
            this.lblSelectedCollectorPrompt = new System.Windows.Forms.Label();
            this.lblSearchPrompt            = new System.Windows.Forms.Label();
            this.txtSearchName        = new System.Windows.Forms.TextBox();
            this.cbxSelectedCollector = new System.Windows.Forms.ComboBox();
            this.tlpEditOptions       = new System.Windows.Forms.TableLayoutPanel();
            this.btnUpdateCollector   = new System.Windows.Forms.Button();
            this.btnRemoveCollector   = new System.Windows.Forms.Button();
            this.lblEditOptionsPrompt = new System.Windows.Forms.Label();
            this.btnAddCollector      = new System.Windows.Forms.Button();
            this.dgvCollectors        = new System.Windows.Forms.DataGridView();
            this.mtxtPhoneNumber      = new System.Windows.Forms.MaskedTextBox();
            this.lblPhoneNumPrompt    = new System.Windows.Forms.Label();
            this.lblName           = new System.Windows.Forms.Label();
            this.btnViewPurchases  = new ProtectedButton(1);
            this.btnSellToSelected = new System.Windows.Forms.Button();
            #endregion

            #region Init Screen
            this.ColumnCount = 1;
            this.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.Controls.Add(this.tlpEditOptions, 0, 0);
            this.Controls.Add(this.tlpSearchBar, 0, 1);
            this.Controls.Add(this.dgvCollectors, 0, 2);
            this.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.RowCount = 3;
            this.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.AutoSize));
            this.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.AutoSize));
            this.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.TabIndex       = 0;
            this.ParentChanged += CollectorListScreen_ParentChanged;
            #endregion

            #region Controls
            //
            // tlpSearchBar
            //
            this.tlpSearchBar.BackColor   = System.Drawing.Color.White;
            this.tlpSearchBar.ColumnCount = 5;
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tlpSearchBar.Controls.Add(this.lblName, 1, 0);
            this.tlpSearchBar.Controls.Add(this.lblSelectedCollectorPrompt, 3, 0);
            this.tlpSearchBar.Controls.Add(this.lblSearchPrompt, 0, 0);
            this.tlpSearchBar.Controls.Add(this.cbxSelectedCollector, 4, 0);
            this.tlpSearchBar.Controls.Add(this.txtSearchName, 1, 1);
            this.tlpSearchBar.Controls.Add(this.mtxtPhoneNumber, 2, 1);
            this.tlpSearchBar.Controls.Add(this.lblPhoneNumPrompt, 2, 0);
            this.tlpSearchBar.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.tlpSearchBar.RowCount = 2;
            this.tlpSearchBar.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F));
            this.tlpSearchBar.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 60F));
            this.tlpSearchBar.TabIndex = 0;
            this.tlpSearchBar.AutoSize = true;
            this.tlpSearchBar.Padding  = new System.Windows.Forms.Padding(10, 10, 10, 10);
            //
            // lblSelectedCollectorPrompt
            //
            this.lblSelectedCollectorPrompt.Anchor   = System.Windows.Forms.AnchorStyles.Right;
            this.lblSelectedCollectorPrompt.AutoSize = true;
            this.tlpSearchBar.SetRowSpan(this.lblSelectedCollectorPrompt, 2);
            this.lblSelectedCollectorPrompt.TabIndex = 3;
            this.lblSelectedCollectorPrompt.Text     = "Selected Collector:";
            //
            // lblSearchPrompt
            //
            this.lblSearchPrompt.Anchor   = System.Windows.Forms.AnchorStyles.Right;
            this.lblSearchPrompt.AutoSize = true;
            this.tlpSearchBar.SetRowSpan(this.lblSearchPrompt, 2);
            this.lblSearchPrompt.TabIndex = 0;
            this.lblSearchPrompt.Text     = "Search:";
            //
            // txtSearchInput
            //
            this.txtSearchName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
            this.txtSearchName.Margin       = new System.Windows.Forms.Padding(10, 3, 10, 3);
            this.txtSearchName.TabIndex     = 1;
            this.txtSearchName.MaxLength    = DBControlHelper.MaximumFullNameLength;
            this.txtSearchName.TextChanged += Search_TextChanged;
            //
            // cbxSelectedCollector
            //
            this.cbxSelectedCollector.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.cbxSelectedCollector.FormattingEnabled = true;
            this.cbxSelectedCollector.Margin            = new System.Windows.Forms.Padding(10, 3, 10, 3);
            this.tlpSearchBar.SetRowSpan(this.cbxSelectedCollector, 2);
            this.cbxSelectedCollector.TabIndex      = 4;
            this.cbxSelectedCollector.DropDownStyle = ComboBoxStyle.DropDownList;
            //
            // tlpEditOptions
            //
            this.tlpEditOptions.BackColor   = System.Drawing.Color.White;
            this.tlpEditOptions.ColumnCount = 8;
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 5F));
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpEditOptions.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 5F));
            this.tlpEditOptions.Controls.Add(this.lblEditOptionsPrompt, 1, 0);
            this.tlpEditOptions.Controls.Add(this.btnAddCollector, 2, 0);
            this.tlpEditOptions.Controls.Add(this.btnViewPurchases, 3, 0);
            this.tlpEditOptions.Controls.Add(this.btnRemoveCollector, 4, 0);
            this.tlpEditOptions.Controls.Add(this.btnUpdateCollector, 5, 0);
            this.tlpEditOptions.Controls.Add(this.btnSellToSelected, 6, 0);
            this.tlpEditOptions.Dock     = DockStyle.Fill;
            this.tlpEditOptions.RowCount = 1;
            this.tlpEditOptions.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tlpEditOptions.TabIndex = 1;
            this.tlpEditOptions.Padding  = new System.Windows.Forms.Padding(10, 10, 10, 10);
            this.tlpEditOptions.AutoSize = true;
            //
            // lblEditOptionsPrompt
            //
            this.lblEditOptionsPrompt.Dock     = System.Windows.Forms.DockStyle.None;
            this.lblEditOptionsPrompt.Anchor   = System.Windows.Forms.AnchorStyles.Right;
            this.lblEditOptionsPrompt.AutoSize = true;
            this.lblEditOptionsPrompt.Anchor   = AnchorStyles.Right;
            this.lblEditOptionsPrompt.TabIndex = 1;
            this.lblEditOptionsPrompt.Text     = "Edit Options";
            //
            // btnAddCollector
            //
            this.btnAddCollector.TabIndex = 2;
            this.btnAddCollector.Text     = "Add Collector";
            this.btnAddCollector.Anchor   = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
            this.btnAddCollector.Dock     = DockStyle.None;
            this.btnAddCollector.UseVisualStyleBackColor = true;
            this.btnAddCollector.BackColor = DefaultBackColor;
            this.btnAddCollector.Click    += BtnAddCollector_Click;
            this.btnAddCollector.Margin    = new System.Windows.Forms.Padding(10, 5, 10, 5);
            this.btnAddCollector.AutoSize  = true;
            //
            // btnViewPurchases
            //
            this.btnViewPurchases.TabIndex = 2;
            this.btnViewPurchases.Text     = "View Purchases";
            this.btnViewPurchases.Anchor   = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
            this.btnViewPurchases.Dock     = DockStyle.None;
            this.btnViewPurchases.UseVisualStyleBackColor = true;
            this.btnViewPurchases.BackColor = DefaultBackColor;
            this.btnViewPurchases.Click    += BtnViewPurchases_Click;
            this.btnViewPurchases.Margin    = new System.Windows.Forms.Padding(10, 5, 10, 5);
            this.btnViewPurchases.AutoSize  = true;
            //
            // btnRemoveCollector
            //
            this.btnRemoveCollector.TabIndex = 3;
            this.btnRemoveCollector.Text     = "Remove Collector";
            this.btnRemoveCollector.Anchor   = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
            this.btnRemoveCollector.Dock     = DockStyle.None;
            this.btnRemoveCollector.UseVisualStyleBackColor = true;
            this.btnRemoveCollector.BackColor = DefaultBackColor;
            this.btnRemoveCollector.Margin    = new System.Windows.Forms.Padding(10, 5, 10, 5);
            this.btnRemoveCollector.AutoSize  = true;
            this.btnRemoveCollector.Click    += BtnRemoveCollector_Click;
            //
            // btnUpdateCollector
            //
            this.btnUpdateCollector.TabIndex = 4;
            this.btnUpdateCollector.Text     = "Update Collector";
            this.btnUpdateCollector.Anchor   = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
            this.btnUpdateCollector.Dock     = DockStyle.None;
            this.btnUpdateCollector.Margin   = new System.Windows.Forms.Padding(10, 5, 10, 5);
            this.btnUpdateCollector.UseVisualStyleBackColor = true;
            this.btnUpdateCollector.BackColor = DefaultBackColor;
            this.btnUpdateCollector.Click    += BtnUpdateCollector_Click;
            this.btnUpdateCollector.AutoSize  = true;
            //
            // btnUpdateCollector
            //
            this.btnSellToSelected.TabIndex = 4;
            this.btnSellToSelected.Text     = "Sell to Selected";
            this.btnSellToSelected.Anchor   = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
            this.btnSellToSelected.Dock     = DockStyle.None;
            this.btnSellToSelected.UseVisualStyleBackColor = true;
            this.btnSellToSelected.BackColor = DefaultBackColor;
            this.btnSellToSelected.Click    += BtnSellToSelected_Click;
            this.btnSellToSelected.Margin    = new System.Windows.Forms.Padding(10, 5, 10, 5);
            this.btnSellToSelected.AutoSize  = true;
            //
            // dgvCollectors
            //
            this.dgvCollectors.AutoSizeColumnsMode         = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
            this.dgvCollectors.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvCollectors.Dock          = System.Windows.Forms.DockStyle.Fill;
            this.dgvCollectors.TabIndex      = 2;
            this.dgvCollectors.ReadOnly      = true;
            this.dgvCollectors.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            //
            // mtxtPhoneNumber
            //
            this.mtxtPhoneNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                                | System.Windows.Forms.AnchorStyles.Right)));
            this.mtxtPhoneNumber.Margin         = new System.Windows.Forms.Padding(10, 3, 10, 3);
            this.mtxtPhoneNumber.Mask           = "(000) 000-0000";
            this.mtxtPhoneNumber.TabIndex       = 5;
            this.mtxtPhoneNumber.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;
            this.mtxtPhoneNumber.TextChanged   += Search_TextChanged;
            //
            // lblPhoneNumPrompt
            //
            this.lblPhoneNumPrompt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                  | System.Windows.Forms.AnchorStyles.Right)));
            this.lblPhoneNumPrompt.AutoSize  = true;
            this.lblPhoneNumPrompt.TabIndex  = 6;
            this.lblPhoneNumPrompt.Text      = "Phone Number";
            this.lblPhoneNumPrompt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // lblName
            //
            this.lblName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lblName.AutoSize  = true;
            this.lblName.TabIndex  = 7;
            this.lblName.Text      = "Name";
            this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            #endregion

            this.ReloadData();
            this.dgvCollectors.DataSourceChanged += DgvCollectors_DataSourceChanged;

            this.cbxSelectedCollector.DisplayMember = "ComboBoxDisplay";
            this.cbxSelectedCollector.ValueMember   = "CollectorID";

            this.SetFontSizes(this.Controls);
        }
Beispiel #44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.rectangle2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 2:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.shipping = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.imgCapture = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.licenseCapture = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.billing = ((System.Windows.Controls.TabItem)(target));
                return;

            case 7:
                this.custView = ((System.Windows.Controls.ListView)(target));

            #line 41 "..\..\..\CustomerFrame.xaml"
                this.custView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.custView_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 8:
                this.title = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 10:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.street1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.street2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.state = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.ssnWF = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 19:
                this.ssn = ((System.Windows.Forms.MaskedTextBox)(target));
                return;

            case 20:
                this.label11 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.dobWF = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 22:
                this.dob = ((System.Windows.Forms.MaskedTextBox)(target));
                return;

            case 23:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.zip = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.firstNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.firstName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.lastNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.lastName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.label18 = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.city = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.phone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.weight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.label19 = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.height = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.savecustomer = ((System.Windows.Controls.Button)(target));

            #line 136 "..\..\..\CustomerFrame.xaml"
                this.savecustomer.Click += new System.Windows.RoutedEventHandler(this.savecustomer_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 139 "..\..\..\CustomerFrame.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click_1);

            #line default
            #line hidden
                return;

            case 39:
                this.flag = ((System.Windows.Controls.Button)(target));

            #line 140 "..\..\..\CustomerFrame.xaml"
                this.flag.Click += new System.Windows.RoutedEventHandler(this.flag_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 141 "..\..\..\CustomerFrame.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.customerID = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));

            #line 142 "..\..\..\CustomerFrame.xaml"
                this.customerID.GotFocus += new System.Windows.RoutedEventHandler(this.customerID_GotFocus);

            #line default
            #line hidden
                return;

            case 42:
                this.customerCB = ((System.Windows.Forms.ComboBox)(target));

            #line 143 "..\..\..\CustomerFrame.xaml"
                this.customerCB.GotFocus += new System.EventHandler(this.customerCB_GotFocus);

            #line default
            #line hidden

            #line 143 "..\..\..\CustomerFrame.xaml"
                this.customerCB.SelectedValueChanged += new System.EventHandler(this.custCB_SelectedValueChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 145 "..\..\..\CustomerFrame.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #45
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmdmchinhanh));
     this.dataGrid1       = new System.Windows.Forms.DataGrid();
     this.butKetthuc      = new System.Windows.Forms.Button();
     this.label1          = new System.Windows.Forms.Label();
     this.butMoi          = new System.Windows.Forms.Button();
     this.butLuu          = new System.Windows.Forms.Button();
     this.butBoqua        = new System.Windows.Forms.Button();
     this.butHuy          = new System.Windows.Forms.Button();
     this.butSua          = new System.Windows.Forms.Button();
     this.txtid           = new System.Windows.Forms.TextBox();
     this.txtten          = new System.Windows.Forms.TextBox();
     this.label2          = new System.Windows.Forms.Label();
     this.txtip           = new System.Windows.Forms.TextBox();
     this.label3          = new System.Windows.Forms.Label();
     this.txtdatabaselink = new System.Windows.Forms.TextBox();
     this.label4          = new System.Windows.Forms.Label();
     this.txtviettat      = new System.Windows.Forms.TextBox();
     this.label5          = new System.Windows.Forms.Label();
     this.chkserver       = new System.Windows.Forms.CheckBox();
     this.label6          = new System.Windows.Forms.Label();
     this.mabv            = new MaskedTextBox.MaskedTextBox();
     this.label7          = new System.Windows.Forms.Label();
     this.txtDatabase     = new System.Windows.Forms.TextBox();
     this.label8          = new System.Windows.Forms.Label();
     this.txtTenvien      = new System.Windows.Forms.TextBox();
     this.txtPort         = new System.Windows.Forms.MaskedTextBox();
     this.listTenvien     = new LibList.List();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     this.SuspendLayout();
     //
     // dataGrid1
     //
     this.dataGrid1.AlternatingBackColor = System.Drawing.Color.Lavender;
     this.dataGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.dataGrid1.BackColor           = System.Drawing.Color.WhiteSmoke;
     this.dataGrid1.BackgroundColor     = System.Drawing.SystemColors.Control;
     this.dataGrid1.BorderStyle         = System.Windows.Forms.BorderStyle.None;
     this.dataGrid1.CaptionBackColor    = System.Drawing.SystemColors.Control;
     this.dataGrid1.CaptionFont         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGrid1.CaptionForeColor    = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.DataMember          = "";
     this.dataGrid1.FlatMode            = true;
     this.dataGrid1.Font                = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGrid1.ForeColor           = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.GridLineColor       = System.Drawing.Color.Gainsboro;
     this.dataGrid1.GridLineStyle       = System.Windows.Forms.DataGridLineStyle.None;
     this.dataGrid1.HeaderFont          = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
     this.dataGrid1.HeaderForeColor     = System.Drawing.Color.WhiteSmoke;
     this.dataGrid1.LinkColor           = System.Drawing.Color.Teal;
     this.dataGrid1.Location            = new System.Drawing.Point(8, -15);
     this.dataGrid1.Name                = "dataGrid1";
     this.dataGrid1.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
     this.dataGrid1.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.ReadOnly            = true;
     this.dataGrid1.RowHeaderWidth      = 10;
     this.dataGrid1.SelectionBackColor  = System.Drawing.Color.CadetBlue;
     this.dataGrid1.SelectionForeColor  = System.Drawing.Color.WhiteSmoke;
     this.dataGrid1.Size                = new System.Drawing.Size(624, 332);
     this.dataGrid1.TabIndex            = 9;
     this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged);
     //
     // butKetthuc
     //
     this.butKetthuc.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butKetthuc.Image      = ((System.Drawing.Image)(resources.GetObject("butKetthuc.Image")));
     this.butKetthuc.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butKetthuc.Location   = new System.Drawing.Point(562, 415);
     this.butKetthuc.Name       = "butKetthuc";
     this.butKetthuc.Size       = new System.Drawing.Size(70, 26);
     this.butKetthuc.TabIndex   = 15;
     this.butKetthuc.Text       = "&Kết thúc";
     this.butKetthuc.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.butKetthuc.Click     += new System.EventHandler(this.butKetthuc_Click);
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label1.Location  = new System.Drawing.Point(18, 320);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(61, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Mã số:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // butMoi
     //
     this.butMoi.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butMoi.Image      = ((System.Drawing.Image)(resources.GetObject("butMoi.Image")));
     this.butMoi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butMoi.Location   = new System.Drawing.Point(217, 415);
     this.butMoi.Name       = "butMoi";
     this.butMoi.Size       = new System.Drawing.Size(64, 26);
     this.butMoi.TabIndex   = 12;
     this.butMoi.Text       = "   &Mới";
     this.butMoi.Click     += new System.EventHandler(this.butMoi_Click);
     //
     // butLuu
     //
     this.butLuu.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butLuu.Enabled    = false;
     this.butLuu.Image      = ((System.Drawing.Image)(resources.GetObject("butLuu.Image")));
     this.butLuu.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butLuu.Location   = new System.Drawing.Point(352, 415);
     this.butLuu.Name       = "butLuu";
     this.butLuu.Size       = new System.Drawing.Size(70, 26);
     this.butLuu.TabIndex   = 10;
     this.butLuu.Text       = "    &Lưu";
     this.butLuu.Click     += new System.EventHandler(this.butLuu_Click);
     //
     // butBoqua
     //
     this.butBoqua.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butBoqua.Enabled    = false;
     this.butBoqua.Image      = ((System.Drawing.Image)(resources.GetObject("butBoqua.Image")));
     this.butBoqua.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butBoqua.Location   = new System.Drawing.Point(422, 415);
     this.butBoqua.Name       = "butBoqua";
     this.butBoqua.Size       = new System.Drawing.Size(70, 26);
     this.butBoqua.TabIndex   = 11;
     this.butBoqua.Text       = "&Bỏ qua";
     this.butBoqua.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.butBoqua.Click     += new System.EventHandler(this.butBoqua_Click);
     //
     // butHuy
     //
     this.butHuy.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butHuy.Image      = ((System.Drawing.Image)(resources.GetObject("butHuy.Image")));
     this.butHuy.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butHuy.Location   = new System.Drawing.Point(492, 415);
     this.butHuy.Name       = "butHuy";
     this.butHuy.Size       = new System.Drawing.Size(70, 26);
     this.butHuy.TabIndex   = 13;
     this.butHuy.Text       = "     &Hủy";
     this.butHuy.Click     += new System.EventHandler(this.butHuy_Click);
     //
     // butSua
     //
     this.butSua.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butSua.Image      = ((System.Drawing.Image)(resources.GetObject("butSua.Image")));
     this.butSua.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butSua.Location   = new System.Drawing.Point(282, 415);
     this.butSua.Name       = "butSua";
     this.butSua.Size       = new System.Drawing.Size(70, 26);
     this.butSua.TabIndex   = 14;
     this.butSua.Text       = "   &Sửa";
     this.butSua.Click     += new System.EventHandler(this.butSua_Click);
     //
     // txtid
     //
     this.txtid.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtid.BackColor = System.Drawing.Color.White;
     this.txtid.Enabled   = false;
     this.txtid.Location  = new System.Drawing.Point(79, 323);
     this.txtid.Name      = "txtid";
     this.txtid.Size      = new System.Drawing.Size(51, 20);
     this.txtid.TabIndex  = 0;
     this.txtid.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // txtten
     //
     this.txtten.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.txtten.BackColor = System.Drawing.Color.White;
     this.txtten.Enabled   = false;
     this.txtten.Location  = new System.Drawing.Point(181, 323);
     this.txtten.Name      = "txtten";
     this.txtten.Size      = new System.Drawing.Size(451, 20);
     this.txtten.TabIndex  = 1;
     this.txtten.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Location  = new System.Drawing.Point(146, 320);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(32, 23);
     this.label2.TabIndex  = 12;
     this.label2.Text      = "Tên:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtip
     //
     this.txtip.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txtip.BackColor = System.Drawing.Color.White;
     this.txtip.Enabled   = false;
     this.txtip.Location  = new System.Drawing.Point(467, 367);
     this.txtip.Name      = "txtip";
     this.txtip.Size      = new System.Drawing.Size(165, 20);
     this.txtip.TabIndex  = 5;
     this.txtip.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // label3
     //
     this.label3.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location  = new System.Drawing.Point(434, 365);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(32, 23);
     this.label3.TabIndex  = 16;
     this.label3.Text      = "IP :";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtdatabaselink
     //
     this.txtdatabaselink.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.txtdatabaselink.BackColor = System.Drawing.Color.White;
     this.txtdatabaselink.Enabled   = false;
     this.txtdatabaselink.Location  = new System.Drawing.Point(79, 367);
     this.txtdatabaselink.Name      = "txtdatabaselink";
     this.txtdatabaselink.Size      = new System.Drawing.Size(354, 20);
     this.txtdatabaselink.TabIndex  = 4;
     this.txtdatabaselink.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // label4
     //
     this.label4.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label4.Location  = new System.Drawing.Point(-6, 365);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(85, 23);
     this.label4.TabIndex  = 14;
     this.label4.Text      = "Database link:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtviettat
     //
     this.txtviettat.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtviettat.BackColor       = System.Drawing.Color.White;
     this.txtviettat.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
     this.txtviettat.Enabled         = false;
     this.txtviettat.Location        = new System.Drawing.Point(79, 389);
     this.txtviettat.Name            = "txtviettat";
     this.txtviettat.Size            = new System.Drawing.Size(51, 20);
     this.txtviettat.TabIndex        = 6;
     this.txtviettat.KeyDown        += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // label5
     //
     this.label5.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label5.Location  = new System.Drawing.Point(14, 387);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(64, 23);
     this.label5.TabIndex  = 18;
     this.label5.Text      = "Viết tắt:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // chkserver
     //
     this.chkserver.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.chkserver.AutoSize = true;
     this.chkserver.Location = new System.Drawing.Point(528, 391);
     this.chkserver.Name     = "chkserver";
     this.chkserver.Size     = new System.Drawing.Size(104, 17);
     this.chkserver.TabIndex = 9;
     this.chkserver.Text     = "Server trung tâm";
     this.chkserver.UseVisualStyleBackColor = true;
     this.chkserver.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // label6
     //
     this.label6.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label6.Location  = new System.Drawing.Point(5, 344);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(80, 21);
     this.label6.TabIndex  = 19;
     this.label6.Text      = "Mã chi nhánh:";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // mabv
     //
     this.mabv.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.mabv.BackColor  = System.Drawing.Color.White;
     this.mabv.Enabled    = false;
     this.mabv.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mabv.Location   = new System.Drawing.Point(79, 345);
     this.mabv.Masked     = MaskedTextBox.MaskedTextBox.Mask.None;
     this.mabv.MaxLength  = 8;
     this.mabv.Name       = "mabv";
     this.mabv.Size       = new System.Drawing.Size(97, 21);
     this.mabv.TabIndex   = 2;
     this.mabv.Validated += new System.EventHandler(this.mabv_Validated);
     this.mabv.KeyDown   += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // label7
     //
     this.label7.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label7.Location  = new System.Drawing.Point(434, 388);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(32, 20);
     this.label7.TabIndex  = 77;
     this.label7.Text      = "Port:";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtDatabase
     //
     this.txtDatabase.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.txtDatabase.BackColor = System.Drawing.Color.White;
     this.txtDatabase.Enabled   = false;
     this.txtDatabase.Location  = new System.Drawing.Point(181, 389);
     this.txtDatabase.Name      = "txtDatabase";
     this.txtDatabase.Size      = new System.Drawing.Size(252, 20);
     this.txtDatabase.TabIndex  = 7;
     this.txtDatabase.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // label8
     //
     this.label8.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label8.Location  = new System.Drawing.Point(128, 387);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(57, 23);
     this.label8.TabIndex  = 80;
     this.label8.Text      = "Database:";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtTenvien
     //
     this.txtTenvien.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.txtTenvien.BackColor    = System.Drawing.Color.White;
     this.txtTenvien.Enabled      = false;
     this.txtTenvien.Location     = new System.Drawing.Point(181, 345);
     this.txtTenvien.Name         = "txtTenvien";
     this.txtTenvien.Size         = new System.Drawing.Size(451, 20);
     this.txtTenvien.TabIndex     = 3;
     this.txtTenvien.TextChanged += new System.EventHandler(this.txtTenvien_TextChanged);
     this.txtTenvien.Validated   += new System.EventHandler(this.txtTenvien_Validated);
     this.txtTenvien.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.txtTenvien_KeyDown);
     //
     // txtPort
     //
     this.txtPort.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txtPort.BackColor  = System.Drawing.Color.White;
     this.txtPort.Enabled    = false;
     this.txtPort.Location   = new System.Drawing.Point(467, 388);
     this.txtPort.Mask       = "0000";
     this.txtPort.Name       = "txtPort";
     this.txtPort.PromptChar = ' ';
     this.txtPort.Size       = new System.Drawing.Size(55, 20);
     this.txtPort.TabIndex   = 8;
     this.txtPort.KeyDown   += new System.Windows.Forms.KeyEventHandler(this.tenbv_KeyDown);
     //
     // listTenvien
     //
     this.listTenvien.BackColor          = System.Drawing.SystemColors.Info;
     this.listTenvien.ColumnCount        = 0;
     this.listTenvien.FormattingEnabled  = true;
     this.listTenvien.Location           = new System.Drawing.Point(89, 414);
     this.listTenvien.MatchBufferTimeOut = 1000;
     this.listTenvien.MatchEntryStyle    = AsYetUnnamed.MatchEntryStyle.FirstLetterInsensitive;
     this.listTenvien.Name       = "listTenvien";
     this.listTenvien.Size       = new System.Drawing.Size(75, 17);
     this.listTenvien.TabIndex   = 82;
     this.listTenvien.TextIndex  = -1;
     this.listTenvien.TextMember = null;
     this.listTenvien.ValueIndex = -1;
     this.listTenvien.Visible    = false;
     //
     // frmdmchinhanh
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(644, 443);
     this.Controls.Add(this.txtPort);
     this.Controls.Add(this.listTenvien);
     this.Controls.Add(this.txtTenvien);
     this.Controls.Add(this.txtviettat);
     this.Controls.Add(this.txtDatabase);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.mabv);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.chkserver);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.txtip);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.txtdatabaselink);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.txtten);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.txtid);
     this.Controls.Add(this.butSua);
     this.Controls.Add(this.butHuy);
     this.Controls.Add(this.butBoqua);
     this.Controls.Add(this.butLuu);
     this.Controls.Add(this.butMoi);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.butKetthuc);
     this.Controls.Add(this.dataGrid1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.KeyPreview    = true;
     this.Name          = "frmdmchinhanh";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Danh mục chi nhánh";
     this.Load         += new System.EventHandler(this.frmdmchinhanh_Load);
     this.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.frmdmchinhanh_KeyDown);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #46
0
 private void InitializeComponent()
 {
     this.pictureBox5    = new System.Windows.Forms.PictureBox();
     this.label15        = new System.Windows.Forms.Label();
     this.tbApellido     = new System.Windows.Forms.TextBox();
     this.label5         = new System.Windows.Forms.Label();
     this.label12        = new System.Windows.Forms.Label();
     this.label14        = new System.Windows.Forms.Label();
     this.tbBanco        = new System.Windows.Forms.ComboBox();
     this.label13        = new System.Windows.Forms.Label();
     this.tbTarjeta      = new System.Windows.Forms.MaskedTextBox();
     this.tbNombre       = new System.Windows.Forms.TextBox();
     this.label4         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.label1         = new System.Windows.Forms.Label();
     this.btnAceptar     = new System.Windows.Forms.Button();
     this.btnCerrar      = new System.Windows.Forms.Button();
     this.tbFechaTarjeta = new System.Windows.Forms.DateTimePicker();
     this.Encabezado.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
     this.SuspendLayout();
     //
     // Encabezado
     //
     this.Encabezado.Controls.Add(this.pictureBox5);
     this.Encabezado.Controls.Add(this.label15);
     this.Encabezado.Size = new System.Drawing.Size(517, 93);
     //
     // pictureBox5
     //
     this.pictureBox5.BackColor             = System.Drawing.Color.Transparent;
     this.pictureBox5.BackgroundImage       = global::Presentacion.Properties.Resources.IconoAñadirTarjeta;
     this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBox5.Location = new System.Drawing.Point(9, 16);
     this.pictureBox5.Margin   = new System.Windows.Forms.Padding(0);
     this.pictureBox5.Name     = "pictureBox5";
     this.pictureBox5.Size     = new System.Drawing.Size(60, 60);
     this.pictureBox5.TabIndex = 8;
     this.pictureBox5.TabStop  = false;
     //
     // label15
     //
     this.label15.AutoSize  = true;
     this.label15.BackColor = System.Drawing.Color.Transparent;
     this.label15.Font      = new System.Drawing.Font("Arial Rounded MT Bold", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label15.ForeColor = System.Drawing.Color.MidnightBlue;
     this.label15.Location  = new System.Drawing.Point(83, 34);
     this.label15.Name      = "label15";
     this.label15.Size      = new System.Drawing.Size(168, 24);
     this.label15.TabIndex  = 7;
     this.label15.Text      = "Pantalla Tarjeta";
     //
     // tbApellido
     //
     this.tbApellido.Location         = new System.Drawing.Point(274, 156);
     this.tbApellido.MaxLength        = 50;
     this.tbApellido.Name             = "tbApellido";
     this.tbApellido.ShortcutsEnabled = false;
     this.tbApellido.Size             = new System.Drawing.Size(193, 21);
     this.tbApellido.TabIndex         = 2;
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(271, 136);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(85, 17);
     this.label5.TabIndex = 80;
     this.label5.Text     = "* Apellido(s)";
     //
     // label12
     //
     this.label12.AutoSize = true;
     this.label12.Font     = new System.Drawing.Font("Arial Rounded MT Bold", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label12.Location = new System.Drawing.Point(12, 57);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(492, 17);
     this.label12.TabIndex = 79;
     this.label12.Text     = "Favor de ingresar la informacion en los campos correspondientes.";
     //
     // label14
     //
     this.label14.AutoSize = true;
     this.label14.Font     = new System.Drawing.Font("Arial Rounded MT Bold", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label14.Location = new System.Drawing.Point(422, 416);
     this.label14.Name     = "label14";
     this.label14.Size     = new System.Drawing.Size(81, 18);
     this.label14.TabIndex = 75;
     this.label14.Text     = "Cancelar";
     //
     // tbBanco
     //
     this.tbBanco.FormattingEnabled = true;
     this.tbBanco.Location          = new System.Drawing.Point(274, 223);
     this.tbBanco.MaxLength         = 50;
     this.tbBanco.Name                  = "tbBanco";
     this.tbBanco.Size                  = new System.Drawing.Size(191, 24);
     this.tbBanco.TabIndex              = 4;
     this.tbBanco.SelectedIndexChanged += new System.EventHandler(this.tbBanco_SelectedIndexChanged);
     //
     // label13
     //
     this.label13.AutoSize = true;
     this.label13.Font     = new System.Drawing.Font("Arial Rounded MT Bold", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label13.Location = new System.Drawing.Point(325, 416);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(73, 18);
     this.label13.TabIndex = 76;
     this.label13.Text     = "Aceptar";
     //
     // tbTarjeta
     //
     this.tbTarjeta.Font             = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbTarjeta.Location         = new System.Drawing.Point(50, 226);
     this.tbTarjeta.Mask             = "0000 - 0000 - 0000 - 0000 - 0000";
     this.tbTarjeta.Name             = "tbTarjeta";
     this.tbTarjeta.ShortcutsEnabled = false;
     this.tbTarjeta.Size             = new System.Drawing.Size(193, 21);
     this.tbTarjeta.TabIndex         = 3;
     this.tbTarjeta.TextAlign        = System.Windows.Forms.HorizontalAlignment.Center;
     this.tbTarjeta.TextMaskFormat   = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
     //
     // tbNombre
     //
     this.tbNombre.Location         = new System.Drawing.Point(52, 156);
     this.tbNombre.MaxLength        = 50;
     this.tbNombre.Name             = "tbNombre";
     this.tbNombre.ShortcutsEnabled = false;
     this.tbNombre.Size             = new System.Drawing.Size(193, 21);
     this.tbNombre.TabIndex         = 1;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(51, 283);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(167, 17);
     this.label4.TabIndex = 69;
     this.label4.Text     = "* Fecha de vencimiento:";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(269, 203);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(63, 17);
     this.label3.TabIndex = 68;
     this.label3.Text     = "* Banco:";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(50, 203);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(158, 17);
     this.label2.TabIndex = 70;
     this.label2.Text     = "* Numero de la tarjeta:";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(52, 136);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(85, 17);
     this.label1.TabIndex = 67;
     this.label1.Text     = "* Nombre(s)";
     //
     // btnAceptar
     //
     this.btnAceptar.BackgroundImage                   = global::Presentacion.Properties.Resources.IconoAceptar;
     this.btnAceptar.BackgroundImageLayout             = System.Windows.Forms.ImageLayout.Stretch;
     this.btnAceptar.FlatAppearance.BorderSize         = 0;
     this.btnAceptar.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnAceptar.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnAceptar.Location  = new System.Drawing.Point(330, 353);
     this.btnAceptar.Name      = "btnAceptar";
     this.btnAceptar.Size      = new System.Drawing.Size(62, 58);
     this.btnAceptar.TabIndex  = 6;
     this.btnAceptar.UseVisualStyleBackColor = true;
     this.btnAceptar.MouseEnter += new System.EventHandler(this.btnMouseOver);
     this.btnAceptar.MouseLeave += new System.EventHandler(this.btnMouseLeft);
     //
     // btnCerrar
     //
     this.btnCerrar.BackgroundImage                   = global::Presentacion.Properties.Resources.IconoCancelar;
     this.btnCerrar.BackgroundImageLayout             = System.Windows.Forms.ImageLayout.Stretch;
     this.btnCerrar.FlatAppearance.BorderSize         = 0;
     this.btnCerrar.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
     this.btnCerrar.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
     this.btnCerrar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnCerrar.Location  = new System.Drawing.Point(431, 353);
     this.btnCerrar.Name      = "btnCerrar";
     this.btnCerrar.Size      = new System.Drawing.Size(62, 58);
     this.btnCerrar.TabIndex  = 7;
     this.btnCerrar.UseVisualStyleBackColor = true;
     this.btnCerrar.MouseEnter += new System.EventHandler(this.btnMouseOver);
     this.btnCerrar.MouseLeave += new System.EventHandler(this.btnMouseLeft);
     //
     // tbFechaTarjeta
     //
     this.tbFechaTarjeta.CustomFormat = "MM/yy";
     this.tbFechaTarjeta.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.tbFechaTarjeta.Location     = new System.Drawing.Point(50, 304);
     this.tbFechaTarjeta.MinDate      = new System.DateTime(2017, 3, 30, 0, 0, 0, 0);
     this.tbFechaTarjeta.Name         = "tbFechaTarjeta";
     this.tbFechaTarjeta.Size         = new System.Drawing.Size(87, 21);
     this.tbFechaTarjeta.TabIndex     = 5;
     //
     // PantallaTarjeta
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 16F);
     this.ClientSize          = new System.Drawing.Size(517, 451);
     this.Controls.Add(this.tbFechaTarjeta);
     this.Controls.Add(this.btnCerrar);
     this.Controls.Add(this.btnAceptar);
     this.Controls.Add(this.tbApellido);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label12);
     this.Controls.Add(this.label14);
     this.Controls.Add(this.tbBanco);
     this.Controls.Add(this.label13);
     this.Controls.Add(this.tbTarjeta);
     this.Controls.Add(this.tbNombre);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Name = "PantallaTarjeta";
     this.Text = "Pantalla Tarjeta";
     this.Controls.SetChildIndex(this.label1, 0);
     this.Controls.SetChildIndex(this.label2, 0);
     this.Controls.SetChildIndex(this.label3, 0);
     this.Controls.SetChildIndex(this.label4, 0);
     this.Controls.SetChildIndex(this.tbNombre, 0);
     this.Controls.SetChildIndex(this.tbTarjeta, 0);
     this.Controls.SetChildIndex(this.label13, 0);
     this.Controls.SetChildIndex(this.tbBanco, 0);
     this.Controls.SetChildIndex(this.label14, 0);
     this.Controls.SetChildIndex(this.label12, 0);
     this.Controls.SetChildIndex(this.label5, 0);
     this.Controls.SetChildIndex(this.tbApellido, 0);
     this.Controls.SetChildIndex(this.Encabezado, 0);
     this.Controls.SetChildIndex(this.btnAceptar, 0);
     this.Controls.SetChildIndex(this.btnCerrar, 0);
     this.Controls.SetChildIndex(this.tbFechaTarjeta, 0);
     this.Encabezado.ResumeLayout(false);
     this.Encabezado.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 private void Diseño_Forma()
 {
     #region Creando controles de la forma
     this.components             = new System.ComponentModel.Container();
     this.lbl_CorreoElectronico  = new System.Windows.Forms.Label();
     this.lbl_Contraseña         = new System.Windows.Forms.Label();
     this.lbl_Confirmacion       = new System.Windows.Forms.Label();
     this.lbl_Telefono           = new System.Windows.Forms.Label();
     this.bttn_Guardar           = new System.Windows.Forms.Button();
     this.errorProvider1         = new System.Windows.Forms.ErrorProvider(this.components);
     this.txt_CorreoElectronico  = new System.Windows.Forms.TextBox();
     this.txt_Contraseña         = new System.Windows.Forms.TextBox();
     this.txt_Confirmacion       = new System.Windows.Forms.TextBox();
     this.maskedTextBox_Telefono = new System.Windows.Forms.MaskedTextBox();
     this.combo_Servidor         = new System.Windows.Forms.ComboBox();
     this.lbl_Ser = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
     this.SuspendLayout();
     #endregion
     //
     // lbl_CorreoElectronico
     //
     this.lbl_CorreoElectronico.AutoSize = true;
     this.lbl_CorreoElectronico.Location = new System.Drawing.Point(25, 31);
     this.lbl_CorreoElectronico.Name     = "lbl_CorreoElectronico";
     this.lbl_CorreoElectronico.Size     = new System.Drawing.Size(93, 13);
     this.lbl_CorreoElectronico.TabIndex = 0;
     this.lbl_CorreoElectronico.Text     = "Correo electronico";
     //
     // lbl_Contraseña
     //
     this.lbl_Contraseña.AutoSize = true;
     this.lbl_Contraseña.Location = new System.Drawing.Point(25, 66);
     this.lbl_Contraseña.Name     = "lbl_Contraseña";
     this.lbl_Contraseña.Size     = new System.Drawing.Size(61, 13);
     this.lbl_Contraseña.TabIndex = 1;
     this.lbl_Contraseña.Text     = "Contraseña";
     //
     // lbl_Confirmacion
     //
     this.lbl_Confirmacion.AutoSize = true;
     this.lbl_Confirmacion.Location = new System.Drawing.Point(25, 101);
     this.lbl_Confirmacion.Name     = "lbl_Confirmacion";
     this.lbl_Confirmacion.Size     = new System.Drawing.Size(108, 13);
     this.lbl_Confirmacion.TabIndex = 2;
     this.lbl_Confirmacion.Text     = "Confirmar Contraseña";
     //
     // lbl_Telefono
     //
     this.lbl_Telefono.AutoSize = true;
     this.lbl_Telefono.Location = new System.Drawing.Point(25, 136);
     this.lbl_Telefono.Name     = "lbl_Telefono";
     this.lbl_Telefono.Size     = new System.Drawing.Size(49, 13);
     this.lbl_Telefono.TabIndex = 3;
     this.lbl_Telefono.Text     = "Teléfono";
     //
     // bttn_Guardar
     //
     this.bttn_Guardar.Location = new System.Drawing.Point(270, 126);
     this.bttn_Guardar.Name     = "bttn_Guardar";
     this.bttn_Guardar.Size     = new System.Drawing.Size(75, 23);
     this.bttn_Guardar.TabIndex = 4;
     this.bttn_Guardar.Text     = "Guardar";
     this.bttn_Guardar.UseVisualStyleBackColor = true;
     this.bttn_Guardar.Click += new System.EventHandler(this.bttn_Guardar_Click);
     //
     // errorProvider1
     //
     this.errorProvider1.ContainerControl = this;
     //
     // txt_CorreoElectronico
     //
     this.txt_CorreoElectronico.Location  = new System.Drawing.Point(139, 24);
     this.txt_CorreoElectronico.MaxLength = 30;
     this.txt_CorreoElectronico.Name      = "txt_CorreoElectronico";
     this.txt_CorreoElectronico.Size      = new System.Drawing.Size(100, 20);
     this.txt_CorreoElectronico.TabIndex  = 5;
     //
     // txt_Contraseña
     //
     this.txt_Contraseña.Location     = new System.Drawing.Point(139, 59);
     this.txt_Contraseña.MaxLength    = 15;
     this.txt_Contraseña.Name         = "txt_Contraseña";
     this.txt_Contraseña.PasswordChar = '*';
     this.txt_Contraseña.Size         = new System.Drawing.Size(100, 20);
     this.txt_Contraseña.TabIndex     = 6;
     //
     // txt_Confirmacion
     //
     this.txt_Confirmacion.Location     = new System.Drawing.Point(139, 94);
     this.txt_Confirmacion.MaxLength    = 15;
     this.txt_Confirmacion.Name         = "txt_Confirmacion";
     this.txt_Confirmacion.PasswordChar = '*';
     this.txt_Confirmacion.Size         = new System.Drawing.Size(100, 20);
     this.txt_Confirmacion.TabIndex     = 7;
     //
     // maskedTextBox_Telefono
     //
     this.maskedTextBox_Telefono.Location = new System.Drawing.Point(139, 129);
     this.maskedTextBox_Telefono.Mask     = "000-000-0000";
     this.maskedTextBox_Telefono.Name     = "maskedTextBox_Telefono";
     this.maskedTextBox_Telefono.Size     = new System.Drawing.Size(100, 20);
     this.maskedTextBox_Telefono.TabIndex = 8;
     //
     // combo_Servidor
     //
     this.combo_Servidor.FormattingEnabled = true;
     this.combo_Servidor.Items.AddRange(new object[] {
         "hotmail.com",
         "live.com.mx",
         "gmail.com",
         "yahoo.com.mx"
     });
     this.combo_Servidor.Location  = new System.Drawing.Point(270, 23);
     this.combo_Servidor.Name      = "combo_Servidor";
     this.combo_Servidor.Size      = new System.Drawing.Size(121, 21);
     this.combo_Servidor.TabIndex  = 9;
     this.combo_Servidor.KeyPress += new KeyPressEventHandler(NoescrituracomboBox_KeyPress);
     //
     // lbl_Ser
     //
     this.lbl_Ser.AutoSize = true;
     this.lbl_Ser.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbl_Ser.Location = new System.Drawing.Point(245, 28);
     this.lbl_Ser.Name     = "lbl_Ser";
     this.lbl_Ser.Size     = new System.Drawing.Size(19, 13);
     this.lbl_Ser.TabIndex = 10;
     this.lbl_Ser.Text     = "@";
     //
     // Informacion
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
     this.ClientSize          = new System.Drawing.Size(409, 166);
     this.Controls.Add(this.lbl_Ser);
     this.Controls.Add(this.combo_Servidor);
     this.Controls.Add(this.maskedTextBox_Telefono);
     this.Controls.Add(this.txt_Confirmacion);
     this.Controls.Add(this.txt_Contraseña);
     this.Controls.Add(this.txt_CorreoElectronico);
     this.Controls.Add(this.bttn_Guardar);
     this.Controls.Add(this.lbl_Telefono);
     this.Controls.Add(this.lbl_Confirmacion);
     this.Controls.Add(this.lbl_Contraseña);
     this.Controls.Add(this.lbl_CorreoElectronico);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.FormClosing    += new System.Windows.Forms.FormClosingEventHandler(Informacion_FormClosing);
     this.Icon            = global::Sistema_Shajobe.Properties.Resources.Vista_ICO;
     this.MaximizeBox     = false;
     this.MaximumSize     = new System.Drawing.Size(415, 190);
     this.MinimizeBox     = false;
     this.MinimumSize     = new System.Drawing.Size(415, 190);
     this.Name            = "Informacion";
     this.Text            = "Información del negocio";
     this.Load           += new System.EventHandler(this.Informacion_Load);
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #48
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmTscdsc));
     this.label1         = new System.Windows.Forms.Label();
     this.ten            = new System.Windows.Forms.TextBox();
     this.label2         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.label4         = new System.Windows.Forms.Label();
     this.ngay           = new System.Windows.Forms.DateTimePicker();
     this.noisc          = new System.Windows.Forms.ComboBox();
     this.diengiai       = new System.Windows.Forms.TextBox();
     this.butLuu         = new System.Windows.Forms.Button();
     this.butKetthuc     = new System.Windows.Forms.Button();
     this.nguoidenghi    = new System.Windows.Forms.TextBox();
     this.label5         = new System.Windows.Forms.Label();
     this.label6         = new System.Windows.Forms.Label();
     this.sogio          = new System.Windows.Forms.NumericUpDown();
     this.nguoichungkien = new System.Windows.Forms.TextBox();
     this.label7         = new System.Windows.Forms.Label();
     this.label8         = new System.Windows.Forms.Label();
     this.tyle           = new System.Windows.Forms.TextBox();
     this.pic            = new System.Windows.Forms.PictureBox();
     this.butChon        = new System.Windows.Forms.Button();
     this.panel1         = new System.Windows.Forms.Panel();
     this.nguoisuachua   = new System.Windows.Forms.TextBox();
     this.label9         = new System.Windows.Forms.Label();
     this.nguoigiamsat   = new System.Windows.Forms.TextBox();
     this.label10        = new System.Windows.Forms.Label();
     this.vanban         = new System.Windows.Forms.ComboBox();
     this.butMoi         = new System.Windows.Forms.Button();
     this.butUpdate      = new System.Windows.Forms.Button();
     this.butXoa         = new System.Windows.Forms.Button();
     this.sausc          = new System.Windows.Forms.TextBox();
     this.label11        = new System.Windows.Forms.Label();
     this.label12        = new System.Windows.Forms.Label();
     this.txtngaynhanve  = new System.Windows.Forms.MaskedTextBox();
     ((System.ComponentModel.ISupportInitialize)(this.sogio)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pic)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(43, 5);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(80, 23);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "Tên tài sản :";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // ten
     //
     this.ten.BackColor = System.Drawing.SystemColors.HighlightText;
     this.ten.Enabled   = false;
     this.ten.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ten.Location  = new System.Drawing.Point(121, 5);
     this.ten.Name      = "ten";
     this.ten.Size      = new System.Drawing.Size(236, 21);
     this.ten.TabIndex  = 1;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(43, 26);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(80, 23);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "Ngày :";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(43, 115);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(80, 23);
     this.label3.TabIndex  = 10;
     this.label3.Text      = "Nơi sửa chữa :";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(22, 53);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(101, 23);
     this.label4.TabIndex  = 6;
     this.label4.Text      = "Tình hình thiết bị :";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // ngay
     //
     this.ngay.CustomFormat = "dd/MM/yyyy";
     this.ngay.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ngay.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.ngay.Location     = new System.Drawing.Point(122, 28);
     this.ngay.Name         = "ngay";
     this.ngay.Size         = new System.Drawing.Size(80, 21);
     this.ngay.TabIndex     = 3;
     this.ngay.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     //
     // noisc
     //
     this.noisc.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.noisc.Font          = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.noisc.Location      = new System.Drawing.Point(121, 117);
     this.noisc.Name          = "noisc";
     this.noisc.Size          = new System.Drawing.Size(236, 21);
     this.noisc.TabIndex      = 11;
     this.noisc.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     //
     // diengiai
     //
     this.diengiai.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.diengiai.Location   = new System.Drawing.Point(121, 52);
     this.diengiai.Multiline  = true;
     this.diengiai.Name       = "diengiai";
     this.diengiai.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.diengiai.Size       = new System.Drawing.Size(236, 39);
     this.diengiai.TabIndex   = 7;
     //
     // butLuu
     //
     this.butLuu.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butLuu.Location   = new System.Drawing.Point(144, 306);
     this.butLuu.Name       = "butLuu";
     this.butLuu.Size       = new System.Drawing.Size(60, 25);
     this.butLuu.TabIndex   = 22;
     this.butLuu.Text       = "&Lưu";
     this.butLuu.Click     += new System.EventHandler(this.butLuu_Click);
     //
     // butKetthuc
     //
     this.butKetthuc.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butKetthuc.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butKetthuc.Location     = new System.Drawing.Point(206, 306);
     this.butKetthuc.Name         = "butKetthuc";
     this.butKetthuc.Size         = new System.Drawing.Size(60, 25);
     this.butKetthuc.TabIndex     = 23;
     this.butKetthuc.Text         = "Kết thúc";
     this.butKetthuc.Click       += new System.EventHandler(this.butKetthuc_Click);
     //
     // nguoidenghi
     //
     this.nguoidenghi.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nguoidenghi.Location = new System.Drawing.Point(121, 94);
     this.nguoidenghi.Name     = "nguoidenghi";
     this.nguoidenghi.Size     = new System.Drawing.Size(236, 21);
     this.nguoidenghi.TabIndex = 9;
     this.nguoidenghi.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     //
     // label5
     //
     this.label5.Location  = new System.Drawing.Point(19, 94);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(104, 23);
     this.label5.TabIndex  = 8;
     this.label5.Text      = "Nơi đề nghị sửa :";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label6
     //
     this.label6.Location  = new System.Drawing.Point(206, 26);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(100, 23);
     this.label6.TabIndex  = 4;
     this.label6.Text      = "Số giờ đã sử dụng :";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // sogio
     //
     this.sogio.BackColor = System.Drawing.SystemColors.HighlightText;
     this.sogio.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sogio.Location  = new System.Drawing.Point(310, 28);
     this.sogio.Maximum   = new decimal(new int[] {
         1410065407,
         2,
         0,
         0
     });
     this.sogio.Name     = "sogio";
     this.sogio.Size     = new System.Drawing.Size(47, 21);
     this.sogio.TabIndex = 5;
     this.sogio.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     //
     // nguoichungkien
     //
     this.nguoichungkien.BackColor = System.Drawing.SystemColors.HighlightText;
     this.nguoichungkien.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nguoichungkien.Location  = new System.Drawing.Point(121, 186);
     this.nguoichungkien.Name      = "nguoichungkien";
     this.nguoichungkien.Size      = new System.Drawing.Size(236, 21);
     this.nguoichungkien.TabIndex  = 17;
     this.nguoichungkien.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     //
     // label7
     //
     this.label7.Location  = new System.Drawing.Point(19, 186);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(104, 23);
     this.label7.TabIndex  = 16;
     this.label7.Text      = "Người chứng kiến :";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label8
     //
     this.label8.Location  = new System.Drawing.Point(19, 209);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(104, 23);
     this.label8.TabIndex  = 18;
     this.label8.Text      = "Tỉ lệ % chất lượng :";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // tyle
     //
     this.tyle.BackColor = System.Drawing.SystemColors.HighlightText;
     this.tyle.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tyle.Location  = new System.Drawing.Point(121, 209);
     this.tyle.Name      = "tyle";
     this.tyle.Size      = new System.Drawing.Size(61, 21);
     this.tyle.TabIndex  = 19;
     this.tyle.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.tyle.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     this.tyle.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tyle_KeyPress);
     //
     // pic
     //
     this.pic.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.pic.Image       = ((System.Drawing.Image)(resources.GetObject("pic.Image")));
     this.pic.Location    = new System.Drawing.Point(0, 0);
     this.pic.Name        = "pic";
     this.pic.Size        = new System.Drawing.Size(74, 74);
     this.pic.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pic.TabIndex    = 254;
     this.pic.TabStop     = false;
     //
     // butChon
     //
     this.butChon.Location = new System.Drawing.Point(557, 310);
     this.butChon.Name     = "butChon";
     this.butChon.Size     = new System.Drawing.Size(93, 23);
     this.butChon.TabIndex = 255;
     this.butChon.Text     = "Chọn văn bản";
     this.butChon.UseVisualStyleBackColor = true;
     this.butChon.Click += new System.EventHandler(this.butChon_Click);
     //
     // panel1
     //
     this.panel1.AutoScroll = true;
     this.panel1.Controls.Add(this.pic);
     this.panel1.Location = new System.Drawing.Point(361, 26);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(351, 277);
     this.panel1.TabIndex = 256;
     //
     // nguoisuachua
     //
     this.nguoisuachua.BackColor = System.Drawing.SystemColors.HighlightText;
     this.nguoisuachua.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nguoisuachua.Location  = new System.Drawing.Point(121, 140);
     this.nguoisuachua.Name      = "nguoisuachua";
     this.nguoisuachua.Size      = new System.Drawing.Size(236, 21);
     this.nguoisuachua.TabIndex  = 13;
     this.nguoisuachua.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     //
     // label9
     //
     this.label9.Location  = new System.Drawing.Point(19, 141);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(104, 23);
     this.label9.TabIndex  = 12;
     this.label9.Text      = "Người sửa chữa :";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // nguoigiamsat
     //
     this.nguoigiamsat.BackColor = System.Drawing.SystemColors.HighlightText;
     this.nguoigiamsat.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.nguoigiamsat.Location  = new System.Drawing.Point(121, 163);
     this.nguoigiamsat.Name      = "nguoigiamsat";
     this.nguoigiamsat.Size      = new System.Drawing.Size(236, 21);
     this.nguoigiamsat.TabIndex  = 15;
     this.nguoigiamsat.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
     //
     // label10
     //
     this.label10.Location  = new System.Drawing.Point(19, 164);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(104, 23);
     this.label10.TabIndex  = 14;
     this.label10.Text      = "Người giám sát :";
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // vanban
     //
     this.vanban.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.vanban.Font                  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.vanban.FormattingEnabled     = true;
     this.vanban.Location              = new System.Drawing.Point(361, 5);
     this.vanban.Name                  = "vanban";
     this.vanban.Size                  = new System.Drawing.Size(352, 21);
     this.vanban.TabIndex              = 257;
     this.vanban.SelectedIndexChanged += new System.EventHandler(this.vanban_SelectedIndexChanged);
     //
     // butMoi
     //
     this.butMoi.Location = new System.Drawing.Point(422, 310);
     this.butMoi.Name     = "butMoi";
     this.butMoi.Size     = new System.Drawing.Size(44, 23);
     this.butMoi.TabIndex = 258;
     this.butMoi.Text     = "Mới";
     this.butMoi.UseVisualStyleBackColor = true;
     this.butMoi.Click += new System.EventHandler(this.butMoi_Click);
     //
     // butUpdate
     //
     this.butUpdate.Location = new System.Drawing.Point(467, 310);
     this.butUpdate.Name     = "butUpdate";
     this.butUpdate.Size     = new System.Drawing.Size(44, 23);
     this.butUpdate.TabIndex = 259;
     this.butUpdate.Text     = "Lưu";
     this.butUpdate.UseVisualStyleBackColor = true;
     this.butUpdate.Click += new System.EventHandler(this.butUpdate_Click);
     //
     // butXoa
     //
     this.butXoa.Location = new System.Drawing.Point(512, 310);
     this.butXoa.Name     = "butXoa";
     this.butXoa.Size     = new System.Drawing.Size(44, 23);
     this.butXoa.TabIndex = 260;
     this.butXoa.Text     = "Xóa";
     this.butXoa.UseVisualStyleBackColor = true;
     this.butXoa.Click += new System.EventHandler(this.butXoa_Click);
     //
     // sausc
     //
     this.sausc.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sausc.Location   = new System.Drawing.Point(121, 233);
     this.sausc.Multiline  = true;
     this.sausc.Name       = "sausc";
     this.sausc.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.sausc.Size       = new System.Drawing.Size(236, 70);
     this.sausc.TabIndex   = 21;
     //
     // label11
     //
     this.label11.Location  = new System.Drawing.Point(-3, 234);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(126, 23);
     this.label11.TabIndex  = 20;
     this.label11.Text      = "Tình hình sau sửa chữa :";
     this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label12
     //
     this.label12.Location  = new System.Drawing.Point(188, 207);
     this.label12.Name      = "label12";
     this.label12.Size      = new System.Drawing.Size(92, 23);
     this.label12.TabIndex  = 261;
     this.label12.Text      = "Ngày  nhận về :";
     this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtngaynhanve
     //
     this.txtngaynhanve.Location       = new System.Drawing.Point(277, 209);
     this.txtngaynhanve.Mask           = "00/00/0000";
     this.txtngaynhanve.Name           = "txtngaynhanve";
     this.txtngaynhanve.Size           = new System.Drawing.Size(80, 20);
     this.txtngaynhanve.TabIndex       = 264;
     this.txtngaynhanve.ValidatingType = typeof(System.DateTime);
     //
     // frmTscdsc
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.butKetthuc;
     this.ClientSize        = new System.Drawing.Size(716, 345);
     this.Controls.Add(this.txtngaynhanve);
     this.Controls.Add(this.label12);
     this.Controls.Add(this.sausc);
     this.Controls.Add(this.label11);
     this.Controls.Add(this.butXoa);
     this.Controls.Add(this.butUpdate);
     this.Controls.Add(this.butMoi);
     this.Controls.Add(this.vanban);
     this.Controls.Add(this.nguoigiamsat);
     this.Controls.Add(this.label10);
     this.Controls.Add(this.nguoisuachua);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.butChon);
     this.Controls.Add(this.tyle);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.nguoichungkien);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.sogio);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.nguoidenghi);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.butKetthuc);
     this.Controls.Add(this.butLuu);
     this.Controls.Add(this.diengiai);
     this.Controls.Add(this.noisc);
     this.Controls.Add(this.ngay);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.ten);
     this.Controls.Add(this.label1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "frmTscdsc";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "frmTscdlc";
     this.Load         += new System.EventHandler(this.frmTscdsc_Load);
     ((System.ComponentModel.ISupportInitialize)(this.sogio)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pic)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #49
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DialogoModicarFactura));
     this.label1           = new System.Windows.Forms.Label();
     this.pictureBox1      = new System.Windows.Forms.PictureBox();
     this.btnCancelar      = new System.Windows.Forms.Button();
     this.btnAceptar       = new System.Windows.Forms.Button();
     this.label14          = new System.Windows.Forms.Label();
     this.label13          = new System.Windows.Forms.Label();
     this.txtNombreCliente = new System.Windows.Forms.TextBox();
     this.txtCodigoPostal  = new System.Windows.Forms.TextBox();
     this.txtDireccion     = new System.Windows.Forms.TextBox();
     this.txtRFC           = new System.Windows.Forms.TextBox();
     this.txtCiudad        = new System.Windows.Forms.TextBox();
     this.label7           = new System.Windows.Forms.Label();
     this.label2           = new System.Windows.Forms.Label();
     this.label3           = new System.Windows.Forms.Label();
     this.label4           = new System.Windows.Forms.Label();
     this.label5           = new System.Windows.Forms.Label();
     this.label6           = new System.Windows.Forms.Label();
     this.label8           = new System.Windows.Forms.Label();
     this.mtbTelefono      = new System.Windows.Forms.MaskedTextBox();
     this.cmbEstado        = new System.Windows.Forms.ComboBox();
     this.Encabezado.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // Encabezado
     //
     this.Encabezado.Controls.Add(this.label1);
     this.Encabezado.Controls.Add(this.pictureBox1);
     this.Encabezado.Size = new System.Drawing.Size(531, 93);
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font      = new System.Drawing.Font("Arial Rounded MT Bold", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.MidnightBlue;
     this.label1.Location  = new System.Drawing.Point(93, 37);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(342, 24);
     this.label1.TabIndex  = 10;
     this.label1.Text      = "Modificar informacion del cliente";
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor             = System.Drawing.Color.Transparent;
     this.pictureBox1.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
     this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBox1.Location = new System.Drawing.Point(12, 12);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(75, 75);
     this.pictureBox1.TabIndex = 11;
     this.pictureBox1.TabStop  = false;
     //
     // btnCancelar
     //
     this.btnCancelar.BackgroundImage           = global::Presentacion.Properties.Resources.IconoCancelar;
     this.btnCancelar.BackgroundImageLayout     = System.Windows.Forms.ImageLayout.Stretch;
     this.btnCancelar.FlatAppearance.BorderSize = 0;
     this.btnCancelar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnCancelar.Location  = new System.Drawing.Point(283, 345);
     this.btnCancelar.Margin    = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.btnCancelar.Name      = "btnCancelar";
     this.btnCancelar.Size      = new System.Drawing.Size(60, 60);
     this.btnCancelar.TabIndex  = 35;
     this.btnCancelar.UseVisualStyleBackColor = true;
     this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click);
     //
     // btnAceptar
     //
     this.btnAceptar.BackgroundImage           = global::Presentacion.Properties.Resources.IconoAceptar;
     this.btnAceptar.BackgroundImageLayout     = System.Windows.Forms.ImageLayout.Stretch;
     this.btnAceptar.FlatAppearance.BorderSize = 0;
     this.btnAceptar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnAceptar.Location  = new System.Drawing.Point(173, 345);
     this.btnAceptar.Margin    = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.btnAceptar.Name      = "btnAceptar";
     this.btnAceptar.Size      = new System.Drawing.Size(60, 60);
     this.btnAceptar.TabIndex  = 36;
     this.btnAceptar.UseVisualStyleBackColor = true;
     this.btnAceptar.Click += new System.EventHandler(this.btnAceptar_Click);
     //
     // label14
     //
     this.label14.AutoSize = true;
     this.label14.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label14.Location = new System.Drawing.Point(279, 409);
     this.label14.Name     = "label14";
     this.label14.Size     = new System.Drawing.Size(68, 17);
     this.label14.TabIndex = 33;
     this.label14.Text     = "Cancelar";
     //
     // label13
     //
     this.label13.AutoSize = true;
     this.label13.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label13.Location = new System.Drawing.Point(173, 409);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(60, 17);
     this.label13.TabIndex = 34;
     this.label13.Text     = "Aceptar";
     //
     // txtNombreCliente
     //
     this.txtNombreCliente.Location  = new System.Drawing.Point(21, 146);
     this.txtNombreCliente.MaxLength = 79;
     this.txtNombreCliente.Name      = "txtNombreCliente";
     this.txtNombreCliente.Size      = new System.Drawing.Size(214, 21);
     this.txtNombreCliente.TabIndex  = 1;
     //
     // txtCodigoPostal
     //
     this.txtCodigoPostal.Location  = new System.Drawing.Point(300, 209);
     this.txtCodigoPostal.MaxLength = 45;
     this.txtCodigoPostal.Name      = "txtCodigoPostal";
     this.txtCodigoPostal.Size      = new System.Drawing.Size(98, 21);
     this.txtCodigoPostal.TabIndex  = 4;
     //
     // txtDireccion
     //
     this.txtDireccion.Location  = new System.Drawing.Point(21, 209);
     this.txtDireccion.MaxLength = 99;
     this.txtDireccion.Name      = "txtDireccion";
     this.txtDireccion.Size      = new System.Drawing.Size(270, 21);
     this.txtDireccion.TabIndex  = 3;
     //
     // txtRFC
     //
     this.txtRFC.Location  = new System.Drawing.Point(250, 146);
     this.txtRFC.MaxLength = 44;
     this.txtRFC.Name      = "txtRFC";
     this.txtRFC.Size      = new System.Drawing.Size(268, 21);
     this.txtRFC.TabIndex  = 2;
     //
     // txtCiudad
     //
     this.txtCiudad.Location  = new System.Drawing.Point(409, 209);
     this.txtCiudad.MaxLength = 44;
     this.txtCiudad.Name      = "txtCiudad";
     this.txtCiudad.Size      = new System.Drawing.Size(109, 21);
     this.txtCiudad.TabIndex  = 5;
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label7.Location = new System.Drawing.Point(21, 126);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(136, 17);
     this.label7.TabIndex = 38;
     this.label7.Text     = "Nombre del cliente:";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.Location = new System.Drawing.Point(247, 126);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(37, 17);
     this.label2.TabIndex = 38;
     this.label2.Text     = "RFC:";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.Location = new System.Drawing.Point(297, 189);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(101, 17);
     this.label3.TabIndex = 38;
     this.label3.Text     = "Codigo Postal";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(21, 189);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(69, 17);
     this.label4.TabIndex = 38;
     this.label4.Text     = "Direccion";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(406, 189);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(57, 17);
     this.label5.TabIndex = 38;
     this.label5.Text     = "Ciudad";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label6.Location = new System.Drawing.Point(21, 252);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(52, 17);
     this.label6.TabIndex = 38;
     this.label6.Text     = "Estado";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Font     = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label8.Location = new System.Drawing.Point(247, 255);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(62, 17);
     this.label8.TabIndex = 38;
     this.label8.Text     = "Telefono";
     //
     // mtbTelefono
     //
     this.mtbTelefono.Culture  = new System.Globalization.CultureInfo("es-MX");
     this.mtbTelefono.Location = new System.Drawing.Point(247, 275);
     this.mtbTelefono.Mask     = "(999) 000-0000";
     this.mtbTelefono.Name     = "mtbTelefono";
     this.mtbTelefono.Size     = new System.Drawing.Size(111, 21);
     this.mtbTelefono.TabIndex = 7;
     //
     // cmbEstado
     //
     this.cmbEstado.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbEstado.FormattingEnabled = true;
     this.cmbEstado.Items.AddRange(new object[] {
         "Aguascalientes",
         "Baja California",
         "Baja California Sur",
         "Campeche",
         "Chiapas",
         "Chihuahua",
         "Ciudad de México",
         "Coahuila",
         "Colima",
         "Durango",
         "Estado de México",
         "Guanajuato",
         "Guerrero",
         "Hidalgo",
         "Jalisco",
         "Michoacán",
         "Morelos",
         "Nayarit",
         "Nuevo León",
         "Oaxaca",
         "Puebla",
         "Querétaro",
         "Quintana Roo",
         "San Luis Potosí",
         "Sinaloa",
         "Sonora",
         "Tabasco",
         "Tamaulipas",
         "Tlaxcala",
         "Veracruz",
         "Yucatán",
         "Zacatecas"
     });
     this.cmbEstado.Location = new System.Drawing.Point(21, 272);
     this.cmbEstado.Name     = "cmbEstado";
     this.cmbEstado.Size     = new System.Drawing.Size(214, 24);
     this.cmbEstado.TabIndex = 6;
     //
     // DialogoModicarFactura
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 16F);
     this.ClientSize          = new System.Drawing.Size(531, 476);
     this.Controls.Add(this.cmbEstado);
     this.Controls.Add(this.mtbTelefono);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.txtCiudad);
     this.Controls.Add(this.txtRFC);
     this.Controls.Add(this.txtDireccion);
     this.Controls.Add(this.txtCodigoPostal);
     this.Controls.Add(this.txtNombreCliente);
     this.Controls.Add(this.btnCancelar);
     this.Controls.Add(this.btnAceptar);
     this.Controls.Add(this.label14);
     this.Controls.Add(this.label13);
     this.Name  = "DialogoModicarFactura";
     this.Load += new System.EventHandler(this.DialogoModicarFactura_Load);
     this.Controls.SetChildIndex(this.Encabezado, 0);
     this.Controls.SetChildIndex(this.label13, 0);
     this.Controls.SetChildIndex(this.label14, 0);
     this.Controls.SetChildIndex(this.btnAceptar, 0);
     this.Controls.SetChildIndex(this.btnCancelar, 0);
     this.Controls.SetChildIndex(this.txtNombreCliente, 0);
     this.Controls.SetChildIndex(this.txtCodigoPostal, 0);
     this.Controls.SetChildIndex(this.txtDireccion, 0);
     this.Controls.SetChildIndex(this.txtRFC, 0);
     this.Controls.SetChildIndex(this.txtCiudad, 0);
     this.Controls.SetChildIndex(this.label7, 0);
     this.Controls.SetChildIndex(this.label2, 0);
     this.Controls.SetChildIndex(this.label3, 0);
     this.Controls.SetChildIndex(this.label4, 0);
     this.Controls.SetChildIndex(this.label5, 0);
     this.Controls.SetChildIndex(this.label6, 0);
     this.Controls.SetChildIndex(this.label8, 0);
     this.Controls.SetChildIndex(this.mtbTelefono, 0);
     this.Controls.SetChildIndex(this.cmbEstado, 0);
     this.Encabezado.ResumeLayout(false);
     this.Encabezado.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        public ViewPurchasesByInvoiceScreen(Screen backScreen) : base("View Purchases by Invoice", backScreen, 1)
        {
            this.tlpSearchBar              = new System.Windows.Forms.TableLayoutPanel();
            this.lblName                   = new System.Windows.Forms.Label();
            this.lblSelectedInvoicePrompt  = new System.Windows.Forms.Label();
            this.lblSearchPrompt           = new System.Windows.Forms.Label();
            this.cbxSelectedInvoice        = new System.Windows.Forms.ComboBox();
            this.txtSearchName             = new System.Windows.Forms.TextBox();
            this.mtxtPhoneNumber           = new System.Windows.Forms.MaskedTextBox();
            this.lblPhoneNumPrompt         = new System.Windows.Forms.Label();
            this.btnViewCollectorPurchases = new System.Windows.Forms.Button();
            this.tlpDatePanel              = new System.Windows.Forms.TableLayoutPanel();
            this.dtpDateTo                 = new System.Windows.Forms.DateTimePicker();
            this.lblDateFromPrompt         = new System.Windows.Forms.Label();
            this.dtpDateFrom               = new System.Windows.Forms.DateTimePicker();
            this.lblDateToPrompt           = new System.Windows.Forms.Label();
            this.crvPurchasesByInvoice     = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
            cryRpt = new ViewPurchasesByInvoice();

            this.BackColor   = System.Drawing.Color.Transparent;
            this.ColumnCount = 1;
            this.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            //this.Controls.Add(this.tlpSearchBar, 0, 0);
            //this.Controls.Add(this.tlpDatePanel, 0, 1);
            this.Controls.Add(this.crvPurchasesByInvoice, 0, 2);
            this.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.RowCount = 1;
            //this.RowCount = 3;
            //this.RowStyles.Add(new System.Windows.Forms.RowStyle(SizeType.AutoSize));
            //this.RowStyles.Add(new System.Windows.Forms.RowStyle(SizeType.AutoSize));
            //this.RowStyles.Add(new System.Windows.Forms.RowStyle(SizeType.Percent, 100F));
            this.TabIndex       = 0;
            this.ParentChanged += ViewPurchasesByInvoiceScreen_ParentChanged;
            //
            // tlpSearchBar
            //
            //this.tlpSearchBar.AutoSize = true;
            this.tlpSearchBar.BackColor   = System.Drawing.Color.White;
            this.tlpSearchBar.ColumnCount = 6;
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tlpSearchBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.AutoSize));
            this.tlpSearchBar.Controls.Add(this.lblName, 1, 0);
            this.tlpSearchBar.Controls.Add(this.lblSelectedInvoicePrompt, 3, 0);
            this.tlpSearchBar.Controls.Add(this.lblSearchPrompt, 0, 0);
            this.tlpSearchBar.Controls.Add(this.cbxSelectedInvoice, 4, 0);
            this.tlpSearchBar.Controls.Add(this.txtSearchName, 1, 1);
            this.tlpSearchBar.Controls.Add(this.mtxtPhoneNumber, 2, 1);
            this.tlpSearchBar.Controls.Add(this.lblPhoneNumPrompt, 2, 0);
            this.tlpSearchBar.Controls.Add(this.btnViewCollectorPurchases, 5, 0);
            this.tlpSearchBar.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.tlpSearchBar.Padding  = new System.Windows.Forms.Padding(10);
            this.tlpSearchBar.RowCount = 3;
            this.tlpSearchBar.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tlpSearchBar.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tlpSearchBar.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tlpSearchBar.TabIndex = 0;
            //
            // lblName
            //
            this.lblName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lblName.AutoSize  = true;
            this.lblName.TabIndex  = 7;
            this.lblName.Text      = "Name";
            this.lblName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // lblSelectedInvoicePrompt
            //
            this.lblSelectedInvoicePrompt.Anchor   = System.Windows.Forms.AnchorStyles.Right;
            this.lblSelectedInvoicePrompt.AutoSize = true;
            //this.lblSelectedInvoicePrompt.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tlpSearchBar.SetRowSpan(this.lblSelectedInvoicePrompt, 2);
            this.lblSelectedInvoicePrompt.TabIndex = 3;
            this.lblSelectedInvoicePrompt.Text     = "Selected Invoice:";
            //
            // lblSearchPrompt
            //
            this.lblSearchPrompt.Anchor   = System.Windows.Forms.AnchorStyles.Right;
            this.lblSearchPrompt.AutoSize = true;
            //this.lblSearchPrompt.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tlpSearchBar.SetRowSpan(this.lblSearchPrompt, 2);
            this.lblSearchPrompt.TabIndex = 0;
            this.lblSearchPrompt.Text     = "Search:";
            //
            // cbxSelectedCollector
            //
            this.cbxSelectedInvoice.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.cbxSelectedInvoice.FormattingEnabled = true;
            this.cbxSelectedInvoice.Margin            = new System.Windows.Forms.Padding(10, 3, 10, 3);
            this.tlpSearchBar.SetRowSpan(this.cbxSelectedInvoice, 2);
            this.cbxSelectedInvoice.TabIndex              = 4;
            this.cbxSelectedInvoice.DataSource            = DBInvoice.GetInvoices();
            this.cbxSelectedInvoice.DisplayMember         = "ComboBoxDisplay";
            this.cbxSelectedInvoice.ValueMember           = "ID";
            this.cbxSelectedInvoice.DropDownStyle         = ComboBoxStyle.DropDownList;
            this.cbxSelectedInvoice.SelectedValueChanged += CbxSelectedInvoice_SelectedValueChanged;
            //
            // txtSearchInput
            //
            this.txtSearchName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
            this.txtSearchName.Margin    = new System.Windows.Forms.Padding(10, 3, 10, 3);
            this.txtSearchName.TabIndex  = 1;
            this.txtSearchName.MaxLength = DBControlHelper.MaximumFullNameLength;
            //
            // mtxtPhoneNumber
            //
            this.mtxtPhoneNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                                | System.Windows.Forms.AnchorStyles.Right)));
            this.mtxtPhoneNumber.Margin         = new System.Windows.Forms.Padding(10, 3, 10, 3);
            this.mtxtPhoneNumber.Mask           = "(000) 000-0000";
            this.mtxtPhoneNumber.TabIndex       = 5;
            this.mtxtPhoneNumber.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;
            //
            // lblPhoneNumPrompt
            //
            this.lblPhoneNumPrompt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                                  | System.Windows.Forms.AnchorStyles.Right)));
            this.lblPhoneNumPrompt.AutoSize  = true;
            this.lblPhoneNumPrompt.TabIndex  = 6;
            this.lblPhoneNumPrompt.Text      = "Phone Number";
            this.lblPhoneNumPrompt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // btnViewDetails
            //
            this.btnViewCollectorPurchases.Anchor       = System.Windows.Forms.AnchorStyles.Left;
            this.btnViewCollectorPurchases.AutoSize     = true;
            this.btnViewCollectorPurchases.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.btnViewCollectorPurchases.BackColor    = System.Drawing.SystemColors.Control;
            this.tlpSearchBar.SetRowSpan(this.btnViewCollectorPurchases, 2);
            this.btnViewCollectorPurchases.TabIndex = 8;
            this.btnViewCollectorPurchases.Text     = "View Collector Purchases";
            this.btnViewCollectorPurchases.UseVisualStyleBackColor = false;
            this.btnViewCollectorPurchases.Click += BtnViewDetails_Click;
            //
            // tlpDatePanel
            //
            this.tlpDatePanel.AutoSize    = true;
            this.tlpDatePanel.ColumnCount = 4;
            this.tlpDatePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tlpDatePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tlpDatePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tlpDatePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tlpDatePanel.Controls.Add(this.dtpDateTo, 3, 0);
            this.tlpDatePanel.Controls.Add(this.lblDateFromPrompt, 0, 0);
            this.tlpDatePanel.Controls.Add(this.dtpDateFrom, 1, 0);
            this.tlpDatePanel.Controls.Add(this.lblDateToPrompt, 2, 0);
            this.tlpDatePanel.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.tlpDatePanel.RowCount = 1;
            this.tlpDatePanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tlpDatePanel.TabIndex  = 9;
            this.tlpDatePanel.BackColor = this.tlpSearchBar.BackColor;
            //
            // dtpDateTo
            //
            //this.dtpDateTo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.dtpDateTo.TabIndex = 3;
            //
            // lblDateFromPrompt
            //
            this.lblDateFromPrompt.Anchor   = System.Windows.Forms.AnchorStyles.Right;
            this.lblDateFromPrompt.AutoSize = true;
            this.lblDateFromPrompt.TabIndex = 0;
            this.lblDateFromPrompt.Text     = "From";
            //
            // dtpDateFrom
            //
            //this.dtpDateFrom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.dtpDateFrom.TabIndex = 1;
            //
            // lblDateToPrompt
            //
            this.lblDateToPrompt.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDateToPrompt.AutoSize = true;
            this.lblDateToPrompt.TabIndex = 2;
            this.lblDateToPrompt.Text     = "to";
            //
            // crvPurchasesByInvoice
            //
            this.crvPurchasesByInvoice.ActiveViewIndex = -1;
            this.crvPurchasesByInvoice.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
            this.crvPurchasesByInvoice.Cursor          = System.Windows.Forms.Cursors.Default;
            this.crvPurchasesByInvoice.Dock            = System.Windows.Forms.DockStyle.Fill;
            this.crvPurchasesByInvoice.TabIndex        = 1;
            this.crvPurchasesByInvoice.ReuseParameterValuesOnRefresh = true;
            this.crvPurchasesByInvoice.ReportRefresh += CrvPurchasesByInvoice_ReportRefresh;

            this.SetFontSizes(this.Controls);
        }
Beispiel #51
0
        public void enbControls(Boolean boolean) /// true if enabled
        {
            foreach (Control gb in this.Controls)
            {
                if (gb is Panel)
                {
                    foreach (Control tb in gb.Controls)
                    {
                        if (tb.GetType().ToString() == "System.Windows.Forms.TextBox")
                        {
                            System.Windows.Forms.TextBox tx = (TextBox)tb;
                            tx.ReadOnly = !boolean;
                            if (!docno.ReadOnly)
                            {
                                if (gb.Name.ToString() == "fin" || gb.Name.ToString() == "com")
                                {
                                    tx.Text = "0.0";
                                }
                            }
                        }

                        else if (tb.GetType().ToString() == "System.Windows.Forms.ComboBox")
                        {
                            System.Windows.Forms.ComboBox tx = (ComboBox)tb;
                            tx.Enabled = boolean;
                        }

                        else if (tb.GetType().ToString() == "System.Windows.Forms.MaskedTextBox")
                        {
                            System.Windows.Forms.MaskedTextBox tx = (MaskedTextBox)tb;
                            tx.ReadOnly = !boolean;
                        }
                    }
                }
                else if (gb is ComboBox)
                {
                    gb.Enabled = boolean;
                }
                else if (gb is TextBox)
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;
                    tx.ReadOnly = !boolean;
                }
            }

            if (!docno.ReadOnly)
            {
                credsum.Text = "0.0";
                depsum.Text  = "0.0";

                depdiff.Text  = "0.0";
                creddiff.Text = "0.0";
            }

            if (mov.Text == "تجاري")
            {
                doctyp.SelectedText = "تسوية";
                doctyp.Enabled      = false;
            }


            panbutt_Nav.Visible = !boolean;
            panSav.Visible      = boolean;
        }
Beispiel #52
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDmbsgioithieu));
     this.dataGrid1   = new System.Windows.Forms.DataGrid();
     this.butKetthuc  = new System.Windows.Forms.Button();
     this.label1      = new System.Windows.Forms.Label();
     this.txtmanv     = new System.Windows.Forms.TextBox();
     this.label2      = new System.Windows.Forms.Label();
     this.txtten      = new System.Windows.Forms.TextBox();
     this.butMoi      = new System.Windows.Forms.Button();
     this.butSua      = new System.Windows.Forms.Button();
     this.butLuu      = new System.Windows.Forms.Button();
     this.butBoqua    = new System.Windows.Forms.Button();
     this.butHuy      = new System.Windows.Forms.Button();
     this.txtmabv     = new System.Windows.Forms.TextBox();
     this.label3      = new System.Windows.Forms.Label();
     this.txttenbv    = new System.Windows.Forms.TextBox();
     this.txttennv    = new System.Windows.Forms.TextBox();
     this.label5      = new System.Windows.Forms.Label();
     this.txtmabs     = new System.Windows.Forms.TextBox();
     this.list_bv     = new AsYetUnnamed.MultiColumnListBox();
     this.list_nv     = new AsYetUnnamed.MultiColumnListBox();
     this.label4      = new System.Windows.Forms.Label();
     this.txtemail    = new System.Windows.Forms.TextBox();
     this.label7      = new System.Windows.Forms.Label();
     this.txtdtnha    = new System.Windows.Forms.TextBox();
     this.label8      = new System.Windows.Forms.Label();
     this.txtdtdidong = new System.Windows.Forms.TextBox();
     this.label9      = new System.Windows.Forms.Label();
     this.mtbngaysinh = new System.Windows.Forms.MaskedTextBox();
     this.label6      = new System.Windows.Forms.Label();
     this.txtdiachi   = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     this.SuspendLayout();
     //
     // dataGrid1
     //
     this.dataGrid1.AlternatingBackColor = System.Drawing.Color.Lavender;
     this.dataGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.dataGrid1.BackColor           = System.Drawing.Color.WhiteSmoke;
     this.dataGrid1.BackgroundColor     = System.Drawing.SystemColors.Control;
     this.dataGrid1.BorderStyle         = System.Windows.Forms.BorderStyle.None;
     this.dataGrid1.CaptionBackColor    = System.Drawing.SystemColors.Control;
     this.dataGrid1.CaptionFont         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGrid1.CaptionForeColor    = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.DataMember          = "";
     this.dataGrid1.FlatMode            = true;
     this.dataGrid1.Font                = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dataGrid1.ForeColor           = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.GridLineColor       = System.Drawing.Color.Gainsboro;
     this.dataGrid1.GridLineStyle       = System.Windows.Forms.DataGridLineStyle.None;
     this.dataGrid1.HeaderFont          = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
     this.dataGrid1.HeaderForeColor     = System.Drawing.Color.WhiteSmoke;
     this.dataGrid1.LinkColor           = System.Drawing.Color.Teal;
     this.dataGrid1.Location            = new System.Drawing.Point(7, -16);
     this.dataGrid1.Name                = "dataGrid1";
     this.dataGrid1.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
     this.dataGrid1.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
     this.dataGrid1.ReadOnly            = true;
     this.dataGrid1.RowHeaderWidth      = 10;
     this.dataGrid1.SelectionBackColor  = System.Drawing.Color.CadetBlue;
     this.dataGrid1.SelectionForeColor  = System.Drawing.Color.WhiteSmoke;
     this.dataGrid1.Size                = new System.Drawing.Size(785, 400);
     this.dataGrid1.TabIndex            = 19;
     this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged);
     //
     // butKetthuc
     //
     this.butKetthuc.Anchor     = System.Windows.Forms.AnchorStyles.Bottom;
     this.butKetthuc.Image      = ((System.Drawing.Image)(resources.GetObject("butKetthuc.Image")));
     this.butKetthuc.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butKetthuc.Location   = new System.Drawing.Point(525, 500);
     this.butKetthuc.Name       = "butKetthuc";
     this.butKetthuc.Size       = new System.Drawing.Size(70, 25);
     this.butKetthuc.TabIndex   = 18;
     this.butKetthuc.Text       = "&Kết thúc";
     this.butKetthuc.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.butKetthuc.Click     += new System.EventHandler(this.butKetthuc_Click);
     //
     // label1
     //
     this.label1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize  = true;
     this.label1.Location  = new System.Drawing.Point(495, 429);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(71, 13);
     this.label1.TabIndex  = 21;
     this.label1.Text      = "Nơi làm việc :";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtmanv
     //
     this.txtmanv.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txtmanv.BackColor  = System.Drawing.SystemColors.HighlightText;
     this.txtmanv.Enabled    = false;
     this.txtmanv.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtmanv.Location   = new System.Drawing.Point(565, 399);
     this.txtmanv.MaxLength  = 4;
     this.txtmanv.Name       = "txtmanv";
     this.txtmanv.Size       = new System.Drawing.Size(60, 21);
     this.txtmanv.TabIndex   = 2;
     this.txtmanv.Validated += new System.EventHandler(this.txtmanv_Validated);
     this.txtmanv.KeyDown   += new System.Windows.Forms.KeyEventHandler(this.ma_KeyDown);
     //
     // label2
     //
     this.label2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label2.Location  = new System.Drawing.Point(127, 398);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(61, 22);
     this.label2.TabIndex  = 23;
     this.label2.Text      = "Họ và tên :";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtten
     //
     this.txtten.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.txtten.BackColor = System.Drawing.SystemColors.HighlightText;
     this.txtten.Enabled   = false;
     this.txtten.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtten.Location  = new System.Drawing.Point(187, 399);
     this.txtten.Name      = "txtten";
     this.txtten.Size      = new System.Drawing.Size(297, 21);
     this.txtten.TabIndex  = 1;
     this.txtten.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ten_KeyDown);
     //
     // butMoi
     //
     this.butMoi.Anchor     = System.Windows.Forms.AnchorStyles.Bottom;
     this.butMoi.Image      = ((System.Drawing.Image)(resources.GetObject("butMoi.Image")));
     this.butMoi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butMoi.Location   = new System.Drawing.Point(175, 500);
     this.butMoi.Name       = "butMoi";
     this.butMoi.Size       = new System.Drawing.Size(70, 25);
     this.butMoi.TabIndex   = 14;
     this.butMoi.Text       = "     &Mới";
     this.butMoi.Click     += new System.EventHandler(this.butMoi_Click);
     //
     // butSua
     //
     this.butSua.Anchor     = System.Windows.Forms.AnchorStyles.Bottom;
     this.butSua.Image      = ((System.Drawing.Image)(resources.GetObject("butSua.Image")));
     this.butSua.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butSua.Location   = new System.Drawing.Point(245, 500);
     this.butSua.Name       = "butSua";
     this.butSua.Size       = new System.Drawing.Size(70, 25);
     this.butSua.TabIndex   = 15;
     this.butSua.Text       = "     &Sửa";
     this.butSua.Click     += new System.EventHandler(this.butSua_Click);
     //
     // butLuu
     //
     this.butLuu.Anchor     = System.Windows.Forms.AnchorStyles.Bottom;
     this.butLuu.Enabled    = false;
     this.butLuu.Image      = ((System.Drawing.Image)(resources.GetObject("butLuu.Image")));
     this.butLuu.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butLuu.Location   = new System.Drawing.Point(315, 500);
     this.butLuu.Name       = "butLuu";
     this.butLuu.Size       = new System.Drawing.Size(70, 25);
     this.butLuu.TabIndex   = 13;
     this.butLuu.Text       = "     &Lưu";
     this.butLuu.Click     += new System.EventHandler(this.butLuu_Click);
     //
     // butBoqua
     //
     this.butBoqua.Anchor     = System.Windows.Forms.AnchorStyles.Bottom;
     this.butBoqua.Enabled    = false;
     this.butBoqua.Image      = ((System.Drawing.Image)(resources.GetObject("butBoqua.Image")));
     this.butBoqua.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butBoqua.Location   = new System.Drawing.Point(385, 500);
     this.butBoqua.Name       = "butBoqua";
     this.butBoqua.Size       = new System.Drawing.Size(70, 25);
     this.butBoqua.TabIndex   = 16;
     this.butBoqua.Text       = "&Bỏ qua";
     this.butBoqua.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     this.butBoqua.Click     += new System.EventHandler(this.butBoqua_Click);
     //
     // butHuy
     //
     this.butHuy.Anchor     = System.Windows.Forms.AnchorStyles.Bottom;
     this.butHuy.Image      = ((System.Drawing.Image)(resources.GetObject("butHuy.Image")));
     this.butHuy.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butHuy.Location   = new System.Drawing.Point(455, 500);
     this.butHuy.Name       = "butHuy";
     this.butHuy.Size       = new System.Drawing.Size(70, 25);
     this.butHuy.TabIndex   = 17;
     this.butHuy.Text       = "     &Hủy";
     this.butHuy.Click     += new System.EventHandler(this.butHuy_Click);
     //
     // txtmabv
     //
     this.txtmabv.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txtmabv.BackColor  = System.Drawing.SystemColors.HighlightText;
     this.txtmabv.Enabled    = false;
     this.txtmabv.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtmabv.Location   = new System.Drawing.Point(565, 426);
     this.txtmabv.MaxLength  = 20;
     this.txtmabv.Name       = "txtmabv";
     this.txtmabv.Size       = new System.Drawing.Size(60, 21);
     this.txtmabv.TabIndex   = 6;
     this.txtmabv.Validated += new System.EventHandler(this.txtmabv_Validated);
     this.txtmabv.KeyDown   += new System.Windows.Forms.KeyEventHandler(this.txtstt_KeyDown);
     //
     // label3
     //
     this.label3.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.Location  = new System.Drawing.Point(490, 399);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(75, 22);
     this.label3.TabIndex  = 34;
     this.label3.Text      = "NVPT:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txttenbv
     //
     this.txttenbv.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txttenbv.BackColor    = System.Drawing.SystemColors.HighlightText;
     this.txttenbv.Enabled      = false;
     this.txttenbv.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txttenbv.Location     = new System.Drawing.Point(625, 426);
     this.txttenbv.MaxLength    = 3000;
     this.txttenbv.Name         = "txttenbv";
     this.txttenbv.Size         = new System.Drawing.Size(162, 21);
     this.txttenbv.TabIndex     = 7;
     this.txttenbv.TextChanged += new System.EventHandler(this.txttenbv_TextChanged);
     this.txttenbv.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.txttenbv_KeyDown);
     //
     // txttennv
     //
     this.txttennv.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txttennv.BackColor    = System.Drawing.SystemColors.HighlightText;
     this.txttennv.Enabled      = false;
     this.txttennv.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txttennv.Location     = new System.Drawing.Point(625, 399);
     this.txttennv.MaxLength    = 3000;
     this.txttennv.Name         = "txttennv";
     this.txttennv.Size         = new System.Drawing.Size(162, 21);
     this.txttennv.TabIndex     = 3;
     this.txttennv.TextChanged += new System.EventHandler(this.txttennv_TextChanged);
     this.txttennv.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.txttennv_KeyDown);
     //
     // label5
     //
     this.label5.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label5.Location  = new System.Drawing.Point(56, 399);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(28, 23);
     this.label5.TabIndex  = 34;
     this.label5.Text      = "Mã:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtmabs
     //
     this.txtmabs.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtmabs.BackColor = System.Drawing.SystemColors.HighlightText;
     this.txtmabs.Enabled   = false;
     this.txtmabs.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtmabs.Location  = new System.Drawing.Point(84, 399);
     this.txtmabs.MaxLength = 4;
     this.txtmabs.Name      = "txtmabs";
     this.txtmabs.Size      = new System.Drawing.Size(37, 21);
     this.txtmabs.TabIndex  = 0;
     this.txtmabs.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txtstt_KeyDown);
     //
     // list_bv
     //
     this.list_bv.Anchor             = System.Windows.Forms.AnchorStyles.Bottom;
     this.list_bv.BackColor          = System.Drawing.SystemColors.Info;
     this.list_bv.ColumnCount        = 0;
     this.list_bv.Font               = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.list_bv.ForeColor          = System.Drawing.SystemColors.ControlDarkDark;
     this.list_bv.FormattingEnabled  = true;
     this.list_bv.Location           = new System.Drawing.Point(764, 426);
     this.list_bv.MatchBufferTimeOut = 1000;
     this.list_bv.MatchEntryStyle    = AsYetUnnamed.MatchEntryStyle.FirstLetterInsensitive;
     this.list_bv.Name               = "list_bv";
     this.list_bv.Size               = new System.Drawing.Size(23, 17);
     this.list_bv.TabIndex           = 8;
     this.list_bv.TextIndex          = -1;
     this.list_bv.TextMember         = null;
     this.list_bv.ValueIndex         = -1;
     this.list_bv.Visible            = false;
     this.list_bv.KeyDown           += new System.Windows.Forms.KeyEventHandler(this.list_bv_KeyDown);
     //
     // list_nv
     //
     this.list_nv.Anchor             = System.Windows.Forms.AnchorStyles.Bottom;
     this.list_nv.BackColor          = System.Drawing.SystemColors.Info;
     this.list_nv.ColumnCount        = 0;
     this.list_nv.Font               = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.list_nv.ForeColor          = System.Drawing.SystemColors.ControlDarkDark;
     this.list_nv.FormattingEnabled  = true;
     this.list_nv.Location           = new System.Drawing.Point(764, 400);
     this.list_nv.MatchBufferTimeOut = 1000;
     this.list_nv.MatchEntryStyle    = AsYetUnnamed.MatchEntryStyle.FirstLetterInsensitive;
     this.list_nv.Name               = "list_nv";
     this.list_nv.Size               = new System.Drawing.Size(15, 17);
     this.list_nv.TabIndex           = 4;
     this.list_nv.TextIndex          = -1;
     this.list_nv.TextMember         = null;
     this.list_nv.ValueIndex         = -1;
     this.list_nv.Visible            = false;
     this.list_nv.KeyDown           += new System.Windows.Forms.KeyEventHandler(this.list_nv_KeyDown);
     //
     // label4
     //
     this.label4.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.AutoSize  = true;
     this.label4.Location  = new System.Drawing.Point(528, 456);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(38, 13);
     this.label4.TabIndex  = 21;
     this.label4.Text      = "Email :";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtemail
     //
     this.txtemail.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txtemail.BackColor = System.Drawing.SystemColors.HighlightText;
     this.txtemail.Enabled   = false;
     this.txtemail.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtemail.Location  = new System.Drawing.Point(565, 452);
     this.txtemail.MaxLength = 100;
     this.txtemail.Name      = "txtemail";
     this.txtemail.Size      = new System.Drawing.Size(222, 21);
     this.txtemail.TabIndex  = 12;
     this.txtemail.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txtstt_KeyDown);
     //
     // label7
     //
     this.label7.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label7.AutoSize  = true;
     this.label7.Location  = new System.Drawing.Point(157, 456);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(65, 13);
     this.label7.TabIndex  = 21;
     this.label7.Text      = "Điện Thoại :";
     this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtdtnha
     //
     this.txtdtnha.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.txtdtnha.BackColor = System.Drawing.SystemColors.HighlightText;
     this.txtdtnha.Enabled   = false;
     this.txtdtnha.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtdtnha.Location  = new System.Drawing.Point(220, 453);
     this.txtdtnha.MaxLength = 25;
     this.txtdtnha.Name      = "txtdtnha";
     this.txtdtnha.Size      = new System.Drawing.Size(112, 21);
     this.txtdtnha.TabIndex  = 10;
     this.txtdtnha.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txtstt_KeyDown);
     //
     // label8
     //
     this.label8.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label8.AutoSize  = true;
     this.label8.Location  = new System.Drawing.Point(344, 456);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(51, 13);
     this.label8.TabIndex  = 21;
     this.label8.Text      = "Di động :";
     this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtdtdidong
     //
     this.txtdtdidong.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txtdtdidong.BackColor = System.Drawing.SystemColors.HighlightText;
     this.txtdtdidong.Enabled   = false;
     this.txtdtdidong.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtdtdidong.Location  = new System.Drawing.Point(393, 453);
     this.txtdtdidong.MaxLength = 11;
     this.txtdtdidong.Name      = "txtdtdidong";
     this.txtdtdidong.Size      = new System.Drawing.Size(91, 21);
     this.txtdtdidong.TabIndex  = 11;
     this.txtdtdidong.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txtstt_KeyDown);
     //
     // label9
     //
     this.label9.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label9.AutoSize  = true;
     this.label9.Location  = new System.Drawing.Point(24, 456);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(60, 13);
     this.label9.TabIndex  = 21;
     this.label9.Text      = "Ngày sinh :";
     this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // mtbngaysinh
     //
     this.mtbngaysinh.Anchor         = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.mtbngaysinh.Enabled        = false;
     this.mtbngaysinh.Location       = new System.Drawing.Point(84, 453);
     this.mtbngaysinh.Mask           = "00/00/0000";
     this.mtbngaysinh.Name           = "mtbngaysinh";
     this.mtbngaysinh.Size           = new System.Drawing.Size(66, 20);
     this.mtbngaysinh.TabIndex       = 9;
     this.mtbngaysinh.ValidatingType = typeof(System.DateTime);
     this.mtbngaysinh.KeyDown       += new System.Windows.Forms.KeyEventHandler(this.mtbngaysinh_KeyDown);
     //
     // label6
     //
     this.label6.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label6.AutoSize  = true;
     this.label6.Location  = new System.Drawing.Point(38, 429);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(46, 13);
     this.label6.TabIndex  = 21;
     this.label6.Text      = "Địa chỉ :";
     this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtdiachi
     //
     this.txtdiachi.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.txtdiachi.BackColor = System.Drawing.SystemColors.HighlightText;
     this.txtdiachi.Enabled   = false;
     this.txtdiachi.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtdiachi.Location  = new System.Drawing.Point(84, 426);
     this.txtdiachi.MaxLength = 1000;
     this.txtdiachi.Name      = "txtdiachi";
     this.txtdiachi.Size      = new System.Drawing.Size(400, 21);
     this.txtdiachi.TabIndex  = 5;
     this.txtdiachi.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txtstt_KeyDown);
     //
     // frmDmbsgioithieu
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(799, 542);
     this.Controls.Add(this.mtbngaysinh);
     this.Controls.Add(this.list_nv);
     this.Controls.Add(this.list_bv);
     this.Controls.Add(this.txtdtdidong);
     this.Controls.Add(this.txtdtnha);
     this.Controls.Add(this.txtdiachi);
     this.Controls.Add(this.txtemail);
     this.Controls.Add(this.txtmabs);
     this.Controls.Add(this.txttennv);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.txttenbv);
     this.Controls.Add(this.txtmabv);
     this.Controls.Add(this.txtmanv);
     this.Controls.Add(this.butHuy);
     this.Controls.Add(this.butBoqua);
     this.Controls.Add(this.butLuu);
     this.Controls.Add(this.butSua);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.butMoi);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.txtten);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.butKetthuc);
     this.Controls.Add(this.dataGrid1);
     this.Controls.Add(this.label3);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name          = "frmDmbsgioithieu";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Danh mục bác sĩ giới thiệu";
     this.Load         += new System.EventHandler(this.frmDmxutri_Load);
     this.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.frmDmxutri_KeyDown);
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #53
0
        private void userfind_Click(object sender, EventArgs e)
        {
            string qr = "";



            foreach (Control gb in this.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.ComboBox")
                {
                    System.Windows.Forms.ComboBox cb = (ComboBox)gb;

                    qr = qr + "dbo.tblMovment." + cb.Name + " =  " + cb.SelectedValue.ToString() + " and ";
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;
                    if (tx.Text != "" && tx.Text != "0.0")
                    {
                        qr = qr + "dbo.tblMovment." + tx.Name + " = " + tx.Text + " and ";
                    }
                }
            }

            foreach (Control gb in Fin_doc.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.ComboBox")
                {
                    System.Windows.Forms.ComboBox cb = (ComboBox)gb;

                    qr = qr + "dbo.tblMovment." + cb.Name + " =  " + cb.SelectedValue.ToString() + " and ";
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    if (tx.Text != "")
                    {
                        qr = qr + "dbo.tblMovment." + tx.Name + " = '" + tx.Text + "'" + " and ";
                    }
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.MaskedTextBox")
                {
                    System.Windows.Forms.MaskedTextBox tx = (MaskedTextBox)gb;

                    if (tx.Text != "  /  /")
                    {
                        qr = qr + "dbo.tblMovment." + tx.Name + " = '" + tx.Text + "'" + " and ";
                    }
                }
            }



            foreach (Control gb in fin.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    if (tx.Text != "" && tx.Text != "0.0")
                    {
                        qr = qr + "dbo.tblMovment." + tx.Name + " = " + tx.Text + " and ";
                    }
                }
            }

            foreach (Control gb in com.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    if (tx.Text != "" && tx.Text != "0.0")
                    {
                        qr = qr + "dbo.tblMovment." + tx.Name + " = " + tx.Text + " and ";
                    }
                }
            }

            if (supcd.Text != "")
            {
                qr = qr + " dbo.tblMovment.supcd = " + supcd.Text + " and ";
            }


            qr = qr.Substring(0, qr.Length - 4);



            SqlDataAdapter da_srch = new SqlDataAdapter(@" SELECT     dbo.tblMovment.docno, dbo.tblMovment.docsubno,yr, dbo.TBLmovtyp.movnm AS movcd, dbo.TBLdoctyp.docnm AS doccd, dbo.tblMovment.date
FROM         dbo.tblMovment LEFT OUTER JOIN
                      dbo.TBLmovtyp ON dbo.tblMovment.movcd = dbo.TBLmovtyp.movcd LEFT OUTER JOIN
                      dbo.TBLdoctyp ON dbo.tblMovment.doccd = dbo.TBLdoctyp.doccd  where " + qr, Static_class.con);
            DataTable      dt_srch = new DataTable();

            da_srch.Fill(dt_srch);

            frmMovSrch srch = new frmMovSrch(dt_srch);

            srch.ShowDialog();
            movementPos = TBLmovement_tbl.Rows.IndexOf(TBLmovement_tbl.Rows.Find(srch.pk));
            if (movementPos != -1)
            {
                add_edt = -1;

                fillScr();
                enbControls(false);

                pansrch.Visible = false;
                panedt.Visible  = true;
            }
        }
Beispiel #54
0
        public void fillScr()
        {
            foreach (Control gb in this.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.ComboBox")
                {
                    System.Windows.Forms.ComboBox cb = (ComboBox)gb;

                    cb.SelectedValue = TBLmovement_tbl.Rows[movementPos][cb.Name].ToString();
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    tx.Text = TBLmovement_tbl.Rows[movementPos][tx.Name].ToString();
                }
            }

            foreach (Control gb in Fin_doc.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.ComboBox")
                {
                    System.Windows.Forms.ComboBox cb = (ComboBox)gb;

                    cb.SelectedValue = TBLmovement_tbl.Rows[movementPos][cb.Name].ToString();
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    tx.Text = TBLmovement_tbl.Rows[movementPos][tx.Name].ToString();
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.MaskedTextBox")
                {
                    System.Windows.Forms.MaskedTextBox tx = (MaskedTextBox)gb;

                    tx.Text = TBLmovement_tbl.Rows[movementPos][tx.Name].ToString();
                }
            }



            foreach (Control gb in fin.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    tx.Text = TBLmovement_tbl.Rows[movementPos][tx.Name].ToString();
                }
            }

            foreach (Control gb in com.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    tx.Text = TBLmovement_tbl.Rows[movementPos][tx.Name].ToString();
                }
            }

            supcd.Text = TBLmovement_tbl.Rows[movementPos]["supcd"].ToString();
        }
Beispiel #55
0
        //protected override void Dispose(bool disposing)
        //{
        //    if (disposing)
        //    {
        //        if (components != null)
        //        {
        //            components.Dispose();
        //        }
        //    }
        //    base.Dispose(disposing);
        //}

        #region Windows Form Designer generated code
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmKhuyettat));
            System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            this.label1      = new System.Windows.Forms.Label();
            this.namsinh     = new System.Windows.Forms.TextBox();
            this.hoten       = new System.Windows.Forms.TextBox();
            this.mabn        = new System.Windows.Forms.TextBox();
            this.label3      = new System.Windows.Forms.Label();
            this.label2      = new System.Windows.Forms.Label();
            this.label4      = new System.Windows.Forms.Label();
            this.mann        = new System.Windows.Forms.TextBox();
            this.diachi      = new System.Windows.Forms.TextBox();
            this.label9      = new System.Windows.Forms.Label();
            this.butketthuc  = new System.Windows.Forms.Button();
            this.butLuu      = new System.Windows.Forms.Button();
            this.label14     = new System.Windows.Forms.Label();
            this.label15     = new System.Windows.Forms.Label();
            this.chandoan    = new System.Windows.Forms.TextBox();
            this.dieutri     = new System.Windows.Forms.TextBox();
            this.butTainangt = new System.Windows.Forms.Button();
            this.cbo_dangkt  = new System.Windows.Forms.ComboBox();
            this.cbo_mucdokt = new System.Windows.Forms.ComboBox();
            this.label5      = new System.Windows.Forms.Label();
            this.label6      = new System.Windows.Forms.Label();
            this.butIn       = new System.Windows.Forms.Button();
            this.label7      = new System.Windows.Forms.Label();
            this.ngay        = new System.Windows.Forms.MaskedTextBox();
            this.dgkhuyettat = new System.Windows.Forms.DataGridView();
            this.butmoi      = new System.Windows.Forms.Button();
            this.butsua      = new System.Windows.Forms.Button();
            this.butxoa      = new System.Windows.Forms.Button();
            this.butboqua    = new System.Windows.Forms.Button();
            this.dangkt      = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.mucdokt     = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.gvchandoan  = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.gvghichu    = new System.Windows.Forms.DataGridViewTextBoxColumn();
            ((System.ComponentModel.ISupportInitialize)(this.dgkhuyettat)).BeginInit();
            this.SuspendLayout();
            //
            // label1
            //
            this.label1.Location  = new System.Drawing.Point(130, 6);
            this.label1.Name      = "label1";
            this.label1.Size      = new System.Drawing.Size(49, 23);
            this.label1.TabIndex  = 31;
            this.label1.Text      = "Mã BN :";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // namsinh
            //
            this.namsinh.BackColor = System.Drawing.SystemColors.HighlightText;
            this.namsinh.Enabled   = false;
            this.namsinh.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.namsinh.Location  = new System.Drawing.Point(55, 30);
            this.namsinh.Name      = "namsinh";
            this.namsinh.Size      = new System.Drawing.Size(43, 21);
            this.namsinh.TabIndex  = 3;
            this.namsinh.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // hoten
            //
            this.hoten.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
            this.hoten.BackColor       = System.Drawing.SystemColors.HighlightText;
            this.hoten.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.hoten.Enabled         = false;
            this.hoten.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.hoten.Location        = new System.Drawing.Point(316, 7);
            this.hoten.Name            = "hoten";
            this.hoten.Size            = new System.Drawing.Size(370, 21);
            this.hoten.TabIndex        = 2;
            this.hoten.KeyDown        += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // mabn
            //
            this.mabn.BackColor = System.Drawing.SystemColors.HighlightText;
            this.mabn.Enabled   = false;
            this.mabn.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.mabn.Location  = new System.Drawing.Point(176, 7);
            this.mabn.Name      = "mabn";
            this.mabn.Size      = new System.Drawing.Size(83, 21);
            this.mabn.TabIndex  = 1;
            this.mabn.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // label3
            //
            this.label3.Location  = new System.Drawing.Point(0, 29);
            this.label3.Name      = "label3";
            this.label3.Size      = new System.Drawing.Size(58, 23);
            this.label3.TabIndex  = 33;
            this.label3.Text      = "Năm sinh :";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // label2
            //
            this.label2.Location  = new System.Drawing.Point(268, 6);
            this.label2.Name      = "label2";
            this.label2.Size      = new System.Drawing.Size(48, 23);
            this.label2.TabIndex  = 32;
            this.label2.Text      = "Họ tên :";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // label4
            //
            this.label4.Location  = new System.Drawing.Point(103, 30);
            this.label4.Name      = "label4";
            this.label4.Size      = new System.Drawing.Size(76, 23);
            this.label4.TabIndex  = 34;
            this.label4.Text      = "Nghề nghiệp :";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // mann
            //
            this.mann.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
            this.mann.BackColor = System.Drawing.SystemColors.HighlightText;
            this.mann.Enabled   = false;
            this.mann.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.mann.Location  = new System.Drawing.Point(176, 30);
            this.mann.Name      = "mann";
            this.mann.Size      = new System.Drawing.Size(510, 21);
            this.mann.TabIndex  = 4;
            this.mann.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // diachi
            //
            this.diachi.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
            this.diachi.BackColor = System.Drawing.SystemColors.HighlightText;
            this.diachi.Enabled   = false;
            this.diachi.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.diachi.Location  = new System.Drawing.Point(55, 53);
            this.diachi.Name      = "diachi";
            this.diachi.Size      = new System.Drawing.Size(631, 21);
            this.diachi.TabIndex  = 5;
            this.diachi.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // label9
            //
            this.label9.Location  = new System.Drawing.Point(10, 53);
            this.label9.Name      = "label9";
            this.label9.Size      = new System.Drawing.Size(48, 23);
            this.label9.TabIndex  = 35;
            this.label9.Text      = "Địa chỉ :";
            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // butketthuc
            //
            this.butketthuc.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butketthuc.Image      = ((System.Drawing.Image)(resources.GetObject("butketthuc.Image")));
            this.butketthuc.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butketthuc.Location   = new System.Drawing.Point(526, 466);
            this.butketthuc.Name       = "butketthuc";
            this.butketthuc.Size       = new System.Drawing.Size(68, 25);
            this.butketthuc.TabIndex   = 11;
            this.butketthuc.Text       = "&Kết thúc";
            this.butketthuc.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
            this.butketthuc.Click     += new System.EventHandler(this.butketthuc_Click);
            //
            // butLuu
            //
            this.butLuu.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butLuu.Image      = ((System.Drawing.Image)(resources.GetObject("butLuu.Image")));
            this.butLuu.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butLuu.Location   = new System.Drawing.Point(171, 466);
            this.butLuu.Name       = "butLuu";
            this.butLuu.Size       = new System.Drawing.Size(68, 25);
            this.butLuu.TabIndex   = 10;
            this.butLuu.Text       = "      &Lưu";
            this.butLuu.Click     += new System.EventHandler(this.butLuu_Click);
            //
            // label14
            //
            this.label14.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label14.Location  = new System.Drawing.Point(31, 382);
            this.label14.Name      = "label14";
            this.label14.Size      = new System.Drawing.Size(66, 23);
            this.label14.TabIndex  = 49;
            this.label14.Text      = "Chẩn đoán :";
            this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // label15
            //
            this.label15.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label15.Location  = new System.Drawing.Point(6, 419);
            this.label15.Name      = "label15";
            this.label15.Size      = new System.Drawing.Size(91, 23);
            this.label15.TabIndex  = 50;
            this.label15.Text      = "Ghi chú :";
            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // chandoan
            //
            this.chandoan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
            this.chandoan.BackColor    = System.Drawing.SystemColors.HighlightText;
            this.chandoan.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.chandoan.Location     = new System.Drawing.Point(97, 374);
            this.chandoan.Multiline    = true;
            this.chandoan.Name         = "chandoan";
            this.chandoan.ScrollBars   = System.Windows.Forms.ScrollBars.Both;
            this.chandoan.Size         = new System.Drawing.Size(588, 42);
            this.chandoan.TabIndex     = 8;
            this.chandoan.TextChanged += new System.EventHandler(this.chandoan_TextChanged);
            this.chandoan.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // dieutri
            //
            this.dieutri.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
            this.dieutri.BackColor    = System.Drawing.SystemColors.HighlightText;
            this.dieutri.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dieutri.Location     = new System.Drawing.Point(97, 418);
            this.dieutri.Multiline    = true;
            this.dieutri.Name         = "dieutri";
            this.dieutri.ScrollBars   = System.Windows.Forms.ScrollBars.Both;
            this.dieutri.Size         = new System.Drawing.Size(588, 42);
            this.dieutri.TabIndex     = 9;
            this.dieutri.TextChanged += new System.EventHandler(this.dieutri_TextChanged);
            this.dieutri.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // butTainangt
            //
            this.butTainangt.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butTainangt.Location   = new System.Drawing.Point(603, 466);
            this.butTainangt.Name       = "butTainangt";
            this.butTainangt.Size       = new System.Drawing.Size(83, 25);
            this.butTainangt.TabIndex   = 53;
            this.butTainangt.Text       = "Giao thông";
            this.butTainangt.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
            this.butTainangt.Visible    = false;
            this.butTainangt.Click     += new System.EventHandler(this.butTainangt_Click);
            //
            // cbo_dangkt
            //
            this.cbo_dangkt.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.cbo_dangkt.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbo_dangkt.FormattingEnabled = true;
            this.cbo_dangkt.Location          = new System.Drawing.Point(97, 351);
            this.cbo_dangkt.Name     = "cbo_dangkt";
            this.cbo_dangkt.Size     = new System.Drawing.Size(272, 21);
            this.cbo_dangkt.TabIndex = 6;
            this.cbo_dangkt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // cbo_mucdokt
            //
            this.cbo_mucdokt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
            this.cbo_mucdokt.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbo_mucdokt.FormattingEnabled = true;
            this.cbo_mucdokt.Location          = new System.Drawing.Point(473, 351);
            this.cbo_mucdokt.Name     = "cbo_mucdokt";
            this.cbo_mucdokt.Size     = new System.Drawing.Size(211, 21);
            this.cbo_mucdokt.TabIndex = 7;
            this.cbo_mucdokt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // label5
            //
            this.label5.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label5.Location  = new System.Drawing.Point(1, 349);
            this.label5.Name      = "label5";
            this.label5.Size      = new System.Drawing.Size(95, 23);
            this.label5.TabIndex  = 56;
            this.label5.Text      = "Dạng khuyết tật :";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // label6
            //
            this.label6.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label6.Location  = new System.Drawing.Point(370, 350);
            this.label6.Name      = "label6";
            this.label6.Size      = new System.Drawing.Size(103, 23);
            this.label6.TabIndex  = 57;
            this.label6.Text      = "Mức độ khuyết tật :";
            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // butIn
            //
            this.butIn.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butIn.Image      = ((System.Drawing.Image)(resources.GetObject("butIn.Image")));
            this.butIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butIn.Location   = new System.Drawing.Point(455, 466);
            this.butIn.Name       = "butIn";
            this.butIn.Size       = new System.Drawing.Size(68, 25);
            this.butIn.TabIndex   = 58;
            this.butIn.Text       = "    &In";
            this.butIn.Click     += new System.EventHandler(this.butIn_Click);
            //
            // label7
            //
            this.label7.Location  = new System.Drawing.Point(0, 5);
            this.label7.Name      = "label7";
            this.label7.Size      = new System.Drawing.Size(58, 23);
            this.label7.TabIndex  = 59;
            this.label7.Text      = "Ngày :";
            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // ngay
            //
            this.ngay.Location       = new System.Drawing.Point(55, 8);
            this.ngay.Mask           = "00/00/0000";
            this.ngay.Name           = "ngay";
            this.ngay.Size           = new System.Drawing.Size(78, 20);
            this.ngay.TabIndex       = 0;
            this.ngay.ValidatingType = typeof(System.DateTime);
            this.ngay.KeyDown       += new System.Windows.Forms.KeyEventHandler(this.ngay_KeyDown);
            //
            // dgkhuyettat
            //
            this.dgkhuyettat.AllowDrop                       = true;
            this.dgkhuyettat.AllowUserToAddRows              = false;
            this.dgkhuyettat.AllowUserToDeleteRows           = false;
            dataGridViewCellStyle1.BackColor                 = System.Drawing.Color.MintCream;
            dataGridViewCellStyle1.ForeColor                 = System.Drawing.Color.Black;
            dataGridViewCellStyle1.SelectionBackColor        = System.Drawing.Color.PaleGreen;
            dataGridViewCellStyle1.SelectionForeColor        = System.Drawing.Color.Blue;
            this.dgkhuyettat.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
            this.dgkhuyettat.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                             | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
            this.dgkhuyettat.AutoSizeColumnsMode           = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
            this.dgkhuyettat.AutoSizeRowsMode              = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
            this.dgkhuyettat.BackgroundColor               = System.Drawing.Color.Honeydew;
            this.dgkhuyettat.BorderStyle                   = System.Windows.Forms.BorderStyle.Fixed3D;
            dataGridViewCellStyle2.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle2.BackColor               = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle2.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle2.ForeColor               = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle2.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle2.SelectionForeColor      = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle2.WrapMode                = System.Windows.Forms.DataGridViewTriState.True;
            this.dgkhuyettat.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
            this.dgkhuyettat.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
                this.dangkt,
                this.mucdokt,
                this.gvchandoan,
                this.gvghichu
            });
            dataGridViewCellStyle3.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle3.BackColor          = System.Drawing.Color.White;
            dataGridViewCellStyle3.Font               = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle3.ForeColor          = System.Drawing.SystemColors.ControlText;
            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.PaleGreen;
            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.Blue;
            dataGridViewCellStyle3.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
            this.dgkhuyettat.DefaultCellStyle         = dataGridViewCellStyle3;
            this.dgkhuyettat.GridColor                  = System.Drawing.Color.Gainsboro;
            this.dgkhuyettat.Location                   = new System.Drawing.Point(4, 79);
            this.dgkhuyettat.MultiSelect                = false;
            this.dgkhuyettat.Name                       = "dgkhuyettat";
            this.dgkhuyettat.ReadOnly                   = true;
            dataGridViewCellStyle4.Alignment            = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle4.BackColor            = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle4.Font                 = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle4.ForeColor            = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle4.SelectionBackColor   = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle4.SelectionForeColor   = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle4.WrapMode             = System.Windows.Forms.DataGridViewTriState.True;
            this.dgkhuyettat.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
            this.dgkhuyettat.RowHeadersVisible          = false;
            this.dgkhuyettat.RowHeadersWidth            = 20;
            this.dgkhuyettat.SelectionMode              = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.dgkhuyettat.Size                       = new System.Drawing.Size(682, 266);
            this.dgkhuyettat.StandardTab                = true;
            this.dgkhuyettat.TabIndex                   = 61;
            this.dgkhuyettat.CurrentCellChanged        += new System.EventHandler(this.dgkhuyettat_CurrentCellChanged);
            //
            // butmoi
            //
            this.butmoi.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butmoi.Image      = ((System.Drawing.Image)(resources.GetObject("butmoi.Image")));
            this.butmoi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butmoi.Location   = new System.Drawing.Point(100, 466);
            this.butmoi.Name       = "butmoi";
            this.butmoi.Size       = new System.Drawing.Size(68, 25);
            this.butmoi.TabIndex   = 62;
            this.butmoi.Text       = "      &Mới";
            this.butmoi.Click     += new System.EventHandler(this.butmoi_Click);
            //
            // butsua
            //
            this.butsua.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butsua.Image      = ((System.Drawing.Image)(resources.GetObject("butsua.Image")));
            this.butsua.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butsua.Location   = new System.Drawing.Point(242, 466);
            this.butsua.Name       = "butsua";
            this.butsua.Size       = new System.Drawing.Size(68, 25);
            this.butsua.TabIndex   = 63;
            this.butsua.Text       = "      &Sửa";
            this.butsua.Click     += new System.EventHandler(this.butsua_Click);
            //
            // butxoa
            //
            this.butxoa.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butxoa.Image      = ((System.Drawing.Image)(resources.GetObject("butxoa.Image")));
            this.butxoa.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butxoa.Location   = new System.Drawing.Point(313, 466);
            this.butxoa.Name       = "butxoa";
            this.butxoa.Size       = new System.Drawing.Size(68, 25);
            this.butxoa.TabIndex   = 64;
            this.butxoa.Text       = "      &Xóa";
            this.butxoa.Click     += new System.EventHandler(this.butxoa_Click);
            //
            // butboqua
            //
            this.butboqua.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butboqua.Image      = ((System.Drawing.Image)(resources.GetObject("butboqua.Image")));
            this.butboqua.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butboqua.Location   = new System.Drawing.Point(384, 466);
            this.butboqua.Name       = "butboqua";
            this.butboqua.Size       = new System.Drawing.Size(68, 25);
            this.butboqua.TabIndex   = 65;
            this.butboqua.Text       = "      &Bỏ qua";
            this.butboqua.Click     += new System.EventHandler(this.butboqua_Click);
            //
            // dangkt
            //
            this.dangkt.DataPropertyName = "dangkt";
            this.dangkt.HeaderText       = "Dạng khuyết tật";
            this.dangkt.Name             = "dangkt";
            this.dangkt.ReadOnly         = true;
            //
            // mucdokt
            //
            this.mucdokt.DataPropertyName = "mucdokt";
            this.mucdokt.HeaderText       = "Mức độ khuyết tật";
            this.mucdokt.Name             = "mucdokt";
            this.mucdokt.ReadOnly         = true;
            //
            // gvchandoan
            //
            this.gvchandoan.DataPropertyName = "gvchandoan";
            this.gvchandoan.HeaderText       = "Chẩn đoán";
            this.gvchandoan.Name             = "gvchandoan";
            this.gvchandoan.ReadOnly         = true;
            //
            // gvghichu
            //
            this.gvghichu.DataPropertyName = "gvghichu";
            this.gvghichu.HeaderText       = "Ghi chú";
            this.gvghichu.Name             = "gvghichu";
            this.gvghichu.ReadOnly         = true;
            //
            // frmKhuyettat
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(688, 500);
            this.Controls.Add(this.butboqua);
            this.Controls.Add(this.butxoa);
            this.Controls.Add(this.butsua);
            this.Controls.Add(this.butmoi);
            this.Controls.Add(this.dgkhuyettat);
            this.Controls.Add(this.ngay);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.butIn);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.cbo_mucdokt);
            this.Controls.Add(this.cbo_dangkt);
            this.Controls.Add(this.butTainangt);
            this.Controls.Add(this.dieutri);
            this.Controls.Add(this.chandoan);
            this.Controls.Add(this.label15);
            this.Controls.Add(this.label14);
            this.Controls.Add(this.butketthuc);
            this.Controls.Add(this.butLuu);
            this.Controls.Add(this.diachi);
            this.Controls.Add(this.label9);
            this.Controls.Add(this.mann);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.namsinh);
            this.Controls.Add(this.hoten);
            this.Controls.Add(this.mabn);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name            = "frmKhuyettat";
            this.ShowInTaskbar   = false;
            this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text            = "Thông tin khuyết tật";
            this.Load           += new System.EventHandler(this.frmKhuyettat_Load);
            ((System.ComponentModel.ISupportInitialize)(this.dgkhuyettat)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Beispiel #56
0
        private TableLayoutPanel CreateField(int colIndex)
        {
            //Create TableLayoutPanel
            TableLayoutPanel tlp = new TableLayoutPanel();

            tlp.ColumnCount = 2;
            tlp.RowCount    = 1;
            tlp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 36.0F));
            tlp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.0F));
            tlp.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100.0F));

            //Create Label
            Label lbl = new Label();

            lbl.BorderStyle = BorderStyle.Fixed3D;
            lbl.TextAlign   = ContentAlignment.MiddleRight;
            lbl.Text        = (string)((Collection )Sc["CHTitle"])[colIndex];

            tlp.Controls.Add(lbl, 0, 0);
            lbl.Dock = System.Windows.Forms.DockStyle.Fill;

            string sType = ((string)((Collection )Sc["ColType"])[colIndex]).ToUpper();
            object ctl   = null;

            switch (sType)
            {
            case "E":                     //'TextEdit,Password
            case "P":
                TextBox ctl_t = new TextBox();
                if (sType == "P")
                {
                    ctl_t.PasswordChar = '*';
                }
                if (((Collection)Sc["ColLength"])[colIndex] == "")
                {
                    ctl_t.MaxLength = 200;
                }
                else
                {
                    ctl_t.MaxLength = (int)((Collection)Sc["ColLength"])[colIndex];
                }
                //ctl_t.MaxLength = ги((Collection)Sc["ColLength"])[colIndex] == "" ? 200 : ((Collection)Sc["ColLength"])[colIndex]));
                tlp.Controls.Add(ctl_t, 1, 0);
                ctl_t.Dock = DockStyle.Fill;
                ctl_t.Text = (string)Record[colIndex];
                ctl        = ctl_t;
                break;

            case "N":                     //'NumberEdit
                ctl = new System.Windows.Forms.MaskedTextBox();
                MaskedTextBox ctl_m = new MaskedTextBox();
                string[]      Ass_1 = new string[3];
                Ass_1      = ((Collection)Sc["ColLength"])[colIndex].ToString().Split(',');
                ctl_m.Mask = " ".PadLeft(int.Parse(Ass_1[0])).Trim() + "." + " ".PadLeft(int.Parse(Ass_1[1])).Trim();
                tlp.Controls.Add(ctl_m, 1, 0);
                ctl_m.Dock = DockStyle.Fill;
                ctl_m.Text = (string)Record[colIndex];
                ctl        = ctl_m;
                break;

            case "ON":
            case "OE":
                //'Combox not editable ''Combox Editable
                ctl = new ComboBox();
                ComboBox ctl_c     = new ComboBox();
                string[] splitCom  = ((Collection)Sc["ComCode"])[colIndex].ToString().Split(';');
                string[] splitProc = ((Collection)Sc["Filter"])[colIndex].ToString().Split(';');
                string[] splitCus  = ((Collection)Sc["CustQuery"])[colIndex].ToString().Split(';');
                DataSet  ds        = null;
                if (splitCom[0].Trim() != "")
                {
                    ds = new CdQuery(splitCom[0].Trim(), "").CreateDataSet(true);
                    ctl_c.DataSource = ds;
                }
                else if (splitProc[0].Trim() != "")
                {
                    ds = new ProcQuery(splitProc[0].Trim(), new ArrayList()).CreateDataSet(true);
                    ctl_c.DataSource = ds;
                }
                else if (splitCus[0].Trim() != "")
                {
                    ds = new Query(splitCus[0].Trim()).CreateDataSet(true);
                    ctl_c.DataSource = ds;
                }
                ctl_c.DataSource    = ds.Tables[0].DefaultView;
                ctl_c.DisplayMember = ds.Tables[0].Columns[0].ToString();
                ctl_c.ValueMember   = ds.Tables[0].Columns[1].ToString();
                ctl_c.SelectedValue = "";
                if (sType == "ON")
                {
                    ctl_c.DropDownStyle = ComboBoxStyle.DropDownList;
                }
                else
                {
                    ctl_c.DropDownStyle = ComboBoxStyle.DropDown;
                }

                tlp.Controls.Add(ctl_c, 1, 0);
                ctl_c.Dock = DockStyle.Fill;
                ctl_c.Text = (string)Record[colIndex];
                ctl        = ctl_c;
                break;

            case "C":                     //'Checkbox
                CheckBox ctl_c2 = new CheckBox();
                tlp.Controls.Add(ctl_c2, 1, 0);
                ctl_c2.Dock = DockStyle.Fill;
                ctl_c2.Text = (string)Record[colIndex];
                ctl         = ctl_c2;
                break;

            case "D":                     //'Date ,Time
            case "T":
                DateTimePicker ctl_d = new DateTimePicker();
                ctl_d.Format = DateTimePickerFormat.Custom;
                if (sType == "D")
                {
                    ctl_d.CustomFormat = "yyyy-MM-dd";
                }
                else
                {
                    ctl_d.CustomFormat = "HH:mm:ss";
                }
                tlp.Controls.Add(ctl_d, 1, 0);
                ctl_d.Dock = DockStyle.Fill;
                ctl_d.Text = (string)Record[colIndex];
                ctl        = ctl_d;
                break;

            case "COMR":                     //'TextEdit with F4 Event return Common code and name
                ctl = new F4COMR();
                F4COMR ctl_f = new F4COMR();
                ctl_f.sKey  = ((Collection)Sc["ComCode"])[colIndex].ToString();
                ctl_f.sJoin = ((Collection)Sc["Filter"])[colIndex].ToString();
                ctl_f.sMax  = 20;
                tlp.Controls.Add(ctl_f, 1, 0);
                ctl_f.Dock = DockStyle.Fill;
                ctl_f.Text = (string)Record[colIndex];
                ctl        = ctl_f;
                break;

            case "COMN":                     //'TextEdit with F4 Event return Common code only
                F4COMN ctl_f2 = new F4COMN();
                ctl_f2.sKey  = ((Collection)Sc["ComCode"])[colIndex].ToString();
                ctl_f2.sJoin = ((Collection)Sc["Filter"])[colIndex].ToString();
                tlp.Controls.Add(ctl_f2, 1, 0);
                ctl_f2.Dock = DockStyle.Fill;
                ctl_f2.Text = (string)Record[colIndex];
                ctl         = ctl_f2;
                break;

            case "ETCR":                     //'TextEdit with F4 Event return code and name
                break;

            case "ETCN":                     //'TextEdit with F4 Event return code only
                F4ETCN ctl_f3 = new F4ETCN();
                ctl_f3.sJoin = ((Collection)Sc["Filter"])[colIndex].ToString();
                string[] Ass = new string[3];
                Ass              = (((Collection)Sc["CustQuery"])[colIndex]).ToString().Split(';');
                ctl_f3.sSqletc   = Ass[0];
                ctl_f3.sFcontrol = Ass[1];
                tlp.Controls.Add(ctl_f3, 1, 0);
                ctl_f3.Dock = DockStyle.Fill;
                ctl_f3.Text = (string)Record[colIndex];
                ctl         = ctl_f3;
                break;
            }
            string sAttr = (string)(((Collection)Sc["ColAttr"])[colIndex].ToString().ToUpper());

            if (sAttr.IndexOf("P") > -1)
            {
                ((Collection)m_Master["pControl"]).Add(ctl);
            }
            else if (sAttr.IndexOf("N") > -1)
            {
                ((Collection)m_Master["nControl"]).Add(ctl);
            }
            else if (sAttr.IndexOf("M") > -1)
            {
                ((Collection)m_Master["mControl"]).Add(ctl);
            }
            else if (sAttr.IndexOf("I") > -1)
            {
                ((Collection)m_Master["iControl"]).Add(ctl);
            }
            else if (sAttr.IndexOf("L") > -1)
            {
                ((Collection)m_Master["lControl"]).Add(ctl);
            }

            return(tlp);
        }
Beispiel #57
0
        public void clearScr()
        {
            string dt = date.Text.ToString();

            foreach (Control gb in this.Controls)
            {
                if (gb is Panel)
                {
                    foreach (Control tb in gb.Controls)
                    {
                        if (tb.GetType().ToString() == "System.Windows.Forms.TextBox")
                        {
                            System.Windows.Forms.TextBox tx = (TextBox)tb;

                            tx.Text = "";
                        }

                        else if (tb.GetType().ToString() == "System.Windows.Forms.MaskedTextBox")
                        {
                            System.Windows.Forms.MaskedTextBox tx = (MaskedTextBox)tb;
                            tx.Text = "";
                        }
                    }
                }
                else if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    tx.Text = "";
                }
            }
            foreach (Control gb in fin.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    tx.Text = "0.0";
                }
            }

            foreach (Control gb in com.Controls)
            {
                if (gb.GetType().ToString() == "System.Windows.Forms.TextBox")
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;

                    tx.Text = "0.0";
                }
            }
            supcd.Text = "";
            date.Text  = dt.ToString();
            string curyr = System.DateTime.Now.Year.ToString();

            try
            {
                object maxdocno = TBLmovement_tbl.Compute("max(docno)", "yr='" + curyr + "'");
                docno.Text = (Convert.ToInt16(maxdocno) + 1).ToString();
            }
            catch
            {
                docno.Text = "";
            }
            docno.Focus();
        }
Beispiel #58
0
        private void Form1_Load(object sender, EventArgs e)
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.pictureBox1    = new System.Windows.Forms.PictureBox();
            this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
            this.groupBox1      = new System.Windows.Forms.GroupBox();
            this.button1        = new System.Windows.Forms.Button();
            this.radioButton3   = new System.Windows.Forms.RadioButton();
            this.radioButton2   = new System.Windows.Forms.RadioButton();
            this.radioButton1   = new System.Windows.Forms.RadioButton();
            this.label1         = new System.Windows.Forms.Label();
            this.label2         = new System.Windows.Forms.Label();
            this.listBox1       = new System.Windows.Forms.ListBox();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();

            //
            // pictureBox1
            //
            this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.pictureBox1.Location    = new System.Drawing.Point(146, 12);
            this.pictureBox1.Name        = "pictureBox1";
            this.pictureBox1.Size        = new System.Drawing.Size(170, 204);
            this.pictureBox1.TabIndex    = 0;
            this.pictureBox1.TabStop     = false;
            //
            // maskedTextBox1
            //
            this.maskedTextBox1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.maskedTextBox1.Location  = new System.Drawing.Point(98, 242);
            this.maskedTextBox1.Mask      = "a-a-a-a-a-a-a-a-a-a-a";
            this.maskedTextBox1.Name      = "maskedTextBox1";
            this.maskedTextBox1.Size      = new System.Drawing.Size(291, 38);
            this.maskedTextBox1.TabIndex  = 1;
            this.maskedTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.maskedTextBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.MaskedTextBox1KeyPress);
            this.maskedTextBox1.KeyUp    += new System.Windows.Forms.KeyEventHandler(this.MaskedTextBox1KeyUp);
            //
            // groupBox1
            //
            this.groupBox1.Controls.Add(this.button1);
            this.groupBox1.Controls.Add(this.radioButton3);
            this.groupBox1.Controls.Add(this.radioButton2);
            this.groupBox1.Controls.Add(this.radioButton1);
            this.groupBox1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupBox1.Location = new System.Drawing.Point(12, 15);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(386, 319);
            this.groupBox1.TabIndex = 2;
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = "Elige tu tema a jugar";
            //
            // button1
            //
            this.button1.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
            this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.button1.Font     = new System.Drawing.Font("Monotype Corsiva", 15.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.button1.Location = new System.Drawing.Point(199, 71);
            this.button1.Name     = "button1";
            this.button1.Size     = new System.Drawing.Size(156, 154);
            this.button1.TabIndex = 6;
            this.button1.Text     = "Jugar";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.Button1Click);

            //
            // radioButton3
            //
            this.radioButton3.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.radioButton3.Location = new System.Drawing.Point(26, 138);
            this.radioButton3.Name     = "radioButton3";
            this.radioButton3.Size     = new System.Drawing.Size(146, 24);
            this.radioButton3.TabIndex = 3;
            this.radioButton3.TabStop  = true;
            this.radioButton3.Text     = "Marcas";
            this.radioButton3.UseVisualStyleBackColor = true;
            //
            // radioButton2
            //
            this.radioButton2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.radioButton2.Location = new System.Drawing.Point(28, 84);
            this.radioButton2.Name     = "radioButton2";
            this.radioButton2.Size     = new System.Drawing.Size(165, 24);
            this.radioButton2.TabIndex = 2;
            this.radioButton2.TabStop  = true;
            this.radioButton2.Text     = "frutas";
            this.radioButton2.UseVisualStyleBackColor = true;
            //
            // radioButton1
            //
            this.radioButton1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.radioButton1.Location = new System.Drawing.Point(26, 34);
            this.radioButton1.Name     = "radioButton1";
            this.radioButton1.Size     = new System.Drawing.Size(133, 24);
            this.radioButton1.TabIndex = 1;
            this.radioButton1.TabStop  = true;
            this.radioButton1.Text     = "Animales";
            this.radioButton1.UseVisualStyleBackColor = true;
            //
            // label1
            //
            this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.Location  = new System.Drawing.Point(84, 295);
            this.label1.Name      = "label1";
            this.label1.Size      = new System.Drawing.Size(273, 39);
            this.label1.TabIndex  = 3;
            this.label1.Text      = "tiene 5 letras";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // label2
            //
            this.label2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.Location = new System.Drawing.Point(-2, 12);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(118, 23);
            this.label2.TabIndex = 4;
            this.label2.Text     = "Ya usaste";
            //
            // listBox1
            //
            this.listBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.listBox1.FormattingEnabled   = true;
            this.listBox1.HorizontalScrollbar = true;
            this.listBox1.ItemHeight          = 24;
            this.listBox1.Location            = new System.Drawing.Point(22, 42);
            this.listBox1.Name     = "listBox1";
            this.listBox1.Size     = new System.Drawing.Size(70, 292);
            this.listBox1.TabIndex = 5;
            //
            // Form
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor           = System.Drawing.Color.Blue;
            this.ClientSize          = new System.Drawing.Size(409, 357);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.maskedTextBox1);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.listBox1);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.label2);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.Name            = "MainForm";
            this.Text            = "ahorcado";
            this.Load           += new System.EventHandler(this.Form1_Load);
            //this.Shown += new System.EventHandler(this.MainFormShown);
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Beispiel #59
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmTheodoitsu));
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
     this.noidung       = new System.Windows.Forms.CheckedListBox();
     this.label1        = new System.Windows.Forms.Label();
     this.label2        = new System.Windows.Forms.Label();
     this.label3        = new System.Windows.Forms.Label();
     this.label4        = new System.Windows.Forms.Label();
     this.mabn          = new System.Windows.Forms.TextBox();
     this.hoten         = new System.Windows.Forms.TextBox();
     this.namsinh       = new System.Windows.Forms.TextBox();
     this.phai          = new System.Windows.Forms.TextBox();
     this.butOk         = new System.Windows.Forms.Button();
     this.butCancel     = new System.Windows.Forms.Button();
     this.ten           = new System.Windows.Forms.TextBox();
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.ngay          = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.stt           = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.tiensu        = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.maicd         = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.label5        = new System.Windows.Forms.Label();
     this.txtngay       = new System.Windows.Forms.MaskedTextBox();
     this.label6        = new System.Windows.Forms.Label();
     this.icd_chinh     = new System.Windows.Forms.TextBox();
     this.cd_chinh      = new System.Windows.Forms.TextBox();
     this.listICD       = new LibList.List();
     this.butxoa        = new System.Windows.Forms.Button();
     this.butmoi        = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // noidung
     //
     this.noidung.CheckOnClick = true;
     this.noidung.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.noidung.Location     = new System.Drawing.Point(52, 32);
     this.noidung.Name         = "noidung";
     this.noidung.Size         = new System.Drawing.Size(463, 276);
     this.noidung.TabIndex     = 0;
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(4, 11);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(48, 16);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Mã BN :";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(112, 11);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(48, 16);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "Họ tên :";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(299, 11);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(60, 16);
     this.label3.TabIndex  = 3;
     this.label3.Text      = "Năm sinh :";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label4
     //
     this.label4.Location  = new System.Drawing.Point(395, 11);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(60, 16);
     this.label4.TabIndex  = 4;
     this.label4.Text      = "Giới tính :";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // mabn
     //
     this.mabn.BackColor = System.Drawing.SystemColors.HighlightText;
     this.mabn.Enabled   = false;
     this.mabn.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.mabn.Location  = new System.Drawing.Point(52, 8);
     this.mabn.Name      = "mabn";
     this.mabn.Size      = new System.Drawing.Size(64, 21);
     this.mabn.TabIndex  = 5;
     //
     // hoten
     //
     this.hoten.BackColor = System.Drawing.SystemColors.HighlightText;
     this.hoten.Enabled   = false;
     this.hoten.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.hoten.Location  = new System.Drawing.Point(164, 8);
     this.hoten.Name      = "hoten";
     this.hoten.Size      = new System.Drawing.Size(140, 21);
     this.hoten.TabIndex  = 6;
     //
     // namsinh
     //
     this.namsinh.BackColor = System.Drawing.SystemColors.HighlightText;
     this.namsinh.Enabled   = false;
     this.namsinh.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.namsinh.Location  = new System.Drawing.Point(363, 8);
     this.namsinh.Name      = "namsinh";
     this.namsinh.Size      = new System.Drawing.Size(40, 21);
     this.namsinh.TabIndex  = 7;
     //
     // phai
     //
     this.phai.BackColor = System.Drawing.SystemColors.HighlightText;
     this.phai.Enabled   = false;
     this.phai.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.phai.Location  = new System.Drawing.Point(451, 8);
     this.phai.Name      = "phai";
     this.phai.Size      = new System.Drawing.Size(64, 21);
     this.phai.TabIndex  = 8;
     //
     // butOk
     //
     this.butOk.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butOk.Image      = ((System.Drawing.Image)(resources.GetObject("butOk.Image")));
     this.butOk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butOk.Location   = new System.Drawing.Point(299, 379);
     this.butOk.Name       = "butOk";
     this.butOk.Size       = new System.Drawing.Size(70, 25);
     this.butOk.TabIndex   = 2;
     this.butOk.Text       = "     &Lưu";
     this.butOk.Click     += new System.EventHandler(this.butOk_Click);
     //
     // butCancel
     //
     this.butCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butCancel.Image        = ((System.Drawing.Image)(resources.GetObject("butCancel.Image")));
     this.butCancel.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butCancel.Location     = new System.Drawing.Point(445, 379);
     this.butCancel.Name         = "butCancel";
     this.butCancel.Size         = new System.Drawing.Size(70, 25);
     this.butCancel.TabIndex     = 2;
     this.butCancel.Text         = "&Kết thúc";
     this.butCancel.TextAlign    = System.Drawing.ContentAlignment.MiddleRight;
     this.butCancel.Click       += new System.EventHandler(this.butCancel_Click);
     //
     // ten
     //
     this.ten.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                             | System.Windows.Forms.AnchorStyles.Right)));
     this.ten.BackColor  = System.Drawing.SystemColors.HighlightText;
     this.ten.Font       = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.ten.Location   = new System.Drawing.Point(52, 32);
     this.ten.Multiline  = true;
     this.ten.Name       = "ten";
     this.ten.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.ten.Size       = new System.Drawing.Size(463, 279);
     this.ten.TabIndex   = 0;
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows = false;
     this.dataGridView1.Anchor             = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.dataGridView1.AutoSizeColumnsMode           = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     this.dataGridView1.BackgroundColor               = System.Drawing.Color.Honeydew;
     dataGridViewCellStyle5.Alignment                 = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle5.BackColor                 = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle5.Font                      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle5.ForeColor                 = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle5.SelectionBackColor        = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle5.SelectionForeColor        = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle5.WrapMode                  = System.Windows.Forms.DataGridViewTriState.True;
     this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
     this.dataGridView1.ColumnHeadersHeightSizeMode   = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.ngay,
         this.stt,
         this.tiensu,
         this.maicd
     });
     dataGridViewCellStyle6.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle6.BackColor          = System.Drawing.SystemColors.Info;
     dataGridViewCellStyle6.Font               = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle6.ForeColor          = System.Drawing.SystemColors.ControlText;
     dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle6.WrapMode           = System.Windows.Forms.DataGridViewTriState.False;
     this.dataGridView1.DefaultCellStyle       = dataGridViewCellStyle6;
     this.dataGridView1.GridColor              = System.Drawing.SystemColors.Control;
     this.dataGridView1.Location               = new System.Drawing.Point(52, 32);
     this.dataGridView1.Name                = "dataGridView1";
     this.dataGridView1.ReadOnly            = true;
     this.dataGridView1.RowHeadersVisible   = false;
     this.dataGridView1.SelectionMode       = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.dataGridView1.Size                = new System.Drawing.Size(463, 279);
     this.dataGridView1.TabIndex            = 9;
     this.dataGridView1.CurrentCellChanged += new System.EventHandler(this.dataGridView1_CurrentCellChanged);
     //
     // ngay
     //
     this.ngay.DataPropertyName = "ngay";
     this.ngay.FillWeight       = 65.10722F;
     this.ngay.HeaderText       = "Ngày";
     this.ngay.Name             = "ngay";
     this.ngay.ReadOnly         = true;
     //
     // stt
     //
     this.stt.DataPropertyName = "sott";
     this.stt.FillWeight       = 45.68528F;
     this.stt.HeaderText       = "Số TT";
     this.stt.Name             = "stt";
     this.stt.ReadOnly         = true;
     //
     // tiensu
     //
     this.tiensu.DataPropertyName = "tiensu";
     this.tiensu.FillWeight       = 189.2075F;
     this.tiensu.HeaderText       = "Tiền sử";
     this.tiensu.Name             = "tiensu";
     this.tiensu.ReadOnly         = true;
     //
     // maicd
     //
     this.maicd.DataPropertyName = "maicd";
     this.maicd.HeaderText       = "CICD10";
     this.maicd.Name             = "maicd";
     this.maicd.ReadOnly         = true;
     //
     // label5
     //
     this.label5.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(4, 330);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(38, 13);
     this.label5.TabIndex = 10;
     this.label5.Text     = "Ngày :";
     //
     // txtngay
     //
     this.txtngay.Anchor         = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtngay.Location       = new System.Drawing.Point(45, 327);
     this.txtngay.Mask           = "00/00/0000";
     this.txtngay.Name           = "txtngay";
     this.txtngay.Size           = new System.Drawing.Size(71, 20);
     this.txtngay.TabIndex       = 11;
     this.txtngay.ValidatingType = typeof(System.DateTime);
     //
     // label6
     //
     this.label6.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(122, 330);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(38, 13);
     this.label6.TabIndex = 12;
     this.label6.Text     = "Bệnh :";
     //
     // icd_chinh
     //
     this.icd_chinh.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.icd_chinh.BackColor    = System.Drawing.SystemColors.HighlightText;
     this.icd_chinh.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.icd_chinh.Location     = new System.Drawing.Point(164, 326);
     this.icd_chinh.Name         = "icd_chinh";
     this.icd_chinh.Size         = new System.Drawing.Size(39, 21);
     this.icd_chinh.TabIndex     = 0;
     this.icd_chinh.TextChanged += new System.EventHandler(this.icd_chinh_TextChanged);
     this.icd_chinh.Validated   += new System.EventHandler(this.icd_chinh_Validated);
     this.icd_chinh.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.icd_chinh_KeyDown);
     //
     // cd_chinh
     //
     this.cd_chinh.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.cd_chinh.BackColor    = System.Drawing.SystemColors.HighlightText;
     this.cd_chinh.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cd_chinh.Location     = new System.Drawing.Point(205, 326);
     this.cd_chinh.Name         = "cd_chinh";
     this.cd_chinh.Size         = new System.Drawing.Size(310, 21);
     this.cd_chinh.TabIndex     = 1;
     this.cd_chinh.TextChanged += new System.EventHandler(this.cd_chinh_TextChanged);
     this.cd_chinh.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.cd_chinh_KeyDown);
     //
     // listICD
     //
     this.listICD.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.listICD.BackColor          = System.Drawing.SystemColors.Info;
     this.listICD.ColumnCount        = 0;
     this.listICD.Location           = new System.Drawing.Point(440, 387);
     this.listICD.MatchBufferTimeOut = 1000;
     this.listICD.MatchEntryStyle    = AsYetUnnamed.MatchEntryStyle.FirstLetterInsensitive;
     this.listICD.Name       = "listICD";
     this.listICD.Size       = new System.Drawing.Size(75, 17);
     this.listICD.TabIndex   = 217;
     this.listICD.TextIndex  = -1;
     this.listICD.TextMember = null;
     this.listICD.ValueIndex = -1;
     this.listICD.Visible    = false;
     //
     // butxoa
     //
     this.butxoa.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butxoa.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.butxoa.Image        = ((System.Drawing.Image)(resources.GetObject("butxoa.Image")));
     this.butxoa.ImageAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     this.butxoa.Location     = new System.Drawing.Point(372, 379);
     this.butxoa.Name         = "butxoa";
     this.butxoa.Size         = new System.Drawing.Size(70, 25);
     this.butxoa.TabIndex     = 218;
     this.butxoa.Text         = "&Xóa";
     this.butxoa.Click       += new System.EventHandler(this.butxoa_Click);
     //
     // butmoi
     //
     this.butmoi.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.butmoi.Image      = ((System.Drawing.Image)(resources.GetObject("butmoi.Image")));
     this.butmoi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.butmoi.Location   = new System.Drawing.Point(226, 379);
     this.butmoi.Name       = "butmoi";
     this.butmoi.Size       = new System.Drawing.Size(70, 25);
     this.butmoi.TabIndex   = 219;
     this.butmoi.Text       = "&Mới";
     this.butmoi.Click     += new System.EventHandler(this.butmoi_Click);
     //
     // frmTheodoitsu
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.butCancel;
     this.ClientSize        = new System.Drawing.Size(520, 416);
     this.Controls.Add(this.butmoi);
     this.Controls.Add(this.butxoa);
     this.Controls.Add(this.butCancel);
     this.Controls.Add(this.butOk);
     this.Controls.Add(this.listICD);
     this.Controls.Add(this.cd_chinh);
     this.Controls.Add(this.icd_chinh);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.txtngay);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.dataGridView1);
     this.Controls.Add(this.ten);
     this.Controls.Add(this.phai);
     this.Controls.Add(this.namsinh);
     this.Controls.Add(this.hoten);
     this.Controls.Add(this.mabn);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.noidung);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name            = "frmTheodoitsu";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Theo dõi tiểu sử bệnh tật";
     this.Load           += new System.EventHandler(this.frmTheodoitsu_Load);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #60
0
        public void enbControls(Boolean boolean) /// true if enabled
        {
            foreach (Control gb in this.Controls)
            {
                if (gb is Panel)
                {
                    foreach (Control tb in gb.Controls)
                    {
                        if (tb.GetType().ToString() == "System.Windows.Forms.TextBox")
                        {
                            System.Windows.Forms.TextBox tx = (TextBox)tb;
                            tx.ReadOnly = !boolean;
                            //if (!docno.ReadOnly)
                            //    if (gb.Name.ToString() == "fin" || gb.Name.ToString() == "com")
                            //    {
                            //        tx.Text = "0.0";
                            //    }
                        }

                        else if (tb.GetType().ToString() == "System.Windows.Forms.ComboBox")
                        {
                            System.Windows.Forms.ComboBox tx = (ComboBox)tb;
                            tx.Enabled = boolean;
                        }

                        else if (tb.GetType().ToString() == "System.Windows.Forms.MaskedTextBox")
                        {
                            System.Windows.Forms.MaskedTextBox tx = (MaskedTextBox)tb;
                            tx.ReadOnly = !boolean;
                        }
                    }
                }
                else if (gb is ComboBox)
                {
                    gb.Enabled = boolean;
                }
                else if (gb is TextBox)
                {
                    System.Windows.Forms.TextBox tx = (TextBox)gb;
                    tx.ReadOnly = !boolean;
                }

                foreach (Control c in otherPan.Controls)
                {
                    if (c.GetType().ToString() == "System.Windows.Forms.TextBox")
                    {
                        System.Windows.Forms.TextBox tx = (TextBox)c;
                        tx.ReadOnly = !boolean;
                    }
                }
            }

            //if (!docno.ReadOnly)
            //{
            //    credsum.Text = "0.0";
            //    depsum.Text = "0.0";

            //    depdiff.Text = "0.0";
            //    creddiff.Text = "0.0";
            //}

            //if (movcd.Text == "تجاري")
            //{
            //    doccd.SelectedText = "تسوية";
            //    doccd.Enabled = false;
            //}


            //panbutt_Nav.Visible = !boolean;
            //panSav.Visible = boolean;
        }